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 \(Arm\)" X-Patchwork-Id: 170444 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp1223018ile; Fri, 2 Aug 2019 12:51:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqz35mBREB+wM6xxmw2KLow6CcFFSIbhesYezSmP9hdOMg6+Gu0u0uT0t3uv2i4dR10rkWyG X-Received: by 2002:a17:902:28:: with SMTP id 37mr123073800pla.188.1564775516413; Fri, 02 Aug 2019 12:51:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564775516; cv=none; d=google.com; s=arc-20160816; b=lYfip6BRgCM2fHO6YTboHMlj5OE9tqcVlYo9laP33fQT2Qls+s8Ae7f4Ase5QorBOm UGz0Ut9veEJ6Hc1AuAB8FbeHKdXGmJWxoOAH2HdkLYCEpN42klR3P2Hd/Bh+PmEB91qL kPM2NtNfaglz1CP6dNocSCWQzZiKaYe6nnK5MG4FlftnKR/hU2WBt1Zhxk8p9vzLdhxh O9UQWYZyyc7HlQVTEibdFqECs5N4jxRCA/9eSVrxxHWqD3CiDGHf7RlQhKS/U3YAXK7B 1RS8rdfq2dGR1zKD0ONkIDhuXyTI5/xhGaK4YN31O7nsnUdJXsiz4NSB3P58R9S0PcwO d3WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:message-id:date:subject:to:from :delivered-to; bh=f2nDmAn7rCSEBrmw4d9kzVCllHjrqQSvo4MqQ/hVPVg=; b=nNGWJWHAtIhMT5yFBh1fBDV2SVj9o2EXiYQ7gVP+nIOGmYYJBfsKUPRpCUTVIKOV1L Grqjly157nzQ/FWbQvDqjEKlbBSlxZt3dmlGJIJarRJXsoLD4SqHVOrn0fuRVhYng1sR J4LgVwPJO4mUmeDDwjnb+38Q290vyMR48U7AXglBqtjePl+kewGuMO7SU+SPIdmDW3XI TvNxBq7jrkGJpLmFiGXvhq3GtiJ+ZX2dGc2ohZLvDLU9+1jG5ZjzYw2Uepom/OHbEpw5 sl0eq1kFaVy1qy3x1nbm10SAbzgp4dJidr8seOpyrQscD6oXQOmE2WQeB/4gU5ab9qJT RhpQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id m5si33818396plt.167.2019.08.02.12.51.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 02 Aug 2019 12:51:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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-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" 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