From: Pavel Machek <pavel@ucw.cz>
To: "Luck, Tony" <tony.luck@intel.com>
Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>,
linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org,
marcelo@conectiva.com.br
Subject: Re: [PATCH 2.4.23-pre8] Remove broken prefetching in free_one_pgd()
Date: Sat, 25 Oct 2003 22:10:10 +0200 [thread overview]
Message-ID: <20031025201010.GC505@elf.ucw.cz> (raw)
In-Reply-To: <B8E391BBE9FE384DAA4C5C003888BE6F0F36E6@scsmsx401.sc.intel.com>
Hi!
> This patch was accepted into 2.5.55, attributed to "davej@uk".
Dave Jones?n
> This code will prefetch from beyond the end of the page table
> being cleared ... which is clearly a bad thing if the page table
> in question is allocated from the last page of memory (or precedes
> a hole on a discontig mem system).
Prefetching random addresses should be safe... Well for 2.4 we
probably want to play it safe and kill it, but I guess quite a few
pieces rely on prefretch(NULL) doing nothing...
> diff -ru linux-2.4.23-pre8/mm/memory.c fix/mm/memory.c
> --- linux-2.4.23-pre8/mm/memory.c Fri Oct 24 13:37:23 2003
> +++ fix/mm/memory.c Fri Oct 24 13:40:47 2003
> @@ -120,10 +120,8 @@
> }
> pmd = pmd_offset(dir, 0);
> pgd_clear(dir);
> - for (j = 0; j < PTRS_PER_PMD ; j++) {
> - prefetchw(pmd+j+(PREFETCH_STRIDE/16));
> + for (j = 0; j < PTRS_PER_PMD ; j++)
> free_one_pmd(pmd+j);
> - }
> pmd_free(pmd);
> }
--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
next prev parent reply other threads:[~2003-10-25 20:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-24 20:56 [PATCH 2.4.23-pre8] Remove broken prefetching in free_one_pgd() Luck, Tony
2003-10-24 22:01 ` David Mosberger
2003-10-25 20:10 ` Pavel Machek [this message]
2003-10-26 14:51 ` Dave Jones
2003-10-27 9:52 ` Pavel Machek
2003-10-27 11:58 ` Dave Jones
-- strict thread matches above, loose matches on Subject: below --
2003-10-24 22:16 Luck, Tony
2003-10-24 22:21 ` David Mosberger
2003-10-30 20:57 ` Bjorn Helgaas
2003-10-30 21:36 Luck, Tony
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=20031025201010.GC505@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=bjorn.helgaas@hp.com \
--cc=linux-ia64@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo@conectiva.com.br \
--cc=tony.luck@intel.com \
/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