selftests/powerpc: Make alignment handler test P9N DD2.1 vector CI load workaround
BugLink: https://bugs.launchpad.net/bugs/1902694 alignment_handler currently only tests the unaligned cases but it can also be useful for testing the workaround for the P9N DD2.1 vector CI load issue fixed by p9_hmi_special_emu(). This workaround was introduced in5080332c2c
("powerpc/64s: Add workaround for P9 vector CI load issue"). This changes the loop to start from offset 0 rather than 1 so that we test the kernel emulation in p9_hmi_special_emu(). Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20201013043741.743413-2-mikey@neuling.org (cherry picked from commitd1781f2370
) Signed-off-by: Patricia Domingues <patricia.domingues@canonical.com> Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com> Acked-by: Stefan Bader <stefan.bader@canonical.com> Signed-off-by: Ian May <ian.may@canonical.com>
This commit is contained in:
parent
6483795dce
commit
6512f2455b
|
@ -226,8 +226,12 @@ int do_test(char *test_name, void (*test_func)(char *, char *))
|
|||
}
|
||||
|
||||
rc = 0;
|
||||
/* offset = 0 no alignment fault, so skip */
|
||||
for (offset = 1; offset < 16; offset++) {
|
||||
/*
|
||||
* offset = 0 is aligned but tests the workaround for the P9N
|
||||
* DD2.1 vector CI load issue (see 5080332c2c89 "powerpc/64s:
|
||||
* Add workaround for P9 vector CI load issue")
|
||||
*/
|
||||
for (offset = 0; offset < 16; offset++) {
|
||||
width = 16; /* vsx == 16 bytes */
|
||||
r = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue