Hawking Zhang
48d02dcba1
drm/amdgpu: Add umc_info v4_0 structure
...
To be used by aqua_vanjaram
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Reviewed-by: Candice Li <candice.li@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2023-08-31 18:09:38 -04:00
Hawking Zhang
cd8d77f328
drm/amdgpu: add new vram type for dgpu
...
hbm3 will be supported in some dgpu program
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com >
Reviewed-by: Le Ma <Le.Ma@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2023-06-09 09:44:25 -04:00
Tong Liu01
4864f2ee9e
drm/amdgpu: add vram reservation based on vram_usagebyfirmware_v2_2
...
Move TMR region from top of FB to 2MB for FFBM, so we need to
reserve TMR region firstly to make sure TMR can be allocated at 2MB
Signed-off-by: Tong Liu01 <Tong.Liu01@amd.com >
Acked-by: Christian König <christian.koenig@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-11-10 15:29:40 -05:00
Aurabindo Pillai
b801d8ad1b
drm/amd: Add atomfirmware.h definitions needed for DCN32/321
...
Add new structures for DCN 3.2.x.
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-06-03 16:43:36 -04:00
Hawking Zhang
21c8685b06
drm/amdgpu: add updated smu_info structures
...
To match with smu v13_0_0
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Reviewed-by: Likun Gao <Likun.Gao@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-05-04 09:57:33 -04:00
Hawking Zhang
083e5ff641
drm/amdgpu: add atom_gfx_info_v3_0 structure
...
atomfirmware table used for newer gfx IPs.
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Reviewed-by: Likun Gao <Likun.Gao@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-04-28 17:48:13 -04:00
Hawking Zhang
1a4824488b
drm/amdgpu: add vram_info v3_0 structure
...
To support query vram_width, vram_type, vram_vendor
information
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Reviewed-by: Likun Gao <Likun.Gao@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-04-28 17:48:06 -04:00
oushixiong
322687d596
drm/amd: Fix spelling typo in comment
...
Signed-off-by: oushixiong <oushixiong@kylinos.cn >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2022-04-26 11:53:07 -04:00
Fangzhi Zuo
5a2730fc1f
drm/amd/display: Add DP 2.0 BIOS and DMUB Support
...
Parse DP2 encoder caps and hpo instance from bios
Signed-off-by: Fangzhi Zuo <Jerry.Zuo@amd.com >
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2021-09-01 16:55:10 -04:00
John Clements
14fb496a84
drm/amdgpu: set RAS EEPROM address from VBIOS
...
update to latest atombios fw table
Signed-off-by: John Clements <john.clements@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >.
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2021-08-05 21:17:59 -04:00
Nicholas Kazlauskas
753625643e
drm/amdgpu: Update atomfirmware for DCN3.1 phy tuning and eDP caps
...
[Why & How]
We'll need these in driver for phy tuning in DCN3.1.
Multiple eDP support also requires understanding which LCD the backlight
curve in atombios is for.
Acked-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2021-06-04 16:03:25 -04:00
Jiawei Gu
29b4c589b4
drm/amdgpu: Add vbios info ioctl interface
...
Add AMDGPU_INFO_VBIOS_INFO subquery id for detailed vbios info.
Provides a way for the user application to get the VBIOS
information without having to parse the binary.
It is useful for the user to be able to display in a simple way the VBIOS
version in their system if they happen to encounter an issue.
V2:
Use numeric serial.
Parse and expose vbios version string.
V3:
Remove redundant data in drm_amdgpu_info_vbios struct.
V4:
64 bit alignment in drm_amdgpu_info_vbios.
v5: squash together all the reverts, etc. (Alex)
Signed-off-by: Jiawei Gu <Jiawei.Gu@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2021-06-01 22:55:39 -04:00
Hawking Zhang
cffd6f9d42
drm/amdgpu: add helper function to query dynamic boot config cap
...
Check firmware flags to determine whether dynmaic
boot config is supported or not.
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: John Clements <john.clements@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2021-05-19 22:30:14 -04:00
Xiaojian Du
af48a06daa
drm/amd: update the atomfirmware header for smu12
...
This patch is to update the atomfirmware header for smu12.
v2: remove some unnecessary members
Signed-off-by: Xiaojian Du <Xiaojian.Du@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2021-04-15 16:32:44 -04:00
Wesley Chalmers
dd8a86877e
drm/amd/display: Interface for LTTPR interop
...
[WHY]
The logic to toggle LTTPR transparent/non-transparent requires 2 flags
provided by BIOS
[HOW]
Repurpose the interface to get dce caps so both LTTPR querying functions
can use them.
Signed-off-by: Wesley Chalmers <Wesley.Chalmers@amd.com >
Reviewed-by: Jun Lei <Jun.Lei@amd.com >
Acked-by: Anson Jacob <Anson.Jacob@amd.com >
Tested-by: Dan Wheeler <daniel.wheeler@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2021-04-09 16:48:25 -04:00
Wesley Chalmers
95574c6961
drm/amd/display: BIOS LTTPR Caps Interface
...
[WHY]
Some platforms will have LTTPR capabilities forced on by VBIOS flags;
the functions added here will access those flags.
Signed-off-by: Wesley Chalmers <Wesley.Chalmers@amd.com >
Reviewed-by: Jun Lei <Jun.Lei@amd.com >
Acked-by: Anson Jacob <Anson.Jacob@amd.com >
Tested-by: Dan Wheeler <daniel.wheeler@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2021-04-09 16:47:53 -04:00
Hawking Zhang
f1a8801c19
drm/amdgpu: update umc_info v3_3 structure for ECC
...
new member introduced in umc_info v3_3 to indicate
ECC capability
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Reviewed-by: Likun Gao <Likun.Gao@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2021-03-23 23:29:31 -04:00
Feifei Xu
8081f8faca
drm/amdpgu: add ATOM_DGPU_VRAM_TYPE_HBM2E vram type
...
0x61 is assigned to HBM2E in atom_dgpu_vram_type.
Signed-off-by: Feifei Xu <Feifei.Xu@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2021-03-23 22:56:33 -04:00
Hawking Zhang
7159a36e11
drm/amdgpu: query aldebaran gfx_config through atomfirmware i/f
...
For ASICs that don't support ip discovery feature, query
gfx configuration through atomfirmware interface, rather
than gpu_info firmware.
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2021-03-23 22:56:22 -04:00
Lijo Lazar
b1138d5ec0
drm/amd/pm: Add atom_smc_dpm_info_v4_10 for aldebaran
...
Add atom_smc_dpm_info_v4_10 that defines board parameters for aldebaran
Signed-off-by: Lijo Lazar <Lijo.Lazar@amd.com >
Reviewed-by: Kenneth Feng <Kenneth.Feng@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2021-03-23 22:56:11 -04:00
Feifei Xu
e5a8321350
drm/amdgpu: update atom_firmware_info_v3_4 (v2)
...
v1: Added some pspbl parameters
v2: fix fallthrough issue
Signed-off-by: Feifei Xu <Feifei.Xu@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com >
Reviewed-by: Kevin Wang <kevin1.wang@amd.com >
Reviewed-by: Lazar Lijo <Lijo.Lazar@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2021-03-23 22:56:01 -04:00
Hawking Zhang
f31c4a11b4
drm/amdgpu: support get_vram_info atomfirmware i/f for aldebaran
...
Query vram_type, channel_num, channel_width
information through atomfirmware i/f
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2021-03-23 22:54:59 -04:00
Evan Quan
ad26bd1126
drm/amdgpu: new macro for determining 2ND_USB20PORT support
...
Used for determining 2ND_USB20PORT support from firmware_capability.
Signed-off-by: Evan Quan <evan.quan@amd.com >
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2020-12-10 16:41:49 -05:00
Yongqiang Sun
c85ef99a9f
drm/amd/display: Add internal display info
...
[Why & How]
Get internal display info from vbios and pass it to dmub fw to determine
if multiple display optmization is needed.
Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com >
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com >
Acked-by: Anthony Koo <Anthony.Koo@amd.com >
Acked-by: Aric Cyr <Aric.Cyr@amd.com >
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2020-11-24 12:08:15 -05:00
Alex Deucher
15047bd436
drm/amdgpu: drop CONFIG_DRM_AMD_DC_DCN3_01 from atomfirmware.h
...
Not needed.
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2020-10-30 01:02:10 -04:00
Roman Li
b9d90cb031
drm/amdgpu/atomfirmware: Add edp and integrated info v2.1 tables
...
Required for vangogh.
Signed-off-by: Roman Li <Roman.Li@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Harry Wentland <harry.wentland@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2020-10-05 15:14:03 -04:00
Huang Rui
af118ed9ef
drm/amdgpu: update new memory types in atomfirmware header
...
Add new nemory types in atomfirmware header.
Signed-off-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2020-10-05 15:14:03 -04:00
Igor Kravchenko
098214999c
drm/amd/display: Read VBIOS Golden Settings Tbl
...
[Why]
For ver.4.4 and higher VBIOS contains default setting table.
{How]
Read Golden Settings Table from VBIOS, apply Aux tuning parameters.
Signed-off-by: Igor Kravchenko <Igor.Kravchenko@amd.com >
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com >
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2020-08-06 16:47:13 -04:00
Alex Deucher
2fde24e4dc
drm/amdgpu/atomfirmware: update to latest integratedinfotable
...
Used for renoir.
Acked-by: Evan Quan <evan.quan@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2020-07-02 12:02:57 -04:00
Likun Gao
44e7139b45
drm/amd/powerplay: and smc dpm info struct for sienna_cichlid
...
And atom_smc_dpm_info_v4_9 struct for sienna_cichlid use.
Signed-off-by: Likun Gao <Likun.Gao@amd.com >
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2020-07-01 01:59:13 -04:00
Hawking Zhang
718715e6a4
drm/amdgpu: add firmware_info v3_4 structure for Sienna_Cichlid
...
firmware_info v3_4 strucure will be used by kernel driver
to query various parameters set by VBIOS for Sienna_Cichlid
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 >
2020-07-01 01:59:10 -04:00
Hawking Zhang
9d3708169f
drm/amdgpu: add vram_info v2_5 in atomfirmware header
...
vram_info v2_5 was introduced to support sienna_cichlid
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Reviewed-by: Likun Gao <Likun.Gao@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2020-07-01 01:59:09 -04:00
Anthony Koo
cdca3f218d
drm/amd/display: move location of dmub_srv.h file
...
[Why]
Make a separation of what belongs in the differen dmub
headers
dmub_srv.h is for exposing dmub srv interface to rest of
driver.
other headers inside dmub/inc exposes cmds and definitions
that are owned by the firmware
[How]
keep firmware owned definitions in dmub/inc
move stuff that is purely driver interface headers to dmub/
since those are interface calls that are defined for rest of
driver to use
Signed-off-by: Anthony Koo <Anthony.Koo@amd.com >
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com >
Acked-by: Harry Wentland <harry.wentland@amd.com >
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2020-05-05 13:12:33 -04:00
Evan Quan
02c0bb4ee3
drm/amd/powerplay: revise the way to retrieve the board parameters
...
It can support different NV1x ASIC better. And this can guard
no member got missing.
Signed-off-by: Evan Quan <evan.quan@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2020-04-22 18:11:45 -04:00
Tianci.Yin
8d40002fee
drm/amdgpu: update the method to get fb_loc of memory training(V4)
...
The method of getting fb_loc changed from parsing VBIOS to
taking certain offset from top of VRAM
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Tianci.Yin <tianci.yin@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-12-23 14:59:20 -05:00
Tianci.Yin
66e111292b
drm/amdgpu: update atomfirmware header with memory training related members(v3)
...
add new vram_reserve_block structure and atomfirmware_internal_constants enumeration
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com >
Signed-off-by: Tianci.Yin <tianci.yin@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-10-17 16:31:25 -04:00
Evan Quan
4c35e77865
drm/amd/powerplay: add smcdpminfo table v4_6 support
...
New smcdpminfo table used in arcturus.
Signed-off-by: Evan Quan <evan.quan@amd.com >
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-07-30 23:48:33 -05:00
Hawking Zhang
10e4b22735
drm/amdgpu: atomfirmware.h updates for navi10
...
Updated tables for Navi10.
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-06-20 15:54:48 -05:00
Leo Li
20299a8812
drm/amd/include: Add USB_C_TYPE to atom_encoder_cap_defs
...
This is needed by DC to support EDID emulation on USB-C ports.
CC: Samson Tam <Samson.Tam@amd.com >
CC: Harry Wentland <harry.wentland@amd.com >
CC: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Leo Li <sunpeng.li@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-04-19 11:32:48 -05:00
Hawking Zhang
ed606ca3d3
drm/amdgpu: update atomfirmware header with ecc related members
...
add new umc_info structures and new firmware_capability defines
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-03-19 15:36:51 -05:00
Huang Rui
eaf02a4d92
drm/amdgpu: update atomfirmware header for smu11
...
This patch updates atomfirmware header on smu11 for future use.
Signed-off-by: Huang Rui <ray.huang@amd.com >
Reviewed-by: Kevin Wang <Kevin1.Wang@amd.com >
Reviewed-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2019-03-19 15:03:55 -05:00
Leo Li
86a484bda7
drm/amd: Update atom_smu_info_v3_3 structure
...
Mainly adding the WAFL spread spectrum info, for adjusting display
clocks when XGMI is enabled.
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 >
2018-11-06 15:44:46 -05:00
Evan Quan
d579fd8270
drm/amd/powerplay: added I2C controller configuration
...
PPTABLE structure is stretched to add I2C controller
configuration. Hold on the PPTABLE_V20_SMU_VERSION bump
until the VBIOS is ready.
Signed-off-by: Evan Quan <evan.quan@amd.com >
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-10-16 15:08:54 -05:00
Hawking Zhang
801281fe09
drm/amdgpu: update vram_info structure in atomfirmware.h
...
atomfirmware has structure changes in varm_info. Updated it
to the latest one.
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 >
2018-09-19 12:37:31 -05:00
Evan Quan
7a0d7089c7
drm/amdgpu: update atomfirmware.h
...
Add struct atom_smc_dpm_info_v4_3
Signed-off-by: Evan Quan <evan.quan@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-08-27 11:10:23 -05:00
Harry Wentland
d04cc604a6
drm/amd: Add missing fields in atom_integrated_system_info_v1_11
...
This structure needs to align with structure in atomfirmware table.
Update it.
Signed-off-by: Harry Wentland <harry.wentland@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Reviewed-by: Dmytro Laktyushkin <dmytro.laktyushkin@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-07-27 09:07:43 -05:00
Evan Quan
77564c9dff
drm/amd/powerplay: smc_dpm_info structure change
...
A new member Vr2_I2C_address is added.
Signed-off-by: Evan Quan <evan.quan@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-07-05 16:38:52 -05:00
Evan Quan
ee7a99c79a
drm/amdgpu: correct SMU11 SYSPLL0 clock id values
...
The SMU11 SYSPLL0 clock ids were assigned wrong values.
Signed-off-by: Evan Quan <evan.quan@amd.com >
Reviewed-by: Huang Rui <ray.huang@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-05-30 12:35:06 -05:00
Shaoyun Liu
f9fb22a21b
drm/amdgpu: Update GFX info structure to match what vega20 used
...
Update to the latest version from the vbios team.
Signed-off-by: Shaoyun Liu <Shaoyun.Liu@amd.com >
Acked-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-05-24 10:07:55 -05:00
Alex Deucher
6f68711dd6
drm/amdgpu/atomfirmware: add new gfx_info data table v2.4 (v2)
...
Adds additional gfx configuration data.
v2: fix typo
Acked-by: Christian König <christian.koenig@amd.com >
Reviewed-by: Hawking Zhang <Hawking.Zhang>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2018-05-17 10:13:21 -05:00