From patchwork Thu Aug 1 03:44:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 11070099 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ABC5513A0 for ; Thu, 1 Aug 2019 03:44:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9121E283C3 for ; Thu, 1 Aug 2019 03:44:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8079F283C8; Thu, 1 Aug 2019 03:44:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1A139283C3 for ; Thu, 1 Aug 2019 03:44:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6DACE6E334; Thu, 1 Aug 2019 03:44:48 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8632C6E334 for ; Thu, 1 Aug 2019 03:44:46 +0000 (UTC) Received: by mail-pf1-x441.google.com with SMTP id m30so33163907pff.8 for ; Wed, 31 Jul 2019 20:44:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=3J53VNWVJBsGu++2k8+xv87EgCNc+PbFLaNFsCRi7RQ=; b=IBsUQv3e/OgGo+ILWVDQlYrkUoIYZBukB/83OxA/FTCPUO9G4Iqrnnw+DdAo2B9YWO EvTW1/e6XffzCaeAtJry5K8KJHxngtiq438laf3c9qJ3lh0I3Q3+VtJVHh3MDC/fcxkz UbylVyn/m3BPFy44uzV1vnrPnh50Z+I65qOkxT9CCJ5Ee2NMNwQF34oi9MCnZTGWTud6 lGBEMo4p0hBvi1AtlvMn4D4Ib6KLPHcs5IAD3a+GrUVA1kxkOEoQR27Qrbajhi6He8Cl Py70ZCrO/O2e0Hs6jdSiTwATNrmO+oXcpe2e5pUuJ0JFDzlfDOH/K5Rk4ZSLBpQSY73O +Xww== X-Gm-Message-State: APjAAAUfsraoD0Uh3lAWjNL8tem7ECJl03+ATd1AHXCf1TKEj3vnlwpi 1h9KV3+ZooesofmWGAS0zL7wyw== X-Google-Smtp-Source: APXvYqyjuNTweoqvOn8fmgje5hXZaV37WmEMLBmbgR+UP13FrngVGkWMmaQRJ58Ci0K3hy8O+LDFFg== X-Received: by 2002:a17:90a:b394:: with SMTP id e20mr6225886pjr.76.1564631085830; Wed, 31 Jul 2019 20:44:45 -0700 (PDT) Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id h70sm64775674pgc.36.2019.07.31.20.44.44 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 31 Jul 2019 20:44:45 -0700 (PDT) From: John Stultz To: lkml Subject: [PATCH v3 00/26] drm: Kirin driver cleanups to prep for Kirin960 support Date: Thu, 1 Aug 2019 03:44:13 +0000 Message-Id: <20190801034439.98227-1-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=3J53VNWVJBsGu++2k8+xv87EgCNc+PbFLaNFsCRi7RQ=; b=y1iVdTDcBUa0wFaA/SURtNmg482d/Gqz0ErVvPR52MUAP3TmRHvMrYgPon2HSmbIXR ldTM9+Jj23uaZCMo7XuO7iZ5nSzgKpD2vyT3tIHCwGiV8LWJgjhxxE8kyMsN82n9npD+ Gbhu79TbuSbbVM2RHq/yt6PJQVhFDvtTdcmsw1WzGyqV9g+wMDfFXDZmBCcqr2CQ6i6Z vVdQWYGbCqQDN4gV9vPXAGXnfvwFWPP9Wc9TiD/kl3vtlUFNn53yKRBB/pGn3E268/Y+ ZP0bvLWWNu6eiIBlu9c//MM/69xgvI30ytxI9nPTx3sLTM/Lbh01qvq3uPrIPKsi3tgb uscw== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , dri-devel , Rongrong Zou , Sam Ravnborg MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP I was reminded I had sent this out a few months ago, but forgot all about it! Apologies! Anyway, I wanted to resubmit this patch set so I didn't have to continue carrying it forever to keep the HiKey960 board running. This patchset contains one fix (in the front, so its easier to eventually backport), and a series of changes from YiPing to refactor the kirin drm driver so that it can be used on both kirin620 based devices (like the original HiKey board) as well as kirin960 based devices (like the HiKey960 board). The full kirin960 drm support is still being refactored, but as this base kirin rework was getting to be substantial, I wanted to send out the first chunk for some initial review, so that the review burden wasn't overwhelming. The full HiKey960 patch stack can be found here: https://git.linaro.org/people/john.stultz/android-dev.git/log/?h=dev/hikey960-mainline-WIP Feedback would be greatly appreciated! thanks -john Cc: Rongrong Zou Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel Cc: Sam Ravnborg Da Lv (1): drm: kirin: Fix for hikey620 display offset problem John Stultz (4): drm: kirin: Get rid of drmP.h includes drm: kirin: Remove HISI_KIRIN_DW_DSI config option drm: kirin: Remove unreachable return drm: kirin: Move workqueue to ade_hw_ctx structure Xu YiPing (21): drm: kirin: Remove uncessary parameter indirection drm: kirin: Remove out_format from ade_crtc drm: kirin: Rename ade_plane to kirin_plane drm: kirin: Rename ade_crtc to kirin_crtc drm: kirin: Dynamically allocate the hw_ctx drm: kirin: Move request irq handle in ade hw ctx alloc drm: kirin: Move kirin_crtc, kirin_plane, kirin_format to kirin_drm_drv.h drm: kirin: Reanme dc_ops to kirin_drm_data drm: kirin: Move ade crtc/plane help functions to driver_data drm: kirin: Move channel formats to driver data drm: kirin: Move mode config function to driver_data drm: kirin: Move plane number and primay plane in driver data drm: kirin: Move config max_width and max_height to driver data drm: kirin: Move drm driver to driver data drm: kirin: Add register connect helper functions in drm init drm: kirin: Rename plane_init and crtc_init drm: kirin: Fix dev->driver_data setting drm: kirin: Make driver_data variable non-global drm: kirin: Add alloc_hw_ctx/clean_hw_ctx ops in driver data drm: kirin: Pass driver data to crtc init and plane init drm: kirin: Move ade drm init to kirin drm drv drivers/gpu/drm/hisilicon/kirin/Kconfig | 10 +- drivers/gpu/drm/hisilicon/kirin/Makefile | 4 +- .../gpu/drm/hisilicon/kirin/kirin_ade_reg.h | 1 + .../gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 360 +++++++----------- .../gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 257 +++++++++---- .../gpu/drm/hisilicon/kirin/kirin_drm_drv.h | 48 ++- 6 files changed, 379 insertions(+), 301 deletions(-)