OSDN Git Service

drm/amdgpu:divide KCQ mqd init to sw and hw
authorMonk Liu <Monk.Liu@amd.com>
Mon, 6 Feb 2017 08:46:36 +0000 (16:46 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:52:44 +0000 (23:52 -0400)
commit596c67d076a5ae0f2571cab9245ee76f6a6cf922
tree77947d1410bfbe8542caa646113e2045ed43cba3
parent2da4da3cbe78ee6555b3999494b0f080d17f93b1
drm/amdgpu:divide KCQ mqd init to sw and hw

sw part only invoked once during sw_init.
hw part invoked during first drv load and resume later.

that way we cannot alloc mqd in hw/resume, we only keep
mqd allocted in sw_init routine.
and hw_init routine only kmap and set it.

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c