Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3535361imm; Mon, 4 Jun 2018 05:20:56 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIvM7mR+t1HmupNg/JXYP7KEy7tDNghOEHp2XE7NcBa1SpAvnYTY7AHsAakqscTO/zFHu+1 X-Received: by 2002:a65:52cc:: with SMTP id z12-v6mr16955528pgp.126.1528114856825; Mon, 04 Jun 2018 05:20:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528114856; cv=none; d=google.com; s=arc-20160816; b=TRaZE6XibW6sowTknqKS9ymotibp/9M9wz51UOe8RKiUf66h8MLS5JbSjB96oqi690 phmnJrFQ2kdWbj5wdyeVJXSdc+5VQd+zzlr0WoanRnQBlwHEqFDUQyGdWF71BXfLj0GW mbHqIiLmKXWQayPv59moHO9SpMIU5njv7H5BvxgTJ9RjYAQOCrg/rGUFlcKoAGNtug9i 5J617ZmUNzNBsyUPG+MduQXigpqaxl9KLd0eTJgXqRyIkW4aa6ZrGxouElrpBRucKyCn LelhUSH9RgVWnmnqrG7YPFSgvyvHZ4eFPOu60cCXSDWY6gJWKpMwKcxeD+9x+UAYbVAp Gmaw== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=APALp4ELQkuKPppi2un9AUHqJc5aHqAAJMlm3aFRMcg=; b=eQHKjQwtn4X3i4KRctOqJjcFybUCN7Xwnk5aagmL8obbp8tfJiBDdQVTUruoK74h+b BjihmIbbhujrnsJxegleqZfoDzgBG4BorDDjYxrBNiDLFFLefNbdjU0Sn1XWUdeEgNkr qXj5dOwqIfUhh05R61joCHl8rS59uF83mJHiWRD3bjMVP5kHRvJoo9I135CPt6xHqw5C zm8MBySzLa8EP6hyxl7wtCL+gfMd8ZNdj8rPwnfjicrk8DzoQaeHREaXKXI2wqt9mbMm TML/lapppRzsr5x6f/Uy2+hq8DIxD7v8j7+QZ94nhpGG42luZH0bRsb+ttIyKAZ0N7oC r95Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e5-v6si36986671pgn.339.2018.06.04.05.20.41; Mon, 04 Jun 2018 05:20:56 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752478AbeFDMUN (ORCPT + 99 others); Mon, 4 Jun 2018 08:20:13 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:44321 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750868AbeFDMUL (ORCPT ); Mon, 4 Jun 2018 08:20:11 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 42BECD193045A; Mon, 4 Jun 2018 20:20:08 +0800 (CST) Received: from [127.0.0.1] (10.177.23.164) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.382.0; Mon, 4 Jun 2018 20:20:00 +0800 Subject: Re: [PATCH 5/7] iommu/dma: add support for non-strict mode To: kbuild test robot References: <1527752569-18020-6-git-send-email-thunder.leizhen@huawei.com> <201806020106.eRUp2Ehc%fengguang.wu@intel.com> CC: , Robin Murphy , Will Deacon , Matthias Brugger , Rob Clark , Joerg Roedel , linux-mediatek , linux-arm-msm , linux-arm-kernel , iommu , linux-kernel , Hanjun Guo , Libin , Guozhu Li , Xinwei Hu From: "Leizhen (ThunderTown)" Message-ID: <5B152E4D.4040205@huawei.com> Date: Mon, 4 Jun 2018 20:19:25 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <201806020106.eRUp2Ehc%fengguang.wu@intel.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.23.164] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/6/2 1:51, kbuild test robot wrote: > Hi Zhen, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on linus/master] > [also build test WARNING on v4.17-rc7 next-20180601] > [cannot apply to iommu/next] > [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] > > url: https://github.com/0day-ci/linux/commits/Zhen-Lei/add-non-strict-mode-support-for-arm-smmu-v3/20180602-000418 > config: x86_64-randconfig-x008-201821 (attached as .config) > compiler: gcc-7 (Debian 7.3.0-16) 7.3.0 > reproduce: > # save the attached .config to linux build tree > make ARCH=x86_64 > > All warnings (new ones prefixed by >>): > > drivers//iommu/amd_iommu.c: In function 'amd_iommu_capable': >>> drivers//iommu/amd_iommu.c:3053:2: warning: enumeration value 'IOMMU_CAP_NON_STRICT' not handled in switch [-Wswitch] > switch (cap) { > ^~~~~~ > > vim +/IOMMU_CAP_NON_STRICT +3053 drivers//iommu/amd_iommu.c > > 645c4c8d arch/x86/kernel/amd_iommu.c Joerg Roedel 2008-12-02 3050 > ab636481 drivers/iommu/amd_iommu.c Joerg Roedel 2014-09-05 3051 static bool amd_iommu_capable(enum iommu_cap cap) > dbb9fd86 arch/x86/kernel/amd_iommu.c Sheng Yang 2009-03-18 3052 { > 80a506b8 arch/x86/kernel/amd_iommu.c Joerg Roedel 2010-07-27 @3053 switch (cap) { > 80a506b8 arch/x86/kernel/amd_iommu.c Joerg Roedel 2010-07-27 3054 case IOMMU_CAP_CACHE_COHERENCY: > ab636481 drivers/iommu/amd_iommu.c Joerg Roedel 2014-09-05 3055 return true; > bdddadcb drivers/iommu/amd_iommu.c Joerg Roedel 2012-07-02 3056 case IOMMU_CAP_INTR_REMAP: > ab636481 drivers/iommu/amd_iommu.c Joerg Roedel 2014-09-05 3057 return (irq_remapping_enabled == 1); > cfdeec22 drivers/iommu/amd_iommu.c Will Deacon 2014-10-27 3058 case IOMMU_CAP_NOEXEC: It seems that it's better to change this to 'default'. > cfdeec22 drivers/iommu/amd_iommu.c Will Deacon 2014-10-27 3059 return false; > 80a506b8 arch/x86/kernel/amd_iommu.c Joerg Roedel 2010-07-27 3060 } > 80a506b8 arch/x86/kernel/amd_iommu.c Joerg Roedel 2010-07-27 3061 > ab636481 drivers/iommu/amd_iommu.c Joerg Roedel 2014-09-05 3062 return false; > dbb9fd86 arch/x86/kernel/amd_iommu.c Sheng Yang 2009-03-18 3063 } > dbb9fd86 arch/x86/kernel/amd_iommu.c Sheng Yang 2009-03-18 3064 > > :::::: The code at line 3053 was first introduced by commit > :::::: 80a506b8fdcfa868bb53eb740f928217d0966fc1 x86/amd-iommu: Export cache-coherency capability > > :::::: TO: Joerg Roedel > :::::: CC: Joerg Roedel > > --- > 0-DAY kernel test infrastructure Open Source Technology Center > https://lists.01.org/pipermail/kbuild-all Intel Corporation > -- Thanks! BestRegards