Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35508951rwd; Mon, 10 Jul 2023 08:24:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlHoBqTtpPV/S63nzMu/2SHV5OLEf+MGMuFt+kQK57LUpMlNWk6P7oZIp0hYX9eLyji/vv/a X-Received: by 2002:a50:eb04:0:b0:51d:8aaf:5adc with SMTP id y4-20020a50eb04000000b0051d8aaf5adcmr11912789edp.14.1689002681740; Mon, 10 Jul 2023 08:24:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689002681; cv=none; d=google.com; s=arc-20160816; b=B7iqmgbVbDmd+mdU5tf0yYn/SxUOMkaVjPmrViy2LNFBMeyKQUA80dIMaCo7sh9mAu BVdRiT6xyT0lDYVKbiEtu/9DqC9LSESZCfKnmHJbLg1yUVVuAQJdxFOVCKwV+L6wK61B nSnubkHaFWvu8dR1yGm1p9fUEIIZ5qedQLKHNu1Z8munZu2nr4EKJZGar8vvEWHNWXM3 LonFdJxFazdAnEivbf+X5YCwl97hT0YbWN4IVCkR9Dfkua/wqTiQ3rVmu3sjbexm4gN8 p9fTsPY6v3JG0cr2nWpPPLskP0QSoasFZOzojSr+63Wf1MG+7N7X8FCmUsF9Mn5Swo5R p8/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=0zUz1F8t9WEy32K0WQzvG/tkTggRTR3113BWQqc0TAA=; fh=wi6P/tA+ZYBIZ/hAhNl0hXNfKRCc8jxNG5RY9KTifOc=; b=fa0iXqWVROlE21XkfQyc5oZbHepWLY2z/NL7JidC++Pa4ueJhcGSNU/nVs2Hegzf+N p5xyPPTYh0utDoTb/KSsIbbOnFSwDkgWMhIqTJDjDdcoNO5sAAkgMgzLy55p80zimUZg xFbrG7xGIjn5GlKgrdrEPxIt7dVIM6jMb5Kj8tdEk9netci65F2CJWn+qUU6tzPaoSWj zPymXoxzePySNxiaXesZN5H2ro0fsuW/HpJ1n2iRHYubVuGWaWilAYMXexeEDwo/obPR IQK+Cs21IkAB6ogDsmJRjbPFBFBAicA+BnwgSaZPrBpgIzDs+DOc0Bzgz3JfDDoaBNlh OE/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OkpkR98U; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o19-20020a056402039300b0051bec8e6a76si9458783edv.309.2023.07.10.08.24.17; Mon, 10 Jul 2023 08:24:41 -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=OkpkR98U; 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 S230129AbjGJOsM (ORCPT + 99 others); Mon, 10 Jul 2023 10:48:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231179AbjGJOsK (ORCPT ); Mon, 10 Jul 2023 10:48:10 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2603120 for ; Mon, 10 Jul 2023 07:48:08 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-991c786369cso564030366b.1 for ; Mon, 10 Jul 2023 07:48:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689000487; x=1691592487; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=0zUz1F8t9WEy32K0WQzvG/tkTggRTR3113BWQqc0TAA=; b=OkpkR98UNKE1L7UjqB/hs8uZpKo2qzBIvbd3JgkfDo7ePiifR3C2gqjY3qh3r7Umni 9eEQptj5rNxCtADx0qUDxJPbMot36PYWDZ9B5RxmrZguWpF2VUdGIqFxnWM4Keil68w7 Rd+8K23yFKYKY+WRwR808JqH5nm5OUFVnmETF+LsbIKb43Expt9IR4XAda30Glg4CerA n3qzdFYtrM9cigbYW3x16/IfrpF2bA+KqQGNmUgTCbLkf6kKCTuNL0+s+oAdQ6gkXqvH FkSbRhp3EDX/iTfKRzSmGoRn4KC9BSbRtsx0RJ1izQOCEEHJU0kSiYDx2+o60sdJzc7R LDLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689000487; x=1691592487; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0zUz1F8t9WEy32K0WQzvG/tkTggRTR3113BWQqc0TAA=; b=UvQVl3MXDK1CogHUefeSIB9fp9oWTBdwt/P+sakhyK/nQjcrXUzJ0msxQuYtxzQzCs iQ37On3hdRDENkyEWr/Mc10kpNrKfpDirUj0SAXLkHzIeMv4ZZ7niFNQbjP/Gn7nB7nU DLlEI/RMrePvQxj/Tx8gC1fpvBuhKyDjp9T1yBv0EFaxfg/t7hlqO0rC67OXQ4WNZg72 ENGt/Jpwc+DikIXPw9CwrI/fm2Z2x2yxAwVvYUzC/sEtCx/A/siStj2CJ1Mxf2mNx1mw RtjhYIc4mEf1vL1wQXGYMdOeRPENNLdFyEQuFLRpIMJr7pch4FRna7gjvccLOJB0b+mo RHcg== X-Gm-Message-State: ABy/qLbj6+we4kdqLUfvC6d2uCcHIeuHJObIqh/vGv+23qW51NA0YGlV VaR1ro66XMjiFDP/dgzMoAd6ImV0Nm/7N7z3KpQ= X-Received: by 2002:a17:906:300b:b0:98e:1deb:cb03 with SMTP id 11-20020a170906300b00b0098e1debcb03mr10212757ejz.56.1689000487153; Mon, 10 Jul 2023 07:48:07 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.104]) by smtp.gmail.com with ESMTPSA id j17-20020a170906279100b00982a352f078sm6181160ejc.124.2023.07.10.07.48.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 Jul 2023 07:48:06 -0700 (PDT) Message-ID: Date: Mon, 10 Jul 2023 16:48:04 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v3] arm64: dts: qcom: sdm845-db845c: Mark cont splash memory region as reserved To: Amit Pundir , Bjorn Andersson , Andy Gross , Dmitry Baryshkov , Rob Herring , Konrad Dybcio , Krzysztof Kozlowski , Conor Dooley , Caleb Connolly , Bryan Donoghue Cc: linux-arm-msm , dt , lkml References: <20230616065123.3710734-1-amit.pundir@linaro.org> Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: <20230616065123.3710734-1-amit.pundir@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org On 16/06/2023 08:51, 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 > --- > 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 df2fde9063dc..503136eb9c06 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"; > @@ -517,6 +525,7 @@ &i2c14 { > }; > > &mdss { > + memory-region = <&cont_splash_mem>; Just to be sure: does this pass the dtbs_check testing? I would say it does not and wasn't tested :( Best regards, Krzysztof