Re: [Nouveau] [PATCH v6 5/6] nouveau: use new mmu interval notifiers

2020-01-15 Thread Ralph Campbell
On 1/14/20 5:00 AM, Jason Gunthorpe wrote: On Mon, Jan 13, 2020 at 02:47:02PM -0800, Ralph Campbell wrote: void nouveau_svmm_fini(struct nouveau_svmm **psvmm) { struct nouveau_svmm *svmm = *psvmm; + struct mmu_interval_notifier *mni; + if (svmm) {

Re: [Nouveau] [PATCH v6 4/6] mm/mmu_notifier: add mmu_interval_notifier_find()

2020-01-15 Thread Ralph Campbell
On 1/14/20 4:49 AM, Jason Gunthorpe wrote: On Mon, Jan 13, 2020 at 02:47:01PM -0800, Ralph Campbell wrote: diff --git a/mm/mmu_notifier.c b/mm/mmu_notifier.c index 47ad9cc89aab..4efecc0f13cb 100644 +++ b/mm/mmu_notifier.c @@ -1171,6 +1171,39 @@ void mmu_interval_notifier_update(struct

[Nouveau] [PATCH] drm/nouveau: gp10b: Use gp100_grctx and gp100_gr_zbc

2020-01-15 Thread Thierry Reding
From: Thierry Reding gp10b doesn't have all the registers that gp102_gr_zbc wants to access, which causes IBUS MMIO faults to occur. Avoid this by using the gp100 variants of grctx and gr_zbc. Signed-off-by: Thierry Reding --- drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.h | 1 +

[Nouveau] [PATCH] drm/nouveau: gm20b, gp10b: Fix Falcon bootstrapping

2020-01-15 Thread Thierry Reding
From: Thierry Reding The low-level Falcon bootstrapping callbacks are expected to return 0 on success or a negative error code on failure. However, the implementation on Tegra returns the ID or mask of the Falcons that were bootstrapped on success, thus breaking the calling code, which treats