All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Maíra Canal" <mcanal@igalia.com>,
	"David Airlie" <airlied@gmail.com>,
	"Daniel Vetter" <daniel@ffwll.ch>,
	"Rodrigo Siqueira" <rodrigosiqueiramelo@gmail.com>,
	"Melissa Wen" <mwen@igalia.com>,
	"Haneen Mohammed" <hamohammed.sa@gmail.com>,
	"Igor Matheus Andrade Torrente" <igormtorrente@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev, "Maíra Canal" <mcanal@igalia.com>,
	dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm/vkms: add module parameter to set background color
Date: Fri, 7 Apr 2023 05:06:31 +0800	[thread overview]
Message-ID: <202304070429.B1aKOT5a-lkp@intel.com> (raw)
In-Reply-To: <20230406172002.124456-1-mcanal@igalia.com>

Hi Maíra,

kernel test robot noticed the following build warnings:

[auto build test WARNING on drm-misc/drm-misc-next]
[also build test WARNING on drm-intel/for-linux-next drm-intel/for-linux-next-fixes drm-tip/drm-tip linus/master v6.3-rc5 next-20230406]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Ma-ra-Canal/drm-vkms-add-module-parameter-to-set-background-color/20230407-012233
base:   git://anongit.freedesktop.org/drm/drm-misc drm-misc-next
patch link:    https://lore.kernel.org/r/20230406172002.124456-1-mcanal%40igalia.com
patch subject: [PATCH] drm/vkms: add module parameter to set background color
config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20230407/202304070429.B1aKOT5a-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 12.1.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-lab-lkp/linux/commit/d725068207852d3b6a0dd795bf224422804101e1
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Ma-ra-Canal/drm-vkms-add-module-parameter-to-set-background-color/20230407-012233
        git checkout d725068207852d3b6a0dd795bf224422804101e1
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/gpu/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304070429.B1aKOT5a-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/vkms/vkms_composer.c: In function 'blend':
>> drivers/gpu/drm/vkms/vkms_composer.c:93:59: warning: right shift count >= width of type [-Wshift-count-overflow]
      93 |                 .r = (*vkms_dev->config->background_color >> 32) & 0xffff,
         |                                                           ^~


vim +93 drivers/gpu/drm/vkms/vkms_composer.c

    70	
    71	/**
    72	 * @wb_frame_info: The writeback frame buffer metadata
    73	 * @crtc_state: The crtc state
    74	 * @crc32: The crc output of the final frame
    75	 * @output_buffer: A buffer of a row that will receive the result of the blend(s)
    76	 * @stage_buffer: The line with the pixels from plane being blend to the output
    77	 *
    78	 * This function blends the pixels (Using the `pre_mul_alpha_blend`)
    79	 * from all planes, calculates the crc32 of the output from the former step,
    80	 * and, if necessary, convert and store the output to the writeback buffer.
    81	 */
    82	static void blend(struct vkms_device *vkms_dev,
    83			  struct vkms_writeback_job *wb,
    84			  struct vkms_crtc_state *crtc_state,
    85			  u32 *crc32, struct line_buffer *stage_buffer,
    86			  struct line_buffer *output_buffer, size_t row_size)
    87	{
    88		struct vkms_plane_state **plane = crtc_state->active_planes;
    89		u32 n_active_planes = crtc_state->num_active_planes;
    90	
    91		const struct pixel_argb_u16 background_color = {
    92			.a =  0xffff,
  > 93			.r = (*vkms_dev->config->background_color >> 32) & 0xffff,
    94			.g = (*vkms_dev->config->background_color >> 16) & 0xffff,
    95			.b = *vkms_dev->config->background_color & 0xffff,
    96		};
    97	
    98		size_t crtc_y_limit = crtc_state->base.crtc->mode.vdisplay;
    99	
   100		for (size_t y = 0; y < crtc_y_limit; y++) {
   101			fill_background(&background_color, output_buffer);
   102	
   103			/* The active planes are composed associatively in z-order. */
   104			for (size_t i = 0; i < n_active_planes; i++) {
   105				if (!check_y_limit(plane[i]->frame_info, y))
   106					continue;
   107	
   108				plane[i]->plane_read(stage_buffer, plane[i]->frame_info, y);
   109				pre_mul_alpha_blend(plane[i]->frame_info, stage_buffer,
   110						    output_buffer);
   111			}
   112	
   113			*crc32 = crc32_le(*crc32, (void *)output_buffer->pixels, row_size);
   114	
   115			if (wb)
   116				wb->wb_write(&wb->wb_frame_info, output_buffer, y);
   117		}
   118	}
   119	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: "Maíra Canal" <mcanal@igalia.com>,
	"David Airlie" <airlied@gmail.com>,
	"Daniel Vetter" <daniel@ffwll.ch>,
	"Rodrigo Siqueira" <rodrigosiqueiramelo@gmail.com>,
	"Melissa Wen" <mwen@igalia.com>,
	"Haneen Mohammed" <hamohammed.sa@gmail.com>,
	"Igor Matheus Andrade Torrente" <igormtorrente@gmail.com>
Cc: "Maíra Canal" <mcanal@igalia.com>,
	dri-devel@lists.freedesktop.org, oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH] drm/vkms: add module parameter to set background color
