]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/powerpc: Use proper error code to check fault address
authorHaren Myneni <haren@linux.ibm.com>
Fri, 10 Jul 2020 23:49:58 +0000 (16:49 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 15 Jul 2020 13:10:17 +0000 (23:10 +1000)
commitb4d13cf3550592dfcf202ce5b5033b5214d205ea
treed41dfcedf5256a7202d3cb4c81b1a8fc259ea55a
parent1ec9041e80eb674491414c27b6d4939fcd117867
selftests/powerpc: Use proper error code to check fault address

ERR_NX_TRANSLATION(CSB.CC=5) is for internal to VAS for fault handling
and should not used by OS. ERR_NX_AT_FAULT(CSB.CC=250) is the proper
error code should be reported by OS when NX encounters address
translation failure.

This patch uses CC=250 to determine the fault address when the request
is not successful.

Signed-off-by: Haren Myneni <haren@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/0315251705baff94f678c33178491b5008723511.camel@linux.ibm.com
tools/testing/selftests/powerpc/nx-gzip/gunz_test.c
tools/testing/selftests/powerpc/nx-gzip/gzfht_test.c