dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: Roland Scheidegger <rscheidegger_lists@hispeed.ch>
To: Michael Harder <mharder1@gmail.com>, dri-devel@lists.freedesktop.org
Subject: Re: Fixing SIGILL on Pentium 4
Date: Sun, 17 Jan 2016 23:05:34 +0100	[thread overview]
Message-ID: <569C102E.8060409@hispeed.ch> (raw)
In-Reply-To: <CAA8EZ_1=NJ3=DgVnep4WALofxdvddvQ-LC+JDcmTbqMPEOAgiw@mail.gmail.com>

Am 17.01.2016 um 20:09 schrieb Michael Harder:
> Hi all,
> 
> I'm trying to get my Kodi media center working but am experiencing
> crashes when playing a movie. There is a ticket
> at https://bugs.freedesktop.org/show_bug.cgi?id=27512. From the help
> I've received so far and the research I've done it sounds like the
> instruction prefetch is not available on Pentium 4. That's what produces
> the original error:
> 
> Program terminated with signal SIGILL, Illegal instruction.
> #0  _mesa_x86_64_transform_points4_general () at x86-64/xform4.S:72
> 72              prefetch 16(%rdx)
> [Current thread is 1 (Thread 0x7f9054aeb9c0 (LWP 791))]
> 
> 
> I've tried the suggested patch which updates src/mesa/x86-64/xform4.S to
> use prefetcht1 instead of prefetch. I understand that prefetcht1 is part
> of SSE which Pentium 4 supports. It worked for a few days but now I'm
> getting this error:
> 
> Program terminated with signal SIGILL, Illegal instruction.
> #0  _mesa_x86_64_transform_points4_general () at x86-64/xform4.S:72
> 72              prefetcht1 16(%rdx)
> [Current thread is 1 (Thread 0x7fd24af779c0 (LWP 797))]
> 
> 
> Is the prefetcht1 instruction supported by Pentium 4?
Yes.

> Any suggestions
> about an alternative instruction I could try?
No. Well prefetchnta, prefetcht0, prefetcht2 would work too (as well as
just skipping it completely), but I cannot see why that would work
better. As far I can tell, a sigill there should be impossible. Unless
the asembler did something odd (I suppose you could not just look at the
disassembly output, but look at the actual encoding).
Also, it doesn't make sense that "it worked for a couple of days" and
now doesn't, which is very suspicious...

Roland


_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

      reply	other threads:[~2016-01-17 22:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-17 19:09 Fixing SIGILL on Pentium 4 Michael Harder
2016-01-17 22:05 ` Roland Scheidegger [this message]

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=569C102E.8060409@hispeed.ch \
    --to=rscheidegger_lists@hispeed.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=mharder1@gmail.com \
    /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).