From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============8099843132470798180==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [intel-lts:5.10/android-civ 15431/23680] drivers/gpu/drm/exynos/exynos_drm_fimd.c:710:1: warning: the frame size of 1040 bytes is larger than 1024 bytes Date: Fri, 03 Dec 2021 05:59:04 +0800 Message-ID: <202112030542.N2hIGTSw-lkp@intel.com> List-Id: --===============8099843132470798180== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://github.com/intel/linux-intel-lts.git 5.10/android-civ head: 0e493748b235bf61d817dabdad2832ac4e932217 commit: 14a9cab5293224679fea27d71bef4cd3acc0c72c [15431/23680] Merge remote= -tracking branch 'origin/5.10/yocto' into 5.10/android config: riscv-buildonly-randconfig-r006-20211202 (https://download.01.org/0= day-ci/archive/20211203/202112030542.N2hIGTSw-lkp(a)intel.com/config) compiler: riscv32-linux-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel/linux-intel-lts/commit/14a9cab5293224679= fea27d71bef4cd3acc0c72c git remote add intel-lts https://github.com/intel/linux-intel-lts.g= it git fetch --no-tags intel-lts 5.10/android-civ git checkout 14a9cab5293224679fea27d71bef4cd3acc0c72c # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Driscv SHELL=3D/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/gpu/drm/exynos/exynos_drm_fimd.c: In function 'fimd_win_set_pixf= mt.isra': >> drivers/gpu/drm/exynos/exynos_drm_fimd.c:710:1: warning: the frame size = of 1040 bytes is larger than 1024 bytes [-Wframe-larger-than=3D] 710 | } | ^ vim +710 drivers/gpu/drm/exynos/exynos_drm_fimd.c 1c248b7d2960fa Inki Dae 2011-10-04 636 = 2eeb2e5e6634db Gustavo Padovan 2015-08-03 637 static void fimd_win_s= et_pixfmt(struct fimd_context *ctx, unsigned int win, 6f8ee5c21722f9 Christoph Manszewski 2018-10-25 638 struct drm_framebu= ffer *fb, int width) 1c248b7d2960fa Inki Dae 2011-10-04 639 { 6f8ee5c21722f9 Christoph Manszewski 2018-10-25 640 struct exynos_drm_pla= ne plane =3D ctx->planes[win]; 6f8ee5c21722f9 Christoph Manszewski 2018-10-25 641 struct exynos_drm_pla= ne_state *state =3D 6f8ee5c21722f9 Christoph Manszewski 2018-10-25 642 to_exynos_plane_stat= e(plane.base.state); 6f8ee5c21722f9 Christoph Manszewski 2018-10-25 643 uint32_t pixel_format= =3D fb->format->format; 6f8ee5c21722f9 Christoph Manszewski 2018-10-25 644 unsigned int alpha = =3D state->base.alpha; 6f8ee5c21722f9 Christoph Manszewski 2018-10-25 645 u32 val =3D WINCONx_E= NWIN; 3b5129b3a7c62f Christoph Manszewski 2018-10-25 646 unsigned int pixel_al= pha; 3b5129b3a7c62f Christoph Manszewski 2018-10-25 647 = 3b5129b3a7c62f Christoph Manszewski 2018-10-25 648 if (fb->format->has_a= lpha) 3b5129b3a7c62f Christoph Manszewski 2018-10-25 649 pixel_alpha =3D stat= e->base.pixel_blend_mode; 3b5129b3a7c62f Christoph Manszewski 2018-10-25 650 else 3b5129b3a7c62f Christoph Manszewski 2018-10-25 651 pixel_alpha =3D DRM_= MODE_BLEND_PIXEL_NONE; 1c248b7d2960fa Inki Dae 2011-10-04 652 = 5cc4621a17b1e6 Inki Dae 2013-08-20 653 /* 5cc4621a17b1e6 Inki Dae 2013-08-20 654 * In case of s3c64xx= , window 0 doesn't support alpha channel. 5cc4621a17b1e6 Inki Dae 2013-08-20 655 * So the request for= mat is ARGB8888 then change it to XRGB8888. 5cc4621a17b1e6 Inki Dae 2013-08-20 656 */ 5cc4621a17b1e6 Inki Dae 2013-08-20 657 if (ctx->driver_data-= >has_limited_fmt && !win) { 8b704d8a3f5c9a Marek Szyprowski 2015-11-30 658 if (pixel_format =3D= =3D DRM_FORMAT_ARGB8888) 8b704d8a3f5c9a Marek Szyprowski 2015-11-30 659 pixel_format =3D DR= M_FORMAT_XRGB8888; 5cc4621a17b1e6 Inki Dae 2013-08-20 660 } 5cc4621a17b1e6 Inki Dae 2013-08-20 661 = 8b704d8a3f5c9a Marek Szyprowski 2015-11-30 662 switch (pixel_format)= { a4f38a80f62bb6 Inki Dae 2013-08-20 663 case DRM_FORMAT_C8: 1c248b7d2960fa Inki Dae 2011-10-04 664 val |=3D WINCON0_BPP= MODE_8BPP_PALETTE; 1c248b7d2960fa Inki Dae 2011-10-04 665 val |=3D WINCONx_BUR= STLEN_8WORD; 1c248b7d2960fa Inki Dae 2011-10-04 666 val |=3D WINCONx_BYT= SWP; 1c248b7d2960fa Inki Dae 2011-10-04 667 break; a4f38a80f62bb6 Inki Dae 2013-08-20 668 case DRM_FORMAT_XRGB1= 555: a4f38a80f62bb6 Inki Dae 2013-08-20 669 val |=3D WINCON0_BPP= MODE_16BPP_1555; a4f38a80f62bb6 Inki Dae 2013-08-20 670 val |=3D WINCONx_HAW= SWP; a4f38a80f62bb6 Inki Dae 2013-08-20 671 val |=3D WINCONx_BUR= STLEN_16WORD; a4f38a80f62bb6 Inki Dae 2013-08-20 672 break; a4f38a80f62bb6 Inki Dae 2013-08-20 673 case DRM_FORMAT_RGB56= 5: 1c248b7d2960fa Inki Dae 2011-10-04 674 val |=3D WINCON0_BPP= MODE_16BPP_565; 1c248b7d2960fa Inki Dae 2011-10-04 675 val |=3D WINCONx_HAW= SWP; 1c248b7d2960fa Inki Dae 2011-10-04 676 val |=3D WINCONx_BUR= STLEN_16WORD; 1c248b7d2960fa Inki Dae 2011-10-04 677 break; a4f38a80f62bb6 Inki Dae 2013-08-20 678 case DRM_FORMAT_XRGB8= 888: 1c248b7d2960fa Inki Dae 2011-10-04 679 val |=3D WINCON0_BPP= MODE_24BPP_888; 1c248b7d2960fa Inki Dae 2011-10-04 680 val |=3D WINCONx_WSW= P; 1c248b7d2960fa Inki Dae 2011-10-04 681 val |=3D WINCONx_BUR= STLEN_16WORD; 1c248b7d2960fa Inki Dae 2011-10-04 682 break; a4f38a80f62bb6 Inki Dae 2013-08-20 683 case DRM_FORMAT_ARGB8= 888: 5b7b1b7fa10145 Tobias Jakobi 2017-08-22 684 default: 3b5129b3a7c62f Christoph Manszewski 2018-10-25 685 val |=3D WINCON1_BPP= MODE_25BPP_A1888; 1c248b7d2960fa Inki Dae 2011-10-04 686 val |=3D WINCONx_WSW= P; 1c248b7d2960fa Inki Dae 2011-10-04 687 val |=3D WINCONx_BUR= STLEN_16WORD; 1c248b7d2960fa Inki Dae 2011-10-04 688 break; 1c248b7d2960fa Inki Dae 2011-10-04 689 } 1c248b7d2960fa Inki Dae 2011-10-04 690 = 66367461e57332 Rahul Sharma 2014-05-07 691 /* 8b704d8a3f5c9a Marek Szyprowski 2015-11-30 692 * Setting dma-burst = to 16Word causes permanent tearing for very small 8b704d8a3f5c9a Marek Szyprowski 2015-11-30 693 * buffers, e.g. curs= or buffer. Burst Mode switching which based on 8b704d8a3f5c9a Marek Szyprowski 2015-11-30 694 * plane size is not = recommended as plane size varies alot towards the 8b704d8a3f5c9a Marek Szyprowski 2015-11-30 695 * end of the screen = and rapid movement causes unstable DMA, but it is 8b704d8a3f5c9a Marek Szyprowski 2015-11-30 696 * still better to ch= ange dma-burst than displaying garbage. 66367461e57332 Rahul Sharma 2014-05-07 697 */ 66367461e57332 Rahul Sharma 2014-05-07 698 = 8b704d8a3f5c9a Marek Szyprowski 2015-11-30 699 if (width < MIN_FB_WI= DTH_FOR_16WORD_BURST) { 66367461e57332 Rahul Sharma 2014-05-07 700 val &=3D ~WINCONx_BU= RSTLEN_MASK; 66367461e57332 Rahul Sharma 2014-05-07 701 val |=3D WINCONx_BUR= STLEN_4WORD; 66367461e57332 Rahul Sharma 2014-05-07 702 } 3b5129b3a7c62f Christoph Manszewski 2018-10-25 703 fimd_set_bits(ctx, WI= NCON(win), ~WINCONx_BLEND_MODE_MASK, val); 453b44a3f6f3f4 Gustavo Padovan 2015-04-01 704 = 453b44a3f6f3f4 Gustavo Padovan 2015-04-01 705 /* hardware window 0 = doesn't support alpha channel. */ 3b5129b3a7c62f Christoph Manszewski 2018-10-25 706 if (win !=3D 0) { 3b5129b3a7c62f Christoph Manszewski 2018-10-25 707 fimd_win_set_bldmod(= ctx, win, alpha, pixel_alpha); 3b5129b3a7c62f Christoph Manszewski 2018-10-25 708 fimd_win_set_bldeq(c= tx, win, alpha, pixel_alpha); 3b5129b3a7c62f Christoph Manszewski 2018-10-25 709 } 1c248b7d2960fa Inki Dae 2011-10-04 @710 } 1c248b7d2960fa Inki Dae 2011-10-04 711 = :::::: The code@line 710 was first introduced by commit :::::: 1c248b7d2960faec3e1b8f3f9c5d9d0df28e0a3c DRM: add DRM Driver for Sam= sung SoC EXYNOS4210. :::::: TO: Inki Dae :::::: CC: Dave Airlie --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============8099843132470798180==--