Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1670952ybn; Wed, 2 Oct 2019 21:17:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqzvaaMk2QHnPrNF7MvwurTaWmy0cnPiK1l9Kr/rSHwzt2LIe8iBPrJHw5nwEWBwbZHAzF20 X-Received: by 2002:a17:906:8043:: with SMTP id x3mr6055409ejw.221.1570076240165; Wed, 02 Oct 2019 21:17:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570076240; cv=none; d=google.com; s=arc-20160816; b=wl8KHtxVl1mu8F4Su2qE1syJPqKMrN/uQWmwaNeFMM3YPxN7e/jNnJl/hnrP+3keuo RJhR/hPZPxw84riWVWsMC+1jKiwCPD5eyXewZiWde+D0+mVH78EKKqJPtU6Tl6dXs+rj n4qo/HLGPxeotXDKloBwkHEXuPWYEUyn1DpciK3mC8GRPuUGjzM3af8GYCx+ftuCMvmw Or2qWzXGpbKwE9yWO1TxStFwlzKu1ts6Q3WFMegc2ja5u3H4b8OEmjlH8l5t7EH9kHLY oc1h5gRzsiNbZlv7vW5Ui4RLjP7UWfvwHYrJSTYB7DtJJcv9Lyix2SptkF1qfX/mFurE JZkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:date:cc:to:from:subject :message-id; bh=Rp5DvECNtK5sO6JfVIIb4A3hqbnz4nQpCoDIvbSkgHA=; b=UMvXL1Kh3KU1T9Er1CSKBDbuS9bV+1QU4sIJYUxeRN1LxXjSJnB4a8rs0tnQr4UJOp N3/z5KYoY3BSflNp2NNDDnAuEPO5HGPno2iyAirXsDFtSDOk45V4tIDDvExncwsSrU8F VTUHW+8oRQdIxUyI4jX0NRbG4FzH0eDxgTPlBjLdP5pPb64krLs2MOirG4MW1ES9egXd YojEw3WlfkMzwhCyLU/LGIF/KhB9J5cejf1HCMr0bBHWkgGOUIbOh9BXKl7fUQKkC48N xPVKVmJlUMGSup14uAJROG0X3gHSN4oxKL8D6WKqFdd+jHmgjklMkplHJJTOTORk37Vs zDvQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s21si593831eja.226.2019.10.02.21.16.55; Wed, 02 Oct 2019 21:17:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728763AbfJCD72 (ORCPT + 99 others); Wed, 2 Oct 2019 23:59:28 -0400 Received: from hermes.aosc.io ([199.195.250.187]:42161 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727953AbfJCD72 (ORCPT ); Wed, 2 Oct 2019 23:59:28 -0400 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 418CA82E31; Thu, 3 Oct 2019 03:59:24 +0000 (UTC) Message-ID: Subject: Re: [PATCH 0/3] drm/sun4i: dsi: misc timing fixes From: Icenowy Zheng To: Maxime Ripard Cc: Chen-Yu Tsai , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Date: Thu, 03 Oct 2019 11:58:42 +0800 In-Reply-To: <20191002103642.jlbs44v4kwnxhrge@gilmour> References: <20191001080253.6135-1-icenowy@aosc.io> <20191002103642.jlbs44v4kwnxhrge@gilmour> Organization: Anthon Open-Source Community Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2019-10-02三的 12:36 +0200,Maxime Ripard写道: > Hi, > > On Tue, Oct 01, 2019 at 04:02:50PM +0800, Icenowy Zheng wrote: > > This patchset fixes some portion of timing calculation in > > sun6i_mipi_dsi > > driver according to the BSP driver. > > > > Two of the patches are reverting, one is fixing some misread of the > > BSP > > source code, another is fixing a wrong refactor that actually > > breaks the > > formula. > > > > The other non-reverting patch is fixing a porch error which is > > usually > > seen in the original driver commit. Most of porch errors are then > > fixed, > > but this one gets ignored. > > > > By applying these patches, several DSI panels are tested to be > > driven > > properly by the timing provided by the vendor, including the LCD > > panel > > of PinePhone "Don't Be Evil" DevKit, the final PinePhone panel and > > the > > panel on PineTab. Without these patches they need dirty timing > > hacks to > > work. > > Thanks for going after that issue. Can you provide references to the > BSP on the various patches? For patch 1: [1] for setting delay 1 in DSI controller, [2] for setting real delay in TCON controller. For patch 2: [3] Patch 3 is reverting a breaking change, so I didn't check it in the BSP. It can be verified by mathmatical calculation. [1] https://github.com/ayufan-pine64/linux-pine64/blob/my-hacks-1.2-with-drm/drivers/video/sunxi/disp2/disp/de/lowlevel_sun50iw1/de_dsi.c#L730 [2] https://github.com/ayufan-pine64/linux-pine64/blob/my-hacks-1.2-with-drm/drivers/video/sunxi/disp2/disp/de/lowlevel_sun50iw1/de_lcd.c#L369 [3] https://github.com/ayufan-pine64/linux-pine64/blob/my-hacks-1.2-with-drm/drivers/video/sunxi/disp2/disp/de/lowlevel_sun50iw1/de_dsi.c#L780 > > Ideally, having the panel drivers, and the panel datasheet would > help. > > Thanks! > Maxime > > PS: where can we get one of those devices?