Skip to contentSkip to conversation

2.4.24 patch apply failed on vanilla kernel

DISCUSSION Marcel Meckel 5 participants 12 messages Jan 7, 2004 – Jan 9, 2004 9 messages not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

Hello,

trying to patch 2.4.24 patch into a vanilla kernel results in 1 reject:

patching file arch/i386/kernel/acpi.c
patching file arch/i386/kernel/mpparse.c
patching file arch/i386/kernel/smpboot.c
Hunk #1 FAILED at 1106.
1 out of 1 hunk FAILED -- saving rejects to file arch/i386/kernel/smpboot.c.rej patching file arch/x86_64/kernel/acpi.c patching file drivers/acpi/Config.in
patching file drivers/acpi/bus.c

Please CC me on replies.

Greetings,
Marcel Meckel.

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click

A message that is not in the archive (sent off-list or not yet received): 20040107134658.5afa9142.acpi-X2Xph2rMQzhn68oJJulU0Q@public.gmane.org

#2 lore raw

Hi Marcel Meckel,

Quoted 12 lines · On Wed, 7 Jan 2004 13:46:58 +0100 Marcel Meckel…

trying to patch 2.4.24 patch into a vanilla kernel results in 1 reject:

patching file arch/i386/kernel/acpi.c
patching file arch/i386/kernel/mpparse.c
patching file arch/i386/kernel/smpboot.c
Hunk #1 FAILED at 1106.
1 out of 1 hunk FAILED -- saving rejects to file arch/i386/kernel/smpboot.c.rej patching file arch/x86_64/kernel/acpi.c patching file drivers/acpi/Config.in
patching file drivers/acpi/bus.c

Quoted 1 line

Please CC me on replies.

Same here, you're not alone in the dark:
Hunk #1 FAILED at 1106.
1 out of 1 hunk FAILED -- saving rejects to file arch/i386/kernel/smpboot.c.rej

Regards,

Signature · 8 lines
wwp


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 17 lines · wwp

Hi Marcel Meckel,

Quoted 12 lines · On Wed, 7 Jan 2004 13:46:58 +0100 Marcel Meckel…

trying to patch 2.4.24 patch into a vanilla kernel results in 1 reject:

patching file arch/i386/kernel/acpi.c
patching file arch/i386/kernel/mpparse.c
patching file arch/i386/kernel/smpboot.c
Hunk #1 FAILED at 1106.
1 out of 1 hunk FAILED -- saving rejects to file arch/i386/kernel/smpboot.c.rej patching file arch/x86_64/kernel/acpi.c patching file drivers/acpi/Config.in
patching file drivers/acpi/bus.c

Quoted 7 lines
Quoted 1 line

Please CC me on replies.

Same here, you're not alone in the dark:
Hunk #1 FAILED at 1106.
1 out of 1 hunk FAILED -- saving rejects to file arch/i386/kernel/smpboot.c.rej

