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 E3BA4C4741F for ; Thu, 1 Oct 2020 18:02:23 +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 5BD6620848 for ; Thu, 1 Oct 2020 18:02:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=intel.onmicrosoft.com header.i=@intel.onmicrosoft.com header.b="Dn3h2ZdQ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5BD6620848 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com 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 2BF066E8BD; Thu, 1 Oct 2020 18:02:22 +0000 (UTC) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTPS id 890B56E8D3 for ; Thu, 1 Oct 2020 18:02:20 +0000 (UTC) IronPort-SDR: V9XtND9osSB1vIjlmDgHd7XbgLuJsHV5ZqbgXBHgVrXGZADBEO9F48ELBXARrHgHQKsfdlNIpd KUuMduhUTkEw== X-IronPort-AV: E=McAfee;i="6000,8403,9761"; a="160131445" X-IronPort-AV: E=Sophos;i="5.77,324,1596524400"; d="txt'?scan'208";a="160131445" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Oct 2020 11:02:11 -0700 IronPort-SDR: +o7prRt8/NlnQc+6pWr2d1Uy38U6ADbgLJnMqQO9uim34hFs3SonbtJD+FGarSmUs1zO35Eazv DWfvSpM1l2wg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,324,1596524400"; d="txt'?scan'208";a="346165222" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga002.fm.intel.com with ESMTP; 01 Oct 2020 11:02:11 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 1 Oct 2020 11:02:11 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 1 Oct 2020 11:02:10 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5 via Frontend Transport; Thu, 1 Oct 2020 11:02:10 -0700 Received: from NAM04-CO1-obe.outbound.protection.outlook.com (104.47.45.56) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Thu, 1 Oct 2020 11:02:08 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Pa0iwro3cVCK/YYrPWLo2yOADuPS0rLJzkDLhj39T4hsUZac5IExv6Av0jdYsLYPXjNjUVVaz44hoXcDApryMm1Io967k0TXrX85D0VSxM5NSfBKXWl063h51ZARjqsMWE/h7x+lBEuH7Y+DQbkKvmKMHkkQe4fWu0Yp2VXy8Lm4Dj9WG9WLDbdyDP2vUJKHzDfAF3g3wk2v0mE+vWDapFtWewu+fXBCC41H5UMDhT8Xktl03QdgYSxFN0zTU31aLrMHBQOiBDq7GeGM4U7FR9KhlNeLPOoOq8C1L4QniCrsZZ/zm4u9GHZVemtLqhoJ0UYxtzsuS3HzAoIVPo+uOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YKDu2v3Jv22qEU+YcAAueGKLhSv5unbCfE0+A92Er2I=; b=SblGNHsJJmc1uDI/iRJ7/7Cb6r5BHq3vHsuzp1BxdZVgNbeyrSsTHfpuXiOHeVFOuXsJ/jOl8DzYMM3wzWZ218HgYV2Cisjc7sQvRfAy1gWSc0yb4ivAvKtqCMYwfTvj5gx/ehi3R5RBYeObhMpBtDVHbGimVmcehYDjoRl8j2rt8hA5kaJoASkmYezNK5RkI/LvO0vCRJdaEZIxxCTpoAzF8NE0tqMvF1u1L7HhbtL/Ep8+JWj0bOkx7lUCD07pmp8V+XJggnyvRNynJzucQQXOiPP8WV6U0TYYDz1CO6wCEBm8Zb/YllPWLtrCrTzKzgr1IxPzBbM3sCwmAQG/ow== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YKDu2v3Jv22qEU+YcAAueGKLhSv5unbCfE0+A92Er2I=; b=Dn3h2ZdQjV/ctLfpkjblCm+7uMiwWiGpR5LeALqPE57JlFsTvMx7hlTtXhD2LreB612qLmPm21+Rg9WXar+spkZ6TacSuO/0+PBGU/TwHyMN4S2/dvbTa1YfKOVPj0g7WQP9phWzbpvbm5PZa+/1II+oG0h55Dbow0oOwIJ5IGw= Received: from BY5PR11MB4182.namprd11.prod.outlook.com (2603:10b6:a03:183::10) by BY5PR11MB4243.namprd11.prod.outlook.com (2603:10b6:a03:1c8::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.32; Thu, 1 Oct 2020 18:02:05 +0000 Received: from BY5PR11MB4182.namprd11.prod.outlook.com ([fe80::1d4e:2269:63d7:f2d6]) by BY5PR11MB4182.namprd11.prod.outlook.com ([fe80::1d4e:2269:63d7:f2d6%6]) with mapi id 15.20.3412.029; Thu, 1 Oct 2020 18:02:05 +0000 From: "Chrisanthus, Anitha" To: Daniel Vetter Subject: RE: [PATCH v7 2/4] drm/kmb: Add support for KeemBay Display Thread-Topic: [PATCH v7 2/4] drm/kmb: Add support for KeemBay Display Thread-Index: AQHWf9HFmAm5AcKirkeVCqcGep3UralhmbMAgCGUtgA= Date: Thu, 1 Oct 2020 18:02:05 +0000 Message-ID: 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: <20200910083042.GH438822@phenom.ffwll.local> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: dlp-version: 11.5.1.3 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: ffwll.ch; dkim=none (message not signed) header.d=none;ffwll.ch; dmarc=none action=none header.from=intel.com; x-originating-ip: [73.151.242.136] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: bccec7e4-0f68-4e40-273c-08d866341b3f x-ms-traffictypediagnostic: BY5PR11MB4243: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4125; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: A5fkrySjWKHnFc0O5jyM30q75vJF+CD04UKMmWm87jHFtU2TMxNoyBo799CuegtHppoWMaq05XJzhF96D+dXkcRpLCi5hutIyjIvJ6b6ZfXE0Dg2+TVT95yo5ruhFPHkN/bVXY7hNB7ajieZIylCtcyG9pzP58q30oohy++d06cvAAWMbSh8cix3QkPUgCtqcxMuQCvZX3YD4zoqGJAsgknr/cVpEN34UTxZRSNWMzI671ZG3Zp/wqlYEbUD/eoBnYvJ4J+oDI2nWW1aBMopBJzfpGxsAH3NKBAk9E3VgMnDDGBr+QHSg+JAUalfxu1e3ZEdPGHgq69nxQq8NEo8y2sWGEg5nyL+UPSdoJfHPIaaUxUkNNaUvXVW/TE0+A7AWxOudGQtOi3QjMpeuWmb9Q== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY5PR11MB4182.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(39860400002)(366004)(396003)(346002)(376002)(4326008)(9686003)(2906002)(83380400001)(83080400001)(107886003)(55016002)(99936003)(8936002)(478600001)(66616009)(76116006)(8676002)(966005)(86362001)(54906003)(316002)(52536014)(6916009)(7696005)(26005)(6506007)(186003)(33656002)(66946007)(71200400001)(5660300002)(53546011)(64756008)(30864003)(66446008)(66556008)(66476007)(579004)(559001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: /1wVFN9dq7q+hSZh2DstTImjfdoy3vuB/gvWe0inMHJ/3Np/NMGRoerKCJj/Cp6llEw7t1+0Ql26YtA4Ig1iXI7ObU3GaRoAYoxH+DqHx2aQ3QSaVN3vanZenRME5nKRh4XGimsW4FOXJvmmqWNQKypD+U+RcJntqpgP5mvlmQicofXzwaHgbUTElI2ecIaKeQ4l8fOIgZMJMQCoFL3fGEnSGDsCSFcC7uW5+N3n0RNQyOc3DDLNP0pL+vhG6PYdqKI4x1x8YJa3irLZL2VkLfKZHWqYVMqAOa9q2VfeFSIuR4DJxa4cw2CV0LSzLkLKdfcOmRC4IH1h4r5UfRe+bWH/em7TKaGrtZAfrTtSWRGPzKqW0+/XF1Gj/WMvJluTbV/rG83TqtWXjhiXvjyPg8WhtWSsWthowtuhoEYkelYGYb1wtf+4Da3c49DiwP7LBI0VSL74eMDAOlzY/3gp6bLKhKQHdR3FX1UiCjO+Bjuc5j7D35fL+J2uId8GVpePqYu4tbOmN7J44qeGpWfJNbPgC+ivF4L1iccLmFauWDTM2ncxqpAoUGKF399JtUrJIJAdHL+AsUtTKVrpgkX0Wmg8uWtj93D66rFROJ2s+fg+IL6a0GEaN/7V1ELnTMJzdfakMSasVPukNwj/y6LqPg== Content-Type: multipart/mixed; boundary="_002_BY5PR11MB41825BA878A60FBCFF8655E78C300BY5PR11MB4182namp_" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY5PR11MB4182.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: bccec7e4-0f68-4e40-273c-08d866341b3f X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Oct 2020 18:02:05.2152 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: THy4Y4IwO07v92JwjzHCVRVsMsbCOAC1oaFcIY02w0MZ27Nk6+tBIYvSS5iYrmbunFYIes5EUvlIzFdT+dT0a+mu8Z4kebRimVzFhPOn9cc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR11MB4243 X-OriginatorOrg: intel.com 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" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" --_002_BY5PR11MB41825BA878A60FBCFF8655E78C300BY5PR11MB4182namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Daniel, I was finally able to test the driver with 5.9 kernel with minor changes in= the driver.=20 Ran the igt_vblank test and it passed/skipped all the subtests except the p= ipe-A-accuracy-idle test. Results are attached. Investigated the failing test and it seems like drm_h= andle_vblank() is taking too long sometimes. I can work on this after we me= rge. Will send out V8 with the minor changes and device tree YAML binding file A= SAP. 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 >=20 > On Mon, Aug 31, 2020 at 01:02:50PM -0700, Anitha Chrisanthus wrote: > > This is a basic KMS atomic modesetting display driver for KeemBay famil= y > 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 >=20 > 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. >=20 > > --- > > 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