2.4.24 patch apply failed on vanilla kernel
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
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 filearch/i386/kernel/mpparse.c
patching filearch/i386/kernel/smpboot.c
Hunk #1 FAILED at 1106.
1 out of 1 hunk FAILED -- saving rejects to filearch/i386/kernel/smpboot.c.rejpatching filearch/x86_64/kernel/acpi.cpatching filedrivers/acpi/Config.in
patching filedrivers/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
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 filearch/i386/kernel/mpparse.c
patching filearch/i386/kernel/smpboot.c
Hunk #1 FAILED at 1106.
1 out of 1 hunk FAILED -- saving rejects to filearch/i386/kernel/smpboot.c.rejpatching filearch/x86_64/kernel/acpi.cpatching filedrivers/acpi/Config.in
patching filedrivers/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
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_CPUSw/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
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_CPUSw/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
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 filearch/i386/kernel/mpparse.c
patching filearch/i386/kernel/smpboot.c
Hunk #1 FAILED at 1106.
1 out of 1 hunk FAILED -- saving rejects to filearch/i386/kernel/smpboot.c.rejpatching filearch/x86_64/kernel/acpi.cpatching filedrivers/acpi/Config.in
patching filedrivers/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 filearch/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
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 filearch/i386/kernel/mpparse.c
patching filearch/i386/kernel/smpboot.c
Hunk #1 FAILED at 1106.
1 out of 1 hunk FAILED -- saving rejects to filearch/i386/kernel/smpboot.c.rejpatching filearch/x86_64/kernel/acpi.cpatching filedrivers/acpi/Config.in
patching filedrivers/acpi/bus.cQuoted 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 filearch/i386/kernel/smpboot.c.rejI 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
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_CPUSw/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
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
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
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 updatedForgotten 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
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 replacedNR_CPUSwithMAX_APICS, which made perfect sense for the non-numa case whereMAX_APICSis 16. wli checked in theBITS_PER_LONGfix (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/patchesLet 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