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 491F5C433E2 for ; Thu, 10 Sep 2020 08:30:50 +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 9A49C2076C for ; Thu, 10 Sep 2020 08:30:49 +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="fXkms2YY" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9A49C2076C 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 D49336E2F8; Thu, 10 Sep 2020 08:30:48 +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 6CCFC6E2F8 for ; Thu, 10 Sep 2020 08:30:47 +0000 (UTC) Received: by mail-wr1-x441.google.com with SMTP id a17so5710834wrn.6 for ; Thu, 10 Sep 2020 01:30:47 -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:content-transfer-encoding:in-reply-to; bh=rrGH6bnZebdKpj5s8YTyzDhcTzkGlBW+dcUM9OtnIbk=; b=fXkms2YY5eBZvQvP227bGBgSwEPK3xpYpGMidPXDETvMoJwFIXS8UUFCmWyvHA5t9a A7sVClqPqaFmpJuFD2hrnVvqRL8ORNM0TWH64Vyd/xYNqs9OPoAgKTCBMH/bO61m1Y8W lLmkpJBOxh7sdsEaRiogSNhkCSIWB1aXN03gI= 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:content-transfer-encoding :in-reply-to; bh=rrGH6bnZebdKpj5s8YTyzDhcTzkGlBW+dcUM9OtnIbk=; b=U1oXE9nQogH1RPVz2OmHaF5UWqFXUBsNvGDXGAvZAZLb1V60tD8bJq7vn4lDUoTd68 +SwTEhhKomoW0M7L8AYnJw0ODKQkVwEJw330+lzjlBZ6a0cCR2Pv8UZibRQ9O4Kl1VRq E+wmm/LIMl0M8vOLHxI1Laakr9RHYn1mNa1e3M8hepvTQ2aNy6lbm8pqGsizuaanN8ob MiU3qfy3KGodnM2oLGJuQwGujPaP1bUgpVQ9wumlhgTVAr9iU0GUls+E70T2JBlnwd8f DlcXm989iovocJe0mjsVMpBmeOr7OdNLVh7r6u8n4WRlRplGF6joT1ADim6EQW+quJog 4P/g== X-Gm-Message-State: AOAM530eXhvEeBhzwoQQbtl/M61FyD6iTBjEy0sLLNIEOJbnfmMTm97M l4dwCWWmImCIHkPcDKSX37fogQ== X-Google-Smtp-Source: ABdhPJw8sWdYDLVh4Nz4G6tmS2xdY96GyVAFpm/uBvMsv8V9i0+2KWomBjPxrO6atq3wvIz/cf9EWQ== X-Received: by 2002:adf:cf01:: with SMTP id o1mr7820467wrj.421.1599726645407; Thu, 10 Sep 2020 01:30:45 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id c4sm8123324wrp.85.2020.09.10.01.30.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Sep 2020 01:30:44 -0700 (PDT) Date: Thu, 10 Sep 2020 10:30:42 +0200 From: Daniel Vetter To: Anitha Chrisanthus Subject: Re: [PATCH v7 2/4] drm/kmb: Add support for KeemBay Display Message-ID: <20200910083042.GH438822@phenom.ffwll.local> References: <1598904172-30865-1-git-send-email-anitha.chrisanthus@intel.com> <1598904172-30865-3-git-send-email-anitha.chrisanthus@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1598904172-30865-3-git-send-email-anitha.chrisanthus@intel.com> 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: daniel.vetter@intel.com, edmund.j.dea@intel.com, dri-devel@lists.freedesktop.org Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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_crt= c.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 =A9 2018-2020 Intel Corporation > + */ > + > +#include > +#include > +#include > + > +#include