spapr/ddw: Implement 64bit query extension
commitc0e765dafb474f7e60e43c229cb772cbbaf3b90e
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 23 Jun 2022 07:31:36 +0000 (23 17:31 +1000)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Wed, 6 Jul 2022 13:22:37 +0000 (6 10:22 -0300)
tree008067d170c93a7e53bf2e2de09477148b52a3fd
parent31cc81f72801bcda02c866ff94ed8baf6b84506d
spapr/ddw: Implement 64bit query extension

PAPR 2.8 (2018) defines an extension to return 64bit value for
the largest TCE block in "ibm,query-pe-dma-window". Recent Linux kernels
support this already.

This adds the extension and supports the older format.

This advertises a bigger window for the new format as the biggest
window with 2M pages below the start of the 64bit window as it is
the maximum we will see in practice.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20220623073136.1380214-1-aik@ozlabs.ru>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
hw/ppc/spapr_pci.c
hw/ppc/spapr_rtas_ddw.c