[lkml]   [2006]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Add a "enable" sysfs attribute to the pci devices to allow userspace (Xorg) to enable devices without doing foul direct access
    On 5/5/06, Greg KH <> wrote:
    > On Fri, May 05, 2006 at 04:14:00PM -0400, Jon Smirl wrote:
    > > I would like to see other design alternatives considered on this
    > > issue. The 'enable' attribute has a clear problem in that you can't
    > > tell which user space program is trying to control the device.
    > > Multiple programs accessing the video hardware with poor coordination
    > > is already the source of many problems.
    > Who cares who "enabled" the device. Remember, the majority of PCI
    > devices in the system are not video ones. Lots of other types of
    > devices want this ability to enable PCI devices from userspace. I've
    > been talking with some people about how to properly write PCI drivers in
    > userspace, and this attribute is a needed part of it.

    User space program enables the device.
    Next I load a device driver
    next I rmmod the device driver and it disables the device
    user space program trys to use the device
    No coordination and user space program faults

    Don't say this can't happen, it is a current source of conflict
    between X and fbdev.

    Should we just remove the ability to disable hardware?
    How would that interact with hotplug?

    > And if X gets enabling the device wrong, again, who cares, it's not a
    > kernel issue. :)
    > thanks,
    > greg k-h

    Jon Smirl
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2006-05-05 22:37    [W:0.022 / U:5.008 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site