The low instance word in a GV100 fault-buffer entry holds address bits in 31:12 and the instance aperture in bits 9:8. For a channel instance in VRAM, the aperture bits are zero. GV11B doesn't have VRAM, so the aperture bits are nonzero, the value gets misinterpreted and nvkm_chan_get_inst misses the faulting channel.
Mask off the low 12 bits when assembling the instance address. Signed-off-by: Mikko Perttunen <[email protected]> --- drivers/gpu/drm/nouveau/nvkm/subdev/fault/gv100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/fault/gv100.c b/drivers/gpu/drm/nouveau/nvkm/subdev/fault/gv100.c index 47e34943b77f..1acf402a5735 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/fault/gv100.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/fault/gv100.c @@ -57,7 +57,7 @@ gv100_fault_buffer_process(struct work_struct *work) nvkm_wr32(device, buffer->get, get); info.addr = ((u64)addrhi << 32) | addrlo; - info.inst = ((u64)insthi << 32) | instlo; + info.inst = ((u64)insthi << 32) | (instlo & 0xfffff000); info.time = ((u64)timehi << 32) | timelo; info.engine = (info0 & 0x000001ff); info.valid = (info1 & 0x80000000) >> 31; -- 2.56.1
