From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 88728ECAAD4 for ; Tue, 30 Aug 2022 08:18:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=lk9AD6Iinu8TmKUXaLXt2GoA2UZOaPcy4jcHDhlLVXI=; b=ehBUxaIQC+d9devUUXqe3pSDBN yAkwoaadjWgfBZOupdWIHoXXuwNyYuv+PQOPcw80eUMp1xCGEiIJ5TbbMlJymNLvXqqMoxjeS6WG9 U4wYiiNCEaC+ignVcKuv8j4CTVeGt/HXyYSpS7/R8Hafo3g9nU1EWqC0NWl1J2C+QxwOYPSGtRXTH IKBGpV2uG71g4ysaZz05/UDIF1UiVyR6g+9nOa1nt14qjPgcpMR8T2efhSdnVZwPixMEjrDiWZvbz p1TMy+FRt7x19Lfbjp/zk2eEykCUpbs5NTIyrgWoem1lfkr091cTZUwLVbjNSLqKzxd3oF/oAEbM+ HZppVG4w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oSwRT-00F8Dh-Ph; Tue, 30 Aug 2022 08:17:51 +0000 Received: from madras.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e5ab]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oSwPn-00F7O7-QI; Tue, 30 Aug 2022 08:16:09 +0000 Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 3A4296601E8E; Tue, 30 Aug 2022 09:16:05 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1661847366; bh=RhuI1yWgn6gBmBPlwuNO0blBF1o/qMPbrqYFzGXSElc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=I9oUDCAEb9L0xz0DoNFHbqEET2qL1Ufphb+wJ8rP9EgCO/z/ANEHOT9UkG/LBRDwS oITPjXyUNlvIFwVc0RFlLK7qJTFrzAs/gnFnDEEupkCPEGCi8oandZaRei1xIHsPuH ulV+22EC5nFoI2olm6FomJ9ebFU0CWHsvsOWbWCfBtVBk/iTuLbJgRHAGeQXmBnVDx s3/Z4e1iZ8Nao3dY6kaf9UTPqO26x0gZXuj4ae7GCqLWy6YdTttt77s9R6h1tBrOyI krCPKCybm6XUoR/GTi+V/oLbpPD//aIOO+fh/uB1T7BpRsqLxY2AFD4+NsVmd5JVQ7 ocVQ9+UvWrGCg== Message-ID: Date: Tue, 30 Aug 2022 10:16:02 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v4 5/6] iommu/mediatek: Improve safety for mediatek,smi property in larb nodes Content-Language: en-US To: Yong Wu , Joerg Roedel , Matthias Brugger , Will Deacon Cc: Robin Murphy , iommu@lists.linux.dev, iommu@lists.linux-foundation.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, mingyuan.ma@mediatek.com, yf.wang@mediatek.com, libo.kang@mediatek.com, chengci.xu@mediatek.com, youlin.pei@mediatek.com, anan.sun@mediatek.com, xueqi.zhang@mediatek.com, Guenter Roeck , Dan Carpenter References: <20220824064306.21495-1-yong.wu@mediatek.com> <20220824064306.21495-6-yong.wu@mediatek.com> From: AngeloGioacchino Del Regno In-Reply-To: <20220824064306.21495-6-yong.wu@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220830_011608_060089_D6034047 X-CRM114-Status: UNSURE ( 9.38 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Il 24/08/22 08:43, Yong Wu ha scritto: > No functional change. Just improve safety from dts. > > All the larbs that connect to one IOMMU must connect with the same > smi-common. This patch checks all the mediatek,smi property for each > larb, If their mediatek,smi are different, it will return fails. > Also avoid there is no available smi-larb nodes. > > Suggested-by: Guenter Roeck > Signed-off-by: Yong Wu Reviewed-by: AngeloGioacchino Del Regno