* compile error for Opteron CPU with kernel 2.6.0-test2
@ 2003-07-31 15:59 Michael Bakos
2003-07-31 21:59 ` Andrew Morton
0 siblings, 1 reply; 10+ messages in thread
From: Michael Bakos @ 2003-07-31 15:59 UTC (permalink / raw)
To: linux-kernel
Kernel version: 2.6.0-test2
CPU type: x86-64 (Opteron)
Problem: Can not successfuly do: make bzImage
For process.c:
It says that the file asm/local.h is missing, and errors out in module.h
at line 175, parse error before local_t
Michael Bakhos
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: compile error for Opteron CPU with kernel 2.6.0-test2
2003-07-31 15:59 compile error for Opteron CPU with kernel 2.6.0-test2 Michael Bakos
@ 2003-07-31 21:59 ` Andrew Morton
2003-08-01 1:08 ` Michael Bakos
2003-08-01 1:11 ` Michael Bakos
0 siblings, 2 replies; 10+ messages in thread
From: Andrew Morton @ 2003-07-31 21:59 UTC (permalink / raw)
To: Michael Bakos; +Cc: linux-kernel
Michael Bakos <bakhos@msi.umn.edu> wrote:
>
> Kernel version: 2.6.0-test2
> CPU type: x86-64 (Opteron)
> Problem: Can not successfuly do: make bzImage
>
> For process.c:
> It says that the file asm/local.h is missing, and errors out in module.h
> at line 175, parse error before local_t
Try test-2-mm2: it has the x86_64 update.
ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.0-test2/2.6.0-test2-mm2/2.6.0-test2-mm2.bz2
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: compile error for Opteron CPU with kernel 2.6.0-test2
2003-07-31 21:59 ` Andrew Morton
@ 2003-08-01 1:08 ` Michael Bakos
2003-08-01 1:11 ` Michael Bakos
1 sibling, 0 replies; 10+ messages in thread
From: Michael Bakos @ 2003-08-01 1:08 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
The patch (2.6.0-test2-mm2) did fix the asm/local.h missing file problem,
but I'm getting another one.
> Michael Bakos <bakhos@msi.umn.edu> wrote:
> >
> > Kernel version: 2.6.0-test2
> > CPU type: x86-64 (Opteron)
> > Problem: Can not successfuly do: make bzImage
> >
> > For process.c:
> > It says that the file asm/local.h is missing, and errors out in module.h
> > at line 175, parse error before local_t
>
> Try test-2-mm2: it has the x86_64 update.
>
> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.0-test2/2.6.0-test2-mm2/2.6.0-test2-mm2.bz2
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: compile error for Opteron CPU with kernel 2.6.0-test2
2003-07-31 21:59 ` Andrew Morton
2003-08-01 1:08 ` Michael Bakos
@ 2003-08-01 1:11 ` Michael Bakos
2003-08-01 1:27 ` Andrew Morton
2003-08-01 18:01 ` Bryan O'Sullivan
1 sibling, 2 replies; 10+ messages in thread
From: Michael Bakos @ 2003-08-01 1:11 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
(sorry for the previous bad sent)
The patch (2.6.0-test2-mm2) did fix the asm/local.h missing file problem,
but I'm getting another one:
CC arch/x86_64/kernel/asm-offsets.s
In file included from include/linux/topology.h:35,
from include/linux/mmzone.h:294,
from include/linux/gfp.h:4,
from include/linux/slab.h:15,
from include/linux/percpu.h:4,
from include/linux/sched.h:31,
from arch/x86_64/kernel/asm-offsets.c:7:
include/asm/topology.h: In function `pcibus_to_cpumask':
include/asm/topology.h:24: error: invalid operands to binary &
make[1]: *** [arch/x86_64/kernel/asm-offsets.s] Error 1
make: *** [arch/x86_64/kernel/asm-offsets.s] Error 2
I'd also like to thanks thoses that replied to me for the previous
problem.
Michael Bakhos
On Thu, 31 Jul 2003, Andrew Morton wrote:
> Michael Bakos <bakhos@msi.umn.edu> wrote:
> >
> > Kernel version: 2.6.0-test2
> > CPU type: x86-64 (Opteron)
> > Problem: Can not successfuly do: make bzImage
> >
> > For process.c:
> > It says that the file asm/local.h is missing, and errors out in module.h
> > at line 175, parse error before local_t
>
> Try test-2-mm2: it has the x86_64 update.
>
> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.0-test2/2.6.0-test2-mm2/2.6.0-test2-mm2.bz2
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: compile error for Opteron CPU with kernel 2.6.0-test2
2003-08-01 1:11 ` Michael Bakos
@ 2003-08-01 1:27 ` Andrew Morton
2003-08-01 2:39 ` Michael Bakos
2003-08-01 3:12 ` Michael Bakos
2003-08-01 18:01 ` Bryan O'Sullivan
1 sibling, 2 replies; 10+ messages in thread
From: Andrew Morton @ 2003-08-01 1:27 UTC (permalink / raw)
To: Michael Bakos; +Cc: linux-kernel
Michael Bakos <bakhos@msi.umn.edu> wrote:
>
> In file included from include/linux/topology.h:35,
> from include/linux/mmzone.h:294,
> from include/linux/gfp.h:4,
> from include/linux/slab.h:15,
> from include/linux/percpu.h:4,
> from include/linux/sched.h:31,
> from arch/x86_64/kernel/asm-offsets.c:7:
> include/asm/topology.h: In function `pcibus_to_cpumask':
> include/asm/topology.h:24: error: invalid operands to binary &
> make[1]: *** [arch/x86_64/kernel/asm-offsets.s] Error 1
> make: *** [arch/x86_64/kernel/asm-offsets.s] Error 2
urgh, OK. We're chasing around in circles here. And the cpumask_t patch
still isn't ready for merging.
This might fix it.
arch/x86_64/kernel/mpparse.c | 2 +-
include/asm-x86_64/mpspec.h | 2 +-
include/asm-x86_64/topology.h | 7 +++++--
3 files changed, 7 insertions(+), 4 deletions(-)
diff -puN include/asm-x86_64/topology.h~x86_64-cpumask_t-fix include/asm-x86_64/topology.h
--- 25/include/asm-x86_64/topology.h~x86_64-cpumask_t-fix 2003-07-31 18:20:51.000000000 -0700
+++ 25-akpm/include/asm-x86_64/topology.h 2003-07-31 18:25:11.000000000 -0700
@@ -19,9 +19,12 @@ extern cpumask_t cpu_online_map;
#define node_to_cpu_mask(node) (fake_node ? cpu_online_map : cpumask_of_cpu(node))
#define node_to_memblk(node) (node)
-static inline unsigned long pcibus_to_cpumask(int bus)
+static inline cpumask_t pcibus_to_cpumask(int bus)
{
- return mp_bus_to_cpumask[bus] & cpu_online_map;
+ cpumask_t ret;
+
+ cpus_and(ret, mp_bus_to_cpumask[bus], cpu_online_map);
+ return ret;
}
#define NODE_BALANCE_RATE 30 /* CHECKME */
diff -puN include/asm-x86_64/mpspec.h~x86_64-cpumask_t-fix include/asm-x86_64/mpspec.h
--- 25/include/asm-x86_64/mpspec.h~x86_64-cpumask_t-fix 2003-07-31 18:24:12.000000000 -0700
+++ 25-akpm/include/asm-x86_64/mpspec.h 2003-07-31 18:24:35.000000000 -0700
@@ -166,7 +166,7 @@ enum mp_bustype {
};
extern unsigned char mp_bus_id_to_type [MAX_MP_BUSSES];
extern int mp_bus_id_to_pci_bus [MAX_MP_BUSSES];
-extern unsigned long mp_bus_to_cpumask [MAX_MP_BUSSES];
+extern cpumask_t mp_bus_to_cpumask [MAX_MP_BUSSES];
extern unsigned int boot_cpu_physical_apicid;
extern cpumask_t phys_cpu_present_map;
diff -puN arch/x86_64/kernel/mpparse.c~x86_64-cpumask_t-fix arch/x86_64/kernel/mpparse.c
--- 25/arch/x86_64/kernel/mpparse.c~x86_64-cpumask_t-fix 2003-07-31 18:24:54.000000000 -0700
+++ 25-akpm/arch/x86_64/kernel/mpparse.c 2003-07-31 18:25:45.000000000 -0700
@@ -43,7 +43,7 @@ int acpi_found_madt;
int apic_version [MAX_APICS];
unsigned char mp_bus_id_to_type [MAX_MP_BUSSES] = { [0 ... MAX_MP_BUSSES-1] = -1 };
int mp_bus_id_to_pci_bus [MAX_MP_BUSSES] = { [0 ... MAX_MP_BUSSES-1] = -1 };
-unsigned long mp_bus_to_cpumask [MAX_MP_BUSSES] = { [0 ... MAX_MP_BUSSES-1] = -1UL };
+cpumask_t mp_bus_to_cpumask [MAX_MP_BUSSES] = { [0 ... MAX_MP_BUSSES-1] = CPU_MASK_ALL };
int mp_current_pci_id = 0;
/* I/O APIC entries */
_
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: compile error for Opteron CPU with kernel 2.6.0-test2
2003-08-01 1:27 ` Andrew Morton
@ 2003-08-01 2:39 ` Michael Bakos
2003-08-01 4:21 ` Andrew Morton
2003-08-01 3:12 ` Michael Bakos
1 sibling, 1 reply; 10+ messages in thread
From: Michael Bakos @ 2003-08-01 2:39 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
that patch did fix the cpumask_t problem, however another one is present
CC arch/x86_64/kernel/mpparse.o
arch/x86_64/kernel/mpparse.c: In function `mp_parse_prt':
arch/x86_64/kernel/mpparse.c:899: error: too few arguments to function
`acpi_pci_link_get_irq'
make[1]: *** [arch/x86_64/kernel/mpparse.o] Error 1
make: *** [arch/x86_64/kernel] Error 2
While I was waiting for the cpumask_t fix, I tried to just comment out the
structure that caused the problem, it also got past the cpumask_t compile
error (however I didn't want to use a kernel with such a quick fix...).
When I did that I also stumbled on the mpparse problem and tried to fix
it. I don't know if it's a good fix but here's what I've done (I'd still
like some sort of patch since I'm not sure what are the exact effects):
I added stuff from the arch/i386/kernel/mpparse.c file
in void __init mp_parse_prt (void) in arch/x86_64/kernel/mpparse.c
I added the variables:
int edge_level
int active_high_low
modified the acpi_pci_link_get_ifq call to add the 2 variables at the end
and I also changed the else part of that if to reflect the one in the i386
mpparse.c file.
Michael Bakhos
On Thu, 31 Jul 2003, Andrew Morton wrote:
> urgh, OK. We're chasing around in circles here. And the cpumask_t patch
> still isn't ready for merging.
>
>
> This might fix it.
>
<< patch sniped out>>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: compile error for Opteron CPU with kernel 2.6.0-test2
2003-08-01 1:27 ` Andrew Morton
2003-08-01 2:39 ` Michael Bakos
@ 2003-08-01 3:12 ` Michael Bakos
1 sibling, 0 replies; 10+ messages in thread
From: Michael Bakos @ 2003-08-01 3:12 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
Ok, I just tried ther kerne with my fix for arch/x86_64/kernel/mpparse.c
and it doesn't seem to work, when grub boot the kernel it reboots the
computer.
Michael Bakhos
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: compile error for Opteron CPU with kernel 2.6.0-test2
2003-08-01 2:39 ` Michael Bakos
@ 2003-08-01 4:21 ` Andrew Morton
2003-08-01 14:36 ` Andrew de Quincey
0 siblings, 1 reply; 10+ messages in thread
From: Andrew Morton @ 2003-08-01 4:21 UTC (permalink / raw)
To: Michael Bakos; +Cc: linux-kernel, Andrew de Quincey
Michael Bakos <bakhos@msi.umn.edu> wrote:
>
> that patch did fix the cpumask_t problem, however another one is present
>
> CC arch/x86_64/kernel/mpparse.o
> arch/x86_64/kernel/mpparse.c: In function `mp_parse_prt':
> arch/x86_64/kernel/mpparse.c:899: error: too few arguments to function
> `acpi_pci_link_get_irq'
> make[1]: *** [arch/x86_64/kernel/mpparse.o] Error 1
> make: *** [arch/x86_64/kernel] Error 2
OK, I'd be doing this:
arch/x86_64/kernel/mpparse.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
diff -puN arch/x86_64/kernel/mpparse.c~nforce2-acpi-fixes-fix arch/x86_64/kernel/mpparse.c
--- 25/arch/x86_64/kernel/mpparse.c~nforce2-acpi-fixes-fix 2003-07-31 21:18:45.000000000 -0700
+++ 25-akpm/arch/x86_64/kernel/mpparse.c 2003-07-31 21:18:59.000000000 -0700
@@ -896,7 +896,8 @@ void __init mp_parse_prt (void)
/* Need to get irq for dynamic entry */
if (entry->link.handle) {
- irq = acpi_pci_link_get_irq(entry->link.handle, entry->link.index);
+ irq = acpi_pci_link_get_irq(entry->link.handle,
+ entry->link.index, NULL, NULL);
if (!irq)
continue;
}
_
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: compile error for Opteron CPU with kernel 2.6.0-test2
2003-08-01 4:21 ` Andrew Morton
@ 2003-08-01 14:36 ` Andrew de Quincey
0 siblings, 0 replies; 10+ messages in thread
From: Andrew de Quincey @ 2003-08-01 14:36 UTC (permalink / raw)
To: Andrew Morton, Michael Bakos; +Cc: linux-kernel
> OK, I'd be doing this:
>
> arch/x86_64/kernel/mpparse.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletion(-)
>
> diff -puN arch/x86_64/kernel/mpparse.c~nforce2-acpi-fixes-fix
> arch/x86_64/kernel/mpparse.c ---
> 25/arch/x86_64/kernel/mpparse.c~nforce2-acpi-fixes-fix 2003-07-31
> 21:18:45.000000000 -0700 +++
> 25-akpm/arch/x86_64/kernel/mpparse.c 2003-07-31 21:18:59.000000000 -0700 @@
> -896,7 +896,8 @@ void __init mp_parse_prt (void)
>
> /* Need to get irq for dynamic entry */
> if (entry->link.handle) {
> - irq = acpi_pci_link_get_irq(entry->link.handle, entry->link.index);
> + irq = acpi_pci_link_get_irq(entry->link.handle,
> + entry->link.index, NULL, NULL);
> if (!irq)
> continue;
> }
>
> _
Great, thanks very much.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: compile error for Opteron CPU with kernel 2.6.0-test2
2003-08-01 1:11 ` Michael Bakos
2003-08-01 1:27 ` Andrew Morton
@ 2003-08-01 18:01 ` Bryan O'Sullivan
1 sibling, 0 replies; 10+ messages in thread
From: Bryan O'Sullivan @ 2003-08-01 18:01 UTC (permalink / raw)
To: Michael Bakos; +Cc: Andrew Morton, linux-kernel
m> (sorry for the previous bad sent)
m> The patch (2.6.0-test2-mm2) did fix the asm/local.h missing file problem,
m> but I'm getting another one:
You should subscribe to the mailing lists at x86-64.org - that's where
most Opteron problems get covered.
<b
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2003-08-01 18:01 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-31 15:59 compile error for Opteron CPU with kernel 2.6.0-test2 Michael Bakos
2003-07-31 21:59 ` Andrew Morton
2003-08-01 1:08 ` Michael Bakos
2003-08-01 1:11 ` Michael Bakos
2003-08-01 1:27 ` Andrew Morton
2003-08-01 2:39 ` Michael Bakos
2003-08-01 4:21 ` Andrew Morton
2003-08-01 14:36 ` Andrew de Quincey
2003-08-01 3:12 ` Michael Bakos
2003-08-01 18:01 ` Bryan O'Sullivan
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).