mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 11:33:28 +02:00
drm/amd/display: Handle the case which quad_part is equal 0
Add code to handle case when quad_part is 0 in gpu_addr_to_uma(). Acked-by: Wayne Lin <wayne.lin@amd.com> Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
97da9c7d8f
commit
02fb803db1
|
|
@ -95,8 +95,11 @@ static bool gpu_addr_to_uma(struct dce_hwseq *hwseq,
|
|||
} else if (hwseq->fb_offset.quad_part <= addr->quad_part &&
|
||||
addr->quad_part <= hwseq->uma_top.quad_part) {
|
||||
is_in_uma = true;
|
||||
} else if (addr->quad_part == 0) {
|
||||
is_in_uma = false;
|
||||
} else {
|
||||
is_in_uma = false;
|
||||
BREAK_TO_DEBUGGER();
|
||||
}
|
||||
return is_in_uma;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user