aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
diff options
context:
space:
mode:
authorLijo Lazar <[email protected]>2021-03-16 12:19:06 +0000
committerAlex Deucher <[email protected]>2021-04-09 20:46:08 +0000
commite071dce38f0a3acb2f6d019c6bb7933fd20d3357 (patch)
tree041e2bc42f11cbea1226c19b8074d7b1174ad6e7 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
parentdrm/amd/pm: Add support for reset completion on aldebaran (diff)
downloadkernel-e071dce38f0a3acb2f6d019c6bb7933fd20d3357.tar.gz
kernel-e071dce38f0a3acb2f6d019c6bb7933fd20d3357.zip
drm/amdgpu: Add reset control to amdgpu_device
v1: Add generic amdgpu_reset_control to handle different types of resets. It may be added at device, hive or ip level. Each reset control has a list of handlers associated with it to handle different types of reset. Reset control is responsible for choosing the right handler given a particular reset context. Handler objects may implement a set of functions on how to handle a particular type of reset. prepare_env = Prepare environment/software context (not used currently). prepare_hwcontext = Prepare hardware context for the reset. perform_reset = Perform the type of reset. restore_hwcontext = Restore the hw context after reset. restore_env = Restore the environment after reset (not used currently). Reset context carries the context of reset, as of now this is based on the parameters used for current set of resets. v2: Fix coding style Signed-off-by: Lijo Lazar <[email protected]> Reviewed-by: Feifei Xu <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
0 files changed, 0 insertions, 0 deletions