OpenCloudOS-Kernel/drivers/misc/habanalabs/goya
Omer Shpigelman 27ca384cb7 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>
2019-02-28 13:04:59 +01:00
..
Makefile habanalabs: add sysfs and hwmon support 2019-02-18 09:46:45 +01:00
goya.c habanalabs: add MMU DRAM default page mapping 2019-02-28 13:04:59 +01:00
goyaP.h habanalabs: add MMU DRAM default page mapping 2019-02-28 13:04:59 +01:00
goya_hwmgr.c habanalabs: add device reset support 2019-02-18 09:46:45 +01:00
goya_security.c habanalabs: add basic Goya h/w initialization 2019-02-18 09:46:44 +01:00