Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3325387pxv; Mon, 26 Jul 2021 01:15:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0/Tfo+kCwtm7jPKqHloy83KT5gkE5N8VETEwXaeppU0AE/oDUcm62+Y4SXVON3Ya9+0Ef X-Received: by 2002:a5d:928f:: with SMTP id s15mr13749881iom.142.1627287300943; Mon, 26 Jul 2021 01:15:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627287300; cv=none; d=google.com; s=arc-20160816; b=HXCKzUiCCrC1OSwecGJkP9TOnpsS3uFwSfT6wsSIwM0pCznb5eNWuy2xpl/p0NAgiO lJkNozSDNqZtWjdLB4quaysG5UXc+db1Yiu/fNSPU+wnPXZLXlg9E/xZUz+2WlqSWSNR pRfJYACDIXNuwctPSaZsK2cldD+lb3Y3Z+foKYy8RXdrOqlDLhEX7cJbdrq+G0A3tplS f3ybgreK7RFVs3WcHl7UulQ8gUxfxJjXY29P5XCrKR9PcqAUi9dgtLLT7QFlr/LIlAtx ehwswXkyQOGASvMakBAkWw/Sbt9H5WExG683XOlhZzk1CRQAOKBvR3ckdaVlzdimLFe7 7edw== 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=Ldc39mUuztNQgMgwISa2VZg1mnhQ9L/Nay5BhJwupK0=; b=0CLBijXVW8ZaNpzQmBXrqiFCPyzfxdoiMUf9XjAVY129mo0dYyJm47jdwdBc/IMioP em8Vehh/gzY22f9smPgbOpU0Ey/QXkddweEDTMxBVR41NdtULRMWYmHPvlGZIBt7qTb/ R3tJ5GkIP0lkTsO1LQnXQGpVQ/YCV6E/WyWGWrRmKZeKQYoTiD8EpgtavCrQI8/PTZuC puUyCdmdy/nCcoKLsVzzhG47+OuppgcwwsvGAj6glgk/5taj1tdG0mSvzMzldbHu8Nqn ZfMCEYAoO4zxx8cNkebBhbJQHMGEmcqEdNZryja7Do9F//0487bfk4MQml04riEiE/sx Be4A== 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 z16si42058920ilm.29.2021.07.26.01.14.49; Mon, 26 Jul 2021 01:15:00 -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 S233144AbhGZHdI (ORCPT + 99 others); Mon, 26 Jul 2021 03:33:08 -0400 Received: from frasgout.his.huawei.com ([185.176.79.56]:3482 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233092AbhGZHc7 (ORCPT ); Mon, 26 Jul 2021 03:32:59 -0400 Received: from fraeml745-chm.china.huawei.com (unknown [172.18.147.206]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4GYCBC66hNz6DHcW; Mon, 26 Jul 2021 16:04:19 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml745-chm.china.huawei.com (10.206.15.226) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 26 Jul 2021 10:13:26 +0200 Received: from [10.47.94.42] (10.47.94.42) 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; Mon, 26 Jul 2021 09:13:25 +0100 Subject: Re: [PATCH 00/23] iommu: Refactor DMA domain strictness To: Robin Murphy , , CC: , , , , , References: From: John Garry Message-ID: <8e9da41e-4e3a-7098-bece-7f6cba89a2aa@huawei.com> Date: Mon, 26 Jul 2021 09:13:08 +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: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.94.42] X-ClientProxiedBy: lhreml748-chm.china.huawei.com (10.201.108.198) 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 21/07/2021 19:20, Robin Murphy wrote: > Hi all, > > First off, yes, this conflicts with just about everything else > currently in-flight. Sorry about that. If it stands up to initial review > then I'll start giving some thought to how to fit everything together > (particularly John's cleanup of strictness defaults, which I'd be > inclined to fold into a v2 of this series). It seems to me that patch #20 is the only real conflict, and that is just a different form of mine in that passthrough, strict, and lazy are under a single choice, as opposed to passthrough being a separate config (for mine). And on that point, I did assume that we would have a different sysfs file for strict vs lazy in this series, and not a new domain type. But I assume that there is a good reason for that. Anyway, I'd really like to see my series just merged now. Thanks, John > > Anyway, this is my take on promoting the strict vs. non-strict DMA > domain choice to distinct domain types, so that it can fit logically > into the existing sysfs and Kconfig controls. The first 13 patches are > effectively preparatory cleanup to reduce churn in the later changes, > but could be merged in their own right even if the rest is too > contentious. I ended up splitting patches #2-#11 by driver for ease of > review, since some of them are more than just trivial deletions, but > they could readily be squashed (even as far as with #1 and #12 too). > > I'm slightly surprised at how straightforward it's turned out, but it > has survived some very basic smoke testing for arm-smmu using dmatest > on my Arm Juno board. Branch here for convenience: