* [PATCH 2.6.13-rc4 1/1] pci_ids: patch for Intel ICH7R
@ 2005-07-29 16:24 Jason Gaston
2005-07-29 21:49 ` Jeff Garzik
0 siblings, 1 reply; 20+ messages in thread
From: Jason Gaston @ 2005-07-29 16:24 UTC (permalink / raw)
To: mj, akpm; +Cc: linux-kernel, jason.d.gaston
Hello,
This patch adds the Intel ICH7R SATA RAID DID to the pci_ids.h file. This patch was built against the 2.6.13-rc4 kernel.
If acceptable, please apply.
Thanks,
Jason Gaston
Signed-off-by: Jason Gaston <Jason.d.gaston@intel.com>
--- linux-2.6.13-rc4/include/linux/pci_ids.h.orig 2005-07-29 09:06:03.841520568 -0700
+++ linux-2.6.13-rc4/include/linux/pci_ids.h 2005-07-29 09:06:42.256680576 -0700
@@ -2454,6 +2454,7 @@
#define PCI_DEVICE_ID_INTEL_ICH7_3 0x27c1
#define PCI_DEVICE_ID_INTEL_ICH7_30 0x27b0
#define PCI_DEVICE_ID_INTEL_ICH7_31 0x27bd
+#define PCI_DEVICE_ID_INTEL_ICH7_4 0x27c3
#define PCI_DEVICE_ID_INTEL_ICH7_5 0x27c4
#define PCI_DEVICE_ID_INTEL_ICH7_6 0x27c5
#define PCI_DEVICE_ID_INTEL_ICH7_7 0x27c8
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 2.6.13-rc4 1/1] pci_ids: patch for Intel ICH7R
2005-07-29 16:24 Jason Gaston
@ 2005-07-29 21:49 ` Jeff Garzik
0 siblings, 0 replies; 20+ messages in thread
From: Jeff Garzik @ 2005-07-29 21:49 UTC (permalink / raw)
To: Jason Gaston; +Cc: mj, akpm, linux-kernel
Jason Gaston wrote:
> Hello,
>
> This patch adds the Intel ICH7R SATA RAID DID to the pci_ids.h file. This patch was built against the 2.6.13-rc4 kernel.
> If acceptable, please apply.
>
> Thanks,
>
> Jason Gaston
>
> Signed-off-by: Jason Gaston <Jason.d.gaston@intel.com>
>
> --- linux-2.6.13-rc4/include/linux/pci_ids.h.orig 2005-07-29 09:06:03.841520568 -0700
> +++ linux-2.6.13-rc4/include/linux/pci_ids.h 2005-07-29 09:06:42.256680576 -0700
> @@ -2454,6 +2454,7 @@
> #define PCI_DEVICE_ID_INTEL_ICH7_3 0x27c1
> #define PCI_DEVICE_ID_INTEL_ICH7_30 0x27b0
> #define PCI_DEVICE_ID_INTEL_ICH7_31 0x27bd
> +#define PCI_DEVICE_ID_INTEL_ICH7_4 0x27c3
> #define PCI_DEVICE_ID_INTEL_ICH7_5 0x27c4
> #define PCI_DEVICE_ID_INTEL_ICH7_6 0x27c5
> #define PCI_DEVICE_ID_INTEL_ICH7_7 0x27c8
Where is this actually used?
I purposefully do not use PCI_DEVICE_ID_xxx in my drivers, because I
feel that linux/pci_ids.h is constantly patched for little value.
Device ids, unlike vendor ids, are largely single-use constants.
Jeff
^ permalink raw reply [flat|nested] 20+ messages in thread
* RE: [PATCH 2.6.13-rc4 1/1] pci_ids: patch for Intel ICH7R
@ 2005-07-29 21:55 Gaston, Jason D
2005-07-29 22:21 ` Jeff Garzik
0 siblings, 1 reply; 20+ messages in thread
From: Gaston, Jason D @ 2005-07-29 21:55 UTC (permalink / raw)
To: Jeff Garzik; +Cc: mj, akpm, linux-kernel
This define is not actually used anywhere that I know of. I just wanted
to be consistent and correct, following what was previously done. I
have been wondering if I should be adding devices to the pci_ids.h file
that are not being currently used. It seems like most drivers are not
using these defines and are just using the DID's directly. In the
future, should I only be add devices that are actually using the defines
somewhere?
Thanks,
Jason
>-----Original Message-----
>From: Jeff Garzik [mailto:jgarzik@pobox.com]
>Sent: Friday, July 29, 2005 2:49 PM
>To: Gaston, Jason D
>Cc: mj@ucw.cz; akpm@osdl.org; linux-kernel@vger.kernel.org
>Subject: Re: [PATCH 2.6.13-rc4 1/1] pci_ids: patch for Intel ICH7R
>
>Jason Gaston wrote:
>> Hello,
>>
>> This patch adds the Intel ICH7R SATA RAID DID to the pci_ids.h file.
>This patch was built against the 2.6.13-rc4 kernel.
>> If acceptable, please apply.
>>
>> Thanks,
>>
>> Jason Gaston
>>
>> Signed-off-by: Jason Gaston <Jason.d.gaston@intel.com>
>>
>> --- linux-2.6.13-rc4/include/linux/pci_ids.h.orig 2005-07-29
>09:06:03.841520568 -0700
>> +++ linux-2.6.13-rc4/include/linux/pci_ids.h 2005-07-29
>09:06:42.256680576 -0700
>> @@ -2454,6 +2454,7 @@
>> #define PCI_DEVICE_ID_INTEL_ICH7_3 0x27c1
>> #define PCI_DEVICE_ID_INTEL_ICH7_30 0x27b0
>> #define PCI_DEVICE_ID_INTEL_ICH7_31 0x27bd
>> +#define PCI_DEVICE_ID_INTEL_ICH7_4 0x27c3
>> #define PCI_DEVICE_ID_INTEL_ICH7_5 0x27c4
>> #define PCI_DEVICE_ID_INTEL_ICH7_6 0x27c5
>> #define PCI_DEVICE_ID_INTEL_ICH7_7 0x27c8
>
>Where is this actually used?
>
>I purposefully do not use PCI_DEVICE_ID_xxx in my drivers, because I
>feel that linux/pci_ids.h is constantly patched for little value.
>
>Device ids, unlike vendor ids, are largely single-use constants.
>
> Jeff
>
>
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 2.6.13-rc4 1/1] pci_ids: patch for Intel ICH7R
2005-07-29 21:55 [PATCH 2.6.13-rc4 1/1] pci_ids: patch for Intel ICH7R Gaston, Jason D
@ 2005-07-29 22:21 ` Jeff Garzik
2005-07-29 22:26 ` Andrew Morton
` (2 more replies)
0 siblings, 3 replies; 20+ messages in thread
From: Jeff Garzik @ 2005-07-29 22:21 UTC (permalink / raw)
To: Gaston, Jason D; +Cc: mj, akpm, linux-kernel, Greg KH
Gaston, Jason D wrote:
> This define is not actually used anywhere that I know of. I just wanted
> to be consistent and correct, following what was previously done. I
> have been wondering if I should be adding devices to the pci_ids.h file
> that are not being currently used. It seems like most drivers are not
> using these defines and are just using the DID's directly. In the
> future, should I only be add devices that are actually using the defines
> somewhere?
There's no clear policy, but that is my general recommendation: Just
add IDs to pci.ids at sourceforge.net as soon as their public, and then,
add constants to include/linux/pci_ids.h as they are required in the code.
I would -prefer- that this be kernel policy, but I can only speak for
IDs used [or not] in my drivers. It just seems silly to add constants
that are never used, though.
[speaking to the audience] I wouldn't mind if someone did a pass
through pci_ids.h and removed all the constants that are not being used.
If constants are not being used, it's IMHO more appropriate to store
that info in pci.ids.
Jeff
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 2.6.13-rc4 1/1] pci_ids: patch for Intel ICH7R
2005-07-29 22:21 ` Jeff Garzik
@ 2005-07-29 22:26 ` Andrew Morton
2005-07-29 22:29 ` Jeff Garzik
2005-07-30 2:28 ` Grant Coady
2005-07-30 9:42 ` Grant Coady
2 siblings, 1 reply; 20+ messages in thread
From: Andrew Morton @ 2005-07-29 22:26 UTC (permalink / raw)
To: Jeff Garzik; +Cc: jason.d.gaston, mj, linux-kernel, gregkh
Jeff Garzik <jgarzik@pobox.com> wrote:
>
> [speaking to the audience] I wouldn't mind if someone did a pass
> through pci_ids.h and removed all the constants that are not being used.
> If constants are not being used, it's IMHO more appropriate to store
> that info in pci.ids.
It looks like Greg is planning on nuking pci.ids.
>From owner-linux-pci@atrey.karlin.mff.cuni.cz Sat Jul 16 21:07:30 2005
Date: Sun, 17 Jul 2005 04:22:20 +0200
From: Adrian Bunk <bunk@stusta.de>
To: Greg Kroah-Hartman <gregkh@suse.de>
Cc: mj@ucw.cz
Subject: PCI: remove CONFIG_PCI_NAMES
Message-ID: <20050717022220.GC3613@stusta.de>
This patch removes CONFIG_PCI_NAMES.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
Documentation/feature-removal-schedule.txt | 9
MAINTAINERS | 7
arch/alpha/kernel/sys_marvel.c | 5
arch/ppc64/kernel/eeh.c | 31
arch/ppc64/kernel/iSeries_VpdInfo.c | 5
arch/ppc64/kernel/pci.c | 1
drivers/char/drm/drmP.h | 4
drivers/infiniband/hw/mthca/mthca_main.c | 8
drivers/infiniband/hw/mthca/mthca_reset.c | 8
drivers/net/irda/vlsi_ir.h | 6
drivers/pci/Kconfig | 17
drivers/pci/Makefile | 18
drivers/pci/gen-devlist.c | 132
drivers/pci/names.c | 137
drivers/pci/pci.ids |10180 -----------------------------
drivers/pci/probe.c | 2
drivers/pci/proc.c | 12
drivers/usb/core/hcd-pci.c | 4
drivers/video/nvidia/nvidia.c | 4
drivers/video/riva/fbdev.c | 4
include/linux/pci.h | 14
21 files changed, 32 insertions(+), 10576 deletions(-)
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 2.6.13-rc4 1/1] pci_ids: patch for Intel ICH7R
2005-07-29 22:26 ` Andrew Morton
@ 2005-07-29 22:29 ` Jeff Garzik
0 siblings, 0 replies; 20+ messages in thread
From: Jeff Garzik @ 2005-07-29 22:29 UTC (permalink / raw)
To: Andrew Morton; +Cc: jason.d.gaston, mj, linux-kernel, gregkh
Andrew Morton wrote:
> Jeff Garzik <jgarzik@pobox.com> wrote:
>
>>[speaking to the audience] I wouldn't mind if someone did a pass
>>through pci_ids.h and removed all the constants that are not being used.
>> If constants are not being used, it's IMHO more appropriate to store
>>that info in pci.ids.
>
>
> It looks like Greg is planning on nuking pci.ids.
From the kernel, yes, that's been long planned. But not from existence.
The kernel source code is an inappropriate place to store random hex
numbers that the kernel itself does not use.
Or IOW, we shouldn't be knowingly storing dead code in linux/pci_ids.h :)
Jeff
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 2.6.13-rc4 1/1] pci_ids: patch for Intel ICH7R
2005-07-29 22:21 ` Jeff Garzik
2005-07-29 22:26 ` Andrew Morton
@ 2005-07-30 2:28 ` Grant Coady
2005-07-30 3:52 ` Jeff Garzik
2005-07-30 9:42 ` Grant Coady
2 siblings, 1 reply; 20+ messages in thread
From: Grant Coady @ 2005-07-30 2:28 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Gaston, Jason D, mj, akpm, linux-kernel, Greg KH
On Fri, 29 Jul 2005 18:21:05 -0400, Jeff Garzik <jgarzik@pobox.com> wrote:
>
>[speaking to the audience] I wouldn't mind if someone did a pass
>through pci_ids.h and removed all the constants that are not being used.
Only these seem not referenced by source:
PCI_CLASS_SYSTEM_PCI_HOTPLUG
PCI_DEVICE_ID_CYRIX_PCI_MASTER
PCI_DEVICE_ID_HP_PCI_LBA
PCI_DEVICE_ID_NP_PCI_FDDI
PCI_DEVICE_ID_UPCI_RM3_4PORT
PCI_DEVICE_ID_UPCI_RM3_8PORT
Source macros refer to:
BROOKTREE sound/pci/bt87x.c
YAMAHA sound/oss/ymfpci.c
6 from 2329 entries hardly worth it?
Grant.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 2.6.13-rc4 1/1] pci_ids: patch for Intel ICH7R
2005-07-30 2:28 ` Grant Coady
@ 2005-07-30 3:52 ` Jeff Garzik
2005-07-30 4:54 ` Grant Coady
0 siblings, 1 reply; 20+ messages in thread
From: Jeff Garzik @ 2005-07-30 3:52 UTC (permalink / raw)
To: lkml; +Cc: Gaston, Jason D, mj, akpm, linux-kernel, Greg KH
Grant Coady wrote:
> On Fri, 29 Jul 2005 18:21:05 -0400, Jeff Garzik <jgarzik@pobox.com> wrote:
>
>>[speaking to the audience] I wouldn't mind if someone did a pass
>>through pci_ids.h and removed all the constants that are not being used.
>
>
> Only these seem not referenced by source:
> PCI_CLASS_SYSTEM_PCI_HOTPLUG
> PCI_DEVICE_ID_CYRIX_PCI_MASTER
> PCI_DEVICE_ID_HP_PCI_LBA
> PCI_DEVICE_ID_NP_PCI_FDDI
> PCI_DEVICE_ID_UPCI_RM3_4PORT
> PCI_DEVICE_ID_UPCI_RM3_8PORT
>
> Source macros refer to:
> BROOKTREE sound/pci/bt87x.c
> YAMAHA sound/oss/ymfpci.c
>
> 6 from 2329 entries hardly worth it?
However you did your search, you did it wrong. The very first two
entries I tried had zero uses:
[jgarzik@pretzel linux-2.6]$ grepsrc ICH7_22
./include/linux/pci_ids.h:#define PCI_DEVICE_ID_INTEL_ICH7_22 0x27e0
[jgarzik@pretzel linux-2.6]$ grepsrc ICH7_23
./include/linux/pci_ids.h:#define PCI_DEVICE_ID_INTEL_ICH7_23 0x27e2
[jgarzik@pretzel linux-2.6]$
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 2.6.13-rc4 1/1] pci_ids: patch for Intel ICH7R
2005-07-30 3:52 ` Jeff Garzik
@ 2005-07-30 4:54 ` Grant Coady
2005-08-11 19:22 ` Jeff Garzik
2005-09-11 3:11 ` Greg KH
0 siblings, 2 replies; 20+ messages in thread
From: Grant Coady @ 2005-07-30 4:54 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Gaston, Jason D, mj, akpm, linux-kernel, Greg KH
On Fri, 29 Jul 2005 23:52:39 -0400, Jeff Garzik <jgarzik@pobox.com> wrote:
>
>However you did your search, you did it wrong. The very first two
>entries I tried had zero uses:
>
>[jgarzik@pretzel linux-2.6]$ grepsrc ICH7_22
>./include/linux/pci_ids.h:#define PCI_DEVICE_ID_INTEL_ICH7_22 0x27e0
>[jgarzik@pretzel linux-2.6]$ grepsrc ICH7_23
>./include/linux/pci_ids.h:#define PCI_DEVICE_ID_INTEL_ICH7_23 0x27e2
>[jgarzik@pretzel linux-2.6]$
Sorry Jeff, excluding "include/linux/pci_ids.h" makes a huge difference :o)
Does roughly 1/3 unused:
63065 2005-07-30 14:51 pci_ids-list
19243 2005-07-30 14:52 pci_ids-not_used
Seem in ballpark?
Thanks,
Grant.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 2.6.13-rc4 1/1] pci_ids: patch for Intel ICH7R
2005-07-29 22:21 ` Jeff Garzik
2005-07-29 22:26 ` Andrew Morton
2005-07-30 2:28 ` Grant Coady
@ 2005-07-30 9:42 ` Grant Coady
2005-08-11 19:23 ` Jeff Garzik
2 siblings, 1 reply; 20+ messages in thread
From: Grant Coady @ 2005-07-30 9:42 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Gaston, Jason D, mj, akpm, linux-kernel, Greg KH
On Fri, 29 Jul 2005 18:21:05 -0400, Jeff Garzik <jgarzik@pobox.com> wrote:
>
>[speaking to the audience] I wouldn't mind if someone did a pass
>through pci_ids.h and removed all the constants that are not being used.
> If constants are not being used, it's IMHO more appropriate to store
>that info in pci.ids.
For:
linux-2.6.13-rc4:
118 pci_ids-defined_elsewhere-files
475 pci_ids-defined_elsewhere-items
7 pci_ids-duplicate-items
2321 pci_ids-list
725 pci_ids-not_used
linux-2.6.13-rc3-mm3:
119 pci_ids-defined_elsewhere-files
475 pci_ids-defined_elsewhere-items
7 pci_ids-duplicate-items
2325 pci_ids-list
723 pci_ids-not_used
Should the 'defined elsewhere' items be brought into the one
pci_ids.h file? Testing will take time. Patch is ~70kB.
Grant.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 2.6.13-rc4 1/1] pci_ids: patch for Intel ICH7R
2005-07-30 4:54 ` Grant Coady
@ 2005-08-11 19:22 ` Jeff Garzik
2005-09-11 3:11 ` Greg KH
1 sibling, 0 replies; 20+ messages in thread
From: Jeff Garzik @ 2005-08-11 19:22 UTC (permalink / raw)
To: lkml; +Cc: Gaston, Jason D, mj, akpm, linux-kernel, Greg KH
Grant Coady wrote:
> Does roughly 1/3 unused:
>
> 63065 2005-07-30 14:51 pci_ids-list
> 19243 2005-07-30 14:52 pci_ids-not_used
>
> Seem in ballpark?
Yes.
Jeff
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 2.6.13-rc4 1/1] pci_ids: patch for Intel ICH7R
2005-07-30 9:42 ` Grant Coady
@ 2005-08-11 19:23 ` Jeff Garzik
0 siblings, 0 replies; 20+ messages in thread
From: Jeff Garzik @ 2005-08-11 19:23 UTC (permalink / raw)
To: lkml; +Cc: Gaston, Jason D, mj, akpm, linux-kernel, Greg KH
Grant Coady wrote:
> For:
>
> linux-2.6.13-rc4:
> 118 pci_ids-defined_elsewhere-files
> 475 pci_ids-defined_elsewhere-items
> 7 pci_ids-duplicate-items
> 2321 pci_ids-list
> 725 pci_ids-not_used
>
> linux-2.6.13-rc3-mm3:
> 119 pci_ids-defined_elsewhere-files
> 475 pci_ids-defined_elsewhere-items
> 7 pci_ids-duplicate-items
> 2325 pci_ids-list
> 723 pci_ids-not_used
>
> Should the 'defined elsewhere' items be brought into the one
> pci_ids.h file? Testing will take time. Patch is ~70kB.
Separate change, separate patch.
Jeff
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 2.6.13-rc4 1/1] pci_ids: patch for Intel ICH7R
2005-07-30 4:54 ` Grant Coady
2005-08-11 19:22 ` Jeff Garzik
@ 2005-09-11 3:11 ` Greg KH
2005-09-11 8:00 ` Grant Coady
1 sibling, 1 reply; 20+ messages in thread
From: Greg KH @ 2005-09-11 3:11 UTC (permalink / raw)
To: Grant Coady; +Cc: Jeff Garzik, Gaston, Jason D, mj, akpm, linux-kernel, Greg KH
On Sat, Jul 30, 2005 at 02:54:17PM +1000, Grant Coady wrote:
> On Fri, 29 Jul 2005 23:52:39 -0400, Jeff Garzik <jgarzik@pobox.com> wrote:
> >
> >However you did your search, you did it wrong. The very first two
> >entries I tried had zero uses:
> >
> >[jgarzik@pretzel linux-2.6]$ grepsrc ICH7_22
> >./include/linux/pci_ids.h:#define PCI_DEVICE_ID_INTEL_ICH7_22 0x27e0
> >[jgarzik@pretzel linux-2.6]$ grepsrc ICH7_23
> >./include/linux/pci_ids.h:#define PCI_DEVICE_ID_INTEL_ICH7_23 0x27e2
> >[jgarzik@pretzel linux-2.6]$
>
> Sorry Jeff, excluding "include/linux/pci_ids.h" makes a huge difference :o)
>
> Does roughly 1/3 unused:
>
> 63065 2005-07-30 14:51 pci_ids-list
> 19243 2005-07-30 14:52 pci_ids-not_used
>
> Seem in ballpark?
Great, care to send me a patch that trims this file down?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 2.6.13-rc4 1/1] pci_ids: patch for Intel ICH7R
2005-09-11 3:11 ` Greg KH
@ 2005-09-11 8:00 ` Grant Coady
2005-09-11 8:51 ` Jeff Garzik
0 siblings, 1 reply; 20+ messages in thread
From: Grant Coady @ 2005-09-11 8:00 UTC (permalink / raw)
To: Greg KH
Cc: Grant Coady, Jeff Garzik, Gaston, Jason D, mj, akpm, linux-kernel,
Greg KH
On Sat, 10 Sep 2005 20:11:50 -0700, Greg KH <greg@kroah.com> wrote:
>On Sat, Jul 30, 2005 at 02:54:17PM +1000, Grant Coady wrote:
>> On Fri, 29 Jul 2005 23:52:39 -0400, Jeff Garzik <jgarzik@pobox.com> wrote:
>> >
>> >However you did your search, you did it wrong. The very first two
>> >entries I tried had zero uses:
>> >
>> >[jgarzik@pretzel linux-2.6]$ grepsrc ICH7_22
>> >./include/linux/pci_ids.h:#define PCI_DEVICE_ID_INTEL_ICH7_22 0x27e0
>> >[jgarzik@pretzel linux-2.6]$ grepsrc ICH7_23
>> >./include/linux/pci_ids.h:#define PCI_DEVICE_ID_INTEL_ICH7_23 0x27e2
>> >[jgarzik@pretzel linux-2.6]$
>>
>> Sorry Jeff, excluding "include/linux/pci_ids.h" makes a huge difference :o)
>>
>> Does roughly 1/3 unused:
>>
>> 63065 2005-07-30 14:51 pci_ids-list
>> 19243 2005-07-30 14:52 pci_ids-not_used
>>
>> Seem in ballpark?
>
>Great, care to send me a patch that trims this file down?
Just ran the discovery script on 2.6.13.mm2, there's roughly 1609
symbols unused in pci_ids.h, another 1030 are defined throughout the
source tree, leaving 729 in pci_ids.h. Total unique symbols is 1030.
Not counted are macro defined symbols:
PCI_DEVICE_ID_##id
PCI_DEVICE_ID_##v##_##d
PCI_DEVICE_ID_BROOKTREE_##chip
PCI_VENDOR_ID_##v
from:
linux-2.6.13-mm2/drivers/video/cirrusfb.c
linux-2.6.13-mm2/sound/oss/ymfpci.c
linux-2.6.13-mm2/sound/pci/bt87x.c
What is the goal here? Is a comment stripped, non-duplicate pci_ids.h
with a reference to source site okay?
Should the various distributed defines be collected to the one header
file and that header be include'd to those files? It seems pci_ids.h
is redundant.
Thanks,
Grant.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 2.6.13-rc4 1/1] pci_ids: patch for Intel ICH7R
2005-09-11 8:00 ` Grant Coady
@ 2005-09-11 8:51 ` Jeff Garzik
2005-09-11 20:40 ` Grant Coady
` (2 more replies)
0 siblings, 3 replies; 20+ messages in thread
From: Jeff Garzik @ 2005-09-11 8:51 UTC (permalink / raw)
To: Grant Coady
Cc: Greg KH, Grant Coady, Gaston, Jason D, mj, akpm, linux-kernel,
Greg KH
Grant Coady wrote:
> Just ran the discovery script on 2.6.13.mm2, there's roughly 1609
> symbols unused in pci_ids.h, another 1030 are defined throughout the
> source tree, leaving 729 in pci_ids.h. Total unique symbols is 1030.
> Not counted are macro defined symbols:
>
> PCI_DEVICE_ID_##id
> PCI_DEVICE_ID_##v##_##d
> PCI_DEVICE_ID_BROOKTREE_##chip
> PCI_VENDOR_ID_##v
>
> from:
>
> linux-2.6.13-mm2/drivers/video/cirrusfb.c
> linux-2.6.13-mm2/sound/oss/ymfpci.c
> linux-2.6.13-mm2/sound/pci/bt87x.c
>
>
> What is the goal here? Is a comment stripped, non-duplicate pci_ids.h
> with a reference to source site okay?
Not sure what your last question is asking. The current goal is to
remove completely unused symbols from pci_ids.h, nothing more.
> Should the various distributed defines be collected to the one header
> file and that header be include'd to those files? It seems pci_ids.h
> is redundant.
pci_ids.h should be the place where PCI IDs (class, vendor, device) are
collected.
Long term, we should be able to trim a lot of device ids, since they are
usually only used in one place.
Jeff
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 2.6.13-rc4 1/1] pci_ids: patch for Intel ICH7R
2005-09-11 8:51 ` Jeff Garzik
@ 2005-09-11 20:40 ` Grant Coady
2005-09-13 6:46 ` Grant
2005-11-02 5:38 ` Grant Coady
2 siblings, 0 replies; 20+ messages in thread
From: Grant Coady @ 2005-09-11 20:40 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Greg KH, Gaston, Jason D, mj, akpm, linux-kernel, Greg KH
On Sun, 11 Sep 2005 04:51:10 -0400, Jeff Garzik <jgarzik@pobox.com> wrote:
>Grant Coady wrote:
>> Just ran the discovery script on 2.6.13.mm2, there's roughly 1609
>> symbols unused in pci_ids.h, another 1030 are defined throughout the
>> source tree, leaving 729 in pci_ids.h. Total unique symbols is 1030.
>> Not counted are macro defined symbols:
>>
>> PCI_DEVICE_ID_##id
>> PCI_DEVICE_ID_##v##_##d
>> PCI_DEVICE_ID_BROOKTREE_##chip
>> PCI_VENDOR_ID_##v
>>
>> from:
>>
>> linux-2.6.13-mm2/drivers/video/cirrusfb.c
>> linux-2.6.13-mm2/sound/oss/ymfpci.c
>> linux-2.6.13-mm2/sound/pci/bt87x.c
>>
>>
>> What is the goal here? Is a comment stripped, non-duplicate pci_ids.h
>> with a reference to source site okay?
>
>Not sure what your last question is asking. The current goal is to
>remove completely unused symbols from pci_ids.h, nothing more.
Okay, ignore this part, I was thinking something else.
>
>
>> Should the various distributed defines be collected to the one header
>> file and that header be include'd to those files? It seems pci_ids.h
>> is redundant.
>
>pci_ids.h should be the place where PCI IDs (class, vendor, device) are
>collected.
Okay.
>
>Long term, we should be able to trim a lot of device ids, since they are
>usually only used in one place.
Okay, dunno when, need to fix script and test some more, it's eating
live symbols :( Long time since I looked at this area.
Grant.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 2.6.13-rc4 1/1] pci_ids: patch for Intel ICH7R
2005-09-11 8:51 ` Jeff Garzik
2005-09-11 20:40 ` Grant Coady
@ 2005-09-13 6:46 ` Grant
2005-09-13 7:03 ` Greg KH
2005-11-02 5:38 ` Grant Coady
2 siblings, 1 reply; 20+ messages in thread
From: Grant @ 2005-09-13 6:46 UTC (permalink / raw)
To: Jeff Garzik
Cc: Grant Coady, Greg KH, Gaston, Jason D, mj, akpm, linux-kernel,
Greg KH
On Sun, 11 Sep 2005 04:51:10 -0400, Jeff Garzik <jgarzik@pobox.com> wrote:
>
>pci_ids.h should be the place where PCI IDs (class, vendor, device) are
>collected.
Few files reference it.
>
>Long term, we should be able to trim a lot of device ids, since they are
>usually only used in one place.
Well, they're not, and trimming a file marked for removal is pointless.
Grant.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 2.6.13-rc4 1/1] pci_ids: patch for Intel ICH7R
2005-09-13 6:46 ` Grant
@ 2005-09-13 7:03 ` Greg KH
2005-09-13 8:14 ` Grant Coady
0 siblings, 1 reply; 20+ messages in thread
From: Greg KH @ 2005-09-13 7:03 UTC (permalink / raw)
To: Grant
Cc: Jeff Garzik, Grant Coady, Greg KH, Gaston, Jason D, mj, akpm,
linux-kernel
On Tue, Sep 13, 2005 at 04:46:45PM +1000, Grant wrote:
> On Sun, 11 Sep 2005 04:51:10 -0400, Jeff Garzik <jgarzik@pobox.com> wrote:
> >
> >pci_ids.h should be the place where PCI IDs (class, vendor, device) are
> >collected.
>
> Few files reference it.
include/pci.h does, so pretty much every pci driver does because of
that.
> >Long term, we should be able to trim a lot of device ids, since they are
> >usually only used in one place.
>
> Well, they're not, and trimming a file marked for removal is pointless.
Huh? That file isn't marked for removal, that was the id database,
which is now gone...
thanks,
greg k-h
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 2.6.13-rc4 1/1] pci_ids: patch for Intel ICH7R
2005-09-13 7:03 ` Greg KH
@ 2005-09-13 8:14 ` Grant Coady
0 siblings, 0 replies; 20+ messages in thread
From: Grant Coady @ 2005-09-13 8:14 UTC (permalink / raw)
To: Greg KH; +Cc: Jeff Garzik, Greg KH, Gaston, Jason D, mj, akpm, linux-kernel
On Tue, 13 Sep 2005 00:03:24 -0700, Greg KH <gregkh@suse.de> wrote:
>On Tue, Sep 13, 2005 at 04:46:45PM +1000, Grant wrote:
>> On Sun, 11 Sep 2005 04:51:10 -0400, Jeff Garzik <jgarzik@pobox.com> wrote:
>> >
>> >pci_ids.h should be the place where PCI IDs (class, vendor, device) are
>> >collected.
>>
>> Few files reference it.
>
>include/pci.h does, so pretty much every pci driver does because of
>that.
That's probably the little aspect I missed :) Something wasn't making
sense to me.
>
>> >Long term, we should be able to trim a lot of device ids, since they are
>> >usually only used in one place.
>>
>> Well, they're not, and trimming a file marked for removal is pointless.
>
>Huh? That file isn't marked for removal, that was the id database,
>which is now gone...
Ahh, that explains my confusion, I'll have another look at it.
Grant.
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [PATCH 2.6.13-rc4 1/1] pci_ids: patch for Intel ICH7R
2005-09-11 8:51 ` Jeff Garzik
2005-09-11 20:40 ` Grant Coady
2005-09-13 6:46 ` Grant
@ 2005-11-02 5:38 ` Grant Coady
2 siblings, 0 replies; 20+ messages in thread
From: Grant Coady @ 2005-11-02 5:38 UTC (permalink / raw)
To: Jeff Garzik
Cc: Greg KH, Grant Coady, Gaston, Jason D, mj, akpm, linux-kernel,
Greg KH
Jeff Garzik wrote:
>
> pci_ids.h should be the place where PCI IDs (class, vendor, device) are
> collected.
>
> Long term, we should be able to trim a lot of device ids, since they are
> usually only used in one place.
>
These two sentences seem mutually exclusive to me, you want pci_ids collected
in the header file, _and_ then trim single use IDs from which: the header,
or the source.c file defining them? Present usage is ~50/50, which way to
go?
Grant.
^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~2005-11-02 5:38 UTC | newest]
Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-29 21:55 [PATCH 2.6.13-rc4 1/1] pci_ids: patch for Intel ICH7R Gaston, Jason D
2005-07-29 22:21 ` Jeff Garzik
2005-07-29 22:26 ` Andrew Morton
2005-07-29 22:29 ` Jeff Garzik
2005-07-30 2:28 ` Grant Coady
2005-07-30 3:52 ` Jeff Garzik
2005-07-30 4:54 ` Grant Coady
2005-08-11 19:22 ` Jeff Garzik
2005-09-11 3:11 ` Greg KH
2005-09-11 8:00 ` Grant Coady
2005-09-11 8:51 ` Jeff Garzik
2005-09-11 20:40 ` Grant Coady
2005-09-13 6:46 ` Grant
2005-09-13 7:03 ` Greg KH
2005-09-13 8:14 ` Grant Coady
2005-11-02 5:38 ` Grant Coady
2005-07-30 9:42 ` Grant Coady
2005-08-11 19:23 ` Jeff Garzik
-- strict thread matches above, loose matches on Subject: below --
2005-07-29 16:24 Jason Gaston
2005-07-29 21:49 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox