Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1330778rwd; Wed, 7 Jun 2023 14:43:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7diZkTC5N+tYo75eeWZ0BO9Ad3f/AglzUnpfUiUfU0vYseo/G0pFQAmWUaXDxbm0BKiuEz X-Received: by 2002:a17:902:d3d3:b0:1ac:a661:a4b0 with SMTP id w19-20020a170902d3d300b001aca661a4b0mr3243963plb.57.1686174232732; Wed, 07 Jun 2023 14:43:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686174232; cv=none; d=google.com; s=arc-20160816; b=dm150JXPreOAofgXd4TDBIpkgWX+vsL2DfAoilB9UtkF+XaXPrUBBiHDquUfymz1iy AcexUKHVPBzRU0XtfWYfhaFpWpz8CaZP9fs1FdfkBRI2LuzJRzxS9zWF+8GEztc3sGKY hMhkLvHbPWtV3kI9+5ut6lrCxfJYuEMunQXOmd2+qG69RcR0ukX2w55bDXb2Eh91KPPb a9yDczu4tBWcOvFa+G7tp6MaycAiG1bTDnfbI6prAMXpfz6WHoaYkt0SbjQoueZoHy7o y9uHw9oGKDXgbfVqhwtOlLuBeA6rv+vNoD/mYdLo+ftQdz/m1GpjP9A8NNfBBN0cQUH2 Eogg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Shs7o/hC2GAo4sm2pspvoIXSOTe+CTLyvscIxbtW8YA=; b=mWg4sGi2vQaF+rvYORkxNaeyHhvjAUaDlYKdQDcsvFAjNgzfhMF+BBluIA1LGmFtry RpcVVmjJZ31uHgfl8wmjhtMetZL59XOw2rV5NHHYSJDDHBPQ228ZjCYehufluU+6WNEX 8YxFWbq3ubzjk9E95qvuDzu8KTf3eoK77Y5lhXEZLBqE4ANXshY7rnm380//jyEN+mA8 5rupXHmjOFxFfNijGjArYjLaTS0X6DB3dex/tsrz/aX64mzTj9RG1SIBQ0tVgafwceCm Q3lhSTgsOTOe3dYrTFl2tw2iv/gyx9wNgIo2u9HoGPr1hrAHMYYut3ZLy0Eu9gAZy5oI UqcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ikZK19vd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jn15-20020a170903050f00b001a6b273fef3si9239995plb.442.2023.06.07.14.43.38; Wed, 07 Jun 2023 14:43:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ikZK19vd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232759AbjFGUUu (ORCPT + 99 others); Wed, 7 Jun 2023 16:20:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232805AbjFGUUn (ORCPT ); Wed, 7 Jun 2023 16:20:43 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1C8B2718; Wed, 7 Jun 2023 13:20:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686169218; x=1717705218; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=sLX5G4ZkL+Cdg+Izw3VSjARG+9fbg+jRISFwXpa7Fx4=; b=ikZK19vdY5DandqHR2KjSHT2sNys18QF60EWv01pU2yxkCmWtFqNAI6u BvxRJTDwN4MlPyg70GPW7hS4RAoEDIKhz02xMpAIUlKXtgxuZ16ln/qy1 XS3+K11XCkD4aOGp7zHQkAC36ZgAEjqDUdfaQhqFP2DdrFDNgDohDP1cl r4dgTecCmLEGWxp18S26fLXVAwlVWv6yPJ87YxWhSQArNt/6MzcS661vp i22q9mp5gTux/rnWpPWdUd5PD/sqCycawVdD5cXs9VmFjzsqbyAzqopLx FK1Mh/E8On/loz9MNfBAjRnR43INczttJjO0kGeR7JjagUraMsr8OwWD6 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10734"; a="422943177" X-IronPort-AV: E=Sophos;i="6.00,225,1681196400"; d="scan'208";a="422943177" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2023 13:19:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10734"; a="799528903" X-IronPort-AV: E=Sophos;i="6.00,225,1681196400"; d="scan'208";a="799528903" Received: from lkp-server01.sh.intel.com (HELO 15ab08e44a81) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 07 Jun 2023 13:19:41 -0700 Received: from kbuild by 15ab08e44a81 with local (Exim 4.96) (envelope-from ) id 1q6zd6-0006t8-2O; Wed, 07 Jun 2023 20:19:40 +0000 Date: Thu, 8 Jun 2023 04:19:29 +0800 From: kernel test robot To: Danilo Krummrich , airlied@gmail.com, daniel@ffwll.ch, tzimmermann@suse.de, mripard@kernel.org, corbet@lwn.net, christian.koenig@amd.com, bskeggs@redhat.com, Liam.Howlett@oracle.com, matthew.brost@intel.com, boris.brezillon@collabora.com, alexdeucher@gmail.com, ogabbay@kernel.org, bagasdotme@gmail.com, willy@infradead.org, jason@jlekstrand.net Cc: oe-kbuild-all@lists.linux.dev, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Danilo Krummrich Subject: Re: [PATCH drm-next v4 04/14] drm: debugfs: provide infrastructure to dump a DRM GPU VA space Message-ID: <202306080453.W2Dcrevr-lkp@intel.com> References: <20230606223130.6132-5-dakr@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230606223130.6132-5-dakr@redhat.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Danilo, kernel test robot noticed the following build warnings: [auto build test WARNING on 33a86170888b7e4aa0cea94ebb9c67180139cea9] url: https://github.com/intel-lab-lkp/linux/commits/Danilo-Krummrich/drm-execution-context-for-GEM-buffers-v4/20230607-063442 base: 33a86170888b7e4aa0cea94ebb9c67180139cea9 patch link: https://lore.kernel.org/r/20230606223130.6132-5-dakr%40redhat.com patch subject: [PATCH drm-next v4 04/14] drm: debugfs: provide infrastructure to dump a DRM GPU VA space config: i386-randconfig-s001-20230607 (https://download.01.org/0day-ci/archive/20230608/202306080453.W2Dcrevr-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce: # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://github.com/intel-lab-lkp/linux/commit/513e00e3cf4889b115cd8ab122b8e51adf2805ab git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Danilo-Krummrich/drm-execution-context-for-GEM-buffers-v4/20230607-063442 git checkout 513e00e3cf4889b115cd8ab122b8e51adf2805ab # save the config file mkdir build_dir && cp config build_dir/.config make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 olddefconfig make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/ 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 | Closes: https://lore.kernel.org/oe-kbuild-all/202306080453.W2Dcrevr-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) >> drivers/gpu/drm/drm_debugfs.c:213:33: sparse: sparse: non size-preserving pointer to integer cast vim +213 drivers/gpu/drm/drm_debugfs.c 178 179 /** 180 * drm_debugfs_gpuva_info - dump the given DRM GPU VA space 181 * @m: pointer to the &seq_file to write 182 * @mgr: the &drm_gpuva_manager representing the GPU VA space 183 * 184 * Dumps the GPU VA mappings of a given DRM GPU VA manager. 185 * 186 * For each DRM GPU VA space drivers should call this function from their 187 * &drm_info_list's show callback. 188 * 189 * Returns: 0 on success, -ENODEV if the &mgr is not initialized 190 */ 191 int drm_debugfs_gpuva_info(struct seq_file *m, 192 struct drm_gpuva_manager *mgr) 193 { 194 DRM_GPUVA_ITER(it, mgr, 0); 195 struct drm_gpuva *va, *kva = &mgr->kernel_alloc_node; 196 197 if (!mgr->name) 198 return -ENODEV; 199 200 seq_printf(m, "DRM GPU VA space (%s) [0x%016llx;0x%016llx]\n", 201 mgr->name, mgr->mm_start, mgr->mm_start + mgr->mm_range); 202 seq_printf(m, "Kernel reserved node [0x%016llx;0x%016llx]\n", 203 kva->va.addr, kva->va.addr + kva->va.range); 204 seq_puts(m, "\n"); 205 seq_puts(m, " VAs | start | range | end | object | object offset\n"); 206 seq_puts(m, "-------------------------------------------------------------------------------------------------------------\n"); 207 drm_gpuva_iter_for_each(va, it) { 208 if (unlikely(va == &mgr->kernel_alloc_node)) 209 continue; 210 211 seq_printf(m, " | 0x%016llx | 0x%016llx | 0x%016llx | 0x%016llx | 0x%016llx\n", 212 va->va.addr, va->va.range, va->va.addr + va->va.range, > 213 (u64)va->gem.obj, va->gem.offset); 214 } 215 216 return 0; 217 } 218 EXPORT_SYMBOL(drm_debugfs_gpuva_info); 219 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki