We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c044e86 commit 9f61419Copy full SHA for 9f61419
drivers/gpu/drm/msm/msm_gem.c
@@ -52,7 +52,7 @@ static void sync_for_device(struct msm_gem_object *msm_obj)
52
{
53
struct device *dev = msm_obj->base.dev->dev;
54
55
- if (get_dma_ops(dev)) {
+ if (get_dma_ops(dev) && IS_ENABLED(CONFIG_ARM64)) {
56
dma_sync_sg_for_device(dev, msm_obj->sgt->sgl,
57
msm_obj->sgt->nents, DMA_BIDIRECTIONAL);
58
} else {
@@ -65,7 +65,7 @@ static void sync_for_cpu(struct msm_gem_object *msm_obj)
65
66
67
68
69
dma_sync_sg_for_cpu(dev, msm_obj->sgt->sgl,
70
71
0 commit comments