I don't know what is the right solution, but its trying to replace
- for (bit = 0; bit < BITS_PER_LONG; bit++) {
with
+ for (bit = 0; bit < MAX_APICS; bit++) {
While the line actually reads:

	for (cpu = 0; cpu < NR_CPUS; cpu++) {

I left it as is and for now its working.

Quoted 16 lines

Regards,

Signature · 12 lines
wwp


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Acpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/acpi-devel

-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw

Hi Micha Feigin,

On Wed, 7 Jan 2004 18:07:11 +0200 Micha Feigin <michf-+lLcF8/[email protected]> wrote:

[snip]

Quoted 22 lines
Quoted 9 lines
Quoted 9 lines

patching file arch/i386/kernel/acpi.c
patching file arch/i386/kernel/mpparse.c
patching file arch/i386/kernel/smpboot.c
Hunk #1 FAILED at 1106.
1 out of 1 hunk FAILED -- saving rejects to file arch/i386/kernel/smpboot.c.rej patching file arch/x86_64/kernel/acpi.c patching file drivers/acpi/Config.in
patching file drivers/acpi/bus.c

Quoted 7 lines
Quoted 1 line

Please CC me on replies.

Same here, you're not alone in the dark:
Hunk #1 FAILED at 1106.
1 out of 1 hunk FAILED -- saving rejects to file arch/i386/kernel/smpboot.c.rej

I don't know what is the right solution, but its trying to replace

(quoted diff) +0 -1
- 	for (bit = 0; bit < BITS_PER_LONG; bit++) {

with

(quoted diff) +1 -0
+ 	for (bit = 0; bit < MAX_APICS; bit++) {

While the line actually reads:

Quoted 3 lines
	for (cpu = 0; cpu < NR_CPUS; cpu++) {

I left it as is and for now its working.

Currently, 2.4.24 uses NR_CPUS, and the fixes in the uv patch
(http://www.hardrock.org/kernel/current-updates/) uses BITS_PER_LONG.

Currently, the acpi patch tries to replace BITS_PER_LONG. That's a bit confusing :-). That's why we need an answer from the ACPI guy who manage this part of the patch, IMO.

Regards,

Signature · 8 lines
wwp


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
#7 lore raw
In reply to a message not in the archive

Hi Marcel Meckel,

Quoted 11 lines · On Wed, 7 Jan 2004 13:46:58 +0100 Marcel Meckel…

trying to patch 2.4.24 patch into a vanilla kernel results in 1 reject:

patching file arch/i386/kernel/acpi.c
patching file arch/i386/kernel/mpparse.c
patching file arch/i386/kernel/smpboot.c
Hunk #1 FAILED at 1106.
1 out of 1 hunk FAILED -- saving rejects to file arch/i386/kernel/smpboot.c.rej patching file arch/x86_64/kernel/acpi.c patching file drivers/acpi/Config.in
patching file drivers/acpi/bus.c

It is like if the acpi patch is based on a 2.4.24+uv1 patch (that replaces the use of NR_CPUS w/ BITS_PER_LONG). Quite easy to fix by hand, simply override the for (..) line w/ the one provided by the acpi patch.

Regards,

Signature · 8 lines
wwp


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click

A message that is not in the archive (sent off-list or not yet received): [email protected]

#9 lore raw
Quoted 4 lines

It is like if the acpi patch is based on a 2.4.24+uv1 patch (that replaces the use of NR_CPUS w/ BITS_PER_LONG). Quite easy to fix by hand, simply override the for (..) line w/ the one provided by the acpi patch.

I changed the patch file and then patch applied without errors on vanilla kernel.

-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html

A message that is not in the archive (sent off-list or not yet received): 20040107163907.391c146e.acpi-X2Xph2rMQzhn68oJJulU0Q@public.gmane.org

#11 lore raw

Hi Marcel Meckel,

Quoted 7 lines · On Wed, 7 Jan 2004 16:39:07 +0100 Marcel Meckel…
Quoted 4 lines

It is like if the acpi patch is based on a 2.4.24+uv1 patch (that replaces the use of NR_CPUS w/ BITS_PER_LONG). Quite easy to fix by hand, simply override the for (..) line w/ the one provided by the acpi patch.

I changed the patch file and then patch applied without errors on vanilla kernel.

I did the same. This should work.
Anyway official acpi patch would have to be updated.

Regards,

Signature · 8 lines
wwp


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#13 lore raw

I think
Full version of kernel2.4.24 have all apci patches updated

Quoted 22 lines · wwp

Hi Marcel Meckel,

Quoted 7 lines · On Wed, 7 Jan 2004 16:39:07 +0100 Marcel Meckel…
Quoted 4 lines

It is like if the acpi patch is based on a 2.4.24+uv1 patch (that replaces the use of NR_CPUS w/ BITS_PER_LONG). Quite easy to fix by hand, simply override the for (..) line w/ the one provided by the acpi patch.

I changed the patch file and then patch applied without errors on vanilla kernel.

I did the same. This should work.
Anyway official acpi patch would have to be updated.

Regards,

Signature · 1 line
wwp
Signature · 9 lines
Sérgio M B



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html

A message that is not in the archive (sent off-list or not yet received): 1073505678.7422.24.camel-4/PLUo9XfK/yXfm4dIG/yWZHpeb/A1Y/@public.gmane.org

#15 lore raw

Hi Sérgio Monteiro Basto,

Quoted 2 lines · On 07 Jan 2004 20:01:17 +0000 Sérgio Monteiro Basto…

I think
Full version of kernel2.4.24 have all apci patches updated

So why is there an acpi-2.4.24 patch??

Regards,

Signature · 8 lines
wwp


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
#16 lore raw
In reply to a message not in the archive

Hi Sérgio Monteiro Basto,

Quoted 2 lines · On 07 Jan 2004 20:01:17 +0000 Sérgio Monteiro Basto…

I think
Full version of kernel2.4.24 have all apci patches updated

Forgotten to say that 2.4.24 doesn't include any change around acpi since 2.4.23, it was only a security fix release (see the Changelog).

Regards,

Signature · 8 lines
wwp


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#18 lore raw

Two problems here -- both caused my me -- both now fixed.

1. I mis-merged the line in smpboot.c
when I first found and fixed that bug i replaced NR_CPUS with MAX_APICS, which made perfect sense for the non-numa case where MAX_APICS is 16. wli checked in the BITS_PER_LONG fix (32) and I mistakenly over-wrote it -- now restored.

2. Marcelo re-named the 2.4.24 bk tree to be 2.4.25
and quickly released a new 2.4.24 tree with just a couple of changes. Until tonight, my ACPI patch on kernel.org was against the 'old' 2.4.24. I've since updated both the trees at http://linux-acpi.bkbits.net/ as well as the plain patches up on http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches

Let me know if I missed anything.

thanks,
-Len

Quoted 5 lines · wwp

Hi Sérgio Monteiro Basto,

On 07 Jan 2004 20:01:17 +0000 Sérgio Monteiro Basto <[email protected]> wrote:

Quoted 8 lines
Quoted 2 lines

I think
Full version of kernel2.4.24 have all apci patches updated

Forgotten to say that 2.4.24 doesn't include any change around acpi since 2.4.23, it was only a security fix release (see the Changelog).

Regards,

-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#20 lore raw

Hi Len Brown,

Quoted 8 lines · On 09 Jan 2004 05:19:29 -0500 Len Brown <len.brown-ral2JQCrhuEAvxtiuMwx3w@publi…

Two problems here -- both caused my me -- both now fixed.

1. I mis-merged the line in smpboot.c
when I first found and fixed that bug i replaced NR_CPUS with MAX_APICS, which made perfect sense for the non-numa case where MAX_APICS is 16. wli checked in the BITS_PER_LONG fix (32) and I mistakenly over-wrote it -- now restored.

Quoted 8 lines

2. Marcelo re-named the 2.4.24 bk tree to be 2.4.25
and quickly released a new 2.4.24 tree with just a couple of changes. Until tonight, my ACPI patch on kernel.org was against the 'old' 2.4.24. I've since updated both the trees at http://linux-acpi.bkbits.net/ as well as the plain patches up on http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches

Let me know if I missed anything.

Thanx for the clarification!

Regards,

Signature · 8 lines
wwp


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html