mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-20 06:16:13 +00:00
igt/quickdump: vlv: dump FLISDSI regs too
Signed-off-by: Imre Deak <imre.deak@intel.com>
This commit is contained in:
parent
ad08999794
commit
a6eaa29271
@ -48,6 +48,8 @@ void OUTREG(uint32_t reg, uint32_t val);
|
|||||||
/* sideband access functions from intel_iosf.c */
|
/* sideband access functions from intel_iosf.c */
|
||||||
uint32_t intel_dpio_reg_read(uint32_t reg, int phy);
|
uint32_t intel_dpio_reg_read(uint32_t reg, int phy);
|
||||||
void intel_dpio_reg_write(uint32_t reg, uint32_t val, int phy);
|
void intel_dpio_reg_write(uint32_t reg, uint32_t val, int phy);
|
||||||
|
uint32_t intel_flisdsi_reg_read(uint32_t reg);
|
||||||
|
void intel_flisdsi_reg_write(uint32_t reg, uint32_t val);
|
||||||
|
|
||||||
int intel_punit_read(uint8_t addr, uint32_t *val);
|
int intel_punit_read(uint8_t addr, uint32_t *val);
|
||||||
int intel_punit_write(uint8_t addr, uint32_t val);
|
int intel_punit_write(uint8_t addr, uint32_t val);
|
||||||
|
@ -153,3 +153,17 @@ void intel_dpio_reg_write(uint32_t reg, uint32_t val, int phy)
|
|||||||
{
|
{
|
||||||
vlv_sideband_rw(IOSF_PORT_DPIO, SB_MWR_NP, reg, &val);
|
vlv_sideband_rw(IOSF_PORT_DPIO, SB_MWR_NP, reg, &val);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint32_t intel_flisdsi_reg_read(uint32_t reg)
|
||||||
|
{
|
||||||
|
uint32_t val = 0;
|
||||||
|
|
||||||
|
vlv_sideband_rw(IOSF_PORT_FLISDSI, SB_CRRDDA_NP, reg, &val);
|
||||||
|
|
||||||
|
return val;
|
||||||
|
}
|
||||||
|
|
||||||
|
void intel_flisdsi_reg_write(uint32_t reg, uint32_t val)
|
||||||
|
{
|
||||||
|
vlv_sideband_rw(IOSF_PORT_FLISDSI, SB_CRWRDA_NP, reg, &val);
|
||||||
|
}
|
||||||
|
@ -18,6 +18,7 @@ extern void intel_register_access_fini();
|
|||||||
extern int intel_register_access_needs_fakewake();
|
extern int intel_register_access_needs_fakewake();
|
||||||
extern unsigned short pcidev_to_devid(struct pci_device *pci_dev);
|
extern unsigned short pcidev_to_devid(struct pci_device *pci_dev);
|
||||||
extern uint32_t intel_dpio_reg_read(uint32_t reg, int phy);
|
extern uint32_t intel_dpio_reg_read(uint32_t reg, int phy);
|
||||||
|
extern uint32_t intel_flisdsi_reg_read(uint32_t reg);
|
||||||
%}
|
%}
|
||||||
|
|
||||||
extern int is_sandybridge(unsigned short pciid);
|
extern int is_sandybridge(unsigned short pciid);
|
||||||
@ -33,3 +34,4 @@ extern void intel_register_access_fini();
|
|||||||
extern int intel_register_access_needs_fakewake();
|
extern int intel_register_access_needs_fakewake();
|
||||||
extern unsigned short pcidev_to_devid(struct pci_device *pci_dev);
|
extern unsigned short pcidev_to_devid(struct pci_device *pci_dev);
|
||||||
extern uint32_t intel_dpio_reg_read(uint32_t reg, int phy);
|
extern uint32_t intel_dpio_reg_read(uint32_t reg, int phy);
|
||||||
|
extern uint32_t intel_flisdsi_reg_read(uint32_t reg);
|
||||||
|
@ -38,6 +38,8 @@ def parse_file(file):
|
|||||||
register = ast.literal_eval(line)
|
register = ast.literal_eval(line)
|
||||||
if register[2] == 'DPIO':
|
if register[2] == 'DPIO':
|
||||||
val = reg.dpio_read(register[1], 0)
|
val = reg.dpio_read(register[1], 0)
|
||||||
|
if register[2] == 'FLISDSI':
|
||||||
|
val = reg.flisdsi_read(register[1])
|
||||||
else:
|
else:
|
||||||
val = reg.read(register[1])
|
val = reg.read(register[1])
|
||||||
intreg = int(register[1], 16)
|
intreg = int(register[1], 16)
|
||||||
|
@ -35,6 +35,12 @@ def dpio_read(reg, phy):
|
|||||||
val = chipset.intel_dpio_reg_read(reg, phy)
|
val = chipset.intel_dpio_reg_read(reg, phy)
|
||||||
return val
|
return val
|
||||||
|
|
||||||
|
def flisdsi_read(reg):
|
||||||
|
reg = int(reg, 16)
|
||||||
|
|
||||||
|
val = chipset.intel_flisdsi_reg_read(reg)
|
||||||
|
return val
|
||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
pci_dev = chipset.intel_get_pci_device()
|
pci_dev = chipset.intel_get_pci_device()
|
||||||
|
@ -6,3 +6,4 @@ base_power.txt
|
|||||||
base_rings.txt
|
base_rings.txt
|
||||||
gen7_other.txt
|
gen7_other.txt
|
||||||
vlv_dpio.txt
|
vlv_dpio.txt
|
||||||
|
vlv_flisdsi.txt
|
||||||
|
39
tools/quick_dump/vlv_flisdsi.txt
Normal file
39
tools/quick_dump/vlv_flisdsi.txt
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
('MIPI4DPHY_RCOMP_IOSFSB_REG0', '0x0000', 'FLISDSI')
|
||||||
|
('MIPI4DPHY_RCOMP_IOSFSB_REG1', '0x0001', 'FLISDSI')
|
||||||
|
('MIPI4DPHY_RCOMP_IOSFSB_REG2', '0x0002', 'FLISDSI')
|
||||||
|
('MIPI4DPHY_RCOMP_IOSFSB_REG3', '0x0003', 'FLISDSI')
|
||||||
|
('MIPI4DPHY_RCOMP_IOSFSB_REG4', '0x0004', 'FLISDSI')
|
||||||
|
('MIPI4DPHY_RCOMP_IOSFSB_REG5', '0x0005', 'FLISDSI')
|
||||||
|
('MIPI4DPHY_RCOMP_IOSFSB_REG6', '0x0006', 'FLISDSI')
|
||||||
|
('MIPI4DPHY_RCOMP_IOSFSB_REG7', '0x0007', 'FLISDSI')
|
||||||
|
('DSI_CFG', '0x0008', 'FLISDSI')
|
||||||
|
('DSI_DLLCOUNTCD_STATUS', '0x0009', 'FLISDSI')
|
||||||
|
('DSI_RXCDCNTRL', '0x000a', 'FLISDSI')
|
||||||
|
('DSI_HSRCOMP_STAT', '0x000b', 'FLISDSI')
|
||||||
|
('DSI_LPRCOMP_STAT', '0x000c', 'FLISDSI')
|
||||||
|
('DSI_LPRCOMP2', '0x000d', 'FLISDSI')
|
||||||
|
('DSI_LPRCOMP1', '0x000e', 'FLISDSI')
|
||||||
|
('DSI_BGCTL', '0x000f', 'FLISDSI')
|
||||||
|
('DSI_RCCCFG', '0x0010', 'FLISDSI')
|
||||||
|
('DSI_MISRDOUTLP', '0x0011', 'FLISDSI')
|
||||||
|
('DSI_RCCRCOMP', '0x0012', 'FLISDSI')
|
||||||
|
('DSI_BSCOMPARE', '0x0013', 'FLISDSI')
|
||||||
|
('DSI_RCOMPCTL1', '0x0014', 'FLISDSI')
|
||||||
|
('DSI_TXCNTRL', '0x0015', 'FLISDSI')
|
||||||
|
('DSI_MISRDOUT1', '0x0016', 'FLISDSI')
|
||||||
|
('DSI_DLLCTL2', '0x0017', 'FLISDSI')
|
||||||
|
('DSI_DLLCTL1', '0x0018', 'FLISDSI')
|
||||||
|
('DSI_ACIOCFG2', '0x0019', 'FLISDSI')
|
||||||
|
('DSI_ACIOCFG1', '0x001a', 'FLISDSI')
|
||||||
|
('DSI_ACIOSS', '0x001b', 'FLISDSI')
|
||||||
|
('DSI_ACIOERR1', '0x001c', 'FLISDSI')
|
||||||
|
('DSI_ACIOERR2', '0x001d', 'FLISDSI')
|
||||||
|
('DSI_MISRDOUT2', '0x001e', 'FLISDSI')
|
||||||
|
('DSI_RCOMPCTL2', '0x001f', 'FLISDSI')
|
||||||
|
('DSI_ALL01', '0x0020', 'FLISDSI')
|
||||||
|
('DSI_DLLCTL3', '0x0021', 'FLISDSI')
|
||||||
|
('DSI_DATAEYE1', '0x0022', 'FLISDSI')
|
||||||
|
('DSI_DATAEYE2', '0x0023', 'FLISDSI')
|
||||||
|
('DSI_DATAEYE3', '0x0024', 'FLISDSI')
|
||||||
|
('DSI_DATAEYE4', '0x0025', 'FLISDSI')
|
||||||
|
('DSI_DATAEYE5', '0x0026', 'FLISDSI')
|
Loading…
x
Reference in New Issue
Block a user