Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Dec 2017 22:17:34 -0600
From:      Justin Hibbits <jhibbits@freebsd.org>
To:        src-committers <src-committers@freebsd.org>,  "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>,  "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r326870 - in head/sys/powerpc: include powerpc
Message-ID:  <CAHSQbTCn84sYbeSWPg6VX%2Bo4Ui-2Vv453qooB=Meg=02eodXjw@mail.gmail.com>
In-Reply-To: <201712150411.vBF4BK7Y065169@repo.freebsd.org>
References:  <201712150411.vBF4BK7Y065169@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Dec 14, 2017 at 10:11 PM, Justin Hibbits <jhibbits@freebsd.org> wrote:
> Author: jhibbits
> Date: Fri Dec 15 04:11:20 2017
> New Revision: 326870
> URL: https://svnweb.freebsd.org/changeset/base/326870
>
> Log:
>   Handle the Facility Unavailable exception as a SIGILL
>
>   Currently Facility Unavailable is absent and once an application
>   tries to use or access a register from a feature disabled in the
>   CPU it causes a kernel panic.
>
>   A simple test-case is:
>
>   int main() { asm volatile ("tbegin.;"); }
>
>   which will use TM (Hardware Transactional Memory) feature which
>   is not supported by the kernel and so will trigger the following
>   kernel panic:
>
>   ----
>
>   fatal user trap:
>
>       exception       = 0xf60 (unknown)
>       srr0            = 0x10000890
>       srr1            = 0x800000000000f032
>       lr              = 0x100004e4
>       curthread       = 0x5f93000
>       pid = 1021, comm = htm
>
>   panic: unknown trap
>   cpuid = 40
>   KDB: stack backtrace:
>   Uptime: 3m18s
>   Dumping 10 MB (3 chunks)
>       chunk 0: 11MB (2648 pages) ... ok
>       chunk 1: 1MB (24 pages) ... ok
>       chunk 2: 1MB (2 pages)panic: IOMMU mapping error: -4
>
>   cpuid = 40
>   Uptime: 3m18s
>
>   ----
>
>   Since Hardware Transactional Memory is not yet supported by FreeBSD, treat
>   this as an illegal instruction.
>
>   PR:           224350
>   Submitted by: Gustavo Romero <gromero_AT_ibm_DOT_com>

... and of course I can't read... missed part of the email address (br.ibm.com)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHSQbTCn84sYbeSWPg6VX%2Bo4Ui-2Vv453qooB=Meg=02eodXjw>