mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
drm/amdgpu: Add sdma v7_1_0 support
Add SDMA ip block for SDMA v7_1_0. v2: squash in queue reset changes (Alex) v3: squash in version fix (Hawking) v4: squash in various fixes Signed-off-by: Likun Gao <Likun.Gao@amd.com> Acked-by: Le Ma <le.ma@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
268614ae41
commit
4ed5116aac
|
|
@ -171,7 +171,8 @@ amdgpu-y += \
|
||||||
sdma_v5_0.o \
|
sdma_v5_0.o \
|
||||||
sdma_v5_2.o \
|
sdma_v5_2.o \
|
||||||
sdma_v6_0.o \
|
sdma_v6_0.o \
|
||||||
sdma_v7_0.o
|
sdma_v7_0.o \
|
||||||
|
sdma_v7_1.o
|
||||||
|
|
||||||
# add MES block
|
# add MES block
|
||||||
amdgpu-y += \
|
amdgpu-y += \
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,10 @@ struct amdgpu_sdma_instance {
|
||||||
struct amdgpu_ring ring;
|
struct amdgpu_ring ring;
|
||||||
struct amdgpu_ring page;
|
struct amdgpu_ring page;
|
||||||
bool burst_nop;
|
bool burst_nop;
|
||||||
uint32_t aid_id;
|
union {
|
||||||
|
uint32_t aid_id;
|
||||||
|
uint32_t xcc_id;
|
||||||
|
};
|
||||||
|
|
||||||
struct amdgpu_bo *sdma_fw_obj;
|
struct amdgpu_bo *sdma_fw_obj;
|
||||||
uint64_t sdma_fw_gpu_addr;
|
uint64_t sdma_fw_gpu_addr;
|
||||||
|
|
@ -123,7 +126,10 @@ struct amdgpu_sdma {
|
||||||
|
|
||||||
int num_instances;
|
int num_instances;
|
||||||
uint32_t sdma_mask;
|
uint32_t sdma_mask;
|
||||||
int num_inst_per_aid;
|
union {
|
||||||
|
int num_inst_per_aid;
|
||||||
|
int num_inst_per_xcc;
|
||||||
|
};
|
||||||
uint32_t srbm_soft_reset;
|
uint32_t srbm_soft_reset;
|
||||||
bool has_page_queue;
|
bool has_page_queue;
|
||||||
struct ras_common_if *ras_if;
|
struct ras_common_if *ras_if;
|
||||||
|
|
|
||||||
1836
drivers/gpu/drm/amd/amdgpu/sdma_v7_1.c
Normal file
1836
drivers/gpu/drm/amd/amdgpu/sdma_v7_1.c
Normal file
File diff suppressed because it is too large
Load Diff
30
drivers/gpu/drm/amd/amdgpu/sdma_v7_1.h
Normal file
30
drivers/gpu/drm/amd/amdgpu/sdma_v7_1.h
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2025 Advanced Micro Devices, Inc.
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
|
* to deal in the Software without restriction, including without limitation
|
||||||
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
|
* and/or sell copies of the Software, and to permit persons to whom the
|
||||||
|
* Software is furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in
|
||||||
|
* all copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
|
* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||||
|
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||||
|
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||||
|
* OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __SDMA_V7_1_H__
|
||||||
|
#define __SDMA_V7_1_H__
|
||||||
|
|
||||||
|
extern const struct amd_ip_funcs sdma_v7_1_ip_funcs;
|
||||||
|
extern const struct amdgpu_ip_block_version sdma_v7_1_ip_block;
|
||||||
|
|
||||||
|
#endif /* __SDMA_V7_1_H__ */
|
||||||
Loading…
Reference in New Issue
Block a user