aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
Commit message (Collapse)AuthorAgeFilesLines
...
| * drm/amdgpu/discovery: add SMU 14 supportLi Ma2023-10-131-0/+3
| | | | | | | | | | | | | | add smu 14 into the IP discovery list. Signed-off-by: Li Ma <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
| * drm/amdgpu/discovery: enable DCN 3.5.0 supportAaron Liu2023-10-091-0/+1
| | | | | | | | | | | | | | Enable DCN 3.5.0 support. Signed-off-by: Aaron Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
| * drm/amdgpu: Add more fields to IP versionLijo Lazar2023-09-201-3/+17
| | | | | | | | | | | | | | | | Include subrevision and variant fileds also to IP version. Signed-off-by: Lijo Lazar <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
| * drm/amdgpu: Use function for IP version checkLijo Lazar2023-09-201-47/+45
| | | | | | | | | | | | | | | | | | Use an inline function for version check. Gives more flexibility to handle any format changes. Signed-off-by: Lijo Lazar <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
| * drm/amdgpu: add type conversion for gc infoYifan Zhang2023-09-111-3/+3
| | | | | | | | | | | | | | | | | | gc info usage misses type conversion. Acked-by: Alex Deucher <[email protected]> Signed-off-by: Yifan Zhang <[email protected]> Reviewed-by: Li Ma <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
| * drm/amdgpu: add amdgpu_umsch_mm module parameterLang Yu2023-08-311-2/+4
| | | | | | | | | | | | | | | | | | | | Enable Multi Media User Mode Scheduler (0 = disabled (default), 1 = enabled). Signed-off-by: Lang Yu <[email protected]> Acked-by: Leo Liu <[email protected]> Reviewed-by: Veerabadhran Gopalakrishnan <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
| * drm/amdgpu/discovery: enable UMSCH 4.0 in IP discoveryLang Yu2023-08-311-0/+18
| | | | | | | | | | | | | | | | | | Enable UMSCH to support VPE and VCN user queues. Signed-off-by: Lang Yu <[email protected]> Reviewed-by: Leo Liu <[email protected]> Reviewed-by: Veerabadhran Gopalakrishnan <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
| * drm/amdgpu/discovery: add VCN 4.0.5 SupportSaleemkhan Jamadar2023-08-311-0/+6
| | | | | | | | | | | | | | | | Enable VCN 4.0.5 on gc 11_5_0. Signed-off-by: Saleemkhan Jamadar <[email protected]> Acked-by: Leo Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
| * drm/amdgpu: enable VPE for VPE 6.1.0Lang Yu2023-08-311-0/+19
| | | | | | | | | | | | | | | | Enable Video Processing Engine on SoCs that contain VPE 6.1.0. Signed-off-by: Lang Yu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
| * drm/amdgpu: add HWID for VPELang Yu2023-08-311-0/+2
| | | | | | | | | | | | | | Add HWID for Video Processing Engine. Signed-off-by: Lang Yu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
| * drm/amdgpu: enable gmc11 for GC 11.5.0Prike Liang2023-08-301-0/+1
| | | | | | | | | | | | | | Add to IP discovery table. Signed-off-by: Prike Liang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
| * drm/amdgpu/discovery: enable gfx11 for GC 11.5.0Prike Liang2023-08-301-0/+1
| | | | | | | | | | | | | | Add to IP discovery table. Signed-off-by: Prike Liang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
| * drm/amdgpu/discovery: enable mes block for gc 11.5.0Lang Yu2023-08-301-0/+1
| | | | | | | | | | | | | | Add to IP discovery table. Signed-off-by: Lang Yu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
| * drm/amdgpu/discovery: add nbio 7.11.0 supportPrike Liang2023-08-301-0/+5
| | | | | | | | | | | | | | Add to IP discovery table. Signed-off-by: Prike Liang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
| * drm/amdgpu/discovery: enable soc21 supportPrike Liang2023-08-301-0/+1
| | | | | | | | | | | | | | Add 11.5.0 to IP discovery table. Signed-off-by: Prike Liang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
| * drm/amdgpu: add new AMDGPU_FAMILY definitionPrike Liang2023-08-301-0/+4
| | | | | | | | | | | | | | add GC 11.5.0 family Signed-off-by: Prike Liang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
| * drm/amdgpu: update gc_info v2_1 from discoveryLe Ma2023-08-301-0/+10
| | | | | | | | | | | | | | | | | | | | Several new fields are exposed in gc_info v2_1 Signed-off-by: Le Ma <[email protected]> Reviewed-by: Shiwu Zhang <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
| * drm/amdgpu: update mall info v2 from discoveryLe Ma2023-08-301-0/+5
| | | | | | | | | | | | | | | | | | | | Mall info v2 is introduced in ip discovery Signed-off-by: Le Ma <[email protected]> Reviewed-by: Shiwu Zhang <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* | Merge drm/drm-next into drm-misc-nextThomas Zimmermann2023-10-111-0/+23
|\ \ | | | | | | | | | | | | | | | Updating drm-misc-next to the state of Linux v6.6-rc2. Signed-off-by: Thomas Zimmermann <[email protected]>
| * | drm/amdgpu: update gc_info v2_1 from discoveryLe Ma2023-08-311-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Several new fields are exposed in gc_info v2_1 Signed-off-by: Le Ma <[email protected]> Reviewed-by: Shiwu Zhang <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
| * | drm/amdgpu: update mall info v2 from discoveryLe Ma2023-08-311-0/+5
| |/ | | | | | | | | | | | | | | | | | | Mall info v2 is introduced in ip discovery Signed-off-by: Le Ma <[email protected]> Reviewed-by: Shiwu Zhang <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
| * drm/amdgpu/discovery: add ih 6.1.0 supportPrike Liang2023-08-071-0/+4
| | | | | | | | | | | | | | Add to IP discovery table. Signed-off-by: Prike Liang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
| * drm/amdgpu/discovery: add smuio 14.0.0 supportPrike Liang2023-08-071-0/+1
| | | | | | | | | | | | | | Add to IP discovery table. Signed-off-by: Prike Liang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
| * drm/amdgpu/discovery: add hdp 6.1.0 supportPrike Liang2023-08-071-0/+1
| | | | | | | | | | | | | | Add to IP discovery table. Signed-off-by: Prike Liang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
| * drm/amdgpu/discovery: enable sdma6 for SDMA 6.1.0Prike Liang2023-08-071-0/+1
| | | | | | | | | | | | | | Add to IP discovery table. Signed-off-by: Prike Liang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
| * drm/amdgpu/discovery: enable PSP 14.0.0 supportLi Ma2023-07-271-0/+1
| | | | | | | | | | | | | | Add it to IP discovery. Signed-off-by: Li Ma <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* | drm/amdgpu/discovery: Annotate struct ip_hw_instance with __counted_byKees Cook2023-10-051-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | Prepare for the coming implementation by GCC and Clang of the __counted_by attribute. Flexible array members annotated with __counted_by can have their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS (for array indexing) and CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family functions). As found with Coccinelle[1], add __counted_by for struct ip_hw_instance. [1] https://github.com/kees/kernel-tools/blob/trunk/coccinelle/examples/counted_by.cocci Cc: Alex Deucher <[email protected]> Cc: "Christian König" <[email protected]> Cc: "Pan, Xinhui" <[email protected]> Cc: David Airlie <[email protected]> Cc: Daniel Vetter <[email protected]> Cc: Hawking Zhang <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Kees Cook <[email protected]> Acked-by: Alex Deucher <[email protected]> Reviewed-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Christian König <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
* drm/amdgpu: mark GC 9.4.3 experimental for nowAlex Deucher2023-06-151-0/+2
| | | | | | | | | Mark as experimental for now until we get closer to production to avoid possible undesireable behavior when mixing newer boards with older kernels. Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: Update total channel number for umc v8_10Candice Li2023-06-151-0/+1
| | | | | | | | Update total channel number for umc v8_10. Signed-off-by: Candice Li <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: set the APU flag based on package typeShiwu Zhang2023-06-091-0/+3
| | | | | | | | | | | | Since currently APU and dGPU share the same pcie class while gmc init needs the flag to set up correctly for upcomming memory allocations v2: call get_pkg_type in smuio 13_0_3 is enough (hawking) Signed-off-by: Shiwu Zhang <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add the smu_v13_0_6 and gfx_v9_4_3 ip blockShiwu Zhang2023-06-091-0/+5
| | | | | | Signed-off-by: Shiwu Zhang <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: Fix harvest reporting of VCNLijo Lazar2023-06-091-1/+2
| | | | | | | | Use VCN instance mask to check if an instance is harvested or not. Signed-off-by: Lijo Lazar <[email protected]> Reviewed-by: James Zhu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: Add instance mask for VCN and JPEGLijo Lazar2023-06-091-4/+26
| | | | | | | | | | Keep an instance mask formed by physical instance numbers for VCN and JPEG IPs. Populate the mask from discovery table information. Signed-off-by: Lijo Lazar <[email protected]> Acked-by: Leo Liu <[email protected]> Tested-by: James Zhu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: Fix discovery sys node harvest infoLijo Lazar2023-06-091-3/+38
| | | | | | | | | Initalize syfs nodes after harvest information is fetched and fetch the correct harvest info based on each IP instance. Signed-off-by: Lijo Lazar <[email protected]> Reviewed-by: Le Ma <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: Add fallback path for discovery infoLijo Lazar2023-06-091-5/+16
| | | | | | | | | | | If SOC doesn't expose dedicated vram, discovery region may be available through system memory. Rename the existing interface to generic read_binary_from_mem and add a fallback path to read from system memory. Signed-off-by: Lijo Lazar <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: Read discovery info from system memoryLijo Lazar2023-06-091-0/+23
| | | | | | | | | | On certain ASICs, discovery info is available at reserved region in system memory. The location is available through ACPI interface. Add API to read discovery info from there. Signed-off-by: Lijo Lazar <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: Populate VCN/JPEG harvest informationLijo Lazar2023-06-091-4/+4
| | | | | | | | | Certain instances of VCN/JPEG IPs may not be usable. Fetch the information from harvest table. Signed-off-by: Lijo Lazar <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: enable vcn/jpeg on vcn_v4_0_3James Zhu2023-06-091-1/+7
| | | | | | | | Enable vcn/jpeg on vcn_v4_0_3. Signed-off-by: James Zhu <[email protected]> Acked-by Leo Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: Use discovery to get XCC/SDMA maskLijo Lazar2023-06-091-3/+22
| | | | | | | | | Get information about active XCC and SDMAs from discovery table. Signed-off-by: Lijo Lazar <[email protected]> Reviewed-by: Le Ma <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: Make VRAM discovery read optionalLijo Lazar2023-06-091-16/+15
| | | | | | | | | When overridden with module param, directly read discovery info from discovery binary instead of reading from VRAM. Signed-off-by: Lijo Lazar <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: Remove unnecessary return value checkLijo Lazar2023-06-091-8/+2
| | | | | | | | | There is no need to check return value, as the function internally used - amdgpu_discovery_read_binary_from_vram() - returns void. Signed-off-by: Lijo Lazar <[email protected]> Reviewed-by: Le Ma <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: Add soc config init for GC9.4.3 ASICsLijo Lazar2023-06-091-3/+3
| | | | | | | | | | | | | Add function to initialize soc configuration information for GC 9.4.3 ASICs. Use it to map IPs and other SOC related information once IP configuration information is available through discovery. For GC9.4.3 compute partition related callbacks are initialized as part of configuration init. Signed-off-by: Lijo Lazar <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: init smuio funcs for smuio v13_0_3Hawking Zhang2023-06-091-0/+4
| | | | | | | | Add callbacks for SMUIO 13.0.3 Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Le Ma <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: parse base address from new ip discovery with 64bit ip base addressLe Ma2023-06-091-9/+40
| | | | | | | | | | | | | | | | Truncate the 64bit base address from ip discovery and only store lower 32bit ip base in reg_offset[]. Bits > 32 follows ASIC specific format, thus just discard them and handle it within specific ASIC. By this way reg_offset[] and related helpers can stay unchanged. v2: make comments more generic Signed-off-by: Le Ma <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: upgrade amdgpu_discovery struct ip to ip_v4Le Ma2023-06-091-17/+17
| | | | | | | | version 4 supports 64bit ip base address Signed-off-by: Le Ma <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: Add IP instance map for aqua vanjaramLijo Lazar2023-06-091-0/+13
| | | | | | | | | | | | | | Add XCC logical to physical instance map for aqua vanjaram v2: Keep look up table only for required IPs, for others return default mapping (Felix). Signed-off-by: Lijo Lazar <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Reviewed-by: Le Ma <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: drop unused functionAlex Deucher2023-06-091-48/+0
| | | | | | | | | | amdgpu_discovery_get_ip_version() has not been used since commit c40bdfb2ffa4 ("drm/amdgpu: fix incorrect VCN revision in SRIOV") so drop it. Reviewed-by: Luben Tuikov <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: drop invalid IP revisionAlex Deucher2023-06-091-1/+0
| | | | | | | | | | | This was already fixed and dropped in: commit baf3f8f37406 ("drm/amdgpu: handle SRIOV VCN revision parsing") commit c40bdfb2ffa4 ("drm/amdgpu: fix incorrect VCN revision in SRIOV") But seems to have been accidently been left around in a merge. Reviewed-by: Luben Tuikov <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/amdgpu: Fix style issues in amdgpu_discovery.cSrinivasan Shanmugam2023-04-211-4/+4
| | | | | | | | | | | | | | | Fix following checkpatch errors in amdgpu_discovery.c ERROR: space required after that ',' (ctx:VxV) ERROR: space required before the open parenthesis '(' ERROR: code indent should use tabs where possible Cc: Christian König <[email protected]> Cc: Alex Deucher <[email protected]> Cc: Mario Limonciello <[email protected]> Signed-off-by: Srinivasan Shanmugam <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu: add common ip block for GC 9.4.3Hawking Zhang2023-04-141-0/+1
| | | | | | | | Add common IP handling for GC 9.4.3 Signed-off-by: Hawking Zhang <[email protected]> Reviewed-by: Le Ma <[email protected]> Signed-off-by: Alex Deucher <[email protected]>