Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9120078pxu; Mon, 28 Dec 2020 07:07:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJzOOW+x7r0xLazJ5Vfzu4CH9S6FHZsXKRtOqr4JsMXW1YczhFz0Y6cWZL9mbB8hhgGmMhGy X-Received: by 2002:a17:906:ce3c:: with SMTP id sd28mr41692758ejb.485.1609168074339; Mon, 28 Dec 2020 07:07:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609168074; cv=none; d=google.com; s=arc-20160816; b=Xx3dUXCGYUQhKAOJpbLJzLe+fR4+bxF2RdH1nTxPj8tjYMvLaBXXgHadrg9lp/bq3e B43/QJSU+zd3sUV9dJ2720HdjG5gn8Ygijy7yoseSd0Gws9eSH9EdgVaALCrJTMcu7wF 0X6iDHf++/T/1oNoKa2GPU39gWXfjYryWcLDaSt5huOOHsRlDF60/29tcDOdC4YnMRDD /Js+OQRlHVXcTlaSmaAxqh+B3vHyajo+Siu/zB9Za45bHtchkVyFotr86/cqggV9DFiI Nxqkq5A0qisXsuG1TwcfY0JX9E6wIQ9x5etYApzhAPTL4XXJ8238O+qw85admiihou5R QXJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=3xfiPyy1xnKRZbzG8xoVgeQzmfcg/Y82L21lJWi41PY=; b=cUkk7Hk5SXgpfZ4q6C5+3gN/tW8F3f9sW/XLKlJe3B/TbMUdXZudZA93g4npwjg0Oz dxpn73HJ2zEC0v62Asm/GLJHM7gGThFNhLFoO+KEtiP9NMJcVT6ehk6oUbC8a47VgpHu dLEVb5CBBQ4Y9Gu9OqQJMAPFSQUeHZj0frDfhioH+cQdRqFIric2g3+IGbZ30b4W+rnC 373STWctrmjbDxRuTpSkSnZZYoe1pYmkRRnVU6TFd8MbbwjosWNTrCqogUwHi2uJ5t2/ R5WHHvI5yH9nwLUYClNG9EwiHJwyCl/CwTC7tyQomKGXa8A3/2gmhPnwIetSheEPSfNq dlBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SuHJWSJL; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gf18si18715987ejb.202.2020.12.28.07.07.30; Mon, 28 Dec 2020 07:07:54 -0800 (PST) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SuHJWSJL; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439526AbgL1PFY (ORCPT + 99 others); Mon, 28 Dec 2020 10:05:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:45744 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438379AbgL1OLO (ORCPT ); Mon, 28 Dec 2020 09:11:14 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8098F20731; Mon, 28 Dec 2020 14:10:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164634; bh=E1bQpI9RN96K7zvpzcbQ7/BxJFNvZGbMLZcbJivgd2E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SuHJWSJLMhSupZmNvZ0/jr/jHQK5HXVby9emT73DWFE8vBXiMP2QJ+aICyuVNz0R5 iUZt2iUswr6WJKoG+tlf+iOKnZ7Od8gL63BGVWw/04WyS46LNb2wkeE7GWbxGrfp2z B1rg7WPS+MMiqvuuI3UEGy26yvufiZjow9aIHI3U= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bjorn Andersson , Alex Elder , Sasha Levin Subject: [PATCH 5.10 213/717] arm64: dts: qcom: sc7180: limit IPA iommu streams Date: Mon, 28 Dec 2020 13:43:31 +0100 Message-Id: <20201228125031.176824661@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alex Elder [ Upstream commit 8f34831d3659d38f480fddccb76d84c6c3e0ac0b ] Recently we learned that Android and Windows firmware don't seem to like using 3 as an iommu mask value for IPA. A simple fix was to specify exactly the streams needed explicitly, rather than implying a range with the mask. Make the same change for the SC7180 platform. See also: https://lore.kernel.org/linux-arm-msm/20201123052305.157686-1-bjorn.andersson@linaro.org/ Fixes: d82fade846aa8 ("arm64: dts: qcom: sc7180: add IPA information") Reviewed-by: Bjorn Andersson Signed-off-by: Alex Elder Link: https://lore.kernel.org/r/20201126015457.6557-2-elder@linaro.org Signed-off-by: Bjorn Andersson Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi index a02776ce77a10..c71f3afc1cc9f 100644 --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi @@ -1394,7 +1394,8 @@ ipa: ipa@1e40000 { compatible = "qcom,sc7180-ipa"; - iommus = <&apps_smmu 0x440 0x3>; + iommus = <&apps_smmu 0x440 0x0>, + <&apps_smmu 0x442 0x0>; reg = <0 0x1e40000 0 0x7000>, <0 0x1e47000 0 0x2000>, <0 0x1e04000 0 0x2c000>; -- 2.27.0