<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-2022-jp">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<p style="font-family:Arial;font-size:10pt;color:#317100;margin:15pt;" align="Left">
[AMD Public Use]<br>
</p>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The test robot should probably not be testing the amd-20.xx branches in the first place.  They are just mirrors of our packaged drivers so they contain a bunch of stuff that will never go upstream like kernel compatibility layers and dkms support.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Alex</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Qinglang Miao <miaoqinglang@huawei.com><br>
<b>Sent:</b> Tuesday, December 15, 2020 3:21 AM<br>
<b>To:</b> kernel test robot <lkp@intel.com>; Deucher, Alexander <Alexander.Deucher@amd.com><br>
<b>Cc:</b> kbuild-all@lists.01.org <kbuild-all@lists.01.org>; dri-devel@lists.freedesktop.org <dri-devel@lists.freedesktop.org>; Xiong, Yang (Felix) <Yang.Xiong@amd.com><br>
<b>Subject:</b> Re: [radeon-alex:amd-20.45 2127/2427] drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1880:39: sparse: sparse: incorrect type in argument 1 (different base types)</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hi Alex,<br>
<br>
I think it's not a valid report from kernel test robot, for __le16 ought <br>
to be the right type for cpu_to_le16. The sparse warnings seems not <br>
right so I did't try effort to reproduce it.<br>
<br>
otherwise, when I take a carful look at this patch, an unconditional <br>
braces exists and I'm not sure about its benefit.<br>
<br>
if (bp_params->flags.INTERLACE) {<br>
                params.susModeMiscInfo.usAccess =<br>
                cpu_to_le16(le16_to_cpu(params.susModeMiscInfo.usAccess) | <br>
ATOM_INTERLACE);<br>
                {<br>
                        le16_add_cpu(&params.usV_SyncOffset, 1);<br>
                }<br>
}<br>
<br>
patch link: <br>
<a href="https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.kernel.org%2Flkml%2FCADnq5_PunHA1VHHj7VtEHG6o2Z_Z1WS325y_R9xO%2BgsV_JCOXw%40mail.gmail.com%2F&amp;data=04%7C01%7Calexander.deucher%40amd.com%7Cc9a5d9273f464451b1f808d8a0d271fe%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637436173010744629%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=1TmtjBXJLf60sxq%2BH%2BVmMhnRV%2FuyIKQD2BYDVWMxmUA%3D&amp;reserved=0">https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flore.kernel.org%2Flkml%2FCADnq5_PunHA1VHHj7VtEHG6o2Z_Z1WS325y_R9xO%2BgsV_JCOXw%40mail.gmail.com%2F&amp;data=04%7C01%7Calexander.deucher%40amd.com%7Cc9a5d9273f464451b1f808d8a0d271fe%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637436173010744629%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=1TmtjBXJLf60sxq%2BH%2BVmMhnRV%2FuyIKQD2BYDVWMxmUA%3D&amp;reserved=0</a><br>
<br>
How do you think?<br>
<br>
$B:_(B 2020/12/15 14:44, kernel test robot $B<LF;(B:<br>
> tree:   git://people.freedesktop.org/~agd5f/linux.git amd-20.45<br>
> head:   a3950d94b046fb206e58fd3ec717f071c0203ba3<br>
> commit: c82b6c9ed412fb7009b02dd82e50ee24f451e9a8 [2127/2427] drm/amd/display: convert to use le16_add_cpu()<br>
> config: arc-randconfig-s031-20201214 (attached as .config)<br>
> compiler: arc-elf-gcc (GCC) 9.3.0<br>
> reproduce:<br>
>          wget <a href="https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fraw.githubusercontent.com%2Fintel%2Flkp-tests%2Fmaster%2Fsbin%2Fmake.cross&amp;data=04%7C01%7Calexander.deucher%40amd.com%7Cc9a5d9273f464451b1f808d8a0d271fe%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637436173010754583%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=DCHDVGjiXhPDoCTofTf0pxHspdydDs1JXneGoSGPgFQ%3D&amp;reserved=0">
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fraw.githubusercontent.com%2Fintel%2Flkp-tests%2Fmaster%2Fsbin%2Fmake.cross&amp;data=04%7C01%7Calexander.deucher%40amd.com%7Cc9a5d9273f464451b1f808d8a0d271fe%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637436173010754583%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=DCHDVGjiXhPDoCTofTf0pxHspdydDs1JXneGoSGPgFQ%3D&amp;reserved=0</a>
 -O ~/bin/make.cross<br>
>          chmod +x ~/bin/make.cross<br>
>          # apt-get install sparse<br>
>          # sparse version: v0.6.3-184-g1b896707-dirty<br>
>          git remote add radeon-alex git://people.freedesktop.org/~agd5f/linux.git<br>
>          git fetch --no-tags radeon-alex amd-20.45<br>
>          git checkout c82b6c9ed412fb7009b02dd82e50ee24f451e9a8<br>
>          # save the attached .config to linux build tree<br>
>          COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arc<br>
> <br>
> If you fix the issue, kindly add following tag as appropriate<br>
> Reported-by: kernel test robot <lkp@intel.com><br>
> <br>
> <br>
> "sparse warnings: (new ones prefixed by >>)"<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:879:43: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [addressable] [assigned] [usertype] ulSymClock @@     got restricted __le16 [usertype]
 @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:879:43: sparse:     expected unsigned int [addressable] [assigned] [usertype] ulSymClock<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:879:43: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:956:40: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [addressable] [assigned] [usertype] usRefDiv @@     got restricted __le16 [usertype]
 @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:956:40: sparse:     expected unsigned short [addressable] [assigned] [usertype] usRefDiv<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:956:40: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:958:39: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [addressable] [assigned] [usertype] usFbDiv @@     got restricted __le16 [usertype]
 @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:958:39: sparse:     expected unsigned short [addressable] [assigned] [usertype] usFbDiv<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:958:39: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:966:44: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [addressable] [assigned] [usertype] usPixelClock @@     got restricted __le16 [usertype]
 @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:966:44: sparse:     expected unsigned short [addressable] [assigned] [usertype] usPixelClock<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:966:44: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1029:40: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [addressable] [assigned] [usertype] usFbDiv @@     got restricted __le16 [usertype]
 @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1029:40: sparse:     expected unsigned short [addressable] [assigned] [usertype] usFbDiv<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1029:40: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1031:47: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [addressable] [assigned] [usertype] ulFbDivDecFrac @@     got restricted __le32 [usertype]
 @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1031:47: sparse:     expected unsigned int [addressable] [assigned] [usertype] ulFbDivDecFrac<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1031:47: sparse:     got restricted __le32 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1044:45: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [addressable] [assigned] [usertype] usPixelClock @@     got restricted __le16 [usertype]
 @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1044:45: sparse:     expected unsigned short [addressable] [assigned] [usertype] usPixelClock<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1044:45: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1105:40: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [addressable] [assigned] [usertype] usFbDiv @@     got restricted __le16 [usertype]
 @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1105:40: sparse:     expected unsigned short [addressable] [assigned] [usertype] usFbDiv<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1105:40: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1107:47: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [addressable] [assigned] [usertype] ulFbDivDecFrac @@     got restricted __le32 [usertype]
 @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1107:47: sparse:     expected unsigned int [addressable] [assigned] [usertype] ulFbDivDecFrac<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1107:47: sparse:     got restricted __le32 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1120:60: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [addressable] [assigned] [usertype] ulPixelClock:24 @@     got restricted __le32 [usertype]
 @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1120:60: sparse:     expected unsigned int [addressable] [assigned] [usertype] ulPixelClock:24<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1120:60: sparse:     got restricted __le32 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1183:34: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [addressable] [assigned] [usertype] ulPixelClock @@     got restricted __le32 [usertype]
 @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1183:34: sparse:     expected unsigned int [addressable] [assigned] [usertype] ulPixelClock<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1183:34: sparse:     got restricted __le32 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1272:43: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [addressable] [assigned] [usertype] usSpreadSpectrumPercentage @@     got restricted
 __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1272:43: sparse:     expected unsigned short [addressable] [assigned] [usertype] usSpreadSpectrumPercentage<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1272:43: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1321:51: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [addressable] [assigned] [usertype] usSpreadSpectrumPercentage @@     got restricted
 __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1321:51: sparse:     expected unsigned short [addressable] [assigned] [usertype] usSpreadSpectrumPercentage<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1321:51: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1323:45: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [addressable] [assigned] [usertype] usSpreadSpectrumStep @@     got restricted __le16
 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1323:45: sparse:     expected unsigned short [addressable] [assigned] [usertype] usSpreadSpectrumStep<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1323:45: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1337:47: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [addressable] [assigned] [usertype] usSpreadSpectrumAmount @@     got restricted
 __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1337:47: sparse:     expected unsigned short [addressable] [assigned] [usertype] usSpreadSpectrumAmount<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1337:47: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1391:51: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [addressable] [assigned] [usertype] usSpreadSpectrumAmountFrac @@     got restricted
 __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1391:51: sparse:     expected unsigned short [addressable] [assigned] [usertype] usSpreadSpectrumAmountFrac<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1391:51: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1393:45: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [addressable] [assigned] [usertype] usSpreadSpectrumStep @@     got restricted __le16
 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1393:45: sparse:     expected unsigned short [addressable] [assigned] [usertype] usSpreadSpectrumStep<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1393:45: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1406:47: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [addressable] [assigned] [usertype] usSpreadSpectrumAmount @@     got restricted
 __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1406:47: sparse:     expected unsigned short [addressable] [assigned] [usertype] usSpreadSpectrumAmount<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1406:47: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1465:29: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] usPixelClock @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1465:29: sparse:     expected unsigned short [usertype] usPixelClock<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1465:29: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1488:36: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [addressable] [usertype] usPixelClock @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1488:36: sparse:     expected unsigned short [addressable] [usertype] usPixelClock<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1488:36: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1508:43: sparse: sparse: cast to restricted __le32<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1583:30: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] usPixelClock @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1583:30: sparse:     expected unsigned short [usertype] usPixelClock<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1583:30: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1826:25: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] usH_Size @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1826:25: sparse:     expected unsigned short [assigned] [usertype] usH_Size<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1826:25: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1828:34: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] usH_Blanking_Time @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1828:34: sparse:     expected unsigned short [assigned] [usertype] usH_Blanking_Time<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1828:34: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1831:25: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] usV_Size @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1831:25: sparse:     expected unsigned short [assigned] [usertype] usV_Size<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1831:25: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1833:34: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] usV_Blanking_Time @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1833:34: sparse:     expected unsigned short [assigned] [usertype] usV_Blanking_Time<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1833:34: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1838:31: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] usH_SyncOffset @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1838:31: sparse:     expected unsigned short [assigned] [usertype] usH_SyncOffset<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1838:31: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1840:30: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] usH_SyncWidth @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1840:30: sparse:     expected unsigned short [assigned] [usertype] usH_SyncWidth<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1840:30: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1844:31: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] usV_SyncOffset @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1844:31: sparse:     expected unsigned short [assigned] [usertype] usV_SyncOffset<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1844:31: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1846:30: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] usV_SyncWidth @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1846:30: sparse:     expected unsigned short [assigned] [usertype] usV_SyncWidth<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1846:30: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1855:33: sparse: sparse: cast to restricted __le16<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1854:49: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] usAccess @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1854:49: sparse:     expected unsigned short [assigned] [usertype] usAccess<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1854:49: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1859:33: sparse: sparse: cast to restricted __le16<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1858:49: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] usAccess @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1858:49: sparse:     expected unsigned short [assigned] [usertype] usAccess<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1858:49: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1863:33: sparse: sparse: cast to restricted __le16<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1862:49: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] usAccess @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1862:49: sparse:     expected unsigned short [assigned] [usertype] usAccess<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1862:49: sparse:     got restricted __le16 [usertype]<br>
