]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/powerpc: Use req_max_processed_len from sysfs NX capabilities
authorHaren Myneni <haren@linux.ibm.com>
Wed, 23 Jun 2021 05:17:46 +0000 (22:17 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 25 Jun 2021 04:47:19 +0000 (14:47 +1000)
commitd50caebc21947ddf84fbeadaeb73a6630f729d5a
treedc9bd9f22b06ce37af87dea7321d7b4e1dbd0a70
parenta37abf633fd1b248e4d79da6be10c90d5c2175e7
selftests/powerpc: Use req_max_processed_len from sysfs NX capabilities

On PowerVM, the hypervisor defines the maximum buffer length for
each NX request and the kernel exported this value via sysfs.

This patch reads this value if the sysfs entry is available and
is used to limit the request length.

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