linux/drivers/gpu/drm/amd/include
Xiaojie Yuan f39f5bb1c9 drm/amdgpu/discovery: add ip discovery initial support
The IP discovery table lists is populated by the psp at power on
and includes all of the hw details on the board:
- List of IPs and MMIO offsets
- IP harvest details
- IP configuration details

v2: prefix struct and function names with 'amdgpu'
v3: read table binary from vram using mmMM_INDEX and mmMM_DATA
    update TABLE_BINARY_MAX_SIZE to 64kb (1 TMR)
    add 'instance_number' field per ip info
    consider endianness and replace uint8/16/32_t with u8/16/32
    initialize register base addresses
    initialize adev->gfx.config and adev->gfx.cu_info to replace gpu info fw
    get major and minor version using a single api
    don't expose internal data structures in amdgpu_discovery.h
v4: RCC_CONFIG_MEMSIZE is in MB units
    hold mmio_idx_lock while reading ip discovery binary
v5: pick out discovery.h as a cross-OS header
    do structure pointer cast directly
    consider endianness while using the member of structure
    convert base addresses to dword

at boot up, PSP BL copies ip discovery binary from VBIOS(SPIROM) image to the
top of the frame buffer (just below the reserved regions for PSP & SMU).

ip discovery data table includes the collection of each ip's identification
number, base addresses, version number, and harvest setting placeholder.

gc data table includes gfx info structure.

Signed-off-by: Xiaojie Yuan <xiaojie.yuan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-06-21 18:58:21 -05:00
..
asic_reg drm/amdgpu: add SMUIO 11.0 register headers 2019-06-20 15:54:44 -05:00
ivsrcid drm/amd/display: move dcn v1_0 irq source header to ivsrcid/dcn/ 2019-06-20 21:35:30 -05:00
amd_acpi.h drm/amd: Query and use ACPI backlight caps 2018-11-26 15:54:39 -05:00
amd_pcie_helpers.h gpu: drm: amd/radeon: Convert printk(KERN_<LEVEL> to pr_<level> 2017-03-29 23:53:24 -04:00
amd_pcie.h drm/amdgpu: update amd_pcie.h to include gen4 speeds 2018-07-05 16:39:59 -05:00
amd_shared.h drm/amdgpu/athub2: enable athub2 clock gating 2019-06-20 21:35:29 -05:00
atom-bits.h
atom-names.h
atom-types.h
atombios.h drm/amd: fix typo 2019-01-25 16:15:34 -05:00
atomfirmware.h drm/amdgpu: atomfirmware.h updates for navi10 2019-06-20 15:54:48 -05:00
atomfirmwareid.h drm/amdgpu: add the new atomfirmware interface header 2017-03-29 23:54:15 -04:00
cgs_common.h drm/amdgpu: remove duplicate cg/pg wrapper functions 2018-04-11 13:07:53 -05:00
cik_structs.h drm/amdkfd: Shift sdma_engine_id and sdma_queue_id in mqd 2019-05-24 12:21:01 -05:00
discovery.h drm/amdgpu/discovery: add ip discovery initial support 2019-06-21 18:58:21 -05:00
displayobject.h drm/amdgpu: add the new atomfirmware interface header 2017-03-29 23:54:15 -04:00
dm_pp_interface.h drm/amd/pp: Remove the same struct define in powerplay 2018-07-05 16:40:02 -05:00
kgd_kfd_interface.h drm/amdkfd: Expose HDP registers to user space 2019-05-24 12:20:47 -05:00
kgd_pp_interface.h drm/amd/powerplay: expose Vega20 realtime memory utilization 2019-05-24 12:20:48 -05:00
navi10_enum.h drm/amdgpu: add navi10 enums header 2019-06-20 15:54:46 -05:00
navi10_ip_offset.h drm/amdgpu: add navi10 ip offset header 2019-06-20 15:54:53 -05:00
pptable.h drm/amdgpu: add raven related define in pptable.h. 2017-05-24 17:41:50 -04:00
soc15_hw_ip.h drm/amdgpu: add navi10 ip offset header 2019-06-20 15:54:53 -05:00
soc15_ih_clientid.h drm/amdgpu/vg20:Add IH client ID for the 2nd UVD 2018-05-18 16:08:13 -05:00
v9_structs.h drm/amdkfd: Shift sdma_engine_id and sdma_queue_id in mqd 2019-05-24 12:21:01 -05:00
v10_structs.h drm/amdgpu: add v10 structs header (v2) 2019-06-20 21:16:37 -05:00
vega10_enum.h drm/amd/include:cleanup vega10 header files. 2017-12-06 12:48:22 -05:00
vega10_ip_offset.h drm/amdgpu: remove trailing whitespace from soc15ip.h 2018-03-14 16:01:18 -05:00
vega20_ip_offset.h drm/amd/include/vg20: adjust VCE_BASE to reuse vce 4.0 header files 2018-05-17 10:13:09 -05:00
vi_structs.h drm/amdkfd: Shift sdma_engine_id and sdma_queue_id in mqd 2019-05-24 12:21:01 -05:00