Message ID | 20230124183257.1525376-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 s9csp2311393wrn; Tue, 24 Jan 2023 10:36:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXvG2LIP0TtKXMBQWePXiwy878gqDikuqM7pjLgwdCa4jHxq8qoYQuBUI7CrfAv3d5pT2Ju9 X-Received: by 2002:a17:90a:dac5:b0:229:502f:3910 with SMTP id g5-20020a17090adac500b00229502f3910mr30785865pjx.11.1674585377071; Tue, 24 Jan 2023 10:36:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674585377; cv=none; d=google.com; s=arc-20160816; b=ENeOyjnwqTim8tN7adiPy2hb+XJYyB0ffFHl+la7Tg2LncJrGLMIEgXPS3/Q7cbu+G quO+DA5XsE6RKDWNxMJccUeUsJJBzfRVWCWXl8fxFLl6bxfa7cuJ6OGuQextIAik/7TX TniWuQ0RYbog43c0vfNP+FfAd7CcqkclozKz2D1BxcFjK7Rkb1CRWJXZMnulA1JH8XRz kOXB2rihyJNE5HmG0m81XcvOWZ7p3dat1nnyYWqcCotYuNhrCgiONNaDdgs8qQ9Uk14r Zrv6EzLLx/0UfHEBKS3fMlcYm7FRPWYd+ub2yYg8l9/3+hjphSe+YKLas/0RtK0UT9Lu 8I+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:author:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=UsWJpCZ2MiktbEP0bUIDKCE2SHIVUBqnn1o3x0TI6io=; b=ocMUN5UJ50HoZC75pDD95ZYY+NePt868iVcdnD4RD/JJ5Im0+KTU0lsOfHtfWqRNfi vwQgWyYdAoE9XEhujWTATNkZeoZGASkjeqdx5QdUfP3Mfe4aFvX8b35ZLxfEn8KpMd0V NCX/D9d8IEdpzfK6jTFX7IycOR1r9b6bbhb3vxCJRtNgoJb2IXyhiGMPB+CBVBfnr9Ew PLk8nTnV6vCW14ck3oD2cKwufG9gjmqHOP66eBmsNy3bg6fgS3UMrKCqeltS5Z+upl9D Sii9rX3audAC+8JiFFwUDS5OEyullvFXdHN3Hfm+qn2XDvB8TQod+7xRS5NC7FZthDkG yGyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YdDsRg3Y; 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 bb22-20020a17090b009600b0022bf88769b8si1465220pjb.170.2023.01.24.10.36.01; Tue, 24 Jan 2023 10:36:17 -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=YdDsRg3Y; 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 S233101AbjAXSdK (ORCPT <rfc822;rust.linux@gmail.com> + 99 others); Tue, 24 Jan 2023 13:33:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233062AbjAXSdJ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 24 Jan 2023 13:33:09 -0500 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 380F817161 for <linux-kernel@vger.kernel.org>; Tue, 24 Jan 2023 10:33:07 -0800 (PST) Received: by mail-pl1-x629.google.com with SMTP id z13so15591067plg.6 for <linux-kernel@vger.kernel.org>; Tue, 24 Jan 2023 10:33:07 -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=UsWJpCZ2MiktbEP0bUIDKCE2SHIVUBqnn1o3x0TI6io=; b=YdDsRg3YLjc2/9zOKTNbV5dW2fAzUhZvv6N+sLI9WR5porWWWVLGOEESxfGtJsv1YD HaPdnonpHJoF0mAOOMa37SYLyxHngir9M3NRQUyUTrS6/p62LBXn4Sz9s5kwj2Wn/riK R4bv7Eov+1LdOHJD2Dk91oVBGILUFR+00vVuGfo4Z2VQHFRCkexBf1zUVHuJSOqeQ5Ls wVs7S8RB7VyqkuJ5qNOxP1F0jjKmYLqRe2vW1gEWU8YX9mhl3oWHcWTE1Z0CkaAfuP4b HaRrPVY/puZJZIm08vTO3rGM4ksLeJOaprTeNfhuBgU+NbEs6tdye9YVNAvhE4Ctdtwb Sl8g== 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=UsWJpCZ2MiktbEP0bUIDKCE2SHIVUBqnn1o3x0TI6io=; b=cZaV0ZmxePAwv51EuN2zqEof6LG4hUH9Gc9njYywM6Ll7uBqmzgih/xjmFyUlb8raF 5KAfWy9l28EDPX4IkWmzSBYTfkCPX7GGC8ccJpkb74fBspQrQ9FPHHMxUh8sg9h6/CA/ cTAiioi+FQy/HrPnM6P5WyaLhwkILfAs4NFjeZh4NB4tPEdto7cxaJG/sDVMC+qcgrja 5yhg58MWZdfmEAyXPky9iE9SpM0YMIYw4X546mW+ktO+OY++/3dCA1vT0auH79wc99WJ WavTDxfPJixdguy7D9mKbq9P6VXs61VtVW/o5+oAFWAHLZSZkI/Mo9bpEmtdi9P9hZAz PPVw== X-Gm-Message-State: AFqh2koqBM36NADWHYaf18c/Hd/2VVR7lQfb21IaIMrXSCDsbbGNigAc WWgG6WYs/Z0gwVad4ZwyZ7jNPw== X-Received: by 2002:a17:903:2306:b0:193:3540:c54d with SMTP id d6-20020a170903230600b001933540c54dmr39612857plh.26.1674585186710; Tue, 24 Jan 2023 10:33:06 -0800 (PST) Received: from localhost.localdomain ([122.171.17.192]) by smtp.gmail.com with ESMTPSA id x7-20020a170902ec8700b001943d58268csm1997229plg.55.2023.01.24.10.33.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Jan 2023 10:33:06 -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>, Joel Selvaraj <joelselvaraj.oss@gmail.com> Cc: linux-arm-msm <linux-arm-msm@vger.kernel.org>, dt <devicetree@vger.kernel.org>, lkml <linux-kernel@vger.kernel.org>, phone-devel <phone-devel@vger.kernel.org> Subject: [PATCH] arm64: dts: qcom: sdm845-xiaomi-beryllium-tianma: Add reserved memory region Date: Wed, 25 Jan 2023 00:02:57 +0530 Message-Id: <20230124183257.1525376-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?1755930036557822180?= X-GMAIL-MSGID: =?utf-8?q?1755930036557822180?= |
Series |
arm64: dts: qcom: sdm845-xiaomi-beryllium-tianma: Add reserved memory region
|
|
Commit Message
Amit Pundir
Jan. 24, 2023, 6:32 p.m. UTC
Put cont splash memory region under the reserved-memory as
confirmed by the downstream code for Tianma variant as well.
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
---
This change should probably go in sdm845-xiaomi-beryllium-common but
I don't have EBBG variant's downstream code nor the device to test.
.../boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts | 8 ++++++++
1 file changed, 8 insertions(+)
Comments
Hi Amit Pundir, I have a Poco F1 (EBBG) variant and I can confirm that the framebuffer address is same for the EBBG variant too. I did a quick check by running the following command based on this link[1]: xiber:~$ strings /dev/disk/by-partlabel/xbl_a | grep "Display Reserved" 0x9D400000, 0x02400000, "Display Reserved", AddMem, MEM_RES, SYS_MEM_CAP, Reserv, WRITE_BACK_XN So I think it's safe to move this to sdm845-xiaomi-beryllium-common.dtsi Regards, Joel Selvaraj [1] https://wiki.postmarketos.org/wiki/SDM845_Mainlining#Find_the_framebuffer_address On 24/01/23 12:32, Amit Pundir wrote: > Put cont splash memory region under the reserved-memory as > confirmed by the downstream code for Tianma variant as well. > > Signed-off-by: Amit Pundir <amit.pundir@linaro.org> > --- > This change should probably go in sdm845-xiaomi-beryllium-common but > I don't have EBBG variant's downstream code nor the device to test. > > .../boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts > index 8e176111e599..47cbf725b0e3 100644 > --- a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts > +++ b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts > @@ -7,6 +7,14 @@ > / { > model = "Xiaomi Pocophone F1 (Tianma)"; > compatible = "xiaomi,beryllium", "qcom,sdm845"; > + > + reserved-memory { > + /* Cont splash region set up by the bootloader */ > + cont_splash_mem: framebuffer@9d400000 { > + reg = <0x0 0x9d400000 0x0 0x2400000>; > + no-map; > + }; > + }; > }; > > &display_panel {
On Thu, 26 Jan 2023 at 11:45, Joel Selvaraj <joelselvaraj.oss@gmail.com> wrote: > > Hi Amit Pundir, > > I have a Poco F1 (EBBG) variant and I can confirm that the framebuffer > address is same for the EBBG variant too. > > I did a quick check by running the following command based on this link[1]: > > xiber:~$ strings /dev/disk/by-partlabel/xbl_a | grep "Display Reserved" > > 0x9D400000, 0x02400000, "Display Reserved", AddMem, MEM_RES, > SYS_MEM_CAP, Reserv, WRITE_BACK_XN > > So I think it's safe to move this to sdm845-xiaomi-beryllium-common.dtsi ACK. Sending v2 shortly. > > Regards, > Joel Selvaraj > > [1] > https://wiki.postmarketos.org/wiki/SDM845_Mainlining#Find_the_framebuffer_address > > > > > On 24/01/23 12:32, Amit Pundir wrote: > > Put cont splash memory region under the reserved-memory as > > confirmed by the downstream code for Tianma variant as well. > > > > Signed-off-by: Amit Pundir <amit.pundir@linaro.org> > > --- > > This change should probably go in sdm845-xiaomi-beryllium-common but > > I don't have EBBG variant's downstream code nor the device to test. > > > > .../boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts | 8 ++++++++ > > 1 file changed, 8 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts > > index 8e176111e599..47cbf725b0e3 100644 > > --- a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts > > +++ b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts > > @@ -7,6 +7,14 @@ > > / { > > model = "Xiaomi Pocophone F1 (Tianma)"; > > compatible = "xiaomi,beryllium", "qcom,sdm845"; > > + > > + reserved-memory { > > + /* Cont splash region set up by the bootloader */ > > + cont_splash_mem: framebuffer@9d400000 { > > + reg = <0x0 0x9d400000 0x0 0x2400000>; > > + no-map; > > + }; > > + }; > > }; > > > > &display_panel {
diff --git a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts index 8e176111e599..47cbf725b0e3 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts @@ -7,6 +7,14 @@ / { model = "Xiaomi Pocophone F1 (Tianma)"; compatible = "xiaomi,beryllium", "qcom,sdm845"; + + reserved-memory { + /* Cont splash region set up by the bootloader */ + cont_splash_mem: framebuffer@9d400000 { + reg = <0x0 0x9d400000 0x0 0x2400000>; + no-map; + }; + }; }; &display_panel {