>>> drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1880:39: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __le16 [usertype] *var @@     got unsigned short * @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1880:39: sparse:     expected restricted __le16 [usertype] *var<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1880:39: sparse:     got unsigned short *<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1886:33: sparse: sparse: cast to restricted __le16<br>
>>> drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1885:49: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [addressable] [assigned] [usertype] usAccess @@     got restricted __le16 [usertype]
 @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1885:49: sparse:     expected unsigned short [addressable] [assigned] [usertype] usAccess<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1885:49: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1752:26: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] usH_Total @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1752:26: sparse:     expected unsigned short [assigned] [usertype] usH_Total<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1752:26: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1753:25: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] usH_Disp @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1753:25: sparse:     expected unsigned short [assigned] [usertype] usH_Disp<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1753:25: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1754:30: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] usH_SyncStart @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1754:30: sparse:     expected unsigned short [assigned] [usertype] usH_SyncStart<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1754:30: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1755:30: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] usH_SyncWidth @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1755:30: sparse:     expected unsigned short [assigned] [usertype] usH_SyncWidth<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1755:30: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1756:26: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] usV_Total @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1756:26: sparse:     expected unsigned short [assigned] [usertype] usV_Total<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1756:26: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1757:25: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] usV_Disp @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1757:25: sparse:     expected unsigned short [assigned] [usertype] usV_Disp<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1757:25: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1758:30: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] usV_SyncStart @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1758:30: sparse:     expected unsigned short [assigned] [usertype] usV_SyncStart<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1758:30: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1760:30: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] usV_SyncWidth @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1760:30: sparse:     expected unsigned short [assigned] [usertype] usV_SyncWidth<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1760:30: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1776:33: sparse: sparse: cast to restricted __le16<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1775:49: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] usAccess @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1775:49: sparse:     expected unsigned short [assigned] [usertype] usAccess<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1775:49: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1780:33: sparse: sparse: cast to restricted __le16<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1779:49: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] usAccess @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1779:49: sparse:     expected unsigned short [assigned] [usertype] usAccess<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1779:49: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1784:33: sparse: sparse: cast to restricted __le16<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1783:49: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] usAccess @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1783:49: sparse:     expected unsigned short [assigned] [usertype] usAccess<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1783:49: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1799:38: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] usV_SyncStart @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1799:38: sparse:     expected unsigned short [assigned] [usertype] usV_SyncStart<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1799:38: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1805:33: sparse: sparse: cast to restricted __le16<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1804:49: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] usAccess @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1804:49: sparse:     expected unsigned short [assigned] [usertype] usAccess<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1804:49: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:2047:40: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [addressable] [assigned] [usertype] usPixelClock @@     got restricted __le16 [usertype]
 @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:2047:40: sparse:     expected unsigned short [addressable] [assigned] [usertype] usPixelClock<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:2047:40: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:2079:44: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [addressable] [assigned] [usertype] ulDispEngClkFreq @@     got restricted __le32 [usertype]
 @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:2079:44: sparse:     expected unsigned int [addressable] [assigned] [usertype] ulDispEngClkFreq<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:2079:44: sparse:     got restricted __le32 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:2092:44: sparse: sparse: cast to restricted __le32<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:2174:44: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] usConnectorId @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:2174:44: sparse:     expected unsigned short [usertype] usConnectorId<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:2174:44: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:2183:43: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] usPixelClock @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:2183:43: sparse:     expected unsigned short [usertype] usPixelClock<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:2183:43: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:2207:43: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] usPixelClock @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:2207:43: sparse:     expected unsigned short [usertype] usPixelClock<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:2207:43: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:2340:45: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [addressable] [assigned] [usertype] ulDCEClkFreq @@     got restricted __le32 [usertype]
 @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:2340:45: sparse:     expected unsigned int [addressable] [assigned] [usertype] ulDCEClkFreq<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:2340:45: sparse:     got restricted __le32 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:2344:53: sparse: sparse: cast to restricted __le32<br>
