Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp183922ybg; Tue, 28 Jul 2020 03:21:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPTqsZ8XuEDmg9UqtiFaQu8LiKdc4ldp/3j2nvn5JeSfTxXjB70gj9W4FVjmBZHT7mOXEG X-Received: by 2002:a17:906:7b82:: with SMTP id s2mr20641108ejo.63.1595931680792; Tue, 28 Jul 2020 03:21:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595931680; cv=none; d=google.com; s=arc-20160816; b=Ry0TF8Xvi1Gm60IAxz6GpKXcUacVWlDsC8LROzuw2/pO3ioa9qIJ8GKhQMlquZZg3p JF/xS6oO6eHLl46SORRF6qMDqi7mkXJ+SlpbZGxZxhVYyjcTOIBiqkVRDkCbvT299hlg YFt77Lb6IDdrSwpEaN1mXBRiNNexVdfUovwHn1sQfEVnSVTl5RU4XpUu4sVUGtFDUVlG jS0ioJ70otxsBvzpBlpCsEEv3ukdDZrLSkYFMOoReSH0Gxj5tTlY83H0iQh9KY5xPOJ+ sgP1I0ZvG41nNysAZzJOm4iMLofWY3c5UakpXjngEdfq8pD5z0bzy1lmWH+k9DoF1pDg O92g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=y5JvHTfL3KAJW7sNZfdf0acUJLJFvSpi5rTiY+++JWk=; b=XnUv5qVksRfp++ihCIPJbpb7GLVALhyOHJywNrydFLbQn+U0JlAgc7OBHhpB0p/kPl UcexP6fH1nR4nr5uaR/edv4V+9Z3Ehx0TVoNyfIQwbTvt3E0pBRPe/3N9cPtEWDxdxNo 1wk2InjR70ihwBzsWfTuUrOGDu2wXjQl0ddeZQ/VD0VZ1leGRTipBU2MQ7216oIMvEo/ 1NvVw609PalVum31LUIlEp5oxvLfAFZPjVCua/0jajcXvrwW1aeTkmSrvMFv7Hl8NGMS +joHX6jYdfG5akX41jGsZFRMkTw2UnLDLyulGiSkdnJ/8IE4mkVOpnNWYOjfB0m30YSJ wh8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FiUDYJT+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id u13si4499895edp.260.2020.07.28.03.20.59; Tue, 28 Jul 2020 03:21:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FiUDYJT+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728511AbgG1KSQ (ORCPT + 99 others); Tue, 28 Jul 2020 06:18:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728050AbgG1KSP (ORCPT ); Tue, 28 Jul 2020 06:18:15 -0400 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38BF0C061794 for ; Tue, 28 Jul 2020 03:18:14 -0700 (PDT) Received: by mail-lf1-x141.google.com with SMTP id h8so10686779lfp.9 for ; Tue, 28 Jul 2020 03:18:14 -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:content-transfer-encoding; bh=y5JvHTfL3KAJW7sNZfdf0acUJLJFvSpi5rTiY+++JWk=; b=FiUDYJT+DkGKwexMj0wMwhkGRgDEcuVc/KAn2msNbjHHLX1/JES+yjuud3qRe9C2PI ExNC87JkNE3M+5OqPO+I1aXaJ8W22p8P9w3/5acFoYZrkV9hO4ajoP0dW/36pXs0A01G 96RSfc4KUWzSISwDYq/MjjO9K+vgAI+0aPQigtPnrHLBQzIsmGgg7yMS5E9q0RF99BCF IOiiokEvncvAYdarjebwAby6cGS8ykq2jgD4A75MQXLF9v73XukOMrCwniaOgLzJXLzJ ckH712meXzmUKR4Dl/LnO1JqPurwYOx+PLw4hThG3L+v8THomDZnWa5C5c4n9OgYjv2f vmqg== 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:content-transfer-encoding; bh=y5JvHTfL3KAJW7sNZfdf0acUJLJFvSpi5rTiY+++JWk=; b=lu1tkcODRjxbK2BUDpeO4qbRfUqQ3u35Jb/keWqqjn6IggJewVi0gHwShL57EQx75k k1ay1P/cg0i0RMJDuKvHFrrrxmyNNtUMb6frYKE/u+e2DwHBoRdhvmoxjhDUluLXLNnO bSh+PO8nFmedfaHNtX5BgmP0kZ6xHsCtbfGyjfwV/KqeoBd2GGug5fYJ563EYbbCI2L7 /IpGuai4kGOnxZbPtafrac0OODTWEPD0DqSEsbZlDwfD4/YCJGp1uimpGth/uxjeOl6K yf+GkVC865jdpV8taul1D5QIHMM6IVHTytJmvP2QMcRf3e8EFqOBK+RGfCaSEKSDmhEn FhXQ== X-Gm-Message-State: AOAM530blTf6pFNV49KrRKHbcpSnmJHzXeD6IUv1yQUTsVChvUT64cbo b3j1HDEVIgsR87Nm/+ak9Ggh9Xi+Qj8oP5xzjaw= X-Received: by 2002:a05:6512:3156:: with SMTP id s22mr14053284lfi.140.1595931492732; Tue, 28 Jul 2020 03:18:12 -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: From: Kevin Tang Date: Tue, 28 Jul 2020 18:18:01 +0800 Message-ID: Subject: Re: [PATCH RFC v5 4/6] drm/sprd: add Unisoc's drm display controller driver To: Emil Velikov 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" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Emil, Sorry, I left for a long time because of other things. Now i'm back~ V6 fix access registers via readl/writel, check unsupported KMS properties (format, rotation, blend mode, etc) by plane_check callback ops and remove always true checks for dpu core ops Add changelog within the corresponding patch from now on, thanks for your advice. BR, Kevin Emil Velikov =E4=BA=8E2020=E5=B9=B43=E6=9C=8820= =E6=97=A5=E5=91=A8=E4=BA=94 =E4=B8=8A=E5=8D=882:07=E5=86=99=E9=81=93=EF=BC= =9A > > Hey Kevin, > > On Sun, 15 Mar 2020 at 23:19, Kevin Tang wrote: > > > > Adds DPU(Display Processor Unit) support for the Unisoc's display subsy= stem. > > It's support multi planes, scaler, rotation, PQ(Picture Quality) and mo= re. > > > > 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