drm/msm/gpu: add ocmem init/cleanup functions
authorBrian Masney <masneyb@onstation.org>
Fri, 23 Aug 2019 12:16:36 +0000 (05:16 -0700)
committerRob Clark <robdclark@chromium.org>
Mon, 7 Oct 2019 15:17:39 +0000 (08:17 -0700)
commit26c0b26dcd005d9d6de9246737177e7af821859a
treeaf6e40c2f31587a7e4263e00251ae08740d0174d
parent88c1e9404f1deee02e52d13aae3d9ee2cabd66f5
drm/msm/gpu: add ocmem init/cleanup functions

The files a3xx_gpu.c and a4xx_gpu.c have ifdefs for the OCMEM support
that was missing upstream. Add two new functions (adreno_gpu_ocmem_init
and adreno_gpu_ocmem_cleanup) that removes some duplicated code.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Reviewed-by: Jordan Crouse <jcrouse@codeaurora.org>
Tested-by: Gabriel Francisco <frc.gabrielgmail.com>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/Kconfig
drivers/gpu/drm/msm/adreno/a3xx_gpu.c
drivers/gpu/drm/msm/adreno/a3xx_gpu.h
drivers/gpu/drm/msm/adreno/a4xx_gpu.c
drivers/gpu/drm/msm/adreno/a4xx_gpu.h
drivers/gpu/drm/msm/adreno/adreno_gpu.c
drivers/gpu/drm/msm/adreno/adreno_gpu.h