> --<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:413:34: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [addressable] [assigned] [usertype] pixclk_100hz @@     got restricted __le32 [usertype]
 @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:413:34: sparse:     expected unsigned int [addressable] [assigned] [usertype] pixclk_100hz<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:413:34: sparse:     got restricted __le32 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:509:23: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] h_size @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:509:23: sparse:     expected unsigned short [assigned] [usertype] h_size<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:509:23: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:511:32: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] h_blanking_time @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:511:32: sparse:     expected unsigned short [assigned] [usertype] h_blanking_time<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:511:32: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:515:23: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] v_size @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:515:23: sparse:     expected unsigned short [assigned] [usertype] v_size<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:515:23: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:517:32: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] v_blanking_time @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:517:32: sparse:     expected unsigned short [assigned] [usertype] v_blanking_time<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:517:32: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:524:29: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] h_syncoffset @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:524:29: sparse:     expected unsigned short [assigned] [usertype] h_syncoffset<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:524:29: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:527:28: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] h_syncwidth @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:527:28: sparse:     expected unsigned short [assigned] [usertype] h_syncwidth<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:527:28: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:532:29: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] v_syncoffset @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:532:29: sparse:     expected unsigned short [assigned] [usertype] v_syncoffset<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:532:29: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:535:28: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] v_syncwidth @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:535:28: sparse:     expected unsigned short [assigned] [usertype] v_syncwidth<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:535:28: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:544:33: sparse: sparse: cast to restricted __le16<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:543:37: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] modemiscinfo @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:543:37: sparse:     expected unsigned short [assigned] [usertype] modemiscinfo<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:543:37: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:549:33: sparse: sparse: cast to restricted __le16<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:548:37: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] modemiscinfo @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:548:37: sparse:     expected unsigned short [assigned] [usertype] modemiscinfo<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:548:37: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:554:33: sparse: sparse: cast to restricted __le16<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:553:37: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [assigned] [usertype] modemiscinfo @@     got restricted __le16 [usertype] @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:553:37: sparse:     expected unsigned short [assigned] [usertype] modemiscinfo<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:553:37: sparse:     got restricted __le16 [usertype]<br>
