Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp715680yba; Mon, 1 Apr 2019 15:28:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqyqxowF6ynmVjzLGkAZU/HFDkjgR34hEYksXWxHV+zdNvrZtTGwPzJfzMXWS+jKr1hYmA7J X-Received: by 2002:a63:4b21:: with SMTP id y33mr10596051pga.37.1554157694392; Mon, 01 Apr 2019 15:28:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554157694; cv=none; d=google.com; s=arc-20160816; b=FJ8S4GwbjAzxPONAObwPExnuOD+iwl0OjLbogITHwH0Iwkc60fxS6EuqLo6GiuR0wK 14DFrPl/rQSyeAYb/qelU8e7YqBHnAWDbAfhA+1sMzU1plW5FStFW+bubuZTpxT3PStm NzE0SQx3PkU6wiPwMRl/p3GJuimnTOkWy2NeN5z8NMluzCHeamVa27oJxYNg33d7TKdk 8j7JZeQR/QjKbYAUhRbCBQqtYq9aI/TAr8Ox/SmlStda9rWTkkpA19QfY8f+xUdrNEgu JtPsqkxyQt3g/rOkbHWG6TP6BVYGgCD7IyCEt0KxO8tw7Y0/w87QWW61vD199C0GTL0f gCUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=kgVqaML7ctz7j3IF8sbBPHb92/Z8jnxPgEEZ0GXl68o=; b=K2nxljKUGE+GRmNG6GxmFlw9TowYy8xMeIRMma9rQeEKsgsIaaln+LrCDRIRzoY/ax kPuwij+BqjbpV+xo8IP1HUDq4+Ps5Yyl+C3L7uHCSqi2roMjDzLlmYWilY1klI1A7lm/ cRWPgKeWInKX9TcY5wl+rcugSBIT1vKxc7OBpxKQwytb/+ve4jaay9Mr/hbpB5Bn8naM dX/Hp3RRQ8SqSH/HjkNuVaPpAbzKsFifjfrRSVrx00YoQLgL4EcoTuCrtHGXKkpwsaoC iu1yPI9egiB8JMq6YJ2xb9UkkuDwCH4aw4ygw6ihx2+y+ogJ2r6LJewJXe0aF/CQgZIm IAyA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u10si9598503pgh.255.2019.04.01.15.27.42; Mon, 01 Apr 2019 15:28:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726968AbfDAW0o (ORCPT + 99 others); Mon, 1 Apr 2019 18:26:44 -0400 Received: from anholt.net ([50.246.234.109]:48332 "EHLO anholt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725891AbfDAW0n (ORCPT ); Mon, 1 Apr 2019 18:26:43 -0400 Received: from localhost (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id CC64610A28B1; Mon, 1 Apr 2019 15:26:42 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at anholt.net Received: from anholt.net ([127.0.0.1]) by localhost (kingsolver.anholt.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id AyzxENQ2BFOi; Mon, 1 Apr 2019 15:26:40 -0700 (PDT) Received: from eliezer.anholt.net (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id C9EFF10A2A1B; Mon, 1 Apr 2019 15:26:36 -0700 (PDT) Received: by eliezer.anholt.net (Postfix, from userid 1000) id AC2262FE33BA; Mon, 1 Apr 2019 15:26:35 -0700 (PDT) From: Eric Anholt To: dri-devel@lists.freedesktop.org Cc: linux-kernel@vger.kernel.org, david.emett@broadcom.com, thomas.spurden@broadcom.com, Rob Herring , Qiang Yu , Eric Anholt Subject: [PATCH 0/7] DRM fence list helpers, V3D CSD support. Date: Mon, 1 Apr 2019 15:26:28 -0700 Message-Id: <20190401222635.25013-1-eric@anholt.net> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The DRM fence list helpers came from needing to fix implicit synchronization on V3D (serious flickering in X11 once you had multiple clients involved), a bug I think I noticed in panfrost, and having recently reviewed lima and liked their model. Compared to lima, I chose to use xarray as the storage, as I think it cleans things up significantly. The last_dep thing is a little gross, but Matthew Wilcox is thinking about giving us an xarray pop function soon that would let us drop that. Unfortunately, rebasing the V3D side of things to before the job refactor was a bit more work than I was ready for, so I'm resending it and Ccing the Broadcom folks again in the hope that they might be able to review or ack it. I would still accept an ack from anyone willing to do so -- the userspace has been sitting around for a long time at this point, and I'd love to get it merged. Eric Anholt (7): drm/v3d: Switch the type of job-> to reduce casting. drm/v3d: Refactor job management. drm/v3d: Add support for compute shader dispatch. drm/v3d: Drop reservation of a shared slot in the dma-buf reservations. drm: Add helpers for setting up an array of dma_fence dependencies. drm/v3d: Add missing implicit synchronization. drm/lima: Use the drm_gem_fence_array_add helpers for our deps. drivers/gpu/drm/drm_gem.c | 94 ++++++ drivers/gpu/drm/lima/lima_gem.c | 37 +- drivers/gpu/drm/lima/lima_sched.c | 66 +--- drivers/gpu/drm/lima/lima_sched.h | 6 +- drivers/gpu/drm/v3d/v3d_debugfs.c | 22 ++ drivers/gpu/drm/v3d/v3d_drv.c | 10 +- drivers/gpu/drm/v3d/v3d_drv.h | 104 +++--- drivers/gpu/drm/v3d/v3d_fence.c | 2 + drivers/gpu/drm/v3d/v3d_gem.c | 545 +++++++++++++++++++----------- drivers/gpu/drm/v3d/v3d_irq.c | 24 +- drivers/gpu/drm/v3d/v3d_regs.h | 73 ++++ drivers/gpu/drm/v3d/v3d_sched.c | 380 ++++++++++++++------- drivers/gpu/drm/v3d/v3d_trace.h | 94 ++++++ include/drm/drm_gem.h | 5 + include/uapi/drm/v3d_drm.h | 28 ++ 15 files changed, 1019 insertions(+), 471 deletions(-) -- 2.20.1