From: kernel test robot <lkp@intel.com>
To: Arun R Murthy <arun.r.murthy@intel.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH 04/10] drm/i915/histogram: Add support for histogram
Date: Wed, 11 Dec 2024 08:08:14 +0800 [thread overview]
Message-ID: <202412110725.YaOtG2y8-lkp@intel.com> (raw)
In-Reply-To: <20241209162504.2146697-5-arun.r.murthy@intel.com>
Hi Arun,
kernel test robot noticed the following build errors:
[auto build test ERROR on linus/master]
[also build test ERROR on drm-intel/for-linux-next drm-intel/for-linux-next-fixes drm-tip/drm-tip v6.13-rc2 next-20241210]
[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/Arun-R-Murthy/drm-crtc-Add-histogram-properties/20241210-003717
base: linus/master
patch link: https://lore.kernel.org/r/20241209162504.2146697-5-arun.r.murthy%40intel.com
patch subject: [PATCH 04/10] drm/i915/histogram: Add support for histogram
config: x86_64-randconfig-002-20241210 (https://download.01.org/0day-ci/archive/20241211/202412110725.YaOtG2y8-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241211/202412110725.YaOtG2y8-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412110725.YaOtG2y8-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/gpu/drm/i915/display/intel_histogram.c:7:
In file included from include/drm/drm_file.h:39:
In file included from include/drm/drm_prime.h:37:
In file included from include/linux/scatterlist.h:8:
In file included from include/linux/mm.h:2223:
include/linux/vmstat.h:518:36: error: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Werror,-Wenum-enum-conversion]
518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
>> drivers/gpu/drm/i915/display/intel_histogram.c:145:7: error: variable 'data' is uninitialized when used here [-Werror,-Wuninitialized]
145 | if (!data) {
| ^~~~
drivers/gpu/drm/i915/display/intel_histogram.c:134:11: note: initialize the variable 'data' to silence this warning
134 | u32 *data;
| ^
| = NULL
2 errors generated.
vim +/data +145 drivers/gpu/drm/i915/display/intel_histogram.c
125
126 int intel_histogram_set_iet_lut(struct intel_crtc *intel_crtc,
127 struct drm_property_blob *blob)
128 {
129 struct intel_histogram *histogram = intel_crtc->histogram;
130 struct intel_display *display = to_intel_display(intel_crtc);
131 int pipe = intel_crtc->pipe;
132 int i = 0;
133 struct drm_iet *iet;
134 u32 *data;
135 int ret;
136
137 if (!histogram)
138 return -EINVAL;
139
140 if (!histogram->enable) {
141 drm_err(display->drm, "histogram not enabled");
142 return -EINVAL;
143 }
144
> 145 if (!data) {
146 drm_err(display->drm, "enhancement LUT data is NULL");
147 return -EINVAL;
148 }
149
150 /* Set DPST_CTL Bin Reg function select to IE & wait for a vblabk */
151 intel_de_rmw(display, DPST_CTL(pipe),
152 DPST_CTL_BIN_REG_FUNC_SEL, DPST_CTL_BIN_REG_FUNC_IE);
153
154 drm_crtc_wait_one_vblank(&intel_crtc->base);
155
156 /* Set DPST_CTL Bin Register Index to 0 */
157 intel_de_rmw(display, DPST_CTL(pipe),
158 DPST_CTL_BIN_REG_MASK, DPST_CTL_BIN_REG_CLEAR);
159
160 iet = (struct drm_iet *)blob->data;
161 data = kzalloc(sizeof(data) * iet->nr_elements, GFP_KERNEL);
162 if (!data)
163 return -ENOMEM;
164 ret = copy_from_user(data, (uint32_t __user *)(unsigned long)iet->data_ptr,
165 sizeof(uint32_t) * iet->nr_elements);
166 if (ret)
167 return ret;
168
169 for (i = 0; i < HISTOGRAM_IET_LENGTH; i++) {
170 intel_de_rmw(display, DPST_BIN(pipe),
171 DPST_BIN_DATA_MASK, data[i]);
172 drm_dbg_atomic(display->drm, "iet_lut[%d]=%x\n", i, data[i]);
173 }
174 kfree(data);
175 drm_property_blob_put(intel_crtc->base.state->histogram_iet);
176
177 return 0;
178 }
179
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next parent reply other threads:[~2024-12-11 0:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20241209162504.2146697-5-arun.r.murthy@intel.com>
2024-12-11 0:08 ` kernel test robot [this message]
2024-12-12 10:18 ` [PATCH 04/10] drm/i915/histogram: Add support for histogram 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=202412110725.YaOtG2y8-lkp@intel.com \
--to=lkp@intel.com \
--cc=arun.r.murthy@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox