Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2694149rwd; Wed, 14 Jun 2023 06:21:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7E1lDmQZRuy2SAYORwhIYqZX/vvPFgQyDEzDnbmOLD8UHAs29AHdFVnHR3UqwlHeWuBAJn X-Received: by 2002:a17:907:972a:b0:982:781e:ba13 with SMTP id jg42-20020a170907972a00b00982781eba13mr1818069ejc.39.1686748894893; Wed, 14 Jun 2023 06:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686748894; cv=none; d=google.com; s=arc-20160816; b=oo5Bk5T7xORbM0ZPKb++EFK7hFIwBAJicC0VOwiJjFAkBtWSgIU7YjYptsArB2Z7xw 9WU7EZDYNo/mb3YkoeRP+nh/kffEU1FHOQDOFCLYYHJTPpkPvHPDeQncjIvg58953QDq FOswwMtZedTgptP0P1VM/e/Pxm/nn5OKDvl6aMOYQP4Gmel/aiY0wjeBXTEnaMpLQKTg SNsKp9b8p3LV0wjxV49KgB4IYxu/axRHGH2t8Qi0/I3RxJsEfHObXpEOtrKQ0rNKSMID y17Hj1kcb0eZnHCAD67iLHDUetj3MNh0l0op/ysGiSOxJOEVmMHfJXJ8yT7vYT1VTr73 /DEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=pCgSA/qXFWjD/Wzj+3OuRcGAwHlHfbXANlGOIjJV0zU=; b=DlLc+KrZbkC4uKlniqAuQ8pTDOiJg7DsW3hitnXRCQ0rwxlhy4oKMBmhsGzeh/irhk N3O2bGbFHHhanhXE73p02maTXh+4QY1N8RQSePNTtpVN/dpAGZTXiKYUU4nkyXQo5tak Wx1fZA6rX8AgTMfTfDQJg1QO/IcCHDoJmI5d6G+c43QpvdrxKG7q28wHpJc2hYV28wBA R8X5COetvRSzgrF4h2bqKv/qmDC/fYEgHuSQ6lSK1IHTfWOoEwhavOkp3TvXUQn0cAxY OIRlp3J7/0x7ZGFoLNVoizms1FjaekLD5T1GGSYBaFh3NgltRSNdQniDOKgGskvANXKH dJqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=moJB43tm; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v21-20020a17090690d500b0097104bfa401si7562229ejw.160.2023.06.14.06.21.09; Wed, 14 Jun 2023 06:21:34 -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=@collabora.com header.s=mail header.b=moJB43tm; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244795AbjFNNOP (ORCPT + 99 others); Wed, 14 Jun 2023 09:14:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240303AbjFNNOM (ORCPT ); Wed, 14 Jun 2023 09:14:12 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AC22269A; Wed, 14 Jun 2023 06:13:50 -0700 (PDT) Received: from [IPV6:2001:b07:2ed:14ed:c5f8:7372:f042:90a2] (unknown [IPv6:2001:b07:2ed:14ed:c5f8:7372:f042:90a2]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id BF9966606F20; Wed, 14 Jun 2023 14:13:47 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1686748428; bh=K4WTi0JZ7NzreJtn6e/6oeiwkA8ObHQNkqYaWXGPEjc=; h=Date:Subject:To:References:From:In-Reply-To:From; b=moJB43tmRR3Wb0jBxt3y3HdKfsoko9VHoMjH60aEQvKudl12WyStjZImqLkSqXX36 Kucm92qM5YMyKkS+JCQWgZuqLLM1kMw+mLwhWjFC5F59O0nsSNLudU4jkdtWMeBojj 2sU91HWKD9B3oVkm1weJOVKwt+nk9IvfN+nLzKrutyCZan3cGkFwxCkf31aKRwGMCL 0SDZcyq33ssyOrywTKM8LRT1XMloROjmM3G4nCL301Y/V9V2KdmnEZ0wYF/aaJbLcM cM0gFX90gzQVJzFh44XbnV9xSxkp3SiE8IxD2Lw3Km/hBB+DpaaDK7zAPH97WnnpRs WDOx5dAy2H5WQ== Message-ID: <057386c7-a7cf-14cb-d564-1b30e79806f6@collabora.com> Date: Wed, 14 Jun 2023 15:13:44 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH v2] arm64: dts: qcom: sm8250-edo: Panel framebuffer is 2.5k instead of 4k Content-Language: en-US To: Konrad Dybcio , Marijn Suijten , phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Martin Botka , Jami Kettunen , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230606211418.587676-1-marijn.suijten@somainline.org> <974f68dc-b667-c9a7-94c4-1023ef271fab@linaro.org> <8d91dfc0-f6c0-813f-de9c-1befdd0ccfdf@linaro.org> From: AngeloGioacchino Del Regno In-Reply-To: <8d91dfc0-f6c0-813f-de9c-1befdd0ccfdf@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 Il 14/06/23 14:43, Konrad Dybcio ha scritto: > On 14.06.2023 14:40, Marijn Suijten wrote: >> On 2023-06-07 09:15:08, AngeloGioacchino Del Regno wrote: >>> Il 07/06/23 00:52, Konrad Dybcio ha scritto: >>>> >>>> >>>> On 6.06.2023 23:14, Marijn Suijten wrote: >>>>> The framebuffer configuration for edo pdx203, written in edo dtsi (which >>>>> is overwritten in pdx206 dts for its smaller panel) has to use a >>>>> 1096x2560 configuration as this is what the panel (and framebuffer area) >>>>> has been initialized to. Downstream userspace also has access to (and >>>>> uses) this 2.5k mode by default, and only switches the panel to 4k when >>>>> requested. >>>>> >>>>> This is similar to commit be8de06dc397 ("arm64: dts: qcom: >>>>> sm8150-kumano: Panel framebuffer is 2.5k instead of 4k") which fixed the >>>>> same for the previous generation Sony platform. >>>>> >>>>> Fixes: 69cdb97ef652 ("arm64: dts: qcom: sm8250: Add support for SONY Xperia 1 II / 5 II (Edo platform)") >>>>> Signed-off-by: Marijn Suijten >>>>> --- >>>> And so I derped again. >>>> >>>> Reviewed-by: Konrad Dybcio >>> >>> I would've liked more to see a commit saying "replace simple-framebuffer with xxxx" >>> (where xxxx is DSI panel, etc) but that will as well do for now... :-) >> >> Fwiw we could keep it around as MDSS "gracefully" takes over when it >> probes a little bit later with fbcon over DRM/KMS, and it sometimes >> helps reading what is up when something fails before or during MDSS >> probe. > I believe we should do this. Perhaps even add some early code to drm/msm > that'd read out the address (and other configuration) from the mdp hw and > set it up automagically. > As far as I remember, some bootloaders are reading devicetrees to setup the display at boot with "continuous splash", that's why I would be for *replacing* the simple framebuffer with the mdss-dsi. Adding early code to drm/msm to read out the address and check the state of the HW before pushing an early framebuffer would be a definitive solution for that corner case. Good call, Konrad. Cheers, Angelo > Konrad >> >> - Marijn >> >>> Reviewed-by: AngeloGioacchino Del Regno >>> >>>> >>>> Konrad >>>>> >>>>> Changes since v2: >>>>> - Rename griffin (copy-paste from related patch) to pdx203 in comment. >>>>> >>>>> arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo.dtsi | 7 ++++--- >>>>> 1 file changed, 4 insertions(+), 3 deletions(-) >>>>> >>>>> diff --git a/arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo.dtsi b/arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo.dtsi >>>>> index 3d22be747f042..8f867f841cb83 100644 >>>>> --- a/arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo.dtsi >>>>> +++ b/arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo.dtsi >>>>> @@ -54,9 +54,10 @@ chosen { >>>>> framebuffer: framebuffer@9c000000 { >>>>> compatible = "simple-framebuffer"; >>>>> reg = <0 0x9c000000 0 0x2300000>; >>>>> - width = <1644>; >>>>> - height = <3840>; >>>>> - stride = <(1644 * 4)>; >>>>> + /* pdx203 BL initializes in 2.5k mode, not 4k */ >>>>> + width = <1096>; >>>>> + height = <2560>; >>>>> + stride = <(1096 * 4)>; >>>>> format = "a8r8g8b8"; >>>>> }; >>>>> }; >>>