linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: bugzilla-daemon@bugzilla.kernel.org
To: linuxppc-dev@lists.ozlabs.org
Subject: [Bug 212631] New: Misaligned floating point loads and store occasionally fail
Date: Fri, 09 Apr 2021 15:34:24 +0000	[thread overview]
Message-ID: <bug-212631-206035@https.bugzilla.kernel.org/> (raw)

https://bugzilla.kernel.org/show_bug.cgi?id=212631

            Bug ID: 212631
           Summary: Misaligned floating point loads and store occasionally
                    fail
           Product: Platform Specific/Hardware
           Version: 2.5
    Kernel Version: 5.4.110
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: PPC-32
          Assignee: platform_ppc-32@kernel-bugs.osdl.org
          Reporter: trevor_davenport@selinc.com
        Regression: No

Created attachment 296311
  --> https://bugzilla.kernel.org/attachment.cgi?id=296311&action=edit
Floating point load test program

On a 32-bit PPC, e300c1 CPU, I am occasionally seeing misaligned floating point
loads/store occasionally fail.  It appears to happen when a process is
preempted.  Reducing preemption cause the issue to be fare less likely to
occur. 

When it fails(in the load case), I've traced it down to do_fp_load.  It fails
when it takes the false branch while it works when taking the true branch (see
https://elixir.bootlin.com/linux/v5.4.110/source/arch/powerpc/lib/sstep.c#L492).

The issue was originally seen on a preempt-rt kernel, but it can be reproduced
on a regular kernel compiled for low latency desktop as well.

The issue can be reproduced with the attached program which just performs an
unaligned FP load.  Eventually it will produce a zero and exit.  

Example output:
 11326b98
 22453191
 3357f78a
 446abd71
 557d70b6
 11326b98
 22453191
 3357f78a
 446abd71
 557d70b6
 11326b98
 22453191
 3357f78a
 00000000
 float-bug: float-bug.c:14: main: Assertion `b[0] != 00' failed.

This has been compiled with gcc 9.3.0.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

             reply	other threads:[~2021-04-09 15:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-09 15:34 bugzilla-daemon [this message]
2021-04-09 15:47 ` [Bug 212631] Misaligned floating point loads and store occasionally fail bugzilla-daemon
2021-04-09 18:10 ` bugzilla-daemon

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=bug-212631-206035@https.bugzilla.kernel.org/ \
    --to=bugzilla-daemon@bugzilla.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.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;
as well as URLs for NNTP newsgroup(s).