Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp803127pja; Thu, 19 Mar 2020 11:10:13 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtu8sbB79WRJsWGPdYIQ4Ut6sByipjqFiQl+0v817lGwnNvNOR0M/N+jD1XTT+oos354r8Z X-Received: by 2002:a05:6830:1042:: with SMTP id b2mr3476715otp.170.1584641412996; Thu, 19 Mar 2020 11:10:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584641412; cv=none; d=google.com; s=arc-20160816; b=puMLavuBPx9K+9CBmHqpwZVDHnDIg7FLEzamv4vhBx6FQWtdDBWdjvgiVJzaOF0rvt AYaAZO+K0q8go6XTteIwhOKCFVj1XUO8bwddHIOGUUM0qmDy+e0C3RLh380NWLMhJ3wd +1EAWBP5fPOgBM9FBkEFzYjEUOb+pi8N8aW7I+hPQHs65KaRZCO2FEcmsotlmPW6mWEd srTmvKxmiCpvxvHVaIQBt1c/TNGqRjvmyR+/iZNLBDUfoFVoufM95+V2mYxpvYO9sE4D oJR6b0MFZVPXrnviLlwdYERLw5kPtxNjUOvqrd796HVTO/ed5/wgTqVER+68G6ZORwCg xK/g== 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=PNbkuwcxRY/5NdpGatcuzNNiZqstQLs90QoS76KAs3c=; b=CMk+LQdIErvwoFw4MtlBeM+2FShyHJZgaMItp2dpX3PaJ4Y2twbv7q03KlJM7L51M+ QJcqFHcIarzsLaIyOaCB01otf5gq3shurAULnMvcOExX4PusSk8kzIxfgmiH26h+vQGw a4Kj6LBlODQ5DL94KhxjKr6NlW0B6mLGtWtxfFAOanYGdKpWJ6VSGJW8rGPEmZXOiqro Y/V0d+8FhxVLqW1Xw2t6TOvPcAqqxjE6wmsJKaZFRwehmf/SMO3E4CuoS6DfeH+ob6ow cjtQsNupHv/TSjJgf3sG6G9KYiRdFbMjHLOTr1EyyKisXvtIVQDKaDRl6aoONUNl9Xbw wv3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IhhRP9CT; 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 f12si1508211oig.263.2020.03.19.11.09.48; Thu, 19 Mar 2020 11:10:12 -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=IhhRP9CT; 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 S1727235AbgCSSHI (ORCPT + 99 others); Thu, 19 Mar 2020 14:07:08 -0400 Received: from mail-vs1-f67.google.com ([209.85.217.67]:41308 "EHLO mail-vs1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726867AbgCSSHI (ORCPT ); Thu, 19 Mar 2020 14:07:08 -0400 Received: by mail-vs1-f67.google.com with SMTP id a63so2279596vsa.8 for ; Thu, 19 Mar 2020 11:07:07 -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=PNbkuwcxRY/5NdpGatcuzNNiZqstQLs90QoS76KAs3c=; b=IhhRP9CTg02j9zaxsX8RCjJcCZ5AtYZL4qbmjD1DrW5528Hpb0kijgdCy0sBZFiO7T yRw0OxLaQu/lqpWnC6ETkFwLmc2ERbZf3HZEdWJn3uZ5TxQmdSnkI/Es94NckDNUg++D vrpHSj6S9uP+dbj+IJjvQIdY9fJ3cy/r6P2syGYs8KE7ZnOEUGCWMr24Urj9Y6EkGMk4 1xgK+oqQfw1krowg9XnkmXgB0VxogBvB/P5ba/vYoRdLYFyCg7VW9WusMhRMa/Y8jp/i 16XFpLenou+5+ePb1NqNWUCtOhu+SaiJkMmqNZ/hKs4dapM4v+zZHrlDzXdVoUDfcrjx TitQ== 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=PNbkuwcxRY/5NdpGatcuzNNiZqstQLs90QoS76KAs3c=; b=RRsJ92IIb+sY98spGHw6p+3KI5fhg0UrEwp+KOuPWREMfHSi/vHniU4ourFQ4Gdbnj NUDd7OH8BsIlc4rDfrKqqAe9CnWd8qnr1hh4BmQgdXlZQY9VxRSyRcn7IpuYXDtGbd8w rZQH4gbG4mdRonGbgPXhmkARNKgj+0Z9TQRo0E9rEWKcLdA7H8MohMSj+0uTh3/ouyAt yCpIDLMJ3oS9DcQhDYxBeev2G0jTSa90DDPnomJw6p1uRfOCmi6WjC+EhsxZCne2bTQ4 SG2XApQAbcBN7XFzcvA+M1ZLsiMhgcyc+WxCV37igpn5eioo7Sv/ZogTmQy9vTTm31j9 Py4g== X-Gm-Message-State: ANhLgQ30t9umvZw0XgEtsON9TS+n6jt0SRFwbkUPu8etgF8W4SOfXvvT GOmEUvjEuA75RgqoYSxAGRippG0Ul2NxfUXh4Mxy3a7J X-Received: by 2002:a67:cb84:: with SMTP id h4mr3195097vsl.85.1584641226832; Thu, 19 Mar 2020 11:07:06 -0700 (PDT) MIME-Version: 1.0 References: <1584105767-11963-1-git-send-email-kevin3.tang@gmail.com> <1584105767-11963-5-git-send-email-kevin3.tang@gmail.com> In-Reply-To: <1584105767-11963-5-git-send-email-kevin3.tang@gmail.com> From: Emil Velikov Date: Thu, 19 Mar 2020 18:06:02 +0000 Message-ID: Subject: Re: [PATCH RFC v5 4/6] drm/sprd: add Unisoc's drm display controller driver To: Kevin Tang Cc: Maarten Lankhorst , Maxime Ripard , Sean Paul , Dave Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Orson Zhai , ML dri-devel , "Linux-Kernel@Vger. Kernel. Org" , Chunyan Zhang , Baolin Wang 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 Hey Kevin, On Sun, 15 Mar 2020 at 23:19, Kevin Tang wrote: > > Adds DPU(Display Processor Unit) support for the Unisoc's display subsystem. > It's support multi planes, scaler, rotation, PQ(Picture Quality) and more. > > Cc: Orson Zhai > Cc: Baolin Wang > Cc: Chunyan Zhang > Signed-off-by: Kevin Tang > --- > drivers/gpu/drm/sprd/Makefile | 5 +- > drivers/gpu/drm/sprd/dpu/Makefile | 7 + > drivers/gpu/drm/sprd/dpu/dpu_r2p0.c | 750 ++++++++++++++++++++++++++++++++++++ > drivers/gpu/drm/sprd/sprd_dpu.c | 501 ++++++++++++++++++++++++ > drivers/gpu/drm/sprd/sprd_dpu.h | 170 ++++++++ > drivers/gpu/drm/sprd/sprd_drm.c | 1 + > drivers/gpu/drm/sprd/sprd_drm.h | 2 + Seems like v5 (patch at least, I did not look at the rest) does not address a handful of the feedback. - Access registers via readl/writel, instead of current approach - With ^^ you can drop the compiler workaround - Checking for unsupported KMS properties (format, rotation, etc) should happen in the XXX_check callbacks - Remove always true checks, around the (rather moot) abstraction layer For the future, please keep the revision/changelog within the corresponding patch. This way reviewers can see, from the onset, what is addressed. Look at `git log -- drivers/gpu/drm` for examples. -Emil