Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4570248rwl; Mon, 3 Apr 2023 06:54:36 -0700 (PDT) X-Google-Smtp-Source: AKy350YElCuVHV9GFR+u+0RhqBOOh6ysYfTUel57qbqGt4vcNJonHvbl2hQGlyr0lmNQcwxdT2ZU X-Received: by 2002:a17:907:d10:b0:925:6bcb:4796 with SMTP id gn16-20020a1709070d1000b009256bcb4796mr20834661ejc.38.1680530076077; Mon, 03 Apr 2023 06:54:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680530076; cv=none; d=google.com; s=arc-20160816; b=WZkX2NkjyWVQnx/BlDTZYsmKtPz/tLtBp22N8loFNRm/QuPBCPNwHmxCVMYLH1aVKy CQj61aBXmg6N8njWk+z4I6ijsGzS3mQS1l7qJO5gRjUzdzn2IwqW1QeF14gkSDkdSvmc OE5FvwsnSYx1OnyHzvKE6wMZnjv9/eeJoYTo2jjUDt4zJSTQ4HY086UOohuFhCEwvxPh YLY92TZ5fIumoecOD8fBZDmWhkz6ocHwhKuSsZJjTm0Y8FsfiVcLbnAiCN+jkpFYitYs bL+TikSNw7zIRg5Q/iVLCGlmiPgjuHo0vSj2kdOG2HVdO6mUN0aDPCocUWLwiOAsV6+l wuKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:cc:to:from:subject :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=yjZVA2mMTeWzOtGqbKtDtJ1agsEpiSlCHKJk6KjuyTk=; b=KY1SX5US5S045PiEjMuGtzGJIXnSpbvg1TQedbsbpGdRXYMEUVp/t5T4rxaCOdUJDg vivTmwYboUuSOAoXNvnTmRJjvOM1/WDEjM4waK5Ztx6QWReLKeljJ5h2yFxp9HSMBDeq l/nkfG1DBn67TgQVUzJ7pUTrETlgYzjktYvU+968BejlS5J0HULrW+r7YpWG2bTj3ttu WRzv5D9dceH0YHeT6BiOTFIqaHKGdR1L2X69VX+acUWoDrLtw47gpODpSmgYUz4O2Btb HIO8Y8AkgME8Ayf9wXBAug3dM3BDDCTS7SGnsoNns5gLhgB890AhM3A7Xn/JJQ2bR+cF Kasw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crly.cz header.s=gm1 header.b=a+axboIp; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb1-20020a1709071c8100b00947c19f9f2bsi1229791ejc.354.2023.04.03.06.54.12; Mon, 03 Apr 2023 06:54:36 -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=@crly.cz header.s=gm1 header.b=a+axboIp; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232708AbjDCNwp (ORCPT + 99 others); Mon, 3 Apr 2023 09:52:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232706AbjDCNwn (ORCPT ); Mon, 3 Apr 2023 09:52:43 -0400 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::223]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88071728D for ; Mon, 3 Apr 2023 06:52:41 -0700 (PDT) Received: (Authenticated sender: me@crly.cz) by mail.gandi.net (Postfix) with ESMTPSA id 02CD660007; Mon, 3 Apr 2023 13:52:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crly.cz; s=gm1; t=1680529959; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yjZVA2mMTeWzOtGqbKtDtJ1agsEpiSlCHKJk6KjuyTk=; b=a+axboIp+P2/EKx8WVgBZOoRoRb9hQH4yMUJKl/KYwTUXyWTHkrdOcsRBihMNMuo2dl3QV zWOf2kr4ADe3KnTUNknPdufaa+L4lsOwXiR2y7Gma3pvVwv3JpTkY8iVX7m5RtIHlWCqfj gtlXcAJzUSIjwDYnwLcdHWT6bi2HsK3G6cunNA5Ir3/fkY5mIBklap5LlA1PVfm27uqBIc RM2xnKgFFxAo/EPlKGKCWqf3BP+rWeYJXnEO5ARANwcYxyCRVZd058YKlxfLKQ5MLzUgC6 upc7FgQGmjHoLlWXZL9JaTEk2pbSI7L8GYt2tdTN6hhcXvidQ3OevjSfPQHwPA== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 03 Apr 2023 15:52:36 +0200 Message-Id: Subject: Re: [PATCH 3/3] drm: sun4i: calculate proper DCLK rate for DSI From: "Roman Beranek" To: "Frank Oltmanns" Cc: "Maxime Ripard" , "Chen-Yu Tsai" , "David Airlie" , "Daniel Vetter" , "Jernej Skrabec" , "Samuel Holland" , , , , X-Mailer: aerc 0.14.0 References: <20230331110245.43527-1-me@crly.cz> <20230331110245.43527-4-me@crly.cz> <87h6tya70h.fsf@oltmanns.dev> In-Reply-To: <87h6tya70h.fsf@oltmanns.dev> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS 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 On Sun Apr 2, 2023 at 12:49 PM CEST, Frank Oltmanns wrote: > > When apply this to drm-next my panel stays dark. I haven't figured out > yet why, though. The other two patches in this series work fine, i.e. > they have no effect as they are just a refactoring. > > I'm testing this on my pinephone. It's the same with the patch I > submitted. For whatever reason, it no longer works on drm-next. I've reproduced the issue on my PinePhone and noticed that tcon0 had set pll-video0-2x as its parent instead of pll-mipi. Having tried a whole range of pll-video0 rates, I'm now convinced that DSI only works when tcon0 has pll-mipi as its parent. As little a change as setting .clock in the default mode of PP's panel to 73500 can fix it. Better yet, dropping pll-video0-2x from the set of acceptable parents for tcon0 fixes it universally. And that's what megi's kernel does, though the measure was introduced with a different rationale: Roman