Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: "Kevin D. Kissell" <kevink@mips.com>
To: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Cc: yoichi_yuasa@tripeaks.co.jp, linux-mips@linux-mips.org,
	ralf@linux-mips.org
Subject: Re: [PATCH] fix cache coherency issues
Date: Tue, 14 Feb 2006 14:48:39 +0100	[thread overview]
Message-ID: <43F1DFB7.1060106@mips.com> (raw)
In-Reply-To: <20060214.191215.115641299.nemoto@toshiba-tops.co.jp>

Atsushi Nemoto wrote:
>>>>>> On Tue, 14 Feb 2006 17:56:57 +0900, Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> said:
> yuasa> This patch fixed the boot problem, but the kernel still has
> yuasa> cache coherency problem.
> 
> yuasa> ~# ./cachetest 
> yuasa> Test separation: 4096 bytes: FAIL - cache not coherent
> 
> Thank you for testing.
> 
> As for the cachetest program, I think the test program is wrong.
> 
> It try to mmap offset 0 of a shared file to odd address page with
> MAP_FIXED.  It means "I want non-coherent mapping if dcache alias
> exists".  Currently the kernel surely gives what the program want.
> 
> The kernel might have to return EINVAL in such case, but I'm not sure
> which is the right behavior.  Please look at David S. Miller's
> comments, for example, http://lkml.org/lkml/2003/9/1/48

I've been maintaining for years that EINVAL is the correct
thing to do when the kernel detects that a user is requesting
a mapping that the kernel knows will create aliasing problems,
but this ran counter to the "serves the user right" philosophy
that seemed to dominate the Linux kernel community.  I'm
pleased to see that the tide seems to be shifting.  As an old-time
BSD/SysV hacker from the 1980s, I view system calls as a
contract with the user: if the kernel says it's OK, it's
supposed to work, period.

But I better get down off my soapbox before I launch into
my rant about the OOM killer being proof of a failed paradigm... ;o)

		Regards,

		Kevin K.

  parent reply	other threads:[~2006-02-14 13:40 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-13 16:15 [PATCH] fix cache coherency issues Atsushi Nemoto
2006-02-14  1:59 ` Yoichi Yuasa
2006-02-14  2:15   ` Atsushi Nemoto
2006-02-14  2:26     ` Yoichi Yuasa
2006-02-14  3:08       ` Atsushi Nemoto
2006-02-14  7:07         ` Yoichi Yuasa
2006-02-14  7:42           ` Atsushi Nemoto
2006-02-14  8:56             ` Yoichi Yuasa
2006-02-14 10:12               ` Atsushi Nemoto
2006-02-14 13:14                 ` Atsushi Nemoto
2006-02-14 13:48                 ` Kevin D. Kissell [this message]
2006-05-22 15:34 ` Atsushi Nemoto
2006-08-23 15:31   ` Atsushi Nemoto
2006-08-23 16:52     ` Nigel Stephens
2006-08-24  1:15       ` Atsushi Nemoto
2006-08-24 11:15         ` Ralf Baechle
2006-08-24 11:38           ` Atsushi Nemoto
2006-08-24 12:12             ` Ralf Baechle
2006-08-24 15:12               ` Atsushi Nemoto

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=43F1DFB7.1060106@mips.com \
    --to=kevink@mips.com \
    --cc=anemo@mba.ocn.ne.jp \
    --cc=linux-mips@linux-mips.org \
    --cc=ralf@linux-mips.org \
    --cc=yoichi_yuasa@tripeaks.co.jp \
    /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