[Crash-utility] [PATCHv5 1/3] crash-utility/arm64: store phy_offset and memstart_addr separately

lijiang lijiang at redhat.com
Wed May 26 04:10:15 UTC 2021


Hi, Pingfan

Thank you for the update.

> This bug connects with kernel commit 7bc1a0f9e176 ("arm64: mm: use> single quantity to represent the PA to VA translation"), memstart_addr> can be negative, which makes it different from real phys_offset. If> using memstart_addr to calculate the real paddr, the unreasonable paddr> will be got.
> Furthermore, in crash utility, PTOV() needs memstart_addr to calculate> VA from PA, while getting PFN offset in a dumpfile, phys_offset is> required.

As you mentioned above, the calculation formula has been changed, how to

deal with the backward compatibility issue? Should we use kernel version

to determine which code branch it should execute? Please correct me if I

was wrong.


Thanks.

Lianbo

 > To serve the different purpose, using phys_offset_nominal and>
phys_offset to store them.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20210526/c1646cf6/attachment.htm>


More information about the Crash-utility mailing list