Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu/jpeg: Add jpeg block ras support

Ras support addition for JPEG block

V2: removed default callback

Signed-off-by: Mohammad Zafar Ziya <Mohammadzafar.ziya@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Mohammad Zafar Ziya and committed by
Alex Deucher
edd08fa1 60fce741

+8
+8
drivers/gpu/drm/amd/amdgpu/amdgpu_jpeg.h
··· 24 24 #ifndef __AMDGPU_JPEG_H__ 25 25 #define __AMDGPU_JPEG_H__ 26 26 27 + #include "amdgpu_ras.h" 28 + 27 29 #define AMDGPU_MAX_JPEG_INSTANCES 2 28 30 29 31 #define AMDGPU_JPEG_HARVEST_JPEG0 (1 << 0) ··· 41 39 struct amdgpu_jpeg_reg external; 42 40 }; 43 41 42 + struct amdgpu_jpeg_ras { 43 + struct amdgpu_ras_block_object ras_block; 44 + }; 45 + 44 46 struct amdgpu_jpeg { 45 47 uint8_t num_jpeg_inst; 46 48 struct amdgpu_jpeg_inst inst[AMDGPU_MAX_JPEG_INSTANCES]; ··· 54 48 enum amd_powergating_state cur_state; 55 49 struct mutex jpeg_pg_lock; 56 50 atomic_t total_submission_cnt; 51 + struct ras_common_if *ras_if; 52 + struct amdgpu_jpeg_ras *ras; 57 53 }; 58 54 59 55 int amdgpu_jpeg_sw_init(struct amdgpu_device *adev);