All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
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	[thread overview]
Message-ID: <202112030542.N2hIGTSw-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 8244 bytes --]

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/0day-ci/archive/20211203/202112030542.N2hIGTSw-lkp(a)intel.com/config)
compiler: riscv32-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 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/14a9cab5293224679fea27d71bef4cd3acc0c72c
        git remote add intel-lts https://github.com/intel/linux-intel-lts.git
        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=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=riscv SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/exynos/exynos_drm_fimd.c: In function 'fimd_win_set_pixfmt.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=]
     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_set_pixfmt(struct fimd_context *ctx, unsigned int win,
6f8ee5c21722f9 Christoph Manszewski 2018-10-25  638  				struct drm_framebuffer *fb, int width)
1c248b7d2960fa Inki Dae             2011-10-04  639  {
6f8ee5c21722f9 Christoph Manszewski 2018-10-25  640  	struct exynos_drm_plane plane = ctx->planes[win];
6f8ee5c21722f9 Christoph Manszewski 2018-10-25  641  	struct exynos_drm_plane_state *state =
6f8ee5c21722f9 Christoph Manszewski 2018-10-25  642  		to_exynos_plane_state(plane.base.state);
6f8ee5c21722f9 Christoph Manszewski 2018-10-25  643  	uint32_t pixel_format = fb->format->format;
6f8ee5c21722f9 Christoph Manszewski 2018-10-25  644  	unsigned int alpha = state->base.alpha;
6f8ee5c21722f9 Christoph Manszewski 2018-10-25  645  	u32 val = WINCONx_ENWIN;
3b5129b3a7c62f Christoph Manszewski 2018-10-25  646  	unsigned int pixel_alpha;
3b5129b3a7c62f Christoph Manszewski 2018-10-25  647  
3b5129b3a7c62f Christoph Manszewski 2018-10-25  648  	if (fb->format->has_alpha)
3b5129b3a7c62f Christoph Manszewski 2018-10-25  649  		pixel_alpha = state->base.pixel_blend_mode;
3b5129b3a7c62f Christoph Manszewski 2018-10-25  650  	else
3b5129b3a7c62f Christoph Manszewski 2018-10-25  651  		pixel_alpha = 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 format 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 == DRM_FORMAT_ARGB8888)
8b704d8a3f5c9a Marek Szyprowski     2015-11-30  659  			pixel_format = DRM_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 |= WINCON0_BPPMODE_8BPP_PALETTE;
1c248b7d2960fa Inki Dae             2011-10-04  665  		val |= WINCONx_BURSTLEN_8WORD;
1c248b7d2960fa Inki Dae             2011-10-04  666  		val |= WINCONx_BYTSWP;
1c248b7d2960fa Inki Dae             2011-10-04  667  		break;
a4f38a80f62bb6 Inki Dae             2013-08-20  668  	case DRM_FORMAT_XRGB1555:
a4f38a80f62bb6 Inki Dae             2013-08-20  669  		val |= WINCON0_BPPMODE_16BPP_1555;
a4f38a80f62bb6 Inki Dae             2013-08-20  670  		val |= WINCONx_HAWSWP;
a4f38a80f62bb6 Inki Dae             2013-08-20  671  		val |= WINCONx_BURSTLEN_16WORD;
a4f38a80f62bb6 Inki Dae             2013-08-20  672  		break;
a4f38a80f62bb6 Inki Dae             2013-08-20  673  	case DRM_FORMAT_RGB565:
1c248b7d2960fa Inki Dae             2011-10-04  674  		val |= WINCON0_BPPMODE_16BPP_565;
1c248b7d2960fa Inki Dae             2011-10-04  675  		val |= WINCONx_HAWSWP;
1c248b7d2960fa Inki Dae             2011-10-04  676  		val |= WINCONx_BURSTLEN_16WORD;
1c248b7d2960fa Inki Dae             2011-10-04  677  		break;
a4f38a80f62bb6 Inki Dae             2013-08-20  678  	case DRM_FORMAT_XRGB8888:
1c248b7d2960fa Inki Dae             2011-10-04  679  		val |= WINCON0_BPPMODE_24BPP_888;
1c248b7d2960fa Inki Dae             2011-10-04  680  		val |= WINCONx_WSWP;
1c248b7d2960fa Inki Dae             2011-10-04  681  		val |= WINCONx_BURSTLEN_16WORD;
1c248b7d2960fa Inki Dae             2011-10-04  682  		break;
a4f38a80f62bb6 Inki Dae             2013-08-20  683  	case DRM_FORMAT_ARGB8888:
5b7b1b7fa10145 Tobias Jakobi        2017-08-22  684  	default:
3b5129b3a7c62f Christoph Manszewski 2018-10-25  685  		val |= WINCON1_BPPMODE_25BPP_A1888;
1c248b7d2960fa Inki Dae             2011-10-04  686  		val |= WINCONx_WSWP;
1c248b7d2960fa Inki Dae             2011-10-04  687  		val |= WINCONx_BURSTLEN_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. cursor 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 change 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_WIDTH_FOR_16WORD_BURST) {
66367461e57332 Rahul Sharma         2014-05-07  700  		val &= ~WINCONx_BURSTLEN_MASK;
66367461e57332 Rahul Sharma         2014-05-07  701  		val |= WINCONx_BURSTLEN_4WORD;
66367461e57332 Rahul Sharma         2014-05-07  702  	}
3b5129b3a7c62f Christoph Manszewski 2018-10-25  703  	fimd_set_bits(ctx, WINCON(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 != 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(ctx, 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 Samsung SoC EXYNOS4210.

:::::: TO: Inki Dae <inki.dae@samsung.com>
:::::: CC: Dave Airlie <airlied@redhat.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

                 reply	other threads:[~2021-12-02 21:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202112030542.N2hIGTSw-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.