linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PCI access mode on x86_64
@ 2005-02-13 21:31 Piotr Kaczuba
  2005-02-14  9:18 ` Andi Kleen
  0 siblings, 1 reply; 7+ messages in thread
From: Piotr Kaczuba @ 2005-02-13 21:31 UTC (permalink / raw)
  To: linux-kernel

Hi!

Is there a reason why "PCI access mode" config option isn't available for
x86_64? Due to this, PCIE config options aren't available either.

Piotr Kaczuba


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

* Re: PCI access mode on x86_64
  2005-02-13 21:31 PCI access mode on x86_64 Piotr Kaczuba
@ 2005-02-14  9:18 ` Andi Kleen
  2005-02-14  9:47   ` Piotr Kaczuba
  0 siblings, 1 reply; 7+ messages in thread
From: Andi Kleen @ 2005-02-14  9:18 UTC (permalink / raw)
  To: Piotr Kaczuba; +Cc: linux-kernel

Piotr Kaczuba <pepe@attika.ath.cx> writes:

> Hi!
>
> Is there a reason why "PCI access mode" config option isn't available for
> x86_64? Due to this, PCIE config options aren't available either.

There is no 64bit PCI BIOS, so access is always direct.

I assume you mean mmconfig access with "PCIE config options", that is
a separate config option and available.

-Andi

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

* Re: PCI access mode on x86_64
  2005-02-14  9:18 ` Andi Kleen
@ 2005-02-14  9:47   ` Piotr Kaczuba
  2005-02-14 12:02     ` Andi Kleen
  0 siblings, 1 reply; 7+ messages in thread
From: Piotr Kaczuba @ 2005-02-14  9:47 UTC (permalink / raw)
  To: Andi Kleen; +Cc: linux-kernel

On Mon, Feb 14, 2005 at 10:18:43AM +0100, Andi Kleen wrote:
> Piotr Kaczuba <pepe@attika.ath.cx> writes:
> > Is there a reason why "PCI access mode" config option isn't available for
> > x86_64? Due to this, PCIE config options aren't available either.
> 
> There is no 64bit PCI BIOS, so access is always direct.
> 
> I assume you mean mmconfig access with "PCIE config options", that is
> a separate config option and available.

I mean the PCIEPORTBUS option which depends on PCI_GOMMCONFIG or
PCI_GOANY. I assume that due to PCI_MMCONFIG / PCI_GOMMCONFIG mismatch
it's not available on x86_64.

Piotr Kaczuba

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

* Re: PCI access mode on x86_64
  2005-02-14  9:47   ` Piotr Kaczuba
@ 2005-02-14 12:02     ` Andi Kleen
  2005-02-14 15:46       ` Piotr Kaczuba
  2005-02-17 23:18       ` Greg KH
  0 siblings, 2 replies; 7+ messages in thread
From: Andi Kleen @ 2005-02-14 12:02 UTC (permalink / raw)
  To: Piotr Kaczuba; +Cc: linux-kernel, greg, tom.l.nguyen

On Mon, Feb 14, 2005 at 10:47:01AM +0100, Piotr Kaczuba wrote:
> On Mon, Feb 14, 2005 at 10:18:43AM +0100, Andi Kleen wrote:
> > Piotr Kaczuba <pepe@attika.ath.cx> writes:
> > > Is there a reason why "PCI access mode" config option isn't available for
> > > x86_64? Due to this, PCIE config options aren't available either.
> > 
> > There is no 64bit PCI BIOS, so access is always direct.
> > 
> > I assume you mean mmconfig access with "PCIE config options", that is
> > a separate config option and available.
> 
> I mean the PCIEPORTBUS option which depends on PCI_GOMMCONFIG or
> PCI_GOANY. I assume that due to PCI_MMCONFIG / PCI_GOMMCONFIG mismatch
> it's not available on x86_64.

Ok, that's a bug in PCIEPORTBUS.  Best is probably to 
completely remove the dependency, it doesn't make much sense
(the code has to handle the case of mmconfig not being available at 
runtime anyways) 

-Andi

Remove bogus dependency in PCI Express root driver.

Signed-off-by: Andi Kleen <ak@suse.de>

diff -u linux-2.6.11rc3/drivers/pci/pcie/Kconfig-o linux-2.6.11rc3/drivers/pci/pcie/Kconfig
--- linux-2.6.11rc3/drivers/pci/pcie/Kconfig-o	2005-02-04 09:13:10.000000000 +0100
+++ linux-2.6.11rc3/drivers/pci/pcie/Kconfig	2005-02-14 12:59:46.000000000 +0100
@@ -3,7 +3,6 @@
 #
 config PCIEPORTBUS
 	bool "PCI Express support"
-	depends on PCI_GOMMCONFIG || PCI_GOANY
 	default n
 
 	---help---


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

* Re: PCI access mode on x86_64
  2005-02-14 12:02     ` Andi Kleen
@ 2005-02-14 15:46       ` Piotr Kaczuba
  2005-02-14 19:15         ` Andi Kleen
  2005-02-17 23:18       ` Greg KH
  1 sibling, 1 reply; 7+ messages in thread
From: Piotr Kaczuba @ 2005-02-14 15:46 UTC (permalink / raw)
  To: Andi Kleen; +Cc: linux-kernel

