public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Limit VIA and SIS AGP choices to x86
@ 2006-07-05 17:57 Matthew Wilcox
  2006-07-05 18:10 ` Andrew Morton
  2006-07-05 19:21 ` Dave Jones
  0 siblings, 2 replies; 9+ messages in thread
From: Matthew Wilcox @ 2006-07-05 17:57 UTC (permalink / raw)
  To: Dave Jones; +Cc: linux-kernel, Andrew Morton


As far as I am aware, Alpha, PPC and IA64 don't have VIA or SIS AGP
chipsets available.

Signed-off-by: Matthew Wilcox <matthew@wil.cx>

Index: ./drivers/char/agp/Kconfig
===================================================================
RCS file: /var/cvs/linux-2.6/drivers/char/agp/Kconfig,v
retrieving revision 1.16
diff -u -p -r1.16 Kconfig
--- ./drivers/char/agp/Kconfig	13 Jun 2006 16:25:20 -0000	1.16
+++ ./drivers/char/agp/Kconfig	5 Jul 2006 17:52:48 -0000
@@ -75,8 +75,6 @@ config AGP_INTEL
 	  E7205 and E7505 chipsets and full support for the 810, 815, 830M,
 	  845G, 852GM, 855GM, 865G and I915 integrated graphics chipsets.
 
-
-
 config AGP_NVIDIA
 	tristate "NVIDIA nForce/nForce2 chipset support"
 	depends on AGP && X86_32
@@ -86,7 +84,7 @@ config AGP_NVIDIA
 
 config AGP_SIS
 	tristate "SiS chipset support"
-	depends on AGP
+	depends on AGP && X86
 	help
 	  This option gives you AGP support for the GLX component of
 	  X on Silicon Integrated Systems [SiS] chipsets.
@@ -103,7 +101,7 @@ config AGP_SWORKS
 
 config AGP_VIA
 	tristate "VIA chipset support"
-	depends on AGP
+	depends on AGP && X86
 	help
 	  This option gives you AGP support for the GLX component of
 	  X on VIA MVP3/Apollo Pro chipsets.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] Limit VIA and SIS AGP choices to x86
  2006-07-05 17:57 [PATCH] Limit VIA and SIS AGP choices to x86 Matthew Wilcox
@ 2006-07-05 18:10 ` Andrew Morton
  2006-07-05 18:24   ` Ben Pfaff
  2006-07-05 19:21 ` Dave Jones
  1 sibling, 1 reply; 9+ messages in thread
From: Andrew Morton @ 2006-07-05 18:10 UTC (permalink / raw)
  To: Matthew Wilcox; +Cc: davej, linux-kernel

On Wed, 5 Jul 2006 11:57:25 -0600
Matthew Wilcox <matthew@wil.cx> wrote:

> As far as I am aware, Alpha, PPC and IA64 don't have VIA or SIS AGP
> chipsets available.
> 
> ...
>
>  config AGP_SIS
>  	tristate "SiS chipset support"
> -	depends on AGP
> +	depends on AGP && X86

I never know what to do here.

Sure, the driver will not be used on that architecture.  But there is some
benefit in being able to cross-compile that driver on other architectures
anyway.  Sometimes it will pick up missed #includes, sometimes printk
mismatches, various other assumptions which might be OK for x86 right now
but which might cause problems in the future.

Need to balance a very minor con against some very minor pros ;)

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] Limit VIA and SIS AGP choices to x86
  2006-07-05 18:10 ` Andrew Morton
@ 2006-07-05 18:24   ` Ben Pfaff
  2006-07-05 19:24     ` Dave Jones
  0 siblings, 1 reply; 9+ messages in thread
From: Ben Pfaff @ 2006-07-05 18:24 UTC (permalink / raw)
  To: linux-kernel

Andrew Morton <akpm@osdl.org> writes:

