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: 10874479 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 7540A186E for ; Thu, 28 Mar 2019 05:44:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5D5D728BCB for ; Thu, 28 Mar 2019 05:44:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5150A28BE7; Thu, 28 Mar 2019 05:44:03 +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,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0184628BF3 for ; Thu, 28 Mar 2019 05:44:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=L684REp34dxWaxfFV2JG99+cs82CiAMiHPqCZVkT8Cc=; b=ptUP+3Nl32lvui gcJNHmeKzgXamgP/13hBUJU4+xHL1PjXycIX2zNOdKnlccWf/X91rmDg6gc29g2FTFouA4FxxXgxG ib4+F2TUWy7gb3+SACAEL44CKMlJYAg7uu4+XdccZObpXylK0ODOjCRXWUtf0XAtK6dYWSGZfKpg0 jvkmgYRklBt/XPZzErS/27+fGn44flqu1jae7tb6kNEK/wl2U0DAFSVxwV0v9Dvyery9ri0todhCV I3bSSCMhAy7EzILcBIK7nA2IyYotd82omL2gG9G7JiLhi4ASgwycU2QjMUwrDAhpuZaUQstXdy97f yyZcqFdeX4HdK0yx3ubg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h9NpO-0005BV-HT; Thu, 28 Mar 2019 05:43:50 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h9NpG-0005Aw-Mt for linux-arm-kernel@lists.infradead.org; Thu, 28 Mar 2019 05:43:49 +0000 Received: by mail-pf1-x444.google.com with SMTP id 9so10808188pfj.13 for ; Wed, 27 Mar 2019 22:43:41 -0700 (PDT) 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-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=DiKE7Y4WkjY4HLgQ105pOK7yqkIt8JRFvP6ZHvnYiQmaj9LqK5zFbye6MvPfAia9aH xTP2kchBsgc140KYWmT+bQBNgNYP7bYVCwYNBya18HqYw/gZgBxOtzcq0Q5lHQDsRj34 Qk3Nmaulzg6L7vO+vV3vi9ibNpIEOLQudYSCKRsbHrZOn+DqgK2ODaTTkcT7BuWxcQWi tAeMdgeOhM8vAg7XctlttaM7AvUgjV00+OaGpI1rO8EtGRcfCh7iSyVQCAdmZt+o+rbr uDaD8ezLBoYjGkQQaQfIa5wnkrRaMwL+HNS8aFiQGUJy7YwI3FXbJTh03z+Unl4kjq1+ Rmmg== X-Gm-Message-State: APjAAAV4lyE6JGAyRKK5/0uxs4yzsgNwmfnKqeUQsHkLVTcQDGLGnQ21 tbZaFBHH7EIyRpSpfIeje44= 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190327_224342_807363_17664BE0 X-CRM114-Status: GOOD ( 12.94 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-aspeed@lists.ozlabs.org, Andrew Jeffery , Maarten Lankhorst , dri-devel@lists.freedesktop.org, Maxime Ripard , Sean Paul , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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