From patchwork Tue Aug 20 14:53:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 11103943 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E90021398 for ; Tue, 20 Aug 2019 14:53:53 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D15E722DA9 for ; Tue, 20 Aug 2019 14:53:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D15E722DA9 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ffwll.ch Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E5E666E3F2; Tue, 20 Aug 2019 14:53:49 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) by gabe.freedesktop.org (Postfix) with ESMTPS id 264396E3F2 for ; Tue, 20 Aug 2019 14:53:49 +0000 (UTC) Received: by mail-ed1-x541.google.com with SMTP id f22so6639553edt.4 for ; Tue, 20 Aug 2019 07:53:49 -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=LsMJOd+Vr//gN++n1h4q4g+7EoS55VUTthL4UKw+YSU=; b=WuIKxX5d8bRQGLox7SfvpkCG740+DXKYKflnfhMYIrk+dGwtYldazuS9Zbu1l5eIOK ZC8E6WRmX/k92BqM+Q0nrrE+4FdQc/g1jItRSKPEDr7vbSNoJU58qXkJ7gYQrua4mHdA tSJ4yG4sNpNVzzSVBCiS3MuJZ17ZsW0CNdy4yRM3Rr34HpIZ8NZJa3JcnrOGITBka4pA cKHM09ob6tHDVNO1D8iMMrDmvkie8L35vEAVFmiFAgGB5zl0Kuv2rGMq/wZx/m4tFOWX YYC1ORAG/BUok8UF0WuzvLL1nicFwh2GYV1TcYEVdG9pKG+ML361TaUkMRxLuh3tYrvH GlQg== X-Gm-Message-State: APjAAAV66F3PdxXRzWJE68qnFZIs2JEWYZMiI7FZA13MnxauPj3ACA4c 020kqbuAC7mBeZmLa0cJY+NJRJTMBOq7qQ== X-Google-Smtp-Source: APXvYqx39b8WQ8cjuikbb7ChkoPkPfrRCz+xbBXsy47esCFIewmw1A7ArYI1XI+tGWiwnjmYLEml1w== X-Received: by 2002:a17:906:8481:: with SMTP id m1mr26391383ejx.43.1566312827412; Tue, 20 Aug 2019 07:53:47 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:569e:0:3106:d637:d723:e855]) by smtp.gmail.com with ESMTPSA id a16sm2644744ejr.10.2019.08.20.07.53.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Aug 2019 07:53:46 -0700 (PDT) From: Daniel Vetter To: DRI Development Subject: [PATCH 0/3] RFC/T: dma_resv vs. mmap_sem Date: Tue, 20 Aug 2019 16:53:33 +0200 Message-Id: <20190820145336.15649-1-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.23.0.rc1 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LsMJOd+Vr//gN++n1h4q4g+7EoS55VUTthL4UKw+YSU=; b=ewbGJKKLFczcRpgEtOveyeMJLcgNDVHu/iPkMNlEkfyqy2LMcT5eqBqGseN0ruEh7V OAvnNmDapPwyKgwgWtdq2iSsbsiwxS+xIkyZFGIPXn+2CNJEqJ0CHpN5zwS+SRf2oVGO Jhf6GXCnkZE1amRJiBGSRCqwiO/3UzCtcbr0w= 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: Daniel Vetter , Intel Graphics Development Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi all, As part of all the recent discussions around ttm and dma_resv I started looking into this. The goal (at least somewhen in the near future) is to have it all documented and the cross-driver semantics locked down as much as possible. One of the biggest issues there is how the dma_resv ww_mutex fits into the overall locking hierarchy, especially wrt core mm locks. This patch series should fix that. Comments, review and especially testing (there's only so much you can do with auditing) very much appreciated. Cheers, Daniel Daniel Vetter (3): dma_resv: prime lockdep annotations drm/nouveau: slowpath for pushbuf ioctl drm/ttm: remove ttm_bo_wait_unreserved drivers/dma-buf/dma-resv.c | 12 ++++++ drivers/gpu/drm/nouveau/nouveau_gem.c | 57 ++++++++++++++++++--------- drivers/gpu/drm/ttm/ttm_bo.c | 34 ---------------- drivers/gpu/drm/ttm/ttm_bo_vm.c | 26 +----------- include/drm/ttm/ttm_bo_api.h | 1 - 5 files changed, 51 insertions(+), 79 deletions(-)