Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5724792ybi; Tue, 28 May 2019 18:43:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMxrv05hL34b6AppdUl4SYJ8ASuENVNM3WDW3UKdc7y/CQsFti6y96Yw5CGmbeFfZoGai1 X-Received: by 2002:a17:902:8d92:: with SMTP id v18mr61420417plo.225.1559094231917; Tue, 28 May 2019 18:43:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559094231; cv=none; d=google.com; s=arc-20160816; b=Je+wHfRWVVFKxTXyUCjmpTt/XYOEb4+HDx7QukebNHRJNX5e7P8xdDojUVJdEldoH8 owukcEQXYLXqmxu04wW7FDklLAaCSJ7lr4C4HO7biP8PZWysfjt6JkPoP3l98BOGwS2K BK+kkfuC86VPhrXcCsUp9IrA4DVYzGRWyKM4HhKyU/JAB377ORIFREjY2xo0NVwhcwax wTeEByy2a58oN9tfJPlnhTKUAwRCilTqET04oBnF+o0Y8dDJ3JMKT0GFDVTlvk+HKCHL s6Qf6Tl4njLrwu2agJuc+XKrDgzGCn0tAnjX6rULOgqDkPKiXojDg35ZFo+jceewtfQv 2vmQ== 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=EoH2CWs7MbhK17fbwkAfBOhK3xMnc8wfuzTcqK+dRok=; b=QxZXoWKfsejeVS/ALk9XAHsBLKnLhmfADZ/esssEWDi5o+olkihyzEVXYp8u+7/RIV aS9uYioaDvo76y75nD5GCpg0kYT19Up6kR4HQUohN4KGyfZMOewFDdIF7FkF3vCEYfYD uKlYQ0zbbHjshd//oAyV9u95VKAw1BffgvTSH+Gjilx6pR20pgWYbflCEE6qJyusSFVg plDMOlKG0f6BPSLT+zGFTCo9awTpze/uQCpP2ikO2OwGoWzjq0hWAHVK4X1OJJNah+d0 7sfhA99Rqf7f+0O37P9U09J2hisUJLAI597XuHpe4nAi5aXlgYDFGzhYqK0yRQjDOLh+ EYEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="t/LCSr8x"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n13si24188037pgv.304.2019.05.28.18.43.35; Tue, 28 May 2019 18:43:51 -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=@gmail.com header.s=20161025 header.b="t/LCSr8x"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726097AbfE2Bmb (ORCPT + 99 others); Tue, 28 May 2019 21:42:31 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:40945 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725828AbfE2Bmb (ORCPT ); Tue, 28 May 2019 21:42:31 -0400 Received: by mail-io1-f65.google.com with SMTP id n5so414679ioc.7; Tue, 28 May 2019 18:42:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EoH2CWs7MbhK17fbwkAfBOhK3xMnc8wfuzTcqK+dRok=; b=t/LCSr8xmnGFbrNlwWwdHzTqfSnxCY2L4yCEWv+eDYxqZr3lB3ryKGh4LzLhjSQNrA /RzeI3aRYUCJYc2fpYuKQ6a7s3kTDGOn+u1K6KS95Fy29F/65tEHFbRROzeTZsoFON/J 6jSXvJvo52WVnjvtiWDpecOIosufjGsRBjuBzdqtMT1rHp7TfW21zouiqAL1lFg9YZq9 GxkFbgBcbG059EuX4wD2RjgfFV2K7lKeBFUMppxU+n0yhqxCfw3Mk2BGGqk4S/p920Vl nC++iL0Zl55Hkb52NgL7I+R7Ap9cWXPWP3S3YW2aTGy1ehGKMAPdZdYzt7AXhHEcmWhf ZBxA== 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=EoH2CWs7MbhK17fbwkAfBOhK3xMnc8wfuzTcqK+dRok=; b=muUXydfBHXo9XJ4wIHCPSHiBm/U/rEFZc82wc3PD3eaG4lLjD3hS2p6VFabAi0t8xy AJt4jbyIAQ7pX7sacOcy7dW/pWd7GLf47/JJU0LszENuTwSP33ZxImb7NhX20e51oXKe xulWQxPYDeQdqb5vwm1AcQs+97fTfTWorQb0WG+rLDQ3QQKegmQOzfl1SNaw+S61bOua 8DXGqUDTo+8VniCfGwTa5pJKA8zNIXVbSySCrLV+v2mWstQrwlh42VAXlZWk6KaLeq5i Tui0qsLlEpkFVz8LfUhIw8YUYMhD8/6PUajZF5R719vQJQk/aNEhdQUKSpAG5oL5oJXd J3aw== X-Gm-Message-State: APjAAAUaJuII9b7YdXMTzExJSu8phTLl5gXl9oCqeBGGhjI0NIjqP/p4 dTmg5FmtHB2MhFkO/wZ13Ahb2RUOzRYoZIUJpMw= X-Received: by 2002:a05:6602:2001:: with SMTP id y1mr7942229iod.166.1559094150520; Tue, 28 May 2019 18:42:30 -0700 (PDT) MIME-Version: 1.0 References: <20190509020352.14282-1-masneyb@onstation.org> <20190529011705.GA12977@basecamp> <20190529013713.GA13245@basecamp> In-Reply-To: <20190529013713.GA13245@basecamp> From: Jeffrey Hugo Date: Tue, 28 May 2019 19:42:19 -0600 Message-ID: Subject: Re: [Freedreno] [PATCH RFC v2 0/6] ARM: qcom: initial Nexus 5 display support To: Brian Masney Cc: Linus Walleij , Sean Paul , Rob Herring , Jonathan Marek , Dave Airlie , MSM , "linux-kernel@vger.kernel.org" , "open list:DRM PANEL DRIVERS" , Rob Clark , Daniel Vetter , freedreno@lists.freedesktop.org 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, May 28, 2019 at 7:37 PM Brian Masney wrote: > > On Tue, May 28, 2019 at 07:32:14PM -0600, Jeffrey Hugo wrote: > > On Tue, May 28, 2019 at 7:17 PM Brian Masney wrote: > > > > > > On Tue, May 28, 2019 at 03:46:14PM +0200, Linus Walleij wrote: > > > > On Thu, May 9, 2019 at 4:04 AM Brian Masney wrote: > > > > > > > > > Here is a patch series that adds initial display support for the LG > > > > > Nexus 5 (hammerhead) phone. It's not fully working so that's why some > > > > > of these patches are RFC until we can get it fully working. > > > > > > > > > > The phones boots into terminal mode, however there is a several second > > > > > (or more) delay when writing to tty1 compared to when the changes are > > > > > actually shown on the screen. The following errors are in dmesg: > > > > > > > > I tested to apply patches 2-6 and got the console up on the phone as well. > > > > I see the same timouts, and I also notice the update is slow in the > > > > display, as if the DSI panel was running in low power (LP) mode. > > > > > > > > Was booting this to do some other work, but happy to see the progress! > > > > > > Thanks! > > > > > > I've had three people email me off list regarding the display working on > > > 4.17 before the msm kms/drm driver was converted to the DRM atomic API so > > > this email is to get some more information out publicly. > > > > > > I pushed up a branch to my github with 15 patches applied against 4.17 > > > that has a working display: > > > > > > https://github.com/masneyb/linux/commits/display-works-4.17 > > > > > > It's in low speed mode but its usable. The first 10 patches are in > > > mainline now and the last 5 are in essence this patch series with the > > > exception of 'drm/atomic+msm: add helper to implement legacy dirtyfb'. > > > There's a slightly different version of that patch in mainline now. > > > > > > I'm planning to work on the msm8974 interconnect support once some of > > > the outstanding interconnect patches for the msm kms/drm driver arrive > > > in mainline. I'd really like to understand why the display works on > > > 4.17 with those patches though. I assume that it's related to the > > > vblank events not working properly? Let me preface this with I'm a > > > total DRM newbie, but it looked like the pre-DRM-atomic driver wasn't > > > looking for these events in the atomic commits before the migration? > > > See commit 70db18dca4e0 ("drm/msm: Remove msm_commit/worker, use atomic > > > helper commit"), specifically the drm_atomic_helper_wait_for_vblanks() > > > call that was added. > > > > Do you know if the nexus 5 has a video or command mode panel? There > > is some glitchyness with vblanks and command mode panels. > > Its in command mode. I know this because I see two 'pp done time out' > messages, even on 4.17. Based on my understanding, the ping pong code is > only applicable for command mode panels. Actually, the ping pong element exists in both modes, but 'pp done time out' is a good indicator that it is command mode. Are you also seeing vblank timeouts? Do you have busybox? Can you run - sudo busybox devmem 0xFD900614 sudo busybox devmem 0xFD900714 sudo busybox devmem 0xFD900814 sudo busybox devmem 0xFD900914 sudo busybox devmem 0xFD900A14