diff options
author | Monk Liu <[email protected]> | 2019-11-26 19:42:25 +0800 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2019-12-03 11:57:00 -0500 |
commit | 747d4f715fb5aca0002216355df28714cc20250c (patch) | |
tree | c0dc7daace2c6f585ccdc5611f0f347441ff46fd /scripts/bpf_helpers_doc.py | |
parent | fa2b93e39b1d167d342aecd6d3f53d9972405226 (diff) |
drm/amdgpu: fix calltrace during kmd unload(v3)
issue:
kernel would report a warning from a double unpin
during the driver unloading on the CSB bo
why:
we unpin it during hw_fini, and there will be another
unpin in sw_fini on CSB bo.
fix:
actually we don't need to pin/unpin it during
hw_init/fini since it is created with kernel pinned,
we only need to fullfill the CSB again during hw_init
to prevent CSB/VRAM lost after S3
v2:
get_csb in init_rlc so hw_init() will make CSIB content
back even after reset or s3
v3:
use bo_create_kernel instead of bo_create_reserved for CSB
otherwise the bo_free_kernel() on CSB is not aligned and
would lead to its internal reserve pending there forever
take care of gfx7/8 as well
Signed-off-by: Monk Liu <[email protected]>
Reviewed-by: Hawking Zhang <[email protected]>
Reviewed-by: Xiaojie Yuan <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions