[Sorry about the bogus reply, I don't have the original message.]

akpm wrote:
> OK.   With Greg's tree:
> 
> linux:/home/akpm# l /sys/devices/pci0000:00/0000:00:1d.0/        
> total 0
> -r--r--r--  1 root root 4096 2004-12-29 18:36 class
> -rw-r--r--  1 root root  256 2004-12-29 18:36 config
> -rw-r--r--  1 root root 4096 2004-12-29 18:39 detach_state
> -r--r--r--  1 root root 4096 2004-12-29 18:36 device
> lrwxrwxrwx  1 root root    0 2004-12-29 18:36 driver 
-> ../../../bus/pci/drivers/uhci_hcd
> -r--r--r--  1 root root 4096 2004-12-29 18:36 irq
> -r--r--r--  1 root root 4096 2004-12-29 18:39 local_cpus
> -r--r--r--  1 root root 4096 2004-12-29 18:36 pools
> drwxr-xr-x  2 root root    0 2004-12-29 18:35 power
> -r--r--r--  1 root root 4096 2004-12-29 18:36 resource
> -rw-------  1 root root   32 2004-12-29 18:36 resource4
> -r--r--r--  1 root root 4096 2004-12-29 18:39 subsystem_device
> -r--r--r--  1 root root 4096 2004-12-29 18:39 subsystem_vendor
> drwxr-xr-x  4 root root    0 2004-12-29 18:36 usb2
> -r--r--r--  1 root root 4096 2004-12-29 18:36 vendor
> 
> Where did that "resource4" thingy come from?

That's part of the new sysfs based PCI API.  It's meant to replace the 
non-domain aware /proc/bus/pci API (coded after several complaints and 
rewrites).  Each valid PCI resource on a device will have a resourceN file 
that can be mmaped for userspace drivers.

> Reading from it:
> 
> linux:/home/akpm# cat /sys/devices/pci0000:00/0000:00:1d.0/resource4
> zsh: 7501 segmentation fault  
cat /sys/devices/pci0000:00/0000:00:1d.0/resource4

That shouldn't happen.  Maybe you were running an old version of the tree or 
an old version of my sysfs mmap patch?  When I do a 'bk pull' of gregkh's 
latest usb tree into a recent Linus tree, I get an -EINVAL, not an oops.  An 
earlier version of my patch had this bug though, so maybe that's what you're 
seeing?

> I'll need to drop bk-usb for now.  If someone can point at the bad cset,
> it would be appreciated, thanks.

Jesse


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to