summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorDavid Galiffi <David.Galiffi@amd.com>2022-07-22 22:03:13 +0200
committerAlex Deucher <alexander.deucher@amd.com>2022-08-10 21:30:06 +0200
commitdd07556324ece81f0d2be756508903d53e331e9e (patch)
tree416e914befbe9b341c216f99215071ebb8f6262f /drivers/gpu/drm
parentdrm/amd/display: Allow alternate prefetch modes in DML for DCN32 (diff)
downloadlinux-dd07556324ece81f0d2be756508903d53e331e9e.tar.xz
linux-dd07556324ece81f0d2be756508903d53e331e9e.zip
drm/amd/display: Fix Compile-time Warning
Fixed bracketing around condition statement. Reviewed-by: Alvin Lee <alvin.lee2@amd.com> Reviewed-by: Jun Lei <Jun.Lei@amd.com> Acked-by: Tom Chung <chiahsuan.chung@amd.com> Signed-off-by: David Galiffi <David.Galiffi@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c b/drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
index 49b8738b0318..79959254d57c 100644
--- a/drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
+++ b/drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
@@ -1383,9 +1383,9 @@ bool dcn32_internal_validate_bw(struct dc *dc,
}
if (fast_validate ||
- dc->debug.dml_disallow_alternate_prefetch_modes &&
+ (dc->debug.dml_disallow_alternate_prefetch_modes &&
(vlevel == context->bw_ctx.dml.soc.num_states ||
- vba->DRAMClockChangeSupport[vlevel][vba->maxMpcComb] == dm_dram_clock_change_unsupported)) {
+ vba->DRAMClockChangeSupport[vlevel][vba->maxMpcComb] == dm_dram_clock_change_unsupported))) {
/*
* If dml_disallow_alternate_prefetch_modes is false, then we have already
* tried alternate prefetch modes during full validation.