aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2017-06-08 16:28:47 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-06-20 14:18:22 +1000
commitebfcfaa0c3e5b3813d3e35d456f7c16c6a53ff0d (patch)
tree671c96ad169125298e05b650fc191731fda97c93 /hw
parent5b4a8c1d91380f58257f6dcd5665704b787f479d (diff)
downloadskiboot-ebfcfaa0c3e5b3813d3e35d456f7c16c6a53ff0d.zip
skiboot-ebfcfaa0c3e5b3813d3e35d456f7c16c6a53ff0d.tar.gz
skiboot-ebfcfaa0c3e5b3813d3e35d456f7c16c6a53ff0d.tar.bz2
hw/npu2.c: Hardcode MSR_SF when setting up npu XTS contexts
We don't support anything other than 64-bit mode for address translations so we can safely hardcode it. Signed-off-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/npu2.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/hw/npu2.c b/hw/npu2.c
index 090ac9e..034f9d3 100644
--- a/hw/npu2.c
+++ b/hw/npu2.c
@@ -1724,8 +1724,10 @@ static int64_t opal_npu_init_context(uint64_t phb_id, int pasid, uint64_t msr,
!!(msr & MSR_HV));
xts_bdf_pid = SETFIELD(NPU2_XTS_PID_MAP_MSR_PR, xts_bdf_pid,
!!(msr & MSR_PR));
- xts_bdf_pid = SETFIELD(NPU2_XTS_PID_MAP_MSR_SF, xts_bdf_pid,
- !!(msr & MSR_SF));
+
+ /* We don't support anything other than 64-bit so we can safely hardcode
+ * it here */
+ xts_bdf_pid = SETFIELD(NPU2_XTS_PID_MAP_MSR_SF, xts_bdf_pid, 1);
/* Finally set the PID/PASID */
xts_bdf_pid = SETFIELD(NPU2_XTS_PID_MAP_PASID, xts_bdf_pid, pasid);