linux/arch/powerpc/platforms/ps3
Thorsten Blum 0bb024f11d powerpc/ps3: Fix map failure path in dma_ioc0_map_pages()
If lv1_put_iopte() fails in dma_ioc0_map_pages(), the error path
decrements iopage but keeps using the failed mapping's offset. As a
result, it repeatedly tries to invalidate the failed IOPTE slot and
leaves the already installed IOPTEs valid.

Recompute offset and invalidate the installed IOPTEs instead.

Fixes: 6bb5cf1025 ("[POWERPC] PS3: System-bus rework")
Cc: stable@vger.kernel.org
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260711130931.740719-3-thorsten.blum@linux.dev
2026-07-28 10:23:31 +05:30
..
device-init.c powerpc/ps3: Drop redundant result assignment 2026-05-06 07:49:19 +05:30
exports.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 167 2019-05-30 11:26:39 -07:00
gelic_udbg.c powerpc/ps3: move udbg_shutdown_ps3gelic prototype 2023-11-21 12:06:50 +11:00
htab.c powerpc/ps3: Change updateboltedpp() panic to info 2023-02-12 22:11:35 +11:00
hvcall.S powerpc/ps3: Make real stack frames for LV1 hcalls 2024-02-21 23:14:52 +11:00
interrupt.c powerpc: Switch irq_domain_add_nomap() to use fwnode 2025-05-16 21:06:11 +02:00
Kconfig drivers/ps3: select VIDEO to provide cmdline functions 2024-02-09 21:22:02 +01:00
Makefile powerpc/ps3: move udbg_shutdown_ps3gelic prototype 2023-11-21 12:06:50 +11:00
mm.c powerpc/ps3: Fix map failure path in dma_ioc0_map_pages() 2026-07-28 10:23:31 +05:30
os-area.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
platform.h powerpc/ps3: Add __init attribute to eligible functions 2021-12-23 22:33:16 +11:00
repository.c powerpc/ps3: Reorganize kerneldoc parameter names 2024-11-14 22:25:42 +11:00
setup.c powerpc: use sysfs_emit{_at} in sysfs show functions 2026-06-02 11:24:32 +05:30
smp.c powerpc/ps3: Add __init attribute to eligible functions 2021-12-23 22:33:16 +11:00
spu.c powerpc/ps3: Remove unused struct table in setup_areas() 2026-07-28 10:23:31 +05:30
system-bus.c Char/Misc/IIO driver updates for 6.19-rc1 2025-12-06 18:34:24 -08:00
time.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 167 2019-05-30 11:26:39 -07:00