diff options
author | Zenghui Yu <yuzenghui@huawei.com> | 2024-06-21 17:28:09 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-07-05 09:38:02 +0200 |
commit | 100de7f81083076191efee1f11149b8238672321 (patch) | |
tree | c3f2902351c5118f65450103ee86993b09133eae /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | c542e51306d5f1eba3af84daa005826223382470 (diff) |
arm64: Clear the initial ID map correctly before remapping
[ Upstream commit ecc54006f158ae0245a13e59026da2f0239c1b86 ]
In the attempt to clear and recreate the initial ID map for LPA2, we
wrongly use 'start - end' as the map size and make the memset() almost a
nop.
Fix it by passing the correct map size.
Fixes: 9684ec186f8f ("arm64: Enable LPA2 at boot if supported by the system")
Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20240621092809.162-1-yuzenghui@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions