Re: [PATCH] PCI Update for 2.6.3-rc1

From: Adam Belay (ambx1_at_neo.rr.com)
Date: 02/10/04

  • Next message: Måns Rullgård: "Re: UTF-8 in file systems? xfs/extfs/etc."
    Date:	Tue, 10 Feb 2004 18:05:04 +0000
    To: Greg KH <greg@kroah.com>
    
    

    On Tue, Feb 10, 2004 at 08:46:12AM -0800, Greg KH wrote:
    > On Tue, Feb 10, 2004 at 05:03:17PM +0100, Geert Uytterhoeven wrote:
    > > On Mon, 9 Feb 2004, Greg KH wrote:
    > > > ChangeSet 1.1500.11.2, 2004/01/30 16:34:48-08:00, ambx1@neo.rr.com
    > > >
    > > > [PATCH] PCI: Remove uneeded resource structures from pci_dev
    > > >
    > > > The following patch remove irq_resource and dma_resource from pci_dev. It
    > > > appears that the serial pci driver depends on irq_resource, however, it may be
    > > > broken portions of an old quirk. I attempted to maintain the existing behavior
    > > > while removing irq_resource. I changed FL_IRQRESOURCE to FL_NOIRQ. Russell,
    > > > could you provide any comments? irq_resource and dma_resource are most likely
    > > > remnants from when pci_dev was shared with pnp.
    > >
    > > FYI, at least one ISDN driver seems to need it as well:
    > >
    > > | drivers/isdn/hardware/avm/b1isa.c: In function `b1isa_init':
    > > | drivers/isdn/hardware/avm/b1isa.c:183: structure has no member named `irq_resource'
    >
    > Ick, I don't really think we want users trying to override the irq
    > number of their pci cards...

    Yeah, I have plans for a struct isa_dev in 2.7. It seems we currently
    have a few cases of drivers sharing pci_dev.

    >
    > Here's the patch that fixes this, and one other isdn driver up. ISDN
    > people, feel free to add this to your huge patch :)
    >
    > thanks,
    >
    > greg k-h
    >

    It occured to me that we also have the following related code in pci.h:

    --- a/include/linux/pci.h 2004-01-09 06:59:33.000000000 +0000
    +++ b/include/linux/pci.h 2004-02-10 17:51:08.000000000 +0000
    @@ -362,8 +362,6 @@
     #define PCI_DMA_NONE 3

     #define DEVICE_COUNT_COMPATIBLE 4
    -#define DEVICE_COUNT_IRQ 2
    -#define DEVICE_COUNT_DMA 2
     #define DEVICE_COUNT_RESOURCE 12

     /*

    Perhaps this should be removed as well?

    A quick compile and cscope didn't reveal any dependencies but it's
    difficult to be positive.

    Thanks,
    Adam
    -
    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: Måns Rullgård: "Re: UTF-8 in file systems? xfs/extfs/etc."

    Relevant Pages

    • Re: [PATCH] PCI Update for 2.6.3-rc1
      ... >> broken portions of an old quirk. ... Here's the patch that fixes this, and one other isdn driver up. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [parisc-linux] Re: [PATCH 3/9] mm: parisc pte atomicity
      ... using your own tmpalias area sounds much better than getting ... I've simply not wrapped my head around the races, ... it looks like we agree that my patch is necessary and valid as is; ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: keyboard - was: Re: Linux 2.6.0-test4
      ... >> I was able to get the key unstuck by switching back and forth between ... I rebuild my kernel including your patch; ... I'll get back to you once I verify that the problem doesn't occur ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.0-test8/test9 io scheduler needs tuning?
      ... interactivity with regard to desktop use. ... Going to improve the time info output of the ddd loops to get better data and ... with the patch the hang reported earlier was not encountered again so ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [CFT][PATCH] 2.6.4-rc1 remove x86 boot page tables
      ... > For VISWS I think you actually need to turn paging off explicitly. ... The patch will need a few tweaks but it should be fairly straight forward. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)