Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp270950imn; Thu, 4 Aug 2022 05:28:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR51Qhh2oG7F75vAQ5PSTMS/loXXcJ2AKVxpigAHB+HgGiJILkgYbIW7NYZABLbK1qXEBKs2 X-Received: by 2002:a63:1361:0:b0:41a:861c:f870 with SMTP id 33-20020a631361000000b0041a861cf870mr1443617pgt.463.1659616138252; Thu, 04 Aug 2022 05:28:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659616138; cv=none; d=google.com; s=arc-20160816; b=VKp2oEcz9U0THsRbdnGXQjlZ9H9Pe/xPfdeKVqBAsAigpm14EjhsMKJUm1wWjzd6oG 3QzIQwWwCxAwshdEklVbTiUnfnZO2E+1WLHq+mW8VfwQep0H3Hdua195YTTDMwMgOfL9 AaIZhTyeL2B4E+2JQrGeNfX/Sw5nVOQlTm1MKY4P310mmC33i1LULyGJrmXPBddwEToh 8Ya9vO4S5peKfHNVAXiT36PvwgRMmbrO+tUBkWPeBY3GjEZn6c3aY3H58H+GBoE/c0jn wNHHKdYBunwQoeTC+fhaAJPHAAOGLD6kXRQY+tC34HL8CYBtWRcan89KOEzMk2ayBNFo MeEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=jSPm0DHeY8SKZeRpVKL5I803Vfkof5kWJmeBgU5n5aQ=; b=D3S89R+saHIufgakT9LmjCkJTJr4sVK9goGwzUK5M9v73Z9usYym//0Vyv/gX2aLiL xEnnaI4hySBtvhHshcT992IrP5+hJ+4blBRMyjArkcwYavyRLQtTQa4PVihXtQrNU98L 4Ovn0ivak26gaIycbxfvGTYSrdJo5MPhZJpFvArn4oMTa1QXC+4rorQnmHmlqIpwy3pa Al4bxj4aDqgtcigisEGQsocl4ukKWXG2lpIkUTmHI3C5yO/+5AyKLlWbLon7ZxmyNLfn 5ZLPUt/n+sNpJiB19wAF3FLxlkx+trrSF31XOkImBilFnuIquzZuFG7f2RU4xw35jT9S dvQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@raspberrypi.com header.s=google header.b=HRe87RuK; 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=raspberrypi.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k29-20020a634b5d000000b0041212cc5c78si1189665pgl.385.2022.08.04.05.28.44; Thu, 04 Aug 2022 05:28:58 -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=@raspberrypi.com header.s=google header.b=HRe87RuK; 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=raspberrypi.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238382AbiHDMDd (ORCPT + 99 others); Thu, 4 Aug 2022 08:03:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233792AbiHDMDb (ORCPT ); Thu, 4 Aug 2022 08:03:31 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E036C459BB for ; Thu, 4 Aug 2022 05:03:29 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id kb8so21884898ejc.4 for ; Thu, 04 Aug 2022 05:03:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=jSPm0DHeY8SKZeRpVKL5I803Vfkof5kWJmeBgU5n5aQ=; b=HRe87RuKA2aMNt0BUkwVjsmRkP+vcor3jKfM/10zOmoFQ5AYDVEIwVShBVAMqjROdv Kqz0BYYQtvJ/MACbb+RA3HFGSEE6+H7kLrA12J3zrRUw+fz8XQMXJMDbjZVCy7eJuGTF Sd06MYy4ktBVgror3Ceaes2yFbkRQl/cZHb0wxqG3+E/oYrAyZPqqsppepmYc7fLrafo zAIrgCb0nYlGcjIbyS70S40zBcUVw/9MDq2Jn0mhim5Ly8U7BBT/tl+az+i53WrU9a26 pvRUlrYHwWIcPPIngak6CkEXwte/AktBZrv1MFqvfcsCxAeqRgWzrKvs0g0GItOznj6K Oz8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=jSPm0DHeY8SKZeRpVKL5I803Vfkof5kWJmeBgU5n5aQ=; b=LH29qW85c4ZCAPoiNCYLAeAVE8iATGUgeDnL+atiD7lhFbV9FsoRTIcfD1cN0Emyme Pb2ixb8E69dV2OYn7AevaMlgsWsA1H6CZMEvtv7/BawjkDOPwACCPV4D2y3oGddwzGq5 B6P+VgHyx4Kn3uNgL1tvwnS1hYeT/JnRcJmJf7pQKo//NgkENr6I41LshcghhJstfXe8 Yt9d3cPsrDHPLygsCa7rOGxbGo93xCtFSQZfjMCc/2xjNMigvZWwecvX3Nv87nyNIRAD PirOCXLzGtm+Cd4aqkRTnct0sMmLeOuH6zUsWUFLx1xshpyJpDtZQDAB37GPVYdgkqIt Qv/Q== X-Gm-Message-State: ACgBeo1ABf20D1VhiyiR81/8W0HQFkmQG/be+PlL2vio3HY7XSDnxrva XRUG5qLIReCtVrbgWnwh935Wq2eUYxnbxeZBZ9LPYw== X-Received: by 2002:a17:907:d92:b0:72e:e94d:b675 with SMTP id go18-20020a1709070d9200b0072ee94db675mr1141263ejc.742.1659614608368; Thu, 04 Aug 2022 05:03:28 -0700 (PDT) MIME-Version: 1.0 References: <20220802080820.jyf3tfpgcj3pvbtp@pengutronix.de> <20220803062024.vn7awasmifkp5xow@pengutronix.de> <20220804102757.pc7hljonea43ytwg@pengutronix.de> In-Reply-To: <20220804102757.pc7hljonea43ytwg@pengutronix.de> From: Dave Stevenson Date: Thu, 4 Aug 2022 13:03:12 +0100 Message-ID: Subject: Re: imx8mm lcdif->dsi->adv7535 no video, no errors To: Marco Felsch Cc: Adam Ford , Neil Armstrong , David Airlie , dri-devel , Laurent Pinchart , Andrzej Hajda , Marek Szyprowski , Marek Vasut , Jernej Skrabec , Jagan Teki , robert.chiras@nxp.com, laurentiu.palcu@nxp.com, NXP Linux Team , Jonas Karlman , Sascha Hauer , arm-soc , Linux Kernel Mailing List , Robert Foss , Pengutronix Kernel Team , Shawn Guo Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 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 Hi Marco On Thu, 4 Aug 2022 at 11:28, Marco Felsch wrote: > > On 22-08-03, Dave Stevenson wrote: > > On Wed, 3 Aug 2022 at 13:31, Adam Ford wrote: > > ... > > > > Mine also states the DSI source needs to provide correct video timing > > > with start and stop sync packets. > > > > > > If I remember correctly, it seemed like Marek V wanted the hard coded > > > samsung,burst-clock-frequency to go away so the clock frequency could > > > be set dynamically. > > > > I've never worked with Exynos or imx8, but my view would be that > > samsung,burst-clock-frequency should only be used if > > MIPI_DSI_MODE_VIDEO_BURST is set in the mode_flags (it isn't for > > adv7533/5). > > Some notes on that. The samsung,burst-clock-frequency is the > hs-bit-clock-rate which is twice the dsi-clock-rate. This has nothing to > do with the MIPI_DSI_MODE_VIDEO_BURST. > > > Without that flag the DSI link frequency should be running at the rate > > defined by the mode clock, number of lanes, bpp, etc. > > IMHO the DSI link have only to guarantee the bandwidth is sufficient for > the mode. DSI spec 8.11.3 Non-Burst Mode with Sync Events "This mode is a simplification of the format described in Section 8.11.2 (Non-Burst Mode with Sync Pulses) ... Pixels are transmitted at the same rate as they would in a corresponding parallel display interface such as DPI-2." If you are running the DSI clock at anything other than that rate, then AIUI you are in a burst mode (although you may choose not to drop into LP mode). (One of my pet peeves that there is no documentation as to exactly what MIPI_DSI_MODE_VIDEO_BURST is meant to mean. Seeing as in the DSI spec all modes of 8.11 say that the host can drop to LP during blanking if time allows, it surely has to be the time compression element of 8.11.4 Burst Mode). > > From the DSI spec (v 1.1 section 8.11.1): > > "Non-Burst Mode with Sync Pulses =E2=80=93 enables the peripheral to > > accurately reconstruct original video timing, including sync pulse > > widths." > > "RGB pixel packets are time-compressed, leaving more time during a > > scan line for LP mode (saving power) or for multiplexing other > > transmissions onto the DSI link." > > How can the peripheral reconstruct the video timing off a quirky link f= requency? > > If the ADV couldn't reconstruct the sync signals, then we should not get > any mode working but we get the 1080P mode working. > > > Unless the Exynos DSIM_CONFIG_REG register bit DSIM_BURST_MODE [1] > > reconfigures the clock setup of the DSI block, then I don't see how > > the Exynos driver can follow the DSI spec in that regard. > > Why do you think that the Exynos driver isn't following the spec? We > configure the host into video mode with sync signals which is working > for the 1080P mode. 1080p is working with samsung,burst-clock-frequency setting? As I say, I've not worked with this IP, I'm only looking at it from the outside having spent far too much time recently on the Pi DSI interface. exynos_drm_dsi.c seems to be doing a lot of PLL computation around burst-clock-frequency, and nothing with the pixel clock rate. Without knowledge of what that DSIM_BURST_MODE bit in DSIM_CONFIG_REG actually does in the hardware, I can only make guesses. Perhaps it does ditch the burst clock and switch the bit clock to be derived from the pixel clock of the upstream block, but that seems unlikely. Dave