Lines Matching full:chip
15 static uint64_t pnv_xscom_read(QTestState *qts, const PnvChip *chip, in pnv_xscom_read() argument
18 return qtest_readq(qts, pnv_xscom_addr(chip, pcba)); in pnv_xscom_read()
21 static void test_xscom_cfam_id(QTestState *qts, const PnvChip *chip) in test_xscom_cfam_id() argument
23 uint64_t f000f = pnv_xscom_read(qts, chip, 0xf000f); in test_xscom_cfam_id()
25 g_assert_cmphex(f000f, ==, chip->cfam_id); in test_xscom_cfam_id()
30 const PnvChip *chip = data; in test_cfam_id() local
34 if (chip->chip_type == PNV_CHIP_POWER9) { in test_cfam_id()
36 } else if (chip->chip_type == PNV_CHIP_POWER10) { in test_cfam_id()
41 machine, chip->cpu_model); in test_cfam_id()
42 test_xscom_cfam_id(qts, chip); in test_cfam_id()
58 static void test_xscom_core(QTestState *qts, const PnvChip *chip) in test_xscom_core() argument
60 if (chip->chip_type == PNV_CHIP_POWER10) { in test_xscom_core()
62 PNV_XSCOM_P10_EC_BASE(chip->first_core) + 0x412; in test_xscom_core()
65 thread_state = pnv_xscom_read(qts, chip, first_core_thread_state); in test_xscom_core()
72 if (chip->chip_type == PNV_CHIP_POWER9) { in test_xscom_core()
73 first_core_dts0 |= PNV_XSCOM_P9_EC_BASE(chip->first_core); in test_xscom_core()
75 first_core_dts0 |= PNV_XSCOM_EX_BASE(chip->first_core); in test_xscom_core()
78 dts0 = pnv_xscom_read(qts, chip, first_core_dts0); in test_xscom_core()
86 const PnvChip *chip = data; in test_core() local
90 if (chip->chip_type == PNV_CHIP_POWER9) { in test_core()
92 } else if (chip->chip_type == PNV_CHIP_POWER10) { in test_core()
97 machine, chip->cpu_model); in test_core()
98 test_xscom_core(qts, chip); in test_core()