linux-stable/drivers/gpu/host1x
Johnny Liu af19ebfc6a gpu: host1x: Correct allocated size for contexts
[ Upstream commit e889a311f7 ]

Original implementation over allocates the memory size for the
contexts list. The size of memory for the contexts list is based
on the number of iommu groups specified in the device tree.

Fixes: 8aa5bcb616 ("gpu: host1x: Add context device management code")
Signed-off-by: Johnny Liu <johnliu@nvidia.com>
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230901115910.701518-1-cyndis@kapsi.fi
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-20 11:52:00 +01:00
..
hw gpu: host1x: Don't skip assigning syncpoints to channels 2023-03-10 09:33:16 +01:00
bus.c
bus.h
cdma.c gpu: host1x: Generalize host1x_cdma_push_wide() 2022-07-08 17:36:26 +02:00
cdma.h
channel.c gpu: host1x: Use the bitmap API to allocate bitmaps 2022-07-08 17:38:34 +02:00
channel.h
context.c gpu: host1x: Correct allocated size for contexts 2023-11-20 11:52:00 +01:00
context.h
context_bus.c gpu: host1x: Register context bus unconditionally 2022-07-08 16:31:24 +02:00
debug.c
debug.h
dev.c gpu: host1x: Avoid trying to use GART on Tegra20 2022-11-18 09:33:20 +01:00
dev.h
fence.c
fence.h
intr.c
intr.h
job.c
job.h
Kconfig
Makefile
mipi.c
syncpt.c
syncpt.h