From patchwork Wed Jul 26 13:27:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Pundir X-Patchwork-Id: 126389 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp427668vqo; Wed, 26 Jul 2023 07:07:06 -0700 (PDT) X-Google-Smtp-Source: APBJJlHA6HjrJfYyUq+PA1PbUAWpiYvhjpItCLn5cuNPytcZcFJgiMFQ9a+B0hLC4uWkM5KpQrgO X-Received: by 2002:a17:902:7292:b0:1bb:c87d:7573 with SMTP id d18-20020a170902729200b001bbc87d7573mr1652233pll.46.1690380426107; Wed, 26 Jul 2023 07:07:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690380426; cv=none; d=google.com; s=arc-20160816; b=WgRUhKxeI525a/MHPEVtKdioQ5vfP/F6ImcfEebLb493FA4r732G7uKqEbx/TYBjxC y2MFwNvSVwhlCckfIYqIxN460LYHkBBQQzl86NWRNwzL/2AIurikz2UeOnelmLPE6t+2 bXtBlAU3X1Q3V5RRC1VpmFQf4hjyCrOfvZ6VEnnldGC5xAHBoVqZYkvtydXmK08wX29s bJR/ZgGPyypXb/U8xmY1qXB8zcgQznMpp9dbx8I+gwLzv6R+cYqOuhptcj3Gx0YsFlhe YBPE58iMpdIgulW0bwEgrGuTA40uZg6qXzERkN486Empww/RelpPVizE50zJA597BWYb sYlw== 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=8lxc77XWTDPTeWKbOVls7trvqC1maeRESKQ7JlGBAVk=; fh=YUdL/uNet7f19sY1HDM4cB7acNU6ovPOEqvi0qDKjKM=; b=Ip1FJ95fL/JcejtxjD1O9YkvTwBiY6vdCTBYOTkguJ9O8hw6I7LBZ0VBTm4aYxCvJy R78Obs1AbyVeQh/WH//k2NpUf9V/T5X93gQ7XbzqEo8iNsZZL3b6aFFmps70o+yubfOa 83nNR+YTuZVuGblxJGsbB+O8NtcWm1bH5+3BPq57ptXU6eK/Rqi4mL/f7tL/6zbG1EXI a8mgzGTk1z6LrpajqgyjktiRLy3dv32ouUYMMB9bNWgIXC8sT/8Kzy0cQedK5G3bBK+n Ngbs9z9c75CKWYtaooXT9zGsHUtPRvsKOrVKP0Ih4kzWZkN2yUv3917JvvfHDlEdQCEA VK2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="tzlf/K6l"; 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 t14-20020a17090340ce00b001aaed82c2afsi12949359pld.171.2023.07.26.07.06.51; Wed, 26 Jul 2023 07:07:06 -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="tzlf/K6l"; 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 S232682AbjGZN1d (ORCPT + 99 others); Wed, 26 Jul 2023 09:27:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231357AbjGZN1c (ORCPT ); Wed, 26 Jul 2023 09:27:32 -0400 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1969FE2 for ; Wed, 26 Jul 2023 06:27:28 -0700 (PDT) Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-686d8c8fc65so442755b3a.0 for ; Wed, 26 Jul 2023 06:27:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690378047; x=1690982847; h=content-transfer-encoding:author:mime-version:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=8lxc77XWTDPTeWKbOVls7trvqC1maeRESKQ7JlGBAVk=; b=tzlf/K6lA2nbzCK73P1REKEDFjco9nWhyDMS8OpMrVB0n5mWFKtD++dNg2lByeu7m0 d/zJYAKzFrMg3vWf5aU7sOnjhvN5QHBX0y7FQ9UYQgnKfr9xuvMsFHiYG2QDmHD7k+8q wvw/MD+Gf1t21AqrcccEsCI6otUTJ+XKxBvHL62rhWbUpKt55bqx0UCVcaZlogJ81HYp Tlhm31L8wPRXG3h53U/ofo4BB5wXwgYOqIGcj+szBaXFhZSG9s6mA/xAfsKweCycf+hG V4WdnEeL5ZPUsyVYERCtTl0/y3YymEbtIwL0xCguLZsY5qIrXdFrHUa1iF3dlgHOdJRZ vCwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690378047; x=1690982847; 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=8lxc77XWTDPTeWKbOVls7trvqC1maeRESKQ7JlGBAVk=; b=iIujL7abBGdVAsUAekAgCDnaB/iqdLjjWVA6rC7H8t3DHoP7KIs4w8WkSKKf5saAqS ZxMmLoC6gwM1/9Badc28JG8mnjy/M/esJ9Q6EHjcIezuqzrss7XeW5a84MOhufqBxfEU HeNns3U7h6jtuzqEniXZR57uyqKjC/eekvNsMbC2QMe98+0qPHFzBX9d0Q1i8hdYLQyA x1mjbq3vgehHQWqmzzhD0Qr2qftgBWA3b4u0KyQAnNUOkoDL7F3XeLkNtiwSZcVHh3Ag lgDyNGnpSQU+D9NlPaQwBrQOYLgwBsZqG5s0QWubdCI0P00In+ezQT1fB5s0O3deXV9N TuGA== X-Gm-Message-State: ABy/qLZyJ6iQlI4zI08Ek8MqJHdBeJLeuKrwQ6XJ/Tjun8nvLz5Gykg5 GRUIW/X1pIdhwXUBUOYng/jB5Q== X-Received: by 2002:a05:6a00:2d09:b0:667:e17e:85c1 with SMTP id fa9-20020a056a002d0900b00667e17e85c1mr2058353pfb.1.1690378047425; Wed, 26 Jul 2023 06:27:27 -0700 (PDT) Received: from x-wing.lan ([49.207.50.231]) by smtp.gmail.com with ESMTPSA id x52-20020a056a000bf400b00682ba300cd1sm11485918pfu.29.2023.07.26.06.27.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jul 2023 06:27:26 -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 , Krzysztof Kozlowski , Rob Herring Subject: [PATCH v6 1/2] dt-bindings: display/msm: mdss-common: add memory-region property Date: Wed, 26 Jul 2023 18:57:18 +0530 Message-Id: <20230726132719.2117369-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_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: 1772492345757152762 X-GMAIL-MSGID: 1772492345757152762 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. Acked-by: Krzysztof Kozlowski Reviewed-by: Rob Herring Signed-off-by: Amit Pundir --- v6: Re-sending with review and ack tags. Ideally this dt-binding patch should be marked for stable as well, like the follow-up sdm845-db845c.dts patch in the series but it can't be cherry picked cleanly on older LTS versions. I can do it separately if it is required. 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 Wed Jul 26 13:27:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Pundir X-Patchwork-Id: 126386 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp417691vqo; Wed, 26 Jul 2023 06:53:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlEJLQepd6Wj1X7tZgMFZnX349tZfjnY8mW99xvIxAws8Z6TAEHcID52tP0wmJWRLtlyNjs6 X-Received: by 2002:aa7:c0d7:0:b0:51d:8aaf:5adc with SMTP id j23-20020aa7c0d7000000b0051d8aaf5adcmr1569481edp.14.1690379588326; Wed, 26 Jul 2023 06:53:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690379588; cv=none; d=google.com; s=arc-20160816; b=SJFEArL2Uweq6BQ3uI0ZjMNzdfEPxMBaJMa6rPiYIC4hlMOqfacwB/GOTYbX0fCygC d0OBtzIojweZApe4PBdlY/vFKm1+odnoLghg7aCmGlLUJB7abzD5+Mq/yzZak0c9VYDz XX+ijqmjnrXF8Ur4h5xFtg0bELtj7qc5+OukOi6QZ/9sL5eOA84z0fqVxM0tKmuOHpWv L0g733XdeEwWOytRV3dcbbpu5zCcW1aNGf3VsmPgRRlBAgy8NOj8nhDLB//601J7quqT uy3dUN69s2dH1VnzABnfkVmEsRZ7qJL2lsxmyXQbtzwUz3nNl2z8AD1KjQKqRZmGcFNt Kivg== 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=89pDHiQuuTGBrFn4u+2m7Al4Ng6hp0tFQ+lBB6CO7z8=; fh=JZ6nq2wVhqWaZYlrm9NMDK/i74oy6dbDlTVxZVndisY=; b=Ds4p8b2rrMll9ih2H7A3olj+AvpbqCk5BUlkK0A3EPTlNPTKhbe6LMk6tNLZZ4CK4T 4pPaEwcNIVOtCtAeu+bmS/o4A2EtE0So4eybAzetG1VnZCaz4e2VMfzYFn9O21OrkY0G S+Kjb4sWzWgH6L+YQeRqRHfBdC8QnC5NlfIjc0a1nXRyRML9MbYboPQX5f/8HcT53Zc4 BtB4erXl39cHCr/XkG9W5ep1+Mh+fhAWqLZJHp38o/0/r2pCRTWMvpO/+AvbjWJsSXBX ET4pN+JOKCiEzr9Y/2kxtk55800ZwwqGMaavySraEAJTCBlTLtbjCeHpvzIXRQfkjPYY xH2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QzQQ58we; 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 c24-20020a056402121800b0051df8ee23f5si9454811edw.175.2023.07.26.06.52.43; Wed, 26 Jul 2023 06:53:08 -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=QzQQ58we; 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 S234163AbjGZN1h (ORCPT + 99 others); Wed, 26 Jul 2023 09:27:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231357AbjGZN1f (ORCPT ); Wed, 26 Jul 2023 09:27:35 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9BA7E73 for ; Wed, 26 Jul 2023 06:27:33 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-686d8c8fc65so442853b3a.0 for ; Wed, 26 Jul 2023 06:27:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690378053; x=1690982853; 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=89pDHiQuuTGBrFn4u+2m7Al4Ng6hp0tFQ+lBB6CO7z8=; b=QzQQ58weFbx13ZPAeX9zmEbDZELDz9db2Ffpc0ES48wh1SJYJGC4Z2mdgS9QFKcYfO EabPeQPjzH93WOaUBhAtkLfpQ3qbdX/+1G87al+3Q5xmyFbaDRV3hVxCGMYSpyUMdfdk SyWTu/4g62HL7jgUwfP6IzAYd+1kBjxQ2ZBj0cyjtR3MfioY1dvqcN0S42qhUi891/mp iNhSgV2sGLEGsDaTfPYotDDu1U5WpavGIR/hLewOnsoO71VMS07S1voZF0xDbMO39Oq3 nK5sdySJ+brI4wBWZEfQpyLbixODkMRrttYeWAE6L/LQ4i9Y9DVlzorkIcr8BVHwDaa4 Zqbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690378053; x=1690982853; 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=89pDHiQuuTGBrFn4u+2m7Al4Ng6hp0tFQ+lBB6CO7z8=; b=APFSLTRqIc+77Ct6XQGHWL1KS7KYO0AtjD8ngKsoxqNnaVEDLtUuZek0PnhtbnjjNk fNu9q9OCfmtqO5WuJGBl6VnE7CVvzUYSO2WHrYhiI6B35l2Q4gCogrqxkok8hlENLmJS oRgmAMjs+eS5zQs3DDjiYC+A2kUQPMJKP0yKdfrnOEhSoKgAV7X2v6hs+IpR5zDWYdb/ UmSYavQvI7gbOSjgUR+01a12+zb/29IMWpEwtp1qHmEPS6MXHTon23jSk9/DqrjbNR+a +x1Pg05UPIjm3SWvEF9M59K3jDsMaUt1W3DMooqzQ2SAAOyUY4GfmPoWbIrmbQKsSgVa bIHg== X-Gm-Message-State: ABy/qLZWqjAlkmk3C071dbVUQH3QcsVDdItd3wEFWSHhB8S1hMIBNG6a rWrQAA67VGPLEJpzIX8J2aYxuA== X-Received: by 2002:a05:6a00:194c:b0:686:dff6:50f with SMTP id s12-20020a056a00194c00b00686dff6050fmr944702pfk.8.1690378053122; Wed, 26 Jul 2023 06:27:33 -0700 (PDT) Received: from x-wing.lan ([49.207.50.231]) by smtp.gmail.com with ESMTPSA id x52-20020a056a000bf400b00682ba300cd1sm11485918pfu.29.2023.07.26.06.27.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jul 2023 06:27:32 -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 , stable@vger.kernel.org Subject: [PATCH v6 2/2] arm64: dts: qcom: sdm845-db845c: Mark cont splash memory region as reserved Date: Wed, 26 Jul 2023 18:57:19 +0530 Message-Id: <20230726132719.2117369-2-amit.pundir@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230726132719.2117369-1-amit.pundir@linaro.org> References: <20230726132719.2117369-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,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: INBOX X-GMAIL-THRID: 1772491467350021632 X-GMAIL-MSGID: 1772491467350021632 Adding a reserved memory region for the framebuffer memory (the splash memory region set up by the bootloader). It fixes a kernel panic (arm-smmu: Unhandled context fault at this particular memory region) reported on DB845c running v5.10.y. Cc: stable@vger.kernel.org # v5.10+ Reviewed-by: Caleb Connolly Signed-off-by: Amit Pundir Acked-by: Krzysztof Kozlowski --- v6: Collected review tag, updated commit message for the context and marked for stable kernel versions. 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"; };