Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1051108pxj; Fri, 11 Jun 2021 19:43:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhKr+A14ZsoVY0nu7zansRVMK8BVtwRBOxZ1YK4HUqcbuPSRBIWll3RBgNKCaGJyM1jOot X-Received: by 2002:a17:906:35db:: with SMTP id p27mr6109234ejb.391.1623465831914; Fri, 11 Jun 2021 19:43:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623465831; cv=none; d=google.com; s=arc-20160816; b=N9G8XTIkD4CDAdA8EA4obeHux3zkRxrUzAkoOo8hG/j6KK3Bw2j6vowrcLehnMYsKN +EWGRKp++VgjgzKmbiNTqDNcMfMjgK9cgcInKXl3iRhwcXMxSsZ4Cfl8ou7pg6wasuHx ZYv3125JV6Wu0TWqR5Z7qqv02cNIiyoEU5zvkniCbltQepPRlzicu9NBiq4uYq/V5leX nslZrEobYVogQiPQV3gd648zj5b4ykesCQ2Z8VCkaWejSAe3K3FUMvX+y9wsv4bf9s/7 W5z9ChpLQW6a8rW8qQwni0Wz/mfZAduR/BTabb5250+zVu53CnViYmatTrxRK5kSRTX2 cEoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:cc:ironport-sdr:ironport-sdr; bh=E1utsgYj8v+DoGRtqATeynfwOxIF8pq+qt+xGcOgq9k=; b=doXHVAYp7gt3AVEAksXmLbcTKHGyUCvuNpucsewEapjWIs7b3prZ/fQaRt9Pu7qyVx Hd04UJDwf9w/pnnHwJzSlV3N55JqR0vL9Y7jPkcYS1gqNMRkjBB6yFcx88kxg0F2LhK5 JAIQ2gtBgAmIDjdxCT6cxOvNPvZ4s9qZ2XNFS+tjlKcrZX7841RlVWvV1I87ELiinh0V 2CNQoduRT2ODhjj/TqILHyJjEf4aMQ47aLLpHfs+quxWc1/6+wNEUoE9tGBpj/PCOKo8 8Frohjnur9iH9uC3PPgm/e3PtTe6kW0e2WAIEWXlqN8TSwWbEGZXcnpK1mAUbhvKLkI2 v0xA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ce26si6006190ejc.272.2021.06.11.19.43.29; Fri, 11 Jun 2021 19:43:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230348AbhFLCZ6 (ORCPT + 99 others); Fri, 11 Jun 2021 22:25:58 -0400 Received: from mga02.intel.com ([134.134.136.20]:39336 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230236AbhFLCZ5 (ORCPT ); Fri, 11 Jun 2021 22:25:57 -0400 IronPort-SDR: PNKvEaB185BBk7GR38Jf4HSFn/j1ek6W793Umvr8Do+UZkDUKodC30BigcfynF+8LVE9lPmpsU iEiF9VFr9BeQ== X-IronPort-AV: E=McAfee;i="6200,9189,10012"; a="192750367" X-IronPort-AV: E=Sophos;i="5.83,268,1616482800"; d="scan'208";a="192750367" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2021 19:23:59 -0700 IronPort-SDR: 8jemTF4V0VjmsAdxVI3xwFWfjUYCw9xzJh7FOp6AoqNXBh/ztgG/X7Oj+GXtkg1td9PDZT1y0V mthyX7dqWpzA== X-IronPort-AV: E=Sophos;i="5.83,268,1616482800"; d="scan'208";a="483473995" Received: from blu2-mobl3.ccr.corp.intel.com (HELO [10.238.4.20]) ([10.238.4.20]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2021 19:23:56 -0700 Cc: baolu.lu@linux.intel.com, linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, linuxarm@huawei.com, thunder.leizhen@huawei.com, chenxiang66@hisilicon.com Subject: Re: [PATCH v12 5/5] iommu: Remove mode argument from iommu_set_dma_strict() To: John Garry , joro@8bytes.org, will@kernel.org, dwmw2@infradead.org, robin.murphy@arm.com References: <1623414043-40745-1-git-send-email-john.garry@huawei.com> <1623414043-40745-6-git-send-email-john.garry@huawei.com> From: Lu Baolu Message-ID: <1b58516d-73d5-0c40-11de-58b998ec803e@linux.intel.com> Date: Sat, 12 Jun 2021 10:23:54 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <1623414043-40745-6-git-send-email-john.garry@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/6/11 20:20, John Garry wrote: > diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c > index ccbd5d4c1a50..146cb71c7441 100644 > --- a/drivers/iommu/iommu.c > +++ b/drivers/iommu/iommu.c > @@ -350,10 +350,9 @@ static int __init iommu_dma_setup(char *str) > } > early_param("iommu.strict", iommu_dma_setup); > > -void iommu_set_dma_strict(bool strict) > +void iommu_set_dma_strict(void) > { > - if (strict || !(iommu_cmd_line & IOMMU_CMD_LINE_STRICT)) > - iommu_dma_strict = strict; > + iommu_dma_strict = true; > } Will this change break the functionality of iommu.strict? Best regards, baolu