linux_dsm_epyc7002/drivers/gpu/host1x/hw
Stephen Warren 22bbd5d949 gpu: host1x: handle the correct # of syncpt regs
BIT_WORD() truncates rather than rounds, so the loops in
syncpt_thresh_isr() and _host1x_intr_disable_all_syncpt_intrs() use <=
rather than < in an attempt to process the correct number of registers
when rounding of the conversion of count of bits to count of words is
necessary. However, when rounding isn't necessary because the value is
already a multiple of the divisor (as is the case for all values of
nb_pts the code actually sees), this causes one too many registers to
be processed.

Solve this by using and explicit DIV_ROUND_UP() call, rather than
BIT_WORD(), and comparing with < rather than <=.

Fixes: 7ede0b0bf3 ("gpu: host1x: Add syncpoint wait and interrupts")
Cc: <stable@vger.kernel.org> # 3.10
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-By: Terje Bergstrom <tbergstrom@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
2014-04-16 17:11:04 +02:00
..
cdma_hw.c gpu: host1x: Silence a few warnings with LPAE=y 2013-11-28 15:13:47 +01:00
channel_hw.c gpu: host1x: Add syncpoint base support 2013-10-31 09:55:48 +01:00
debug_hw.c gpu: host1x: Silence a few warnings with LPAE=y 2013-11-28 15:13:47 +01:00
host1x01_hardware.h gpu: host1x: Add channel support 2013-04-22 12:32:43 +02:00
host1x01.c gpu: host1x: Use relative include paths 2013-10-31 09:55:40 +01:00
host1x01.h gpu: host1x: Add host1x driver 2013-04-22 12:32:40 +02:00
host1x02_hardware.h gpu: host1x: Use the correct HW headers for host1x02 2013-12-19 09:29:51 +01: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
host1x04_hardware.h gpu: host1x: Add Tegra124 support 2013-12-19 09:29:52 +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
hw_host1x01_channel.h gpu: host1x: Add debug support 2013-04-22 12:32:46 +02:00
hw_host1x01_sync.h gpu: host1x: Add debug support 2013-04-22 12:32:46 +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: Add support for Tegra114 2013-10-31 09:55:41 +01: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: Add Tegra124 support 2013-12-19 09:29:52 +01:00
hw_host1x04_uclass.h gpu: host1x: Add Tegra124 support 2013-12-19 09:29:52 +01:00
intr_hw.c gpu: host1x: handle the correct # of syncpt regs 2014-04-16 17:11:04 +02:00
syncpt_hw.c gpu: host1x: Use relative include paths 2013-10-31 09:55:40 +01:00