pointer check for get_first_active_display() and return
MOD_HDCP_STATUS_DISPLAY_NOT_FOUND if the function return null.
Fixes: 2deade5ede56 ("drm/amd/display: Remove hdcp display state with mst fix")
Cc: sta...@vger.kernel.org # v5.8
Signed-off-by: Wentao Liang
---
drivers/gpu/drm/amd/displ
: cc8dbbb4f62a ("drm/radeon: add dpm support for CI dGPUs (v2)")
Cc: sta...@vger.kernel.org # v3.12
Signed-off-by: Wentao Liang
---
drivers/gpu/drm/radeon/ci_dpm.c | 9 ++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/radeon/ci_dpm.c b/drivers/gpu/drm/radeo
ci_send_msg_to_smc_with_parameter(), return
-EINVAL if the sending fails.
Fixes: cc8dbbb4f62a ("drm/radeon: add dpm support for CI dGPUs (v2)")
Cc: sta...@vger.kernel.org # v3.12
Signed-off-by: Wentao Liang
---
drivers/gpu/drm/radeon/ci_dpm.c | 13 ++---
1 file changed, 10 insertions(+), 3 deletion
this change keeps the usage consistent within
amdgpu_ras_do_page_retirement(), which also does not check the return
value.
Fixes: 5b1270beb380 ("drm/amdgpu: add ras_err_info to identify RAS error
source")
Cc: sta...@vger.kernel.org # 6.7+
Signed-off-by: Wentao Liang
---
v2: Add a mi
this change keeps the usage consistent with
amdgpu_ras_do_page_retirement(), which also does not check the return
value.
Fixes: 5b1270beb380 ("drm/amdgpu: add ras_err_info to identify RAS error
source")
Cc: sta...@vger.kernel.org # 6.7+
Signed-off-by: Wentao Liang
---
drivers/gpu
function to fix this issue.
Fixes: 8aa1e1e60553 ("habanalabs: add gaudi2 MMU support")
Cc: sta...@vger.kernel.org # v6.0+
Signed-off-by: Wentao Liang
---
drivers/accel/habanalabs/common/mmu/mmu_v2_hr.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/drivers/accel/habanalabs/
. Add dp_decide_lane_settings()
to enable adaptive lane configuration.
Fixes: 630168a97314 ("drm/amd/display: move dp link training logic to
link_dp_training")
Cc: sta...@vger.kernel.org # 6.3+
Signed-off-by: Wentao Liang
---
.../amd/display/dc/link/protocols/link_dp_training_128b_132b.c
v5.6+
Signed-off-by: Wentao Liang
---
.../drm/amd/pm/powerplay/smumgr/vegam_smumgr.c| 15 ++-
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/amd/pm/powerplay/smumgr/vegam_smumgr.c
b/drivers/gpu/drm/amd/pm/powerplay/smumgr/vegam_smumgr.c
index 34c9f5
rplay/smumgr/fiji_smumgr: Remove unused
variable 'result'")
Cc: sta...@vger.kernel.org # v5.11+
Signed-off-by: Wentao Liang
---
v2: Fix error code.
.../drm/amd/pm/powerplay/smumgr/fiji_smumgr.c | 23 ++-
1 file changed, 17 insertions(+), 6 deletions(-)
diff --g
function to fix this issue.
Fixes: 8aa1e1e60553 ("habanalabs: add gaudi2 MMU support")
Cc: sta...@vger.kernel.org # v6.0+
Signed-off-by: Wentao Liang
---
drivers/accel/habanalabs/common/mmu/mmu_v2_hr.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/drivers/accel/habanalabs/
implementation can be found in tonga_populate_smc_boot_level().
Fixes: dcaf3483ae46 ("drm/amd/pm/powerplay/smumgr/fiji_smumgr: Remove unused
variable 'result'")
Signed-off-by: Wentao Liang
---
.../drm/amd/pm/powerplay/smumgr/fiji_smumgr.c | 23 +--
1 file changed,
.
Signed-off-by: Wentao Liang
---
v3: Fix error-logging function error
v2: Fix code diff error
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 13 +++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
b/drivers/gpu/drm
.
Signed-off-by: Wentao Liang
---
v2: Fix code diff error
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 13 +++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
.
Signed-off-by: Wentao Liang
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index 0396429a64be..d6feafb8fa3d 100644
. Add dp_decide_lane_settings()
to enable adaptive lane configuration.
Fixes: 630168a97314 ("drm/amd/display: move dp link training logic to
link_dp_training")
Cc: sta...@vger.kernel.org # 6.3+
Signed-off-by: Wentao Liang
---
.../amd/display/dc/link/protocols/link_dp_training_128b_132b.c
implementation can be found in tonga_populate_smc_boot_level().
Fixes: dcaf3483ae46 ("drm/amd/pm/powerplay/smumgr/fiji_smumgr: Remove unused
variable 'result'")
Signed-off-by: Wentao Liang
---
.../drm/amd/pm/powerplay/smumgr/fiji_smumgr.c | 23 +--
1 file changed,
function to fix this issue.
Fixes: 8aa1e1e60553 ("habanalabs: add gaudi2 MMU support")
Cc: sta...@vger.kernel.org # v6.0+
Signed-off-by: Wentao Liang
---
drivers/accel/habanalabs/common/mmu/mmu_v2_hr.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/drivers/accel/habanalabs/
.
Fixes: 52cb80c12e8a ("drm/amdgpu: Add gfx v12_0 ip block support (v6)")
Cc: sta...@vger.kernel.org # 6.11+
Signed-off-by: Wentao Liang
---
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
Add error handling to propagate amdgpu_cgs_create_device() failures
to the caller. When amdgpu_cgs_create_device() fails, release hwmgr
and return -ENOMEM to prevent null pointer dereference.
[v1]->[v2]: Change error code from -EINVAL to -ENOMEM. Free hwmgr.
Signed-off-by: Wentao Li
drm_edid_connector_update() function with
a NULL drm_edid as an argument. This ensures that operations such
as connector settings are performed in its callee function,
_drm_edid_connector_property_update. To maintain the integrity of
the operation, redundant error handling needs to be removed.
Signed-off-by: Wentao
implementation can be found in `vidi_get_modes()`, where the
return values are carefully validated, and the function returns 0 upon
failure.
Fixes: 98365ca74cbf ("drm/tegra: convert to struct drm_edid")
Cc: sta...@vger.kernel.org # 6.12+
Signed-off-by: Wentao Liang
---
drivers/gpu/drm/tegra/ou
Add error handling to propagate amdgpu_cgs_create_device() failures
to the caller. When amdgpu_cgs_create_device() fails, immediately
return -EINVAL to stop further processing and prevent null pointer
dereference.
Signed-off-by: Wentao Liang
---
drivers/gpu/drm/amd/pm/powerplay/amd_powerplay.c
: 62cdc0c20663 ("drm/radeon/kms: Workaround RV410/R420 CP errata (V3)")
Cc: sta...@vger.kernel.org # 2.6.33+
Signed-off-by: Wentao Liang
---
drivers/gpu/drm/radeon/r420.c | 15 +++
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/radeon/r420.c b/d
: 62cdc0c20663 ("drm/radeon/kms: Workaround RV410/R420 CP errata (V3)")
Cc: sta...@vger.kernel.org # 2.6.33+
Signed-off-by: Wentao Liang
---
drivers/gpu/drm/radeon/r420.c | 15 +++
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/radeon/r420.c b/drive
returns an error if it is NULL, preventing the NULL pointer
dereference.
Fixes: 544460c33821 ("drm/i915: Multi-BB execbuf")
Cc: sta...@vger.kernel.org # 5.16+
Signed-off-by: Wentao Liang
---
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 6 ++
1 file changed, 6 insertions(+)
di
this change keeps the usage consistent with
amdgpu_ras_do_page_retirement(), which also does not check the return
value.
Fixes: 5b1270beb380 ("drm/amdgpu: add ras_err_info to identify RAS error
source")
Cc: sta...@vger.kernel.org # 6.7+
Signed-off-by: Wentao Liang
---
drivers/gpu
26 matches
Mail list logo