Commit 54163a35 authored by Lucas Stach's avatar Lucas Stach Committed by Greg Kroah-Hartman
Browse files

drm/etnaviv: rework linear window offset calculation



[ 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>
parent e5e10c00
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment