From patchwork Fri Aug 2 19:51:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 11074087 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 1DD0A14E5 for ; Fri, 2 Aug 2019 19:51:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C03C28898 for ; Fri, 2 Aug 2019 19:51:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F1953288A2; Fri, 2 Aug 2019 19:51:56 +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 97E7D28898 for ; Fri, 2 Aug 2019 19:51:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 712CF6E3BF; Fri, 2 Aug 2019 19:51:54 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-io1-f67.google.com (mail-io1-f67.google.com [209.85.166.67]) by gabe.freedesktop.org (Postfix) with ESMTPS id 557106E3BF for ; Fri, 2 Aug 2019 19:51:53 +0000 (UTC) Received: by mail-io1-f67.google.com with SMTP id j6so34878948ioa.5 for ; Fri, 02 Aug 2019 12:51:53 -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=hJ1dStHJHDZt/u7J+jUx9kQUDFd7+pS3b9F7nUFwHYA=; b=pTlWfcFmDvQ6Yilt8Y+PEU0y8nIhLN0XuBkwnon79HU6BrjlcLnGyX/eQ/4RgVhyQ1 RDDFJ0EWvL1eMz0TlQRs+D2Sqmk3t3vv7sbVGq1XYVaw9VL/0XSLK/jS6LP/51XAClwH hWyYZkyWuTt6sbrhBz2A4Wh8gctGmx6KmV0Md30ap6uUOpYiDE9JCgTDAtgp3CZpZ69l POw3xX4X1mgcTvGz8kH5csuDAfQOmRb5qQhz0y8X3p9gECheyMHyu54PbcUSSNd77ccO Nohl60T98cZ1WwvZBqBMoDA00DBeJ9vPMRxpjQX+8YYJr/vRsNJI/1gk9x05tTimo2FQ WWMQ== X-Gm-Message-State: APjAAAWV6V5w15fY5lwj8zVy9qQhCLXBDJE0dzt38u61ycd43CuOu3B6 LjTJt56VeDVGTp95cKpibM0fdgU= X-Google-Smtp-Source: APXvYqxTjDyHe4x7KQaq23T+DTyIohoBHrRK1UdK2pKC2rh+ZThLltY84EdV1Qyk03xGuzvxeZjv2A== X-Received: by 2002:a05:6638:3d2:: with SMTP id r18mr1133283jaq.13.1564775512150; Fri, 02 Aug 2019 12:51:52 -0700 (PDT) Received: from xps15.herring.priv ([64.188.179.254]) by smtp.googlemail.com with ESMTPSA id s4sm98419934iop.25.2019.08.02.12.51.50 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 02 Aug 2019 12:51:51 -0700 (PDT) From: Rob Herring To: dri-devel@lists.freedesktop.org Subject: [PATCH v3 0/8] drm/panfrost: Add heap and no execute buffer allocation Date: Fri, 2 Aug 2019 13:51:42 -0600 Message-Id: <20190802195150.23207-1-robh@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 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: Tomeu Vizoso , Maxime Ripard , Sean Paul , Steven Price , David Airlie , Boris Brezillon , Alyssa Rosenzweig , Robin Murphy Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This series adds new BO allocation flags PANFROST_BO_HEAP and PANFROST_BO_NOEXEC. The heap allocations are paged in on GPU page faults. Tomeu reports he has tested this in the panfrost CI. This is based on drm-misc-next. An updated branch is here[1]. v3: - Retain shared irq support, splitting IRQ changes to separate patch (6/8) - Stop leaking SG tables - Prevent mmap and pinning pages for heap BOs Rob [1] git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git panfrost/heap-noexec Rob Herring (8): drm/gem: Allow sparsely populated page arrays in drm_gem_put_pages drm/shmem: Put pages independent of a SG table being set drm/panfrost: Restructure the GEM object creation drm/panfrost: Split panfrost_mmu_map SG list mapping to its own function drm/panfrost: Add a no execute flag for BO allocations drm/panfrost: Convert MMU IRQ handler to threaded handler drm/panfrost: Add support for GPU heap allocations drm/panfrost: Bump driver version to 1.1 drivers/gpu/drm/drm_gem.c | 3 + drivers/gpu/drm/drm_gem_shmem_helper.c | 4 +- drivers/gpu/drm/panfrost/TODO | 2 - drivers/gpu/drm/panfrost/panfrost_drv.c | 65 ++++++-- drivers/gpu/drm/panfrost/panfrost_gem.c | 106 +++++++++++-- drivers/gpu/drm/panfrost/panfrost_gem.h | 16 +- drivers/gpu/drm/panfrost/panfrost_mmu.c | 200 ++++++++++++++++++++---- include/uapi/drm/panfrost_drm.h | 3 + 8 files changed, 333 insertions(+), 66 deletions(-) --- 2.20.1