Message ID | 20230124182857.1524912-1-amit.pundir@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2312566wrn; Tue, 24 Jan 2023 10:38:43 -0800 (PST) X-Google-Smtp-Source: AMrXdXtosod4K5MRKjOftINFg+NY2fXfj15c27OgwjQIMmbkscHuGoD+PEmMAk4Z3FVZyvASrGR+ X-Received: by 2002:a05:6402:2b92:b0:497:43ec:9e1d with SMTP id fj18-20020a0564022b9200b0049743ec9e1dmr32246585edb.0.1674585523746; Tue, 24 Jan 2023 10:38:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674585523; cv=none; d=google.com; s=arc-20160816; b=O6axoPEtLUc4n0E8kzl4aAzm3LbNfQZXymD6qfqT4yrUI3szC7ED0KYioxBiZjLY/+ Xt9VMzD/PIsCBQz/wyspWc9MlLZL0gW+LeyVK/DpVOM1YPYLaRcrRXc5moMgxZgSxd6N jDjNYGImCqVmO11Iy1YbZAH7Nx9Uaxe4AVUyKWyEfqqvlMYy4yIKOwyH1wmjyphiJm+A rut7alTaB3UYDpgcFOYZ5OCrjvXJ8O/QNwOAroLXR6aHByPGyWAlqzHnJsBRDciq/T7y z95A0+mBYcIIj6u5/F77I9KI6g4zTHZlMjJdSWVZ0stJdFwWmHx9rTeMNG7STOlllfTx XE0Q== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=yBHseKN0Bq0k6eUJ7ZDfzyEJ949/USgpBKl0B/3SSNQ=; b=lEP68EkEgMPlsT43hojOwhT7SDfNGBIBfdeEG6L3XKTrLc+1P2d7HEdp1LQC2vK5Gs POWmUmX1TEaowxQiWpL9YLkGxl2ARAZX9WoyZ9v/yxw052i+/y4WQ9ZjxaIL0nlsRg85 wmjJcKkE1fRzXyJqvE5rYaM4cG8FQNkyyns+JEZ+iqPAbXgDVhAWvlsVxd7aLhrci3Yy fIIRZDEqAu69l9hryqrEmEtwBWVsNORGVLqUrkLCjBPNxwxOxZp63lY2iEMeGSl2/v7b dU1du34YmBtWgBtULiMydwgoUBiKdyCie+IZZG8e0E68JIQidAwoHboyoLE8s+Jil5Mp yrfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JWqsr7Ak; 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 f11-20020a056402150b00b0049e0ab01f5bsi3796896edw.214.2023.01.24.10.38.20; Tue, 24 Jan 2023 10:38:43 -0800 (PST) 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=JWqsr7Ak; 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 S231479AbjAXS3Y (ORCPT <rfc822;rust.linux@gmail.com> + 99 others); Tue, 24 Jan 2023 13:29:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233101AbjAXS3X (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 24 Jan 2023 13:29:23 -0500 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2084E46AA for <linux-kernel@vger.kernel.org>; Tue, 24 Jan 2023 10:29:22 -0800 (PST) Received: by mail-pj1-x1033.google.com with SMTP id k10-20020a17090a590a00b0022ba875a1a4so12533396pji.3 for <linux-kernel@vger.kernel.org>; Tue, 24 Jan 2023 10:29:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:author:mime-version:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=yBHseKN0Bq0k6eUJ7ZDfzyEJ949/USgpBKl0B/3SSNQ=; b=JWqsr7Akzao/lsTKjg2U6ruHJdMiZ3ug/GPcGvrhm05a0M9LLy0Gj3BogRPUGCR2CJ Js+T8uqcU9tr1rsMsh8zPNLbODN0PgnQ5uWE/LFFjOy3U0KvQCDqJnwbUJLMLeQx8IS6 rsukqzLD+H86Ay9SX9EbCuY9rtxPCfheIHIwwVflUBNJeE9+XoFqg9x2Foe215PXLqHP U5v7N7nExYtjSImr5x9sV8LEtU9d4SZaoQXoLy2L3Hqm9T6Mqu/6WPl7XvmCQukLELdT eB7h+RLM/1tOTrh+eV36YLwF0jsbZjGFcQdIMeTQIvGnCNHO80fVLsWDJhJSXr3wVjex 2Q/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=yBHseKN0Bq0k6eUJ7ZDfzyEJ949/USgpBKl0B/3SSNQ=; b=KEZKAvT69nwhanVpFns8Q/TAojVjN20CAkj3LtrV0YVSsJT081TDsmRSrAmZ5VOlPi AW7a68+XpeucWeftDwzbpHCwld1hNyTY4Ps0slDd2HQXkD3Ax3HEt0mx/iY0MYE0jqAg UWpHQ5zqDykQkPDUPN3mGS2KWolD0KNsne0Sd7849NuYxQSHeezINqnsDXVHSBD20BqP 37LYjwWEnR7+oCrri0EWXn2/ZkLRtGpzF7UmcWCRlYI9h8UrZwdZ9I4SNiKqnleotf3l ZquxKJw3ccZqUOoLuc5i4qUIaWVTIWpdUUcnVvAKfHZRc3XpY2YD1huPmjHcU1X+rTuo LQaw== X-Gm-Message-State: AFqh2krJN0/s+Fyufd3F0V0EihWXu2Ii8BaZxgXIct593V3QH4yk2oYW ouoLa+ztbikNWJToRCdko2/ScQ== X-Received: by 2002:a17:90b:1e10:b0:229:f562:896e with SMTP id pg16-20020a17090b1e1000b00229f562896emr20675692pjb.36.1674584961632; Tue, 24 Jan 2023 10:29:21 -0800 (PST) Received: from localhost.localdomain ([122.171.17.192]) by smtp.gmail.com with ESMTPSA id t8-20020a17090a1c8800b0020aacde1964sm8647056pjt.32.2023.01.24.10.29.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Jan 2023 10:29:21 -0800 (PST) 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>, Caleb Connolly <caleb.connolly@linaro.org> Cc: linux-arm-msm <linux-arm-msm@vger.kernel.org>, dt <devicetree@vger.kernel.org>, lkml <linux-kernel@vger.kernel.org> Subject: [PATCH] arm64: dts: qcom: sdm845-db845c: Mark cont splash memory region as reserved Date: Tue, 24 Jan 2023 23:58:57 +0530 Message-Id: <20230124182857.1524912-1-amit.pundir@linaro.org> X-Mailer: git-send-email 2.25.1 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 autolearn=unavailable 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755930190122791370?= X-GMAIL-MSGID: =?utf-8?q?1755930190122791370?= |
Series |
arm64: dts: qcom: sdm845-db845c: Mark cont splash memory region as reserved
|
|
Commit Message
Amit Pundir
Jan. 24, 2023, 6:28 p.m. UTC
Put cont splash memory region under the reserved-memory
as confirmed by the downstream code as well.
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
---
arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 8 ++++++++
1 file changed, 8 insertions(+)
Comments
On 1/24/23 18:28, Amit Pundir wrote: > Put cont splash memory region under the reserved-memory > as confirmed by the downstream code as well. Can we put the framebuffer region in sdm845.dtsi? afaik the only device with a non-standard address for this is Cheza, and the SDM850 devices. All other devices (even the sdm845 Sony ones) have it at the same address and size. The other reserved-memory regions are basically just whatever MTP/QRD uses anyway. shift-axolotl currently reserves the wrong size (it only reserves the size needed for it's resolution), the OnePlus 6 is also missing the region. > > Signed-off-by: Amit Pundir <amit.pundir@linaro.org> > --- > arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts > index f41c6d600ea8..2ae59432cbda 100644 > --- a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts > +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts > @@ -100,6 +100,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";
On 24/01/2023 18:28, Amit Pundir wrote: > Put cont splash memory region under the reserved-memory > as confirmed by the downstream code as well. > > Signed-off-by: Amit Pundir <amit.pundir@linaro.org> > --- > arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts > index f41c6d600ea8..2ae59432cbda 100644 > --- a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts > +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts > @@ -100,6 +100,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"; Doesn't this mean we loose 0x2400000 of DRAM for all rb3 platforms though ? About what 37 megabytes.. ? IMO it would be better to have a bootloader that cares about continuous splash to apply a dtb overlay or simply to add a separate dts sdm845-db845c-continuous-spash.dts. --- bod
On Tue, 31 Jan 2023 at 12:54, Bryan O'Donoghue <bryan.odonoghue@linaro.org> wrote: > > On 24/01/2023 18:28, Amit Pundir wrote: > > Put cont splash memory region under the reserved-memory > > as confirmed by the downstream code as well. > > > > Signed-off-by: Amit Pundir <amit.pundir@linaro.org> > > --- > > arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 8 ++++++++ > > 1 file changed, 8 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts > > index f41c6d600ea8..2ae59432cbda 100644 > > --- a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts > > +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts > > @@ -100,6 +100,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"; > > Doesn't this mean we loose 0x2400000 of DRAM for all rb3 platforms > though ? About what 37 megabytes.. ? I think this memory is further used for display memory allocation. So we are not loosing it, but dedicating it to the framebuffer memory.
On 31.01.2023 12:06, Dmitry Baryshkov wrote: > On Tue, 31 Jan 2023 at 12:54, Bryan O'Donoghue > <bryan.odonoghue@linaro.org> wrote: >> >> On 24/01/2023 18:28, Amit Pundir wrote: >>> Put cont splash memory region under the reserved-memory >>> as confirmed by the downstream code as well. >>> >>> Signed-off-by: Amit Pundir <amit.pundir@linaro.org> >>> --- >>> arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 8 ++++++++ >>> 1 file changed, 8 insertions(+) >>> >>> diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts >>> index f41c6d600ea8..2ae59432cbda 100644 >>> --- a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts >>> +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts >>> @@ -100,6 +100,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"; >> >> Doesn't this mean we loose 0x2400000 of DRAM for all rb3 platforms >> though ? About what 37 megabytes.. ? > > I think this memory is further used for display memory allocation. So > we are not loosing it, but dedicating it to the framebuffer memory. Not exactly, to do so, you'd have to use the memory-region property with mdss, which nobody does. Otherwise it's just a hole for Linux. Konrad > >
On 31/01/2023 14:45, Konrad Dybcio wrote: > > > On 31.01.2023 12:06, Dmitry Baryshkov wrote: >> On Tue, 31 Jan 2023 at 12:54, Bryan O'Donoghue >> <bryan.odonoghue@linaro.org> wrote: >>> >>> On 24/01/2023 18:28, Amit Pundir wrote: >>>> Put cont splash memory region under the reserved-memory >>>> as confirmed by the downstream code as well. >>>> >>>> Signed-off-by: Amit Pundir <amit.pundir@linaro.org> >>>> --- >>>> arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 8 ++++++++ >>>> 1 file changed, 8 insertions(+) >>>> >>>> diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts >>>> index f41c6d600ea8..2ae59432cbda 100644 >>>> --- a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts >>>> +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts >>>> @@ -100,6 +100,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"; >>> >>> Doesn't this mean we loose 0x2400000 of DRAM for all rb3 platforms >>> though ? About what 37 megabytes.. ? >> >> I think this memory is further used for display memory allocation. So >> we are not loosing it, but dedicating it to the framebuffer memory. > Not exactly, to do so, you'd have to use the memory-region property > with mdss, which nobody does. Otherwise it's just a hole for Linux. Then maybe it's time to start using that property? > > Konrad >> >>
On Tue, 31 Jan 2023 at 19:03, Dmitry Baryshkov <dmitry.baryshkov@linaro.org> wrote: > > On 31/01/2023 14:45, Konrad Dybcio wrote: > > > > > > On 31.01.2023 12:06, Dmitry Baryshkov wrote: > >> On Tue, 31 Jan 2023 at 12:54, Bryan O'Donoghue > >> <bryan.odonoghue@linaro.org> wrote: > >>> > >>> On 24/01/2023 18:28, Amit Pundir wrote: > >>>> Put cont splash memory region under the reserved-memory > >>>> as confirmed by the downstream code as well. > >>>> > >>>> Signed-off-by: Amit Pundir <amit.pundir@linaro.org> > >>>> --- > >>>> arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 8 ++++++++ > >>>> 1 file changed, 8 insertions(+) > >>>> > >>>> diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts > >>>> index f41c6d600ea8..2ae59432cbda 100644 > >>>> --- a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts > >>>> +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts > >>>> @@ -100,6 +100,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"; > >>> > >>> Doesn't this mean we loose 0x2400000 of DRAM for all rb3 platforms > >>> though ? About what 37 megabytes.. ? > >> > >> I think this memory is further used for display memory allocation. So > >> we are not loosing it, but dedicating it to the framebuffer memory. > > Not exactly, to do so, you'd have to use the memory-region property > > with mdss, which nobody does. Otherwise it's just a hole for Linux. > > Then maybe it's time to start using that property? Hi, So what is the verdict on this patch? I submitted this fix to make sure UFS don't map and crash on it, which I have seen happening occassionaly on db845c and Caleb reported similar issues on his sdm845 device iirc. I should have probably put that in my commit message as well. Regards, Amit Pundir > > > > > Konrad > >> > >> > > -- > With best wishes > Dmitry >
On 09/02/2023 09:05, Amit Pundir wrote: > Hi, So what is the verdict on this patch? > > I submitted this fix to make sure UFS don't map and crash on it, which > I have seen happening occassionaly on db845c and Caleb reported > similar issues on his sdm845 device iirc. I should have probably put > that in my commit message as well. > > Regards, > Amit Pundir So the memory _is_ being used by ... continuous splash on an Android image, i.e. your Android ? limited to Android - image continues on with the splash but other blocks erroneously reuse the memory then, UFS as an example ? --- bod
On 9.02.2023 12:03, Bryan O'Donoghue wrote: > On 09/02/2023 09:05, Amit Pundir wrote: >> Hi, So what is the verdict on this patch? >> >> I submitted this fix to make sure UFS don't map and crash on it, which >> I have seen happening occassionaly on db845c and Caleb reported >> similar issues on his sdm845 device iirc. I should have probably put >> that in my commit message as well. >> >> Regards, >> Amit Pundir > > So the memory _is_ being used by ... continuous splash on an Android image, i.e. your Android ? limited to Android - image continues on with the splash but other blocks erroneously reuse the memory then, UFS as an example ? If the bootloader splash is enabled then this memory is used until the DPU driver instructs MDP5 pipes to suck data from a newly assigned address, so there's a short window where it is. Konrad > > --- > bod
On 09/02/2023 12:08, Konrad Dybcio wrote: > If the bootloader splash is enabled then this memory is used until the > DPU driver instructs MDP5 pipes to suck data from a newly assigned address, > so there's a short window where it is. It seems a shame to reserve 30 something megabytes of memory for continuous splash unless we are actually using it is my point. If I'm running headless its just wasted memory. --- bod
On 09/02/2023 12:11, Bryan O'Donoghue wrote: >> If the bootloader splash is enabled then this memory is used until the >> DPU driver instructs MDP5 pipes to suck data from a newly assigned >> address, >> so there's a short window where it is. > > It seems a shame to reserve 30 something megabytes of memory for > continuous splash unless we are actually using it is my point. > > If I'm running headless its just wasted memory. Couldn't we 1. Find reserved continuous splash memory 2. Fee it in the MDP when we make the transition It must be possible --- bod
On 9.02.2023 13:22, Bryan O'Donoghue wrote: > On 09/02/2023 12:11, Bryan O'Donoghue wrote: >>> If the bootloader splash is enabled then this memory is used until the >>> DPU driver instructs MDP5 pipes to suck data from a newly assigned address, >>> so there's a short window where it is. >> >> It seems a shame to reserve 30 something megabytes of memory for continuous splash unless we are actually using it is my point. >> >> If I'm running headless its just wasted memory. > > Couldn't we > > 1. Find reserved continuous splash memory > 2. Fee it in the MDP when we make the transition > > It must be possible I suppose we could mark it as shared-dma-pool, pass it to MDSS, reserve it from there (by occupying the whole thing) and either use it or free it before jumping to the newly allocated region. The MDSS driver can already accept it through memory-region = <> IIRC, but *nobody* uses that, so I'm not sure it even still works.. Konrad > > --- > bod
On 09/02/2023 14:22, Bryan O'Donoghue wrote: > On 09/02/2023 12:11, Bryan O'Donoghue wrote: >>> If the bootloader splash is enabled then this memory is used until the >>> DPU driver instructs MDP5 pipes to suck data from a newly assigned >>> address, >>> so there's a short window where it is. >> >> It seems a shame to reserve 30 something megabytes of memory for >> continuous splash unless we are actually using it is my point. >> >> If I'm running headless its just wasted memory. > > Couldn't we > > 1. Find reserved continuous splash memory > 2. Fee it in the MDP when we make the transition Qualcomm has investigated freeing the MDP/DPU cont_splash memory, but I fear that the end result was that it is not _that_ easy to free it. It is marked as reserved/no-map, so the kernel doesn't think about it as a memory region. Adding it back required hacking around that.
On Thu, 9 Feb 2023 at 19:24, Dmitry Baryshkov <dmitry.baryshkov@linaro.org> wrote: > > On 09/02/2023 14:22, Bryan O'Donoghue wrote: > > On 09/02/2023 12:11, Bryan O'Donoghue wrote: > >>> If the bootloader splash is enabled then this memory is used until the > >>> DPU driver instructs MDP5 pipes to suck data from a newly assigned > >>> address, > >>> so there's a short window where it is. > >> > >> It seems a shame to reserve 30 something megabytes of memory for > >> continuous splash unless we are actually using it is my point. > >> > >> If I'm running headless its just wasted memory. > > > > Couldn't we > > > > 1. Find reserved continuous splash memory > > 2. Fee it in the MDP when we make the transition > > Qualcomm has investigated freeing the MDP/DPU cont_splash memory, but I > fear that the end result was that it is not _that_ easy to free it. It > is marked as reserved/no-map, so the kernel doesn't think about it as a > memory region. Adding it back required hacking around that. Hi Team, This patch missed the v6.3 cut and I'm really hoping it to make it to v6.4. Is there anything I can do it move it forward. Sorry if I missed any action item assigned to me in the followup emails. Regards, Amit Pundir > > -- > With best wishes > Dmitry >
On Thu, 9 Feb 2023 at 16:33, Bryan O'Donoghue <bryan.odonoghue@linaro.org> wrote: > > On 09/02/2023 09:05, Amit Pundir wrote: > > Hi, So what is the verdict on this patch? > > > > I submitted this fix to make sure UFS don't map and crash on it, which > > I have seen happening occassionaly on db845c and Caleb reported > > similar issues on his sdm845 device iirc. I should have probably put > > that in my commit message as well. > > > > Regards, > > Amit Pundir > > So the memory _is_ being used by ... continuous splash on an Android > image, i.e. your Android ? limited to Android - image continues on with > the splash but other blocks erroneously reuse the memory then, UFS as an > example ? Hi Bryan, Yes UFS (reported only on v5.10) tries to map this reserved memory and system crash and reboot. Plan is to backport this patch to v5.10.y. Regards, Amit Pundir > > --- > bod
On 10/04/2023 09:54, Amit Pundir wrote: > On Thu, 9 Feb 2023 at 16:33, Bryan O'Donoghue > <bryan.odonoghue@linaro.org> wrote: >> >> On 09/02/2023 09:05, Amit Pundir wrote: >>> Hi, So what is the verdict on this patch? >>> >>> I submitted this fix to make sure UFS don't map and crash on it, which >>> I have seen happening occassionaly on db845c and Caleb reported >>> similar issues on his sdm845 device iirc. I should have probably put >>> that in my commit message as well. >>> >>> Regards, >>> Amit Pundir >> >> So the memory _is_ being used by ... continuous splash on an Android >> image, i.e. your Android ? limited to Android - image continues on with >> the splash but other blocks erroneously reuse the memory then, UFS as an >> example ? > > Hi Bryan, > > Yes UFS (reported only on v5.10) tries to map this reserved memory and > system crash and reboot. Plan is to backport this patch to v5.10.y. > > Regards, > Amit Pundir > >> >> --- >> bod Personally I'm fine with this patch on the proviso we somehow associate it the memory MDP - even if its just a comment in the dts with the MDP. i.e. if we run headless we want to be able to use that RAM for something. A dts comment would do --- bod
diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts index f41c6d600ea8..2ae59432cbda 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts @@ -100,6 +100,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";