Add a device tree compatible string for GV11B with the associated platform data. The DMA mask is set to 38 bits. GV11B accesses memory over NVLink and bypasses the IOMMU, so iommu_bit is left zero for disable.
Signed-off-by: Mikko Perttunen <[email protected]> --- drivers/gpu/drm/nouveau/nouveau_platform.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/nouveau/nouveau_platform.c b/drivers/gpu/drm/nouveau/nouveau_platform.c index 9ca6272ce809..56a482dae231 100644 --- a/drivers/gpu/drm/nouveau/nouveau_platform.c +++ b/drivers/gpu/drm/nouveau/nouveau_platform.c @@ -78,6 +78,10 @@ static const struct nvkm_device_tegra_func gp10b_platform_data = { .require_vdd = false, }; +static const struct nvkm_device_tegra_func gv11b_platform_data = { + .dma_bits = 38, +}; + static const struct of_device_id nouveau_platform_match[] = { { .compatible = "nvidia,gk20a", @@ -91,6 +95,10 @@ static const struct of_device_id nouveau_platform_match[] = { .compatible = "nvidia,gp10b", .data = &gp10b_platform_data, }, + { + .compatible = "nvidia,gv11b", + .data = &gv11b_platform_data, + }, { } }; -- 2.56.1
