Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1795631ybn; Wed, 2 Oct 2019 23:56:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwp8IgM2nznhEg9M4P+IpCW8+bWWmNi2vXQJNbL1tAOfMMWnpRNNp4RE3ihmKnuRKhV1v+h X-Received: by 2002:a05:6402:16d5:: with SMTP id r21mr7775557edx.71.1570085809377; Wed, 02 Oct 2019 23:56:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570085809; cv=none; d=google.com; s=arc-20160816; b=QNkkfCENpT1TZ8Y3XALkD9MnRaQGwSYqwmXJhWooqk8H74j2h7Zq2mdVk65tkYKZIR DAqEcDbo0+Qk3pea4gi1L6MZ3kvNRubmxk3F8Xk8woGaPSITIyeGR9Byx7P7tHbrmlpN +7lB0MOWujEZ+TImlHnIsCLjWQMm9IYlsqIP3lDS0L2hgPQ+xw9J+cvAa07Lw4ju+Bep +F5ow7+yHzHIb05NN2oXhhZbXn2Mmdi75BGAET0NfFUUJh8mL90/k7bs6z5HKy0Qd5hB M25GNRi7PfJ7l3W7Ob2UxEvnXfK8+yh+yNhIscG3O/6mj25G0oMcESgcXzu6/gUSLa9H 0Grg== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=bU7eEWTqDVJAzVoRac0rizP1WsKz1rzNUUO0iZVJmNQ=; b=zrT0jOSWc1Oddc7e2sVN4OmiakGd6YwHExzzmAFQQioPq22698Kdg8RFbDvpbSM34h 08T5x5ZKtIlPxrJfCF/y/3eftavI/seqO9YYxL0ETdBbnp53JSMY85IgZ9RnAdrLEDrg doXw5+I5XEiHd4X+6oHECQPY9B68mSaCYRFwCDEuNoMHwalnTEy/SDaoHm38DooQKBwA YnpFiZVq14XLDsDgra0SnDlQ6d/Z/d3/eIAQyYNc/g9sf08JJ5spUMGxDl0bAUAWDl0w I1/C/54z5PVY86RzSQmcoopmCQ+5x4gOHpiY+53JsAc4y0Xrb1xZhoErkLwm0KEuR3ND pN3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=E1EqupMg; 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 k63si960245edc.347.2019.10.02.23.56.25; Wed, 02 Oct 2019 23:56:49 -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; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=E1EqupMg; 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 S1727024AbfJCGzo (ORCPT + 99 others); Thu, 3 Oct 2019 02:55:44 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:38863 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726048AbfJCGzo (ORCPT ); Thu, 3 Oct 2019 02:55:44 -0400 Received: by mail-io1-f67.google.com with SMTP id u8so3071254iom.5 for ; Wed, 02 Oct 2019 23:55:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=bU7eEWTqDVJAzVoRac0rizP1WsKz1rzNUUO0iZVJmNQ=; b=E1EqupMg730dahrp+6/NFq2OamGjeULfhizL/aUqK1IMHs6JmoAZkeUxeqF1uwf+ZL eyQt8lAC4bfdpSCJComxGlNEy5LOrSZvqwfEcLDKooentutky+aiizYXAhwx2FYshOvy 7A+i90ioBBDKtqAGAwHtOaaD7o5I8h+y5zez8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=bU7eEWTqDVJAzVoRac0rizP1WsKz1rzNUUO0iZVJmNQ=; b=T6JEFIP7Mmnh/xlflFpEEBq8vIT/cC2JjnqUueFuaBXxQWrBWogJSRYTpY9s8GMTc5 rGsE1x0i6VG8LVvUuOF+i94SITbu0oULe7pFIN7fjvoRNHEYJPNCAQ3GwhW8PcjA0Q72 Yum3RjFJVaXPsmKNvICX0cZC0wa2Fap5HM3vZkM9Zc8p91mTQLOXLaNqgxnWJ/drjgDO a0LR3+PzLt/A6JxysjB3buBSa2r4Gag9RMuPH9BIQ3xGknGd0Ec8ZCN2EHbvGG/SZuAG vYGBXl8qa3Ydx+e1pI0AtJpDeqr56W2VGszldMFvCCxv05nIubkdhhoMDieFhxHOg55C 654g== X-Gm-Message-State: APjAAAVEAu5RAV7UaIyt++00Q0pVitrCP0QTUytEL7jlNWRB/6zT9DQG thCVtr3HVLACt4aLTErqEP9RiRkD5SF6qSv5d6Rj1g== X-Received: by 2002:a5d:89da:: with SMTP id a26mr6650973iot.61.1570085743213; Wed, 02 Oct 2019 23:55:43 -0700 (PDT) MIME-Version: 1.0 References: <20191003064527.15128-1-jagan@amarulasolutions.com> <20191003064527.15128-2-jagan@amarulasolutions.com> In-Reply-To: From: Jagan Teki Date: Thu, 3 Oct 2019 12:25:32 +0530 Message-ID: Subject: Re: [linux-sunxi] Re: [PATCH v11 1/7] drm/sun4i: dsi: Fix TCON DRQ set bits To: Icenowy Zheng Cc: Maxime Ripard , Chen-Yu Tsai , David Airlie , Daniel Vetter , Michael Trimarchi , linux-sunxi , dri-devel , linux-arm-kernel , linux-kernel , devicetree Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 3, 2019 at 12:21 PM Icenowy Zheng wrote: > > > > =E4=BA=8E 2019=E5=B9=B410=E6=9C=883=E6=97=A5 GMT+08:00 =E4=B8=8B=E5=8D=88= 2:45:21, Jagan Teki =E5=86=99=E5=88=B0: > >The LCD timing definitions between Linux DRM vs Allwinner are > >different, > >below diagram shows this clear differences. > > > > Active Front Sync Back > > Region Porch Porch > ><-----------------------><----------------><--------------><------------= --> > > //////////////////////| > > ////////////////////// | > >////////////////////// |.................. > >................ > > ________________ > ><----- [hv]display -----> > ><------------- [hv]sync_start ------------> > ><--------------------- [hv]sync_end ----------------------> > ><-------------------------------- [hv]total > >------------------------------> > > > ><----- lcd_[xy] --------> <- lcd_[hv]spw -> > > <---------- lcd_[hv]bp --------= -> > ><-------------------------------- lcd_[hv]t > >------------------------------> > > > >The DSI driver misinterpreted the hbp term from the BSP code to refer > >only to the backporch, when in fact it was backporch + sync. Thus the > >driver incorrectly used the horizontal front porch plus sync in its > >calculation of the DRQ set bit value, when it should not have included > >the sync timing. > > > >Including additional sync timings leads to flip_done timed out as: > > I don't think attaching this error infomation is useful at all. Since the error would be common irrespective of panels and it would trigger from dsi controller, I thought this would be useful for reference. I have had this conversation in previous version changes, so I have added it. let me know if have any comments.