From: Matthew Wilcox <willy@debian.org>
To: "David S. Miller" <davem@redhat.com>
Cc: alan@lxorguk.ukuu.org.uk, rmk@arm.linux.org.uk, hugh@veritas.com,
willy@debian.org, akpm@zip.com.au, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] shmem missing cache flush
Date: Mon, 28 Oct 2002 14:32:26 +0000 [thread overview]
Message-ID: <20021028143226.N27461@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <20021028.061059.38206858.davem@redhat.com>; from davem@redhat.com on Mon, Oct 28, 2002 at 06:10:59AM -0800
On Mon, Oct 28, 2002 at 06:10:59AM -0800, David S. Miller wrote:
> Here goes. I contacted Anton and Paulus about flush_icache_page as
> that is on the hitlist next and ppc/ppc64 is the only well maintained
> port using that.
s/well maintained port/port that linus takes patches from regularly/
What do you want to do about flush_icache_page? You want to change it
to flush_dcache_page at eviction time, and then we can purge that page
from our icache in update_mmu_cache?
> --- ./include/asm-parisc/pgalloc.h.~1~ Mon Oct 28 05:56:41 2002
> +++ ./include/asm-parisc/pgalloc.h Mon Oct 28 06:00:13 2002
> @@ -72,7 +72,7 @@ flush_kernel_dcache_range(unsigned long
> asm volatile("syncdma" : : );
> }
>
> -extern void __flush_page_to_ram(unsigned long address);
> +#error flush_page_to_ram is obsoleted, please convert to flush_dcache_page
>
> #define flush_cache_all() flush_all_caches()
> #define flush_cache_mm(foo) flush_all_caches()
> @@ -99,9 +99,6 @@ extern inline void flush_cache_mm(struct
> __flush_dcache_range(vmaddr, PAGE_SIZE); \
> __flush_icache_range(vmaddr, PAGE_SIZE); \
> } while(0)
> -
> -#define flush_page_to_ram(page) \
> - __flush_page_to_ram((unsigned long)page_address(page))
>
> #define flush_icache_range(start, end) \
> __flush_icache_range(start, end - start)
You may as well drop this hunk from the diff; our current tree doesn't
even have these functions; just:
static inline void
flush_page_to_ram(struct page *page)
{
}
in asm/cacheflush.h
--
Revolutions do not require corporate support.
next prev parent reply other threads:[~2002-10-28 14:26 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-16 18:26 [PATCH] shmem missing cache flush Matthew Wilcox
2002-10-16 23:57 ` Hugh Dickins
2002-10-16 23:58 ` David S. Miller
2002-10-17 0:19 ` Russell King
2002-10-17 0:16 ` David S. Miller
2002-10-21 15:04 ` Alan Cox
2002-10-21 15:21 ` David S. Miller
2002-10-21 16:12 ` Alan Cox
2002-10-28 14:10 ` David S. Miller
2002-10-28 14:32 ` Matthew Wilcox [this message]
2002-10-28 14:26 ` David S. Miller
2002-10-28 16:36 ` Matthew Wilcox
2002-10-28 16:55 ` David S. Miller
2002-10-28 17:06 ` Matthew Wilcox
2002-10-28 16:58 ` David S. Miller
2002-10-29 21:52 ` Matthew Wilcox
2002-10-28 17:08 ` Alan Cox
2002-10-28 16:52 ` Matthew Wilcox
2002-10-28 14:35 ` Hugh Dickins
2002-10-28 14:26 ` David S. Miller
-- strict thread matches above, loose matches on Subject: below --
2002-10-28 16:50 Manfred Spraul
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=20021028143226.N27461@parcelfarce.linux.theplanet.co.uk \
--to=willy@debian.org \
--cc=akpm@zip.com.au \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=davem@redhat.com \
--cc=hugh@veritas.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk@arm.linux.org.uk \
/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