mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
spapr_iommu: Add separate trace points for PCI DMA operations
This is to reduce VIO noise while debugging PCI DMA. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
3e1a01cb55
commit
d9d96a3cc7
3 changed files with 25 additions and 7 deletions
|
@ -485,6 +485,7 @@ int spapr_rtas_device_tree_setup(void *fdt, hwaddr rtas_addr,
|
|||
#define SPAPR_VIO_LIOBN(reg) (0x00000000 | (reg))
|
||||
#define SPAPR_PCI_LIOBN(phb_index, window_num) \
|
||||
(0x80000000 | ((phb_index) << 8) | (window_num))
|
||||
#define SPAPR_IS_PCI_LIOBN(liobn) (!!((liobn) & 0x80000000))
|
||||
#define SPAPR_PCI_DMA_WINDOW_NUM(liobn) ((liobn) & 0xff)
|
||||
|
||||
#define RTAS_ERROR_LOG_MAX 2048
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue