[lkml]   [1997]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: PCI Functions problems
>   Indeed it may be nice to have a driver to access PCI configuration
> space, this should however be done carefully because you can easily crash
> a machine by destroying all your mappings and setup.

Absolutely. My driver is called "pcidev" like PCI development. It is
intended for safe/development environments only. BTW, by changing
the permissions of /dev/pcidev, access can be restricted to the super
user. Though user space device drivers should not be used for
production use anyway.

I don't know about SMP, but my driver just calls the pcibios_* functions
we *should* take care of this.

> Also X servers contain code that directly access PCI configuration
> space which is quite dangerous if an interrupt happens between the
> access to the address and data ports: they would better use system
> services that provide controlled access to PCI configuration space.

Interesting -- do you know how they access *config* space without
going through the kernel?


 \ /
  Last update: 2005-03-22 13:39    [W:0.059 / U:2.680 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site