Skip to content

Commit fc31367

Browse files
bokun-xxmtgalexdeucher
authored andcommitted
drm/amd/amdgpu/vcn: Add RB decouple feature under SRIOV - P2
- Add function to check if RB decouple is enabled under SRIOV Signed-off-by: Bokun Zhang <[email protected]> Reviewed-by: Leo Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 97b2821 commit fc31367

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ enum AMDGIM_FEATURE_FLAG {
126126
AMDGIM_FEATURE_INDIRECT_REG_ACCESS = (1 << 5),
127127
/* AV1 Support MODE*/
128128
AMDGIM_FEATURE_AV1_SUPPORT = (1 << 6),
129+
/* VCN RB decouple */
130+
AMDGIM_FEATURE_VCN_RB_DECOUPLE = (1 << 7),
129131
};
130132

131133
enum AMDGIM_REG_ACCESS_FLAG {
@@ -326,6 +328,8 @@ static inline bool is_virtual_machine(void)
326328
((!amdgpu_in_reset(adev)) && (!adev->virt.tdr_debug))
327329
#define amdgpu_sriov_is_av1_support(adev) \
328330
((adev)->virt.gim_feature & AMDGIM_FEATURE_AV1_SUPPORT)
331+
#define amdgpu_sriov_is_vcn_rb_decouple(adev) \
332+
((adev)->virt.gim_feature & AMDGIM_FEATURE_VCN_RB_DECOUPLE)
329333
bool amdgpu_virt_mmio_blocked(struct amdgpu_device *adev);
330334
void amdgpu_virt_init_setting(struct amdgpu_device *adev);
331335
void amdgpu_virt_kiq_reg_write_reg_wait(struct amdgpu_device *adev,

0 commit comments

Comments
 (0)