From: "Torsten Kaiser" <just.for.lkml@googlemail.com>
To: "Andy Whitcroft" <apw@shadowen.org>
Cc: "Mel Gorman" <mel@skynet.ie>,
"Andrew Morton" <akpm@linux-foundation.org>,
Valdis.Kletnieks@vt.edu, linux-kernel@vger.kernel.org
Subject: Re: 2.6.23-rc1-mm2
Date: Thu, 2 Aug 2007 19:44:30 +0200 [thread overview]
Message-ID: <64bb37e0708021044v5a1bd945r236f5f6c5f67e0f8@mail.gmail.com> (raw)
In-Reply-To: <20070802140159.GA30328@shadowen.org>
On 8/2/07, Andy Whitcroft <apw@shadowen.org> wrote:
> vmemmap x86_64: ensure end of section memmap is initialised
>
> Similar to the generic initialisers, the x86_64 vmemmap
> initialisation may incorrectly skip the last page of a section if
> the section start is not aligned to the page.
>
> Where we have a section spanning the end of a PMD we will check the
> start of the section at A populating it. We will then move on 1
> PMD page to C and find ourselves beyond the end of the section which
> ends at B we will complete without checking the second PMD page.
>
> | PMD | PMD |
> | SECTION |
> A B C
>
> We should round ourselves to the end of the PMD as we iterate.
>
> Signed-off-by: Andy Whitcroft <apw@shadowen.org>
> ---
> arch/x86_64/mm/init.c | 9 +++++----
> 1 files changed, 5 insertions(+), 4 deletions(-)
> diff --git a/arch/x86_64/mm/init.c b/arch/x86_64/mm/init.c
> index ac49df0..5d1ed03 100644
> --- a/arch/x86_64/mm/init.c
> +++ b/arch/x86_64/mm/init.c
> @@ -792,9 +792,10 @@ int __meminit vmemmap_populate_pmd(pud_t *pud, unsigned long addr,
> unsigned long end, int node)
> {
> pmd_t *pmd;
> + unsigned long next;
>
> - for (pmd = pmd_offset(pud, addr); addr < end;
> - pmd++, addr += PMD_SIZE)
> + for (pmd = pmd_offset(pud, addr); addr < end; pmd++, addr = next) {
> + next = pmd_addr_end(addr, end);
> if (pmd_none(*pmd)) {
> pte_t entry;
> void *p = vmemmap_alloc_block(PMD_SIZE, node);
> @@ -808,8 +809,8 @@ int __meminit vmemmap_populate_pmd(pud_t *pud, unsigned long addr,
> printk(KERN_DEBUG " [%lx-%lx] PMD ->%p on node %d\n",
> addr, addr + PMD_SIZE - 1, p, node);
> } else
> - vmemmap_verify((pte_t *)pmd, node,
> - pmd_addr_end(addr, end), end);
> + vmemmap_verify((pte_t *)pmd, node, next, end);
> + }
> return 0;
> }
> #endif
>
That patch applied to 2.6.23-rc1-mm2 boots.
But I still the the MP-BIOS bug, now with an additional Call Trace:
[ 27.034907] ACPI: Core revision 20070126
[ 27.082090] ..MP-BIOS bug: 8254 timer not connected to IO-APIC
[ 27.132617] WARNING: at kernel/irq/resend.c:69 check_irq_resend()
[ 27.150837]
[ 27.150837] Call Trace:
[ 27.162621] [<ffffffff80261c4c>] check_irq_resend+0xbc/0xd0
[ 27.179558] [<ffffffff802617c0>] enable_irq+0xf0/0x100
[ 27.195177] [<ffffffff807c6984>] setup_IO_APIC+0x6c4/0x9a0
[ 27.211833] [<ffffffff80234e74>] set_cpus_allowed+0x64/0xc0
[ 27.228749] [<ffffffff807c4e14>] smp_prepare_cpus+0x434/0x460
[ 27.246183] [<ffffffff807bc627>] kernel_init+0x67/0x350
[ 27.262062] [<ffffffff8020cac8>] child_rip+0xa/0x12
[ 27.276928] [<ffffffff803d4f80>] acpi_ds_init_one_object+0x0/0x7c
[ 27.295425] [<ffffffff807bc5c0>] kernel_init+0x0/0x350
[ 27.311043] [<ffffffff8020cabe>] child_rip+0x0/0x12
[ 27.325881]
[ 27.463199] Using local APIC timer interrupts.
[ 27.514874] result 12500129
[ 27.523240] Detected 12.500 MHz APIC timer.
It does no longer seem to matter if it was a warm or cold start.
Otherwise the system seems to be working normal.
Torsten
next prev parent reply other threads:[~2007-08-02 17:44 UTC|newest]
Thread overview: 96+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-01 6:09 2.6.23-rc1-mm2 Andrew Morton
2007-08-01 6:25 ` 2.6.23-rc1-mm2 Paul Mundt
2007-08-01 7:58 ` 2.6.23-rc1-mm2 Mike Frysinger
2007-08-01 8:10 ` 2.6.23-rc1-mm2 Andrew Morton
2007-08-01 13:45 ` 2.6.23-rc1-mm2 Christoph Hellwig
2007-08-01 13:57 ` 2.6.23-rc1-mm2 Jason Wessel
2007-08-01 8:15 ` 2.6.23-rc1-mm2 Paul Mundt
2007-08-01 9:04 ` 2.6.23-rc1-mm2 Mike Frysinger
2007-08-01 12:22 ` 2.6.23-rc1-mm2 Jason Wessel
2007-08-01 7:36 ` 2.6.23-rc1-mm2 (vm-dont-run-touch_buffer-during-buffercache-lookups.patch) Eric St-Laurent
2007-08-01 7:46 ` Andrew Morton
2007-08-01 8:04 ` Eric St-Laurent
2007-08-01 8:30 ` Andrew Morton
2007-08-01 8:02 ` 2.6.23-rc1-mm2 Mariusz Kozlowski
2007-08-01 8:13 ` 2.6.23-rc1-mm2 Andrew Morton
2007-08-01 8:16 ` 2.6.23-rc1-mm2 Ingo Molnar
2007-08-01 10:23 ` 2.6.23-rc1-mm2 Jiri Kosina
2007-08-02 9:47 ` 2.6.23-rc1-mm2 Mariusz Kozlowski
2007-08-02 14:20 ` [linux-usb-devel] 2.6.23-rc1-mm2 Alan Stern
2007-08-02 14:26 ` Jiri Kosina
2007-08-02 14:32 ` Mariusz Kozlowski
2007-08-01 10:32 ` 2.6.23-rc1-mm2 Paul Mackerras
2007-08-02 10:14 ` 2.6.23-rc1-mm2 Mariusz Kozlowski
2007-08-03 9:39 ` 2.6.23-rc1-mm2 Kumar Gala
2007-08-06 19:12 ` 2.6.23-rc1-mm2 Segher Boessenkool
2007-08-06 19:10 ` 2.6.23-rc1-mm2 Segher Boessenkool
2007-08-01 16:36 ` 2.6.23-rc1-mm2 Greg KH
2007-08-06 19:08 ` 2.6.23-rc1-mm2 Segher Boessenkool
2007-08-06 19:34 ` 2.6.23-rc1-mm2 Mariusz Kozlowski
2007-08-06 21:25 ` 2.6.23-rc1-mm2 Segher Boessenkool
2007-08-06 22:34 ` 2.6.23-rc1-mm2 Mariusz Kozlowski
2007-08-06 23:12 ` 2.6.23-rc1-mm2 Segher Boessenkool
2007-08-01 9:34 ` [PATCH] prevent SSB compilation on s390 part 2 Heiko Carstens
2007-08-01 12:24 ` John W. Linville
2007-08-01 14:43 ` Heiko Carstens
2007-08-01 14:54 ` Michael Buesch
2007-08-01 10:33 ` unionfs compile error ( Re: 2.6.23-rc1-mm2 ) Gabriel C
2007-08-01 17:22 ` Andrew Morton
2007-08-01 17:27 ` Josef Sipek
2007-08-02 16:29 ` Erez Zadok
2007-08-01 17:35 ` Gabriel C
2007-08-01 10:56 ` 2.6.23-rc1-mm2 Gabriel C
2007-08-01 17:26 ` 2.6.23-rc1-mm2 Andrew Morton
2007-08-01 17:39 ` 2.6.23-rc1-mm2 Gabriel C
2007-08-01 11:16 ` [PATCH] fix slown down printk on boot compile error Heiko Carstens
2007-08-01 16:32 ` Randy Dunlap
2007-08-01 13:01 ` drivers/scsi/advansys.c compile error ( Re: 2.6.23-rc1-mm2 ) Gabriel C
2007-08-01 13:39 ` [PATCH] drivers/scsi/advansys.c: fix advansys_board_found compile error Eugene Teo
2007-08-01 13:54 ` Gabriel C
2007-08-01 13:55 ` Matthew Wilcox
2007-08-01 14:27 ` Gabriel C
2007-08-01 14:32 ` Matthew Wilcox
2007-08-01 14:46 ` Gabriel C
2007-08-01 14:23 ` [PATCH -mm] Fix defined but not used warning in drivers/kvm/vmx.c Gabriel C
2007-08-01 18:35 ` Avi Kivity
2007-08-01 15:19 ` [PATCH -mm] Fix a section mismatch warning Gabriel C
2007-08-01 20:13 ` 2.6.23-rc1-mm2 (checks-for-80wire-cable-use-in-pata_via) Laurent Riffard
2007-08-01 20:30 ` 2.6.23-rc1-mm2 Valdis.Kletnieks
2007-08-01 20:40 ` 2.6.23-rc1-mm2 Andrew Morton
2007-08-01 20:52 ` 2.6.23-rc1-mm2 Torsten Kaiser
2007-08-01 21:17 ` 2.6.23-rc1-mm2 Andrew Morton
2007-08-01 23:40 ` 2.6.23-rc1-mm2 Mel Gorman
2007-08-02 4:38 ` 2.6.23-rc1-mm2 Torsten Kaiser
2007-08-02 14:01 ` 2.6.23-rc1-mm2 Andy Whitcroft
2007-08-02 17:44 ` Torsten Kaiser [this message]
2007-08-01 23:40 ` INOTIFY=n , AUDIT*=y compile error Gabriel C
2007-08-01 23:59 ` [PATCH -mm] linux-audit list is subscribers-only Gabriel C
2007-08-02 1:30 ` Randy Dunlap
2007-08-02 13:11 ` [PATCH -mm] Fix section mismatch warnings in sound/pci/hda/ Gabriel C
2007-08-02 13:24 ` Takashi Iwai
2007-08-02 16:32 ` Sam Ravnborg
2007-08-02 17:17 ` Takashi Iwai
2007-08-02 17:31 ` 2.6.23-rc1-mm2: Fix crash in sysfs_hash_and_remove Rafael J. Wysocki
2007-08-02 17:34 ` Tejun Heo
2007-08-02 18:19 ` Eric W. Biederman
2007-08-03 11:00 ` 2.6.23-rc1-mm2 Marc Dietrich
2007-08-03 16:38 ` 2.6.23-rc1-mm2 Andrew Morton
2007-08-03 17:03 ` [NFS] 2.6.23-rc1-mm2 Trond Myklebust
2007-08-03 17:21 ` Oleg Nesterov
2007-08-06 6:24 ` Johannes Berg
2007-08-06 10:53 ` Oleg Nesterov
2007-08-06 10:58 ` Johannes Berg
2007-08-06 11:05 ` Marc Dietrich
2007-08-06 11:13 ` Johannes Berg
2007-08-06 16:24 ` Trond Myklebust
2007-08-07 12:09 ` Marc Dietrich
2007-08-07 21:08 ` Trond Myklebust
2007-08-07 21:37 ` Oleg Nesterov
2007-08-07 22:05 ` Trond Myklebust
2007-08-07 22:20 ` Oleg Nesterov
2007-08-07 23:08 ` Trond Myklebust
2007-08-07 23:14 ` Oleg Nesterov
2007-08-08 21:31 ` 2.6.23-rc1-mm2: MMC_ARMMMCI compile error Adrian Bunk
2007-08-09 12:03 ` Pierre Ossman
2007-08-14 21:21 ` [-mm patch] make pm3fb_init() static again Adrian Bunk
2007-08-14 21:21 ` [-mm patch] fs/reiser4/plugin/: make 3 functions static Adrian Bunk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=64bb37e0708021044v5a1bd945r236f5f6c5f67e0f8@mail.gmail.com \
--to=just.for.lkml@googlemail.com \
--cc=Valdis.Kletnieks@vt.edu \
--cc=akpm@linux-foundation.org \
--cc=apw@shadowen.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mel@skynet.ie \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®