Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2152549rwr; Fri, 28 Apr 2023 06:54:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7w/OnsnOzM74ICrsFKx6axxtZ3TGMhos5poWUhoMhCTg5soDdtyJJNPDaPQnNhrmKv0vl8 X-Received: by 2002:a17:902:d542:b0:1a5:2b7b:57e8 with SMTP id z2-20020a170902d54200b001a52b7b57e8mr5063009plf.26.1682690060179; Fri, 28 Apr 2023 06:54:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682690060; cv=none; d=google.com; s=arc-20160816; b=OILUVMEThM86n6AF40WoGLufRGKcSZFvC3Tfzd2GwlvwSqSrz9hQA2MQU5BR9Mw4O4 AsryWcOyJIMlv28BS8GrK2bO5jQXzkNeyOQVoSg1JGI41/h1s6ZIvQHqobM9DFR0WOO+ xhsaXMlCnUVD+HhzxRB3DyAIuhFyG/QDDigZ/9NErT2lx73OZYZ6fMYUQs4+KoVcEQVu WRtb+PNaN0LxXbYevHWwEP8AJovPiIktzbrjY5qoyQc3xOcP0hdxQ/fYSQYH+tcWkjbM EqvTtGryIfr4t4mbz1nF+4O7tPztI37M9cxYzKU3pvkzyrYnvNE//XcdTY6+OJKzgHkE ZTqQ== 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=m1dbqce3WPyFBerKsrcuez3UMJUgHZuFp1ltkV3ek/0=; b=lGGmlu5Ivsr6CwJ3ATa0fyOuDpNw70o8UPOXLH1Ol3jST7qc2vz6MFZoips3I2KJgx /k8D2tua1JWvR1B3Xyp127sGMSJ01i2Uu+bgjFEmIx8RoaXFpjhW8wXFTUa67jP+cQvD 3YMh3L6dFlXaMh0Lx6Tww83INaCtMuLwt7mkK3QVtxp8RjMgHSZTIj2lBTAd3VnTC4mA GBlyOZt/KEl3c0t6maO8Eg1e1QNbhKrQRYh/xrPhGw17UsoXob/sc/zncW+/jsKHM5LH EIcU+EMY6pJQ/83QY3hHsWrIU2VDz7WrSV4VqPpf+pcwtW/cK28oRyU7kFsdQjagf9UL vVhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=EfnqdeuE; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jj15-20020a170903048f00b001a6a06397d3si20522075plb.12.2023.04.28.06.54.05; Fri, 28 Apr 2023 06:54:20 -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=@gmail.com header.s=20221208 header.b=EfnqdeuE; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346233AbjD1Nfd (ORCPT + 99 others); Fri, 28 Apr 2023 09:35:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345730AbjD1Nfb (ORCPT ); Fri, 28 Apr 2023 09:35:31 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BC78468C for ; Fri, 28 Apr 2023 06:35:30 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id 98e67ed59e1d1-24736992dd3so6402236a91.1 for ; Fri, 28 Apr 2023 06:35:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682688930; x=1685280930; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=m1dbqce3WPyFBerKsrcuez3UMJUgHZuFp1ltkV3ek/0=; b=EfnqdeuEHJ5PG2BYrdCPUzeXZvxGcVidzsF7t0d6wfdfYXgIXUjjBWfjdo+bIFlVm+ vPS9LwqRCTcgkd8f7iyfapNCGDu+TaLxgFtYK778vdtFSvOcIXC5NmzU3ZAW9vEkuGub Dq2I1AkybP/1vGQRDXfTa5q6d9NsAHrikspOTMlygyq8j5WZW+v0N3fgLfoIiXolp4eT 7Dmes1/Cdolve6jYW/Y7RX2cXyvKkN1WLlH/UJk6uXX2nbJb/cmR9D0GqPBl0a1xIwCo 5hkTcD7lz+gfPkO78f09rxYC2pSnMZCX0RDhihubsa/bIYzX01L7AXyovlePahkv1bID OVVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682688930; x=1685280930; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=m1dbqce3WPyFBerKsrcuez3UMJUgHZuFp1ltkV3ek/0=; b=JMhs4R+PZuiuI5GSbwoczgPtjz+CrmBtWiHKWElCN0FD4hflPqkx6DLSkKNVRgPE/6 gQCunoYQEIM3twUNF7MYvHwXkVB1+VRlnT4yz++AgssPqnmLBaWsVioWfM4bjp2J220E 0jWKfnXy8TI2+lvYkmCoPNyk+wkWJcxddY+qFdSboQyvMF9SqE/SmSDNTzeIwrGo/d3i RZivdHk/LaI97pGPhf09vNkzaUg5T9KGWAXvSLibeS/7XGP5ZWyDeybFkwglhT2n1Kt5 BLL0dn7wSILAoG3F3qpsCg4cod1wrCQKv8LdKxwpfzt/SSH8ZRKanpkuCdIQUleBe33j HtAw== X-Gm-Message-State: AC+VfDy7DyPN4CWgkjBSwpNMxGT6ideytrozOVY/Vmz90li4siUA9LgN uOSOFXtYvzvelsh61c3mYbi0gVvcwR0dh1TfHzI= X-Received: by 2002:a17:90b:8d3:b0:23b:2f4a:57bb with SMTP id ds19-20020a17090b08d300b0023b2f4a57bbmr5505115pjb.10.1682688929776; Fri, 28 Apr 2023 06:35:29 -0700 (PDT) MIME-Version: 1.0 References: <20230423121232.1345909-1-aford173@gmail.com> <20230423121232.1345909-6-aford173@gmail.com> <343f8d25-566f-9d14-64db-4e796cc9e406@samsung.com> In-Reply-To: <343f8d25-566f-9d14-64db-4e796cc9e406@samsung.com> From: Adam Ford Date: Fri, 28 Apr 2023 08:35:18 -0500 Message-ID: Subject: Re: [PATCH V2 5/6] drm: bridge: samsung-dsim: Support non-burst mode To: Marek Szyprowski Cc: dri-devel@lists.freedesktop.org, aford@beaconembedded.com, dario.binacchi@amarulasolutions.com, l.stach@pengutronix.de, Inki Dae , Jagan Teki , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Marek Vasut , Frieder Schrempf , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,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 On Fri, Apr 28, 2023 at 7:31=E2=80=AFAM Marek Szyprowski wrote: > > On 24.04.2023 12:00, Adam Ford wrote: > > On Mon, Apr 24, 2023 at 3:25=E2=80=AFAM Marek Szyprowski > > wrote: > >> On 23.04.2023 14:12, Adam Ford wrote: > >>> The high-speed clock is hard-coded to the burst-clock > >>> frequency specified in the device tree. However, when > >>> using devices like certain bridge chips without burst mode > >>> and varying resolutions and refresh rates, it may be > >>> necessary to set the high-speed clock dynamically based > >>> on the desired pixel clock for the connected device. > >>> > >>> This also removes the need to set a clock speed from > >>> the device tree for non-burst mode operation, since the > >>> pixel clock rate is the rate requested from the attached > >>> device like an HDMI bridge chip. This should have no > >>> impact for people using burst-mode and setting the burst > >>> clock rate is still required for those users. > >>> > >>> Signed-off-by: Adam Ford > >> This one breaks Exynos-5433 based TM2e board with a DSI panel. > > Marek S, > > > > Thank you for testing! I knoiw there are several of us who appreciate > > your testing this since it's hard to know if something broke without > > hardware. Is there any way you can tell me if the flag is set to > > enable MIPI_DSI_MODE_VIDEO_BURST? > > TM2e board uses the DSI panel operated in command mode and handled by > panel-samsung-s6e3ha2.c driver. The MIPI_DSI_MODE_VIDEO_BURST flag is > not set by the driver. However, the MIPI_DSI_CLOCK_NON_CONTINUOUS flags > is set there. I really have no idea if setting VIDEO_BURST would make > sense together with CLOCK_NON_CONTINUOUS or not. Maybe the driver lacks > setting it? > > > > I was trying to be diligent about not breaking your boards, but > > without your boards, it's difficult. The theory was that if > > MIPI_DSI_MODE_VIDEO_BURST is set and there is a burst clock set in the > > device tree, it would use the burst clock. > > > > As a fall-back I could just simply check for the presence of the > > burst_clock_rate instead of both MIPI_DSI_MODE_VIDEO_BURST and > > burst_clock_rate. > > Maybe you should extend your check also for the > MIPI_DSI_CLOCK_NON_CONTINUOUS flag? Does it make sense? Looking at some of the devices that might attach in the future, It appears that ti-sn65dsi86.c sets this flag. It's a display port bridge, so I would expect it to need a variable clock rate similar to how the HDMI bridge that I need works. I am concerned that I make the burst clock dependent on MIPI_DSI_CLOCK_NON_CONTINUOUS, it might break the Display Port bridge. I think it's better to just check if the samsung,burst-clock-frequency is present in the device tree and use it when present. If it's not present, then fall back to the pixel clock of the connected device. I looked at a bunch of Exynos parts, and it looks like they all use the samsung,burst-clock-frequency device tree setting. Is that true, or did I miss one? adam > > > ... > > Best regards > -- > Marek Szyprowski, PhD > Samsung R&D Institute Poland >