>>> drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:572:39: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __le16 [usertype] *var @@     got unsigned short * @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:572:39: sparse:     expected restricted __le16 [usertype] *var<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:572:39: sparse:     got unsigned short *<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:578:25: sparse: sparse: cast to restricted __le16<br>
>>> drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:577:37: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [addressable] [assigned] [usertype] modemiscinfo @@     got restricted __le16 [usertype]
 @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:577:37: sparse:     expected unsigned short [addressable] [assigned] [usertype] modemiscinfo<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:577:37: sparse:     got restricted __le16 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:851:43: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [addressable] [assigned] [usertype] dceclk_10khz @@     got restricted __le32 [usertype]
 @@<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:851:43: sparse:     expected unsigned int [addressable] [assigned] [usertype] dceclk_10khz<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:851:43: sparse:     got restricted __le32 [usertype]<br>
>     drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table2.c:860:53: sparse: sparse: cast to restricted __le32<br>
> <br>
> vim +1880 drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c<br>
> <br>
>    1812       <br>
>    1813       static enum bp_result set_crtc_using_dtd_timing_v3(<br>
>    1814               struct bios_parser *bp,<br>
>    1815               struct bp_hw_crtc_timing_parameters *bp_params)<br>
>    1816       {<br>
>    1817               enum bp_result result = BP_RESULT_FAILURE;<br>
>    1818               SET_CRTC_USING_DTD_TIMING_PARAMETERS params = {0};<br>
>    1819               uint8_t atom_controller_id;<br>
>    1820       <br>
>    1821               if (bp->cmd_helper->controller_id_to_atom(<br>
>    1822                               bp_params->controller_id, &atom_controller_id))<br>
>    1823                       params.ucCRTC = atom_controller_id;<br>
>    1824       <br>
>    1825               /* bios usH_Size wants h addressable size */<br>
>    1826               params.usH_Size = cpu_to_le16((uint16_t)bp_params->h_addressable);<br>
>    1827               /* bios usH_Blanking_Time wants borders included in blanking */<br>
>    1828               params.usH_Blanking_Time =<br>
>    1829                               cpu_to_le16((uint16_t)(bp_params->h_total - bp_params->h_addressable));<br>
>    1830               /* bios usV_Size wants v addressable size */<br>
>    1831               params.usV_Size = cpu_to_le16((uint16_t)bp_params->v_addressable);<br>
>    1832               /* bios usV_Blanking_Time wants borders included in blanking */<br>
>    1833               params.usV_Blanking_Time =<br>
>    1834                               cpu_to_le16((uint16_t)(bp_params->v_total - bp_params->v_addressable));<br>
>    1835               /* bios usHSyncOffset is the offset from the end of h addressable,<br>
>    1836                * our horizontalSyncStart is the offset from the beginning<br>
>    1837                * of h addressable */<br>
>    1838               params.usH_SyncOffset =<br>
>    1839                               cpu_to_le16((uint16_t)(bp_params->h_sync_start - bp_params->h_addressable));<br>
>    1840               params.usH_SyncWidth = cpu_to_le16((uint16_t)bp_params->h_sync_width);<br>
>    1841               /* bios usHSyncOffset is the offset from the end of v addressable,<br>
>    1842                * our verticalSyncStart is the offset from the beginning of<br>
>    1843                * v addressable */<br>
>    1844               params.usV_SyncOffset =<br>
>    1845                               cpu_to_le16((uint16_t)(bp_params->v_sync_start - bp_params->v_addressable));<br>
>    1846               params.usV_SyncWidth = cpu_to_le16((uint16_t)bp_params->v_sync_width);<br>
>    1847       <br>
>    1848               /* we assume that overscan from original timing does not get bigger<br>
>    1849                * than 255<br>
>    1850                * we will program all the borders in the Set CRTC Overscan call below<br>
>    1851                */<br>
>    1852       <br>
>    1853               if (0 == bp_params->flags.HSYNC_POSITIVE_POLARITY)<br>
>    1854                       params.susModeMiscInfo.usAccess =<br>
>    1855                                       cpu_to_le16(le16_to_cpu(params.susModeMiscInfo.usAccess) | ATOM_HSYNC_POLARITY);<br>
>    1856       <br>
>    1857               if (0 == bp_params->flags.VSYNC_POSITIVE_POLARITY)<br>
>    1858                       params.susModeMiscInfo.usAccess =<br>
>    1859                                       cpu_to_le16(le16_to_cpu(params.susModeMiscInfo.usAccess) | ATOM_VSYNC_POLARITY);<br>
>    1860       <br>
>    1861               if (bp_params->flags.INTERLACE) {<br>
>    1862                       params.susModeMiscInfo.usAccess =<br>
>    1863                                       cpu_to_le16(le16_to_cpu(params.susModeMiscInfo.usAccess) | ATOM_INTERLACE);<br>
>    1864       <br>
>    1865                       /* original DAL code has this condition to apply this<br>
>    1866                        * for non-TV/CV only<br>
>    1867                        * due to complex MV testing for possible impact<br>
>    1868                        * if ( pACParameters->signal != SignalType_YPbPr &&<br>
>    1869                        *  pACParameters->signal != SignalType_Composite &&<br>
>    1870                        *  pACParameters->signal != SignalType_SVideo)<br>
>    1871                        */<br>
>    1872                       {<br>
>    1873                               /* HW will deduct 0.5 line from 2nd feild.<br>
>    1874                                * i.e. for 1080i, it is 2 lines for 1st field,<br>
>    1875                                * 2.5 lines for the 2nd feild. we need input as 5<br>
>    1876                                * instead of 4.<br>
>    1877                                * but it is 4 either from Edid data (spec CEA 861)<br>
>    1878                                * or CEA timing table.<br>
>    1879                                */<br>
>> 1880                         le16_add_cpu(&params.usV_SyncOffset, 1);<br>
>    1881                       }<br>
>    1882               }<br>
>    1883       <br>
>    1884               if (bp_params->flags.HORZ_COUNT_BY_TWO)<br>
>> 1885                 params.susModeMiscInfo.usAccess =<br>
>    1886                                       cpu_to_le16(le16_to_cpu(params.susModeMiscInfo.usAccess) | ATOM_DOUBLE_CLOCK_MODE);<br>
>    1887       <br>
>    1888               if (EXEC_BIOS_CMD_TABLE(SetCRTC_UsingDTDTiming, params))<br>
>    1889                       result = BP_RESULT_OK;<br>
>    1890       <br>
>    1891               return result;<br>
>    1892       }<br>
>    1893       <br>
> <br>
> ---<br>
> 0-DAY CI Kernel Test Service, Intel Corporation<br>
> <a href="https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.01.org%2Fhyperkitty%2Flist%2Fkbuild-all%40lists.01.org&amp;data=04%7C01%7Calexander.deucher%40amd.com%7Cc9a5d9273f464451b1f808d8a0d271fe%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637436173010754583%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=YyHY6sZPmHM14xXSHmp9tcYJpzeO842YlCqX1XISOkw%3D&amp;reserved=0">
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.01.org%2Fhyperkitty%2Flist%2Fkbuild-all%40lists.01.org&amp;data=04%7C01%7Calexander.deucher%40amd.com%7Cc9a5d9273f464451b1f808d8a0d271fe%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637436173010754583%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=YyHY6sZPmHM14xXSHmp9tcYJpzeO842YlCqX1XISOkw%3D&amp;reserved=0</a><br>
> <br>
</div>
</span></font></div>
</div>
</body>
</html>