From patchwork Wed Aug 30 12:48:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 718714 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14F0CC6FA8F for ; Wed, 30 Aug 2023 18:34:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234463AbjH3SeI (ORCPT ); Wed, 30 Aug 2023 14:34:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244243AbjH3Msw (ORCPT ); Wed, 30 Aug 2023 08:48:52 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDDCF132 for ; Wed, 30 Aug 2023 05:48:49 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2bccda76fb1so84714351fa.2 for ; Wed, 30 Aug 2023 05:48:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693399728; x=1694004528; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=46NZOkI5BuMzdTRi8W6TrVh0RTD9MbZglmlN/4mby7Y=; b=abPP9HHShBhjNK8sUzkOYUsYHjsCT13M1zKvqUKetcyuNTBcrcvLUtPJuF14EL27fm 83ABM4OW4dD2m17w1EZCIev4xpFVC7Val9zHTpfaoQjLnK6jUGzbwlVaUMojs8C0XpMY ISOOvDkFvFTjEG54p9iCEBMTpzNDGD/CSJ+Oxlg0qj+shLMoCKn/6RH9AQ0v0hWXelp4 /BiraqAWUZzNs6LobKcVDGdDgTaHiIUSKXf91dXrrWnn/M+lHX5RZoIhr9+x+Bevn9xx UAu4IA0yI95Q34icDPYfZuYVhiaptTz52yx06IUsH3M7m9AkWHqvN/UOCgR1igzrHWMS aHZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693399728; x=1694004528; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=46NZOkI5BuMzdTRi8W6TrVh0RTD9MbZglmlN/4mby7Y=; b=RWPs46eg7LkJpAeD0plSMtz1VMczsTUa3iM183P1a5bvj9OnaaR9tR9avdlIavzOBk rW9PiY+j8fVfnglFQkVcpkSMEVVESwUUIrXCAXE7dsOk+04RGw/M+3hzqRQcIpLwBZio SwJpF2U6ZZDr6Q0s+Je9Ia5zCs+qXEc99BXIk5arK0+cHJC5XlilCRhueTdK7C8K3xLZ 5pCqCoQcYTq635G10Hcg7DH0WqSYfFDQlr6xJZgJm6O3EzG0rRw8HbM2hXNUmKBNXC7e BTJcUUsUYAkdtUzseY+YXFM1fJUHd0iJzWhfn9IpDMKjwpv8kof5MZc6kk7+wJmeNxYq SkAA== X-Gm-Message-State: AOJu0Ywy7By04ZRJoYB6YsF5RJapbMfa0L6o+Kra2QKtHhXOpMLY2ubf nVV3x6rQSI+c5P6WzR6ggbT7JQ== X-Google-Smtp-Source: AGHT+IGeZgRvhsin/FQ80IOmYROmiVye+4fyrQAm709GoFrpp7RnOsXC22ixiUzE9LzBSbgKztM9kg== X-Received: by 2002:a2e:90cc:0:b0:2bc:c557:84a0 with SMTP id o12-20020a2e90cc000000b002bcc55784a0mr1932296ljg.30.1693399728015; Wed, 30 Aug 2023 05:48:48 -0700 (PDT) Received: from [192.168.1.101] (abyl195.neoplus.adsl.tpnet.pl. [83.9.31.195]) by smtp.gmail.com with ESMTPSA id y23-20020a2e7d17000000b002b94b355527sm2602662ljc.32.2023.08.30.05.48.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Aug 2023 05:48:47 -0700 (PDT) From: Konrad Dybcio Date: Wed, 30 Aug 2023 14:48:40 +0200 Subject: [PATCH 1/7] dt-bindings: dmaengine: qcom: gpi: Allow dma-coherent MIME-Version: 1.0 Message-Id: <20230830-topic-8550_dmac2-v1-1-49bb25239fb1@linaro.org> References: <20230830-topic-8550_dmac2-v1-0-49bb25239fb1@linaro.org> In-Reply-To: <20230830-topic-8550_dmac2-v1-0-49bb25239fb1@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Abel Vesa , Neil Armstrong , Sai Prakash Ranjan , Vinod Koul Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1693399725; l=679; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=rBp7umC00prE1h9KeC6phot+nBob9JGazDIEIaR2e/s=; b=nfSFempdzypvUleIIJYKjSfu9Aj1ZsC97rjUbOUeNK4sS4tQmgjtR5iimkq2+dV68/4Jlqp0U q2vRVQ0F9lpAgcHMzTQe8AYxoctpsSaUYK6oiq3g4xWlBROUfQC38AW X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On SM8550, the GPI DMA controller is coherent with the CPU. Allow specifying that. Signed-off-by: Konrad Dybcio --- Documentation/devicetree/bindings/dma/qcom,gpi.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/dma/qcom,gpi.yaml b/Documentation/devicetree/bindings/dma/qcom,gpi.yaml index f61145c91b6d..88d0de3d1b46 100644 --- a/Documentation/devicetree/bindings/dma/qcom,gpi.yaml +++ b/Documentation/devicetree/bindings/dma/qcom,gpi.yaml @@ -69,6 +69,8 @@ properties: dma-channel-mask: maxItems: 1 + dma-coherent: true + required: - compatible - reg From patchwork Wed Aug 30 12:48:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 719272 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB91FC83F19 for ; Wed, 30 Aug 2023 18:32:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236013AbjH3Sc2 (ORCPT ); Wed, 30 Aug 2023 14:32:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244247AbjH3Msy (ORCPT ); Wed, 30 Aug 2023 08:48:54 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD3AB194 for ; Wed, 30 Aug 2023 05:48:50 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2bcda0aaf47so9693701fa.1 for ; Wed, 30 Aug 2023 05:48:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693399729; x=1694004529; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=tWkuNyNpN35mUdPo9osM+UvbCZY9NRuobjLnr6Z6HMI=; b=sSFEkiCBX3hFqR6l2ESC6Ze2Xv8sHKa9NYGmcIbpu3NGJZ3TqInyjXBlui8V/Jto0t swM9GMHAl+Qp3vLUdO4KXnDKCVScwgeSynZw2I+rpsv4YeXdRaXD/06nXDaQJsx8uo+N GkiiOVVcOt8XRtAuElYex6Qx/ZHJql2knZr9wPMQ0sVX+wvVRyr+E+Yxh/+aLM7aGveH lPb2cTlIV/q1ZVXBYmcGZ74+M4U+lqqJhh714Nyc0mwLp8XSlez5+70nTiytH1WG8V3T yjSGvDBAX/XqzEXIcPDsuemkkbxPhcbGE9v6wh0zTWZKdXi/RUuLfgxli/2z6ZVnZ+Eh NBiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693399729; x=1694004529; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tWkuNyNpN35mUdPo9osM+UvbCZY9NRuobjLnr6Z6HMI=; b=iMkbJnxRakO5y49Kbm9KkSmT7XZAzJhevAgXADpidPW6nFZi63uh9T8fjuhI0hWKEg 2mZfJ5xHkreJL1k2ZHQr0987f0I7s7VRCu4V7JEi+IPwHgwi/af1S4EVad+aWw972Mcp 407ACmBaWvQ24pdCjLry/UV1DPieWoH0yaBSKZc1T0oIOfIBkLeEsiiadrTBRUzv14Lt jdvMXdMC4MKHJJJyHtzjxYRX6e1rOFW0j9aLYhu6GdpdyftnXd0FWcmfOM/VzNOXJrd6 O3cnOfJJhVC0BheA/fZI3trKPn+WGK981iYyk067VerhXA9TNpdyXpJGJoqek1BdhRDe +nLQ== X-Gm-Message-State: AOJu0YxovXWzubGeExL0ocSEbe5/L4adF496K/wBlC/ZcgFTMC6HTHj8 G14Gjn1gBNZmUlA7TRU8GY6hWQ== X-Google-Smtp-Source: AGHT+IHnTIGMZI8k8PHQCgawzuSVJ+4ZmqO1+OtbsAv1rszk4da6sggiDWDSJgEzOWurdA6UTHV+OA== X-Received: by 2002:a05:651c:2314:b0:2bb:7e3f:3cc2 with SMTP id bi20-20020a05651c231400b002bb7e3f3cc2mr2083506ljb.2.1693399729224; Wed, 30 Aug 2023 05:48:49 -0700 (PDT) Received: from [192.168.1.101] (abyl195.neoplus.adsl.tpnet.pl. [83.9.31.195]) by smtp.gmail.com with ESMTPSA id y23-20020a2e7d17000000b002b94b355527sm2602662ljc.32.2023.08.30.05.48.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Aug 2023 05:48:48 -0700 (PDT) From: Konrad Dybcio Date: Wed, 30 Aug 2023 14:48:41 +0200 Subject: [PATCH 2/7] dt-bindings: qcom: geni-se: Allow dma-coherent MIME-Version: 1.0 Message-Id: <20230830-topic-8550_dmac2-v1-2-49bb25239fb1@linaro.org> References: <20230830-topic-8550_dmac2-v1-0-49bb25239fb1@linaro.org> In-Reply-To: <20230830-topic-8550_dmac2-v1-0-49bb25239fb1@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Abel Vesa , Neil Armstrong , Sai Prakash Ranjan , Vinod Koul Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1693399725; l=710; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=CppecVFIy2DoqbEQwzZdR+9tg6tYiwkRdQB1uCJt3Uk=; b=1W0O6Wei8zx7qhG0OegNkxw9mq9RE0tWQdW4sZEAZXQkjwthGZWHtFarTl/I/KRpha9uXkOJd xqjIz3ppSuoDkXD4iNn9zf0dCmG0yXSaM5kfUze/b8/Ef14pXrObwYT X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On SM8550, the QUP controller is coherent with the CPU. Allow specifying that. Signed-off-by: Konrad Dybcio --- Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.yaml index 8a4b7ba3aaf6..7b031ef09669 100644 --- a/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.yaml +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.yaml @@ -52,6 +52,8 @@ properties: iommus: maxItems: 1 + dma-coherent: true + required: - compatible - reg From patchwork Wed Aug 30 12:48:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 719237 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF4B8C83F25 for ; Wed, 30 Aug 2023 18:45:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236372AbjH3Sbp (ORCPT ); Wed, 30 Aug 2023 14:31:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244250AbjH3Msz (ORCPT ); Wed, 30 Aug 2023 08:48:55 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 245A3132 for ; Wed, 30 Aug 2023 05:48:52 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2bcb50e194dso84655361fa.3 for ; Wed, 30 Aug 2023 05:48:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693399730; x=1694004530; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=YZfHVMKUP11Ad69XbKt6znXsV/mZxYi0rjxpdqRgPps=; b=hu6rQ9805q5fpQOj2oxFN/aNoeH9GOidfTygVabHYo7aQJe7wdA7rDuKH/TSj+68Yv 3xDVSGEmk4Ys75J2QOHIr+r+l4OlCse9sqoIvZiJxkZKZDqjGOZY2jEWle5In6jpV6Kd qJbnRmOstPmBKmC5kgIerRAgjM2H4wqaOMDnDbWYcXS9cXPKOwglyjrP3DCVRzRdBk3f mywlogTvUOsWbZ9M/+aBf5vVp7by9kjAj5GKljDLdw1pWmc17qPoAEnqrpB++JmaAuXq oS8G2rKkCz9ilh6xsOxauyCoQA1Nm58MGpt49Xfc13PLL839qgdNNC47fqLm4b2OqZ7J OFkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693399730; x=1694004530; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YZfHVMKUP11Ad69XbKt6znXsV/mZxYi0rjxpdqRgPps=; b=JVhidQKGkmAuv5GceYLXnhv9471n/VSxEyUnT7HlZ8NSgZjn7B4BsdAYzOebG7qUtk x2Mc7Kq4B01bERsaSBH/zVspBQC1s1czp6wqpYX2qIu4g4S20KNqWdQSu3jHkjb+NBqu qwg2p/BDMqLP3S3VDx0tXqaRwhIoUVsuoCdhOWyTjKAqeVMfyeLaFvZahwbFLxusWz57 P7Bz142L89k1+pv7DGVRf14cPrsFctRVU4/FQ4+ogGOpgwJUEzxvOJ5HmohqH0HWMCMi oR4IfuwCcotqpEp7dCH8iu18VIfKhCC2pCcG2aUwoqIrTP3rIvlM6Zg4zjAZp5+ait6f YExQ== X-Gm-Message-State: AOJu0YwK2BPau+BARufVlllzArQY1ahAC8xLxPek1bMUc1Wlcd4zunmV n0wBa+WsIQSRlXACbjbmN74+Jg== X-Google-Smtp-Source: AGHT+IHPl8V3zLsbjHDfFeGyessbZv19EUMNxsPr1TfduqPt+L+60b346bKoU40JysVs7/+lbfk56A== X-Received: by 2002:a2e:7c10:0:b0:2bd:f8:1b6a with SMTP id x16-20020a2e7c10000000b002bd00f81b6amr1697134ljc.36.1693399730441; Wed, 30 Aug 2023 05:48:50 -0700 (PDT) Received: from [192.168.1.101] (abyl195.neoplus.adsl.tpnet.pl. [83.9.31.195]) by smtp.gmail.com with ESMTPSA id y23-20020a2e7d17000000b002b94b355527sm2602662ljc.32.2023.08.30.05.48.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Aug 2023 05:48:50 -0700 (PDT) From: Konrad Dybcio Date: Wed, 30 Aug 2023 14:48:42 +0200 Subject: [PATCH 3/7] arm64: dts: qcom: sm8550: Fix up CPU idle states MIME-Version: 1.0 Message-Id: <20230830-topic-8550_dmac2-v1-3-49bb25239fb1@linaro.org> References: <20230830-topic-8550_dmac2-v1-0-49bb25239fb1@linaro.org> In-Reply-To: <20230830-topic-8550_dmac2-v1-0-49bb25239fb1@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Abel Vesa , Neil Armstrong , Sai Prakash Ranjan , Vinod Koul Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1693399725; l=2738; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=0daxHtWoeP34wSKYumu6HinO+/RzKr02RkF1NXHSNDE=; b=p3avE3lalFnBLXK1+HYj/Tak5HGjcjronN/VeNSSfxc7bbROD0ZBpqjBzpJ+GkO99VFs25eGP iYtcGWuoP8eDX6N9X2Rl3v1Eltm0zCkK58DxdKj46Fh+5DpeVZHenHt X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The idle residency times are largely too low according to the vendor kernel (maybe they came from an earlier release or something), especially for the prime X2 core. Fix them. Fixes: ffc50b2d3828 ("arm64: dts: qcom: Add base SM8550 dtsi") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8550.dtsi | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi index d115960bdeec..c21ba6afa752 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -283,9 +283,9 @@ LITTLE_CPU_SLEEP_0: cpu-sleep-0-0 { compatible = "arm,idle-state"; idle-state-name = "silver-rail-power-collapse"; arm,psci-suspend-param = <0x40000004>; - entry-latency-us = <800>; + entry-latency-us = <550>; exit-latency-us = <750>; - min-residency-us = <4090>; + min-residency-us = <6700>; local-timer-stop; }; @@ -294,8 +294,18 @@ BIG_CPU_SLEEP_0: cpu-sleep-1-0 { idle-state-name = "gold-rail-power-collapse"; arm,psci-suspend-param = <0x40000004>; entry-latency-us = <600>; - exit-latency-us = <1550>; - min-residency-us = <4791>; + exit-latency-us = <1300>; + min-residency-us = <8136>; + local-timer-stop; + }; + + PRIME_CPU_SLEEP_0: cpu-sleep-2-0 { + compatible = "arm,idle-state"; + idle-state-name = "gold-plus-rail-power-collapse"; + arm,psci-suspend-param = <0x40000004>; + entry-latency-us = <500>; + exit-latency-us = <1350>; + min-residency-us = <7480>; local-timer-stop; }; }; @@ -304,17 +314,17 @@ domain-idle-states { CLUSTER_SLEEP_0: cluster-sleep-0 { compatible = "domain-idle-state"; arm,psci-suspend-param = <0x41000044>; - entry-latency-us = <1050>; - exit-latency-us = <2500>; - min-residency-us = <5309>; + entry-latency-us = <750>; + exit-latency-us = <2350>; + min-residency-us = <9144>; }; CLUSTER_SLEEP_1: cluster-sleep-1 { compatible = "domain-idle-state"; arm,psci-suspend-param = <0x4100c344>; - entry-latency-us = <2700>; - exit-latency-us = <3500>; - min-residency-us = <13959>; + entry-latency-us = <2800>; + exit-latency-us = <4400>; + min-residency-us = <10150>; }; }; }; @@ -398,7 +408,7 @@ CPU_PD6: power-domain-cpu6 { CPU_PD7: power-domain-cpu7 { #power-domain-cells = <0>; power-domains = <&CLUSTER_PD>; - domain-idle-states = <&BIG_CPU_SLEEP_0>; + domain-idle-states = <&PRIME_CPU_SLEEP_0>; }; CLUSTER_PD: power-domain-cluster { From patchwork Wed Aug 30 12:48:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 719248 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CDB86C83F17 for ; Wed, 30 Aug 2023 18:35:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231474AbjH3SfN (ORCPT ); Wed, 30 Aug 2023 14:35:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244256AbjH3Ms4 (ORCPT ); Wed, 30 Aug 2023 08:48:56 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 613711B2 for ; Wed, 30 Aug 2023 05:48:53 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2bd0d19a304so52068671fa.1 for ; Wed, 30 Aug 2023 05:48:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693399731; x=1694004531; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=DWiI/MO+dRLYiRlM6yuPgVrkrfGEHgAGx/JBsoZ6UJs=; b=AezHbQYgNOg5drXaw+6li3c7HTddL90Txak7dtzLkq42wLRpy0ENsMEKulCd8S1KU4 BYD5NSalBF/wXXZWc+kFktTKdbJlMgqUKV+JaGRgn06ldmpBihOhbuvTlTHl6a1vYvPh wj4MAauNnzgHttjRPvLPsNJTf1AH6JtEzZppuVR/d1M6+CSPb3UHQSO2+CDuGeOdNLMJ xtFt/ya81Aa95URhqRAxYeTTlJnGDeUyf4oNTCnY8SuRJI1CLNWm52UuvlmTcNReQoO+ q6XoQTmixw24fKw1vM70IlBCQIFNHn6YclUiyHPvSLhb1onnlvsobe/pG6lpD+2N+viv bepQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693399731; x=1694004531; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DWiI/MO+dRLYiRlM6yuPgVrkrfGEHgAGx/JBsoZ6UJs=; b=dl1JiGmk5VoyFGBK6SM61iwhhuUislRZrHmGkZfO4B89M1U1AJyLkIZyIhBr+z4QUr yTDSU+WE9cHfGxpIr0VozbaKza89vtQthM3x0v1L28I1UHkYAnjpNMEQKDx3JzHdT4xi AWhQileSgNjuDLstwBzt9DiASFkNuhX8oTm1HwNzY/WMypY21ykL4+o4wDNjEGaxQjz5 +4BIqLvs+tMJfnM2xn7PI36SPBUmQltVypiI+0puBD6EHkTfuizO5rXDUDiKLzOHaS0n cwoh2aL7ahfnSK/GLydMM6u68guaJjyIjMSEeiwEzgNahb+7WPaUAMj4Y3zmCqefT90h 67dw== X-Gm-Message-State: AOJu0YxW4uJ8x2bGF7pxRxu+5cmamLMwTmVtOSqgcNqudS1KWRaaYYqr xsLi1Yedl8FPDwd/EkWg6pIuWA== X-Google-Smtp-Source: AGHT+IGB6EjRvwDNWJL79VaWPpWpa//96gMp6keseMR2AQZCJmTBMEHBAohqGiuZ/tfwSe7ymS3Eng== X-Received: by 2002:a2e:9ed3:0:b0:2bc:f756:341 with SMTP id h19-20020a2e9ed3000000b002bcf7560341mr1735083ljk.35.1693399731713; Wed, 30 Aug 2023 05:48:51 -0700 (PDT) Received: from [192.168.1.101] (abyl195.neoplus.adsl.tpnet.pl. [83.9.31.195]) by smtp.gmail.com with ESMTPSA id y23-20020a2e7d17000000b002b94b355527sm2602662ljc.32.2023.08.30.05.48.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Aug 2023 05:48:51 -0700 (PDT) From: Konrad Dybcio Date: Wed, 30 Aug 2023 14:48:43 +0200 Subject: [PATCH 4/7] arm64: dts: qcom: sm8550: Mark QUPs and GPI dma-coherent MIME-Version: 1.0 Message-Id: <20230830-topic-8550_dmac2-v1-4-49bb25239fb1@linaro.org> References: <20230830-topic-8550_dmac2-v1-0-49bb25239fb1@linaro.org> In-Reply-To: <20230830-topic-8550_dmac2-v1-0-49bb25239fb1@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Abel Vesa , Neil Armstrong , Sai Prakash Ranjan , Vinod Koul Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1693399725; l=1550; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=KpP1uTJWmiR9lXNPKL0Q4ECVHINhEgm+GZ5ZKetVnSM=; b=+dD2d2XMnFSAp9IluhmgTkJG4at8z79Ut86xE2lm9psXhU19uVuohOEECjdUPhFsFNgj2V/cY 3ys4iS9J/wyBllOhvAgptcW3SEJmrfB+je1ZLzPBHAIDsQFkB1eiWyO X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org These peripherals are DMA-coherent on 8550. Mark them as such. Interestingly enough, the I2C master hubs are not. Fixes: ffc50b2d3828 ("arm64: dts: qcom: Add base SM8550 dtsi") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8550.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi index c21ba6afa752..d1911b2f0bf3 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -809,6 +809,7 @@ gpi_dma2: dma-controller@800000 { dma-channels = <12>; dma-channel-mask = <0x3e>; iommus = <&apps_smmu 0x436 0>; + dma-coherent; status = "disabled"; }; @@ -820,6 +821,7 @@ qupv3_id_1: geniqup@8c0000 { clocks = <&gcc GCC_QUPV3_WRAP_2_M_AHB_CLK>, <&gcc GCC_QUPV3_WRAP_2_S_AHB_CLK>; iommus = <&apps_smmu 0x423 0>; + dma-coherent; #address-cells = <2>; #size-cells = <2>; status = "disabled"; @@ -1305,6 +1307,7 @@ gpi_dma1: dma-controller@a00000 { dma-channels = <12>; dma-channel-mask = <0x1e>; iommus = <&apps_smmu 0xb6 0>; + dma-coherent; status = "disabled"; }; @@ -1318,6 +1321,7 @@ qupv3_id_0: geniqup@ac0000 { iommus = <&apps_smmu 0xa3 0>; interconnects = <&clk_virt MASTER_QUP_CORE_1 0 &clk_virt SLAVE_QUP_CORE_1 0>; interconnect-names = "qup-core"; + dma-coherent; #address-cells = <2>; #size-cells = <2>; status = "disabled"; From patchwork Wed Aug 30 12:48:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 719243 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 45D54C6FA8F for ; Wed, 30 Aug 2023 18:35:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229719AbjH3Sfq (ORCPT ); Wed, 30 Aug 2023 14:35:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244259AbjH3Ms5 (ORCPT ); Wed, 30 Aug 2023 08:48:57 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98264CC5 for ; Wed, 30 Aug 2023 05:48:54 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2b9d07a8d84so82274521fa.3 for ; Wed, 30 Aug 2023 05:48:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693399733; x=1694004533; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=oKPXhXF1PLbuqp2N8PbVHGsxWJlF7sZyrRMN/kZaQfg=; b=Iwf+Sg2l+pMVTfdACffpzWyblWAqUX6mYK+WP20dOAVkBt48AL8z4uIk+ZKgT3LvN2 MhPMVQP3fYMQBcuqM6oa6PDK5PfCSGSzRRkIHAp3PM0JdUfyDXX0XzoePSQ6cu6H0Vl8 dNx7YhWThvzZIzp+SGDBc7DkNh87WmsF90v6f2HnFGZTOQV0N/qdbKf2nXkqAcIUsGfb HLevRRIguU47rX3pmF5C1irzPj3variRhAKam/XtAcLmrkax6yITJ5b/+68bPLRQjLdv +XZ2TxQDXWK846oo0jjwOiL6wns7mog1ajoaTLZSgHPJ8dJrbZlFGh2bLQtrFx/Gl6Pe nLoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693399733; x=1694004533; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oKPXhXF1PLbuqp2N8PbVHGsxWJlF7sZyrRMN/kZaQfg=; b=LKB1udXW4alySlS0aORrpn4JT2G97WClNv9XG2H7SkaSUidXMUdERsP8l3vYARFcqy C0AOw+GcrYS1zrPMlELH5uU957HwZYt0t4lMwwdJYlPU0XTZ38ZCpmVrU94ia32dT8Ok R9L6zFSMIjFa/C+RuRuQmD+XAcUEM8ZIs6gkn9oDR+2g0KqnZQT9T8j3hfGLObWm2nFn c3Mw8fMcJxMdPDNAel/69OVLx4oea1dzxVHU8ngGvYSIONw71LeU/GU7vtZ/V8yt406X PduDDiM0uuu+K1w2RFZvDcAd4xqYRTWdeViSXzxC+ARkDs8vc6VfjZrynzfRPVyU0AWc MYqw== X-Gm-Message-State: AOJu0Yzoi5lrPUn8YWyGj+on0KrKaevRnebIueMLKVTXyrq5iq3VZpfN fX9PPn74GoblsV9XmXs2DtzB2w== X-Google-Smtp-Source: AGHT+IEMqA8Wy1vPUEbfk80T0idVD4AwaoFtCsmwNdpJ/6NEPZQjtmG7nTLODMRmD5xy+1kpYdT7gA== X-Received: by 2002:a2e:7316:0:b0:2bd:1614:d47 with SMTP id o22-20020a2e7316000000b002bd16140d47mr1774740ljc.42.1693399732906; Wed, 30 Aug 2023 05:48:52 -0700 (PDT) Received: from [192.168.1.101] (abyl195.neoplus.adsl.tpnet.pl. [83.9.31.195]) by smtp.gmail.com with ESMTPSA id y23-20020a2e7d17000000b002b94b355527sm2602662ljc.32.2023.08.30.05.48.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Aug 2023 05:48:52 -0700 (PDT) From: Konrad Dybcio Date: Wed, 30 Aug 2023 14:48:44 +0200 Subject: [PATCH 5/7] arm64: dts: qcom: sm8550: Mark APPS SMMU as dma-coherent MIME-Version: 1.0 Message-Id: <20230830-topic-8550_dmac2-v1-5-49bb25239fb1@linaro.org> References: <20230830-topic-8550_dmac2-v1-0-49bb25239fb1@linaro.org> In-Reply-To: <20230830-topic-8550_dmac2-v1-0-49bb25239fb1@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Abel Vesa , Neil Armstrong , Sai Prakash Ranjan , Vinod Koul Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1693399725; l=787; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=dxb1X41je4rSeIgX7+gDy1NHdrHHkO6VZ2ImanBaUfE=; b=RnhOr3wT86Iumb2IEqK64ax6cEBUEMNSImGSUIVZrcGXpnCPKZWNcUmIKZUm7MJzPHM3sIvA8 efPFh646mx2DZRzLKLxp4otgWTyEK++fXIVn2vEknLn21XV2ltd+j0M X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Like on earlier flagship Qualcomm SoCs, the SMMU is dma-coherent. Mark it as such. Fixes: ffc50b2d3828 ("arm64: dts: qcom: Add base SM8550 dtsi") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8550.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi index d1911b2f0bf3..944b4b8c95f5 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -3655,6 +3655,7 @@ apps_smmu: iommu@15000000 { , , ; + dma-coherent; }; intc: interrupt-controller@17100000 { From patchwork Wed Aug 30 12:48:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 719269 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9EE84C83F1D for ; Wed, 30 Aug 2023 18:32:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230463AbjH3ScN (ORCPT ); Wed, 30 Aug 2023 14:32:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244261AbjH3Ms6 (ORCPT ); Wed, 30 Aug 2023 08:48:58 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE641132 for ; Wed, 30 Aug 2023 05:48:55 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2bbbda48904so83420161fa.2 for ; Wed, 30 Aug 2023 05:48:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693399734; x=1694004534; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=sgmwfxTnMmpefIt4Jxsh17oZItSNIKysBY26cGht8Zc=; b=KPonl6BB6Sgvtd/A5gRcEInNCvl0X7QckMMn3kbCck3rUAJf7SkV/t7nMHJAHYQtus Fx0+evm6NMe+BKpX5vQ3c6ZlF9cMaba/9gQnxL6uNUnj+Uv/spztI/kCt81y7wDs29VE 14ZDD+rcxdZU6uYINAiB3r8XVc9ZmXYU/TlJ/T3IOsvfldx9XxAeOrkaW3Z8gM6dk5vu yzQ5cNWI56ok/4vFWb0RXoZSo305n/dbofpWxfjzTFARzd8Y+dEubfa7UA0SYO0GrWDc nJw/BXW98uLBfAgWlArFXSnKKShYPb9lbp1ZSyB+9ID7YYgoYn6RBBaq9X5IhsIFSXOx 2tuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693399734; x=1694004534; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sgmwfxTnMmpefIt4Jxsh17oZItSNIKysBY26cGht8Zc=; b=XhWoYyy/ub3XDzeSNGwa9oKAA9wFEkN0gMrtT86DkFUWFgZbF5NgJWtXDn+T5XlRoL cK1RoHZXAyNwi5JuJIB6fvbSkwa2v/ar1iWjhckTjhRg8XTNW13BOzVW5kDgqXrN+TZ3 yA98vzfpMciL0hkPQAdNqLV/dk10Cg2Pkad2Uqi2TJnSouEEQSlTk2sg44Jjf9IR5TPY reHKYfRBvjmqqRi/x9OX3JkDcko7VpAmargyN7oItIGKZo0snOTWJP6HCluGdP9qBi0i NMml+VaQ/8x9V/OW4xjEL5qFg/lhPRqYOWfrysqaymBn9lReLZ7iUF1U/NgBKBFOui1j Z4+Q== X-Gm-Message-State: AOJu0Yz0GjLREJU4PzHYUOy/GhtA3TlytQj0aqR9rcPOVHlR88IpzvaJ LqLCYae/1fc1hOtdJpSGIAwj4PpsWOG9ItCIp5UCVw== X-Google-Smtp-Source: AGHT+IFxmlJWMrKdeEvbrVkC3wj6G7ZOc6vn7oa01VC/C/O4ks01gO0BjEXMjtPOcBmVH0jhNGL3KA== X-Received: by 2002:a2e:83d0:0:b0:2b9:3883:a765 with SMTP id s16-20020a2e83d0000000b002b93883a765mr1884741ljh.31.1693399734253; Wed, 30 Aug 2023 05:48:54 -0700 (PDT) Received: from [192.168.1.101] (abyl195.neoplus.adsl.tpnet.pl. [83.9.31.195]) by smtp.gmail.com with ESMTPSA id y23-20020a2e7d17000000b002b94b355527sm2602662ljc.32.2023.08.30.05.48.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Aug 2023 05:48:53 -0700 (PDT) From: Konrad Dybcio Date: Wed, 30 Aug 2023 14:48:45 +0200 Subject: [PATCH 6/7] arm64: dts: qcom: sm8550: Add missing DWC3 quirks MIME-Version: 1.0 Message-Id: <20230830-topic-8550_dmac2-v1-6-49bb25239fb1@linaro.org> References: <20230830-topic-8550_dmac2-v1-0-49bb25239fb1@linaro.org> In-Reply-To: <20230830-topic-8550_dmac2-v1-0-49bb25239fb1@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Abel Vesa , Neil Armstrong , Sai Prakash Ranjan , Vinod Koul Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1693399725; l=1404; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=jj9VVwygDZqQ39oRSM4g+RTt+SnGK4NeCXuTCm1OBo8=; b=Kcv2F6CZvKpkJBpMmgtDhALkq3Ni5KrCdIjwfcSr8Jl4ayer/gFPHk2spEc/Ew3HDGr3yhRBV /T9CqVnJJFTD81Nh28WTF2b6aYfnTB4sBVQAVujc8L/jMy92Ua9r9Az X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org As expected, Qualcomm DWC3 implementation come with a sizable number of quirks. Make sure to account for all of them. Fixes: 7f7e5c1b037f ("arm64: dts: qcom: sm8550: Add USB PHYs and controller nodes") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8550.dtsi | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi index 944b4b8c95f5..8ee61c9383ec 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -2930,12 +2930,20 @@ usb_1_dwc3: usb@a600000 { reg = <0x0 0x0a600000 0x0 0xcd00>; interrupts = ; iommus = <&apps_smmu 0x40 0x0>; - snps,dis_u2_susphy_quirk; - snps,dis_enblslpm_quirk; - snps,usb3_lpm_capable; phys = <&usb_1_hsphy>, <&usb_dp_qmpphy QMP_USB43DP_USB3_PHY>; phy-names = "usb2-phy", "usb3-phy"; + snps,hird-threshold = /bits/ 8 <0x0>; + snps,usb2-gadget-lpm-disable; + snps,dis_u2_susphy_quirk; + snps,dis_enblslpm_quirk; + snps,dis-u1-entry-quirk; + snps,dis-u2-entry-quirk; + snps,is-utmi-l1-suspend; + snps,usb3_lpm_capable; + snps,usb2-lpm-disable; + snps,has-lpm-erratum; + tx-fifo-resize; ports { #address-cells = <1>; From patchwork Wed Aug 30 12:48:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 718710 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BAE77C83F18 for ; Wed, 30 Aug 2023 18:35:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235988AbjH3SfI (ORCPT ); Wed, 30 Aug 2023 14:35:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244267AbjH3MtA (ORCPT ); Wed, 30 Aug 2023 08:49:00 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 239FC185 for ; Wed, 30 Aug 2023 05:48:57 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2bccda76fb1so84716881fa.2 for ; Wed, 30 Aug 2023 05:48:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693399735; x=1694004535; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=qcnhbfxFM27/YYGpjtvsx/QJ64Wrwp+MNdL+XQ3gmi0=; b=mao3j/LfnX3WA+olYxDSiF9ldkCv8iqzX1KMZG/3CPoUxWJebGkwK+hq6eeOX+fot6 lg/J4FXhT5CYP8eMhTaL7lIAqWNu37pkDl/Jw829kLoGvtMOpzImXWtddNTaS/3cpRiC vi0avOs/nZXXaF58nO6ycumDgkB0v/ycYZK4FAVuegWrQjjrSUen/r3L5JEeP0ruoSsx HLuqdWI+9NC1K1oSI9PpH4wQC1BjxqiNyspJ0MNU8835iPMzJdb+B1yL7kAuPvWxnNGN 6uJ8uilLZjLYv3sCGxUi5VGXhClf1/hwAGqqrxvu0s7IUB7i1vkUj1NPlfpr9uRbJ5JE afqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693399735; x=1694004535; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qcnhbfxFM27/YYGpjtvsx/QJ64Wrwp+MNdL+XQ3gmi0=; b=EOn64SaWynyX3zr6EvZlhVxv1bz/ZzG0nCfP/wKfaIAiPT1jmXCC9PP+o1V3xXDTBF IsvIKRrF+w7iCZ6lzWyste/YfnyuQabF0ySZvrCTRPAZ+MtMrJMFTpguILn04E0mOB1K L1z2x62HsHP8cA1EUTjwmy1qnqGDb5iKHq8jGVevVqdjrMcM2jKJUQvJ/vHksBQObxZD OnTRmW3R9VkIE1/P6m30ydT0Se/IE3YmMyEZXEOvnA3/gFbhyTssA6QXLB4nKolOVjFZ v2h5BC74Pc9fSc60QRizoZhhcBZIoqs8sGNsufbMS3z/1sx3zs2e/MYwFWrU23u8VQHY a6OQ== X-Gm-Message-State: AOJu0YxIzk+6dtx7orlgdYN5VNHlkzQRGJ69alNejkwvUP+d36tYIBBp QXPGoPetk98fC7GfdzalkfkzSA== X-Google-Smtp-Source: AGHT+IGuEf/6YYmry7qMXTc0R82etA6M+I8h4gEU9tlVVfSLYuGUNUbYuHBtbqImj5xG1Rsfod5A9g== X-Received: by 2002:a2e:9097:0:b0:2bc:df55:eec7 with SMTP id l23-20020a2e9097000000b002bcdf55eec7mr1471279ljg.40.1693399735467; Wed, 30 Aug 2023 05:48:55 -0700 (PDT) Received: from [192.168.1.101] (abyl195.neoplus.adsl.tpnet.pl. [83.9.31.195]) by smtp.gmail.com with ESMTPSA id y23-20020a2e7d17000000b002b94b355527sm2602662ljc.32.2023.08.30.05.48.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Aug 2023 05:48:55 -0700 (PDT) From: Konrad Dybcio Date: Wed, 30 Aug 2023 14:48:46 +0200 Subject: [PATCH 7/7] arm64: dts: qcom: sm8550: Mark DWC3 as dma-coherent MIME-Version: 1.0 Message-Id: <20230830-topic-8550_dmac2-v1-7-49bb25239fb1@linaro.org> References: <20230830-topic-8550_dmac2-v1-0-49bb25239fb1@linaro.org> In-Reply-To: <20230830-topic-8550_dmac2-v1-0-49bb25239fb1@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Abel Vesa , Neil Armstrong , Sai Prakash Ranjan , Vinod Koul Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1693399725; l=756; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=dnJcWN3O+4dW4BpW8WVC+TsWF2Kag9dSFf6u/P+2HPs=; b=KDPX0N5yhosxV7DxLW8v3QII3Iz3liG/NKaGK/vHLOmuih4YpdWfTsqd/ayF91PW+S56K/H4K XCytdh3vAcxBOt/+OrH8x6tmK7ntcZZOgz6Vk1YDjK8MpoyRm3PcN65 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org In a fairly new development, Qualcomm somehow made the DWC3 block cache-coherent. Annotate that. Fixes: 7f7e5c1b037f ("arm64: dts: qcom: sm8550: Add USB PHYs and controller nodes") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8550.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi index 8ee61c9383ec..95ba9a9ac78e 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -2944,6 +2944,7 @@ usb_1_dwc3: usb@a600000 { snps,usb2-lpm-disable; snps,has-lpm-erratum; tx-fifo-resize; + dma-coherent; ports { #address-cells = <1>;