Re: Exposing ROM's though sysfs

From: Jon Smirl (jonsmirl_at_yahoo.com)
Date: 07/30/04

  • Next message: Andrew Morton: "Re: [PATCH] Improve pci_alloc_consistent wrapper on preemptive kernels"
    Date:	Fri, 30 Jul 2004 13:03:59 -0700 (PDT)
    To: Martin Mares <mj@ucw.cz>
    
    

    From what I know minimal decoder cards are ancient PCI cards. None of
    the current hardware does this.

    Caching would only occur:
    1) when a kernel driver for the card loads
    2) and if the kernel driver asks for it

    So normal hardware would never ask for the cache since it isn't needed.
    In the normal hardware case direct ROM access is used. If the
    minimalistic hardware is using a user space driver it won't ask for the
    cache either. The only time you get cached is on minimal hardware and
    when the driver asks for it. Since the driver is asking for the cache
    you have to assume that it needs it so the memory isn't wasted.

    --- Martin Mares <mj@ucw.cz> wrote:

    > Hello!
    >
    > > The caching is only going to happen for cards with minimal address
    > > decoder implementations. As far as I know there is only one card
    > that
    > > does this.
    >
    > Yes, but ...
    >
    > (1) it doesn't change the fact that the caching is in the vast
    > majority
    > of cases just wasting of RAM, even if it will happen only with a
    > couple
    > of cards.
    >
    > (2) not all drivers dwell in the kernel.
    >
    > I would prefer keeping sysfs access the ROM directly, with a little
    > work-around disabling the sysfs file for the devices known for
    > sharing
    > decoders and to offer a boot-time parameter for forcing the copy in
    > case
    > you really need such feature for that particular device.
    >
    > Have a nice fortnight
    > --
    > Martin `MJ' Mares <mj@ucw.cz>
    > http://atrey.karlin.mff.cuni.cz/~mj/
    > Faculty of Math and Physics, Charles University, Prague, Czech Rep.,
    > Earth
    > return(EIEIO); /* Here-a-bug, There-a-bug... */
    >

    =====
    Jon Smirl
    jonsmirl@yahoo.com

                    
    __________________________________
    Do you Yahoo!?
    Yahoo! Mail - You care about security. So do we.
    http://promotions.yahoo.com/new_mail
    -
    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: Andrew Morton: "Re: [PATCH] Improve pci_alloc_consistent wrapper on preemptive kernels"

    Relevant Pages

    • Re: CT60 / CTPCI / Radeon
      ... >This is a shame that even the PCIBios can not inform driver about the bus ... It means drivers have to be modified for each hardware ... The PCI BIOS which we defined for Milan and Hades provides exactly this ... control to TOS) contains text-mode init code for S3 Trio cards, ...
      (comp.sys.atari.st)
    • RE: FreeBSD bind performance in FreeBSD 7
      ... FreeBSD bind performance in FreeBSD 7 ... network cards, time and time again I see posts here telling people to ... If the same hardware performs ... is a well-written device driver and well-designed hardware. ...
      (freebsd-performance)
    • RE: FreeBSD bind performance in FreeBSD 7
      ... FreeBSD bind performance in FreeBSD 7 ... network cards, time and time again I see posts here telling people to ... If the same hardware performs ... is a well-written device driver and well-designed hardware. ...
      (freebsd-questions)
    • Re: [PATCH 2/3] UIO: Documentation
      ... Please remember that UIO is for industrial I/O cards, ... You'll never see an UIO driver for an USB Scanner or a TV card. ... You will see that an UIO kernel driver for a device ...
      (Linux-Kernel)
    • Re: Graphics card question
      ... > more bucks out of calling them high end workstation cards. ... The driver stack is designed to be very flexible, ... to be done in the hardware, in the hardware driver, or in the directx ... a much cheaper level than if you are running some high end cad app on ...
      (alt.machines.cnc)