Skip to content
Snippets Groups Projects
  • Shashank Sharma's avatar
    c6d2ba90
    drm/amdgpu: bypass SRIOV check for shadow size info · c6d2ba90
    Shashank Sharma authored
    
    Currently, the shadow FW space size and alignment information is
    protected under a flag (adev->gfx.cp_gfx_shadow) which gets set
    only in case of SRIOV setups.
    if (amdgpu_sriov_vf(adev))
        adev->gfx.cp_gfx_shadow = true;
    
    But we need this information for GFX Userqueues, so that user can
    create these objects while creating userqueue. This patch series
    creates a method to get this information bypassing the dependency
    on this check.
    
    This patch:
    - adds a new input parameter flag to the gfx.funcs->get_gfx_shadow_info
    fptr definition, so that it can accommodate the information without the
    check (adev->gfx.cp_gfx_shadow) on request.
    - updates the existing definition of amdgpu_gfx_get_gfx_shadow_info to
    adjust with this new flag.
    
    Next patch in the series is adding a UAPI which will consume this info.
    
    V2: split this patch from the new UAPI patch
    
    Cc: Alex Deucher <alexander.deucher@amd.com>
    Cc: Christian Koenig <christian.koenig@amd.com>
    Cc: Arvind Yadav <arvind.yadav@amd.com>
    Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    Signed-off-by: default avatarShashank Sharma <shashank.sharma@amd.com>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    c6d2ba90
    History
    drm/amdgpu: bypass SRIOV check for shadow size info
    Shashank Sharma authored
    
    Currently, the shadow FW space size and alignment information is
    protected under a flag (adev->gfx.cp_gfx_shadow) which gets set
    only in case of SRIOV setups.
    if (amdgpu_sriov_vf(adev))
        adev->gfx.cp_gfx_shadow = true;
    
    But we need this information for GFX Userqueues, so that user can
    create these objects while creating userqueue. This patch series
    creates a method to get this information bypassing the dependency
    on this check.
    
    This patch:
    - adds a new input parameter flag to the gfx.funcs->get_gfx_shadow_info
    fptr definition, so that it can accommodate the information without the
    check (adev->gfx.cp_gfx_shadow) on request.
    - updates the existing definition of amdgpu_gfx_get_gfx_shadow_info to
    adjust with this new flag.
    
    Next patch in the series is adding a UAPI which will consume this info.
    
    V2: split this patch from the new UAPI patch
    
    Cc: Alex Deucher <alexander.deucher@amd.com>
    Cc: Christian Koenig <christian.koenig@amd.com>
    Cc: Arvind Yadav <arvind.yadav@amd.com>
    Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    Signed-off-by: default avatarShashank Sharma <shashank.sharma@amd.com>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>