OSDN Git Service

ppc/pnv: Add a comment on the "primary-topology-index" property
authorCédric Le Goater <clg@kaod.org>
Wed, 1 Sep 2021 09:41:48 +0000 (11:41 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 29 Sep 2021 09:37:38 +0000 (19:37 +1000)
commit40ef88ba77ac84baab3a78171a49829a6cd1d3e0
tree10610989d342a14824520561176de35daf43d30a
parent3ad2111175dddb4e396c25ce242a5c7763d42631
ppc/pnv: Add a comment on the "primary-topology-index" property

On P10, the chip id is calculated from the "Primary topology table
index". See skiboot commits for more information [1].

This information is extracted from the hdata on real systems which
QEMU needs to emulate. Add this property for all machines even if it
is only used on POWER10.

[1] https://github.com/open-power/skiboot/commit/2ce3f083f399
    https://github.com/open-power/skiboot/commit/a2d4d7f9e14a

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20210901094153.227671-4-clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/pnv_xscom.c