On Mon, Feb 14, 2005 at 01:02:05PM +0100, Andi Kleen wrote:
> On Mon, Feb 14, 2005 at 10:47:01AM +0100, Piotr Kaczuba wrote:
> > On Mon, Feb 14, 2005 at 10:18:43AM +0100, Andi Kleen wrote:
> > > Piotr Kaczuba <pepe@attika.ath.cx> writes:
> > > > Is there a reason why "PCI access mode" config option isn't available for
> > > > x86_64? Due to this, PCIE config options aren't available either.
> > > 
> > > There is no 64bit PCI BIOS, so access is always direct.
> > > 
> > > I assume you mean mmconfig access with "PCIE config options", that is
> > > a separate config option and available.
> > 
> > I mean the PCIEPORTBUS option which depends on PCI_GOMMCONFIG or
> > PCI_GOANY. I assume that due to PCI_MMCONFIG / PCI_GOMMCONFIG mismatch
> > it's not available on x86_64.
> 
> Ok, that's a bug in PCIEPORTBUS.  Best is probably to 
> completely remove the dependency, it doesn't make much sense
> (the code has to handle the case of mmconfig not being available at 
> runtime anyways) 
> 
> -Andi
> 
> Remove bogus dependency in PCI Express root driver.
> 
> Signed-off-by: Andi Kleen <ak@suse.de>
> 
> diff -u linux-2.6.11rc3/drivers/pci/pcie/Kconfig-o linux-2.6.11rc3/drivers/pci/pcie/Kconfig
> --- linux-2.6.11rc3/drivers/pci/pcie/Kconfig-o	2005-02-04 09:13:10.000000000 +0100
> +++ linux-2.6.11rc3/drivers/pci/pcie/Kconfig	2005-02-14 12:59:46.000000000 +0100
> @@ -3,7 +3,6 @@
>  #
>  config PCIEPORTBUS
>  	bool "PCI Express support"
> -	depends on PCI_GOMMCONFIG || PCI_GOANY
>  	default n
>  
>  	---help---
> 

This one is needed, too.

Piotr Kaczuba



--- linux.old/arch/x86_64/Kconfig       2005-02-14 16:37:33.000000000 +0100
+++ linux/arch/x86_64/Kconfig   2005-02-14 16:37:18.000000000 +0100
@@ -399,6 +399,8 @@
         from i386. Requires that the driver writer used memory barriers
         properly.

+source "drivers/pci/pcie/Kconfig"
+
 source "drivers/pci/Kconfig"

 source "drivers/pcmcia/Kconfig"


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

* Re: PCI access mode on x86_64
  2005-02-14 15:46       ` Piotr Kaczuba
@ 2005-02-14 19:15         ` Andi Kleen
  0 siblings, 0 replies; 7+ messages in thread
From: Andi Kleen @ 2005-02-14 19:15 UTC (permalink / raw)
  To: Piotr Kaczuba; +Cc: linux-kernel

> This one is needed, too.

Thanks. Whoever wrote this this didn't care very much about x86-64.

-Andi

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

* Re: PCI access mode on x86_64
  2005-02-14 12:02     ` Andi Kleen
  2005-02-14 15:46       ` Piotr Kaczuba
@ 2005-02-17 23:18       ` Greg KH
  1 sibling, 0 replies; 7+ messages in thread
From: Greg KH @ 2005-02-17 23:18 UTC (permalink / raw)
  To: Andi Kleen; +Cc: Piotr Kaczuba, linux-kernel, tom.l.nguyen

On Mon, Feb 14, 2005 at 01:02:05PM +0100, Andi Kleen wrote:
> On Mon, Feb 14, 2005 at 10:47:01AM +0100, Piotr Kaczuba wrote:
> > On Mon, Feb 14, 2005 at 10:18:43AM +0100, Andi Kleen wrote:
> > > Piotr Kaczuba <pepe@attika.ath.cx> writes:
> > > > Is there a reason why "PCI access mode" config option isn't available for
> > > > x86_64? Due to this, PCIE config options aren't available either.
> > > 
> > > There is no 64bit PCI BIOS, so access is always direct.
> > > 
> > > I assume you mean mmconfig access with "PCIE config options", that is
> > > a separate config option and available.
> > 
> > I mean the PCIEPORTBUS option which depends on PCI_GOMMCONFIG or
> > PCI_GOANY. I assume that due to PCI_MMCONFIG / PCI_GOMMCONFIG mismatch
> > it's not available on x86_64.
> 
> Ok, that's a bug in PCIEPORTBUS.  Best is probably to 
> completely remove the dependency, it doesn't make much sense
> (the code has to handle the case of mmconfig not being available at 
> runtime anyways) 
> 
> -Andi
> 
> Remove bogus dependency in PCI Express root driver.

Applied, thanks.

greg k-h


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

end of thread, other threads:[~2005-02-17 23:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-13 21:31 PCI access mode on x86_64 Piotr Kaczuba
2005-02-14  9:18 ` Andi Kleen
2005-02-14  9:47   ` Piotr Kaczuba
2005-02-14 12:02     ` Andi Kleen
2005-02-14 15:46       ` Piotr Kaczuba
2005-02-14 19:15         ` Andi Kleen
2005-02-17 23:18       ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).