Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp17940026ybl; Thu, 2 Jan 2020 15:12:56 -0800 (PST) X-Google-Smtp-Source: APXvYqzqMfvF1iOEHnBCnrF0QUZmj/hY7vlfiNwul0lT7O5PzU8QtPt1Ah2VEZi3uSlUtnxh0eVX X-Received: by 2002:aca:534f:: with SMTP id h76mr3229725oib.23.1578006776240; Thu, 02 Jan 2020 15:12:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578006776; cv=none; d=google.com; s=arc-20160816; b=o2bQbPpjV2FD++1HofkD+ifobvjxs9ESTGOriuqbai+TvNcUk/oQ6kzk1lchyejRGF L7a1oOnk0dRu0TL42NLiUheK6/9Prgl55Ry0Y3wpHkCbn84fPNSkSMpdAopZnUsbA6zM 46N0sDIYqf7R8Fy2eO/cM5ZEcsP8hI3vf3q4rp3c1g++XRvRy6DXgXnIf9AGv4HToeGf Z+Hv+I/PCIX05ICiErIDFPLX602wG5XZ+kVJYzbVLt3I++2vy8LffO2dsdErXX+Jketr fwlep3f6RmXyH8fQUuGi+vj7GaVuRo+UyNTYdsEX74El72BQfKNs1a8Hgr7JlcNwPi3M cACg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=iY+CXAjnnmWi7PKkKhPCb/3kqbYV4sgylNQyJliTwSQ=; b=NpJbyEbyqfzAeJ/1nV1gCnSnMJsiYkhdpSlwpKsnj5dEnSKrkL3+qKJ1Gp4a1edFin RluAme50En3O/qUiESGd6xhfBycVc88P5owJYWYQf2if5IAaB58y17peWF6XDaO6FQNp /4NqrmHTSJorBwfjDIgN1YAuIa8nZmbbNcmqQmIdJZqm2G12acpJ0R2AkKaPADKif1DG MHEjAXuo2CrasGezW2HKemulP+lsE6nFPM7WLn6o2+ItOPHg1CIa7r0QaFgKreiMsxki 7wVIX5Nl2sLGmvBGNAoE9oAdKhnSDwhf8v34W+gUvMpkbM0rN3XMqyMBMQFK1ZkZvSNx 160g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ZEu5qqMS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j16si9341110oii.57.2020.01.02.15.12.44; Thu, 02 Jan 2020 15:12:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ZEu5qqMS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731210AbgABWkn (ORCPT + 99 others); Thu, 2 Jan 2020 17:40:43 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:49204 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731100AbgABWkl (ORCPT ); Thu, 2 Jan 2020 17:40:41 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 002MeGkW130610; Thu, 2 Jan 2020 16:40:16 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1578004816; bh=iY+CXAjnnmWi7PKkKhPCb/3kqbYV4sgylNQyJliTwSQ=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=ZEu5qqMSCYzSWdRn2BzeiF7A2pIrxP7uPHhY4vpBT+fqVlGJhFnY79n9h/Xygw/mS atGBU+RR5Stpn4c0pShXenNyX5NZ12ghl0L2w18MI3kbgKkHdS+MXe3HpG8+T8U73/ 6AnAChozzAJps4rrVOLKXu6lR6aQJ6OS3VTvLGGY= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 002MeGcB014864 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 2 Jan 2020 16:40:16 -0600 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Thu, 2 Jan 2020 16:40:16 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Thu, 2 Jan 2020 16:40:16 -0600 Received: from [128.247.58.153] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 002MeGRU042981; Thu, 2 Jan 2020 16:40:16 -0600 Subject: Re: [PATCH 3/3] iommu: Enable compile testing for some of drivers To: Krzysztof Kozlowski , kbuild test robot CC: , Joerg Roedel , Robin Murphy , Jean-Philippe Brucker , Eric Auger , Douglas Anderson , Tero Kristo , , References: <20191230172619.17814-3-krzk@kernel.org> <201912311551.tBrb3BhH%lkp@intel.com> <20191231080722.GA6804@pi3> From: Suman Anna Message-ID: <923b1f2f-2b5c-8b6e-6083-243beae09777@ti.com> Date: Thu, 2 Jan 2020 16:40:16 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20191231080722.GA6804@pi3> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Krzysztof, On 12/31/19 2:07 AM, Krzysztof Kozlowski wrote: > On Tue, Dec 31, 2019 at 03:43:39PM +0800, kbuild test robot wrote: >> Hi Krzysztof, >> >> I love your patch! Perhaps something to improve: >> >> [auto build test WARNING on iommu/next] >> [also build test WARNING on v5.5-rc4] >> [if your patch is applied to the wrong git tree, please drop us a note to help >> improve the system. BTW, we also suggest to use '--base' option to specify the >> base tree in git format-patch, please see https://stackoverflow.com/a/37406982] >> >> url: https://github.com/0day-ci/linux/commits/Krzysztof-Kozlowski/iommu-omap-Fix-pointer-cast-Wpointer-to-int-cast-warnings-on-64-bit/20191231-022212 >> base: https://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git next >> config: ia64-allmodconfig (attached as .config) >> compiler: ia64-linux-gcc (GCC) 7.5.0 >> reproduce: >> wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross >> chmod +x ~/bin/make.cross >> # save the attached .config to linux build tree >> GCC_VERSION=7.5.0 make.cross ARCH=ia64 >> >> If you fix the issue, kindly add following tag >> Reported-by: kbuild test robot > > I saw it already while compile testing my patch. I must admit that I > could not find easy/fast fix for it. Probably the > omap_iommu_translate() helper should be made 64-bit friendly but this > obfuscates the code. >The driver and hardware supports only 32-bit addresses. Yeah, is there a reason why you are trying to enable the build for the OMAP IOMMU driver on 64-bit platforms or other architectures - the IP and driver is only ever used on ARMv7 platforms, and it should already be available for COMPILE_TEST on those. regards Suman > > Best regards, > Krzysztof > > >> >> All warnings (new ones prefixed by >>): >> >> In file included from drivers/iommu/omap-iommu.c:33:0: >> drivers/iommu/omap-iommu.c: In function 'omap_iommu_iova_to_phys': >>>> drivers/iommu/omap-iopgtable.h:44:21: warning: large integer implicitly truncated to unsigned type [-Woverflow] >> #define IOPTE_MASK (~(IOPTE_SIZE - 1)) >> ^ >>>> drivers/iommu/omap-iommu.c:1641:41: note: in expansion of macro 'IOPTE_MASK' >> ret = omap_iommu_translate(*pte, da, IOPTE_MASK); >> ^~~~~~~~~~ >> drivers/iommu/omap-iopgtable.h:51:23: warning: large integer implicitly truncated to unsigned type [-Woverflow] >> #define IOLARGE_MASK (~(IOLARGE_SIZE - 1)) >> ^ >>>> drivers/iommu/omap-iommu.c:1643:41: note: in expansion of macro 'IOLARGE_MASK' >> ret = omap_iommu_translate(*pte, da, IOLARGE_MASK); >> ^~~~~~~~~~~~ >> drivers/iommu/omap-iopgtable.h:27:25: warning: large integer implicitly truncated to unsigned type [-Woverflow] >> #define IOSECTION_MASK (~(IOSECTION_SIZE - 1)) >> ^ >>>> drivers/iommu/omap-iommu.c:1649:41: note: in expansion of macro 'IOSECTION_MASK' >> ret = omap_iommu_translate(*pgd, da, IOSECTION_MASK); >> ^~~~~~~~~~~~~~ >> drivers/iommu/omap-iopgtable.h:34:23: warning: large integer implicitly truncated to unsigned type [-Woverflow] >> #define IOSUPER_MASK (~(IOSUPER_SIZE - 1)) >> ^ >>>> drivers/iommu/omap-iommu.c:1651:41: note: in expansion of macro 'IOSUPER_MASK' >> ret = omap_iommu_translate(*pgd, da, IOSUPER_MASK); >> ^~~~~~~~~~~~ >> >> vim +44 drivers/iommu/omap-iopgtable.h >> >> 97ec7d585b33bb arch/arm/plat-omap/iopgtable.h Hiroshi DOYU 2010-02-15 38 >> 97ec7d585b33bb arch/arm/plat-omap/iopgtable.h Hiroshi DOYU 2010-02-15 39 /* >> 97ec7d585b33bb arch/arm/plat-omap/iopgtable.h Hiroshi DOYU 2010-02-15 40 * "small page" address mask and size definitions. >> 97ec7d585b33bb arch/arm/plat-omap/iopgtable.h Hiroshi DOYU 2010-02-15 41 */ >> a9dcad5e375800 arch/arm/plat-omap/iopgtable.h Hiroshi DOYU 2009-01-26 42 #define IOPTE_SHIFT 12 >> 5ff98fa68c88d7 drivers/iommu/omap-iopgtable.h Suman Anna 2015-07-20 43 #define IOPTE_SIZE BIT(IOPTE_SHIFT) >> a9dcad5e375800 arch/arm/plat-omap/iopgtable.h Hiroshi DOYU 2009-01-26 @44 #define IOPTE_MASK (~(IOPTE_SIZE - 1)) >> a9dcad5e375800 arch/arm/plat-omap/iopgtable.h Hiroshi DOYU 2009-01-26 45 >> >> :::::: The code at line 44 was first introduced by commit >> :::::: a9dcad5e375800fcb07f7617dba23b3aade8f09d omap iommu: tlb and pagetable primitives >> >> :::::: TO: Hiroshi DOYU >> :::::: CC: Hiroshi DOYU >> >> --- >> 0-DAY kernel test infrastructure Open Source Technology Center >> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation > >