mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
ppc/pnv: Fix OCC common area region mapping
The OCC common area is mapped at a unique address on the system and each OCC is assigned a segment to expose its sensor data : ------------------------------------------------------------------------- | Start (Offset from | End | Size |Description | | BAR2 base address) | | | | ------------------------------------------------------------------------- | 0x00580000 | 0x005A57FF |150kB |OCC 0 Sensor Data Block| | 0x005A5800 | 0x005CAFFF |150kB |OCC 1 Sensor Data Block| | : | : | : | : | | 0x00686800 | 0x006ABFFF |150kB |OCC 7 Sensor Data Block| | 0x006AC000 | 0x006FFFFF |336kB |Reserved | ------------------------------------------------------------------------- Maximum size is 1.5MB. We could define a "OCC common area" memory region at the machine level and sub regions for each OCC. But it adds some extra complexity to the models. Fix the current layout with a simpler model. Signed-off-by: Cédric Le Goater <clg@kaod.org> Message-Id: <20191211082912.2625-3-clg@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
8f09231631
commit
3a1b70b66b
4 changed files with 16 additions and 11 deletions
|
@ -246,6 +246,8 @@ IPMIBmc *pnv_bmc_create(void);
|
|||
|
||||
#define PNV_OCC_COMMON_AREA_SIZE 0x0000000000800000ull
|
||||
#define PNV_OCC_COMMON_AREA_BASE 0x7fff800000ull
|
||||
#define PNV_OCC_SENSOR_BASE(chip) (PNV_OCC_COMMON_AREA_BASE + \
|
||||
PNV_OCC_SENSOR_DATA_BLOCK_BASE(PNV_CHIP_INDEX(chip)))
|
||||
|
||||
#define PNV_HOMER_SIZE 0x0000000000400000ull
|
||||
#define PNV_HOMER_BASE(chip) \
|
||||
|
@ -312,6 +314,8 @@ IPMIBmc *pnv_bmc_create(void);
|
|||
|
||||
#define PNV9_OCC_COMMON_AREA_SIZE 0x0000000000800000ull
|
||||
#define PNV9_OCC_COMMON_AREA_BASE 0x203fff800000ull
|
||||
#define PNV9_OCC_SENSOR_BASE(chip) (PNV9_OCC_COMMON_AREA_BASE + \
|
||||
PNV_OCC_SENSOR_DATA_BLOCK_BASE(PNV_CHIP_INDEX(chip)))
|
||||
|
||||
#define PNV9_HOMER_SIZE 0x0000000000400000ull
|
||||
#define PNV9_HOMER_BASE(chip) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue