]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
powerpc/pseries/htmdump: Fix the offset value used in htm status dump
authorAthira Rajeev <atrajeev@linux.ibm.com>
Sat, 14 Mar 2026 13:24:32 +0000 (18:54 +0530)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Wed, 6 May 2026 01:57:44 +0000 (07:27 +0530)
commit0031424cbc0a6eafc56a8f9201a4a69d3649981e
tree84b4a7324f2bb3971797ca8406a787502977cc67
parent4ec6ade73f1626a74d46e61ff247cf2b1b96446b
powerpc/pseries/htmdump: Fix the offset value used in htm status dump

H_HTM call is invoked using three parameters specifying
the address of the buffer, size of the buffer and offset
where to read from. offset used was always zero.
"offset" is value from output buffer header that points
to next entry to dump. zero is the first entry to dump.
next entry is read from the output bufferbyte offset 0x8.
Update htmstatus_read() function to use right offset. Return
when offset points to -1

Fixes: 627cf584f4c3 ("powerpc/pseries/htmdump: Add htm status support to htmdump module")
Signed-off-by: Athira Rajeev <atrajeev@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260314132432.25581-3-atrajeev@linux.ibm.com
arch/powerpc/platforms/pseries/htmdump.c