From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Leizhen (ThunderTown)" Subject: Re: [PATCH 5/7] iommu/dma: add support for non-strict mode Date: Mon, 4 Jun 2018 20:19:25 +0800 Message-ID: <5B152E4D.4040205@huawei.com> References: <1527752569-18020-6-git-send-email-thunder.leizhen@huawei.com> <201806020106.eRUp2Ehc%fengguang.wu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <201806020106.eRUp2Ehc%fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: kbuild test robot Cc: linux-arm-msm , Will Deacon , iommu , linux-kernel , Xinwei Hu , Guozhu Li , linux-mediatek , kbuild-all-JC7UmRfGjtg@public.gmane.org, Libin , Hanjun Guo , Matthias Brugger , linux-arm-kernel List-Id: linux-arm-msm@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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: thunder.leizhen@huawei.com (Leizhen (ThunderTown)) Date: Mon, 4 Jun 2018 20:19:25 +0800 Subject: [PATCH 5/7] iommu/dma: add support for non-strict mode In-Reply-To: <201806020106.eRUp2Ehc%fengguang.wu@intel.com> References: <1527752569-18020-6-git-send-email-thunder.leizhen@huawei.com> <201806020106.eRUp2Ehc%fengguang.wu@intel.com> Message-ID: <5B152E4D.4040205@huawei.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752578AbeFDMUN (ORCPT ); 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 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 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