From patchwork Fri Jun 16 06:51:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Pundir X-Patchwork-Id: 108883 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1133418vqr; Thu, 15 Jun 2023 23:56:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7+vky6AnpWYrshOQET3puogG6MgLfdsnAdfElgoU1VBbaVNjSRgvHiCifnsunun1SJznn+ X-Received: by 2002:ac8:5c16:0:b0:3f2:ba:62b3 with SMTP id i22-20020ac85c16000000b003f200ba62b3mr1864994qti.32.1686898579771; Thu, 15 Jun 2023 23:56:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686898579; cv=none; d=google.com; s=arc-20160816; b=waE2kB4bmU99ekpP+J0dy1YHqtwXV5oTJgiyB0+MYJSZimn2csQ9mWB8XYDxRdN7mP Hc/k9aFgSfifzUpN4i4McBqoOrtPm2UBX8+E2pJ/AJf9jpMQCheNc0b3H3zOmjsNd082 p27XWGwNxu1qgZ+84/C7lSzKvHIX5Pm2+N6iSeYcvIIL69cdfyRqxj2ztcGwYUcLmixK Ma/giaGz538+KSo+XGfPrbai7XEYjIyO1/A9iZ2rfQS9yNaWSbKZ7qxvMRbQnx6CAT+f UB25cJU5e+kf1SiMfkb6u78EC6kPB1WVP/Hokt8ZXqUT19KUFbKFmdhxx8tKLEz6jjq/ xSpA== 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=2ePxkvXc3ez7RaG4t+b4SJYW3YfRAjragn1h3BVbXng=; b=mjJeq1s0YtKCv1PcywqqOuSmTogd73A2schfjQ7dTaxr3OTaNlbEELdW7vZDFpAv0X M+tumhUEEtcApJPZIOdabdIL3j5mi9SjiR1cBS52uazq1STzqTmnOV8eU0xvsCOVDl33 cPugE5bdGUFpTUAoOf+z8Sd7Xy9ARepJKGg3fLwTpwWUimmSO4GHQBKbXCZn4I71xtiw jnL3hrhoDroivV6f/7pF3ncbAj7Ko6wHwKFnXCsLmSntRqASq6C4PbaKpQZ1EcnnMio/ FqX2Rrgtst7X7mQXPd5gi2TLTWX5uDzoi0zTtj6P57WGIKIuZHu5376gSaM9zhOj16r1 iJaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LChvz2X+; 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 j2-20020a637a42000000b00542a44ab16csi3642864pgn.231.2023.06.15.23.56.06; Thu, 15 Jun 2023 23:56:19 -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=LChvz2X+; 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 S241156AbjFPGve (ORCPT + 99 others); Fri, 16 Jun 2023 02:51:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232704AbjFPGvb (ORCPT ); Fri, 16 Jun 2023 02:51:31 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E0692726 for ; Thu, 15 Jun 2023 23:51:30 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-66682bd799fso386827b3a.2 for ; Thu, 15 Jun 2023 23:51:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686898289; x=1689490289; h=content-transfer-encoding:author:mime-version:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=2ePxkvXc3ez7RaG4t+b4SJYW3YfRAjragn1h3BVbXng=; b=LChvz2X+hj7s7ldfSLBo7Q4o3S6V0QEojFzHeNlLz+mqu2QDAN/GVxiDDXl/LfisiA kg71efrGUIs+OFuj08ikZmUEQsNloGlvdeNBuPqmISjpKmv4MQ0Adb7y3pRyoXunrXMb HNdqaq+0oJ2i4khq1GDfSX1c96No+qa82HUnGPQ8LHDBvmTHRSk7SI6Ds/7hB8/ILfVo cwE7zhQc21f3f1BvR3HBQv/JqrVSFt6WSEpvVjei3lIaL87rtK5oDwpM2Y/56c3CiAAI q0PlaZRS2FqUTTeq680F/VbDdftvtK0VWM3XYRIvor5KGPYd2EzpEBunml0g6W5yiOLA 38qQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686898289; x=1689490289; 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=2ePxkvXc3ez7RaG4t+b4SJYW3YfRAjragn1h3BVbXng=; b=R5mAnNz11hRENsaCLYQvWSG9qxNpEBIOB3rtc9qZ+gqKpkhs/sk01bWCuoingJbmnI Idawr54XpUK/2Fq9ahfOqZaiq4yoVlmehg1/d4oPcZ++JWP8C+AGKhFicWvlLYErGfGM iX5i0R+VtXfie95O5laNeUnHBYYRSz5FoQUXaYFiRqt+suAnffagBnOSElBXu63Nymg7 Bf9Wg9sufqTfFfD6uy54l0C7dM/D8L0V8tbOr2nELMEK1bivG3BrerX4yYnwRaIgcW6y QXqWWGOPbCemodGJv3I6E0XYg4jSutBwInP3OmQPBqUq1Be1ZF0ey3szypHuXskb8Up/ NlBA== X-Gm-Message-State: AC+VfDwI2g5XSmyHhIE5RXfltzDamy+m4pjpvU/uOSBypJpBvIE3YuMV HJhs01/RoQASc/MLdR9c8XhBXA== X-Received: by 2002:a05:6a21:3997:b0:111:2a64:83e7 with SMTP id ad23-20020a056a21399700b001112a6483e7mr1384962pzc.22.1686898289554; Thu, 15 Jun 2023 23:51:29 -0700 (PDT) Received: from localhost.localdomain ([49.207.50.231]) by smtp.gmail.com with ESMTPSA id j11-20020a170902690b00b001b03842ab78sm15079395plk.89.2023.06.15.23.51.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jun 2023 23:51: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 Cc: linux-arm-msm , dt , lkml Subject: [PATCH v3] arm64: dts: qcom: sdm845-db845c: Mark cont splash memory region as reserved Date: Fri, 16 Jun 2023 12:21:23 +0530 Message-Id: <20230616065123.3710734-1-amit.pundir@linaro.org> X-Mailer: git-send-email 2.25.1 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_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768841364989487391?= X-GMAIL-MSGID: =?utf-8?q?1768841364989487391?= 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>; status = "okay"; };