Received: by 10.223.176.5 with SMTP id f5csp2554089wra; Thu, 1 Feb 2018 02:15:20 -0800 (PST) X-Google-Smtp-Source: AH8x2254yJK68cvmxEvEyBvX4vspayDUA7MytT6rZD+u4bjGhqeWmRVuRqk8M+maQvrcpEWSCoUP X-Received: by 2002:a17:902:be0f:: with SMTP id r15-v6mr11287330pls.1.1517480119926; Thu, 01 Feb 2018 02:15:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517480119; cv=none; d=google.com; s=arc-20160816; b=VIUwcQilW9nJb280gDcVEpDcXRtaV0OYLqScgCxVFzRon9VDn+PTVw7WbLdLedogo0 LKTzopYznZ1ZnzBhNt6+a4M41cUMNPZazMoPjEZcJOTqKeG8Wp4KtYhpFYr2GVKt6tWa ciGSjpWXTiVh8ZyaeMonRWJ+LuzMF68Wt5NxNT7tKfcmMH64PBHBhv9d+mrkdFpBs42w SB9X7mzLpqPQ8rBzJJdz5ASHN/mW5sqO17aciQUEHV1FwNxfugszQKJKZJL1Kwz5YsR5 LKTDI+3HUlbL0ZcQxTL3Fj1vNDkpvkD3b8rF26rU6AjzYVBQQ/FaDn7d0FiRgeORxomm xN/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=2kHKt2LlfCPaJ5esVxcPMDR5/sHf1TLwLjgAqgi/LYE=; b=V1dFqh+PzJQ2Vw7w/kSwS3X8tonxgEb9Bk63DeBxv2kxJyDGa4iysxW1sU3d2/qSqR 2nobzvHT9D8QW7YQ2GsZOEsWexpB0K5EKCrHw/8BCziytX8Q2JYL7MKtKKABKZztUDaC +5afTJocwNRAAONWABDR8hXO6QWU23/dbLRLCI5XIhDIPlh82gZW/jWCtCCIBKRBtNVB ghI/8fbvQ7vWXq7husAzMKy2hPzJ1izlskQn85eUHq0IYRxhtH3xG51vfXhldIfkhJar 8bfExB8NfgjC5wmS/YYO9pvZRydoj3oEI1NOn2utFKkfEKudSP+lJPd2zxN+E9JledKd sdwg== 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 j78si10207611pfa.332.2018.02.01.02.15.04; Thu, 01 Feb 2018 02:15:19 -0800 (PST) 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 S1752125AbeBAKOO (ORCPT + 99 others); Thu, 1 Feb 2018 05:14:14 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:43091 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751774AbeBAKON (ORCPT ); Thu, 1 Feb 2018 05:14:13 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id 8196721A3B; Thu, 1 Feb 2018 11:14:11 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id 4935821A36; Thu, 1 Feb 2018 11:14:11 +0100 (CET) Date: Thu, 1 Feb 2018 11:14:11 +0100 From: Maxime Ripard To: Giulio Benetti Cc: airlied@linux.ie, wens@csie.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] drm/sun4i: Handle DRM_MODE_FLAG_**SYNC_POSITIVE correctly Message-ID: <20180201101411.d23efsjt7jdyi4zh@flea.lan> References: <1516474221-114596-2-git-send-email-giulio.benetti@micronovasrl.com> <20180122085112.7xo2t3x5ag4k2kpl@flea.lan> <59f7b542-3b1d-ff62-e290-37c47f4075ff@micronovasrl.com> <9929d894-53c3-a7e9-a328-a00cfc1ef546@micronovasrl.com> <20180125152117.qikemrwl7f35ssjg@flea.lan> <20180126145608.5s6c6ltpvrko7iyv@flea.lan> <18ec71dc-a785-a771-76d4-176d95032c97@micronovasrl.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="b4ob6mpkow4vbiy5" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --b4ob6mpkow4vbiy5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jan 27, 2018 at 11:07:09PM +0100, Giulio Benetti wrote: > > > > > I don't really know what the polarity of D0 would be just by > > > > > judging at that capture, but we would have noticed if the colors > > > > > were inverted for quite some time now. > > > >=20 > > > > D0-D23 are correct. > > > >=20 > > > > With that capture, I mean to show you instead dclk is inverted, as > > > > dclk samples D0 on falling edge. > > >=20 > > > Ah right, DCLK being the first channel? > >=20 > > Yes, sorry I didn't place a label on channels > >=20 > > >=20 > > > > So 0 is NEGEDGE and 1 is POSEDGE(1/3 of clock phase). > > > > 1/3 clock phase seems enough to me to be considered POSEDGE, > > > > 2/3 instead risks to go too much to the right of D0(even if it > > > > could work). > > >=20 > > > Do you have captures with both settings? > >=20 > > Not now, but asap I'm going to take. >=20 > Here we are: > 1/3 phase: https://pasteboard.co/H4VehON.png > 2/3 phase: https://pasteboard.co/H4Veq8a.png >=20 > Yellow: D0 > Blue: DCLK >=20 > As you can see: > 1/3 phase has DCLK rising edge almost in the middle of D0 > 2/3 phase has DCLK rising edge that comes too late >=20 > I would go for "1/3 phase" for Rising edge and "normal phase" for > Falling edge. >=20 > What do you think? It seems fair. This need a whole lot of comments though :) > > > That it's going to be a nightmare... We've advertised since the very > > > beginning something, and we're about to break it. I'm not sure we want > > > to do that. > >=20 > > I can take care about that. > > But I also think that a lot of displays work because they use only > > DE-mode, almost ignoring HSync and VSync signals(HV-mode). > >=20 > > In any case I have to produce these patches because of my company's > > board based on A20 and A33, and modify defconfig according to it. > > The only technical nightmare I see is to produce a commit for every > > defconfig to be modified and copy-paste che commit-log substituing board > > name(1-2 days of work). > > Problem is testing, but we're speaking about something that probably was > > badly working, but you couldn't see it on display. > > So I think this is only an improvement at the end. > >=20 > > I'm sorry I've taken bad news. > > Drink 1 glass of Spritz to go over! :) >=20 > IMHO I think that we have only to take care about displays that don't have > DE signal. > > If DE signal exists, then displays are driven through DE only for back and > front porch as I know, and on most displays I've used, Hsync and VSync are > ignored. > DE is used not only for Data Enable, but also for sync the very beginning= of > frame, the rest of syncing is done by pause between every line sent. > This is should be why nobody noticed it before, > I think almost every display is used in DE mode only. > So, if we fix bug for HSync and VSync, risk should be very low. > Indeed, everybody or almost, use sync:3 because display ignore those 2 > signals (HSync and VSYnc) in favour of DE. > And I don't know how many people checked with oscilloscope signals after > getting display working in a few. I know I did, but I apparently didn't pay attention to that and was more focused on getting the timings right :) But clearly this is a separate discussion that needs to be held on the U-Boot ML. Maxime --=20 Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com --b4ob6mpkow4vbiy5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlpy6HIACgkQ0rTAlCFN r3Scuw//c1s72z37oz4reek541RT7NvFFBpSGcL+TFLVMYW/SFd4VM4wPxaaVj0V Y/M2jeHUvyOauKl4uFmGoQnqdvbtbL0fObJ5iMScCfsdQcLH5mEDa5oqwvk4UvV/ lNBwKLESMO3SvwUzmLKB65n2DdB9kGu35+wFEY67OvFPXsZZLwIeIC7JLzvVatnn gGUsV4xr7qKPAYcnSr61UbywOqA7AaWMTYv2nbnxR8GiyRClrMLuPd5+Hd+8j34R cb6DgJozAoP3L9xfq4zjtQf+WPzDkRDtkwxkIJc21UTc/CSryVNdzVZ432wwBRza 7ToMEH+rSwCrrSe435ley5jofzW4STXbfGtOOSzjUHTmG1N/zCvA+V27QCa2s/Dv 82Z31ml9hSEcQqpU5oF37gQCnLq7VSeYXpuNJRD32fVkciWiqrIsHIq6pZoqCfRz RwbexmAY2o0QzPb5MxXNnW59DCRv2ZR5k1pkrK/CGGgcpaFHsRrbIRI1yvakTHoh cqEBp3sVObxIAS8DiQY6H859D+tDZdkOdRkrLUr9SVF6L0qwEq3HCALxmcvIS9Op BNw7ihDrZqMSjf9MuXdknhwHsBOQXHtCnTj53pWhqCBtis6Q2ZmIRM0MwA3OhB6x d16503TnIFdxASyuOMWLvX5bB8HIiepxcCEMSoGloWM/lNoiTGE= =55xU -----END PGP SIGNATURE----- --b4ob6mpkow4vbiy5--