Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 681D7C433EF for ; Mon, 20 Dec 2021 13:58:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233220AbhLTN6Q (ORCPT ); Mon, 20 Dec 2021 08:58:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233077AbhLTN6P (ORCPT ); Mon, 20 Dec 2021 08:58:15 -0500 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16DE8C061574; Mon, 20 Dec 2021 05:58:15 -0800 (PST) Received: by mail-lf1-x129.google.com with SMTP id bq20so20815936lfb.4; Mon, 20 Dec 2021 05:58:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=7ouFKNSuzmfC87LG9ZgCCjaB7bkrun24Ddt4sKJwaOQ=; b=i91OZUJfYkDWb9tQaYcFMcS75YkF5+FLepE9M2Ic0FEMHLkYnFJ6bzuQX+z8lj8L// JspWJDdnuGwr2mYY3sGNWn5A9zfv9JHRzoFRyuf/dotR36dZDcnNxkQNer1CTVYctynp H3k6uChHtZyDVTGNxk+zj1blZ2Zx+8CXA85dncsJdXvt/wU82hFNCyjYy1PBTAoftAhC 0cBmYHDokRk16IBOVj7z6Q9FJPp/g7Pz+gF/mz+bKejpfXnyXXZKOPh/2u/F+1vdnlFG T8zbeTptbujhZIbuBGoGwPkuxhnLeKEJEfF9qxLzEgjqvvpIVI+I11un9+mkmADpD7d8 2YKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=7ouFKNSuzmfC87LG9ZgCCjaB7bkrun24Ddt4sKJwaOQ=; b=oTnvDPDkQCLRiMDvtaLTRnuvv9oibpl6XSBSfcN1uEdZ0eKukhuCZzkWa5W0SSJ66W nwTCeuvAXQAer0sE6Nou/oit4i6o85G2zuI2Wlg7IAONQEG1HXNIWYky13jePULkjgIh esF7zsTec6xy63HJjvOot+eko3BevT1pcAOobScOA0qlCksDXfHduFLww67UaASKH8H5 kx/D8SQ0R4tdwpdRM3ZuxKq4OGtgWWkDrG4e6p1YBAt9eJpleHI227oFp5ElP48RYykb EBpcPYGlJyMcYAnEiiGFjodMT3Py9dV0F3/VgxJS1+zhF0tc3eAOUUpNZRRZJXnXYFgq dxig== X-Gm-Message-State: AOAM531Dazgbn1n4TSkg+CcX4scHZg3rxw5OahXlyUZljX0JUkV4Et/Z xrl1+SgtutYMSk+Cftc3d4OsTpGeActbQlHtGyB03sWNCve3uw== X-Google-Smtp-Source: ABdhPJzUXUjQ9dqcfgV5JqQePq6bsxcmf+xRGfNCXBq1PFsubiUDoc5B5wrjr3Q9Pp0QP2lWZf1ixDEFbOs45sHkE6U= X-Received: by 2002:a05:6512:3d92:: with SMTP id k18mr8434126lfv.111.1640008693358; Mon, 20 Dec 2021 05:58:13 -0800 (PST) MIME-Version: 1.0 References: <20211207142717.30296-1-kevin3.tang@gmail.com> In-Reply-To: <20211207142717.30296-1-kevin3.tang@gmail.com> From: Kevin Tang Date: Mon, 20 Dec 2021 21:55:06 +0800 Message-ID: Subject: Re: [PATCH v8 0/6] Add Unisoc's drm kms module To: maarten.lankhorst@linux.intel.com, mripard@kernel.org, sean@poorly.run, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, mark.rutland@arm.com Cc: orsonzhai@gmail.com, zhang.lyra@gmail.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, Kevin Tang , pony1.wu@gmail.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear Maarten, I see it from the cgit.freedesktop.org, our sprd drivers seems has been merged into drm-misc. Now, what shall we do next? BR, Best wishes Kevin Tang =E4=BA=8E2021=E5=B9=B412=E6=9C=887=E6=97= =A5=E5=91=A8=E4=BA=8C 22:27=E5=86=99=E9=81=93=EF=BC=9A > > ChangeList: > RFC v1: > 1. only upstream modeset and atomic at first commit. > 2. remove some unused code; > 3. use alpha and blend_mode properties; > 3. add yaml support; > 4. remove auto-adaptive panel driver; > 5. bugfix > > RFC v2: > 1. add sprd crtc and plane module for KMS, preparing for multi crtc&encod= er > 2. remove gem drivers, use generic CMA handlers > 3. remove redundant "module_init", all the sub modules loading by KMS > > RFC v3: > 1. multi crtc&encoder design have problem, so rollback to v1 > > RFC v4: > 1. update to gcc-linaro-7.5.0 > 2. update to Linux 5.6-rc3 > 3. remove pm_runtime support > 4. add COMPILE_TEST, remove unused kconfig > 5. "drm_dev_put" on drm_unbind > 6. fix some naming convention issue > 7. remove semaphore lock for crtc flip > 8. remove static variables > > RFC v5: > 1. optimize encoder and connector code implementation > 2. use "platform_get_irq" and "platform_get_resource" > 3. drop useless function return type, drop unless debug log > 4. custom properties should be separate, so drop it > 5. use DRM_XXX replase pr_xxx > 6. drop dsi&dphy hal callback ops > 7. drop unless callback ops checking > 8. add comments for sprd dpu structure > > RFC v6: > 1. Access registers via readl/writel > 2. Checking for unsupported KMS properties (format, rotation, blend_mode,= etc) on plane_check ops > 3. Remove always true checks for dpu core ops > > RFC v7: > 1. Fix DTC unit name warnings > 2. Fix the problem of maintainers > 3. Call drmm_mode_config_init to mode config init > 4. Embed drm_device in sprd_drm and use devm_drm_dev_alloc > 5. Replace DRM_XXX with drm_xxx on KMS module, but not suitable for other= subsystems > 6. Remove plane_update stuff, dpu handles all the HW update in crtc->atom= ic_flush > 7. Dsi&Dphy Code structure adjustment, all move to "sprd/" > > v0: > 1. Remove dpu_core_ops stuff layer for sprd drtc driver, but dpu_layer ne= ed to keeping. > Because all the HW update in crtc->atomic_flush, we need temporary sto= rage all layers for > the dpu pageflip of atomic_flush. > 2. Add ports subnode with port@X. > > v1: > 1. Remove dphy and dsi graph binding, merge the dphy driver into the dsi. > 2. Add commit messages for Unisoc's virtual nodes. > > v2: > 1. Use drm_xxx to replace all DRM_XXX. > 2. Use kzalloc to replace devm_kzalloc for sprd_dsi/sprd_dpu structure in= it. > 3. Remove dpu_core_ops midlayer. > > v3: > 1. Remove dpu_layer midlayer and commit layers by aotmic_update > > v4: > 1. Move the devm_drm_dev_alloc to master_ops->bind function. > 2. The managed drmm_mode_config_init() it is no longer necessary for driv= ers to explicitly call drm_mode_config_cleanup, so delete it. > 3. Use drmm_helpers to allocate crtc ,planes and encoder. > 4. Move allocate crtc ,planes, encoder to bind funtion. > 5. Move rotation enum definitions to crtc layer reg bitfields. > > v5: > 1. Remove subdir-ccflgas-y for Makefile. > 2. Keep the selects sorted by alphabet for Kconfig. > 3. Fix the checkpatch warnings. > 4. Use mode_set_nofb instead of mode_valid callback. > 5. Follow the OF-Graph bindings, use of_graph_get_port_by_id instead of o= f_parse_phandle. > 6. Use zpos to represent the layer position. > 7. Rebase to last drm misc branch. > 8. Remove panel_in port for dsi node. > 9. Drop the dsi ip file prefix. > 10. Add Signed-off-by for dsi&dphy patch. > 11. Use the mode_flags of mipi_dsi_device to setup crtc DPI and EDPI mode= . > > v6: > 1. Disable and clear interrupts before register dpu IRQ > 2. Init dpi config used by crtc_state->adjusted_mode on mode_set_nofb > 3. Remove enable_irq and disable_irq function call. > 4. Remove drm_format_info function call. > 5. Redesign the way to access the dsi register. > 6. Reduce the dsi_context member variables. > > v7: > 1. Fix codeing style issue by checkpatch. > 2. Drop the pll registers structure define. > 3. Use bridge API instead of drm panel API. > 4. Register mipi_dsi_host on probe phase; > 5. Remove iommu error interrupt handling function. > 6. Remove some unused function. > > v8: > 1. Fix missing signed-off-by. > 2. Move component_add to dsi_host.attach callback. > > Kevin Tang (6): > dt-bindings: display: add Unisoc's drm master bindings > drm/sprd: add Unisoc's drm kms master > dt-bindings: display: add Unisoc's dpu bindings > drm/sprd: add Unisoc's drm display controller driver > dt-bindings: display: add Unisoc's mipi dsi controller bindings > drm/sprd: add Unisoc's drm mipi dsi&dphy driver > > .../display/sprd/sprd,display-subsystem.yaml | 64 + > .../display/sprd/sprd,sharkl3-dpu.yaml | 77 ++ > .../display/sprd/sprd,sharkl3-dsi-host.yaml | 88 ++ > drivers/gpu/drm/Kconfig | 2 + > drivers/gpu/drm/Makefile | 1 + > drivers/gpu/drm/sprd/Kconfig | 13 + > drivers/gpu/drm/sprd/Makefile | 8 + > drivers/gpu/drm/sprd/megacores_pll.c | 305 +++++ > drivers/gpu/drm/sprd/sprd_dpu.c | 880 ++++++++++++++ > drivers/gpu/drm/sprd/sprd_dpu.h | 109 ++ > drivers/gpu/drm/sprd/sprd_drm.c | 205 ++++ > drivers/gpu/drm/sprd/sprd_drm.h | 19 + > drivers/gpu/drm/sprd/sprd_dsi.c | 1073 +++++++++++++++++ > drivers/gpu/drm/sprd/sprd_dsi.h | 126 ++ > 14 files changed, 2970 insertions(+) > create mode 100644 Documentation/devicetree/bindings/display/sprd/sprd,d= isplay-subsystem.yaml > create mode 100644 Documentation/devicetree/bindings/display/sprd/sprd,s= harkl3-dpu.yaml > create mode 100644 Documentation/devicetree/bindings/display/sprd/sprd,s= harkl3-dsi-host.yaml > create mode 100644 drivers/gpu/drm/sprd/Kconfig > create mode 100644 drivers/gpu/drm/sprd/Makefile > create mode 100644 drivers/gpu/drm/sprd/megacores_pll.c > create mode 100644 drivers/gpu/drm/sprd/sprd_dpu.c > create mode 100644 drivers/gpu/drm/sprd/sprd_dpu.h > create mode 100644 drivers/gpu/drm/sprd/sprd_drm.c > create mode 100644 drivers/gpu/drm/sprd/sprd_drm.h > create mode 100644 drivers/gpu/drm/sprd/sprd_dsi.c > create mode 100644 drivers/gpu/drm/sprd/sprd_dsi.h > > -- > 2.29.0 >