Re: [PATCH] powerpc: Fix definition of SIAR and SDAR registers

2016-05-30 Thread Michael Ellerman
On Mon, 2016-05-30 at 10:04 +0200, Thomas Huth wrote: > On 13.05.2016 05:35, Paul Mackerras wrote: > > On Thu, May 12, 2016 at 01:26:44PM +0200, Thomas Huth wrote: > > > The SIAR and SDAR registers are available twice, one time as SPRs > > > 780 / 781 (unprivileged, but read-only), and one time as

Re: [PATCH] powerpc: Fix definition of SIAR and SDAR registers

2016-05-12 Thread Paul Mackerras
On Thu, May 12, 2016 at 01:26:44PM +0200, Thomas Huth wrote: > The SIAR and SDAR registers are available twice, one time as SPRs > 780 / 781 (unprivileged, but read-only), and one time as the SPRs > 796 / 797 (privileged, but read and write). The Linux kernel code > currently uses the unprivileged

[PATCH] powerpc: Fix definition of SIAR and SDAR registers

2016-05-12 Thread Thomas Huth
The SIAR and SDAR registers are available twice, one time as SPRs 780 / 781 (unprivileged, but read-only), and one time as the SPRs 796 / 797 (privileged, but read and write). The Linux kernel code currently uses the unprivileged SPRs - while this is OK for reading, writing to that register of