drm/amdgpu: Add SI Family information
Subsystems (3)
PATCH 1/2 drm/amdgpu: Add SI Family information
From: Ken Wang <[email protected]>
Signed-off-by Ken Wang <[email protected]>
Reviewed-by Alex Deucher <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 + include/uapi/drm/amdgpu_drm.h | 1 + 2 files changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -0
@@ -1169,6 +1169,7 @@ static int amdgpu_early_init(struct amdgpu_device *adev)case CHIP_PITCAIRN :case CHIP_OLAND :case CHIP_HAINAN : + adev->family =AMDGPU_FAMILY_SI ; r =si_set_ip_blocks (adev);if (r)return r;
include/uapi/drm/amdgpu_drm.h +1 -0
@@ -637,6 +637,7 @@ struct drm_amdgpu_info_hw_ip {* Supported GPU families */ #define AMDGPU_FAMILY_UNKNOWN 0 +#define AMDGPU_FAMILY_SI 110/* Hainan, Oland, Verde, Pitcairn, Tahiti */ #define AMDGPU_FAMILY_CI 120/* Bonaire, Hawaii */ #define AMDGPU_FAMILY_KV 125/* Kaveri, Kabini, Mullins */ #define AMDGPU_FAMILY_VI 130/* Iceland, Tonga */
Signature · 6 lines
2.5.5 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 2/2 drm/amdgpu/gfx6: Assign num_rbs
From: Ken Wang <[email protected]>
This got missed in the rebase as the code changed.
Signed-off-by Ken Wang <[email protected]>
Reviewed-by Alex Deucher <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c +1 -0
@@ -944,6 +944,7 @@ static void gfx_v6_0_setup_rb(struct amdgpu_device *adev, adev->gfx.config.backend_enable_mask = enabled_rbs;DRM_INFO ("amdgpu: enabled_rbs %d \n" , enabled_rbs); + adev->gfx.config.num_rbs =hweight32 (enabled_rbs);for (i =0 ; i < se_num; i++) {gfx_v6_0_select_se_sh (adev, i,0xffffffff );
Signature · 6 lines
2.5.5 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel