From patchwork Mon Apr 1 07:47:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 10879275 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 8579315AC for ; Mon, 1 Apr 2019 07:47:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6FD95285BE for ; Mon, 1 Apr 2019 07:47:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 63E1C28745; Mon, 1 Apr 2019 07:47:50 +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 EC30C285BE for ; Mon, 1 Apr 2019 07:47:49 +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=qwwzi/TmpS82S6lzmwVhCD+QQ84m1nFgORDmDwkGii8=; b=pNhVLe65btd+ok Fb48478PY+cHT+CyW67/Ml2y0w+WnSq9vW9fD2jI+U85ROiLJh+klW0QCBwBL3f7q9U1V5atfF3oF tclM9yVMuXJ8EEYWxkoh3jS2+vCS0Gl4zoSUmHWHWcPI8afuJGakYkReCCG+yw7tMULgquYSu/AaZ Jbc7oau0FaGJcoG+LC9d8VecnZcBAJdoYZPvbfyc4EUxQYF9MYZmdRzTLu9D628hp4EY30dO5jb5N jI3XwCclRlp7z/XevouofvqpAFywX6CQvZlaC4pggAlERPQLsMyjkLTchYO7yRvXG4ad//Hu0WzuN +EadIHwuzwVHjW/yxEQg==; 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 1hArfT-0005Ho-4p; Mon, 01 Apr 2019 07:47:43 +0000 Received: from mail-pf1-f193.google.com ([209.85.210.193]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hArfO-0005CV-Nf for linux-arm-kernel@lists.infradead.org; Mon, 01 Apr 2019 07:47:40 +0000 Received: by mail-pf1-f193.google.com with SMTP id r15so4122239pfn.9 for ; Mon, 01 Apr 2019 00:47:38 -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:mime-version :content-transfer-encoding; bh=hLFIabtfPdGj+2XLCFlOKbrmi9QIk3TU0jAr0rq6mdA=; b=W8tmaMG11Zb4wNO5vdrW9szv2c/3YfxVt1wjjN70rGWl2H2OMSpz9a/dpwTi6z8TnA jG9oPUMZscw79vVAfhXEaFEsk29IMOcMAmCYVNadBg4HcpNgaGZ4jlRvSrFGsvRgHwpw ZyyhUxYji4oQp+/VSXTGnjhVq7s0WyCew8cv8B2mSf1zsAvtr4WCd3zCXX82D4VYRPGg eZhBOhAw6kLxLoGXrAUX2jrn9AG/jwNhY8a1gMlBxAXksNra6jzGGFumy2dkOgIhBl09 G1ea8UFP5CVhL++CDPHHI+DIjxiVdgqcteGx22ovyMgfXEauaWA1v93naHg8FevXAN1R Z9+Q== X-Gm-Message-State: APjAAAUcDGshaHbj2hOzOZ7QVev/oE0KzemIYrLCa9zBQ6A1LJKGI9kX abd2uqeiDTKEdI9B/lLVVA== X-Google-Smtp-Source: APXvYqyjWUMBverUxwJmcUwT0Gjd3rNJDhuncpwezQB9+U/dI8QmFa4yPJMj9q0G7FdQA4pmL+cTXg== X-Received: by 2002:a62:1c07:: with SMTP id c7mr23011676pfc.159.1554104857107; Mon, 01 Apr 2019 00:47:37 -0700 (PDT) Received: from xps15.imgcgcw.net ([147.50.13.10]) by smtp.googlemail.com with ESMTPSA id o5sm33428950pfa.135.2019.04.01.00.47.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Apr 2019 00:47:36 -0700 (PDT) From: Rob Herring To: dri-devel@lists.freedesktop.org Subject: [PATCH v2 0/3] Initial Panfrost driver Date: Mon, 1 Apr 2019 02:47:27 -0500 Message-Id: <20190401074730.12241-1-robh@kernel.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190401_004738_841262_B70103BA X-CRM114-Status: GOOD ( 12.89 ) 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: Sean Paul , Lyude Paul , Eric Anholt , Maxime Ripard , Maarten Lankhorst , Joerg Roedel , Neil Armstrong , Will Deacon , linux-kernel@vger.kernel.org, David Airlie , iommu@lists.linux-foundation.org, Alyssa Rosenzweig , Daniel Vetter , Robin Murphy , 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 Here's v2 of the panfrost driver. Lots of improvements from the RFC primarily with support for job hangs resetting the GPU and runtime-pm thanks to Tomeu. Several dependencies have been applied already, but the first 2 patches are the remaining dependencies. We need to take the iommu change via drm-misc or we need a stable branch. A git branch is here[1]. Rob [1] git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git panfrost-rebase-v2 Rob Herring (3): iommu: io-pgtable: Add ARM Mali midgard MMU page table format drm: Add a drm_gem_objects_lookup helper drm/panfrost: Add initial panfrost driver drivers/gpu/drm/Kconfig | 2 + drivers/gpu/drm/Makefile | 1 + drivers/gpu/drm/drm_gem.c | 46 +- drivers/gpu/drm/panfrost/Kconfig | 14 + drivers/gpu/drm/panfrost/Makefile | 12 + drivers/gpu/drm/panfrost/TODO | 27 + drivers/gpu/drm/panfrost/panfrost_devfreq.c | 191 +++++++ drivers/gpu/drm/panfrost/panfrost_devfreq.h | 14 + drivers/gpu/drm/panfrost/panfrost_device.c | 227 ++++++++ drivers/gpu/drm/panfrost/panfrost_device.h | 118 ++++ drivers/gpu/drm/panfrost/panfrost_drv.c | 484 ++++++++++++++++ drivers/gpu/drm/panfrost/panfrost_features.h | 309 +++++++++++ drivers/gpu/drm/panfrost/panfrost_gem.c | 92 +++ drivers/gpu/drm/panfrost/panfrost_gem.h | 29 + drivers/gpu/drm/panfrost/panfrost_gpu.c | 374 +++++++++++++ drivers/gpu/drm/panfrost/panfrost_gpu.h | 19 + drivers/gpu/drm/panfrost/panfrost_issues.h | 176 ++++++ drivers/gpu/drm/panfrost/panfrost_job.c | 556 +++++++++++++++++++ drivers/gpu/drm/panfrost/panfrost_job.h | 51 ++ drivers/gpu/drm/panfrost/panfrost_mmu.c | 366 ++++++++++++ drivers/gpu/drm/panfrost/panfrost_mmu.h | 17 + drivers/gpu/drm/panfrost/panfrost_regs.h | 298 ++++++++++ drivers/iommu/io-pgtable-arm.c | 93 +++- drivers/iommu/io-pgtable.c | 1 + include/drm/drm_gem.h | 2 + include/linux/io-pgtable.h | 7 + include/uapi/drm/panfrost_drm.h | 140 +++++ 27 files changed, 3633 insertions(+), 33 deletions(-) create mode 100644 drivers/gpu/drm/panfrost/Kconfig create mode 100644 drivers/gpu/drm/panfrost/Makefile create mode 100644 drivers/gpu/drm/panfrost/TODO create mode 100644 drivers/gpu/drm/panfrost/panfrost_devfreq.c create mode 100644 drivers/gpu/drm/panfrost/panfrost_devfreq.h create mode 100644 drivers/gpu/drm/panfrost/panfrost_device.c create mode 100644 drivers/gpu/drm/panfrost/panfrost_device.h create mode 100644 drivers/gpu/drm/panfrost/panfrost_drv.c create mode 100644 drivers/gpu/drm/panfrost/panfrost_features.h create mode 100644 drivers/gpu/drm/panfrost/panfrost_gem.c create mode 100644 drivers/gpu/drm/panfrost/panfrost_gem.h create mode 100644 drivers/gpu/drm/panfrost/panfrost_gpu.c create mode 100644 drivers/gpu/drm/panfrost/panfrost_gpu.h create mode 100644 drivers/gpu/drm/panfrost/panfrost_issues.h create mode 100644 drivers/gpu/drm/panfrost/panfrost_job.c create mode 100644 drivers/gpu/drm/panfrost/panfrost_job.h create mode 100644 drivers/gpu/drm/panfrost/panfrost_mmu.c create mode 100644 drivers/gpu/drm/panfrost/panfrost_mmu.h create mode 100644 drivers/gpu/drm/panfrost/panfrost_regs.h create mode 100644 include/uapi/drm/panfrost_drm.h Reviewed-by: Eric Anholt --- 2.19.1