Jonathan Kim
5e9eec0707
drm/amdgpu: add perfmons accessible during df c-states
...
During DF C-State, Perfmon counters outside of range 1D700-1D7FF will
encounter SLVERR affecting xGMI performance monitoring. PerfmonCtr[7:4]
is being added to avoid SLVERR during read since it falls within this
range. PerfmonCtl[7:4] is being added in order to arm PerfmonCtr[7:4].
Since PerfmonCtl[7:4] exists outside of range 1D700-1D7FF, DF routines
will be enabled to opportunistically re-arm PerfmonCtl[7:4] on retry
after SLVERR.
Signed-off-by: Jonathan Kim <Jonathan.Kim@amd.com >
Acked-by: Alex Deucher <Alexander.Deucher@amd.com >
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-12-23 14:55:53 -05:00
Guchun Chen
fb71a336cd
drm/amdgpu: move umc offset to one new header file for Arcturus
...
Code refactor and no functional change.
Fixes: 4cf781c24c ("drm/amdgpu: Added RAS UMC error query support for Arcturus")
Signed-off-by: Guchun Chen <guchun.chen@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-12-18 16:33:01 -05:00
Roman Li
d3c431ee0f
drm/amdgpu: add dpcs20 registers
...
add reg headers to dpcs includes
Signed-off-by: Roman Li <Roman.Li@amd.com >
Reviewed-by: Harry Wentland <harry.wentland@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-12-18 16:09:06 -05:00
Roman Li
6fdcba3271
drm/amdgpu: move dpcs headers to dpcs includes
...
- create dpcs directory for dpcs asic_reg headers
- move dpcs21 reg headers from dcn to dpcs directory
Signed-off-by: Roman Li <Roman.Li@amd.com >
Reviewed-by: Harry Wentland <harry.wentland@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-12-18 16:09:06 -05:00
Dennis Li
8781e5df11
drm/amdgpu: refine query function of mmhub EDC counter in vg20
...
Add codes to print the detail EDC info for the subblock of mmhub
v2: Move the EDC_CNT registers' defintion from mmhub_9_4 header
files to mmhub_1_0 ones. Add mmhub_v1_0_ prefix for the local
static variable and function.
v3: squash in DC fix
Signed-off-by: Dennis Li <dennis.li@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Reviewed-by: Tao Zhou <tao.zhou1@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-11-22 14:26:46 -05:00
Jane Jian
6aec5bb489
drm/amdgpu: add VCN0 and VCN1 needed headers
...
Add mmsch part registers
Signed-off-by: Jane Jian <jane.jian@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-10-25 16:50:09 -04:00
Bhawanpreet Lakha
ce6095267d
drm/amd/display: Add DP_DPHY_INTERNAL_CTR regs
...
Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com >
Reviewed-by: Roman Li <Roman.Li@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-10-17 16:27:07 -04:00
Alex Deucher
5d934ac0d0
drm/amdgpu: add new SMU 7.1.3 registers for BACO
...
Reviewed-by: Evan Quan <evan.quan@amd.com >
Acked-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-10-15 15:55:31 -04:00
Alex Deucher
9fc00ea774
drm/amdgpu: add new SMU 7.1.2 registers for BACO
...
Reviewed-by: Evan Quan <evan.quan@amd.com >
Acked-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-10-15 15:55:31 -04:00
Alex Deucher
c74c524e7c
drm/amdgpu: add new SMU 7.0.1 registers for BACO
...
Reviewed-by: Evan Quan <evan.quan@amd.com >
Acked-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-10-15 15:55:31 -04:00
Alex Deucher
c06a91c0f8
drm/amdgpu: add new BIF 5.0 register for BACO
...
Reviewed-by: Evan Quan <evan.quan@amd.com >
Acked-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-10-15 15:55:31 -04:00
Alex Deucher
8763eb7ae9
drm/amdgpu: add new BIF 4.1 register for BACO
...
Reviewed-by: Evan Quan <evan.quan@amd.com >
Acked-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-10-15 15:55:31 -04:00
Dennis Li
87d92e1f90
drm/amd/include: add register define for VML2 and ATCL2
...
Add VML2 and ATCL2 ECC registers to support VEGA20 RAS
Signed-off-by: Dennis Li <Dennis.Li@amd.com >
Reviewed-by: Hawking Zhang <hawking.zhang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-10-15 15:49:51 -04:00
Kenneth Feng
227f7d58d7
drm/amd/amdgpu: add IH cg support on soc15 project
...
enable/disable IH clock gating on soc15 projects.
Signed-off-by: Kenneth Feng <kenneth.feng@amd.com >
Reviewed-by: Kevin Wang <kevin1.wang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-10-03 09:11:04 -05:00
Kent Russell
3f94281751
drm/amdgpu: Add SMUIO values for other I2C controller v2
...
These are the offsets for CKSVII2C1, and match up with the values
already added for CKSVII2C
v2: Don't remove some of the CSKVII2C values
Signed-off-by: Kent Russell <kent.russell@amd.com >
Reviewed-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-10-03 09:11:03 -05:00
Guchun Chen
d7b1ed4ac3
drm/amdgpu: add pcie bif ras related registers
...
These registers will be accessed for querying ras errors.
Signed-off-by: Tao Zhou <tao.zhou1@amd.com >
Signed-off-by: Guchun Chen <guchun.chen@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-09-16 10:09:37 -05:00
Hawking Zhang
fc098fb4ed
drm/amdgpu: update nbio v7_4 ip header files
...
Add mmBIF_INTR_CNTL and its shift mask.
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-09-13 17:11:04 -05:00
Aaron Liu
7596625588
drm/amdgpu: update IH_CHICKEN in oss 4.0 IP header for VG/RV series
...
In Renoir's emulator, those chicken bits need to be programmed.
Signed-off-by: Aaron Liu <aaron.liu@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-08-30 15:37:17 -05:00
Bhawanpreet Lakha
b593bce59b
drm/amd/display: Add Renoir registers (v3)
...
add registers for dcn, clk, and renoir ip offsets
v2: header cleanup (Alex)
v3: Add DPCS registers (Hersen)
Acked-by: Harry Wentland <harry.wentland@amd.com >
Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-08-29 15:52:32 -05:00
Andrey Grodzovsky
6a3068065f
drm/amd: Import smuio_11_0 headers for EEPROM access on Vega20
...
v3: Merge CKSVII2C_IC regs into exsisting headers.
Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-08-27 08:17:27 -05:00
Tao Zhou
d6e0cbb152
drm/amdgpu: implement querying ras error count for mmhub
...
get mmhub ea ras error count by accessing EDC_CNT register
Signed-off-by: Tao Zhou <tao.zhou1@amd.com >
Reviewed-by: Guchun Chen <guchun.chen@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-08-15 10:51:50 -05:00
Huang Rui
d8a46257c2
drm/amdgpu: add renoir header files (v2)
...
This patch add all renoir header files.
v2: clean up headers (Alex)
Acked-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-08-12 12:47:49 -05:00
Xiaojie Yuan
87190edcf3
drm/amdgpu: add CGTT_GS_NGG_CLK_CTRL register to gc header
...
gc 10.1.2 introduced this new register
Signed-off-by: Xiaojie Yuan <xiaojie.yuan@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-08-02 10:30:40 -05:00
Kent Russell
57d352f769
drm/amdgpu: Update NBIO headers to add TXCLK3/4
...
These are added for VG20, and are needed for PCIe bandwidth.
Signed-off-by: Kent Russell <kent.russell@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-08-02 10:18:50 -05:00
Dennis Li
4bb6b8c758
drm/amd/include: add define of TCP_EDC_CNT_NEW
...
Signed-off-by: Dennis Li <Dennis.Li@amd.com >
Reviewed-by: Tao Zhou <tao.zhou1@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-07-31 14:50:54 -05:00
Dennis Li
ca3f422f53
drm/amd/include: add bitfield define for EDC registers
...
Add EDC registers to support VEGA20 RAS
Signed-off-by: Dennis Li <Dennis.Li@amd.com >
Reviewed-by: Tao Zhou <tao.zhou1@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-07-31 14:50:47 -05:00
Hawking Zhang
03c9963f47
drm/amdgpu: add umc v6_1_1 IP headers
...
the change introduces IP headers for unified memory controller (umc)
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Reviewed-by: Dennis Li <dennis.li@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-07-31 14:49:10 -05:00
Hawking Zhang
245219a660
drm/amdgpu: add rsmu v_0_0_2 ip headers
...
remote smu (rsmu) is a sub-block used as ip register interface,
error handling, reset generation.etc
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Reviewed-by: Dennis Li <dennis.li@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-07-31 14:49:03 -05:00
Jonathan Kim
c52e7ebce7
drm/amdgpu: exposing fica registers to df offsets
...
exposing fica registers to poll df pie data for xgmi error counters for
vega20.
Signed-off-by: Jonathan Kim <Jonathan.Kim@amd.com >
Reviewed-by: Alexander Deucher <Alexander.Deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-07-18 14:18:07 -05:00
Leo Liu
c54a60db0d
drm/amdgpu: add VCN2.5 headers
...
VCN is the multi-media block.
Signed-off-by: Leo Liu <leo.liu@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-07-18 14:18:01 -05:00
Le Ma
4f727ecefe
drm/amdgpu: add sdma 4.2.2 header files for Arcturus
...
SDMA is the system DMA block.
Signed-off-by: Le Ma <le.ma@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-07-18 14:18:01 -05:00
Le Ma
0e96cf7f67
drm/amdgpu: add mmhub 9.4.1 header files for Acrturus
...
mmhub is the GPU memory hub used by SDMA and VCN.
Signed-off-by: Le Ma <le.ma@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-07-18 14:18:01 -05:00
Charlene Liu
bb21290ff6
drm/amd/display: Create DWB resource for DCN2
...
[Description]
dcn20 has num_dwb =1 in the res cap, but not created.
Signed-off-by: Charlene Liu <charlene.liu@amd.com >
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com >
Reviewed-by: Duke Du <Duke.Du@amd.com >
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-06-22 09:34:11 -05:00
Hawking Zhang
d2996831b2
drm/amdgpu: add SMUIO 11.0 register headers
...
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-06-20 15:54:44 -05:00
Hawking Zhang
3d220cc3bd
drm/amdgpu: add OSS 5.0 register headers
...
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-06-20 15:54:42 -05:00
Hawking Zhang
f519f0be45
drm/amdgpu: add MMHUB 2.0 register headers
...
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-06-20 15:54:39 -05:00
Hawking Zhang
be4008b8c5
drm/amdgpu: add GC 10.1 register headers (v4)
...
v2: Update regs (Alex)
v3: More updates (Alex)
v4: more updates (Alex)
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-06-20 15:54:35 -05:00
Hawking Zhang
326354fa97
drm/amdgpu: add VCN 2.0 register headers
...
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-06-20 15:54:33 -05:00
Hawking Zhang
9edefe7bac
drm/amdgpu: add NBIO 2.3 register headers
...
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-06-20 15:54:31 -05:00
Hawking Zhang
d33ad04027
drm/amdgpu: add MP 11.0 register headers
...
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-06-20 15:54:28 -05:00
Hawking Zhang
2a3196f1f0
drm/amdgpu: add HDP 5.0 register headers
...
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-06-20 15:54:26 -05:00
Hawking Zhang
d6ad5023e8
drm/amdgpu: add DCN 2.0 register headers
...
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-06-20 15:54:23 -05:00
Hawking Zhang
ae213c4450
drm/amdgpu: add CLK 11.0 register headers
...
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-06-20 15:54:21 -05:00
Hawking Zhang
db3239f535
drm/amdgpu: add ATHUB 2.0 register headers
...
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-06-20 15:54:18 -05:00
Jonathan Kim
992af942a6
drm/amdgpu: add df perfmon regs and funcs for xgmi
...
v6: Squash in warning fix (Colin Ian King)
v5: Fix warnings (Alex)
v4: fixed mixed delaration and code warnings and minor errors
v3: exposing df funcs in amdgpu_df_funcs in amdgpu.h
v2: moving permonctl/perfmonctr from default to offset
- adding df perfmonctl and perfmonctr registers for df counters
- adding df funcs to set perfmonctl and get perfmonctr for
df and xgmi counters
- exposing df funcs in amdgpu_df_funcs
Signed-off-by: Jonathan Kim <jonathan.kim@amd.com >
Reviewed-by: Evan Quan <evan.quan@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-05-24 12:20:50 -05:00
James Zhu
8511477773
drm/amdgpu: add EDC counter register
...
Add EDC counter register to support gfx9 gpr EDC workaround to
clear all EDC counters.
Signed-off-by: James Zhu <James.Zhu@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-05-24 12:20:50 -05:00
Kent Russell
673b366b41
drm/amdgpu: Add replay counter defines to NBIO headers
...
Add the PCIE_RX_NUM_NACK and PCIE_RX_NUM_NACK_GENERATED values to the
NBIO SMN headers in preparation for exposing the number of PCIe replays
via sysfs
Signed-off-by: Kent Russell <kent.russell@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-05-24 12:20:48 -05:00
Leo Li
3b8cea6f64
drm/amd/include: Add HUBPREQ_DEBUG register offsets
...
They will be used by DC when runing ASIC-specific HUBP initialization.
Signed-off-by: Leo Li <sunpeng.li@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-04-23 17:27:08 -05:00
Tom St Denis
054d282d17
drm/amd/amdgpu: Add ENGINE_CNTL register to vcn10 headers
...
Signed-off-by: Tom St Denis <tom.stdenis@amd.com >
Acked-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:36:48 -05:00
Jim Qu
6a789aa8d5
drm/amdgpu: update THM IP register header to support BACO
...
Signed-off-by: Jim Qu <Jim.Qu@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-01-25 16:15:33 -05:00