From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B4AEC4363A for ; Mon, 5 Oct 2020 13:49:31 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 355A220774 for ; Mon, 5 Oct 2020 13:49:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=ffwll.ch header.i=@ffwll.ch header.b="TqJZaas4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 355A220774 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ffwll.ch Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6AADB8953E; Mon, 5 Oct 2020 13:49:29 +0000 (UTC) Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by gabe.freedesktop.org (Postfix) with ESMTPS id 00C298953E for ; Mon, 5 Oct 2020 13:49:27 +0000 (UTC) Received: by mail-wr1-x441.google.com with SMTP id t9so1018380wrq.11 for ; Mon, 05 Oct 2020 06:49:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=EIpnjeiA0jdWWrcQk+NVFqtBDJ7iTgMbrUDm4HCVM14=; b=TqJZaas4o6qKxzZNhxm3p2fBeKU8nBidD3BUj3qkwyG5vwwoMJ7s566Ouc74ntVD3O LtKi4exg+l1ZBvz9DFAQUrISDbIFQ1H4Iv46kclX0oQZRbT2yTUABdNspjTzt7N2nSX5 NDcXGZMmvVjK5i9ZtxkC2HKXOLBVUVetBbDeY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=EIpnjeiA0jdWWrcQk+NVFqtBDJ7iTgMbrUDm4HCVM14=; b=XFCiKjA80SPf7hkhSZWKEqtuNDPp5Xg8vO4SucLaEtn6dSDRLO5LuvbtThd2JRBdv7 1of9esPTgAQlG9AqR+q1C4ZKNhNfYBLpMytvYGYXsucwDmZgyXEPcJDq5wotB/o6Dars 6GXmMcHiBM9SrTKVEFY9jBeXMDIb7IqhBkeKF0jmBtBV7QA6mR9vaDU1Q5xWIHdoXmxu 0AAmnq8xcEWUYXXSKeJ0a0cSyNnFxGYgc4CvsmcoVOa4JOYAvUGnU58snVW4/4dT2Qmu HtU70egWOY8T3DyGgGv4XOU2ZE3rW6La2ZvwaSOC2gBmJjDND0RBUNQQP1wdGbfDHHiU B/nA== X-Gm-Message-State: AOAM530/ALKX4b/ZiSaTcViaUSFZVu7yV9iSpl7MSJEwCq0BFHkAxMLA YVu9PI1m071w9vWSuHJkpJy5HQ== X-Google-Smtp-Source: ABdhPJxb5G0w1CCtb2XGdk+XwQf0fe0zCAFnGnCJOw5m0lL2XXI94Ix4cgju1zraLhMSlH5kJtvkaw== X-Received: by 2002:a5d:4581:: with SMTP id p1mr18423575wrq.345.1601905766064; Mon, 05 Oct 2020 06:49:26 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id a10sm13097457wmb.23.2020.10.05.06.49.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Oct 2020 06:49:24 -0700 (PDT) Date: Mon, 5 Oct 2020 15:49:22 +0200 From: Daniel Vetter To: "Chrisanthus, Anitha" Subject: Re: [PATCH v7 2/4] drm/kmb: Add support for KeemBay Display Message-ID: <20201005134922.GP438822@phenom.ffwll.local> References: <1598904172-30865-1-git-send-email-anitha.chrisanthus@intel.com> <1598904172-30865-3-git-send-email-anitha.chrisanthus@intel.com> <20200910083042.GH438822@phenom.ffwll.local> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Operating-System: Linux phenom 5.7.0-1-amd64 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Vetter, Daniel" , "Dea, Edmund J" , "dri-devel@lists.freedesktop.org" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Sat, Oct 03, 2020 at 04:58:51AM +0000, Chrisanthus, Anitha wrote: > > > > -----Original Message----- > > From: Daniel Vetter > > Sent: Friday, October 2, 2020 2:19 AM > > To: Chrisanthus, Anitha > > Cc: dri-devel@lists.freedesktop.org; Paauwe, Bob J > > ; Dea, Edmund J ; > > Vetter, Daniel > > Subject: Re: [PATCH v7 2/4] drm/kmb: Add support for KeemBay Display > > > > On Thu, Oct 1, 2020 at 8:02 PM Chrisanthus, Anitha > > wrote: > > > > > > Hi Daniel, > > > I was finally able to test the driver with 5.9 kernel with minor changes in > > the driver. > > > Ran the igt_vblank test and it passed/skipped all the subtests except the > > pipe-A-accuracy-idle test. > > > Results are attached. Investigated the failing test and it seems like > > drm_handle_vblank() is taking too long sometimes. I can work on this after > > we merge. > > > > kms_flip is the one that should check whether vblank events and page > > flip events agree. Which I think isn't the case with your current > > code. > Thanks. I will run that test and work on the failures. I did send v8 > with 5.9 testing changes today and also sent the YAML file v1 today to > devicetree@vger.kernel.org, not sure if I should cc dri-devel,, should > I? I think usually people send out the entire series, first device tree yaml, then bindings, then drivers, to everyone. It helps with context I think (But I don't review dt stuff myself). -Daniel > > Anitha > > -Daniel > > > > > > > > Will send out V8 with the minor changes and device tree YAML binding > > file ASAP. Will work on the rest of the review comments after. > > > > > > Thanks, > > > Anitha > > > > > > > From: Daniel Vetter > > > > Sent: Thursday, September 10, 2020 1:31 AM > > > > To: Chrisanthus, Anitha > > > > Cc: dri-devel@lists.freedesktop.org; Paauwe, Bob J > > > > ; Dea, Edmund J ; > > > > Vetter, Daniel > > > > Subject: Re: [PATCH v7 2/4] drm/kmb: Add support for KeemBay > > Display > > > > > > > > On Mon, Aug 31, 2020 at 01:02:50PM -0700, Anitha Chrisanthus > > wrote: > > > > > This is a basic KMS atomic modesetting display driver for KeemBay > > family > > > > of > > > > > SOCs. Driver has no 2D or 3D graphics.It calls into the ADV bridge > > > > > driver at the connector level. > > > > > > > > > > Single CRTC with LCD controller->mipi DSI-> ADV bridge > > > > > > > > > > Only 1080p resolution and single plane is supported at this time. > > > > > > > > > > v2: moved extern to .h, removed license text > > > > > use drm_dev_init, upclassed dev_private, removed > > HAVE_IRQ.(Sam) > > > > > > > > > > v3: Squashed all 59 commits to one > > > > > > > > > > v4: review changes from Sam Ravnborg > > > > > renamed dev_p to kmb > > > > > moved clocks under kmb_clock, consolidated clk initializations > > > > > use drmm functions > > > > > use DRM_GEM_CMA_DRIVER_OPS_VMAP > > > > > > > > > > v5: corrected spellings > > > > > v6: corrected checkpatch warnings > > > > > v7: review changes Sam Ravnborg and Thomas Zimmerman > > > > > removed kmb_crtc.h kmb_crtc_cleanup (Thomas) > > > > > renamed mode_set, kmb_load, inlined unload (Thomas) > > > > > moved remaining logging to drm_*(Thomas) > > > > > re-orged driver initialization (Thomas) > > > > > moved plane_status to drm_private (Sam) > > > > > removed unnecessary logs and defines and ifdef codes (Sam) > > > > > call helper_check in plane_atomic_check (Sam) > > > > > renamed set to get for bpp and format functions(Sam) > > > > > use drm helper functions for reset, duplicate/destroy state instead > > > > > of kmb functions (Sam) > > > > > removed kmb_priv from kmb_plane and removed > > kmb_plane_state > > > > (Sam) > > > > > > > > > > Cc: Sam Ravnborg > > > > > Signed-off-by: Anitha Chrisanthus > > > > > Reviewed-by: Bob Paauwe > > > > > > > > Sam asked me to take a look at this too, looks reasonable overall. I've > > > > spotted a few small things plus a potential functional issue around > > > > vblank/event handling. I strongly recommend running the igt test suite > > > > over the driver to see whether it all works reasonably ok. See below for > > > > details. > > > > > > > > > --- > > > > > drivers/gpu/drm/kmb/kmb_crtc.c | 224 +++++++++++++ > > > > > drivers/gpu/drm/kmb/kmb_drv.c | 676 > > > > ++++++++++++++++++++++++++++++++++++++++ > > > > > drivers/gpu/drm/kmb/kmb_drv.h | 170 ++++++++++ > > > > > drivers/gpu/drm/kmb/kmb_plane.c | 480 > > > > ++++++++++++++++++++++++++++ > > > > > drivers/gpu/drm/kmb/kmb_plane.h | 110 +++++++ > > > > > 5 files changed, 1660 insertions(+) > > > > > create mode 100644 drivers/gpu/drm/kmb/kmb_crtc.c > > > > > create mode 100644 drivers/gpu/drm/kmb/kmb_drv.c > > > > > create mode 100644 drivers/gpu/drm/kmb/kmb_drv.h > > > > > create mode 100644 drivers/gpu/drm/kmb/kmb_plane.c > > > > > create mode 100644 drivers/gpu/drm/kmb/kmb_plane.h > > > > > > > > > > diff --git a/drivers/gpu/drm/kmb/kmb_crtc.c > > > > b/drivers/gpu/drm/kmb/kmb_crtc.c > > > > > new file mode 100644 > > > > > index 0000000..a684331 > > > > > --- /dev/null > > > > > +++ b/drivers/gpu/drm/kmb/kmb_crtc.c > > > > > @@ -0,0 +1,224 @@ > > > > > +// SPDX-License-Identifier: GPL-2.0-only > > > > > +/* > > > > > + * Copyright (c) 2018-2020 Intel Corporation > > > > > + */ > > > > > + > > > > > +#include > > > > > +#include > > > > > +#include > > > > > + > > > > > +#include