> On Wed, 5 Jul 2006 11:57:25 -0600
> Matthew Wilcox <matthew@wil.cx> wrote:
>
>> As far as I am aware, Alpha, PPC and IA64 don't have VIA or SIS AGP
>> chipsets available.
>> 
>> ...
>>
>>  config AGP_SIS
>>  	tristate "SiS chipset support"
>> -	depends on AGP
>> +	depends on AGP && X86
>
> I never know what to do here.
>
> Sure, the driver will not be used on that architecture.  But there is some
> benefit in being able to cross-compile that driver on other architectures
> anyway.  Sometimes it will pick up missed #includes, sometimes printk
> mismatches, various other assumptions which might be OK for x86 right now
> but which might cause problems in the future.

Should we have a NONNATIVE config option analogous to
EXPERIMENTAL, so that it could be expressed as
        depends on AGP && (X86 || NONNATIVE)
Seems to express the actual intentions.
-- 
Ben Pfaff 
email: blp@cs.stanford.edu
web: http://benpfaff.org


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] Limit VIA and SIS AGP choices to x86
  2006-07-05 17:57 [PATCH] Limit VIA and SIS AGP choices to x86 Matthew Wilcox
  2006-07-05 18:10 ` Andrew Morton
@ 2006-07-05 19:21 ` Dave Jones
  2006-07-05 19:27   ` Arjan van de Ven
  1 sibling, 1 reply; 9+ messages in thread
From: Dave Jones @ 2006-07-05 19:21 UTC (permalink / raw)
  To: Matthew Wilcox; +Cc: linux-kernel, Andrew Morton

On Wed, Jul 05, 2006 at 11:57:25AM -0600, Matthew Wilcox wrote:
 > 
 > As far as I am aware, Alpha, PPC and IA64 don't have VIA or SIS AGP
 > chipsets available.

VIA has turned up on PPC (some Apple notebooks).
SiS I'm not sure about.

		Dave

-- 
http://www.codemonkey.org.uk

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] Limit VIA and SIS AGP choices to x86
  2006-07-05 18:24   ` Ben Pfaff
@ 2006-07-05 19:24     ` Dave Jones
  0 siblings, 0 replies; 9+ messages in thread
From: Dave Jones @ 2006-07-05 19:24 UTC (permalink / raw)
  To: Ben Pfaff; +Cc: linux-kernel

On Wed, Jul 05, 2006 at 11:24:22AM -0700, Ben Pfaff wrote:
 > > Sure, the driver will not be used on that architecture.  But there is some
 > > benefit in being able to cross-compile that driver on other architectures
 > > anyway.  Sometimes it will pick up missed #includes, sometimes printk
 > > mismatches, various other assumptions which might be OK for x86 right now
 > > but which might cause problems in the future.
 > 
 > Should we have a NONNATIVE config option analogous to
 > EXPERIMENTAL, so that it could be expressed as
 >         depends on AGP && (X86 || NONNATIVE)
 > Seems to express the actual intentions.

Gah, that would be awful. It'd end up riddled through kconfigs everywhere.
It's also not really buying anything more than
(X86 || !X86) , at which point, they cancel each other out ;)

		Dave

-- 
http://www.codemonkey.org.uk

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] Limit VIA and SIS AGP choices to x86
  2006-07-05 19:21 ` Dave Jones
@ 2006-07-05 19:27   ` Arjan van de Ven
  2006-07-05 19:36     ` Dave Jones
  2006-07-05 21:39     ` H. Peter Anvin
  0 siblings, 2 replies; 9+ messages in thread
From: Arjan van de Ven @ 2006-07-05 19:27 UTC (permalink / raw)
  To: Dave Jones; +Cc: Matthew Wilcox, linux-kernel, Andrew Morton

On Wed, 2006-07-05 at 15:21 -0400, Dave Jones wrote:
> On Wed, Jul 05, 2006 at 11:57:25AM -0600, Matthew Wilcox wrote:
>  > 
>  > As far as I am aware, Alpha, PPC and IA64 don't have VIA or SIS AGP
>  > chipsets available.
> 
> VIA has turned up on PPC (some Apple notebooks).

only the southbridge... agp is a northbridge thing...


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] Limit VIA and SIS AGP choices to x86
  2006-07-05 19:27   ` Arjan van de Ven
@ 2006-07-05 19:36     ` Dave Jones
  2006-07-05 21:39     ` H. Peter Anvin
  1 sibling, 0 replies; 9+ messages in thread