Date: Fri, 7 Apr 2023 05:06:31 +0800	[thread overview]
Message-ID: <202304070429.B1aKOT5a-lkp@intel.com> (raw)
In-Reply-To: <20230406172002.124456-1-mcanal@igalia.com>

Hi Maíra,

kernel test robot noticed the following build warnings:

[auto build test WARNING on drm-misc/drm-misc-next]
[also build test WARNING on drm-intel/for-linux-next drm-intel/for-linux-next-fixes drm-tip/drm-tip linus/master v6.3-rc5 next-20230406]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Ma-ra-Canal/drm-vkms-add-module-parameter-to-set-background-color/20230407-012233
base:   git://anongit.freedesktop.org/drm/drm-misc drm-misc-next
patch link:    https://lore.kernel.org/r/20230406172002.124456-1-mcanal%40igalia.com
patch subject: [PATCH] drm/vkms: add module parameter to set background color
config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20230407/202304070429.B1aKOT5a-lkp@intel.com/config)
compiler: powerpc-linux-gcc (GCC) 12.1.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-lab-lkp/linux/commit/d725068207852d3b6a0dd795bf224422804101e1
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Ma-ra-Canal/drm-vkms-add-module-parameter-to-set-background-color/20230407-012233
        git checkout d725068207852d3b6a0dd795bf224422804101e1
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/gpu/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304070429.B1aKOT5a-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/vkms/vkms_composer.c: In function 'blend':
>> drivers/gpu/drm/vkms/vkms_composer.c:93:59: warning: right shift count >= width of type [-Wshift-count-overflow]
      93 |                 .r = (*vkms_dev->config->background_color >> 32) & 0xffff,
         |                                                           ^~


vim +93 drivers/gpu/drm/vkms/vkms_composer.c

    70	
    71	/**
    72	 * @wb_frame_info: The writeback frame buffer metadata
    73	 * @crtc_state: The crtc state
    74	 * @crc32: The crc output of the final frame
    75	 * @output_buffer: A buffer of a row that will receive the result of the blend(s)
    76	 * @stage_buffer: The line with the pixels from plane being blend to the output
    77	 *
    78	 * This function blends the pixels (Using the `pre_mul_alpha_blend`)
    79	 * from all planes, calculates the crc32 of the output from the former step,
    80	 * and, if necessary, convert and store the output to the writeback buffer.
    81	 */
    82	static void blend(struct vkms_device *vkms_dev,
    83			  struct vkms_writeback_job *wb,
    84			  struct vkms_crtc_state *crtc_state,
    85			  u32 *crc32, struct line_buffer *stage_buffer,
    86			  struct line_buffer *output_buffer, size_t row_size)
    87	{
    88		struct vkms_plane_state **plane = crtc_state->active_planes;
    89		u32 n_active_planes = crtc_state->num_active_planes;
    90	
    91		const struct pixel_argb_u16 background_color = {
    92			.a =  0xffff,
  > 93			.r = (*vkms_dev->config->background_color >> 32) & 0xffff,
    94			.g = (*vkms_dev->config->background_color >> 16) & 0xffff,
    95			.b = *vkms_dev->config->background_color & 0xffff,
    96		};
    97	
    98		size_t crtc_y_limit = crtc_state->base.crtc->mode.vdisplay;
    99	
   100		for (size_t y = 0; y < crtc_y_limit; y++) {
   101			fill_background(&background_color, output_buffer);
   102	
   103			/* The active planes are composed associatively in z-order. */
   104			for (size_t i = 0; i < n_active_planes; i++) {
   105				if (!check_y_limit(plane[i]->frame_info, y))
   106					continue;
   107	
   108				plane[i]->plane_read(stage_buffer, plane[i]->frame_info, y);
   109				pre_mul_alpha_blend(plane[i]->frame_info, stage_buffer,
   110						    output_buffer);
   111			}
   112	
   113			*crc32 = crc32_le(*crc32, (void *)output_buffer->pixels, row_size);
   114	
   115			if (wb)
   116				wb->wb_write(&wb->wb_frame_info, output_buffer, y);
   117		}
   118	}
   119	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

  parent reply	other threads:[~2023-04-06 21:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-06 17:20 [PATCH] drm/vkms: add module parameter to set background color Maíra Canal
2023-04-06 17:28 ` Daniel Vetter
2023-04-06 18:06   ` Maíra Canal
2023-04-06 18:23     ` Daniel Vetter
2023-04-06 18:48       ` Maíra Canal
2023-04-06 21:06 ` kernel test robot [this message]
2023-04-06 21:06   ` kernel test robot
2023-04-11  8:26 ` Dan Carpenter
2023-04-11  8:26   ` Dan Carpenter
  -- strict thread matches above, loose matches on Subject: below --
2023-04-07  0:10 kernel test robot
2023-04-08 12:20 kernel test robot

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=202304070429.B1aKOT5a-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=airlied@gmail.com \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=hamohammed.sa@gmail.com \
    --cc=igormtorrente@gmail.com \
    --cc=mcanal@igalia.com \
    --cc=mwen@igalia.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=rodrigosiqueiramelo@gmail.com \
    /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.