Questions tagged [pci]

Questions in this tag are only for questions related to the PCI Local Bus standard which is a computer bus for attaching hardware devices in a computer.

Questions in this tag are only for questions related to the PCI Local Bus standard which is a computer bus for attaching hardware devices in a computer.

483 questions
3
votes
2 answers

What is the function number in PCI?

I am new to PCI protocol and would like to know where is the function number of a device stored? This is important for me because I have inserted an ad on a customized card in a PCI slot of my windows system. The card contains two instances of the…
user2157033
  • 31
  • 1
  • 3
3
votes
2 answers

What is the difference between pci_enable_device_mem and pci_enable_device?

What is the difference between pci_enable_device_mem and pci_enable_device? In ixgbe pf driver uses pci_enable_device_mem and vf driver uses pci_enable_device.
Nirmoy
  • 49
  • 6
3
votes
1 answer

Determine what (if any) PCI devices are plugged into motherboard PCI(e) slots

I am writing a program in C# to perform a hardware audit across many Windows XP workstations. I need to determine which PCI devices are actual cards connected via a motherboard slot - NOT onboard devices that also use the PCI buses (built into the…
Bosco
  • 935
  • 10
  • 18
3
votes
2 answers

Userspace PCI BAR access returns 0xFF at every offset

I am trying to access a PCI BAR (#5) for a PCIe SATA bridge from userspace, but whenever I mmap() from the BAR via the /sys/bus/pci/devices/.../resource5, I get 0xFF at every offset in the file. Other devices such as an Intel SATA controller respond…
Inductiveload
  • 6,094
  • 4
  • 29
  • 55
3
votes
1 answer

Implement Message Signaled Interrupt in DOS mode

I'm bit stuck at programming device MSI(Message Signaled interrupt) and any pointers welcomed...(my environment is Watcom C + DOS/32a - dos extender, in flat mode...) @ PIC(8259) mode is ok for me... I list what I have done as below and maybe…
liaoo
  • 193
  • 2
  • 15
3
votes
2 answers

CUDA transfer memory during kernel execution

I know that CUDA kernels can be "overlapped" by putting them into separate streams, but I'm wondering if would it be possible to transfer memory during kernel executions. CUDA kernels are asynchronous afterall
paulAl
  • 949
  • 2
  • 10
  • 17
2
votes
2 answers

PCI-E / Linux : How to capture TLP packet?

Is it possible that linux software capture TLP packet of PCI-E? I want to know debugging pci-e card. Thanks
myj
  • 23
  • 1
  • 4
2
votes
1 answer

BASH find which port a USB drive is attached to by the PCI ID

Basically I need to verify that a USB Drive is connected to a certain USB Port. I have the following: USB Drives are labeled virtually: White, Green, Red I have 3 USB Ports that are also labeled physically: White, Green, Red Using BLKID I…
EST
  • 407
  • 1
  • 7
  • 10
2
votes
2 answers

Linux Zero Copy

I have a PCI device that needs to read and write from userspace. I'm trying to use zero copy; is there a way to allocate, pin, and get the physical address of a userspace address completely within userspace or do I need to have a kernel module that,…
Jonathan
  • 732
  • 5
  • 19
2
votes
0 answers

Poor MMIO performance with non-temporal loads on Intel Xeon

I'm seeing poor memory (WC) read performance with the vmovntdqa non-temporal load instruction on Intel Xeon E-2224 systems, but excellent performance on AMD EPYC 3151 systems. Why such a huge difference, and is there anything I could do about it? It…
Jaakko Salo
  • 81
  • 1
  • 6
2
votes
2 answers

Failed to read pci csr via mmap using uint64_t pointer

I'm trying to reading PCI CSR (Configuration Space Register) on my system via open,mmap /dev/mem. I met some problems when using 8 byte length reading Here is the minimal working example of my code #include #include #include…
imotfnir
  • 21
  • 3
2
votes
1 answer

What causes dma_map_page/dma_unmap_page to take longer time on some hardware?

I've been programming a Linux kernel module for several years for a PCIe device. One of the main feature is to transfer data from the PCIe card to the host memory using DMA. I'm using streaming DMA, i.e. it's the user program that allocates the…
Didier Trosset
  • 36,376
  • 13
  • 83
  • 122
2
votes
1 answer

Processor concurrent PCI read

I'm working on a project which uses a LEON2 (SparcV8) processor and we have a PCI bus that connects other FPGA and the processor. Running on this we have a multitasking application using RTEMS and written in C. Now I'm not familiar at all with…
Leo
  • 500
  • 5
  • 15
2
votes
0 answers

how is 'stream ID' or 'iommu specifier' determined in PCIe root complex mode?

This is from Documentation/devicetree/bindings/pci/pci-iommu.txt (linux-5.10.0) PCI root complex ================ Optional properties ------------------- - iommu-map: Maps a Requester ID to an IOMMU and associated IOMMU specifier data. The…
Chan Kim
  • 5,177
  • 12
  • 57
  • 112
2
votes
0 answers

getting illegal instructions when vectorized code writes to PCI

I am writing a program that writes to a device's range of HW registers. I am using mmap to map the HW addresses to virtual address (user space). I tested the result from the mmap and it is OK. I implemented a copy of a buffer into the device: void…
yehudahs
  • 2,488
  • 8
  • 34
  • 54