linux-sg2042/drivers/gpu/host1x
Emil Goode 2f8a6da866 gpu: host1x: Fix compiler errors by converting to dma_addr_t
The compiler is complaining with the following errors:

drivers/gpu/host1x/cdma.c:94:48: error:
	passing argument 3 of ‘dma_alloc_wc’ from incompatible pointer type
	[-Werror=incompatible-pointer-types]

drivers/gpu/host1x/cdma.c:113:48: error:
	passing argument 3 of ‘dma_alloc_wc’ from incompatible pointer type
	[-Werror=incompatible-pointer-types]

The expected pointer type of the third argument to dma_alloc_wc() is
dma_addr_t but phys_addr_t is passed.

Change the phys member of struct push_buffer to be dma_addr_t so that we
pass the correct type to dma_alloc_wc().
Also check pb->mapped for non-NULL in the destroy function as that is the
right way of checking if dma_alloc_wc() was successful.

Signed-off-by: Emil Goode <emil.fsw@goode.io>
Signed-off-by: Thierry Reding <treding@nvidia.com>
2018-05-18 11:23:48 +02:00
..
hw gpu: host1x: Disassemble more instructions 2017-10-20 14:19:52 +02:00
Kconfig gpu: host1x: select IOMMU_IOVA 2017-05-18 10:41:28 -04:00
Makefile main drm pull request for v4.15 2017-11-15 20:42:10 -08:00
bus.c gpu: host1x: Cleanup on initialization failure 2017-12-13 13:42:03 +01:00
bus.h gpu: host1x: Provide a proper struct bus_type 2015-01-27 10:09:14 +01:00
cdma.c gpu: host1x: Fix compiler errors by converting to dma_addr_t 2018-05-18 11:23:48 +02:00
cdma.h gpu: host1x: Fix compiler errors by converting to dma_addr_t 2018-05-18 11:23:48 +02:00
channel.c gpu: host1x: Fix incorrect comment for channel_request 2017-10-20 14:19:52 +02:00
channel.h gpu: host1x: Refactor channel allocation code 2017-06-15 14:25:38 +02:00
debug.c gpu: host1x: Improve debug disassembly formatting 2017-10-20 14:19:52 +02:00
debug.h gpu: host1x: Improve debug disassembly formatting 2017-10-20 14:19:52 +02:00
dev.c gpu: host1x: Acquire a reference to the IOVA cache 2018-05-17 17:44:48 +02:00
dev.h gpu: host1x: Use IOMMU groups 2017-12-21 14:52:36 +01:00
intr.c gpu: host1x: Constify array of action handlers 2016-06-23 11:59:31 +02:00
intr.h gpu: host1x: Use unsigned int consistently for IDs 2016-06-23 11:59:24 +02:00
job.c gpu: host1x: Don't fail on NULL bo physical address 2017-08-17 17:57:06 +02:00
job.h gpu: host1x: Remove unused 'struct host1x_cmdbuf' 2017-06-15 14:24:59 +02:00
mipi.c drm/tegra: dsi: Enhance runtime power management 2016-08-24 15:58:57 +02:00
syncpt.c gpu: host1x: Enable Tegra186 syncpoint protection 2017-10-20 14:19:52 +02:00
syncpt.h gpu: host1x: syncpt: Request syncpoints per client 2017-10-20 14:19:51 +02:00