| Age | Commit message (Collapse) | Author | Files | Lines | 
 | 
The alignment_handler is documented to only work on Power8/Power9, but
we can make it run on older CPUs by guarding more of the tests with
feature checks.
Signed-off-by: Michael Ellerman <[email protected]>
Reviewed-by: Andrew Donnellan <[email protected]>
 | 
 | 
Currently the alignment_handler test prints "Can't open /dev/fb0"
about 80 times per run, which is a little annoying.
Refactor it to check earlier if it can open /dev/fb0 and skip if not,
this results in each test printing something like:
  test: test_alignment_handler_vsx_206
  tags: git_version:v4.18-rc3-134-gfb21a48904aa
  [SKIP] Test skipped on line 291
  skip: test_alignment_handler_vsx_206
Signed-off-by: Michael Ellerman <[email protected]>
Acked-by: Andrew Donnellan <[email protected]>
 | 
 | 
With glibc 2.26 'struct ucontext' is removed to improve POSIX
compliance, which breaks powerpc/alignment_handler selftest. Fix the
test by using ucontext_t. Tested on ppc, works with older glibc
versions as well.
Fixes the following:
  alignment_handler.c: In function ‘sighandler’:
  alignment_handler.c:68:5: error: dereferencing pointer to incomplete type ‘struct ucontext’
    ucp->uc_mcontext.gp_regs[PT_NIP] += 4;
Signed-off-by: Harish <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
 | 
 | 
Add a selftest to exercise the powerpc alignment fault handler.
Signed-off-by: Michael Neuling <[email protected]>
Signed-off-by: Andrew Donnellan <[email protected]>
[mpe: Add 32-bit support to the signal handler]
Signed-off-by: Michael Ellerman <[email protected]>
 |