From patchwork Thu Nov 26 01:54:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 332914 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp939881ilb; Wed, 25 Nov 2020 17:56:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJwDQfSOAQxDDluFhWZIpSiSKaNYZomELiFNgBLmFim9vfWqdSi1RMmHurOJde0quVWQw0kP X-Received: by 2002:a17:906:3704:: with SMTP id d4mr697890ejc.338.1606355789477; Wed, 25 Nov 2020 17:56:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606355789; cv=none; d=google.com; s=arc-20160816; b=O/E+X2mMZWl60tLIqW24/PS9TjhQXLAm9CptUXtPecKCG3OUzrZQuhetFeU6h3QA7c w5RYsNFiMY3OeccSvtoZkpqVeV9bw5O/+U7geJ93bGChUfNSKjtSEzIKharDhvDj7P6V 5wLh5g5AxbXgdFDaClpVy/tSxfnKjv7U6ysw8WL3vN+TRYo+9jLeSZaJPjDYEHxct91/ fdsTzuaUwt6EnWRIYCXTCKg8WBO4UCpl6BhNCAnHvS8i75bbzdD3h/BqngNi/LuODuUy 7V5kRY7ZO8D217pEbgxWWBm/gt8czzphDePamVfJz10RY/+iJF9WVK6npQ5BoaZv4l9o 7l1Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GGWnzP3ted/k1YfU1Wv1gmCCa/vZ4JiGXqXyN0Z7WN8=; b=xKEMjMq5lppwAtttgdF3+X7u2lGM1dWW6i7NRk4degt3F6j79wY03C78pJmDAFbAEn fjQSaYhm9gx6oPeeHgXa4tmlim1IHDl4T7X+/WfeIAElPvtmvoJ6GRD6oVgMVDIIa0hm 5NFg5v0g5bpBstDffbl6KoKd9zvTLB4btYsBnoin3wdFJz6o23DxnFA74lPKcYXgiKlc kWOhL61ylFeqCVI2T7XhqKkbV595V5ugkDlaJc+1nWY83n6sq3U6JMGDU+2iWJSmhq5K CUaVtSeUwTwm/az/Cp/t9iqRNGJ11CjNiLP+z9APNxT//TFBvOFu2VfI/IDXpOsnnjjm SdSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g2jLMnqX; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b13si2364347edq.75.2020.11.25.17.56.29; Wed, 25 Nov 2020 17:56:29 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-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=@linaro.org header.s=google header.b=g2jLMnqX; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731621AbgKZBzC (ORCPT + 6 others); Wed, 25 Nov 2020 20:55:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731378AbgKZBzC (ORCPT ); Wed, 25 Nov 2020 20:55:02 -0500 Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E78E5C061A55 for ; Wed, 25 Nov 2020 17:55:01 -0800 (PST) Received: by mail-io1-xd44.google.com with SMTP id r1so265636iob.13 for ; Wed, 25 Nov 2020 17:55:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GGWnzP3ted/k1YfU1Wv1gmCCa/vZ4JiGXqXyN0Z7WN8=; b=g2jLMnqX5N9dFLYoZMYksdj94s+FaPOPKBetHiua6V6i83TbetwVJlm3B+C/ug4mrf rC3uO6T0nTSSeZk1kRugYMEFfGpCgMU67/ZbADR92EgXJAduQ8BLdayrI76r41kkruIG d1HJtbD9aLod13ic1jKhVu4Dr6Rg+VRFmZhsVRaRTBwbj43sFrl7WU4VbMzGPveSGKO0 amuQksGJcXn/5VIPBLNita5E7WmHNqrXbD3sVM1b8EHIVOOlqxTZ4dewYTjHrlgR8H7/ MT0udVwar5r4RPEH15Z+vMEECKAjGmmcP+XqhuuYoC/rr0+d8ao7gqzruLH/wT5H48c/ Uctw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GGWnzP3ted/k1YfU1Wv1gmCCa/vZ4JiGXqXyN0Z7WN8=; b=AAuWZAqN2y3/bYTEpwKMCEjZMRQ0lAiZ0QOFo2r0nir77imksu7FzT0Ew+EN0eEMNP 6e4xKjaSCBtNNMHgfv3rKO4sNFjk2xFChZHTwxyLBaARJPKK4p/tJCojFNtC8ovx5MK7 9SmAvBClzIgmOjpIYL+7CCJGifPnZhjw5wTMXRd8/fc0Rvs5H0qltCTqSNPYvod3iLkH zkGXV+ZEsnrGRb4oW90Wkf8UYGiStOpe5jxaFXyVx043D4VBLsO62t0bDS4x/IwwFdlz Y4ExS/RaXlw9kQUTT0bLvLqDfYEmlm1zugtwfM64HgCyKUSFsQOQT+ucUcGjht/o/rL9 pasA== X-Gm-Message-State: AOAM5336Mn5iCOea+9gpbWZjakp6q53BnsYmu3DsVD9GuN4gtO5CADFv Rdsd+dytCrAxcCKR8OifkrBung== X-Received: by 2002:a5d:91cf:: with SMTP id k15mr679354ior.161.1606355701259; Wed, 25 Nov 2020 17:55:01 -0800 (PST) Received: from beast.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id r17sm1714907ioj.5.2020.11.25.17.55.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Nov 2020 17:55:00 -0800 (PST) From: Alex Elder To: bjorn.andersson@linaro.org, agross@kernel.org, robh+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] arm64: dts: qcom: sc7180: limit IPA iommu streams Date: Wed, 25 Nov 2020 19:54:55 -0600 Message-Id: <20201126015457.6557-2-elder@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201126015457.6557-1-elder@linaro.org> References: <20201126015457.6557-1-elder@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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") Signed-off-by: Alex Elder --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.20.1 Reviewed-by: Bjorn Andersson diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi index c0efb101b0d61..eb66aadf360d7 100644 --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi @@ -1396,7 +1396,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>;