linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Disable PCI while CONFIG_PCI=y
@ 2011-04-13 20:05 Xianghua Xiao
  2011-04-13 20:10 ` Randy Dunlap
  0 siblings, 1 reply; 5+ messages in thread
From: Xianghua Xiao @ 2011-04-13 20:05 UTC (permalink / raw)
  To: linux-kernel

Is it possible to do something like 'pci=off' to have the same effect
as turning of CONFIG_PCI during menuconfig?
I want to build one image for both PCIE RC and PCIE EP(endpoint), for
EP I do not need PCI to be enabled at all.

looking at drivers/pci/pci.c I don't see such option exists, am I
missing something?

Thanks,
Xianghua

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

* Re: Disable PCI while CONFIG_PCI=y
  2011-04-13 20:05 Disable PCI while CONFIG_PCI=y Xianghua Xiao
@ 2011-04-13 20:10 ` Randy Dunlap
  2011-04-13 22:01   ` Xianghua Xiao
  0 siblings, 1 reply; 5+ messages in thread
From: Randy Dunlap @ 2011-04-13 20:10 UTC (permalink / raw)
  To: Xianghua Xiao; +Cc: linux-kernel

On Wed, 13 Apr 2011 15:05:59 -0500 Xianghua Xiao wrote:

> Is it possible to do something like 'pci=off' to have the same effect
> as turning of CONFIG_PCI during menuconfig?
> I want to build one image for both PCIE RC and PCIE EP(endpoint), for
> EP I do not need PCI to be enabled at all.
> 
> looking at drivers/pci/pci.c I don't see such option exists, am I
> missing something?

Hm. Documentation/kernel-parameters.txt says:


	pci=option[,option...]	[PCI] various PCI subsystem options:
		earlydump	[X86] dump PCI config space before the kernel
			        changes anything
		off		[X86] don't probe for the PCI bus

What $ARCH are you using?

See arch/x86/pci/common.c::pcibios_setup() for code that handles
	pci=off

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

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

* Re: Disable PCI while CONFIG_PCI=y
  2011-04-13 20:10 ` Randy Dunlap
@ 2011-04-13 22:01   ` Xianghua Xiao
  2011-04-13 22:37     ` Randy Dunlap
  0 siblings, 1 reply; 5+ messages in thread
From: Xianghua Xiao @ 2011-04-13 22:01 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: linux-kernel

Yes I read that but my ARCH is arm.

Thanks,

On Wed, Apr 13, 2011 at 3:10 PM, Randy Dunlap <rdunlap@xenotime.net> wrote:
> On Wed, 13 Apr 2011 15:05:59 -0500 Xianghua Xiao wrote:
>
>> Is it possible to do something like 'pci=off' to have the same effect
>> as turning of CONFIG_PCI during menuconfig?
>> I want to build one image for both PCIE RC and PCIE EP(endpoint), for
>> EP I do not need PCI to be enabled at all.
>>
>> looking at drivers/pci/pci.c I don't see such option exists, am I
>> missing something?
>
> Hm. Documentation/kernel-parameters.txt says:
>
>
>        pci=option[,option...]  [PCI] various PCI subsystem options:
>                earlydump       [X86] dump PCI config space before the kernel
>                                changes anything
>                off             [X86] don't probe for the PCI bus
>
> What $ARCH are you using?
>
> See arch/x86/pci/common.c::pcibios_setup() for code that handles
>        pci=off
>
> ---
> ~Randy
> *** Remember to use Documentation/SubmitChecklist when testing your code ***
>

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

* Re: Disable PCI while CONFIG_PCI=y
  2011-04-13 22:01   ` Xianghua Xiao
@ 2011-04-13 22:37     ` Randy Dunlap
  2011-04-14 16:38       ` Jesse Barnes
  0 siblings, 1 reply; 5+ messages in thread
From: Randy Dunlap @ 2011-04-13 22:37 UTC (permalink / raw)
  To: Xianghua Xiao; +Cc: linux-kernel, linux-pci

On Wed, 13 Apr 2011 17:01:38 -0500 Xianghua Xiao wrote:

> Yes I read that but my ARCH is arm.
> 

It would probably make sense to implement
	pci=off
for any $arch.

Any problem with that, linux-pci??


> 
> On Wed, Apr 13, 2011 at 3:10 PM, Randy Dunlap <rdunlap@xenotime.net> wrote:
> > On Wed, 13 Apr 2011 15:05:59 -0500 Xianghua Xiao wrote:
> >
> >> Is it possible to do something like 'pci=off' to have the same effect
> >> as turning of CONFIG_PCI during menuconfig?
> >> I want to build one image for both PCIE RC and PCIE EP(endpoint), for
> >> EP I do not need PCI to be enabled at all.
> >>
> >> looking at drivers/pci/pci.c I don't see such option exists, am I
> >> missing something?
> >
> > Hm. Documentation/kernel-parameters.txt says:
> >
> >
> >        pci=option[,option...]  [PCI] various PCI subsystem options:
> >                earlydump       [X86] dump PCI config space before the kernel
> >                                changes anything
> >                off             [X86] don't probe for the PCI bus
> >
> > What $ARCH are you using?
> >
> > See arch/x86/pci/common.c::pcibios_setup() for code that handles
> >        pci=off
> >
> > ---

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

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

* Re: Disable PCI while CONFIG_PCI=y
  2011-04-13 22:37     ` Randy Dunlap
@ 2011-04-14 16:38       ` Jesse Barnes
  0 siblings, 0 replies; 5+ messages in thread
From: Jesse Barnes @ 2011-04-14 16:38 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: Xianghua Xiao, linux-kernel, linux-pci

On Wed, 13 Apr 2011 15:37:24 -0700
Randy Dunlap <rdunlap@xenotime.net> wrote:

> On Wed, 13 Apr 2011 17:01:38 -0500 Xianghua Xiao wrote:
> 
> > Yes I read that but my ARCH is arm.
> > 
> 
> It would probably make sense to implement
> 	pci=off
> for any $arch.
> 
> Any problem with that, linux-pci??
> 

Yeah I'm ok with it assuming the patch looks good and isn't too
invasive.  I'd think on EP devices you'd want a more pared down kernel
image (so CONFIG_PCI=n among many other things), but if you really want
to share binary images yeah we'll need a runtime check.

Jesse

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

end of thread, other threads:[~2011-04-14 16:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-13 20:05 Disable PCI while CONFIG_PCI=y Xianghua Xiao
2011-04-13 20:10 ` Randy Dunlap
2011-04-13 22:01   ` Xianghua Xiao
2011-04-13 22:37     ` Randy Dunlap
2011-04-14 16:38       ` Jesse Barnes

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).