Re: [RFC] drm/nouveau: use tile_mode and pte_kind for VM_BIND bo allocations

2024-04-28 Thread Dave Airlie
This looks like a good start, though I wonder can we just refactor out the common code from the vma and non-vma paths easier. Also I wonder should we add a new GETPARAM so userspace can know this change is available. Of course we also need a pointer to the userspace implementation to move

[RFC] drm/nouveau: use tile_mode and pte_kind for VM_BIND bo allocations

2024-04-28 Thread Mohamed Ahmed
Allows PTE kind and tile mode on BO create with VM_BIND. This is needed to support modifiers in NVK and ensure correctness when dealing with the nouveau GL driver. Signed-off-by: Mohamed Ahmed --- drivers/gpu/drm/nouveau/nouveau_bo.c | 24 +++- 1 file changed, 19