* x86/pci: Broken build for X86_VISWS
@ 2008-07-10 9:57 Robert Richter
2008-07-10 10:19 ` [PATCH] x86/pci: Fix build error " Robert Richter
2008-07-10 10:23 ` x86/pci: Broken build " Ingo Molnar
0 siblings, 2 replies; 7+ messages in thread
From: Robert Richter @ 2008-07-10 9:57 UTC (permalink / raw)
To: Ingo Molnar; +Cc: Thomas Gleixner, LKML
Ingo,
during testing of my pci changes I observed a build error if X86_VISWS
is set:
arch/x86/mach-visws/built-in.o: In function `machine_power_off':
(.text+0x48): undefined reference to `pci_bus0'
make[1]: *** [.tmp_vmlinux1] Error 1
make: *** [sub-make] Error 2
The root cause is disabling PCI dependencies in change 1ac97018 that
disables compilation of x86/pci for VISWS though there are files in
needed to build. I am not sure if it is save to enable PCI for VISWS
to fix this.
Could you take a look at this?
Thanks,
-Robert
--
Advanced Micro Devices, Inc.
Operating System Research Center
email: robert.richter@amd.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] x86/pci: Fix build error for X86_VISWS
2008-07-10 9:57 x86/pci: Broken build for X86_VISWS Robert Richter
@ 2008-07-10 10:19 ` Robert Richter
2008-07-10 10:23 ` x86/pci: Broken build " Ingo Molnar
1 sibling, 0 replies; 7+ messages in thread
From: Robert Richter @ 2008-07-10 10:19 UTC (permalink / raw)
To: Thomas Gleixner, Ingo Molnar, LKML
Signed-off-by: Robert Richter <robert.richter@amd.com>
---
arch/x86/Kconfig | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index bb0c0d0..51329ee 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -283,7 +283,7 @@ config X86_VOYAGER
config X86_VISWS
bool "SGI 320/540 (Visual Workstation)"
- depends on X86_32 && !PCI
+ depends on X86_32 && PCI
help
The SGI Visual Workstation series is an IA32-based workstation
based on SGI systems chips with some legacy PC hardware attached.
--
1.5.5.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: x86/pci: Broken build for X86_VISWS
2008-07-10 9:57 x86/pci: Broken build for X86_VISWS Robert Richter
2008-07-10 10:19 ` [PATCH] x86/pci: Fix build error " Robert Richter
@ 2008-07-10 10:23 ` Ingo Molnar
2008-07-10 10:38 ` Ingo Molnar
2008-07-10 10:42 ` Robert Richter
1 sibling, 2 replies; 7+ messages in thread
From: Ingo Molnar @ 2008-07-10 10:23 UTC (permalink / raw)
To: Robert Richter; +Cc: Ingo Molnar, Thomas Gleixner, LKML
* Robert Richter <robert.richter@amd.com> wrote:
> Ingo,
>
> during testing of my pci changes I observed a build error if X86_VISWS
> is set:
>
> arch/x86/mach-visws/built-in.o: In function `machine_power_off':
> (.text+0x48): undefined reference to `pci_bus0'
> make[1]: *** [.tmp_vmlinux1] Error 1
> make: *** [sub-make] Error 2
>
> The root cause is disabling PCI dependencies in change 1ac97018 that
> disables compilation of x86/pci for VISWS though there are files in
> needed to build. I am not sure if it is save to enable PCI for VISWS
> to fix this.
>
> Could you take a look at this?
well spotted. Does the patch below fix it for you?
Ingo
------------------------->
commit 50e810529abfb39259c2877ed8dc784a4bb81167
Author: Ingo Molnar <mingo@elte.hu>
Date: Thu Jul 10 12:21:58 2008 +0200
x86: fix visws and vsmp build
these two sub-architectures want PCI to be default-on, not default-off.
Reported-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
arch/x86/Kconfig | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 4d85501..c8f7fb6 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -287,7 +287,7 @@ config X86_VOYAGER
config X86_VISWS
bool "SGI 320/540 (Visual Workstation)"
- depends on X86_32 && !PCI
+ depends on X86_32 && PCI
help
The SGI Visual Workstation series is an IA32-based workstation
based on SGI systems chips with some legacy PC hardware attached.
@@ -359,7 +359,7 @@ config X86_RDC321X
config X86_VSMP
bool "Support for ScaleMP vSMP"
select PARAVIRT
- depends on X86_64 && !PCI
+ depends on X86_64 && PCI
help
Support for ScaleMP vSMP systems. Say 'Y' here if this kernel is
supposed to run on these EM64T-based machines. Only choose this option
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: x86/pci: Broken build for X86_VISWS
2008-07-10 10:23 ` x86/pci: Broken build " Ingo Molnar
@ 2008-07-10 10:38 ` Ingo Molnar
2008-07-10 10:42 ` Robert Richter
1 sibling, 0 replies; 7+ messages in thread
From: Ingo Molnar @ 2008-07-10 10:38 UTC (permalink / raw)
To: Robert Richter; +Cc: Ingo Molnar, Thomas Gleixner, LKML
* Ingo Molnar <mingo@elte.hu> wrote:
> * Robert Richter <robert.richter@amd.com> wrote:
>
> > Ingo,
> >
> > during testing of my pci changes I observed a build error if X86_VISWS
> > is set:
> >
> > arch/x86/mach-visws/built-in.o: In function `machine_power_off':
> > (.text+0x48): undefined reference to `pci_bus0'
> > make[1]: *** [.tmp_vmlinux1] Error 1
> > make: *** [sub-make] Error 2
> >
> > The root cause is disabling PCI dependencies in change 1ac97018 that
> > disables compilation of x86/pci for VISWS though there are files in
> > needed to build. I am not sure if it is save to enable PCI for VISWS
> > to fix this.
> >
> > Could you take a look at this?
>
> well spotted. Does the patch below fix it for you?
there's another visws build bug related to generic-ipi - i fixed that in
tip/master.
Ingo
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: x86/pci: Broken build for X86_VISWS
2008-07-10 10:23 ` x86/pci: Broken build " Ingo Molnar
2008-07-10 10:38 ` Ingo Molnar
@ 2008-07-10 10:42 ` Robert Richter
2008-07-10 10:44 ` Ingo Molnar
1 sibling, 1 reply; 7+ messages in thread
From: Robert Richter @ 2008-07-10 10:42 UTC (permalink / raw)
To: Ingo Molnar; +Cc: Ingo Molnar, Thomas Gleixner, LKML
On 10.07.08 12:23:05, Ingo Molnar wrote:
> well spotted. Does the patch below fix it for you?
Yes, it should. I send out a fix with the same change and it builds
well. But I did not realize that X86_VSMP was also affected.
-Robert
--
Advanced Micro Devices, Inc.
Operating System Research Center
email: robert.richter@amd.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: x86/pci: Broken build for X86_VISWS
2008-07-10 10:42 ` Robert Richter
@ 2008-07-10 10:44 ` Ingo Molnar
2008-07-10 10:57 ` Robert Richter
0 siblings, 1 reply; 7+ messages in thread
From: Ingo Molnar @ 2008-07-10 10:44 UTC (permalink / raw)
To: Robert Richter; +Cc: Ingo Molnar, Thomas Gleixner, LKML
* Robert Richter <robert.richter@amd.com> wrote:
> On 10.07.08 12:23:05, Ingo Molnar wrote:
> > well spotted. Does the patch below fix it for you?
>
> Yes, it should. I send out a fix with the same change and it builds
> well. But I did not realize that X86_VSMP was also affected.
i'm wondering why you werent hit by the generic-ipi build bug. Perhaps
you had SMP disabled?
Ingo
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: x86/pci: Broken build for X86_VISWS
2008-07-10 10:44 ` Ingo Molnar
@ 2008-07-10 10:57 ` Robert Richter
0 siblings, 0 replies; 7+ messages in thread
From: Robert Richter @ 2008-07-10 10:57 UTC (permalink / raw)
To: Ingo Molnar; +Cc: Thomas Gleixner, LKML
On 10.07.08 12:44:46, Ingo Molnar wrote:
> i'm wondering why you werent hit by the generic-ipi build bug. Perhaps
> you had SMP disabled?
No:
$ grep 'SMP\|VISWS' configs/linux-i386-visws.config
CONFIG_X86_SMP=y
CONFIG_X86_32_SMP=y
CONFIG_SMP=y
CONFIG_X86_FIND_SMP_CONFIG=y
CONFIG_X86_VISWS=y
# CONFIG_X86_VSMP is not set
CONFIG_X86_VISWS_APIC=y
Probably it is because I am on the tip/x86/unify-pci tree where the
IPI changes were not in.
-Robert
--
Advanced Micro Devices, Inc.
Operating System Research Center
email: robert.richter@amd.com
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-07-10 10:57 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-10 9:57 x86/pci: Broken build for X86_VISWS Robert Richter
2008-07-10 10:19 ` [PATCH] x86/pci: Fix build error " Robert Richter
2008-07-10 10:23 ` x86/pci: Broken build " Ingo Molnar
2008-07-10 10:38 ` Ingo Molnar
2008-07-10 10:42 ` Robert Richter
2008-07-10 10:44 ` Ingo Molnar
2008-07-10 10:57 ` Robert Richter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox