selftests/powerpc: Add test for VPHN

The goal is to verify vphn_unpack_associativity() parses VPHN numbers
correctly. We feed it with a variety of input values and compare with
expected results.

PAPR+ does not say much about VPHN parsing: I came up with a list of
tests that check many simple cases and some corner ones. I wouldn't
dare to say the list is exhaustive though.

Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
[mpe: Rework harness logic, rename to test-vphn, add -m64]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
这个提交包含在:
Greg Kurz
2015-02-23 16:14:44 +01:00
提交者 Michael Ellerman
父节点 3338a65bad
当前提交 58dae82843
修改 7 个文件,包含 430 行新增1 行删除

查看文件

@@ -0,0 +1 @@
../../../../../arch/powerpc/mm/vphn.h