From: Dave Jones @ 2006-07-05 19:36 UTC (permalink / raw)
  To: Arjan van de Ven; +Cc: Matthew Wilcox, linux-kernel, Andrew Morton

On Wed, Jul 05, 2006 at 09:27:56PM +0200, Arjan van de Ven wrote:
 > On Wed, 2006-07-05 at 15:21 -0400, Dave Jones wrote:
 > > On Wed, Jul 05, 2006 at 11:57:25AM -0600, Matthew Wilcox wrote:
 > >  > 
 > >  > As far as I am aware, Alpha, PPC and IA64 don't have VIA or SIS AGP
 > >  > chipsets available.
 > > 
 > > VIA has turned up on PPC (some Apple notebooks).
 > 
 > only the southbridge... agp is a northbridge thing...

Maybe my memory is flaky, but I'm sure I recall a VIA
northbridge in the ibook.

benh ?

		Dave

-- 
http://www.codemonkey.org.uk

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] Limit VIA and SIS AGP choices to x86
  2006-07-05 19:27   ` Arjan van de Ven
  2006-07-05 19:36     ` Dave Jones
@ 2006-07-05 21:39     ` H. Peter Anvin
  2006-07-07  7:31       ` Indrek Kruusa
  1 sibling, 1 reply; 9+ messages in thread
From: H. Peter Anvin @ 2006-07-05 21:39 UTC (permalink / raw)
  To: Arjan van de Ven; +Cc: Dave Jones, Matthew Wilcox, linux-kernel, Andrew Morton

Arjan van de Ven wrote:
> On Wed, 2006-07-05 at 15:21 -0400, Dave Jones wrote:
>> On Wed, Jul 05, 2006 at 11:57:25AM -0600, Matthew Wilcox wrote:
>>  > 
>>  > As far as I am aware, Alpha, PPC and IA64 don't have VIA or SIS AGP
>>  > chipsets available.
>>
>> VIA has turned up on PPC (some Apple notebooks).
> 
> only the southbridge... agp is a northbridge thing...
> 

Not necessarily.  Some HyperTransport southbridges have AGP on them, for 
example.

	-hpa

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH] Limit VIA and SIS AGP choices to x86
  2006-07-05 21:39     ` H. Peter Anvin
@ 2006-07-07  7:31       ` Indrek Kruusa
  0 siblings, 0 replies; 9+ messages in thread
From: Indrek Kruusa @ 2006-07-07  7:31 UTC (permalink / raw)
  To: H. Peter Anvin
  Cc: Arjan van de Ven, Dave Jones, Matthew Wilcox, linux-kernel,
	Andrew Morton

H. Peter Anvin wrote:
> Arjan van de Ven wrote:
>> On Wed, 2006-07-05 at 15:21 -0400, Dave Jones wrote:
>>> On Wed, Jul 05, 2006 at 11:57:25AM -0600, Matthew Wilcox wrote:
>>>  >  > As far as I am aware, Alpha, PPC and IA64 don't have VIA or 
>>> SIS AGP
>>>  > chipsets available.
>>>
>>> VIA has turned up on PPC (some Apple notebooks).
>>
>> only the southbridge... agp is a northbridge thing...
>>
>
> Not necessarily.  Some HyperTransport southbridges have AGP on them, 
> for example.

Yes, and this is evil because historically 90% people think about 
"xxxxxbridge" as "right bunch" of implemented electrical interfaces and 
not by MSR's or whatever else :)


Indrek


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-07-07  7:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-05 17:57 [PATCH] Limit VIA and SIS AGP choices to x86 Matthew Wilcox
2006-07-05 18:10 ` Andrew Morton
2006-07-05 18:24   ` Ben Pfaff
2006-07-05 19:24     ` Dave Jones
2006-07-05 19:21 ` Dave Jones
2006-07-05 19:27   ` Arjan van de Ven
2006-07-05 19:36     ` Dave Jones
2006-07-05 21:39     ` H. Peter Anvin
2006-07-07  7:31       ` Indrek Kruusa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox