mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 11:33:36 -04:00
drm/amdgpu: Check RRMT status for JPEG v4.0.3
RRMT could get dynamically enabled/disabled by PSP firmware. Read the status from register for reading RRMT status. For VFs, this is not accessible, hence assume that it's always disabled for now. Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Sathishkumar S <sathishkumar.sundararaju@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -92,6 +92,12 @@
|
||||
*adev->jpeg.inst[inst_idx].dpg_sram_curr_addr++ = value; \
|
||||
} while (0)
|
||||
|
||||
enum amdgpu_jpeg_caps {
|
||||
AMDGPU_JPEG_RRMT_ENABLED,
|
||||
};
|
||||
|
||||
#define AMDGPU_JPEG_CAPS(caps) BIT(AMDGPU_JPEG_##caps)
|
||||
|
||||
struct amdgpu_jpeg_reg{
|
||||
unsigned jpeg_pitch[AMDGPU_MAX_JPEG_RINGS];
|
||||
};
|
||||
@@ -130,6 +136,7 @@ struct amdgpu_jpeg {
|
||||
uint8_t num_inst_per_aid;
|
||||
bool indirect_sram;
|
||||
uint32_t supported_reset;
|
||||
uint32_t caps;
|
||||
};
|
||||
|
||||
int amdgpu_jpeg_sw_init(struct amdgpu_device *adev);
|
||||
|
||||
Reference in New Issue
Block a user