From patchwork Thu Jul 13 16:52:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Pundir X-Patchwork-Id: 120069 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp1979296vqm; Thu, 13 Jul 2023 10:32:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlEDKwW6SVM2WgT6c+fWzexvOt92Jx2vE+r2qkmvgKnLvwjqosOU3IhyRfDrslMcQ7VyYLFa X-Received: by 2002:a17:906:255b:b0:992:7594:e6b2 with SMTP id j27-20020a170906255b00b009927594e6b2mr1541131ejb.77.1689269558818; Thu, 13 Jul 2023 10:32:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689269558; cv=none; d=google.com; s=arc-20160816; b=YF+HF5c1fPvYzhKLQ+9PaJnjuPFLtoXdhAJ1vFMvrWsbtDOU5KujJvPSvHKQfg5S2q KYAFzN/1kqMOvLKYNTOD7jAGUSdhGiOxtY8ol/r1Ji62A89jSs3R01zfaPTuc9EB0ZLg TdSYj70div6dy12FEr1w9skSbuAZe5+DpPJramfptMSrQXYs3DxvbfEuVmwwin+s3Q1e dCgMO3+XaacApQVktQmS+aNY+yaUbQW7VVgH8AVP7LMRnmHLZAuAsTIalg3Ak8iATewh MZ/LdeGkNQDgRnKyAo3Uqj8sC7pQb80/bxgskpDvRI5575fWjTtrRa/O5Smg3qC9h+aE 7ieg== 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=/TQQu9i4zVTx/pAbl1XLa7p043pJkUqA0em0AaQVe1Q=; fh=bUGzLlUT6AJNEZrTvniK2uKszsewdBL+00C8IeKdOoA=; b=gbOECkAyf9TL748xvQWEZX+a5THtpwfgbWdZCzNaY3cvIazDcJGMHOktOHDP/ONHyH uoRZZP8S18XajrESoP6t8162irvUVCk0j3F7gexYu/u3NDNh0kKjeAfb+aUyOz+5aHp+ 9BwQUwuKd4f/l5hNVuTxXfiY0UESmkH0Ij24g2f8IBZPcjlLNNYK6b0T81Uze0Am2LyA tr1Yew+KeIBIMHrWI0+lu45t4uDViwRYyU4JgiuVDkpHlECQrrROjxQoZIvMu0bsxz4v hqHTTac+Fy9M69kT8BWopvrYVsyLcfoUA78Aot+gwBZqFxSWFfSilvsaoWeCWV7ZPNYG MVhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EOJTZVfB; 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 ke5-20020a17090798e500b00992e0f4e861si8563516ejc.236.2023.07.13.10.32.05; Thu, 13 Jul 2023 10:32:38 -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=EOJTZVfB; 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 S235338AbjGMQxB (ORCPT + 99 others); Thu, 13 Jul 2023 12:53:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235143AbjGMQwt (ORCPT ); Thu, 13 Jul 2023 12:52:49 -0400 Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 218652701 for ; Thu, 13 Jul 2023 09:52:48 -0700 (PDT) Received: by mail-ot1-x32a.google.com with SMTP id 46e09a7af769-6b5d57d7db9so763982a34.3 for ; Thu, 13 Jul 2023 09:52:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689267167; x=1691859167; h=content-transfer-encoding:author:mime-version:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=/TQQu9i4zVTx/pAbl1XLa7p043pJkUqA0em0AaQVe1Q=; b=EOJTZVfBLXbJ+tgLJUJRaAhYQO95hGodf9yyM3ZyJmDrHCRlhC2xTABoIUd+3Cl1Yo XO6MFz+wN+mKMs6tq2jcRQ64XxumnSH7k9awmG8P4d7raV506yyFNuk+QzDmoxlG7chk Xm8c4ZN86UiZ92TA62A3E7CqOGXkzsg58hlso09jztugiWJsrZlajfgdFEImk3AudVEl cx4jXLpbjX+rbI6inQvzyxatK+J3NV0dtyEMl2rdalG0LM16oQKztrzu1e9wqiv4IAZx OywlZGqh1gyC+BOajdMLtm5QuJcdzMOffKpKItqBLM8fiPpYEPx/vCTS+0PA28sPaCRn hNEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689267167; x=1691859167; 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=/TQQu9i4zVTx/pAbl1XLa7p043pJkUqA0em0AaQVe1Q=; b=DpQW36g+RNCcxjPuQ9hd/ZfM+VDmTY+VoE9qrwceyRbtw4jJFlLMegr4+d1QZZQR7f 4Cfd3SPwdqv11cYXT1HOY5YSbobsjFAieqz7IQUywbI6HTpPPJmWVT7W10uSXMUdMRQl CvYyDL1nc4Le+s346ps2SwBAnHToqztyRsqgqY+x2aHW3bbvR4Dr04ZJKdyqH/4l/Ec+ qh6ia7bvcu71l1WDlvZF4/1emgIiTeEVLsf39f6/a4QOtetpuxBSUXukbSuy+iWNkQxD CXMr+Lq6x3gwPenWoy3mO+923vbztdDOSVvFHBFm3fpSd7HwP+pc3JYznaV198gjQPV3 uK1w== X-Gm-Message-State: ABy/qLaKXO1OaB+Q/2QU+hyxkBkiZojqg7HR5uPxOVSCzEwpPrQma9IZ fWHiQHz/hx8yi6EByNTCDaEy+Q== X-Received: by 2002:a05:6870:c188:b0:19f:5c37:abb9 with SMTP id h8-20020a056870c18800b0019f5c37abb9mr2495348oad.12.1689267167408; Thu, 13 Jul 2023 09:52:47 -0700 (PDT) Received: from x-wing.lan ([49.207.50.231]) by smtp.gmail.com with ESMTPSA id d3-20020a17090abf8300b002633fa95ac2sm12009150pjs.13.2023.07.13.09.52.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jul 2023 09:52:46 -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 v5 1/2] dt-bindings: display/msm: mdss-common: add memory-region property Date: Thu, 13 Jul 2023 22:22:37 +0530 Message-Id: <20230713165238.2814849-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 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: 1771327517023608426 X-GMAIL-MSGID: 1771327517023608426 Add and document the reserved memory region property in the mdss-common schema. For now (sdm845-db845c), it points to a framebuffer memory region reserved by the bootloader for splash screen. Signed-off-by: Amit Pundir Reviewed-by: Rob Herring Acked-by: Krzysztof Kozlowski --- v5: Moving the dt-binding to mdss-common schema with updated commit message and property description. v4: Adding this new dt-binding patch, in qcom,sdm845-mdss schema, in the v4 of the follow-up patch for sdm845-db845c. https://lore.kernel.org/lkml/20230712130215.666924-2-amit.pundir@linaro.org/ .../devicetree/bindings/display/msm/mdss-common.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/display/msm/mdss-common.yaml b/Documentation/devicetree/bindings/display/msm/mdss-common.yaml index ccd7d6417523..84ed2757ded5 100644 --- a/Documentation/devicetree/bindings/display/msm/mdss-common.yaml +++ b/Documentation/devicetree/bindings/display/msm/mdss-common.yaml @@ -77,6 +77,12 @@ properties: items: - description: MDSS_CORE reset + memory-region: + maxItems: 1 + description: + Phandle to a node describing a reserved framebuffer memory region. + For example, the splash memory region set up by the bootloader. + required: - reg - reg-names From patchwork Thu Jul 13 16:52:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Pundir X-Patchwork-Id: 120054 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp1965754vqm; Thu, 13 Jul 2023 10:09:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlHcupluwnnKZLapD512G56huMxXyeG7KtE0u8Oz71mUV2EcF+vaG4MeqkLD3B9kMPKkkE6Z X-Received: by 2002:a2e:9a8a:0:b0:2b6:9f5d:e758 with SMTP id p10-20020a2e9a8a000000b002b69f5de758mr2379256lji.9.1689268183813; Thu, 13 Jul 2023 10:09:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689268183; cv=none; d=google.com; s=arc-20160816; b=gHkRvUzdU6GFhoCoSCo2Z8aMnThC9i7SnOBxPmIZ/WfZMxuF6fjGL07/je8GBGFDxY /a1cCJ3CIG3CdFqCUTF40dX5bPu+6V0Th1vLi0WXSIcktkZzQ4pIrJb6J+dy9eBzfHU6 r2uryG0LUrOjM0V+cjT00BOWGo7oOWRE3RrqYnkhsgIsmRTe2zIJng1OwgkIIKJDidaP A4LWhnNoxHylvgr2i0KRoiXs1oOx+QQ4dR7O0gNhVZrGWK9LqZA2SQsI5gdJcf2VhT/3 DiIXDkvK+jCHPY78XTHPxSeUMgvbg/hZz+G8VDMTWKvwNwRAdb7HJrBBnTBwuO/qgiBC Za7w== 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=dcIGYFaQfGqSRzz1TR43A9wAS36o64Mm47YNW9KhJGo=; fh=bUGzLlUT6AJNEZrTvniK2uKszsewdBL+00C8IeKdOoA=; b=SMUuM4W+wIe+uiK/ZlgeSMNcNdY50EwDU7tcKwOFj74qs8Rhs3ddC58nHs/kaYImYR JIQzE0Lr5mSM0YaWktuaMIScDiHeJFLGWqr+zuR0pl70NKV4iNLhx/7MUxEFyWM/aDnq nMaIQBEsu9uV1fiQ8Ihoz/tkYFnXr+bAxuhOcBZHVtUyaCryGO/zJGXnuac4vF0yBMzP cvo1GZ+06FheCBhzmx68cCgxaeRrzqHrPIpgJtdaXQTJhzrcu8qUNxSEoZ89gWlN7KZk o+cQ9Wt6UrnbQ0CVii+xYCIspQfeoFQ+zuDlLc0armekTB1m83rGaKVq/g3WwGffwl34 Q9bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rNKbM43I; 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 by16-20020a170906a2d000b00992ca771e71si6925510ejb.138.2023.07.13.10.09.11; Thu, 13 Jul 2023 10:09:43 -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=rNKbM43I; 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 S235361AbjGMQxD (ORCPT + 99 others); Thu, 13 Jul 2023 12:53:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235416AbjGMQw6 (ORCPT ); Thu, 13 Jul 2023 12:52:58 -0400 Received: from mail-il1-x12e.google.com (mail-il1-x12e.google.com [IPv6:2607:f8b0:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C29321FC0 for ; Thu, 13 Jul 2023 09:52:54 -0700 (PDT) Received: by mail-il1-x12e.google.com with SMTP id e9e14a558f8ab-3463de183b0so3911965ab.2 for ; Thu, 13 Jul 2023 09:52:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689267174; x=1691859174; 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=dcIGYFaQfGqSRzz1TR43A9wAS36o64Mm47YNW9KhJGo=; b=rNKbM43IVbuLmaY5vpRk95N0ouqDf122oy6vp3z+XqzqJdSqzEJE49uA/+LAlaTvzC va80pws1oE2LFizrEocPk3POxluC+DsEHwwhMXkn9kZxztlmon0JerXhq+Rv985t9dfJ izZengGZk7DseJjSpHjHc9HrswDXf08dRy2VywcwJF8q6Qj2EP66+D0f8kQxk+lCznmY Kon7SzME/qoenAAUA7B2HPEHQj2HTWWhYlvOOD1kqMp2ld4hf+6qAnnpwzEdHgCNCd1Z Vr0lmId459CUK8susiATSTB9UXoPJ9XogCq9WhynQ50c7Z23C+gEFoBJiGw+x6n8hdHk yXHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689267174; x=1691859174; 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=dcIGYFaQfGqSRzz1TR43A9wAS36o64Mm47YNW9KhJGo=; b=RAoTCuQwq6ObVhspc9qpHLHiO1KgB5MgfZpZs6zCtyL2EQz1uooIjvWgw3GD3qJRYQ KcD/4c7kPcPRvmCEKki7SqGu+TBhNSujcbWXoibST/ZZfz9eyIU9A0j7zFhv1R4rWk1c ttiHgZDjOdxYM5hvsu8F+BSLt3x2U47mLnFxAbUzDWU4h/lxGzr0R8vr4WX4RKE81ZJh YC73Y9buL3ZVTBRdL38lysC5F+w4SacKV+v2Id/Ommo6EaiuFYtgpNWbY37wkP4Wme4H 1rlgnhtDuP9jDaOLpyIZIQ241cqK6zpUeJH5fx4ahb04MgrwQRYMr9+uWsNLqPAVqNk2 VqrA== X-Gm-Message-State: ABy/qLYNeu8oNSDU6kLYPcn+snMZqaLaEn2JRZU2xc+dsQlFbdwmojJE kl/OMshuD4EeSpxeazvZZ4PLdA== X-Received: by 2002:a92:c6c7:0:b0:346:5813:f7f5 with SMTP id v7-20020a92c6c7000000b003465813f7f5mr2120484ilm.12.1689267174022; Thu, 13 Jul 2023 09:52:54 -0700 (PDT) Received: from x-wing.lan ([49.207.50.231]) by smtp.gmail.com with ESMTPSA id d3-20020a17090abf8300b002633fa95ac2sm12009150pjs.13.2023.07.13.09.52.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jul 2023 09:52:53 -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 v5 2/2] arm64: dts: qcom: sdm845-db845c: Mark cont splash memory region as reserved Date: Thu, 13 Jul 2023 22:22:38 +0530 Message-Id: <20230713165238.2814849-2-amit.pundir@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230713165238.2814849-1-amit.pundir@linaro.org> References: <20230713165238.2814849-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_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: 1771326074991982789 X-GMAIL-MSGID: 1771326074991982789 Adding a reserved memory region for the framebuffer memory (the splash memory region set up by the bootloader). Signed-off-by: Amit Pundir Reviewed-by: Caleb Connolly --- v5: Re-sending with updated dt-bindings patch in mdss-common schema. 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"; };