aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
diff options
context:
space:
mode:
authorJacob Keller <[email protected]>2020-07-09 16:16:01 +0000
committerTony Nguyen <[email protected]>2020-07-23 21:46:33 +0000
commit595b13e228443239a7a7b04ed7546847023d6115 (patch)
tree2eb5d455961e8e2f0479113a57bc87eff6868633 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
parentice: refactor ice_discover_caps to avoid need to retry (diff)
downloadkernel-595b13e228443239a7a7b04ed7546847023d6115.tar.gz
kernel-595b13e228443239a7a7b04ed7546847023d6115.zip
ice: split ice_parse_caps into separate functions
The ice_parse_caps function is used to convert the capability block data coming from firmware into a structured format used by other parts of the code. The current implementation directly updates the hw->func_caps and hw->dev_caps structures. It is directly called from within ice_aq_discover_caps. This causes the discover_caps function to have the side effect of modifying the HW capability structures, which is not intuitive. Split this function into ice_parse_dev_caps and ice_parse_func_caps. These functions will take a pointer to the dev_caps and func_caps respectively. Also create an ice_parse_common_caps for sharing the capability logic that is common to device and function. Doing so enables a future refactor to allow reading and parsing capabilities into a local caps structure instead of modifying the members of the HW structure directly. Signed-off-by: Jacob Keller <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions