Alex Hung
ea79068d40
drm/amd/display: Check denominator crb_pipes before used
...
[WHAT & HOW]
A denominator cannot be 0, and is checked before used.
This fixes 2 DIVIDE_BY_ZERO issues reported by Coverity.
Reviewed-by: Harry Wentland <harry.wentland@amd.com >
Signed-off-by: Jerry Zuo <jerry.zuo@amd.com >
Signed-off-by: Alex Hung <alex.hung@amd.com >
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-07-01 16:06:53 -04:00
Joan Lee
d2c5cb0c35
drm/amd/display: Enable Replay for DCN315
...
[why & how]
Enable Replay for DCN315.
Reviewed-by: Robin Chen <robin.chen@amd.com >
Acked-by: Wayne Lin <wayne.lin@amd.com >
Signed-off-by: Joan Lee <joan.lee@amd.com >
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-04-30 09:57:11 -04:00
Hersen Wu
8e65a1b711
drm/amd/display: Add NULL pointer check for kzalloc
...
[Why & How]
Check return pointer of kzalloc before using it.
Reviewed-by: Alex Hung <alex.hung@amd.com >
Acked-by: Wayne Lin <wayne.lin@amd.com >
Signed-off-by: Hersen Wu <hersenxs.wu@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2024-04-26 17:22:43 -04:00
Dmytro Laktyushkin
2e58320090
drm/amd/display: block dcn315 dynamic crb allocation when unintended
...
[WHY/HOW]
Limit the dynamic crb to dual stream configs that include eDP
Reviewed-by: Charlene Liu <charlene.liu@amd.com >
Acked-by: Tom Chung <chiahsuan.chung@amd.com >
Signed-off-by: Dmytro Laktyushkin <dmytro.laktyushkin@amd.com >
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2023-11-29 16:49:23 -05:00
Mounika Adhuri
8b8eed05a1
drm/amd/display: Refactor resource into component directory
...
[WHY]
Move all resource files to unique folder resource.
[HOW]
Created resource folder in dc, moved the
dcnxx_resource.c and dcnxx_resource.h files into
corresponding new folders inside the resource and
made appropriate changes for compilation in Makefiles.
Reviewed-by: Martin Leung <martin.leung@amd.com >
Acked-by: Alex Hung <alex.hung@amd.com >
Signed-off-by: Mounika Adhuri <moadhuri@amd.com >
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
2023-11-17 09:30:50 -05:00