Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp6677907rwb; Wed, 18 Jan 2023 08:05:57 -0800 (PST) X-Google-Smtp-Source: AMrXdXvWr8B2K7Z+xvWQt9CinbabXFNle2pGt/SJG/5CvXJapR+kOxsI5lNaB5ZUYJXq0OyDhTJd X-Received: by 2002:a17:906:f74a:b0:86b:5507:8aef with SMTP id jp10-20020a170906f74a00b0086b55078aefmr7209648ejb.65.1674057957519; Wed, 18 Jan 2023 08:05:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674057957; cv=none; d=google.com; s=arc-20160816; b=0XrL/LhbjZzM7okK/1E0FT99mQwkUzbrR794airYsfanOEeQA48RDAXqtimHDKBJsh uv0SxeMHfo2GsYhw0CZv7k8tHPe7NgkSMQEVH4G6j8ISQki6ALBeXT/uGZB0YmsZjVcJ LpKRh9RpvOmvrAga4Op0XTzM+bO8AbQgmZG2l0W/96CQteOnHaWzAqtOXwSu93yG6cRb TrU8l8DdOTuHFfDAXPyPhweVJ8fuaZW6ri1tuxrncS8EAG1sr05EzH5/xzsy+2N2FZzT OdzUvBeTsazptwbR4gcqXNGugknnE3xTs7OT2OCVolvNC0xQJl8vb8Ztv/vsvPXbCL0P B/Ew== 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=Al7NmzUKyfqTXldHXM0SZ8msUMgjd7AXoNFtBraXJJM=; b=I7WTbHHVEbznK7FHWePptzIMyDVLGBqbsaZhjlQLQbtJ467RPZY34fWB8rQoHcVu5R I4tTWBqFd+CoBtA7+NXuhg92xnhYjOtNrUw+qlalWAmjkhbMKCY+lvrIvaLTD1GglRpQ jYCssDJQcNnBIT0oLDwOI7TDMctyxu3jnvchkKO2sXu/J2idWZs2VLk346wEbaHNAABz Id3KTNoZTGZj7KycwxBCGZuaSWuKhI2pMc590j4x6RwkhPCQz5CLlSoxXmI/V5hs0CAR +XigO41J94OmSYix/Fw7H3f44rEMNKb4rExc2orrtZ5VeC8eUpAEFJypNJXP0nI2og1m 6pVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="F45Yg/+T"; 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 qa34-20020a17090786a200b0086eddd33abbsi14305751ejc.202.2023.01.18.08.05.46; Wed, 18 Jan 2023 08:05:57 -0800 (PST) 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="F45Yg/+T"; 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 S229616AbjARPvw (ORCPT + 45 others); Wed, 18 Jan 2023 10:51:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231361AbjARPut (ORCPT ); Wed, 18 Jan 2023 10:50:49 -0500 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E04454B33; Wed, 18 Jan 2023 07:49:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674056946; x=1705592946; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ubxFEVMm5YYB3VrYIrqG9EKRH6fdQ+yOpwcejaGig3k=; b=F45Yg/+TxzFDdBoTl3Lz6gceN30d69WCMBoVJ+Lx3CtJgvOvkY1bcvBl 5oCNPDl8ck3Ur8/nRkRqpTc0kP9ACBw0G3Qq1TloeLNbfWO7/E+WLsL10 POLfEXdH2czTpCgQCVvizq43MB2chMFh6PPK/Wjb8ZwbSgL966ijRsa/7 2XkN2J2S3gPFrsHtTwUIFq4loyZVlsZyp6IOAxIrSPUGmgBBvI8Ti37I4 Jn2vaPY4ThCOwfBkr5jrDhejyBp/qg2rzwKvM357LzWHY1cty6kyoFQ3u pjHIgVATofRQyySUy88t2BhA8EMb2vh742ZAh63xKYGa8u/BDDO2j4e0W g==; X-IronPort-AV: E=McAfee;i="6500,9779,10594"; a="322702217" X-IronPort-AV: E=Sophos;i="5.97,226,1669104000"; d="scan'208";a="322702217" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jan 2023 07:48:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10594"; a="661760688" X-IronPort-AV: E=Sophos;i="5.97,226,1669104000"; d="scan'208";a="661760688" Received: from lkp-server01.sh.intel.com (HELO 5646d64e7320) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 18 Jan 2023 07:48:54 -0800 Received: from kbuild by 5646d64e7320 with local (Exim 4.96) (envelope-from ) id 1pIAgH-0000TM-0x; Wed, 18 Jan 2023 15:48:53 +0000 Date: Wed, 18 Jan 2023 23:47:59 +0800 From: kernel test robot To: Danilo Krummrich , daniel@ffwll.ch, airlied@redhat.com, christian.koenig@amd.com, bskeggs@redhat.com, jason@jlekstrand.net, tzimmermann@suse.de, mripard@kernel.org, corbet@lwn.net Cc: oe-kbuild-all@lists.linux.dev, nouveau@lists.freedesktop.org, Danilo Krummrich , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-doc@vger.kernel.org Subject: Re: [PATCH drm-next 04/14] drm: debugfs: provide infrastructure to dump a DRM GPU VA space Message-ID: <202301182345.0gL7pjUf-lkp@intel.com> References: <20230118061256.2689-5-dakr@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230118061256.2689-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 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, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on 0b45ac1170ea6416bc1d36798414c04870cd356d] url: https://github.com/intel-lab-lkp/linux/commits/Danilo-Krummrich/drm-execution-context-for-GEM-buffers/20230118-141552 base: 0b45ac1170ea6416bc1d36798414c04870cd356d patch link: https://lore.kernel.org/r/20230118061256.2689-5-dakr%40redhat.com patch subject: [PATCH drm-next 04/14] drm: debugfs: provide infrastructure to dump a DRM GPU VA space config: parisc-randconfig-s041-20230115 (https://download.01.org/0day-ci/archive/20230118/202301182345.0gL7pjUf-lkp@intel.com/config) compiler: hppa-linux-gcc (GCC) 12.1.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://github.com/intel-lab-lkp/linux/commit/e00f79934034ce7eb4e7fc0d722a3d28d75d44bf 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/20230118-141552 git checkout e00f79934034ce7eb4e7fc0d722a3d28d75d44bf # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=parisc olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=parisc SHELL=/bin/bash drivers/gpu/drm/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/gpu/drm/drm_debugfs.c:228:33: sparse: sparse: non size-preserving pointer to integer cast vim +228 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 regions and 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 struct drm_gpuva_region *reg; 195 struct drm_gpuva *va; 196 197 if (!mgr->name) 198 return -ENODEV; 199 200 seq_printf(m, "DRM GPU VA space (%s)\n", mgr->name); 201 seq_puts (m, "\n"); 202 seq_puts (m, " VA regions | start | range | end | sparse\n"); 203 seq_puts (m, "------------------------------------------------------------------------------------\n"); 204 seq_printf(m, " VA space | 0x%016llx | 0x%016llx | 0x%016llx | -\n", 205 mgr->mm_start, mgr->mm_range, mgr->mm_start + mgr->mm_range); 206 seq_puts (m, "-----------------------------------------------------------------------------------\n"); 207 drm_gpuva_for_each_region(reg, mgr) { 208 struct drm_mm_node *node = ®->node; 209 210 if (node == &mgr->kernel_alloc_node) { 211 seq_printf(m, " kernel node | 0x%016llx | 0x%016llx | 0x%016llx | -\n", 212 node->start, node->size, node->start + node->size); 213 continue; 214 } 215 216 seq_printf(m, " | 0x%016llx | 0x%016llx | 0x%016llx | %s\n", 217 node->start, node->size, node->start + node->size, 218 reg->sparse ? "true" : "false"); 219 } 220 seq_puts(m, "\n"); 221 seq_puts(m, " VAs | start | range | end | object | object offset\n"); 222 seq_puts(m, "-------------------------------------------------------------------------------------------------------------\n"); 223 drm_gpuva_for_each_va(va, mgr) { 224 struct drm_mm_node *node = &va->node; 225 226 seq_printf(m, " | 0x%016llx | 0x%016llx | 0x%016llx | 0x%016llx | 0x%016llx\n", 227 node->start, node->size, node->start + node->size, > 228 (u64)va->gem.obj, va->gem.offset); 229 } 230 231 return 0; 232 } 233 EXPORT_SYMBOL(drm_debugfs_gpuva_info); 234 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests