From: "BERTRAND Joël" <joel.bertrand@systella.fr>
To: sparclinux@vger.kernel.org
Subject: Re: sun4v_data_access_exception on new 2.6.23
Date: Fri, 12 Oct 2007 09:16:11 +0000 [thread overview]
Message-ID: <470F3B5B.2010104@systella.fr> (raw)
In-Reply-To: <470E6F28.2010709@systella.fr>
David Miller wrote:
> From: BERTRAND_Joël <joel.bertrand@systella.fr>
> Date: Fri, 12 Oct 2007 09:04:16 +0200
>
>> Writing inode tables: Kernel unaligned access at TPC[56004c]
>> xor_niagara_4+0x5c/0x128
>> sun4v_data_access_exception: ADDR[000000000053d354] CTX[0000]
>> TYPE[000a], going.
>
> Please try this patch:
>
> diff --git a/arch/sparc64/lib/xor.S b/arch/sparc64/lib/xor.S
> index a79c888..f44f58f 100644
> --- a/arch/sparc64/lib/xor.S
> +++ b/arch/sparc64/lib/xor.S
> @@ -491,12 +491,12 @@ xor_niagara_4: /* %o0=bytes, %o1Þst, %o2=src1, %o3=src2, %o4=src3 */
> ldda [%i1 + 0x10] %asi, %i2 /* %i2/%i3 = src1 + 0x10 */
> xor %g2, %i4, %g2
> xor %g3, %i5, %g3
> - ldda [%i7 + 0x10] %asi, %i4 /* %i4/%i5 = src2 + 0x10 */
> + ldda [%l7 + 0x10] %asi, %i4 /* %i4/%i5 = src2 + 0x10 */
> xor %l0, %g2, %l0
> xor %l1, %g3, %l1
> stxa %l0, [%i0 + 0x00] %asi
> stxa %l1, [%i0 + 0x08] %asi
> - ldda [%i6 + 0x10] %asi, %g2 /* %g2/%g3 = src3 + 0x10 */
> + ldda [%l6 + 0x10] %asi, %g2 /* %g2/%g3 = src3 + 0x10 */
> ldda [%i0 + 0x10] %asi, %l0 /* %l0/%l1 = dest + 0x10 */
>
> xor %i4, %i2, %i4
> @@ -504,12 +504,12 @@ xor_niagara_4: /* %o0=bytes, %o1Þst, %o2=src1, %o3=src2, %o4=src3 */
> ldda [%i1 + 0x20] %asi, %i2 /* %i2/%i3 = src1 + 0x20 */
> xor %g2, %i4, %g2
> xor %g3, %i5, %g3
> - ldda [%i7 + 0x20] %asi, %i4 /* %i4/%i5 = src2 + 0x20 */
> + ldda [%l7 + 0x20] %asi, %i4 /* %i4/%i5 = src2 + 0x20 */
> xor %l0, %g2, %l0
> xor %l1, %g3, %l1
> stxa %l0, [%i0 + 0x10] %asi
> stxa %l1, [%i0 + 0x18] %asi
> - ldda [%i6 + 0x20] %asi, %g2 /* %g2/%g3 = src3 + 0x20 */
> + ldda [%l6 + 0x20] %asi, %g2 /* %g2/%g3 = src3 + 0x20 */
> ldda [%i0 + 0x20] %asi, %l0 /* %l0/%l1 = dest + 0x20 */
>
> xor %i4, %i2, %i4
> @@ -517,12 +517,12 @@ xor_niagara_4: /* %o0=bytes, %o1Þst, %o2=src1, %o3=src2, %o4=src3 */
> ldda [%i1 + 0x30] %asi, %i2 /* %i2/%i3 = src1 + 0x30 */
> xor %g2, %i4, %g2
> xor %g3, %i5, %g3
> - ldda [%i7 + 0x30] %asi, %i4 /* %i4/%i5 = src2 + 0x30 */
> + ldda [%l7 + 0x30] %asi, %i4 /* %i4/%i5 = src2 + 0x30 */
> xor %l0, %g2, %l0
> xor %l1, %g3, %l1
> stxa %l0, [%i0 + 0x20] %asi
> stxa %l1, [%i0 + 0x28] %asi
> - ldda [%i6 + 0x30] %asi, %g2 /* %g2/%g3 = src3 + 0x30 */
> + ldda [%l6 + 0x30] %asi, %g2 /* %g2/%g3 = src3 + 0x30 */
> ldda [%i0 + 0x30] %asi, %l0 /* %l0/%l1 = dest + 0x30 */
>
> prefetch [%i1 + 0x40], #one_read
David,
I think that your patch fix this bug. I shall test on other T1000 this
afternoon.
Thanks,
JKB
next prev parent reply other threads:[~2007-10-12 9:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-11 18:44 sun4v_data_access_exception on new 2.6.23 BERTRAND Joël
2007-10-11 21:42 ` David Miller
2007-10-11 22:37 ` David Miller
2007-10-12 5:47 ` BERTRAND Joël
2007-10-12 7:04 ` BERTRAND Joël
2007-10-12 8:37 ` David Miller
2007-10-12 8:50 ` David Miller
2007-10-12 8:52 ` BERTRAND Joël
2007-10-12 9:16 ` BERTRAND Joël [this message]
2007-10-12 9:27 ` David Miller
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=470F3B5B.2010104@systella.fr \
--to=joel.bertrand@systella.fr \
--cc=sparclinux@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.