drm/nouveau/gsp: fetch level shift and PDE from BAR2 VMM
When mirroring BAR2 page tables to RM, we need to know the level shift for the root page table (which is currently hardcoded), as well as the raw PDE value (which is currently hardcoded in GP1xx-AD1xx format). In order to support GH100/GBxxx, modify the code to determine the page shift from per-GPU info in nvkm_vmm_page, as well as read the relevant PDE back from the root page table rather than recalculating it. Signed-off-by:Ben Skeggs <bskeggs@nvidia.com> Reviewed-by:
Dave Airlie <airlied@redhat.com> Reviewed-by:
Timur Tabi <ttabi@nvidia.com> Tested-by:
Timur Tabi <ttabi@nvidia.com> Signed-off-by:
Dave Airlie <airlied@redhat.com>
Loading
Please sign in to comment