Bug 92321
Summary: | Mapping CompactPCI device through sysfs-pci driver | ||
---|---|---|---|
Product: | Drivers | Reporter: | Georgiy (jediknight.93) |
Component: | PCI | Assignee: | drivers_pci (drivers_pci) |
Status: | NEEDINFO --- | ||
Severity: | high | CC: | bjorn |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 3.16.0-4-586 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
lspci -vv
dmesg output test program test program output kernel module with the same functionality; works as intended |
Description
Georgiy
2015-01-30 08:52:37 UTC
Created attachment 165261 [details]
lspci -vv
lspci -vv for all presented devices
Created attachment 165271 [details]
dmesg output
dmesg output _after_ performed tests
Created attachment 165281 [details]
test program
Simple motivation example of strange behavior.
You can see bad ffffffff values on some devices (described here).
Created attachment 165291 [details]
test program output
Output for provided test program.
Ok, finaly uploaded some files. Created attachment 165641 [details]
kernel module with the same functionality; works as intended
the desired info was acquired completely
root@b4-mrpu-x86:/home/user/PCIDeviceKernelModule# dmesg | grep info
[ 0.000000] Using ACPI (MADT) for SMP configuration information
[ 49.189417] info: 2.4.1
[ 49.297360] info: 2.4.1
[ 49.403655] info: 2.4.1
[ 49.503624] info: 2.4.1
[ 49.603260] info: 2.4.1
[ 49.730663] info: 2.4.1
[ 49.832868] info: 2.4.1
[ 49.934986] info: 2.4.1
[ 50.034662] info: 2.4.1
[ 50.134300] info: 2.4.1
[ 50.247241] info: 3.1.8864
The kernel module, which uses ioremap(), works as expected. The user program, which uses mmap(), fails. The user-space mmap() path uses pci_mmap_resource(). Can you add some instrumentation to that path? We might be able to figure out where things are going wrong. |