diff options
author | Alexey Kardashevskiy | 2022-06-23 09:31:36 +0200 |
---|---|---|
committer | Daniel Henrique Barboza | 2022-07-06 15:22:37 +0200 |
commit | c0e765dafb474f7e60e43c229cb772cbbaf3b90e (patch) | |
tree | 008067d170c93a7e53bf2e2de09477148b52a3fd /hw/ppc/spapr_pci.c | |
parent | spapr/ddw: Reset DMA when the last non-default window is removed (diff) | |
download | qemu-c0e765dafb474f7e60e43c229cb772cbbaf3b90e.tar.gz qemu-c0e765dafb474f7e60e43c229cb772cbbaf3b90e.tar.xz qemu-c0e765dafb474f7e60e43c229cb772cbbaf3b90e.zip |
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>
Diffstat (limited to 'hw/ppc/spapr_pci.c')
-rw-r--r-- | hw/ppc/spapr_pci.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/ppc/spapr_pci.c b/hw/ppc/spapr_pci.c index 5e95d7940f..67e9d468aa 100644 --- a/hw/ppc/spapr_pci.c +++ b/hw/ppc/spapr_pci.c @@ -2360,8 +2360,9 @@ int spapr_dt_phb(SpaprMachineState *spapr, SpaprPhbState *phb, cpu_to_be32(RTAS_IBM_REMOVE_PE_DMA_WINDOW) }; uint32_t ddw_extensions[] = { - cpu_to_be32(1), - cpu_to_be32(RTAS_IBM_RESET_PE_DMA_WINDOW) + cpu_to_be32(2), + cpu_to_be32(RTAS_IBM_RESET_PE_DMA_WINDOW), + cpu_to_be32(1), /* 1: ibm,query-pe-dma-window 6 outputs, PAPR 2.8 */ }; SpaprTceTable *tcet; SpaprDrc *drc; |