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.5 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 C9115C4363D for ; Fri, 2 Oct 2020 09:19:35 +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 70FBB2068E for ; Fri, 2 Oct 2020 09:19:35 +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="SuHuY/am" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 70FBB2068E 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 01FA56E2C0; Fri, 2 Oct 2020 09:19:35 +0000 (UTC) Received: from mail-ot1-x342.google.com (mail-ot1-x342.google.com [IPv6:2607:f8b0:4864:20::342]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3D9276E2C0 for ; Fri, 2 Oct 2020 09:19:33 +0000 (UTC) Received: by mail-ot1-x342.google.com with SMTP id a13so719579otl.13 for ; Fri, 02 Oct 2020 02:19:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=c4YZuRpM0XmEY1izBykp3vkP92w57m+EJj1rDzJc5eU=; b=SuHuY/amDHJdLMJKwtglnjdVAU/OHzZJvjcdvNixiLtlCjCbt0GZjUp7W/GqtTwKs8 WGo10Ufu2ttg7j+8ctfIUsJmbrgzCEXd1IPIcQIRZ2X9J89FaNDX2B7Danns5OPA+bWJ bcW5KBWrbirttGrtv4mzGD9kLu7+3p48QuwF4= 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=c4YZuRpM0XmEY1izBykp3vkP92w57m+EJj1rDzJc5eU=; b=jCBMkBblUDlBl8omKE9QWWKvl9gzwzeQ/vkAdiGDuguLcJhpLlz71axaGaSogHjLjl hDyWGm6QTeYkE0THxOIywoOA6G5e5MQaHUoVR02NhXSwZwbRr0TDfN20h+CUcZsh5AC6 RpAYQ44E/RKo4ly/LT61GhcqNY9xgN3sk6rNFQvuH6PXHg3BBf+cZO338XBwuM1lriN9 UTs6pzTmpfJ57wrgoVy9Tfhj/y09HQgOCOfmqKZhEo2vx5Wv49oWfXbT4qHvjDe87VQR 1hLJAamwtgjGRwzXQLIxbdlAFN39UfHHPxG4JUeRoM7pmi2vQhZsY8qhtnXYQ8jY8krb KPlQ== X-Gm-Message-State: AOAM532ILrZX07nuymvAHC/E5dX9GwLZjtdKYZ1fETNuWOuu61rC/B2/ Ktd9pdd22+X3i94KzgGW9ZBak4DPeG12tkF+uKf+NZDtKh4T1A== X-Google-Smtp-Source: ABdhPJwgEl+XBBRS3PGsiUKm0Oyfz2RF8EDkUOGo8doP13HDRPr4CCKZxGPWcNfplrKiZbMQ0+og8Lb4O6ABphhmo90= X-Received: by 2002:a05:6830:14d9:: with SMTP id t25mr1072100otq.188.1601630372238; Fri, 02 Oct 2020 02:19:32 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: From: Daniel Vetter Date: Fri, 2 Oct 2020 11:19:20 +0200 Message-ID: Subject: Re: [PATCH v7 2/4] drm/kmb: Add support for KeemBay Display To: "Chrisanthus, Anitha" 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 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. -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