From patchwork Thu Mar 28 05:43:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 10874473 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 21EA1922 for ; Thu, 28 Mar 2019 05:43:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0EAC128BCB for ; Thu, 28 Mar 2019 05:43:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0252F28BF2; Thu, 28 Mar 2019 05:43:46 +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 2EFE328BCB for ; Thu, 28 Mar 2019 05:43:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 92D786E2D6; Thu, 28 Mar 2019 05:43:43 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id A33C86E2D6 for ; Thu, 28 Mar 2019 05:43:41 +0000 (UTC) Received: by mail-pf1-x443.google.com with SMTP id i17so10839830pfo.6 for ; Wed, 27 Mar 2019 22:43:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=TrQTNWtEhX30V68PZvwbW/uKCMAELcI651bhrZMVjrY=; b=sMcne1DGqr6abSNfPHZA4Tig02J+5pjeZEK+IrACoOYH4RLO75L0UZT/6GHsDwLsZg 8n4Bssdj2pBo48AlSaXDJusfqUhdmZeWUwbSF0kcoz371AcFq3OI14ouVIx8OQxALaRm roR889EuFjrisMzqH1tYNxl+gXMmRjG5diEWgkeYj8xZWEY+gwssFhSfgpuwWvtgFf9R 6Ar4RTDThvmAzWQY1SQYwSTVhWi1LMpKRCr3asyCj7ZCe56+z5+Fq8CFJszundbsIkO5 IjL4w2vmQ7cf4sCa0Vq2s4q8bdRkug2zDeqt+pWW7faVgIW4rKRrwck8XFs3pOlQF+Gg kkog== X-Gm-Message-State: APjAAAXtrMdof2hQP0I8gtx/RerekuvuCm+SQpIFj5E/4pC3eXVfO2KH ZgtIzfuF5y23iPQVS9IiSN8= X-Google-Smtp-Source: APXvYqztA777xq55PcpPdnp2+o+wTifJ0KDt1Dwp9HXMVWgXzxHncoZuYMhh0kLKaf87pN4bPRswog== X-Received: by 2002:a63:4a5a:: with SMTP id j26mr29507826pgl.361.1553751821083; Wed, 27 Mar 2019 22:43:41 -0700 (PDT) Received: from voyager.jms.id.au ([36.255.48.244]) by smtp.gmail.com with ESMTPSA id n24sm52508675pfi.123.2019.03.27.22.43.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 Mar 2019 22:43:40 -0700 (PDT) Received: by voyager.jms.id.au (sSMTP sendmail emulation); Thu, 28 Mar 2019 16:13:32 +1030 From: Joel Stanley To: David Airlie , Daniel Vetter , Rob Herring Subject: [PATCH 0/2] drm: Add ASPEED BMC 'GFX' driver Date: Thu, 28 Mar 2019 16:13:14 +1030 Message-Id: <20190328054316.17939-1-joel@jms.id.au> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TrQTNWtEhX30V68PZvwbW/uKCMAELcI651bhrZMVjrY=; b=iLmH72yU8s+MPuXA3wt1SPOY8EqN6OoZCy8cd828YrgyflDkGZh/s7y5Rby5W2nGQP qXF6Hy2TulB0C4GKgnIsRvSc8kaguubLDIfkbaHADAYKsmzlgFMMDDPDHFJ79BAHhz/M EsDXJtOZLd+sZLyChBmxZD1WfZbYfookIi2ss8gg3rhA4iJESEdAGiy3CPDiHzC0nZRY TQMFQIc+qpaaDYvXG8/JFRJx9FnGV8tvhk2SLDpgrrZppsXyK+JwPBJN38YKRAqymMUr eKojYSKNZ0YW5/uyN1SNjndjC8xnf2mXacqsYLyjYrpvwP/u7hWD2gGzVSVBHh+VwP32 wNpw== 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: devicetree@vger.kernel.org, linux-aspeed@lists.ozlabs.org, Andrew Jeffery , dri-devel@lists.freedesktop.org, Maxime Ripard , Sean Paul , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This driver is for the ASPEED BMC SoC's GFX display hardware. This driver runs on the ARM based BMC systems, unlike the ast driver which runs on a host CPU and is is for a PCIe graphics device that happens to live in the BMC's silicon, but is otherwise available for use by the BMC. I submitted a RFC about a year ago. https://patchwork.kernel.org/patch/10339605/ I've fixed all of the issues I had in the RFC, and made the cleanups that Eric suggested in that review. This version is based on next-20190327. Joel Stanley (2): dt-bindings: gpu: Add ASPEED GFX bindings document drm: Add ASPEED GFX driver .../devicetree/bindings/gpu/aspeed-gfx.txt | 41 +++ drivers/gpu/drm/Kconfig | 2 + drivers/gpu/drm/Makefile | 1 + drivers/gpu/drm/aspeed/Kconfig | 15 + drivers/gpu/drm/aspeed/Makefile | 3 + drivers/gpu/drm/aspeed/aspeed_gfx.h | 104 +++++++ drivers/gpu/drm/aspeed/aspeed_gfx_crtc.c | 248 ++++++++++++++++ drivers/gpu/drm/aspeed/aspeed_gfx_drv.c | 269 ++++++++++++++++++ drivers/gpu/drm/aspeed/aspeed_gfx_out.c | 49 ++++ 9 files changed, 732 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpu/aspeed-gfx.txt create mode 100644 drivers/gpu/drm/aspeed/Kconfig create mode 100644 drivers/gpu/drm/aspeed/Makefile create mode 100644 drivers/gpu/drm/aspeed/aspeed_gfx.h create mode 100644 drivers/gpu/drm/aspeed/aspeed_gfx_crtc.c create mode 100644 drivers/gpu/drm/aspeed/aspeed_gfx_drv.c create mode 100644 drivers/gpu/drm/aspeed/aspeed_gfx_out.c