]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
powerpc/pseries/htmdump: Fix the offset value used in processor configuration dump
authorAthira Rajeev <atrajeev@linux.ibm.com>
Sat, 14 Mar 2026 13:24:31 +0000 (18:54 +0530)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Wed, 6 May 2026 01:57:43 +0000 (07:27 +0530)
commit4ec6ade73f1626a74d46e61ff247cf2b1b96446b
treeb8a45bdfd0266b30058080ee739a63f880b3f1c1
parent54d54f33813d7911555226b4220737177a2ba8d6
powerpc/pseries/htmdump: Fix the offset value used in processor configuration 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 htminfo_read() function to use right offset. Return
when offset points to -1

Fixes: dea7384e14e7 ("powerpc/pseries/htmdump: Add htm info 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-2-atrajeev@linux.ibm.com
arch/powerpc/platforms/pseries/htmdump.c