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: 11932491 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0EEE9C63798 for ; Thu, 26 Nov 2020 01:55:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5D08321741 for ; Thu, 26 Nov 2020 01:55:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="g2jLMnqX" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731379AbgKZBzC (ORCPT ); Wed, 25 Nov 2020 20:55:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730963AbgKZBzB (ORCPT ); Wed, 25 Nov 2020 20:55:01 -0500 Received: from mail-io1-xd42.google.com (mail-io1-xd42.google.com [IPv6:2607:f8b0:4864:20::d42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D398BC061A51 for ; Wed, 25 Nov 2020 17:55:01 -0800 (PST) Received: by mail-io1-xd42.google.com with SMTP id u21so267820iol.12 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=qzU5S0fYV/Nl2CMowgdQXhH3W7UiWaey+RWb614YxwAzhfF4iekPZ2WEvkMpkkV5Zf mZoOhhk0+I9vzBcjLp7C0vxGDIHMHhavoRxuclrpG87bQk/N1uchTqunl1PFDyXXq/UZ 9D9j6btCkOe6nFhKS9bgCN6iAi4btjqNZsj5VluPYcPLBl2W+8J6LfaCoxbmBvK92HF7 sCbd3TxyWFzcrE2H7g/M0a5irhtq/RpoC2SHDnZGaejou04uWVBVkZt5uqUhZbIQhtzi 4r6nMsWBI9r7XCyahlAY6XgTnGzFgh+5FHFe9yPdgnxGzCqDVe1U/1FFc9WXaO5BSP7b 4Y4A== X-Gm-Message-State: AOAM5310Y2oxtH5sRmFSfxNzLH1Yzxoj+M2z0Yo44KeVBq76WNilkf3Z V9/M2Ormv0ZrV/1QVBsWJeWAmA== X-Google-Smtp-Source: ABdhPJxp8IY0yK40iHL7IHTE7Xq7UnMg3tWMnS5UZVoXIwXRPPyIclWogeFYl8I2fFFOW4jOU8FReQ== 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: linux-arm-msm@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 Reviewed-by: Bjorn Andersson --- 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 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>;