]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sparc64: Detect DAX ra+pgsz when hvapi minor doesn't indicate it
authorRob Gardner <rob.gardner@oracle.com>
Tue, 25 Apr 2017 18:04:00 +0000 (12:04 -0600)
committerChuck Anderson <chuck.anderson@oracle.com>
Fri, 5 May 2017 16:53:58 +0000 (09:53 -0700)
commit1e383b4bfea84c4796dd98b20edd52e7575b13d6
tree17a87da24251fef640c6c253733d1451eca0255c
parent3926ce77988ad3024493eae003c48970b768cf20
sparc64: Detect DAX ra+pgsz when hvapi minor doesn't indicate it

Orabug: 25911008

The RA+PGSZ HV API feature is detected via a controlled experiment.
The experiment constructs a small DAX request and places the output
buffer at the very end of an 8k page. Then it checks to see if the 8k
page boundary was honored, and if so, then we've got the ability to pass
the page size along with a real address. Once the HV API minor number
is bumped to 1, this will be the primary method of detection.

Signed-off-by: Rob Gardner <rob.gardner@oracle.com>
Reviewed-by: Jonathan Helman <jonathan.helman@oracle.com>
(cherry picked from commit 013d5b9909e804817dcd939f50f242f09237feac)
Signed-off-by: Allen Pais <allen.pais@oracle.com>
arch/sparc/dax/dax_impl.h
arch/sparc/dax/dax_main.c
arch/sparc/dax/dax_misc.c