-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Haren Myneni
authored and
Michael Ellerman
committed
Jun 25, 2021
1 parent
20ccb00
commit c6c27e3
Showing
2 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
CFLAGS = -O3 -m64 -I./include | ||
CFLAGS = -O3 -m64 -I./include -I../include | ||
|
||
TEST_GEN_FILES := gzfht_test gunz_test | ||
TEST_PROGS := nx-gzip-test.sh | ||
|
||
include ../../lib.mk | ||
|
||
$(TEST_GEN_FILES): gzip_vas.c | ||
$(TEST_GEN_FILES): gzip_vas.c ../utils.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters