[v5,2/2] arm64: dts: qcom: sdm845-db845c: Mark cont splash memory region as reserved
Message ID | 20230713165238.2814849-2-amit.pundir@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp1965754vqm; Thu, 13 Jul 2023 10:09:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlHcupluwnnKZLapD512G56huMxXyeG7KtE0u8Oz71mUV2EcF+vaG4MeqkLD3B9kMPKkkE6Z X-Received: by 2002:a2e:9a8a:0:b0:2b6:9f5d:e758 with SMTP id p10-20020a2e9a8a000000b002b69f5de758mr2379256lji.9.1689268183813; Thu, 13 Jul 2023 10:09:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689268183; cv=none; d=google.com; s=arc-20160816; b=gHkRvUzdU6GFhoCoSCo2Z8aMnThC9i7SnOBxPmIZ/WfZMxuF6fjGL07/je8GBGFDxY /a1cCJ3CIG3CdFqCUTF40dX5bPu+6V0Th1vLi0WXSIcktkZzQ4pIrJb6J+dy9eBzfHU6 r2uryG0LUrOjM0V+cjT00BOWGo7oOWRE3RrqYnkhsgIsmRTe2zIJng1OwgkIIKJDidaP A4LWhnNoxHylvgr2i0KRoiXs1oOx+QQ4dR7O0gNhVZrGWK9LqZA2SQsI5gdJcf2VhT/3 DiIXDkvK+jCHPY78XTHPxSeUMgvbg/hZz+G8VDMTWKvwNwRAdb7HJrBBnTBwuO/qgiBC Za7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:author:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dcIGYFaQfGqSRzz1TR43A9wAS36o64Mm47YNW9KhJGo=; fh=bUGzLlUT6AJNEZrTvniK2uKszsewdBL+00C8IeKdOoA=; b=SMUuM4W+wIe+uiK/ZlgeSMNcNdY50EwDU7tcKwOFj74qs8Rhs3ddC58nHs/kaYImYR JIQzE0Lr5mSM0YaWktuaMIScDiHeJFLGWqr+zuR0pl70NKV4iNLhx/7MUxEFyWM/aDnq nMaIQBEsu9uV1fiQ8Ihoz/tkYFnXr+bAxuhOcBZHVtUyaCryGO/zJGXnuac4vF0yBMzP cvo1GZ+06FheCBhzmx68cCgxaeRrzqHrPIpgJtdaXQTJhzrcu8qUNxSEoZ89gWlN7KZk o+cQ9Wt6UrnbQ0CVii+xYCIspQfeoFQ+zuDlLc0armekTB1m83rGaKVq/g3WwGffwl34 Q9bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rNKbM43I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id by16-20020a170906a2d000b00992ca771e71si6925510ejb.138.2023.07.13.10.09.11; Thu, 13 Jul 2023 10:09:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rNKbM43I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S235361AbjGMQxD (ORCPT <rfc822;ybw1215001957@gmail.com> + 99 others); Thu, 13 Jul 2023 12:53:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235416AbjGMQw6 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 13 Jul 2023 12:52:58 -0400 Received: from mail-il1-x12e.google.com (mail-il1-x12e.google.com [IPv6:2607:f8b0:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C29321FC0 for <linux-kernel@vger.kernel.org>; Thu, 13 Jul 2023 09:52:54 -0700 (PDT) Received: by mail-il1-x12e.google.com with SMTP id e9e14a558f8ab-3463de183b0so3911965ab.2 for <linux-kernel@vger.kernel.org>; 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=RAoTCuQwq6ObVhspc9qpHLHiO1KgB5MgfZpZs6zCtyL2EQz1uooIjvWgw3GD3qJRYQ KcD/4c7kPcPRvmCEKki7SqGu+TBhNSujcbWXoibST/ZZfz9eyIU9A0j7zFhv1R4rWk1c ttiHgZDjOdxYM5hvsu8F+BSLt3x2U47mLnFxAbUzDWU4h/lxGzr0R8vr4WX4RKE81ZJh YC73Y9buL3ZVTBRdL38lysC5F+w4SacKV+v2Id/Ommo6EaiuFYtgpNWbY37wkP4Wme4H 1rlgnhtDuP9jDaOLpyIZIQ241cqK6zpUeJH5fx4ahb04MgrwQRYMr9+uWsNLqPAVqNk2 VqrA== X-Gm-Message-State: ABy/qLYNeu8oNSDU6kLYPcn+snMZqaLaEn2JRZU2xc+dsQlFbdwmojJE kl/OMshuD4EeSpxeazvZZ4PLdA== 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 <amit.pundir@linaro.org> To: Bjorn Andersson <andersson@kernel.org>, Andy Gross <agross@kernel.org>, Dmitry Baryshkov <dmitry.baryshkov@linaro.org>, Rob Herring <robh+dt@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Caleb Connolly <caleb.connolly@linaro.org>, Bryan Donoghue <bryan.odonoghue@linaro.org>, Rob Clark <robdclark@gmail.com>, Abhinav Kumar <quic_abhinavk@quicinc.com>, Sean Paul <sean@poorly.run>, Marijn Suijten <marijn.suijten@somainline.org>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Krishna Manikandan <quic_mkrishn@quicinc.com> Cc: dri-devel <dri-devel@lists.freedesktop.org>, freedreno <freedreno@lists.freedesktop.org>, linux-arm-msm <linux-arm-msm@vger.kernel.org>, dt <devicetree@vger.kernel.org>, lkml <linux-kernel@vger.kernel.org> 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 <amit.pundir@linaro.org> Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771326074991982789 X-GMAIL-MSGID: 1771326074991982789 |
Series |
[v5,1/2] dt-bindings: display/msm: mdss-common: add memory-region property
|
|
Commit Message
Amit Pundir
July 13, 2023, 4:52 p.m. UTC
Adding a reserved memory region for the framebuffer memory
(the splash memory region set up by the bootloader).
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
---
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(+)
Comments
On 13/07/2023 17:52, Amit Pundir wrote: > Adding a reserved memory region for the framebuffer memory > (the splash memory region set up by the bootloader). > > Signed-off-by: Amit Pundir <amit.pundir@linaro.org> Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org> > --- > 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"; > }; >
On 13/07/2023 18:52, Amit Pundir wrote: > Adding a reserved memory region for the framebuffer memory > (the splash memory region set up by the bootloader). > > Signed-off-by: Amit Pundir <amit.pundir@linaro.org> > --- I think your commit msg misses describing the actual problem, impact to users and finally cc-stable. Best regards, Krzysztof
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"; };