From: kernel test robot <lkp@intel.com>
To: Alan Previn <alan.previn.teres.alexis@intel.com>,
intel-gfx@lists.freedesktop.org
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
Alan Previn <alan.previn.teres.alexis@intel.com>
Subject: Re: [Intel-gfx] [PATCH v6 01/13] drm/i915/guc: Update GuC ADS size for error capture lists
Date: Sat, 26 Feb 2022 17:08:43 +0800 [thread overview]
Message-ID: <202202261716.Sl8xnkv3-lkp@intel.com> (raw)
In-Reply-To: <20220226055526.665514-2-alan.previn.teres.alexis@intel.com>
Hi Alan,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on drm-intel/for-linux-next]
[also build test WARNING on drm/drm-next next-20220225]
[cannot apply to drm-tip/drm-tip drm-exynos/exynos-drm-next tegra-drm/drm/tegra/for-next airlied/drm-next v5.17-rc5]
[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/0day-ci/linux/commits/Alan-Previn/Add-GuC-Error-Capture-Support/20220226-135414
base: git://anongit.freedesktop.org/drm-intel for-linux-next
config: x86_64-randconfig-a005 (https://download.01.org/0day-ci/archive/20220226/202202261716.Sl8xnkv3-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
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/0day-ci/linux/commit/4c1018d0e536adbe13cf0b71049b0a94073eec7e
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Alan-Previn/Add-GuC-Error-Capture-Support/20220226-135414
git checkout 4c1018d0e536adbe13cf0b71049b0a94073eec7e
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/gpu/drm/i915/
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/i915/gt/uc/intel_guc_capture.c:222:1: warning: no previous prototype for function 'intel_guc_capture_getlistsize' [-Wmissing-prototypes]
intel_guc_capture_getlistsize(struct intel_guc *guc, u32 owner, u32 type, u32 classid,
^
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:221:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int
^
static
>> drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:252:1: warning: no previous prototype for function 'intel_guc_capture_getlist' [-Wmissing-prototypes]
intel_guc_capture_getlist(struct intel_guc *guc, u32 owner, u32 type, u32 classid,
^
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:251:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int
^
static
>> drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:321:6: warning: no previous prototype for function 'intel_guc_capture_destroy' [-Wmissing-prototypes]
void intel_guc_capture_destroy(struct intel_guc *guc)
^
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:321:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void intel_guc_capture_destroy(struct intel_guc *guc)
^
static
>> drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:332:5: warning: no previous prototype for function 'intel_guc_capture_init' [-Wmissing-prototypes]
int intel_guc_capture_init(struct intel_guc *guc)
^
drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c:332:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int intel_guc_capture_init(struct intel_guc *guc)
^
static
4 warnings generated.
vim +/intel_guc_capture_getlistsize +222 drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c
220
221 int
> 222 intel_guc_capture_getlistsize(struct intel_guc *guc, u32 owner, u32 type, u32 classid,
223 size_t *size)
224 {
225 struct drm_i915_private *i915 = guc_to_gt(guc)->i915;
226 struct __guc_state_capture_priv *gc = guc->capture.priv;
227 struct __guc_capture_ads_cache *cache = &gc->ads_cache[owner][type][classid];
228 int num_regs;
229
230 if (!gc->reglists)
231 return -ENODEV;
232
233 if (cache->is_valid) {
234 *size = cache->size;
235 return cache->status;
236 }
237
238 num_regs = guc_cap_list_num_regs(gc, owner, type, classid);
239 if (!num_regs) {
240 guc_capture_warn_with_list_info(i915, "Missing register list size",
241 owner, type, classid);
242 return -ENODATA;
243 }
244
245 *size = PAGE_ALIGN((sizeof(struct guc_debug_capture_list)) +
246 (num_regs * sizeof(struct guc_mmio_reg)));
247
248 return 0;
249 }
250
251 int
> 252 intel_guc_capture_getlist(struct intel_guc *guc, u32 owner, u32 type, u32 classid,
253 void **listptr)
254 {
255 struct __guc_state_capture_priv *gc = guc->capture.priv;
256 struct __guc_capture_ads_cache *cache = &gc->ads_cache[owner][type][classid];
257 struct guc_debug_capture_list *listnode;
258 u8 *caplist, *tmp;
259 size_t size = 0;
260 int ret, num_regs;
261
262 if (!gc->reglists)
263 return -ENODEV;
264
265 if (cache->is_valid) {
266 *listptr = cache->list;
267 return cache->status;
268 }
269
270 ret = intel_guc_capture_getlistsize(guc, owner, type, classid, &size);
271 if (ret) {
272 cache->list = NULL;
273 cache->size = 0;
274 cache->status = ret;
275 cache->is_valid = true;
276 return ret;
277 }
278
279 caplist = kzalloc(size, GFP_KERNEL);
280 if (!caplist)
281 return -ENOMEM;
282
283 /* populate capture list header */
284 tmp = caplist;
285 num_regs = guc_cap_list_num_regs(guc->capture.priv, owner, type, classid);
286 listnode = (struct guc_debug_capture_list *)tmp;
287 listnode->header.info = FIELD_PREP(GUC_CAPTURELISTHDR_NUMDESCR, (u32)num_regs);
288
289 /* populate list of register descriptor */
290 tmp += sizeof(struct guc_debug_capture_list);
291 guc_capture_list_init(guc, owner, type, classid, (struct guc_mmio_reg *)tmp, num_regs);
292
293 /* cache this list */
294 cache->list = caplist;
295 cache->size = size;
296 cache->status = 0;
297 cache->is_valid = true;
298
299 *listptr = caplist;
300
301 return 0;
302 }
303
304 static void
305 guc_capture_free_ads_cache(struct __guc_state_capture_priv *gc)
306 {
307 int i, j, k;
308 struct __guc_capture_ads_cache *cache;
309
310 for (i = 0; i < GUC_CAPTURE_LIST_INDEX_MAX; ++i) {
311 for (j = 0; j < GUC_CAPTURE_LIST_TYPE_MAX; ++j) {
312 for (k = 0; k < GUC_MAX_ENGINE_CLASSES; ++k) {
313 cache = &gc->ads_cache[i][j][k];
314 if (cache->is_valid && cache->list)
315 kfree(cache->list);
316 }
317 }
318 }
319 }
320
> 321 void intel_guc_capture_destroy(struct intel_guc *guc)
322 {
323 if (!guc->capture.priv)
324 return;
325
326 guc_capture_free_ads_cache(guc->capture.priv);
327
328 kfree(guc->capture.priv);
329 guc->capture.priv = NULL;
330 }
331
> 332 int intel_guc_capture_init(struct intel_guc *guc)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
next prev parent reply other threads:[~2022-02-26 9:09 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-26 5:55 [Intel-gfx] [PATCH v6 00/13] Add GuC Error Capture Support Alan Previn
2022-02-26 5:55 ` [Intel-gfx] [PATCH v6 01/13] drm/i915/guc: Update GuC ADS size for error capture lists Alan Previn
2022-02-26 9:08 ` kernel test robot [this message]
2022-02-26 9:08 ` kernel test robot
2022-02-26 5:55 ` [Intel-gfx] [PATCH v6 02/13] drm/i915/guc: Add XE_LP static registers for GuC error capture Alan Previn
2022-02-26 5:55 ` [Intel-gfx] [PATCH v6 03/13] drm/i915/guc: Add XE_LP steered register lists support Alan Previn
2022-02-26 5:55 ` [Intel-gfx] [PATCH v6 04/13] drm/i915/guc: Add DG2 registers for GuC error state capture Alan Previn
2022-02-26 5:55 ` [Intel-gfx] [PATCH v6 05/13] drm/i915/guc: Add Gen9 " Alan Previn
2022-02-26 5:55 ` [Intel-gfx] [PATCH v6 06/13] drm/i915/guc: Add GuC's error state capture output structures Alan Previn
2022-02-26 5:55 ` [Intel-gfx] [PATCH v6 07/13] drm/i915/guc: Update GuC-log relay function names Alan Previn
2022-02-26 5:55 ` [Intel-gfx] [PATCH v6 08/13] drm/i915/guc: Add capture region into intel_guc_log Alan Previn
2022-02-26 5:55 ` [Intel-gfx] [PATCH v6 09/13] drm/i915/guc: Check sizing of guc_capture output Alan Previn
2022-02-26 5:55 ` [Intel-gfx] [PATCH v6 10/13] drm/i915/guc: Extract GuC error capture lists on G2H notification Alan Previn
2022-02-26 5:55 ` [Intel-gfx] [PATCH v6 11/13] drm/i915/guc: Pre-allocate output nodes for extraction Alan Previn
2022-02-26 5:55 ` [Intel-gfx] [PATCH v6 12/13] drm/i915/guc: Plumb GuC-capture into gpu_coredump Alan Previn
2022-02-26 5:55 ` [Intel-gfx] [PATCH v6 13/13] drm/i915/guc: Print the GuC error capture output register list Alan Previn
2022-02-26 6:20 ` [Intel-gfx] ✗ Fi.CI.BUILD: failure for Add GuC Error Capture Support (rev6) Patchwork
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=202202261716.Sl8xnkv3-lkp@intel.com \
--to=lkp@intel.com \
--cc=alan.previn.teres.alexis@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=kbuild-all@lists.01.org \
--cc=llvm@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