From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7186BC43334 for ; Wed, 20 Jul 2022 11:32:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0A76D6B0072; Wed, 20 Jul 2022 07:32:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 02FF66B0073; Wed, 20 Jul 2022 07:32:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E38B36B0074; Wed, 20 Jul 2022 07:32:39 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id CE52D6B0072 for ; Wed, 20 Jul 2022 07:32:39 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id A71411C5D45 for ; Wed, 20 Jul 2022 11:32:39 +0000 (UTC) X-FDA: 79707265638.29.FDD3493 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by imf24.hostedemail.com (Postfix) with ESMTP id 9AB97180008 for ; Wed, 20 Jul 2022 11:32:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658316758; x=1689852758; h=date:from:to:cc:subject:message-id:mime-version; bh=O7suO4NwfY8S3KyVnrbyBEnr3tjlPXdV53hgp3vjxIg=; b=Mq3mKU/VNwW7hqN4sG4VHcxTLKM/+q60WLowBzZuPGM8WglL672b4Vdg BfzmgQjgt+dJg6wU+y3my18NwvKQgG4SjB8piBP18wQSHsbWQHFREx+Tn sLUuN1CmF0U5yQQ3roPrWnFkQBE0U/PPVUOWe1WAPlV7VfFR/lbdH1B3B 6XnsD5CdiBCF7rsifK0BOuff8DLrt9UUWkoHomqepnI9AStV/tDp0HE3X yKURIbubeYMMm99OZHMguq5mSwzLA+ym3YNj6SDwp8aEJzr1vpHdDTyws JYT8cDDuj488Kvx2D7LuHp/uM7DsuOzht3QWIlV+9+BM+zVJDocwTv3At w==; X-IronPort-AV: E=McAfee;i="6400,9594,10413"; a="273591162" X-IronPort-AV: E=Sophos;i="5.92,286,1650956400"; d="scan'208";a="273591162" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2022 04:32:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,286,1650956400"; d="scan'208";a="573267528" Received: from lkp-server01.sh.intel.com (HELO 7dfbdc7c7900) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 20 Jul 2022 04:32:35 -0700 Received: from kbuild by 7dfbdc7c7900 with local (Exim 4.95) (envelope-from ) id 1oE7wR-0000SH-3g; Wed, 20 Jul 2022 11:32:35 +0000 Date: Wed, 20 Jul 2022 19:31:42 +0800 From: kernel test robot To: Mikko Perttunen Cc: kbuild-all@lists.01.org, Linux Memory Management List , Thierry Reding Subject: [linux-next:master 7916/11568] drivers/gpu/host1x/context.c:65:23: error: too many arguments to function 'of_dma_configure_id' Message-ID: <202207201926.fWdsgtEW-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="Mq3mKU/V"; spf=none (imf24.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.20) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1658316759; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=TbognupqwM3SvbFGqmT/dcaawmVCgJKcScGRWx6QanQ=; b=Z3ZIPrNWbV16qYg/nljf0sDpWvHTA6KQCRsgU3XmMmEy7qy5EM9b8SkFIMAH7rfdJPnRCG YC8bkiDZupHf8Wm3jx2B2QV10DRvn45EKpFz1shzMuz34I3qC5lnZg7pdAiSMS32tcM6NN 8PL/Y/UH4K/euKvu9wQo5T6T7N/svAE= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1658316759; a=rsa-sha256; cv=none; b=ZQk0oqHR8bkpuhfGrwbHrinMnIW9gLo/xs0c9vBjI7Zs1WXJEcQHq4xqeimovCeFXgce7s okm4Y7b3C8aynmxyIUIkLuplz5ZNQCPorKkIkuvqscvWhLfKCMA0UCP7/S3irrsdEMO6A/ V9d51BoZyDLZMTW9221EFx3TiiGtY4A= X-Rspam-User: X-Rspamd-Queue-Id: 9AB97180008 Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="Mq3mKU/V"; spf=none (imf24.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.20) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Stat-Signature: 7f14jp4ojcba1ry4u9ecg7c1jbn7rf5u X-Rspamd-Server: rspam07 X-HE-Tag: 1658316758-732532 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 3b87ed7ea4d598c81a03317a92dfbd59102224fd commit: 8aa5bcb61612060429223d1fbb7a1c30a579fc1f [7916/11568] gpu: host1x: Add context device management code config: arm-randconfig-c003-20220719 (https://download.01.org/0day-ci/archive/20220720/202207201926.fWdsgtEW-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 12.1.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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=8aa5bcb61612060429223d1fbb7a1c30a579fc1f git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 8aa5bcb61612060429223d1fbb7a1c30a579fc1f # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.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:65:23: error: too many arguments to function 'of_dma_configure_id' 65 | err = of_dma_configure_id(&ctx->dev, node, true, &i); | ^~~~~~~~~~~~~~~~~~~ In file included from include/linux/of_platform.h:12, from drivers/gpu/host1x/context.c:9: include/linux/of_device.h:103:19: note: declared here 103 | static inline int of_dma_configure_id(struct device *dev, | ^~~~~~~~~~~~~~~~~~~ vim +/of_dma_configure_id +65 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 || !device_iommu_mapped(&ctx->dev)) { 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