* [PATCH RESEND] agp: fix SIS 5591/5592 wrong PCI id
@ 2008-08-10 20:54 Krzysztof Helt
2008-08-12 0:08 ` Andrew Morton
0 siblings, 1 reply; 3+ messages in thread
From: Krzysztof Helt @ 2008-08-10 20:54 UTC (permalink / raw)
To: airlied, Andrew Morton; +Cc: linux-kernel
From: Krzysztof Helt <krzysztof.h1@wp.pl>
The correct id for the AGP bridge is the id of
the main host (5591) not the id of the PCI-to-PCI
bridge AGP (0001). Output from "lspci -nv" shows
that only the former has AGP capabilities flag set:
00:00.0 0600: 1039:5591 (rev 02)
Flags: bus master, medium devsel, latency 64
Memory at ec000000 (32-bit, non-prefetchable) [size=32M]
Capabilities: [c0] AGP version 1.0
00:02.0 0604: 1039:0001 (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 0000c000-0000cfff
Memory behind bridge: eb500000-eb5fffff
Prefetchable memory behind bridge: eb300000-eb3fffff
Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
---
The AGP bridge is correctly detected with the patch applied.
I have tested it on PC Chips M570 motherboard.
--- linux-mm/drivers/char/agp/sis-agp.c~ 2008-08-04 18:00:31.133979040 +0200
+++ linux-mm/drivers/char/agp/sis-agp.c 2008-08-06 18:33:02.162916563 +0200
@@ -241,7 +241,7 @@ static struct pci_device_id agp_sis_pci_
.class = (PCI_CLASS_BRIDGE_HOST << 8),
.class_mask = ~0,
.vendor = PCI_VENDOR_ID_SI,
- .device = PCI_DEVICE_ID_SI_5591_AGP,
+ .device = PCI_DEVICE_ID_SI_5591,
.subvendor = PCI_ANY_ID,
.subdevice = PCI_ANY_ID,
},
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH RESEND] agp: fix SIS 5591/5592 wrong PCI id
2008-08-10 20:54 [PATCH RESEND] agp: fix SIS 5591/5592 wrong PCI id Krzysztof Helt
@ 2008-08-12 0:08 ` Andrew Morton
2008-08-12 4:31 ` Krzysztof Helt
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2008-08-12 0:08 UTC (permalink / raw)
To: Krzysztof Helt; +Cc: airlied, linux-kernel, stable
On Sun, 10 Aug 2008 22:54:52 +0200
Krzysztof Helt <krzysztof.h1@wp.pl> wrote:
> From: Krzysztof Helt <krzysztof.h1@wp.pl>
>
> The correct id for the AGP bridge is the id of
> the main host (5591) not the id of the PCI-to-PCI
> bridge AGP (0001). Output from "lspci -nv" shows
> that only the former has AGP capabilities flag set:
>
> 00:00.0 0600: 1039:5591 (rev 02)
> Flags: bus master, medium devsel, latency 64
> Memory at ec000000 (32-bit, non-prefetchable) [size=32M]
> Capabilities: [c0] AGP version 1.0
>
> 00:02.0 0604: 1039:0001 (prog-if 00 [Normal decode])
> Flags: bus master, fast devsel, latency 0
> Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
> I/O behind bridge: 0000c000-0000cfff
> Memory behind bridge: eb500000-eb5fffff
> Prefetchable memory behind bridge: eb300000-eb3fffff
>
>
> Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
> ---
>
> The AGP bridge is correctly detected with the patch applied.
> I have tested it on PC Chips M570 motherboard.
>
> --- linux-mm/drivers/char/agp/sis-agp.c~ 2008-08-04 18:00:31.133979040 +0200
> +++ linux-mm/drivers/char/agp/sis-agp.c 2008-08-06 18:33:02.162916563 +0200
> @@ -241,7 +241,7 @@ static struct pci_device_id agp_sis_pci_
> .class = (PCI_CLASS_BRIDGE_HOST << 8),
> .class_mask = ~0,
> .vendor = PCI_VENDOR_ID_SI,
> - .device = PCI_DEVICE_ID_SI_5591_AGP,
> + .device = PCI_DEVICE_ID_SI_5591,
> .subvendor = PCI_ANY_ID,
> .subdevice = PCI_ANY_ID,
> },
This fix appears to be applicable to both 2.6.25.x and to 2.6.26.x. Do you
think that the problem which it solves is sufficiently serious to
warrant the backport?
Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH RESEND] agp: fix SIS 5591/5592 wrong PCI id
2008-08-12 0:08 ` Andrew Morton
@ 2008-08-12 4:31 ` Krzysztof Helt
0 siblings, 0 replies; 3+ messages in thread
From: Krzysztof Helt @ 2008-08-12 4:31 UTC (permalink / raw)
To: Andrew Morton; +Cc: airlied, linux-kernel, stable
On Mon, 11 Aug 2008 17:08:03 -0700
Andrew Morton <akpm@linux-foundation.org> wrote:
> On Sun, 10 Aug 2008 22:54:52 +0200
> Krzysztof Helt <krzysztof.h1@wp.pl> wrote:
>
> > From: Krzysztof Helt <krzysztof.h1@wp.pl>
> >
> > The correct id for the AGP bridge is the id of
> > the main host (5591) not the id of the PCI-to-PCI
> > bridge AGP (0001). Output from "lspci -nv" shows
> > that only the former has AGP capabilities flag set:
> >
> > 00:00.0 0600: 1039:5591 (rev 02)
> > Flags: bus master, medium devsel, latency 64
> > Memory at ec000000 (32-bit, non-prefetchable) [size=32M]
> > Capabilities: [c0] AGP version 1.0
> >
> > 00:02.0 0604: 1039:0001 (prog-if 00 [Normal decode])
> > Flags: bus master, fast devsel, latency 0
> > Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
> > I/O behind bridge: 0000c000-0000cfff
> > Memory behind bridge: eb500000-eb5fffff
> > Prefetchable memory behind bridge: eb300000-eb3fffff
> >
> >
> > Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
> > ---
> >
> > The AGP bridge is correctly detected with the patch applied.
> > I have tested it on PC Chips M570 motherboard.
> >
> > --- linux-mm/drivers/char/agp/sis-agp.c~ 2008-08-04 18:00:31.133979040 +0200
> > +++ linux-mm/drivers/char/agp/sis-agp.c 2008-08-06 18:33:02.162916563 +0200
> > @@ -241,7 +241,7 @@ static struct pci_device_id agp_sis_pci_
> > .class = (PCI_CLASS_BRIDGE_HOST << 8),
> > .class_mask = ~0,
> > .vendor = PCI_VENDOR_ID_SI,
> > - .device = PCI_DEVICE_ID_SI_5591_AGP,
> > + .device = PCI_DEVICE_ID_SI_5591,
> > .subvendor = PCI_ANY_ID,
> > .subdevice = PCI_ANY_ID,
> > },
>
> This fix appears to be applicable to both 2.6.25.x and to 2.6.26.x. Do you
> think that the problem which it solves is sufficiently serious to
> warrant the backport?
>
This is old chipset and the error is since kernel 2.6.8 when the
untested support was introduced. I would skip stable branches
as I used it only few days for now. In fact, it is like adding new
hardware which was previously not supported.
Regards,
Krzysztof
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-08-12 4:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-10 20:54 [PATCH RESEND] agp: fix SIS 5591/5592 wrong PCI id Krzysztof Helt
2008-08-12 0:08 ` Andrew Morton
2008-08-12 4:31 ` Krzysztof Helt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®