Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp516124rwi; Thu, 13 Oct 2022 01:04:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5DAwxNeEfhLpeNXwQw6f503qdKzmDeN+tiiPJXNwEsT+9rlWZFTfl5WpvoC/qsqgE7uwJi X-Received: by 2002:a17:907:a044:b0:78d:b569:b891 with SMTP id gz4-20020a170907a04400b0078db569b891mr15656758ejc.224.1665648271145; Thu, 13 Oct 2022 01:04:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665648271; cv=none; d=google.com; s=arc-20160816; b=nglXZ/bPG3zmrD6HU7LqQDhLjf3uWCkgOqtF4/Ol31KNPwFvwXOxc0Wy1gNDeUWFam yplKAGL2eWQTT1jTSZpUu7bD1XdUzSFPxfN7ZqczRMTSxo0rNkyd2q4HmlFb7dfpai8T shrf/i8fM3IAODZY0RqXE0KoUqGENpSZhiKGd8wVUlii2IT73PDnjF36N1JQfCIab3V7 GRxklDTVWhYrgBSqT61baoD+3LIWiMF5shQA8qVMeBxFDThCigK16nVe0JM7a+PXbsE/ JM69T/u23q/oYOjs+UI5K2s0htELjrSCGPI7/PnkWO22MassA2xwCNHm+5guz2G6u3gr OdZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=LdfIIRCl3nb6GZtYK/G99cPq3+nMi1O+p+DrovJ5lkU=; b=SspV+D1SW4/j8qiaG1DElkY7dap/tWw8BzOkEptKMujj2jNIiiiGU1raDGYuYLwC+X wmpavh/1TYlBS++H4b2SpFhMcGGuf6kolmXIToumLjYexjE6Lcs3TTkEjv1Qg9NcDWN5 G2+cQcshGR5mXLBvwrxWkVD/fNtO8+T8wUNBIus+UCuaFEmabQsZxI0mPWh6Dqkq4Rk1 urytHsrUOsEGR2H/bTYSENkOd+GBW0FAgc14EYH63RG4mh3BbNhRli19Sh5tyGfsBTPQ Z1Twdfk4r+NxtFnlbGxLNiozD8zkPoEgMy9w/WKesBn+bq8t0YyRiy6NDwE4NdKSPjV5 rzTQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gh30-20020a1709073c1e00b0078df185078esi2769233ejc.663.2022.10.13.01.03.55; Thu, 13 Oct 2022 01:04:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229586AbiJMHHw (ORCPT + 99 others); Thu, 13 Oct 2022 03:07:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229529AbiJMHHv (ORCPT ); Thu, 13 Oct 2022 03:07:51 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 407C6E52F3; Thu, 13 Oct 2022 00:07:50 -0700 (PDT) Received: from fraeml738-chm.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Mp0tC2wMyz6H74g; Thu, 13 Oct 2022 15:06:11 +0800 (CST) Received: from lhrpeml500003.china.huawei.com (7.191.162.67) by fraeml738-chm.china.huawei.com (10.206.15.219) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 13 Oct 2022 09:07:46 +0200 Received: from [10.126.172.19] (10.126.172.19) by lhrpeml500003.china.huawei.com (7.191.162.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 13 Oct 2022 08:07:45 +0100 Message-ID: <4ffc662d-5c73-5047-81d5-ad78ca3a7d7e@huawei.com> Date: Thu, 13 Oct 2022 08:07:46 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH AUTOSEL 5.15 10/47] iommu/arm-smmu-v3: Make default domain type of HiSilicon PTT device to identity To: Sasha Levin , , CC: Yicong Yang , Will Deacon , Mathieu Poirier , , , , , , , , , References: <20221013002124.1894077-1-sashal@kernel.org> <20221013002124.1894077-10-sashal@kernel.org> From: John Garry In-Reply-To: <20221013002124.1894077-10-sashal@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.126.172.19] X-ClientProxiedBy: lhrpeml100004.china.huawei.com (7.191.162.219) To lhrpeml500003.china.huawei.com (7.191.162.67) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/10/2022 01:20, Sasha Levin wrote: > From: Yicong Yang > > [ Upstream commit 24b6c7798a0122012ca848ea0d25e973334266b0 ] > > The DMA operations of HiSilicon PTT device can only work properly with > identical mappings. So add a quirk for the device to force the domain > as passthrough. > > Acked-by: Will Deacon > Signed-off-by: Yicong Yang > Reviewed-by: John Garry > Link:https://lore.kernel.org/r/20220816114414.4092-2-yangyicong@huawei.com > Signed-off-by: Mathieu Poirier > Signed-off-by: Sasha Levin > --- > drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 21 +++++++++++++++++++++ > 1 file changed, 21 insertions(+) I don't think that this commit should be backported to any stable tree. It's only required for a new driver. Thanks, John