OpenCloudOS-Kernel/drivers/gpu/host1x/hw
Mikko Perttunen 4ac45eb8d1 gpu: host1x: Fix bitshift/mask multipliers
Some parts of Host1x uses BIT_WORD/BIT_MASK/BITS_PER_LONG to calculate
register or field offsets. This worked fine on ARMv7, but now that
BITS_PER_LONG is 64 but our registers are still 32-bit things are
broken.

Fix by replacing..
- BIT_WORD with (x / 32)
- BIT_MASK with BIT(x % 32)
- BITS_PER_LONG with 32

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Tested-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
2017-08-17 17:57:06 +02:00
..
cdma_hw.c gpu: host1x: Add IOMMU support 2017-04-05 18:11:43 +02:00
channel_hw.c gpu: host1x: Refactor channel allocation code 2017-06-15 14:25:38 +02:00
debug_hw.c gpu: host1x: Whitespace cleanup for readability 2016-06-23 11:59:30 +02:00
host1x01.c gpu: host1x: Use relative include paths 2013-10-31 09:55:40 +01:00
host1x01.h
host1x01_hardware.h gpu: host1x: Add channel support 2013-04-22 12:32:43 +02:00
host1x02.c gpu: host1x: Use the correct HW headers for host1x02 2013-12-19 09:29:51 +01:00
host1x02.h gpu: host1x: Add support for Tegra114 2013-10-31 09:55:41 +01:00
host1x02_hardware.h gpu: host1x: Use the correct HW headers for host1x02 2013-12-19 09:29:51 +01:00
host1x04.c gpu: host1x: Add Tegra124 support 2013-12-19 09:29:52 +01:00
host1x04.h gpu: host1x: Add Tegra124 support 2013-12-19 09:29:52 +01:00
host1x04_hardware.h gpu: host1x: Add Tegra124 support 2013-12-19 09:29:52 +01:00
host1x05.c gpu: host1x: Add Tegra210 support 2015-12-14 10:50:33 +01:00
host1x05.h gpu: host1x: Add Tegra210 support 2015-12-14 10:50:33 +01:00
host1x05_hardware.h gpu: host1x: Add Tegra210 support 2015-12-14 10:50:33 +01:00
hw_host1x01_channel.h gpu: host1x: Add debug support 2013-04-22 12:32:46 +02:00
hw_host1x01_sync.h gpu: host1x: Fix MLOCK's debug info 2015-10-02 14:40:12 +02:00
hw_host1x01_uclass.h gpu: host1x: Add syncpoint base support 2013-10-31 09:55:48 +01:00
hw_host1x02_channel.h gpu: host1x: Add support for Tegra114 2013-10-31 09:55:41 +01:00
hw_host1x02_sync.h gpu: host1x: Fix MLOCK's debug info 2015-10-02 14:40:12 +02:00
hw_host1x02_uclass.h gpu: host1x: Use the correct HW headers for host1x02 2013-12-19 09:29:51 +01:00
hw_host1x04_channel.h gpu: host1x: Add Tegra124 support 2013-12-19 09:29:52 +01:00
hw_host1x04_sync.h gpu: host1x: Fix MLOCK's debug info 2015-10-02 14:40:12 +02:00
hw_host1x04_uclass.h gpu: host1x: Add Tegra124 support 2013-12-19 09:29:52 +01:00
hw_host1x05_channel.h gpu: host1x: Add Tegra210 support 2015-12-14 10:50:33 +01:00
hw_host1x05_sync.h gpu: host1x: Add Tegra210 support 2015-12-14 10:50:33 +01:00
hw_host1x05_uclass.h gpu: host1x: Add Tegra210 support 2015-12-14 10:50:33 +01:00
intr_hw.c gpu: host1x: Fix bitshift/mask multipliers 2017-08-17 17:57:06 +02:00
syncpt_hw.c gpu: host1x: Fix bitshift/mask multipliers 2017-08-17 17:57:06 +02:00