diff options
| -rw-r--r-- | drivers/gpu/drm/panfrost/panfrost_drv.c | 5 | ||||
| -rw-r--r-- | drivers/gpu/drm/panfrost/panfrost_gpu.c | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/panfrost/panfrost_drv.c b/drivers/gpu/drm/panfrost/panfrost_drv.c index 0f2863cb8077..27d04bd4870a 100644 --- a/drivers/gpu/drm/panfrost/panfrost_drv.c +++ b/drivers/gpu/drm/panfrost/panfrost_drv.c | |||
| @@ -3,8 +3,6 @@ | |||
| 3 | /* Copyright 2019 Linaro, Ltd., Rob Herring <robh@kernel.org> */ | 3 | /* Copyright 2019 Linaro, Ltd., Rob Herring <robh@kernel.org> */ |
| 4 | /* Copyright 2019 Collabora ltd. */ | 4 | /* Copyright 2019 Collabora ltd. */ |
| 5 | 5 | ||
| 6 | #include <linux/bitfield.h> | ||
| 7 | #include <linux/dma-mapping.h> | ||
| 8 | #include <linux/module.h> | 6 | #include <linux/module.h> |
| 9 | #include <linux/of_platform.h> | 7 | #include <linux/of_platform.h> |
| 10 | #include <linux/pagemap.h> | 8 | #include <linux/pagemap.h> |
| @@ -401,9 +399,6 @@ static int panfrost_probe(struct platform_device *pdev) | |||
| 401 | goto err_out0; | 399 | goto err_out0; |
| 402 | } | 400 | } |
| 403 | 401 | ||
| 404 | dma_set_mask_and_coherent(pfdev->dev, | ||
| 405 | DMA_BIT_MASK(FIELD_GET(0xff00, pfdev->features.mmu_features))); | ||
| 406 | |||
| 407 | err = panfrost_devfreq_init(pfdev); | 402 | err = panfrost_devfreq_init(pfdev); |
| 408 | if (err) { | 403 | if (err) { |
| 409 | dev_err(&pdev->dev, "Fatal error during devfreq init\n"); | 404 | dev_err(&pdev->dev, "Fatal error during devfreq init\n"); |
diff --git a/drivers/gpu/drm/panfrost/panfrost_gpu.c b/drivers/gpu/drm/panfrost/panfrost_gpu.c index aceaf6e44a09..42511fc1fea0 100644 --- a/drivers/gpu/drm/panfrost/panfrost_gpu.c +++ b/drivers/gpu/drm/panfrost/panfrost_gpu.c | |||
| @@ -2,8 +2,10 @@ | |||
| 2 | /* Copyright 2018 Marty E. Plummer <hanetzer@startmail.com> */ | 2 | /* Copyright 2018 Marty E. Plummer <hanetzer@startmail.com> */ |
| 3 | /* Copyright 2019 Linaro, Ltd., Rob Herring <robh@kernel.org> */ | 3 | /* Copyright 2019 Linaro, Ltd., Rob Herring <robh@kernel.org> */ |
| 4 | /* Copyright 2019 Collabora ltd. */ | 4 | /* Copyright 2019 Collabora ltd. */ |
| 5 | #include <linux/bitfield.h> | ||
| 5 | #include <linux/bitmap.h> | 6 | #include <linux/bitmap.h> |
| 6 | #include <linux/delay.h> | 7 | #include <linux/delay.h> |
| 8 | #include <linux/dma-mapping.h> | ||
| 7 | #include <linux/interrupt.h> | 9 | #include <linux/interrupt.h> |
| 8 | #include <linux/io.h> | 10 | #include <linux/io.h> |
| 9 | #include <linux/iopoll.h> | 11 | #include <linux/iopoll.h> |
| @@ -332,6 +334,9 @@ int panfrost_gpu_init(struct panfrost_device *pfdev) | |||
| 332 | 334 | ||
| 333 | panfrost_gpu_init_features(pfdev); | 335 | panfrost_gpu_init_features(pfdev); |
| 334 | 336 | ||
| 337 | dma_set_mask_and_coherent(pfdev->dev, | ||
| 338 | DMA_BIT_MASK(FIELD_GET(0xff00, pfdev->features.mmu_features))); | ||
| 339 | |||
| 335 | irq = platform_get_irq_byname(to_platform_device(pfdev->dev), "gpu"); | 340 | irq = platform_get_irq_byname(to_platform_device(pfdev->dev), "gpu"); |
| 336 | if (irq <= 0) | 341 | if (irq <= 0) |
| 337 | return -ENODEV; | 342 | return -ENODEV; |
