being disabled by this pragma is GCC specific. Guard its use
with CONFIG_CC_IS_GCC so that it is not used with clang to clear up the
error.
Cc: Hamza Mahfooz
Cc: Rodrigo Siqueira
Cc: Harry Wentland
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan Shanmugam
---
v2:
- Alternate Solution 2: for
u.c:688: warning: Function parameter or member
'pipe_cnt' not described in
'dcn30_find_dummy_latency_index_for_fw_based_mclk_switch'
display/dc/dml/dcn30/dcn30_fpu.c:688: warning: Function parameter or member
'vlevel' not described in
'dcn30_find_dummy_latency_index_for_fw_based_mclk_switch'
Cc: Rod
-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
* There are (MAX_OPTC+1)/2 gsl groups available for use.
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Cc: Harry Wentland
Signed-off-by: Srinivasan Shanmugam
---
.../gpu/drm/amd/display/dc/dcn20/dcn20_optc.c | 17 -
1 fi
u.c:688: warning: Function parameter or member
'pipe_cnt' not described in
'dcn30_find_dummy_latency_index_for_fw_based_mclk_switch'
display/dc/dml/dcn30/dcn30_fpu.c:688: warning: Function parameter or member
'vlevel' not described in
'dcn30_find_dummy_latency_index_for_fw_based_mclk_switch'
Cc: Rodri
tch(struct amdgpu_device *adev,
uint32_t watch_id)
CHECK: Alignment should match open parenthesis +static uint32_t
kgd_gfx_v11_clear_address_watch(struct amdgpu_device *adev, uint32_t
watch_id)
Cc: Felix Kuehling
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drive
indo Pillai
Cc: Harry Wentland
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_optc.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_optc.c
b/drivers/gpu/drm/amd/display/dc/dcn32/dcn
unction parameter or member 'enable' not described in
'optc3_set_timing_double_buffer'
Cc: Harry Wentland
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_optc.c | 3 +++
1 file changed, 3 inserti
ay/dc/dcn10/dcn10_opp.c:183: warning: This comment starts with '/**', but
isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
* Set Clamping
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Cc: Harry Wentland
Signed-off-by: Srinivasan Shanmugam
---
.../gp
Cc: Harry Wentland
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/display/dc/core/dc.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c
b/drivers/gpu/drm/amd/display/dc/core/dc.c
index 172bae983425..5e18fc0c79d6 100644
--- a/d
mdgpu/../display/dc/core/dc.c:3538:2: note: previous
statement is here
if (dc->debug.visual_confirm)
^
'Fixes: 25e1a6115fc2e ("drm/amd/display: Refactor fast update to use new
HWSS build sequence")'
Cc: Stylon Wang
Cc: Alvin Lee
Cc: Jun Lei
Cc: Rodr
:2: note: previous
statement is here
if (dc->debug.visual_confirm)
^
'Fixes: 25e1a6115fc2e ("drm/amd/display: Refactor fast update to use new
HWSS build sequence")'
Suggested-by: Alvin Lee
Cc: Stylon Wang
Cc: Alvin Lee
Cc: Jun Lei
Cc: Rodrigo Siqueira
es: 7077b19a38240 ("drm/amd/pm: use macro to get pptable members")'
Cc: Chengming Gui
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --gi
n König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
v2:
- turned to the way used for nv1x (Evan)
.../amd/pm/swsmu/smu11/sienna_cichlid_ppt.c| 18 ++
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichli
m.c:98: warning: This comment starts
with '/**', but isn't a kernel-doc comment. Refer
Documentation/doc-guide/kernel-doc.rst
* EEPROM Table structrue v2.1
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom
:
Cannot understand *
Cc: Stylon Wang
Cc: Hamza Mahfooz
Cc: Rodrigo Siqueira
Cc: Harry Wentland
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan Shanmugam
---
.../gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c | 14 +-
1 file changed
radeon_atpx_validate_functions(). Prototype was for radeon_atpx_validate()
instead
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/radeon/radeon_acpi.h | 9 +
drivers/gpu/drm/radeon/radeon_atpx_handler.c | 2 +-
2 files changed, 10 insertions
nt. Refer Documentation/doc-guide/kernel-doc.rst
* Enable CRTC
display/dc/dcn10/dcn10_optc.c:895: warning: Cannot understand
*
on line 895 - I thought it was a doc line
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Cc: Harry Wentland
Signed-off-by: Srinivasan
32/dcn32_resource_helpers.c:676:
warning: Cannot understand *
*
Cc: Alvin Lee
Cc: Stylon Wang
Cc: Hamza Mahfooz
Cc: Rodrigo Siqueira
Cc: Harry Wentland
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan Shanmugam
Reviewed-by: Rodrigo Siqueira
---
.../display/dc/dcn32/dcn32_resource_helpe
*
***
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/display/dc/core/dc.c | 34 +++-
1 file changed, 15 insertions(+), 19 deletions(-)
diff --git a
not generally useful
WARNING: Block comments use * on subsequent lines
WARNING: Block comments use a trailing */ on a separate line
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
.../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 133 ++
: Bhawanpreet Lakha
Cc: Qingqing Zhuo
Cc: Nicholas Kazlauskas
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan Shanmugam
---
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
e, return
from function occurs. Therefore, there is no need in 'else', and it has
been removed.
Cc: Alex Deucher
Cc: Harry Wentland
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan Shanmugam
---
.../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 38 +--
1 file
e, return
from function occurs. Therefore, there is no need in 'else', and it has
been removed.
Cc: Alex Deucher
Cc: Harry Wentland
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan Shanmugam
---
.../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 38 +--
1 file
Replace seq_printf with seq_puts when there is no argument list.
Fix the checkpatch warning:
WARNING: Prefer seq_puts to seq_printf
Cc: Wayne Lin
Cc: Harry Wentland
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan Shanmugam
---
.../drm/amd/display/amdgpu_dm
Adhere to Linux kernel coding style.
Reported by checkpatch:
WARNING: braces {} are not necessary for single statement blocks
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c | 6 ++
1 file changed, 2
Adhere to Linux kernel coding style.
Reported by checkpatch:
WARNING: braces {} are not necessary for single statement blocks
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c | 6 ++
1 file changed, 2
Conform to Linux kernel coding style.
Reported by checkpatch:
WARNING: please, no space before tabs
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan Shanmugam
---
.../amd/display/amdgpu_dm/amdgpu_dm_hdcp.c| 40 +--
1 file changed, 20 insertions(+), 20
nsigned int' to bare use of 'unsigned'
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
.../drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c | 42 +++
1 file changed, 24 insertions(+), 18 deletions(-)
diff --git a/drivers
Conform to Linux kernel coding style.
Reported by checkpatch:
WARNING: please, no space before tabs
And promote sysfs entry for set/get srm to kdoc
Suggested-by: Rodrigo Siqueira
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan Shanmugam
---
v2:
- Promote sysfs entry
Fix the following warnings reported by checkpatch:
WARNING: Missing a blank line after declarations
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/a
using '"%s...", __func__' to using
'apply_synaptics_fifo_reset_wa', this function's name, in a string
WARNING: braces {} are not necessary for single statement blocks
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan Shanmugam
---
.../amd/display/amdg
Fixes the following category of checkpatch complaints:
WARNING: unnecessary cast may hide bugs, see
http://c-faq.com/malloc/mallocnocast.html
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 2 +-
1
Fixes the following category of checkpatch warning:
WARNING: msleep < 20ms can sleep for up to 20ms; see
Documentation/timers/timers-howto.rst
+ msleep(10);
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/display/amdgpu
ARIS10) &&
[...]
+ return true;
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan Shanmugam
---
.../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 11 ++-
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/amd/dis
Fixes the following category of checkpatch complaints:
WARNING: unnecessary cast may hide bugs, see
http://c-faq.com/malloc/mallocnocast.html
+ char *buf = (char *)kvcalloc(total, sizeof(char), GFP_KERNEL);
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan
ARIS10) &&
[...]
+ return true;
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan Shanmugam
---
v2:
- Corrected the indentdation for if statement.
.../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 11 ++-
1 file changed, 6 insertions(+), 5 dele
Fixes the following category of checkpatch complaints:
WARNING: unnecessary cast may hide bugs, see
http://c-faq.com/malloc/mallocnocast.html
+ char *buf = (char *)kvcalloc(total, sizeof(char), GFP_KERNEL);
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan
Conform to Linux kernel coding style.
Reported by checkpatch:
WARNING: please, no space before tabs
And promote sysfs entry for set/get srm to kdoc
Suggested-by: Rodrigo Siqueira
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan Shanmugam
---
.../amd/display/amdgpu_dm
dgpu_dm_pp_smu.c -> fixed code indentation in v2.
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Cc: Harry Wentland
Cc: Fangzhi Zuo
Srinivasan Shanmugam (6):
drm/amd/display: Remove unnecessary casts in amdgpu_dm_helpers.c
drm/amd/display: Remove spaces before tabs in amdgpu_dm_hdcp.c
drm/
Fixes the following category of checkpatch complaints:
WARNING: unnecessary cast may hide bugs, see
http://c-faq.com/malloc/mallocnocast.html
+ char *buf = (char *)kvcalloc(total, sizeof(char), GFP_KERNEL);
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan
ARIS10) &&
[...]
+ return true;
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan Shanmugam
---
.../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 11 ++-
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/amd/dis
Fixes the following category of checkpatch warning:
WARNING: msleep < 20ms can sleep for up to 20ms; see
Documentation/timers/timers-howto.rst
+ msleep(10);
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/display/amdgpu
Fix the following warnings reported by checkpatch:
WARNING: Missing a blank line after declarations
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/a
using '"%s...", __func__' to using
'apply_synaptics_fifo_reset_wa', this function's name, in a string
WARNING: braces {} are not necessary for single statement blocks
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan Shanmugam
---
.../amd/display/amdg
dgpu_dm_pp_smu.c -> fixed code indentation in v2.
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Cc: Harry Wentland
Cc: Fangzhi Zuo
Srinivasan Shanmugam (6):
drm/amd/display: Remove unnecessary casts in amdgpu_dm_helpers.c
drm/amd/display: Remove spaces before tabs in amdgpu_dm_hdcp.c
drm/
ARIS10) &&
[...]
+ return true;
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan Shanmugam
---
.../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 11 ++-
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/drivers/gpu/drm/amd/dis
Fixes the following category of checkpatch warning:
WARNING: msleep < 20ms can sleep for up to 20ms; see
Documentation/timers/timers-howto.rst
+ msleep(10);
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/display/amdgpu
Conform to Linux kernel coding style.
Reported by checkpatch:
WARNING: please, no space before tabs
And promote sysfs entry for set/get srm to kdoc
Suggested-by: Rodrigo Siqueira
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan Shanmugam
---
.../amd/display/amdgpu_dm
Fixes the following category of checkpatch complaints:
WARNING: unnecessary cast may hide bugs, see
http://c-faq.com/malloc/mallocnocast.html
+ char *buf = (char *)kvcalloc(total, sizeof(char), GFP_KERNEL);
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan
Fix the following warnings reported by checkpatch:
WARNING: Missing a blank line after declarations
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/a
using '"%s...", __func__' to using
'apply_synaptics_fifo_reset_wa', this function's name, in a string
WARNING: braces {} are not necessary for single statement blocks
Cc: Rodrigo Siqueira
Cc: Aurabindo Pillai
Signed-off-by: Srinivasan Shanmugam
---
.../amd/display/amdg
Srinivasan Shanmugam (6):
drm/amdgpu: Fix warnings in gfxhub_ v1_0, v1_2.c
drm/amdgpu: Fix warnings in gfxhub_v2_0.c
drm/amdgpu: Fix warnings in gfxhub_v2_1.c
drm/amdgpu: Fix warnings in gfxhub_ v3_0, v3_0_3.c
drm/amdgpu: Fix errors & warnings in gfx_v10_0.c
drm/amdgpu: Remove
comments should align the * on each line
+ /*
+ * Raven2 has a HW issue that it is unable to
use the
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
+ unsigned num_level, block_size;
Cc: Christian König
Cc: Alex Deucher
Signed-o
e after declarations
+ u32 tmp;
+ tmp = RREG32_SOC15(GC, 0, mmGCVM_L2_PROTECTION_FAULT_CNTL);
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/gfxhub_v2_0.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/driver
t blocks
+ if (!time) {
+ DRM_WARN("failed to wait for GRBM(EA) idle\n");
+ }
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/gfxhub_v2_1.c | 9 +
1 file changed, 5 insertions(+), 4 deletions(-)
dif
y should probably be static const char * const
+static const char *gfxhub_client_ids[] = {
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
+ unsigned i;
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/gfxhu
t lines
WARNING: braces {} are not necessary for any arm of this statement
WARNING: Missing a blank line after declarations
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 173 +
1 file changed, 90
König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
index 157dd33ec43a..19db20e24761
Srinivasan Shanmugam (6):
drm/amdgpu: Fix warnings in gmc_v10_0.c
drm/amdgpu: Fix warnings in gmc_v11_0.c
drm/amdgpu: Fix errors & warnings in gmc_ v6_0, v7_0.c
drm/amdgpu: Fix error & warnings in gmc_v8_0.c
drm/amdgpu: Remove else after return statement in
'gmc_v8_0_che
Fix below checkpatch warnings:
WARNING: Consider removing the code enclosed by this #if 0 and its #endif
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
WARNING: quoted string split across lines
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmug
ment
WARNING: Block comments use * on subsequent lines
WARNING: Missing a blank line after declarations
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/am
tian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c | 30 --
1 file changed, 14 insertions(+), 16 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
b/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
index c68ecb
each line
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 78 ---
1 file changed, 33 insertions(+), 45 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
b/drivers/gpu/drm/amd/amdgpu/gmc_
Fix below checkpatch warnings:
WARNING: else is not generally useful after a break or return
+ return true;
+ } else {
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 8 +---
1 file changed, 5
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 37 ---
1 file changed, 17 insertions(+), 20 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
i
t;,
ucode_prefix, i);
^
drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c:207:16: note: initialize the variable
'i' to silence this warning
int err = 0, i;
^
= 0
Initialize the variable &
instance number.
Remove setting err to 0 as well. This is considered very bad coding style.
Cc: Christian König
Cc: Mario Limonciello
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
Change-Id: I2f1180af4f37bf1efd4d47e7bf64425b0b3809fb
---
drivers/gpu/drm/amd/amdgpu/amdgpu_sdma.c | 4 ++--
Fix the below warning:
WARNING: Prefer [subsystem eg: netdev]_warn([subsystem]dev, ... then
dev_warn(dev, ... then pr_warn(... to printk(KERN_WARNING ...
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 2 +-
drivers/gpu
: Felix Kuehling
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 26 ++
1 file changed, 17 insertions(+), 9 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
b/drivers/gpu/drm/amd
: Felix Kuehling
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 34 +++---
1 file changed, 23 insertions(+), 11 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
b/drivers/gpu/drm/amd
=]
Suggested-by: Guchun Chen
Cc: Felix Kuehling
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
v3:
- free ring_funcs before 'return -ENOMEM' (Guchun).
- keep the check of ' kiq->pmf' and 'kiq->pmf->kiq_unmap_queues' ahead
of
r variants
'Fixes: 1104113b37210 ("drm/amdgpu: Fix error & warnings in gmc_v8_0.c")'
'Fixes: d68f1d641eba0 ("drm/amdgpu: Fix errors & warnings in gmc_ v6_0,
v7_0.c")'
Suggested-by: Alex Deucher
Cc: Christian König
Cc: Alex Deucher
Signed-off
Fixes the following:
- WARNING: externs should be avoided in .c files
- ERROR: do not initialise globals to 0
- WARNING: Missing a blank line after declarations
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/radeon/radeon_drv.c | 51
;
WARNING: braces {} are not necessary for single statement blocks
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/radeon/radeon_encoders.c | 22 +++--
drivers/gpu/drm/radeon/radeon_gart.c | 39
2 files changed, 32
Srinivasan Shanmugam (2):
drm/amd/display: Convert macros to functions in amdgpu_display.c &
amdgpu_display.h
drm/radeon: Prefer dev_warn over printk
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 118 ---
drivers/gpu/drm/amd/amdgpu/amdgpu_display.h |
From: Srinivasan Shanmugam
Fixes the following checkpatch.pl:
WARNING: printk() should include KERN_ facility level
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/radeon/radeon_atpx_handler.c | 10 +-
1 file changed, 5 insertions(+), 5
are not necessary for single statement blocks
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 118 +---
drivers/gpu/drm/amd/amdgpu/amdgpu_display.h | 46 ++--
2 files changed, 136 insertions(+), 28 delet
drivers/gpu/drm/amd/amdgpu/atom.c: In function ‘amdgpu_atom_parse’:
drivers/gpu/drm/amd/amdgpu/atom.c:1468:6: warning: unused variable ‘idx’
[-Wunused-variable]
1468 | u16 idx;
| ^~~
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd
König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 42 -
1 file changed, 25 insertions(+), 17 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
index
Changed from pr_err/info to dev_* variants so that
we get better debug info when there are multiple GPUs
in the system.
'Fixes: 8e2503972912c ("drm/radeon: Prefer pr_err/_info over printk")'
Suggested-by: Alex Deucher
Cc: Christian König
Cc: Alex Deucher
Signed-off-by:
(CONFIG_DRM_RADEON_MODULE)
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
index
ions '0400'.
+ S_IRUSR,
ERROR: "(foo*)" should be "(foo *)"
WARNING: please, no space before tabs
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
.../drm/amd/amdgpu/amdgpu_fw_attestation.c| 38 +--
1 file
NG: %LX is non-standard C, use %llX
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 38 -
1 file changed, 19 insertions(+), 19 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
b/d
Return -ENOMEM, when there is no sufficient dynamically allocated memory
to create MQD backup for ring
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 11 ---
1 file changed, 8 insertions(+), 3 deletions(-)
diff
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 60 +++---
drivers/gpu/drm/amd/amdgpu/amdgpu_reset.c | 4 +-
2 files changed, 33 insertions(+), 31 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/am
n removed.
Fixes the following:
WARNING: else is not generally useful after a break or return
+ return false;
+ } else {
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu_fru_ee
hould align the * on each line
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 22 +++---
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
b/driver
line after declarations
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 14 --
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
b/drivers/gpu/drm/amd/a
been removed.
Fixes the following:
WARNING: else is not generally useful after a break or return
+ return 0;
+ else {
WARNING: else is not generally useful after a break or return
+ return convert_brightness_to_user(&caps, avg);
+ } else {
Cc: Rodrigo
Return -ENOMEM, when there is no sufficient dynamically allocated memory
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c | 1 +
drivers/gpu/drm/amd/amdgpu/mes_v10_1.c | 4 +++-
drivers/gpu/drm/amd/amdgpu/mes_v11_0.c | 4
Return -ENOMEM, when there is no sufficient dynamically allocated memory
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
v2:
- Added -ENOMEM - when it failed to create MQD backup,
while creating MQD for each KCQ
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 17
Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
index 5ac7544cc068..3f98174fb764 100644
--- a/drivers/gpu/drm/amd
+ volatile uint32_t *ptr;
'wb' field from 'amdgpu_wb' struct & 'ptr' field from
'amdgpu_mem_scratch', is not used to access h/w directly, neither they
are shared variables, so volatile is not necessary
Cc: Christian König
Cc: Alex Deucher
Signe
-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 28 +
2 files changed, 14 insertions(+), 18 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index
blocks
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
v2:
- Updated commit message - Added "ERROR: do not initialise globals to
0"
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 28 +-
Fixes the following:
WARNING: do not add new typedefs
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu_doorbell.h | 27 ++--
1 file changed, 13 insertions(+), 14 deletions(-)
diff --git a/drivers/gpu/drm/amd
König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
.../gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 35 ---
1 file changed, 23 insertions(+), 12 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handl
single statement blocks
Cc: Lijo Lazar
Cc: Kent Russell
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
Reviewed-by: Guchun Chen
---
v2:
* Updated the following in the commit message (Kent)
WARNING: Symbolic permissions 'S_IRUGO' are not
Fixes the following:
WARNING: else is not generally useful after a break or return
+ return -EINVAL;
+ } else {
Cc: Guchun Chen
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu_eeprom.c | 39
hun Chen
Cc: Christian König
Cc: Alex Deucher
Signed-off-by: Srinivasan Shanmugam
---
drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c
index c57
301 - 400 of 617 matches
Mail list logo