Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2941009pxj; Mon, 14 Jun 2021 10:35:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSV2ywrkD2VNn5VmiooFOLlokkvBKoy3G2nZSPzct5gkfzeH8pKPEnkBHOTKVcBwAQL28j X-Received: by 2002:a05:6402:487:: with SMTP id k7mr18110690edv.315.1623692118081; Mon, 14 Jun 2021 10:35:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623692118; cv=none; d=google.com; s=arc-20160816; b=zKM9hU8LmVnmdFYhcgEQFIGfO6DPFBhELcNhob7KTqkm9IlYjIrzal1DJiOs+1rAvu a5W+b1Xm80y5YpFSJWFjcCTxzUz/mSmoOxrch+UmMu71X/QH62Gk+pydIMqojn4pFbFf P39IASKnBBo/6DylU6m9GtVytLd/50AYMRsdKOaJmC/ynsEYoj/gyo2VCFLUAgsVlrEX yWQlW9zASp50Ri47VEJmszeEpY+oaUjILWFUF/+1wTwepl/PXwpf7I/2X5r/18Fr6sIE 6vCW+Ip14z5sHgU8rwKmCKBYbhefTXwIalmGi0U7MgQ3YAo5NiXh2HTO22hQGKVLN1UQ 9e0A== 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=0k1YKv4jREnRqKSmlL2wxzszReZYm8CbOoOkLARPl8M=; b=uowldeQ7cn3ewwFlRsKUab20JgiMF3qL1DAJUOu/2y6iJIzIuVJ9ZJsZSzLKEDkf4O U2+X1mmOc6grBsVSNs/hMkoXRV1gwrFXX3Uj6x7a58ghZjis1zxpcFJfBX+LOboh9dJz VjYzkHojmcvS5GZbQgM5GVCRFZqpNbzBMim08BrJJ0MnETIaGkBq89HlvBYWSRlJfT23 N769cSBV+VVq9k2+6C922rweTvIWuIZBLiYNxwu1jzE0A/cXRKrXUq1pDzwDKx4YCmLS cT5gJ4Old6YzWdtLy8OIcN57tJdnGjkrK/8e3nBE+2mA5Mhv3De0Cum6ptp8MukDlpv1 TOJw== 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 ce23si11343737ejc.195.2021.06.14.10.34.54; Mon, 14 Jun 2021 10:35:17 -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 S235534AbhFNRct (ORCPT + 99 others); Mon, 14 Jun 2021 13:32:49 -0400 Received: from frasgout.his.huawei.com ([185.176.79.56]:3241 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233510AbhFNRct (ORCPT ); Mon, 14 Jun 2021 13:32:49 -0400 Received: from fraeml712-chm.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4G3db804BLz6F9Tn; Tue, 15 Jun 2021 01:23:48 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml712-chm.china.huawei.com (10.206.15.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 14 Jun 2021 19:30:44 +0200 Received: from [10.47.95.26] (10.47.95.26) 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, 14 Jun 2021 18:30:43 +0100 Subject: Re: [PATCH v12 5/5] iommu: Remove mode argument from iommu_set_dma_strict() To: Robin Murphy , , , , CC: , , , , References: <1623414043-40745-1-git-send-email-john.garry@huawei.com> <1623414043-40745-6-git-send-email-john.garry@huawei.com> <868374d4-e816-b607-82de-7e7c27a4c66b@arm.com> <56f1fc88-baec-e1cf-109e-59978e2d16a8@arm.com> From: John Garry Message-ID: <0e477a85-db02-1513-a449-02a9fbfccdfa@huawei.com> Date: Mon, 14 Jun 2021 18:24:39 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: <56f1fc88-baec-e1cf-109e-59978e2d16a8@arm.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.95.26] X-ClientProxiedBy: lhreml725-chm.china.huawei.com (10.201.108.76) 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 14/06/2021 18:19, Robin Murphy wrote: >>> We shouldn't need to keep IOMMU_CMD_LINE_STRICT at all now, since it >>> was only to prevent a driver's "default lazy" setting passed in here >>> from downgrading an explicitly-set strict mode. >>> >>> With that cleaned up too, >>> >> >> Patch 1/5 mentions whether the invalidation policy comes from the >> cmdline - similar to the default domain type print - so I was going to >> keep that. > > Oh, silly me, I'd forgotten that already and was just looking at my > local tree... Let's keep it for consistency with how we report the > domain type then. > >> And then maybe we should also set it from the deprecated x86 >> driver-specific params. > > I don't think it's worth exporting more low-level guts to allow that to > happen - tying in to iommu_set_dma_strict() would be too late, as > before. I think the separate pr_warn()s which announce the relevant > parameter is deprecated (but has still taken effect) should be enough. > Fine, I suppose someone using a deprecated interface can't complain about imperfect prints. And I'll pick up your RB tag (unless you mention otherwise). Thanks, John