diff options
author | Omer Shpigelman <oshpigelman@habana.ai> | 2019-02-28 10:46:11 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-02-28 13:04:59 +0100 |
commit | 27ca384cb7c44b8b16ea43f9aed930664140360e (patch) | |
tree | 9a8852fd2c48a5844dedf6799ec48d2473c70872 /drivers/misc/vmw_vmci | |
parent | 60b7dcca4570817cc0244a8487246d6899407b44 (diff) | |
download | lwn-27ca384cb7c44b8b16ea43f9aed930664140360e.tar.gz lwn-27ca384cb7c44b8b16ea43f9aed930664140360e.zip |
habanalabs: add MMU DRAM default page mapping
This patch provides a workaround for a H/W bug in Goya, where access to
RAZWI from TPC can cause PCI completion timeout.
The WA is to use the device MMU to map any unmapped DRAM memory to a
default page in the DRAM. That way, the TPC will never reach RAZWI upon
accessing a bad address in the DRAM.
When a DRAM page is mapped by the user, its default mapping is
overwritten. Once that page is unmapped, the MMU driver will map that page
to the default page.
To help debugging, the driver will set the default page area to 0x99 on
device initialization.
Signed-off-by: Omer Shpigelman <oshpigelman@habana.ai>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/vmw_vmci')
0 files changed, 0 insertions, 0 deletions