Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6797226pxv; Fri, 30 Jul 2021 02:36:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoQtUIOQqN7AibWUJagRwTXWr1eqCo0iWdnkBRKl6QFuATI6svYUgZcDHK46hwLkWC6mpD X-Received: by 2002:a05:6402:54d:: with SMTP id i13mr1882530edx.179.1627637774941; Fri, 30 Jul 2021 02:36:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627637774; cv=none; d=google.com; s=arc-20160816; b=O1dx4I08crB51hvsPjdb5qNf2JJDlD4sA0FwVBgm/ZfCpG4mQEwZMStsBoYiBj/Ue7 S9eXTu2HAFFoH+47YFjmoeBUQ6NlByhgdhX5qiW4PK6rOvbchjvFOBkWKvPTq27R4Iwc lWy+p7MnKA3xmi5XuQe/vvFZo9G30BjoDWQCFNaH3tkj4oWt+qz1jdoBY1kXs3DpYM6o UbzVE+hsGXE9wGtzhrB19K4slj/596JlXzVQea1s+wSYcZY9NlkUfKtN3YGlKFDiIQPV +R7y+2kH5spXu6UsSw00XeYqdkQIw7hCUiBehxfnUdlfmhv/9p+Z6vmCkLOikFLp8Oit 3CCQ== 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 :cc:to:subject; bh=mymwtn4EPyS9qcTIFhVvTfSU0ei3hpz9kcWI3BTu3IA=; b=inn16d+VJn1P4b+YV1g2GD/oRlCQIh6w8XLaD1RbpfUaXA0P3mmJQBTNTAdfry6+3t pihIR213rT7UJoT3Nocbmj47c80Appr2bI25iKK2tdSvgUxPJ6ang4pLBU/6Kom95wre TNlw2KvDppu+CcB6rlqOHMbvQOPsOJjcd+jqXdnKuG8AFfbpp+HbdOKTKh/wqxjiwBcc ykuHDUnBPesgh0ra+xkynWA00GfDJQc/fcvH0p4hAB8UiSQu97MLBanITuv544tKgTAh t2aC9AE9zsJI1LANn4loemmgJfSSSKCNlXeJpFKd8yizJ5Yy3ZvnXm+Uau7qx2JxTepO DEtg== 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=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y12si1248871edd.423.2021.07.30.02.35.51; Fri, 30 Jul 2021 02:36:14 -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=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238333AbhG3Jd5 (ORCPT + 99 others); Fri, 30 Jul 2021 05:33:57 -0400 Received: from frasgout.his.huawei.com ([185.176.79.56]:3538 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238156AbhG3Jd4 (ORCPT ); Fri, 30 Jul 2021 05:33:56 -0400 Received: from fraeml743-chm.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Gbhf73wM6z6JBCT; Fri, 30 Jul 2021 17:18:39 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml743-chm.china.huawei.com (10.206.15.224) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Fri, 30 Jul 2021 11:33:51 +0200 Received: from [10.47.25.95] (10.47.25.95) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Fri, 30 Jul 2021 10:33:50 +0100 Subject: Re: [PATCH v2 20/24] iommu: Merge strictness and domain type configs To: Robin Murphy , , CC: , , , , , References: <992b2952f0b173411c7b6f221dce82e8e082c0b8.1627468310.git.robin.murphy@arm.com> From: John Garry Message-ID: Date: Fri, 30 Jul 2021 10:33:31 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: <992b2952f0b173411c7b6f221dce82e8e082c0b8.1627468310.git.robin.murphy@arm.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.25.95] X-ClientProxiedBy: lhreml735-chm.china.huawei.com (10.201.108.86) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/07/2021 16:58, Robin Murphy wrote: > > -config IOMMU_DEFAULT_LAZY > - bool "lazy" > + Untrusted devices always use this mode, with an additional layer of > + bounce-buffering such that they cannot gain access to any unrelated > + data within a mapped page. > + > +config IOMMU_DEFAULT_DMA_LAZY > + bool "Translated - Lazy" > help Since these are being renamed, can you update the kernel-parameters.txt: iommu.strict= [ARM64, X86] Configure TLB invalidation behaviour .... DMA unmap operations invalidate IOMMU hardware TLBs synchronously. unset - Use value of CONFIG_IOMMU_DEFAULT_{LAZY,STRICT}. ^^^^^ Thanks