aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/include/atomfirmware.h
Commit message (Collapse)AuthorAgeFilesLines
* drm/amdgpu: fixing typo in macro nameJihed Chaibi2025-05-221-1/+1
| | | | | | | | | | | "ENABLE" is currently misspelled in SYS_INFO_GPUCAPS__ENABEL_DFS_BYPASS PS: checkpatch.pl is complaining about the presence of a space at the start of drivers/gpu/drm/amd/include/atomfirmware.h line: 1716 This is propably because this file uses (two) spaces and not tabs. Signed-off-by: Jihed Chaibi <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd: add definition for new memory typeTao Zhou2025-05-131-0/+1
| | | | | | | | Support new version of HBM. Signed-off-by: Tao Zhou <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd: Update atomfirmware: add new retimer definitionAurabindo Pillai2024-12-101-6/+11
| | | | | | | | Add some new retimer definitions and also fix a incorrect definition Signed-off-by: Aurabindo Pillai <[email protected]> Reviewed-by: Michael Strauss <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/atomfirmware: Silence UBSAN warningAlex Deucher2024-09-101-2/+2
| | | | | | | | | | Per the comments, these are variable sized arrays. Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3613 Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]> (cherry picked from commit 81f7804ba84ee617ed594de934ed87bcc4f83531) Cc: [email protected]
* drm/amdgpu/atomfirmware: silence UBSAN warningAlex Deucher2024-07-021-1/+1
| | | | | | | | | This is a variable sized array. Link: https://lists.freedesktop.org/archives/amd-gfx/2024-June/110420.html Tested-by: Jeff Layton <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
* drm/amdgpu: silence UBSAN warningAlex Deucher2024-05-291-1/+1
| | | | | | | Convert a variable sized array from [1] to []. Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/atomfirmware: add intergrated info v2.3 tableLi Ma2024-05-221-0/+43
| | | | | | | | | | | | | | | | [Why] The vram width value is 0. Because the integratedsysteminfo table in VBIOS has updated to 2.3. [How] Driver needs a new intergrated info v2.3 table too. Then the vram width value will be correct. Signed-off-by: Li Ma <[email protected]> Reviewed-by: Yifan Zhang <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
* drm/amd: Update atomfirmware.h for DCN401Aurabindo Pillai2024-02-221-0/+32
| | | | | | | | Add new firmware header definitions reqiured for DCN401 Signed-off-by: Aurabindo Pillai <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: Add umc_info v4_0 structureHawking Zhang2023-08-311-0/+18
| | | | | | | | To be used by aqua_vanjaram Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Candice Li <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add new vram type for dgpuHawking Zhang2023-06-091-0/+1
| | | | | | | | | hbm3 will be supported in some dgpu program Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Reviewed-by: Le Ma <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add vram reservation based on vram_usagebyfirmware_v2_2Tong Liu012022-11-101-9/+54
| | | | | | | | | 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 <[email protected]> Acked-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd: Add atomfirmware.h definitions needed for DCN32/321Aurabindo Pillai2022-06-031-22/+187
| | | | | | | | Add new structures for DCN 3.2.x. Signed-off-by: Aurabindo Pillai <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add updated smu_info structuresHawking Zhang2022-05-041-0/+124
| | | | | | | | To match with smu v13_0_0 Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Likun Gao <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add atom_gfx_info_v3_0 structureHawking Zhang2022-04-281-0/+33
| | | | | | | | atomfirmware table used for newer gfx IPs. Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Likun Gao <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add vram_info v3_0 structureHawking Zhang2022-04-281-0/+45
| | | | | | | | | To support query vram_width, vram_type, vram_vendor information Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Likun Gao <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd: Fix spelling typo in commentoushixiong2022-04-261-1/+1
| | | | | Signed-off-by: oushixiong <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: Add DP 2.0 BIOS and DMUB SupportFangzhi Zuo2021-09-011-0/+4
| | | | | | | | Parse DP2 encoder caps and hpo instance from bios Signed-off-by: Fangzhi Zuo <[email protected]> Reviewed-by: Nicholas Kazlauskas <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: set RAS EEPROM address from VBIOSJohn Clements2021-08-061-1/+1
| | | | | | | | update to latest atombios fw table Signed-off-by: John Clements <[email protected]> Reviewed-by: Hawking Zhang <[email protected]>. Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: Update atomfirmware for DCN3.1 phy tuning and eDP capsNicholas Kazlauskas2021-06-041-1/+55
| | | | | | | | | | | | [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 <[email protected]> Signed-off-by: Nicholas Kazlauskas <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: Add vbios info ioctl interfaceJiawei Gu2021-06-021-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | 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 <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add helper function to query dynamic boot config capHawking Zhang2021-05-201-0/+1
| | | | | | | | | | Check firmware flags to determine whether dynmaic boot config is supported or not. Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: John Clements <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd: update the atomfirmware header for smu12Xiaojian Du2021-04-151-0/+41
| | | | | | | | | | | | This patch is to update the atomfirmware header for smu12. v2: remove some unnecessary members Signed-off-by: Xiaojian Du <[email protected]> Acked-by: Alex Deucher <[email protected]> Reviewed-by: Huang Rui <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: Interface for LTTPR interopWesley Chalmers2021-04-091-0/+1
| | | | | | | | | | | | | | | | [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 <[email protected]> Reviewed-by: Jun Lei <[email protected]> Acked-by: Anson Jacob <[email protected]> Tested-by: Dan Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: BIOS LTTPR Caps InterfaceWesley Chalmers2021-04-091-1/+36
| | | | | | | | | | | | [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 <[email protected]> Reviewed-by: Jun Lei <[email protected]> Acked-by: Anson Jacob <[email protected]> Tested-by: Dan Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: update umc_info v3_3 structure for ECCHawking Zhang2021-03-241-1/+12
| | | | | | | | | new member introduced in umc_info v3_3 to indicate ECC capability Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Likun Gao <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdpgu: add ATOM_DGPU_VRAM_TYPE_HBM2E vram typeFeifei Xu2021-03-241-0/+1
| | | | | | | | 0x61 is assigned to HBM2E in atom_dgpu_vram_type. Signed-off-by: Feifei Xu <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: query aldebaran gfx_config through atomfirmware i/fHawking Zhang2021-03-241-0/+41
| | | | | | | | | | 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 <[email protected]> Reviewed-by: Feifei Xu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/pm: Add atom_smc_dpm_info_v4_10 for aldebaranLijo Lazar2021-03-241-0/+53
| | | | | | | | | Add atom_smc_dpm_info_v4_10 that defines board parameters for aldebaran Signed-off-by: Lijo Lazar <[email protected]> Reviewed-by: Kenneth Feng <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: update atom_firmware_info_v3_4 (v2)Feifei Xu2021-03-241-1/+4
| | | | | | | | | | | v1: Added some pspbl parameters v2: fix fallthrough issue Signed-off-by: Feifei Xu <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Reviewed-by: Kevin Wang <[email protected]> Reviewed-by: Lazar Lijo <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: support get_vram_info atomfirmware i/f for aldebaranHawking Zhang2021-03-241-0/+16
| | | | | | | | | Query vram_type, channel_num, channel_width information through atomfirmware i/f Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Feifei Xu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: new macro for determining 2ND_USB20PORT supportEvan Quan2020-12-101-0/+1
| | | | | | | | Used for determining 2ND_USB20PORT support from firmware_capability. Signed-off-by: Evan Quan <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: Add internal display infoYongqiang Sun2020-11-241-0/+1
| | | | | | | | | | | | | [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 <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Anthony Koo <[email protected]> Acked-by: Aric Cyr <[email protected]> Acked-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: drop CONFIG_DRM_AMD_DC_DCN3_01 from atomfirmware.hAlex Deucher2020-10-301-4/+0
| | | | | | | Not needed. Reviewed-by: Luben Tuikov <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/atomfirmware: Add edp and integrated info v2.1 tablesRoman Li2020-10-051-1/+61
| | | | | | | | | Required for vangogh. Signed-off-by: Roman Li <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: update new memory types in atomfirmware headerHuang Rui2020-10-051-0/+5
| | | | | | | Add new nemory types in atomfirmware header. Signed-off-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: Read VBIOS Golden Settings TblIgor Kravchenko2020-08-061-1/+53
| | | | | | | | | | | | | [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 <[email protected]> Reviewed-by: Aric Cyr <[email protected]> Acked-by: Aurabindo Pillai <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/atomfirmware: update to latest integratedinfotableAlex Deucher2020-07-021-0/+78
| | | | | | | Used for renoir. Acked-by: Evan Quan <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/powerplay: and smc dpm info struct for sienna_cichlidLikun Gao2020-07-011-0/+123
| | | | | | | | And atom_smc_dpm_info_v4_9 struct for sienna_cichlid use. Signed-off-by: Likun Gao <[email protected]> Reviewed-by: Kenneth Feng <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add firmware_info v3_4 structure for Sienna_CichlidHawking Zhang2020-07-011-0/+36
| | | | | | | | | 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 <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add vram_info v2_5 in atomfirmware headerHawking Zhang2020-07-011-0/+124
| | | | | | | | vram_info v2_5 was introduced to support sienna_cichlid Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Likun Gao <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: move location of dmub_srv.h fileAnthony Koo2020-05-051-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | [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 <[email protected]> Reviewed-by: Aric Cyr <[email protected]> Acked-by: Harry Wentland <[email protected]> Acked-by: Aurabindo Pillai <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/powerplay: revise the way to retrieve the board parametersEvan Quan2020-04-221-0/+102
| | | | | | | | | | It can support different NV1x ASIC better. And this can guard no member got missing. Signed-off-by: Evan Quan <[email protected]> Acked-by: Alex Deucher <[email protected]> Reviewed-by: Kenneth Feng <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: update the method to get fb_loc of memory training(V4)Tianci.Yin2019-12-231-14/+0
| | | | | | | | | The method of getting fb_loc changed from parsing VBIOS to taking certain offset from top of VRAM Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Tianci.Yin <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: update atomfirmware header with memory training related members(v3)Tianci.Yin2019-10-171-6/+21
| | | | | | | | | add new vram_reserve_block structure and atomfirmware_internal_constants enumeration Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Luben Tuikov <[email protected]> Signed-off-by: Tianci.Yin <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/powerplay: add smcdpminfo table v4_6 supportEvan Quan2019-07-311-0/+86
| | | | | | | | New smcdpminfo table used in arcturus. Signed-off-by: Evan Quan <[email protected]> Reviewed-by: Kenneth Feng <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: atomfirmware.h updates for navi10Hawking Zhang2019-06-201-8/+180
| | | | | | | Updated tables for Navi10. Signed-off-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/include: Add USB_C_TYPE to atom_encoder_cap_defsLeo Li2019-04-191-0/+1
| | | | | | | | | | | This is needed by DC to support EDID emulation on USB-C ports. CC: Samson Tam <[email protected]> CC: Harry Wentland <[email protected]> CC: Alex Deucher <[email protected]> Signed-off-by: Leo Li <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: update atomfirmware header with ecc related membersHawking Zhang2019-03-191-0/+53
| | | | | | | | add new umc_info structures and new firmware_capability defines Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: update atomfirmware header for smu11Huang Rui2019-03-191-7/+37
| | | | | | | | | This patch updates atomfirmware header on smu11 for future use. Signed-off-by: Huang Rui <[email protected]> Reviewed-by: Kevin Wang <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd: Update atom_smu_info_v3_3 structureLeo Li2018-11-061-2/+5
| | | | | | | | | Mainly adding the WAFL spread spectrum info, for adjusting display clocks when XGMI is enabled. Signed-off-by: Leo Li <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>