Skip to contentSkip to conversation

drm/amdgpu: delete set-but-not-read member has_uvd from amdgpu_device

PATCH Applied Nils Wallménius 2 participants 2 messages Mar 5, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: delete set-but-not-read member has_uvd from amdgpu_device

Clean up leftover from radeon code.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 -
 drivers/gpu/drm/amd/amdgpu/cik.c    | 2 --
 drivers/gpu/drm/amd/amdgpu/vi.c     | 4 ----
 3 files changed, 7 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu.h +0 -1
index 0c42a85..cfd35b0 100644
@@ -2053,7 +2053,6 @@ struct amdgpu_device {
 	struct amdgpu_sdma		sdma;
 
 	/* uvd */
-	bool				has_uvd;
 	struct amdgpu_uvd		uvd;
 
 	/* vce */
drivers/gpu/drm/amd/amdgpu/cik.c +0 -2
index 6b1f053..5da14a3 100644
@@ -2025,8 +2025,6 @@ static int cik_common_early_init(void *handle)
 
 	adev->asic_funcs = &cik_asic_funcs;
 
-	adev->has_uvd = true;
-
 	adev->rev_id = cik_get_rev_id(adev);
 	adev->external_rev_id = 0xFF;
 	switch (adev->asic_type) {
drivers/gpu/drm/amd/amdgpu/vi.c +0 -4
index 1250035..9163f59 100644
@@ -1071,26 +1071,22 @@ static int vi_common_early_init(void *handle)
 	adev->external_rev_id = 0xFF;
 	switch (adev->asic_type) {
 	case CHIP_TOPAZ:
-		adev->has_uvd = false;
 		adev->cg_flags = 0;
 		adev->pg_flags = 0;
 		adev->external_rev_id = 0x1;
 		break;
 	case CHIP_FIJI:
-		adev->has_uvd = true;
 		adev->cg_flags = 0;
 		adev->pg_flags = 0;
 		adev->external_rev_id = adev->rev_id + 0x3c;
 		break;
 	case CHIP_TONGA:
-		adev->has_uvd = true;
 		adev->cg_flags = 0;
 		adev->pg_flags = 0;
 		adev->external_rev_id = adev->rev_id + 0x14;
 		break;
 	case CHIP_CARRIZO:
 	case CHIP_STONEY:
-		adev->has_uvd = true;
 		adev->cg_flags = 0;
 		/* Disable UVD pg */
 		adev->pg_flags = /* AMDGPU_PG_SUPPORT_UVD | */AMDGPU_PG_SUPPORT_VCE;
Signature · 6 lines
2.7.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Applied
#1 lore raw
Quoted 3 lines · Nils Wallménius

Clean up leftover from radeon code.

Applied, thanks!

Alex

Quoted 65 lines
---
 drivers/gpu/drm/amd/amdgpu/amdgpu.h | 1 -
 drivers/gpu/drm/amd/amdgpu/cik.c    | 2 --
 drivers/gpu/drm/amd/amdgpu/vi.c     | 4 ----
 3 files changed, 7 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu.h +0 -1
index 0c42a85..cfd35b0 100644
@@ -2053,7 +2053,6 @@ struct amdgpu_device {
        struct amdgpu_sdma              sdma;
 
        /* uvd */
-       bool                            has_uvd;
        struct amdgpu_uvd               uvd;
 
        /* vce */
drivers/gpu/drm/amd/amdgpu/cik.c +0 -2
index 6b1f053..5da14a3 100644
@@ -2025,8 +2025,6 @@ static int cik_common_early_init(void *handle)
 
        adev->asic_funcs = &cik_asic_funcs;
 
-       adev->has_uvd = true;
-
        adev->rev_id = cik_get_rev_id(adev);
        adev->external_rev_id = 0xFF;
        switch (adev->asic_type) {
drivers/gpu/drm/amd/amdgpu/vi.c +0 -5
index 1250035..9163f59 100644
@@ -1071,26 +1071,22 @@ static int vi_common_early_init(void *handle)
        adev->external_rev_id = 0xFF;
        switch (adev->asic_type) {
        case CHIP_TOPAZ:
-               adev->has_uvd = false;
                adev->cg_flags = 0;
                adev->pg_flags = 0;
                adev->external_rev_id = 0x1;
                break;
        case CHIP_FIJI:
-               adev->has_uvd = true;
                adev->cg_flags = 0;
                adev->pg_flags = 0;
                adev->external_rev_id = adev->rev_id + 0x3c;
                break;
        case CHIP_TONGA:
-               adev->has_uvd = true;
                adev->cg_flags = 0;
                adev->pg_flags = 0;
                adev->external_rev_id = adev->rev_id + 0x14;
                break;
        case CHIP_CARRIZO:
        case CHIP_STONEY:
-               adev->has_uvd = true;
                adev->cg_flags = 0;
                /* Disable UVD pg */
                adev->pg_flags = /* AMDGPU_PG_SUPPORT_UVD | */AMDGPU_PG_SUPPORT_VCE;
--

2.7.0

Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel