Due to cache issues, all shared mapping of a page must be equivalently mapped. This requires page mappings to be at the same virtual address modulo 4 MB. Due to a kernel limitation, all mappings to a file must be equivalent.
The test can be fixed by rounding the buffer_size used in the mapped ring buffer to 4 MB on hppa. This makes the two mmap mappings equivalent.