summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/msm/dsi/dsi_host.c
diff options
context:
space:
mode:
authorJonathan Marek <jonathan@marek.ca>2021-04-23 21:08:18 +0200
committerRob Clark <robdclark@chromium.org>2021-06-23 16:32:14 +0200
commita5fc7aa901b6818c67cc7e5cef8201fbaab8fa1b (patch)
treef8fd051216336dce321d52d41751c0f0b9fac51e /drivers/gpu/drm/msm/dsi/dsi_host.c
parentdrm/msm: remove unnecessary mmap logic for cached BOs (diff)
downloadlinux-a5fc7aa901b6818c67cc7e5cef8201fbaab8fa1b.tar.xz
linux-a5fc7aa901b6818c67cc7e5cef8201fbaab8fa1b.zip
drm/msm: replace MSM_BO_UNCACHED with MSM_BO_WC for internal objects
msm_gem_get_vaddr() currently always maps as writecombine, so use the right flag instead of relying on broken behavior (things don't actually work if they are mapped as uncached). Signed-off-by: Jonathan Marek <jonathan@marek.ca> Acked-by: Jordan Crouse <jordan@cosmicpenguin.net> Link: https://lore.kernel.org/r/20210423190833.25319-3-jonathan@marek.ca Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'drivers/gpu/drm/msm/dsi/dsi_host.c')
-rw-r--r--drivers/gpu/drm/msm/dsi/dsi_host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c
index b3ee5c0bce12..dfaff19f4ba0 100644
--- a/drivers/gpu/drm/msm/dsi/dsi_host.c
+++ b/drivers/gpu/drm/msm/dsi/dsi_host.c
@@ -1093,7 +1093,7 @@ int dsi_tx_buf_alloc_6g(struct msm_dsi_host *msm_host, int size)
uint64_t iova;
u8 *data;
- data = msm_gem_kernel_new(dev, size, MSM_BO_UNCACHED,
+ data = msm_gem_kernel_new(dev, size, MSM_BO_WC,
priv->kms->aspace,
&msm_host->tx_gem_obj, &iova);