Skip to content
Snippets Groups Projects
user avatar
Lucas Stach authored
[ Upstream commit 4bfdd2aa ]

The current calculation based on the required_dma mask can be significantly
off, so that the linear window only overlaps a small part of the DRAM
address space. This can lead to the command buffer being unmappable, which
is obviously bad.

Rework the linear window offset calculation to be based on the command buffer
physical address, making sure that the command buffer is always mappable.

Tested-by: default avatarPrimoz Fiser <primoz.fiser@norik.com>
Reviewed-by: default avatarChristian Gmeiner <christian.gmeiner@gmail.com>
Signed-off-by: default avatarLucas Stach <l.stach@pengutronix.de>
Stable-dep-of: 13c96ac9 ("drm/etnaviv: Request pages from DMA32 zone on addressing_limited")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
54163a35
Name Last commit Last update