Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: James Hogan <james.hogan@imgtec.com>
To: jianchao.wang <jianchao.wan9@gmail.com>
Cc: Ralf Baechle <ralf@linux-mips.org>, <linux-mips@linux-mips.org>,
	<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] MIPS:wrong usage of l_exc_copy in octeon-memcpy.S
Date: Mon, 20 Feb 2017 11:53:31 +0000	[thread overview]
Message-ID: <20170220115331.GA24226@jhogan-linux.le.imgtec.org> (raw)
In-Reply-To: <1487562178-2901-1-git-send-email-jianchao.wan9@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1052 bytes --]

Hi,

On Mon, Feb 20, 2017 at 11:42:58AM +0800, jianchao.wang wrote:
> l_exc_copy() is usually to be used like this:
> 1 EXC(	LOAD	t0, UNIT(0)(src),	l_exc)
> 2 EXC(	LOAD	t1, UNIT(1)(src),	l_exc_copy)
> 3 EXC(	LOAD	t2, UNIT(2)(src),	l_exc_copy)
> 4 EXC(	LOAD	t3, UNIT(3)(src),	l_exc_copy)
> When the fault occurs on row 4, l_exc_copy will get the bad
> addr through THREAD_BUADDR(), complete the copy of row
> 1,2 and 3, and then return the len that has not been copied.
> l_exc_copy assumes the src is smaller thann the bad addr.It will
> increase src by 1 until reach the bad addr.
> 
> octeon-memcpy.S use the l_exc_copy with wrong way which make src
> could be greater than bad addr. We will fix it in this patch.
> We add the max offset of LOAD to 15 here to fix the issue without
> adding new commands . Howerver, the side effect is that, when LOAD
> fails in few case, l_exc_copy has to copy more.

Is this trying to fix the same issue as the following patch?

https://patchwork.linux-mips.org/patch/14978/

Thanks
James

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: James Hogan <james.hogan@imgtec.com>
To: "jianchao.wang" <jianchao.wan9@gmail.com>
Cc: Ralf Baechle <ralf@linux-mips.org>,
	linux-mips@linux-mips.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] MIPS:wrong usage of l_exc_copy in octeon-memcpy.S
Date: Mon, 20 Feb 2017 11:53:31 +0000	[thread overview]
Message-ID: <20170220115331.GA24226@jhogan-linux.le.imgtec.org> (raw)
Message-ID: <20170220115331.9eZqL901AQlnBYY9iY3bONmXJcDt8OuOL7pUI-QrGN0@z> (raw)
In-Reply-To: <1487562178-2901-1-git-send-email-jianchao.wan9@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1052 bytes --]

Hi,

On Mon, Feb 20, 2017 at 11:42:58AM +0800, jianchao.wang wrote:
> l_exc_copy() is usually to be used like this:
> 1 EXC(	LOAD	t0, UNIT(0)(src),	l_exc)
> 2 EXC(	LOAD	t1, UNIT(1)(src),	l_exc_copy)
> 3 EXC(	LOAD	t2, UNIT(2)(src),	l_exc_copy)
> 4 EXC(	LOAD	t3, UNIT(3)(src),	l_exc_copy)
> When the fault occurs on row 4, l_exc_copy will get the bad
> addr through THREAD_BUADDR(), complete the copy of row
> 1,2 and 3, and then return the len that has not been copied.
> l_exc_copy assumes the src is smaller thann the bad addr.It will
> increase src by 1 until reach the bad addr.
> 
> octeon-memcpy.S use the l_exc_copy with wrong way which make src
> could be greater than bad addr. We will fix it in this patch.
> We add the max offset of LOAD to 15 here to fix the issue without
> adding new commands . Howerver, the side effect is that, when LOAD
> fails in few case, l_exc_copy has to copy more.

Is this trying to fix the same issue as the following patch?

https://patchwork.linux-mips.org/patch/14978/

Thanks
James

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

  reply	other threads:[~2017-02-20 11:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-20  3:42 [PATCH] MIPS:wrong usage of l_exc_copy in octeon-memcpy.S jianchao.wang
2017-02-20 11:53 ` James Hogan [this message]
2017-02-20 11:53   ` James Hogan

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=20170220115331.GA24226@jhogan-linux.le.imgtec.org \
    --to=james.hogan@imgtec.com \
    --cc=jianchao.wan9@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@linux-mips.org \
    --cc=ralf@linux-mips.org \
    /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