From patchwork Thu Jul 13 16:52:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Pundir X-Patchwork-Id: 13312527 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 CF992C001DE for ; Thu, 13 Jul 2023 16:53:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231925AbjGMQxA (ORCPT ); Thu, 13 Jul 2023 12:53:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235338AbjGMQwt (ORCPT ); Thu, 13 Jul 2023 12:52:49 -0400 Received: from mail-oa1-x2f.google.com (mail-oa1-x2f.google.com [IPv6:2001:4860:4864:20::2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 264E92706 for ; Thu, 13 Jul 2023 09:52:48 -0700 (PDT) Received: by mail-oa1-x2f.google.com with SMTP id 586e51a60fabf-1b38121a011so706514fac.2 for ; Thu, 13 Jul 2023 09:52:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689267167; x=1691859167; h=content-transfer-encoding:author:mime-version:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=/TQQu9i4zVTx/pAbl1XLa7p043pJkUqA0em0AaQVe1Q=; b=EOJTZVfBLXbJ+tgLJUJRaAhYQO95hGodf9yyM3ZyJmDrHCRlhC2xTABoIUd+3Cl1Yo XO6MFz+wN+mKMs6tq2jcRQ64XxumnSH7k9awmG8P4d7raV506yyFNuk+QzDmoxlG7chk Xm8c4ZN86UiZ92TA62A3E7CqOGXkzsg58hlso09jztugiWJsrZlajfgdFEImk3AudVEl cx4jXLpbjX+rbI6inQvzyxatK+J3NV0dtyEMl2rdalG0LM16oQKztrzu1e9wqiv4IAZx OywlZGqh1gyC+BOajdMLtm5QuJcdzMOffKpKItqBLM8fiPpYEPx/vCTS+0PA28sPaCRn hNEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689267167; x=1691859167; h=content-transfer-encoding:author:mime-version:message-id:date :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=/TQQu9i4zVTx/pAbl1XLa7p043pJkUqA0em0AaQVe1Q=; b=JwUIRoRrW1HrMfJsTJYsDDQC9G+LXpqgLHqov/8aIOtbI/XMt48k5GBe6lnadRRNT9 CEIKdFydW7jNRCvc3jAMcD4XwILVMaNJxSe0Nt76tAwdVBiPPYoloyoCaxvA3sCzBmBu Ez/OcpV/EYbA+ZSPY1cOEq/KJIsHcVKMem5PuDy0XMLrMvn2/S/00RzcHiRi8FVv6rRL pV1/R4H/ZyDVvJbrfW54PhsM0k0wQRuHV0bMx4gYasCdCUUXyGuWqL+fzezkAi8hI3ud /HdEfTuapZm/0JUJ4SPl/64jYDO7QZ4HiuNRdHo4P+tRcpqR69wUAH1eJ8u7UAGqZwJB n3yQ== X-Gm-Message-State: ABy/qLZqGWHS1PbkcSQ1xAYW3a+oNXNSAf/XqFM5qyPKqzl07HTbbzhD ppLH45ivBUdGGVEYDkUawB4gxQ== X-Google-Smtp-Source: APBJJlECN8Pkf5oJl1wriKAi9i7oMviETr74ANXnYL6u7bXmI8D7Lz2S54OFWvuw32qLmK8Qci/xoA== X-Received: by 2002:a05:6870:c188:b0:19f:5c37:abb9 with SMTP id h8-20020a056870c18800b0019f5c37abb9mr2495348oad.12.1689267167408; Thu, 13 Jul 2023 09:52:47 -0700 (PDT) Received: from x-wing.lan ([49.207.50.231]) by smtp.gmail.com with ESMTPSA id d3-20020a17090abf8300b002633fa95ac2sm12009150pjs.13.2023.07.13.09.52.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jul 2023 09:52:46 -0700 (PDT) From: Amit Pundir To: Bjorn Andersson , Andy Gross , Dmitry Baryshkov , Rob Herring , Konrad Dybcio , Krzysztof Kozlowski , Conor Dooley , Caleb Connolly , Bryan Donoghue , Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Krishna Manikandan Cc: dri-devel , freedreno , linux-arm-msm , dt , lkml Subject: [PATCH v5 1/2] dt-bindings: display/msm: mdss-common: add memory-region property Date: Thu, 13 Jul 2023 22:22:37 +0530 Message-Id: <20230713165238.2814849-1-amit.pundir@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Author: Amit Pundir Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add and document the reserved memory region property in the mdss-common schema. For now (sdm845-db845c), it points to a framebuffer memory region reserved by the bootloader for splash screen. Signed-off-by: Amit Pundir Reviewed-by: Rob Herring Acked-by: Krzysztof Kozlowski --- v5: Moving the dt-binding to mdss-common schema with updated commit message and property description. v4: Adding this new dt-binding patch, in qcom,sdm845-mdss schema, in the v4 of the follow-up patch for sdm845-db845c. https://lore.kernel.org/lkml/20230712130215.666924-2-amit.pundir@linaro.org/ .../devicetree/bindings/display/msm/mdss-common.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/display/msm/mdss-common.yaml b/Documentation/devicetree/bindings/display/msm/mdss-common.yaml index ccd7d6417523..84ed2757ded5 100644 --- a/Documentation/devicetree/bindings/display/msm/mdss-common.yaml +++ b/Documentation/devicetree/bindings/display/msm/mdss-common.yaml @@ -77,6 +77,12 @@ properties: items: - description: MDSS_CORE reset + memory-region: + maxItems: 1 + description: + Phandle to a node describing a reserved framebuffer memory region. + For example, the splash memory region set up by the bootloader. + required: - reg - reg-names From patchwork Thu Jul 13 16:52:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Pundir X-Patchwork-Id: 13312528 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 83185C0015E for ; Thu, 13 Jul 2023 16:53:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235340AbjGMQxB (ORCPT ); Thu, 13 Jul 2023 12:53:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235423AbjGMQw6 (ORCPT ); Thu, 13 Jul 2023 12:52:58 -0400 Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C423A2719 for ; Thu, 13 Jul 2023 09:52:54 -0700 (PDT) Received: by mail-il1-x131.google.com with SMTP id e9e14a558f8ab-3463de183b0so3911995ab.2 for ; Thu, 13 Jul 2023 09:52:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689267174; x=1691859174; h=content-transfer-encoding:author:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=dcIGYFaQfGqSRzz1TR43A9wAS36o64Mm47YNW9KhJGo=; b=rNKbM43IVbuLmaY5vpRk95N0ouqDf122oy6vp3z+XqzqJdSqzEJE49uA/+LAlaTvzC va80pws1oE2LFizrEocPk3POxluC+DsEHwwhMXkn9kZxztlmon0JerXhq+Rv985t9dfJ izZengGZk7DseJjSpHjHc9HrswDXf08dRy2VywcwJF8q6Qj2EP66+D0f8kQxk+lCznmY Kon7SzME/qoenAAUA7B2HPEHQj2HTWWhYlvOOD1kqMp2ld4hf+6qAnnpwzEdHgCNCd1Z Vr0lmId459CUK8susiATSTB9UXoPJ9XogCq9WhynQ50c7Z23C+gEFoBJiGw+x6n8hdHk yXHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689267174; x=1691859174; h=content-transfer-encoding:author:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=dcIGYFaQfGqSRzz1TR43A9wAS36o64Mm47YNW9KhJGo=; b=EuPm0x0QsBVg8LTUzBvQC4c1AhYmaNWTrIkJWYpYJHGyEGen+wHNWlq6P/5m0/9o/x FbXZ6TjjgLoopRFIOHsf9a5bp0mClFxhP5/NFeft08qRmgoN93kurNChL/PIVakJnK+b yPg9Z+9FA3NxOHdSgH2GlAGs5FySn0tiCrbpASr4gO9RSDMl404FpSVbudVsRDTn6907 TVFXxVdLpwc1HUrKk6RDUIwgXJQ2mtYgdn9U1O3H93EstHjbTDWQ5xVCKyVUDcZJBQHp AnIpkSvnGtlXgMVLxf0ZDj2DCAMD7UO2SBWAIySxaMtWT9Nt7/xpR5WkVxeVZP7OlpBe Xsdg== X-Gm-Message-State: ABy/qLYQOeTQohrUeIytiQs11ew0r6BSIGq/m4MsZDUUX1VgDyI0+jo1 DKu1ZUaD+ZuG4DuANcINyr6Jgw== X-Google-Smtp-Source: APBJJlEXsdTd6Pdgx3SCjb2Ew/A5vqSryB0OA8QHjsU17e1cE61ltYcsbHB9o5es5L+hVdITQ4UnZA== X-Received: by 2002:a92:c6c7:0:b0:346:5813:f7f5 with SMTP id v7-20020a92c6c7000000b003465813f7f5mr2120484ilm.12.1689267174022; Thu, 13 Jul 2023 09:52:54 -0700 (PDT) Received: from x-wing.lan ([49.207.50.231]) by smtp.gmail.com with ESMTPSA id d3-20020a17090abf8300b002633fa95ac2sm12009150pjs.13.2023.07.13.09.52.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jul 2023 09:52:53 -0700 (PDT) From: Amit Pundir To: Bjorn Andersson , Andy Gross , Dmitry Baryshkov , Rob Herring , Konrad Dybcio , Krzysztof Kozlowski , Conor Dooley , Caleb Connolly , Bryan Donoghue , Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , Krishna Manikandan Cc: dri-devel , freedreno , linux-arm-msm , dt , lkml Subject: [PATCH v5 2/2] arm64: dts: qcom: sdm845-db845c: Mark cont splash memory region as reserved Date: Thu, 13 Jul 2023 22:22:38 +0530 Message-Id: <20230713165238.2814849-2-amit.pundir@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230713165238.2814849-1-amit.pundir@linaro.org> References: <20230713165238.2814849-1-amit.pundir@linaro.org> MIME-Version: 1.0 Author: Amit Pundir Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Adding a reserved memory region for the framebuffer memory (the splash memory region set up by the bootloader). Signed-off-by: Amit Pundir Reviewed-by: Caleb Connolly --- v5: Re-sending with updated dt-bindings patch in mdss-common schema. v4: Re-sending this along with a new dt-bindings patch to document memory-region property in qcom,sdm845-mdss schema and keep dtbs_check happy. v3: Point this reserved region to MDSS. v2: Updated commit message. There was some dicussion on v1 but it didn't go anywhere, https://lore.kernel.org/linux-kernel/20230124182857.1524912-1-amit.pundir@linaro.org/T/#u. The general consensus is that this memory should be freed and be made resuable but that (releasing this piece of memory) has been tried before and it is not trivial to return the reserved memory node to the system RAM pool in this case. arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts index d6b464cb61d6..f546f6f57c1e 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts @@ -101,6 +101,14 @@ hdmi_con: endpoint { }; }; + reserved-memory { + /* Cont splash region set up by the bootloader */ + cont_splash_mem: framebuffer@9d400000 { + reg = <0x0 0x9d400000 0x0 0x2400000>; + no-map; + }; + }; + lt9611_1v8: lt9611-vdd18-regulator { compatible = "regulator-fixed"; regulator-name = "LT9611_1V8"; @@ -506,6 +514,7 @@ &i2c14 { }; &mdss { + memory-region = <&cont_splash_mem>; status = "okay"; };