Re: Exposing ROM's though sysfs

From: Jesse Barnes (jbarnes_at_engr.sgi.com)
Date: 07/30/04

  • Next message: Greg KH: "Re: Exposing ROM's though sysfs"
    To: Martin Mares <mj@ucw.cz>
    Date:	Fri, 30 Jul 2004 13:25:53 -0700
    
    

    On Friday, July 30, 2004 1:13 pm, Martin Mares wrote:
    > > Do I understand it correctly that the ROM-in-sysfs hack is intended only
    > > for debugging? If it is so, I do not see why we should do anything
    > > complicated in order to avoid root shooting himself in the foot.
    >
    > ... for which the config space access code already sets the precedent --
    > there exist (rare) devices which have configuration registers with side
    > effects on reads, making it possible to produce SCSI errors or even crash
    > the system by just dumping the config space. Even on these devices, the
    > kernel does not attempt to forbid reading of these registers via sysfs.

    Well, this is what I initially argued with willy...

    I think typical usage will be:
      o dri fires off hotplug event
      o userland card POSTing tool reads the ROM, saving it off for future use,
        and POSTs the card
      o userland tool calls back into dri saying that the card is ready
      o dri driver operates happily

    So dealing with users accessing the rom file after a driver is up and running
    may not be worth the trouble.

    Jesse
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Greg KH: "Re: Exposing ROM's though sysfs"

    Relevant Pages

    • Re: 2.6.1-mm1: drivers/video/sis/sis_main.c link error
      ... Or that I should go get a different card? ... You have an Nvidia card, ... that isn't supported by DRI. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: HARDWARE: Open-Source-Friendly Graphics Cards -- Viable?
      ... If it has any chance of being on-par or a little ... I wouldn't buy a card that wouldn't have the three aforementioned features. ... a blurry fast one. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Xorg problem: DRI not being loaded (and so poor OpenGL performance)
      ... Having had months of trying to get ATI's lousy proprietary driver for my card to work, I was happy to discover upon installing the kernel some time ago that the opensource radeon driver now supported my card. ... Until now, I thought this was a problem with the driver, but recently after some research, I found this was a problem to do with DRI being loaded, as part of Xorg. ...
      (Fedora)
    • SID X-4.3.0 and DRI
      ... DRI didn't seem to work anymore for several ... patches from the debian packages already did. ... My card is a tdfx ...
      (Debian-User)
    • Re: [opensuse] Still having problems with xorg and video
      ... Jim Flanagan wrote: ... My xorg.cong contains all these lines, except the "dri". ... Sounds like it is seeing the card correctly and I'm pretty ... I had previously updated all xorg stuff ...
      (SuSE)