pci Questions

2

I am new to PCI express, I want to read/write into PCI Express configuration space via MMIO addresses. I know how port mapped IO read/write into PCI express config space via 0xCFC and 0xCF8 port ad...
Astringent asked 2/9, 2018 at 10:50

3

Solved

Intel manual says that local APIC registers are memory mapped to a 4KB region, with the default address being FEE00000H. This address can be modified using IA32_APIC_BASE MSR. Quoting SDM Vol 3, s...
Angadreme asked 22/8, 2018 at 12:29

4

In Linux, is there a way to find out which PCI card is plugged into which PCI slot? /sys/bus/pci/devices/ contains many devices (bridges, CPU channels, etc.) that are not cards and I was not able ...
Execratory asked 18/9, 2014 at 9:19

5

Solved

I have here Linux 4.4 (I used to work on an older kernel which failed in the same way) with a PCIe connected FPGA device and a driver for it which are both of my own design. These have been working...
Mesmerism asked 28/9, 2017 at 19:24

2

Solved

I've tried both reading userspace pci entry under /proc/bus/pci directory and calling kernel space API pci_read_config_word() in the driver. but it seems both can only read pci basic configuration ...
Burgundy asked 14/6, 2011 at 9:23

4

I know that the base address register (BAR) in PCI configuration space defines the start location of a PCI address, but how does the size of this region get established? Surely this is a property ...
Peppergrass asked 25/9, 2013 at 13:42

1

Solved

I have a small kernel which is booted with UEFI. I'm using QEMU for virtualization. I want to write a xHCI driver to support USB keyboards in my kernel. I'm having trouble to find concise and clear...
Willaims asked 9/4, 2021 at 20:54

0

In Ethernet PCI device driver if the driver allows applications to map user-space buffer to Driver virtual memory and allow the user to call MMAP on device driver file after opening it. Then how do...
Chita asked 16/1, 2021 at 11:54

2

I am doing a project to read the registers of the device from the pci configuration space and for that I need to mmap the space, for this I have to read the resource file. But what data this file c...
Gabrila asked 15/5, 2014 at 5:27

4

Solved

After going through some basics documents what I understood is, Base Address Register is Address space which can be accessed by PCIe IP. PCIe IP can either transmit data in Base Address Register or...
Lied asked 12/5, 2015 at 11:52

2

Solved

I'm trying to understand how PCI segment(domain) is related to multiple Host Bridges? Some people say multiple PCI domains corresponds to multiple Host Bridges, but some say it means multip...
Ancona asked 1/3, 2018 at 13:35

3

Solved

On windows there is this program called pcitree that allows you to set and read memory without writing a device driver. Is there a linux alternative to pcitree that will allow me read memory on blo...
Jaynejaynell asked 22/9, 2014 at 17:24

4

Does anyone know of a PCI card suitable for Android development? I find the emulator unusably slow (Linux 64-bit, quad-core, 8GB RAM), and a card I could hide in my desktop would be nice. I know t...
Pluviometer asked 6/4, 2011 at 21:17

2

Solved

I understand that PCI and PCIe devices can be configured by the CPU (via code in the BIOS or OS) to respond to certain physical memory addresses by writing to specific areas of the device's configu...
Voorhees asked 27/10, 2013 at 3:30

2

Solved

In order to access PCI Configuration Space, I/O port address 0xCF8, 0xCFC is used according to various articles. mov eax, dword 0x80000000 mov dx, word 0x0CF8 out dx, eax mov dx, word 0x0CFC in e...
Floriated asked 12/8, 2019 at 7:40

1

Solved

Currently working on a PCI device driver. And the device is programmed like this: When a DMA transmission is done, the device send a MSI interrupt to PC with MSI data "001" binary. Now I'm writin...
Monroy asked 22/4, 2016 at 10:5

4

I need hardware information just as listed below which was generated using lshw in linux. I need a windows equivalent without a GUI more preferably like a code or dll which can be used to extract t...
Seedman asked 10/10, 2011 at 13:22

1

After looking at the kernel docs here: https://www.kernel.org/doc/Documentation/PCI/pci.txt I am lost as to the ordering of function calls to set up and tear down a PCI driver. I have two question...
Conchology asked 3/7, 2018 at 23:2

1

Solved

I'd like to verify on any given Linux machine if PCI passthrough is supported. After a bit of googling, I found that I should rather check if IOMMU is supported, and I did so by running: dme...
Saidel asked 31/5, 2017 at 13:53

4

I'm looking for either a kernel mode call that I can make from a driver, a userland utility, or a system call that will ask the Kernel to look at the PCI bus and either completely re-run its initia...
Chaperon asked 1/12, 2009 at 17:2

2

Solved

I am writing a device driver for a PCIe card in Linux. I am trying to use interrupts in my driver. Reading the "IRQ Line" section of the PCI configuration register (offset 0x3C) reports that the a...
Naivete asked 19/3, 2013 at 21:30

1

Solved

Given the address of a PCI device (i.e. bus, device, function), how can one programatically read, using Win32 API calls in userspace, the config space (e.g. vendor ID, device ID) for that device? ...
Conundrum asked 30/3, 2016 at 14:1

3

Solved

I'm trying to write a simple helper application that is used to prompt the user to turn on a camcorder if no signal is detected, which in this case would mean the camcorder is off and/or the HDMI c...
Austinaustina asked 9/4, 2016 at 1:1

1

Objective I'm trying to programmatically find out on which physical slot a particular PCIe device is connected. The premise is that I have the PCI-ID of a card that is surely occupying a slot, and...
Rubyeruch asked 7/1, 2014 at 14:51

2

Before registering a PCI driver, we have to initialize struct pci_driver and pass it to pci_register_driver. One of fields of the structure is a pointer to driver's probe function. My question is ...
Miquelmiquela asked 9/7, 2015 at 23:28

© 2022 - 2024 — McMap. All rights reserved.