Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5717887ybi; Tue, 28 May 2019 18:33:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzoK9A/BVd/mpYw2c+r7uewdkRLmi9Nm40QuJwrMlLkmFB8gx2wcDNfzQn2ZmzvR0t92F4w X-Received: by 2002:a62:e117:: with SMTP id q23mr146238486pfh.60.1559093624549; Tue, 28 May 2019 18:33:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559093624; cv=none; d=google.com; s=arc-20160816; b=kqZ47mc+Kt/NSUxaTme0r6IkClfk/7ncI/CIKcaj4NtmUIVCuAk6q3yFvHejhn9jfC bgVXZNGm7dxkfIxvYjLZFZMGqrvUFrA0Pum3F0XU4U0Lh9GcJ2K2n599BUsIQmXAsQIW RrSSuhqEOCzLTNImiP7WPH2U3OTYC3B/tI2X1+yIlBLTJePoYiEmPQIyaIpwXgk6gAsQ 2n6NOJBqw7sdsrpCcEPG8kEwihm/zwRPcXO8NpGcpw/aparwtayiTnYociaclcklP5GJ uqHyGSXcpRo0g4VDPcfi43iX2Cd9ThstWXyzUgYqEXYFyjglqytM15jZKNlVn1D39W2u LEOQ== 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=pIfvpAwcUL5aEcXjuJeQ2M0pAhR/Zr/nyVu2Et28hv0=; b=CjTlqLFcuKf7H2YmUahLJbYjlcy6v97jqoy0dKZ0iZPpeLXBU787m/sGd6TUzW+dpq ZOMklzRGFvRe9bm95xYldt1ma5U5h2Vh/mr1W2BOae1xoyXWMNk1Ao3vFZGa6Q2jTy/G //i1l+J3piunrq1FLiMI31sePe/kI1veORHGEChSGVpeFWhbjA31cUTOQd8I2Zm0iUXE ypcC9eZMLxszpKh4PMmZw5qob6KzBnzlOkqt6upnrVO2UWP7lDgmEy4NRjMI7hNEIis9 3IklP7Arxiwx831eTvXh2sLu2P0XYmUasJFV6M75vXag8jG1DzBQSDVDHNF0Dw59B3kk mq8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=C7CgTaK8; 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 w185si1271097pfb.170.2019.05.28.18.33.28; Tue, 28 May 2019 18:33:44 -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=C7CgTaK8; 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 S1726024AbfE2Bc0 (ORCPT + 99 others); Tue, 28 May 2019 21:32:26 -0400 Received: from mail-it1-f194.google.com ([209.85.166.194]:32940 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725847AbfE2BcZ (ORCPT ); Tue, 28 May 2019 21:32:25 -0400 Received: by mail-it1-f194.google.com with SMTP id j17so4134309itk.0; Tue, 28 May 2019 18:32:25 -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=pIfvpAwcUL5aEcXjuJeQ2M0pAhR/Zr/nyVu2Et28hv0=; b=C7CgTaK82YvBIf4VqQZ1gYpGRtU608zv44voHBNeDAcYIU7bv1Mgb7g30FYTu40lwO zhdd9h0dxduIt62RQVCc8h1fzpgFKcPqXxV4MRWqjWckPxc8X29Gjh5k/HC6CWbzRc47 vofESGt2DjeRHO1PWS2uIyLDUqI+hLaMOVQiPNifJtnvc5zmxut2xvuJVwaPccNM0jkb Z4SPYUoKO8G8T2TvIaFoHZoeF+E9SL2pI8XS3ISFzJLkSJ4osCyn1ZWU/rwDvESjn/UD Pb9wYesQCGZHQGPnLpy37hVAyeDR+pohWh9gsBc+oZhrHKJYSBBPt5SGMFhyQWsTzaOb kE3g== 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=pIfvpAwcUL5aEcXjuJeQ2M0pAhR/Zr/nyVu2Et28hv0=; b=Nq38QFaS35w+NcHzZo1d7u+KQaD7R3w1/K+xideJmSEUOgd5jTm6ibTywo1fz4G7Cb Hpp6pgyEUVWNpym5YHU1hXCa7+TExeD9SA+4ygrs4kEmSO/Kz/X69EpCOLiQ0xWeEEi+ bU+qQaW1Sf2miF4HBH6U9KoL7thjT/DLb/FTsI+CMNRfNBn0m4dBRgtNGyBbTp09N7qD W3qr0fDBaM+hWXA7i9IhKm+5+YBwVW26htBz/FzMxtPpXHi/KMxEdQ/mdJX5aoGqhIk1 NNg82U/9t+wAHW4+1a9GdVdNCrPyyDhAWVpvlsktUITKBZcdYsfI/wXIoHsEpeOWjWaE 3OwQ== X-Gm-Message-State: APjAAAVjbhiMaxDnd7Mlit2BgwJEAbjxtozZHsX30EFnMFQ7AQS/CqO7 MrzvwrjKypr31MRMLl0A0K64FkBJouldvYGPPvo= X-Received: by 2002:a24:7289:: with SMTP id x131mr1588107itc.62.1559093544804; Tue, 28 May 2019 18:32:24 -0700 (PDT) MIME-Version: 1.0 References: <20190509020352.14282-1-masneyb@onstation.org> <20190529011705.GA12977@basecamp> In-Reply-To: <20190529011705.GA12977@basecamp> From: Jeffrey Hugo Date: Tue, 28 May 2019 19:32:14 -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: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.