CC: [email protected]
CC: [email protected]
TO: Bhawanpreet Lakha <[email protected]>
CC: Alex Deucher <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   15bc20c6af4ceee97a1f90b43c0e386643c071b4
commit: 96134346bb6ae3f212617dd66a1105250f31a7ef drm/amd/display: Add DCN3 to 
Kconfig
date:   8 weeks ago
:::::: branch date: 5 hours ago
:::::: commit date: 8 weeks ago
config: x86_64-randconfig-c002-20200826 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>
Reported-by: Julia Lawall <[email protected]>


coccinelle warnings: (new ones prefixed by >>)

>> drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c:3239:12-42: 
>> duplicated argument to && or ||
   drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c:5511:7-91: 
duplicated argument to && or ||
   drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c:5300:86-122: 
duplicated argument to && or ||

# 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=96134346bb6ae3f212617dd66a1105250f31a7ef
git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 96134346bb6ae3f212617dd66a1105250f31a7ef
vim +3239 drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c

6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3216  
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3217  static bool 
CalculateBytePerPixelAnd256BBlockSizes(
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3218               enum 
source_format_class SourcePixelFormat,
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3219               enum 
dm_swizzle_mode SurfaceTiling,
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3220               unsigned int 
*BytePerPixelY,
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3221               unsigned int 
*BytePerPixelC,
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3222               double       
*BytePerPixelDETY,
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3223               double       
*BytePerPixelDETC,
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3224               unsigned int 
*BlockHeight256BytesY,
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3225               unsigned int 
*BlockHeight256BytesC,
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3226               unsigned int 
*BlockWidth256BytesY,
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3227               unsigned int 
*BlockWidth256BytesC)
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3228  {
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3229       if (SourcePixelFormat 
== dm_444_64) {
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3230               
*BytePerPixelDETY = 8;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3231               
*BytePerPixelDETC = 0;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3232               *BytePerPixelY 
= 8;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3233               *BytePerPixelC 
= 0;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3234       } else if 
(SourcePixelFormat == dm_444_32 || SourcePixelFormat == dm_rgbe) {
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3235               
*BytePerPixelDETY = 4;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3236               
*BytePerPixelDETC = 0;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3237               *BytePerPixelY 
= 4;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3238               *BytePerPixelC 
= 0;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21 @3239       } else if 
(SourcePixelFormat == dm_444_16 || SourcePixelFormat == dm_444_16) {
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3240               
*BytePerPixelDETY = 2;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3241               
*BytePerPixelDETC = 0;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3242               *BytePerPixelY 
= 2;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3243               *BytePerPixelC 
= 0;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3244       } else if 
(SourcePixelFormat == dm_444_8) {
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3245               
*BytePerPixelDETY = 1;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3246               
*BytePerPixelDETC = 0;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3247               *BytePerPixelY 
= 1;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3248               *BytePerPixelC 
= 0;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3249       } else if 
(SourcePixelFormat == dm_rgbe_alpha) {
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3250               
*BytePerPixelDETY = 4;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3251               
*BytePerPixelDETC = 1;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3252               *BytePerPixelY 
= 4;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3253               *BytePerPixelC 
= 1;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3254       } else if 
(SourcePixelFormat == dm_420_8) {
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3255               
*BytePerPixelDETY = 1;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3256               
*BytePerPixelDETC = 2;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3257               *BytePerPixelY 
= 1;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3258               *BytePerPixelC 
= 2;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3259       } else if 
(SourcePixelFormat == dm_420_12) {
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3260               
*BytePerPixelDETY = 2;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3261               
*BytePerPixelDETC = 4;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3262               *BytePerPixelY 
= 2;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3263               *BytePerPixelC 
= 4;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3264       } else {
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3265               
*BytePerPixelDETY = 4.0 / 3;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3266               
*BytePerPixelDETC = 8.0 / 3;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3267               *BytePerPixelY 
= 2;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3268               *BytePerPixelC 
= 4;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3269       }
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3270  
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3271       if ((SourcePixelFormat 
== dm_444_64 || SourcePixelFormat == dm_444_32
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3272                       || 
SourcePixelFormat == dm_444_16 || SourcePixelFormat == dm_444_8
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3273                       || 
SourcePixelFormat == dm_mono_16 || SourcePixelFormat == dm_mono_8
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3274                       || 
SourcePixelFormat == dm_rgbe)) {
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3275               if 
(SurfaceTiling == dm_sw_linear) {
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3276                       
*BlockHeight256BytesY = 1;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3277               } else if 
(SourcePixelFormat == dm_444_64) {
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3278                       
*BlockHeight256BytesY = 4;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3279               } else if 
(SourcePixelFormat == dm_444_8) {
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3280                       
*BlockHeight256BytesY = 16;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3281               } else {
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3282                       
*BlockHeight256BytesY = 8;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3283               }
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3284               
*BlockWidth256BytesY = 256U / *BytePerPixelY / *BlockHeight256BytesY;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3285               
*BlockHeight256BytesC = 0;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3286               
*BlockWidth256BytesC = 0;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3287       } else {
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3288               if 
(SurfaceTiling == dm_sw_linear) {
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3289                       
*BlockHeight256BytesY = 1;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3290                       
*BlockHeight256BytesC = 1;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3291               } else if 
(SourcePixelFormat == dm_rgbe_alpha) {
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3292                       
*BlockHeight256BytesY = 8;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3293                       
*BlockHeight256BytesC = 16;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3294               } else if 
(SourcePixelFormat == dm_420_8) {
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3295                       
*BlockHeight256BytesY = 16;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3296                       
*BlockHeight256BytesC = 8;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3297               } else {
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3298                       
*BlockHeight256BytesY = 8;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3299                       
*BlockHeight256BytesC = 8;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3300               }
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3301               
*BlockWidth256BytesY = 256U / *BytePerPixelY / *BlockHeight256BytesY;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3302               
*BlockWidth256BytesC = 256U / *BytePerPixelC / *BlockHeight256BytesC;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3303       }
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3304       return true;
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3305  }
6725a88f88a7e9 Bhawanpreet Lakha 2020-05-21  3306  

:::::: The code at line 3239 was first introduced by commit
:::::: 6725a88f88a7e922e91c45bf83d320487810c192 drm/amd/display: Add DCN3 DML

:::::: TO: Bhawanpreet Lakha <[email protected]>
:::::: CC: Alex Deucher <[email protected]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to