From patchwork Wed Jul 12 13:02:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Pundir X-Patchwork-Id: 119174 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp1153681vqm; Wed, 12 Jul 2023 06:33:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlEfpjtDugTsxo61MPNnPOG2QEN9pQIkDIiD71+kcoTWtra5Tk+9H0/BXzi2Y1ox3zms9r9N X-Received: by 2002:a05:6a20:515:b0:10c:7c72:bdf9 with SMTP id 21-20020a056a20051500b0010c7c72bdf9mr14636019pzp.29.1689168810172; Wed, 12 Jul 2023 06:33:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689168810; cv=none; d=google.com; s=arc-20160816; b=KUdVp2IOQ25KlfSnhhrY+haE3CdbP7FW5dbHaAwkfZwTrm72Qp3dYC7MZq8CwrahmF Y45K6TxgYVb46B4GY2LzqyyzCVKuPcPzR6CPhOz7yuroyiv+i1A5ez4dxoIcQQ9lfpsf I4mwvyl1Qtb0ZZb4SmM8LgzyJH72qVDIlVwvmKO5xRCYebpk2nTN0GrDATrULkqzj7Bs Qb/ve3tpfBkUBs/ASbkuNszC9Ay0Oea3XFCJkZTJ7LXEnMgIJMtSK/4FKguuhb8+Jd2Z gSeeoyvLv7LwEbeLdccQel5IGTGmlZ2T13A1T2oSw5LgYI0P5G/M5tSrU9AswgWoL4Jp S7XA== 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=9T8piHX0bubTIqR5dsadlL99AD9gpATcetHPEAi8jTU=; fh=bUGzLlUT6AJNEZrTvniK2uKszsewdBL+00C8IeKdOoA=; b=rTL3qYHZTws4XkISE/w6cJEW9RuzgU0yzqqwD5Tu88Nlz6kwToLh3Lb2sTQjFt+jPZ 2pT3kV05ZxkCqWJ0y41I7bE0RXFkKtBktJXY+/G1+rn3i/SedEIGr0mLdzdQPeRaW5B1 HKqNYYgdHDTMjaEokudRC7dwQ2XjBUc5f4ZaZnxOiyXPEqkP4Ufgn+vcg78Jjxw0JnfN HRltf3yk3cOhwHRkYblHU1Ospzf/WkRySPtk8dCMdYbgOUiYJv9GkM5j1V1Aj+S7Eu7b lEfx97Qlizs0WnQQtC+0zVZP5Hm5TucP3iSP4vAzsXd6wagqIotryO7oLAWfZIdtMBoP +lNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hIzKop+k; 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 q10-20020a056a00150a00b00682d2ab09dbsi3337053pfu.306.2023.07.12.06.33.16; Wed, 12 Jul 2023 06:33:30 -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=hIzKop+k; 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 S233533AbjGLNCz (ORCPT + 99 others); Wed, 12 Jul 2023 09:02:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233399AbjGLNCm (ORCPT ); Wed, 12 Jul 2023 09:02:42 -0400 Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7687D1BDF for ; Wed, 12 Jul 2023 06:02:29 -0700 (PDT) Received: by mail-ot1-x336.google.com with SMTP id 46e09a7af769-6b711c3ad1fso5690467a34.0 for ; Wed, 12 Jul 2023 06:02:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689166948; x=1691758948; 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=9T8piHX0bubTIqR5dsadlL99AD9gpATcetHPEAi8jTU=; b=hIzKop+k4OCTCBWq4j/r6OD7aiiXPsd/rQZ1uF4S9TETD/oKB2rDcKczmsx2A0nJe5 NWtDC2qPPGP7IM/wx1RvH78MvjJ6gY/YwivETBUZkh+vDWikLxQdZmap/WtbV5U3p2fE p5OoOEvAFa/9bydOqp6ak9+2bf8q660eCyEzrIC/1SHTOj9MIVPWcntYo5Y0VljtGzHE mgZIlmKBdjkeT3791x7XiE800dSX3/EX7xIgtP5kHtO8nVPlbCyb2u7S6JXlPFNTDwAE UGae6a1Zymrpqo19n1nGtitGuwQJG7H3zK3/7eS7IUQfV708JvhyXubPbr6YmxNuc0TL sKPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689166948; x=1691758948; 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=9T8piHX0bubTIqR5dsadlL99AD9gpATcetHPEAi8jTU=; b=fxDFiowA7cZOLkvxoDLERpMNgL68RU2zMo0dy3rikx4AV5SoIWDwsHpBCliNE4LI96 H5O5ZxTZ3LMJaL8l0GyQOGHygcNvMrC3ra0J/fPo07p/uzl2xAph9Jr3sBJKgy5UZzvy QgH0uT3u7ZclhvuhDqV+T2ZidZeGLSlxi26ssRDhq3mJUj4nzXF13Audq77wrQynK3T9 qLwAvpbtV15nA4g20i3UVsvbTUFM/VlNlinnrleAo3YDcZH5Ub0bfW8G+o+HTg0qLub/ yUQoD/qO9MJWJGKovwmzkVfjDEoEOXoN/QszpmLL24T5hJQaID1xegc6PK0hM852siXE O9QQ== X-Gm-Message-State: ABy/qLYiUsPv/TaJEiWHkB9qU0IbfBTqg7G9r9y2BE8x6ghTyMORDOju YeYm/QtCGIMG8s/hU0bTn+D3Yg== X-Received: by 2002:a05:6358:341f:b0:135:89d6:22e9 with SMTP id h31-20020a056358341f00b0013589d622e9mr1235888rwd.13.1689166948540; Wed, 12 Jul 2023 06:02:28 -0700 (PDT) Received: from x-wing.lan ([49.207.50.231]) by smtp.gmail.com with ESMTPSA id p1-20020a639501000000b0054fe07d2f3dsm3417023pgd.11.2023.07.12.06.02.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jul 2023 06:02:28 -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 2/2][v4] arm64: dts: qcom: sdm845-db845c: Mark cont splash memory region as reserved Date: Wed, 12 Jul 2023 18:32:15 +0530 Message-Id: <20230712130215.666924-2-amit.pundir@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230712130215.666924-1-amit.pundir@linaro.org> References: <20230712130215.666924-1-amit.pundir@linaro.org> MIME-Version: 1.0 Author: Amit Pundir 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_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771221874488024987 X-GMAIL-MSGID: 1771221874488024987 Adding a reserved memory region for the framebuffer memory (the splash memory region set up by the bootloader). Signed-off-by: Amit Pundir --- 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"; };