Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bad4c3e6 authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/amdgpu: set adev->num_vmhubs for gmc6,7,8



So that we properly handle them on older asics.

Fixes: 3ff98548 ("drm/amdgpu: Export function to flush TLB of specific vm hub")
Tested-by: default avatarTom St Denis <tom.stdenis@amd.com>
Reviewed-by: default avatarXiaojie Yuan <xiaojie.yuan@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent d99f38ae
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -841,6 +841,8 @@ static int gmc_v6_0_sw_init(void *handle)
	int r;
	struct amdgpu_device *adev = (struct amdgpu_device *)handle;

	adev->num_vmhubs = 1;

	if (adev->flags & AMD_IS_APU) {
		adev->gmc.vram_type = AMDGPU_VRAM_TYPE_UNKNOWN;
	} else {
+2 −0
Original line number Diff line number Diff line
@@ -961,6 +961,8 @@ static int gmc_v7_0_sw_init(void *handle)
	int r;
	struct amdgpu_device *adev = (struct amdgpu_device *)handle;

	adev->num_vmhubs = 1;

	if (adev->flags & AMD_IS_APU) {
		adev->gmc.vram_type = AMDGPU_VRAM_TYPE_UNKNOWN;
	} else {
+2 −0
Original line number Diff line number Diff line
@@ -1081,6 +1081,8 @@ static int gmc_v8_0_sw_init(void *handle)
	int r;
	struct amdgpu_device *adev = (struct amdgpu_device *)handle;

	adev->num_vmhubs = 1;

	if (adev->flags & AMD_IS_APU) {
		adev->gmc.vram_type = AMDGPU_VRAM_TYPE_UNKNOWN;
	} else {