Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp795940imw; Mon, 4 Jul 2022 20:49:29 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vZsmcj5ed8aOxz9139CIE+r0VETEx7TIbP14KIRQ6rck7U//3jeAEwsDTtrKm7a+aFnHOx X-Received: by 2002:a17:90b:4c0a:b0:1ec:d3b2:ed22 with SMTP id na10-20020a17090b4c0a00b001ecd3b2ed22mr39859817pjb.2.1656992968940; Mon, 04 Jul 2022 20:49:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656992968; cv=none; d=google.com; s=arc-20160816; b=OWsEuFiJHwboftTwO8M2bJr6Rc8PU9FazdCdnczmjJ14fIiNmVBFX0wBdHYoF/tbjY 1WbPiOsxWPRiHRlS6OmV6z11B5qZCLPxMZEuHOohsvhGv4rFA+T/Gs4POna58UPwxMlM qTp4Z0rQKkvSQR2aVzkhlgO/BzEShRDFzJdNY2bhD+Hn9pGlREnwntpzFzxVBti/PYph 8vbj69ACuQmGow2uk44QMeU5QQl4MFwvbG8hKvmst0LyaPcoi5mloJvTIOoKqOr+75A3 PJKUqwKOZGXGQVFwYxh94oYhCbtPDBGpIiz5HPl8fq4S1pNYlz2CzIKPtKB7mqhoaIR3 FhWA== 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=VPGJmurVXKdYSYnuAv0Zj1E8fQzESuaYEGmPRZdoOJU=; b=Zc2wjcYBe18keLZWwfJzsgU9ONW0YYHa8PQW5Yb85lk5unD0+3+jPtwcL0tUVf8mfp +C8gqB5oF3vgywCBStVWY3gWRD6WNHq+N1KnUlYQ8ZLvpCYGuyJjIv39bvLTYj9S26Fx VMohWkL9xA5oquuRO8YK8FsAd6wsf5OluwiOepg8aDW2pYbevLXsFjv9cu5NlYCBHsPb wI5Kl3PH2i0CJ8VqJwgl5p2kPYVUeOf9eQMc1kdEWwxOvI5JQAZYBhI/eStd56MGe9CW WCF+UCWS2OKjbg+r3tbPE+P/cpdV88nW5OS9dkUWHMP/vjlDPd1QtPhtPEzXpVhMv+ED MbgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HQWhATjY; 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 ji9-20020a170903324900b00168b2d83958si1756685plb.133.2022.07.04.20.49.16; Mon, 04 Jul 2022 20:49:28 -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=HQWhATjY; 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 S234675AbiGEC6v (ORCPT + 99 others); Mon, 4 Jul 2022 22:58:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234661AbiGEC6t (ORCPT ); Mon, 4 Jul 2022 22:58:49 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05ED0F05; Mon, 4 Jul 2022 19:58:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656989927; x=1688525927; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=IDbhF7wCQCWGlR+mgr4YPKJMsld6Uv/Sy7LrfLbGeWc=; b=HQWhATjYqIlOr0mMR7zjkYlB1ReffIAXNsNgfuKHG2Q5MpaAmH4WMTQA 5YlslWS5BIqgJhBvYubUbDl0+OTT6XXzPqGMJAMQGjLlMf7YU6oNwGrWH gCju5SdxY0NQdqeLbWoZab5+KDcn9qESDRPVvYYlwvexkHIkN8pQtYtPb Xtd5p9u2c/dFkcvZKG/OPbl3LQbD122gVoXLt77X8Y1w+KNxKXAWhTC6n Wv06vuDB5ZwmjSD6L8RTTmSdjaTV59XXgpS+iYGZKAclUT99kl1k03vau SrBmUFIII2kj+z4xpIYinsXJlK8VRz8xReLSClhq673RMrGlV8swAP0sb Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10398"; a="283263192" X-IronPort-AV: E=Sophos;i="5.92,245,1650956400"; d="scan'208";a="283263192" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2022 19:58:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,245,1650956400"; d="scan'208";a="597146062" Received: from lkp-server01.sh.intel.com (HELO 68b931ab7ac1) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 04 Jul 2022 19:58:44 -0700 Received: from kbuild by 68b931ab7ac1 with local (Exim 4.95) (envelope-from ) id 1o8Ylv-000Idm-Jw; Tue, 05 Jul 2022 02:58:43 +0000 Date: Tue, 5 Jul 2022 10:57:57 +0800 From: kernel test robot To: Mikko Perttunen , thierry.reding@gmail.com, jonathanh@nvidia.com, joro@8bytes.org, will@kernel.org, robin.murphy@arm.com, robh+dt@kernel.org, krzysztof.kozlowski@canonical.com Cc: kbuild-all@lists.01.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Mikko Perttunen , iommu@lists.linux-foundation.org, linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v6 04/10] gpu: host1x: Add context device management code Message-ID: <202207051045.JWeVR4tW-lkp@intel.com> References: <20220621151022.1416300-5-cyndis@kapsi.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220621151022.1416300-5-cyndis@kapsi.fi> X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Mikko, Thank you for the patch! Yet something to improve: [auto build test ERROR on drm/drm-next] [also build test ERROR on tegra/for-next linus/master v5.19-rc5] [cannot apply to tegra-drm/drm/tegra/for-next next-20220704] [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/Mikko-Perttunen/Host1x-context-isolation-support/20220621-231339 base: git://anongit.freedesktop.org/drm/drm drm-next config: arm-randconfig-r005-20220703 (https://download.01.org/0day-ci/archive/20220705/202207051045.JWeVR4tW-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 11.3.0 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/intel-lab-lkp/linux/commit/2501beeae7469b805f9f624049fd56643cf6e18e git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Mikko-Perttunen/Host1x-context-isolation-support/20220621-231339 git checkout 2501beeae7469b805f9f624049fd56643cf6e18e # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/gpu/host1x/context.c: In function 'host1x_memory_context_list_init': >> drivers/gpu/host1x/context.c:80:40: error: 'struct iommu_fwspec' has no member named 'ids' 80 | ctx->stream_id = fwspec->ids[0] & 0xffff; | ^~ vim +80 drivers/gpu/host1x/context.c 15 16 int host1x_memory_context_list_init(struct host1x *host1x) 17 { 18 struct host1x_memory_context_list *cdl = &host1x->context_list; 19 struct device_node *node = host1x->dev->of_node; 20 struct host1x_memory_context *ctx; 21 unsigned int i; 22 int err; 23 24 cdl->devs = NULL; 25 cdl->len = 0; 26 mutex_init(&cdl->lock); 27 28 err = of_property_count_u32_elems(node, "iommu-map"); 29 if (err < 0) 30 return 0; 31 32 cdl->devs = kcalloc(err, sizeof(*cdl->devs), GFP_KERNEL); 33 if (!cdl->devs) 34 return -ENOMEM; 35 cdl->len = err / 4; 36 37 for (i = 0; i < cdl->len; i++) { 38 struct iommu_fwspec *fwspec; 39 40 ctx = &cdl->devs[i]; 41 42 ctx->host = host1x; 43 44 device_initialize(&ctx->dev); 45 46 /* 47 * Due to an issue with T194 NVENC, only 38 bits can be used. 48 * Anyway, 256GiB of IOVA ought to be enough for anyone. 49 */ 50 ctx->dma_mask = DMA_BIT_MASK(38); 51 ctx->dev.dma_mask = &ctx->dma_mask; 52 ctx->dev.coherent_dma_mask = ctx->dma_mask; 53 dev_set_name(&ctx->dev, "host1x-ctx.%d", i); 54 ctx->dev.bus = &host1x_context_device_bus_type; 55 ctx->dev.parent = host1x->dev; 56 57 dma_set_max_seg_size(&ctx->dev, UINT_MAX); 58 59 err = device_add(&ctx->dev); 60 if (err) { 61 dev_err(host1x->dev, "could not add context device %d: %d\n", i, err); 62 goto del_devices; 63 } 64 65 err = of_dma_configure_id(&ctx->dev, node, true, &i); 66 if (err) { 67 dev_err(host1x->dev, "IOMMU configuration failed for context device %d: %d\n", 68 i, err); 69 device_del(&ctx->dev); 70 goto del_devices; 71 } 72 73 fwspec = dev_iommu_fwspec_get(&ctx->dev); 74 if (!fwspec) { 75 dev_err(host1x->dev, "Context device %d has no IOMMU!\n", i); 76 device_del(&ctx->dev); 77 goto del_devices; 78 } 79 > 80 ctx->stream_id = fwspec->ids[0] & 0xffff; 81 } 82 83 return 0; 84 85 del_devices: 86 while (i--) 87 device_del(&cdl->devs[i].dev); 88 89 kfree(cdl->devs); 90 cdl->len = 0; 91 92 return err; 93 } 94 -- 0-DAY CI Kernel Test Service https://01.org/lkp