Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3494254ybi; Tue, 2 Jul 2019 08:41:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqwFcJb9CF5Y06UzNGXE3knqGzbANP6P5w/duFdAdPidgYxa9+TUWQH+9jqsZb45AZrLT/JK X-Received: by 2002:a17:90a:20c6:: with SMTP id f64mr6386277pjg.57.1562082075832; Tue, 02 Jul 2019 08:41:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562082075; cv=none; d=google.com; s=arc-20160816; b=eLsMUwKZSoofkr1pw1id5fpqY/ni0fdagllOoOtEYKFwv5g7/KiMnKgb6M7Ec9M692 vN5gbLHQxhgYopipExDYqc/dCRyn6cr8Tpxo67dmlYdMxe9PsyHo+8h1qyAo5VMGRL16 jRPt2uasy3LpLJGmX+KFuXDt5XXNp85p02fhW6o2unu3rNPk9Qs6dTjRA/AZ4uiH0Mhw jOC+0UpqoTMr2tGvvADgJCX3ossJoXxaEDGcsMH0rf2UEFw05BO4MYFVNS4rAPcJtkdA 3XJIyhldzjA9ddSRUy/NvL/XgL6NqJrcgcyxEK+adtABWqb9G7TYqcud2n7Xn6ghJIb2 CvNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=AuMos9aOQM3cxcuhv1W60RSW7KPJmo8XlBPpXo9DwCM=; b=P+BHSLg+TofhU2Ca+6YttxbQl698+MyeHBdN3lpIL+y9RPqNqb9K6Qk1ncvMognf/P rhj2LlN4335+g5XQqCFQmqSGJDF7RFF9L1G0WwhSF6eM+Gs97FRL6kV7qKB0ZdJGiAzX pXetvWE8VMHdWXxl0sHjo50m6Q/sd+O4Roma4rbALLeVUV2yFFdIIISXauv9eYOq2+LT owQp7kAgiCAajegoMnfA0Onvsh81TiWkP7QL1MsWOLgoEFqc0L5OY1/3uTFZhYsRlC74 cBSOWIZhRdaQwlMGQj7SBac+jB1ujON6um+EYyAYY/K/PuKvuAqJ21hBpNZ3ECaISNtJ uSFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=EXC0a6fl; 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 f3si13365631plr.187.2019.07.02.08.41.00; Tue, 02 Jul 2019 08:41:15 -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=EXC0a6fl; 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 S1726963AbfGBPkj (ORCPT + 99 others); Tue, 2 Jul 2019 11:40:39 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:41763 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726213AbfGBPkj (ORCPT ); Tue, 2 Jul 2019 11:40:39 -0400 Received: by mail-io1-f65.google.com with SMTP id w25so37972731ioc.8 for ; Tue, 02 Jul 2019 08:40:38 -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; bh=AuMos9aOQM3cxcuhv1W60RSW7KPJmo8XlBPpXo9DwCM=; b=EXC0a6fl270PfkwfxWzCHOx4R/6yhlO7DJ1l9JUMGtuVKq/y1rC1kLXwgNQzLEEVX9 GXFXuCSjEmgmkRMe22VN8Si9ND41RT9/KzZzdgDXlCAw4zDfk1zOI/z46qkjn/kGwM46 b6soIF2xiVhwujyt4rbqlkDPEeXgmw6xb1yJI= 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; bh=AuMos9aOQM3cxcuhv1W60RSW7KPJmo8XlBPpXo9DwCM=; b=FLtx+Qlv0dSUr4j6V5sxbfZWqfJpv1Vv8wCEdUZhv0qlGTiq6cSJfNrF1ikp38kGXU bLNnA3W6BHFmLGk9BbhYRNC4q19r5hVq2t/1GKAMxoR5Q8VpYZOtyXGkCi7uCN/w7Gb0 ipFHJd3z/EdqWbgaSmM5C1AJkefpgBOnzvmcFwrWSSm5+lMKt8trRPfnkGoII64aN2GZ KD+D6xKhFj4udyJaGFPd6puNtcCU6UmzWhqn9ubwJQFzqUJ9JSoy339tWEMWqA842pIA jhfkAbmKTcJVDVl6KLmDeu0tqJJb9/VCM0/WGnowVyJlzR80U7WL8BhVGtzyYb2wWWbI ug4w== X-Gm-Message-State: APjAAAVVZWGscjDQwXWlKaWrcj7SjM+ssCgc0Bd9RkLGR3IU89pexVtr 4Z/A6QHv7UWFAr+8KpZwKlPsMalTlCG4hi2Rx2yDUg== X-Received: by 2002:a05:6638:3d6:: with SMTP id r22mr35517516jaq.71.1562082037872; Tue, 02 Jul 2019 08:40:37 -0700 (PDT) MIME-Version: 1.0 References: <20190523204823.mx7l4ozklzdh7npn@flea> <20190604143016.fcx3ezmga244xakp@flea> <20190613131626.7zbwvrvd4e7eafrc@flea> <20190624130442.ww4l3zctykr4i2e2@flea> <20190625143747.3czd7sit4waz75b6@flea> <20190702152908.fwwf7smt7nh2lxo2@flea> In-Reply-To: <20190702152908.fwwf7smt7nh2lxo2@flea> From: Jagan Teki Date: Tue, 2 Jul 2019 21:10:26 +0530 Message-ID: Subject: Re: [linux-sunxi] Re: [PATCH v10 04/11] drm/sun4i: tcon: Compute DCLK dividers based on format, lanes To: Maxime Ripard Cc: David Airlie , Daniel Vetter , Chen-Yu Tsai , dri-devel , linux-arm-kernel , linux-kernel , Bhushan Shah , Vasily Khoruzhick , =?UTF-8?B?5Z2a5a6a5YmN6KGM?= , Michael Trimarchi , linux-amarula , linux-sunxi Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 2, 2019 at 8:59 PM Maxime Ripard wrote: > > On Tue, Jul 02, 2019 at 12:30:14AM +0530, Jagan Teki wrote: > > On Tue, Jun 25, 2019 at 8:07 PM Maxime Ripard wrote: > > > > > > > > > > BSP has tcon_div and dsi_div. dsi_div is dynamic which depends on > > > > > > > > > > bpp/lanes and it indeed depends on PLL computation (not tcon_div), > > > > > > > > > > anyway I have explained again on this initial link you mentioned. > > > > > > > > > > Please have a look and get back. > > > > > > > > > > > > > > > > > > I'll have a look, thanks. > > > > > > > > > > > > > > > > > > I've given your patches a try on my setup though, and this patch > > > > > > > > > breaks it with vblank timeouts and some horizontal lines that looks > > > > > > > > > like what should be displayed, but blinking and on the right of the > > > > > > > > > display. The previous ones are fine though. > > > > > > > > > > > > > > > > Would you please send me the link of panel driver. > > > > > > > > > > > > > > It's drivers/gpu/drm/panel/panel-ronbo-rb070d30.c > > > > > > > > > > > > Look like this panel work even w/o any vendor sequence. it's similar > > > > > > to the 4-lane panel I have with RGB888, so the dclk div is 6, is it > > > > > > working with this divider? > > > > > > > > > > It works with 4, it doesn't work with 6. > > > > > > > > Can be the pixel clock with associated timings can make this diff. > > > > Would you send me the pixel clock, pll_rate and timings this panel > > > > used it from BSP? > > > > > > This board never had an Allwinner BSP > > > > Running on BSP would help to understand some clue, anyway would you > > send me the the value PLL_MIPI register (devme 0x1c20040) on this > > board. I'm trying to understand how it value in your case. > > I'm sorry, but I'm not going to port a whole BSP on that board, > especially for something I haven't been convinced it's the right fix. Look like a dead lock here, this change has a conclusive evidence from BSP (which is AW datasheet or open code to outside world) and it is working with A33, A64 and R40 which was tested in 4 different panels and I don't understand the reason for not going with this (atleast check with respect to BSP). Please suggest, what I can do further, your suggestion is very helpful here. Jagan.