From: kernel test robot <lkp@intel.com>
To: Jocelyn Falempe <jfalempe@redhat.com>,
dri-devel@lists.freedesktop.org, lyude@redhat.com,
tzimmermann@suse.de
Cc: michel@daenzer.net, llvm@lists.linux.dev,
kbuild-all@lists.01.org, Jocelyn Falempe <jfalempe@redhat.com>
Subject: Re: [PATCH] mgag200: Enable atomic gamma lut update
Date: Tue, 10 May 2022 05:37:26 +0800 [thread overview]
Message-ID: <202205100516.IJQ7MRHW-lkp@intel.com> (raw)
In-Reply-To: <20220509094930.44613-1-jfalempe@redhat.com>
Hi Jocelyn,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on tegra-drm/drm/tegra/for-next]
[also build test ERROR on v5.18-rc6]
[cannot apply to drm/drm-next drm-tip/drm-tip airlied/drm-next next-20220509]
[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]
url: https://github.com/intel-lab-lkp/linux/commits/Jocelyn-Falempe/mgag200-Enable-atomic-gamma-lut-update/20220509-175430
base: git://anongit.freedesktop.org/tegra/linux.git drm/tegra/for-next
config: mips-randconfig-r015-20220509 (https://download.01.org/0day-ci/archive/20220510/202205100516.IJQ7MRHW-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project a385645b470e2d3a1534aae618ea56b31177639f)
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
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://github.com/intel-lab-lkp/linux/commit/c0e0a39a5acd3aa9d0cd6f25679bd16930233491
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Jocelyn-Falempe/mgag200-Enable-atomic-gamma-lut-update/20220509-175430
git checkout c0e0a39a5acd3aa9d0cd6f25679bd16930233491
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/gpu/drm/mgag200/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/mgag200/mgag200_mode.c:97:3: error: void function 'mga_crtc_update_lut' should not return a value [-Wreturn-type]
return
^
1 error generated.
vim +/mga_crtc_update_lut +97 drivers/gpu/drm/mgag200/mgag200_mode.c
88
89 static void mga_crtc_update_lut(struct mga_device *mdev,
90 struct drm_crtc_state *state,
91 u8 depth)
92 {
93 struct drm_color_lut * lut;
94 int i;
95
96 if (!state->color_mgmt_changed || !state->gamma_lut)
> 97 return
98
99 lut = (struct drm_color_lut *) state->gamma_lut->data;
100 WREG8(DAC_INDEX + MGA1064_INDEX, 0);
101
102 if (depth == 15) {
103 /* 16 bits r5g5b5a1 */
104 for (i = 0; i < MGAG200_LUT_SIZE; i += 8) {
105 WREG8(DAC_INDEX + MGA1064_COL_PAL, lut[i].red >> 8);
106 WREG8(DAC_INDEX + MGA1064_COL_PAL, lut[i].green >> 8);
107 WREG8(DAC_INDEX + MGA1064_COL_PAL, lut[i].blue >> 8);
108 }
109 } else if (depth == 16) {
110 /* 16 bits r5g6b5, as green has one more bit,
111 * add padding with 0 for red and blue. */
112 for (i = 0; i < MGAG200_LUT_SIZE; i += 4) {
113 u8 red = 2 * i < MGAG200_LUT_SIZE ? lut[2 * i].red >> 8 : 0;
114 u8 blue = 2 * i < MGAG200_LUT_SIZE ? lut[2 * i].red >> 8 : 0;
115 WREG8(DAC_INDEX + MGA1064_COL_PAL, red);
116 WREG8(DAC_INDEX + MGA1064_COL_PAL, lut[i].green >> 8);
117 WREG8(DAC_INDEX + MGA1064_COL_PAL, blue);
118 }
119 } else {
120 /* 24 bits r8g8b8 */
121 for (i = 0; i < MGAG200_LUT_SIZE; i++) {
122 WREG8(DAC_INDEX + MGA1064_COL_PAL, lut[i].red >> 8);
123 WREG8(DAC_INDEX + MGA1064_COL_PAL, lut[i].green >> 8);
124 WREG8(DAC_INDEX + MGA1064_COL_PAL, lut[i].blue >> 8);
125 }
126 }
127 }
128
--
0-DAY CI Kernel Test Service
https://01.org/lkp
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Jocelyn Falempe <jfalempe@redhat.com>,
dri-devel@lists.freedesktop.org, lyude@redhat.com,
tzimmermann@suse.de
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
michel@daenzer.net, Jocelyn Falempe <jfalempe@redhat.com>
Subject: Re: [PATCH] mgag200: Enable atomic gamma lut update
Date: Tue, 10 May 2022 05:37:26 +0800 [thread overview]
Message-ID: <202205100516.IJQ7MRHW-lkp@intel.com> (raw)
In-Reply-To: <20220509094930.44613-1-jfalempe@redhat.com>
Hi Jocelyn,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on tegra-drm/drm/tegra/for-next]
[also build test ERROR on v5.18-rc6]
[cannot apply to drm/drm-next drm-tip/drm-tip airlied/drm-next next-20220509]
[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]
url: https://github.com/intel-lab-lkp/linux/commits/Jocelyn-Falempe/mgag200-Enable-atomic-gamma-lut-update/20220509-175430
base: git://anongit.freedesktop.org/tegra/linux.git drm/tegra/for-next
config: mips-randconfig-r015-20220509 (https://download.01.org/0day-ci/archive/20220510/202205100516.IJQ7MRHW-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project a385645b470e2d3a1534aae618ea56b31177639f)
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
# install mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://github.com/intel-lab-lkp/linux/commit/c0e0a39a5acd3aa9d0cd6f25679bd16930233491
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Jocelyn-Falempe/mgag200-Enable-atomic-gamma-lut-update/20220509-175430
git checkout c0e0a39a5acd3aa9d0cd6f25679bd16930233491
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash drivers/gpu/drm/mgag200/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/mgag200/mgag200_mode.c:97:3: error: void function 'mga_crtc_update_lut' should not return a value [-Wreturn-type]
return
^
1 error generated.
vim +/mga_crtc_update_lut +97 drivers/gpu/drm/mgag200/mgag200_mode.c
88
89 static void mga_crtc_update_lut(struct mga_device *mdev,
90 struct drm_crtc_state *state,
91 u8 depth)
92 {
93 struct drm_color_lut * lut;
94 int i;
95
96 if (!state->color_mgmt_changed || !state->gamma_lut)
> 97 return
98
99 lut = (struct drm_color_lut *) state->gamma_lut->data;
100 WREG8(DAC_INDEX + MGA1064_INDEX, 0);
101
102 if (depth == 15) {
103 /* 16 bits r5g5b5a1 */
104 for (i = 0; i < MGAG200_LUT_SIZE; i += 8) {
105 WREG8(DAC_INDEX + MGA1064_COL_PAL, lut[i].red >> 8);
106 WREG8(DAC_INDEX + MGA1064_COL_PAL, lut[i].green >> 8);
107 WREG8(DAC_INDEX + MGA1064_COL_PAL, lut[i].blue >> 8);
108 }
109 } else if (depth == 16) {
110 /* 16 bits r5g6b5, as green has one more bit,
111 * add padding with 0 for red and blue. */
112 for (i = 0; i < MGAG200_LUT_SIZE; i += 4) {
113 u8 red = 2 * i < MGAG200_LUT_SIZE ? lut[2 * i].red >> 8 : 0;
114 u8 blue = 2 * i < MGAG200_LUT_SIZE ? lut[2 * i].red >> 8 : 0;
115 WREG8(DAC_INDEX + MGA1064_COL_PAL, red);
116 WREG8(DAC_INDEX + MGA1064_COL_PAL, lut[i].green >> 8);
117 WREG8(DAC_INDEX + MGA1064_COL_PAL, blue);
118 }
119 } else {
120 /* 24 bits r8g8b8 */
121 for (i = 0; i < MGAG200_LUT_SIZE; i++) {
122 WREG8(DAC_INDEX + MGA1064_COL_PAL, lut[i].red >> 8);
123 WREG8(DAC_INDEX + MGA1064_COL_PAL, lut[i].green >> 8);
124 WREG8(DAC_INDEX + MGA1064_COL_PAL, lut[i].blue >> 8);
125 }
126 }
127 }
128
--
0-DAY CI Kernel Test Service
https://01.org/lkp
next prev parent reply other threads:[~2022-05-09 21:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-09 9:49 [PATCH] mgag200: Enable atomic gamma lut update Jocelyn Falempe
2022-05-09 14:22 ` Thomas Zimmermann
2022-05-09 15:43 ` Jocelyn Falempe
2022-05-10 7:13 ` Thomas Zimmermann
2022-05-09 16:04 ` Michel Dänzer
2022-05-09 21:00 ` Jocelyn Falempe
2022-05-10 6:58 ` Thomas Zimmermann
2022-05-09 21:37 ` kernel test robot [this message]
2022-05-09 21:37 ` 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=202205100516.IJQ7MRHW-lkp@intel.com \
--to=lkp@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=jfalempe@redhat.com \
--cc=kbuild-all@lists.01.org \
--cc=llvm@lists.linux.dev \
--cc=lyude@redhat.com \
--cc=michel@daenzer.net \
--cc=tzimmermann@suse.de \
/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.