diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2018-09-12 19:29:17 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-09-17 21:39:01 -0500 |
commit | 8a2b6d51b77172d5ff81aa412ff7aa97f57d4f90 (patch) | |
tree | 601b2c6eed92f09d603a8205e129f91aa70ec989 /hw | |
parent | c38bdc3984a2691fb6ef38d370e0ecbe956d3186 (diff) | |
download | blackbird-skiboot-8a2b6d51b77172d5ff81aa412ff7aa97f57d4f90.tar.gz blackbird-skiboot-8a2b6d51b77172d5ff81aa412ff7aa97f57d4f90.zip |
npu2: Use correct kill type for TCE invalidation
kill_type is enum of OPAL_PCI_TCE_KILL_PAGES, OPAL_PCI_TCE_KILL_PE,
OPAL_PCI_TCE_KILL_ALL and phb4_tce_kill() gets it right but
npu2_tce_kill() uses OPAL_PCI_TCE_KILL which is an OPAL API token.
This fixes an obvious mistype.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/npu2.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1257,7 +1257,7 @@ static int64_t npu2_tce_kill(struct phb *phb, uint32_t kill_type, * NPU2 doesn't support killing a PE so fall through * and do a kill all instead. */ - case OPAL_PCI_TCE_KILL: + case OPAL_PCI_TCE_KILL_ALL: npu2_write(npu, NPU2_ATS_TCE_KILL, NPU2_ATS_TCE_KILL_ALL); break; default: |