From patchwork Sat Feb 2 15:41:53 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: 10794421 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 65AF9186E for ; Sat, 2 Feb 2019 15:42:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 564A52F161 for ; Sat, 2 Feb 2019 15:42:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 481F42F165; Sat, 2 Feb 2019 15:42:07 +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 003432F165 for ; Sat, 2 Feb 2019 15:42:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 484166E0B8; Sat, 2 Feb 2019 15:42:03 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-oi1-f193.google.com (mail-oi1-f193.google.com [209.85.167.193]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5736A6E0A1; Sat, 2 Feb 2019 15:42:02 +0000 (UTC) Received: by mail-oi1-f193.google.com with SMTP id u18so8277851oie.10; Sat, 02 Feb 2019 07:42:02 -0800 (PST) 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=SsiemEY1j6N6fe9ANipXC2HzByXeQMhc37ccQ7xCioQ=; b=MEpDUTijzOS4m3DP3usA8U6krOVCFL9BgOuSSAzV+UYW7aZj36DnCLwRcicr5iB/fl TLG5AuWlrIIhWu3202iGvKGWW533E07MYHfjx9tyW2F1vc6L4VDoJQvi2Of6dvTbxs9F EIL/JEeA9R8mXlv/nqnV7lu8e2tm0vYhRsxORSb0StMMaDwhCBeEKHKjGgm+0rF11gdC ebHE+Rt5jBEyaTZmyhd2Lhjsdmd2fRM6W9zXW65x0Ba8t0AX/x+FAYeLQQeqMZnRfZvb aQbh6yBIzDA+ik4l19BqC2V5VnxBZn7rJwrkhMCl9ByzE6VSEo9ctyr7oeB+iiyJXwYl o9/Q== X-Gm-Message-State: AHQUAubLp2Vu7cqenLufLVUYjPqudxLeAW0d4C1QNTA+RMfyM4HM9t3V xXX1ObUWYXXuX0Ueo9rspPpkYFg= X-Google-Smtp-Source: ALg8bN4/fQryKocv0fHJU0s5sNPMiW1vnXSyoNumhVW/fUr1LjftJR8aLc9f9cEfI3qpmcRRcnvrag== X-Received: by 2002:aca:7546:: with SMTP id q67mr22409617oic.300.1549122119799; Sat, 02 Feb 2019 07:41:59 -0800 (PST) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id 187sm5215559oic.12.2019.02.02.07.41.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 Feb 2019 07:41:59 -0800 (PST) From: Rob Herring To: dri-devel@lists.freedesktop.org Subject: [PATCH v2 0/5] Add reservation_object to drm_gem_object Date: Sat, 2 Feb 2019 09:41:53 -0600 Message-Id: <20190202154158.10443-1-robh@kernel.org> X-Mailer: git-send-email 2.19.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: Sean Paul , Maxime Ripard , David Airlie , linux-arm-msm@vger.kernel.org, etnaviv@lists.freedesktop.org, Russell King , freedreno@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This series implements the todo to add reservation_object to drm_gem_object. I converted the easy drivers, but not Intel or AMD. The series is build tested only. Rob v2: - Fix missing kerneldoc - Reword todo with what is left todo. - Fix timeout error handling (added to drm_gem_reservation_object_wait) Rob Herring (5): drm: Add reservation_object to drm_gem_object drm: etnaviv: Switch to use drm_gem_object reservation_object drm: msm: Switch to use drm_gem_object reservation_object drm: v3d: Switch to use drm_gem_object reservation_object drm: vc4: Switch to use drm_gem_object reservation_object Documentation/gpu/todo.rst | 8 ++-- drivers/gpu/drm/drm_gem.c | 43 ++++++++++++++++++++ drivers/gpu/drm/drm_prime.c | 1 + drivers/gpu/drm/etnaviv/etnaviv_drv.c | 1 - drivers/gpu/drm/etnaviv/etnaviv_drv.h | 1 - drivers/gpu/drm/etnaviv/etnaviv_gem.c | 16 +++----- drivers/gpu/drm/etnaviv/etnaviv_gem.h | 4 -- drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c | 7 ---- drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c | 22 +++++----- drivers/gpu/drm/msm/msm_drv.c | 1 - drivers/gpu/drm/msm/msm_drv.h | 1 - drivers/gpu/drm/msm/msm_gem.c | 27 ++++-------- drivers/gpu/drm/msm/msm_gem_prime.c | 7 ---- drivers/gpu/drm/msm/msm_gem_submit.c | 8 ++-- drivers/gpu/drm/v3d/v3d_bo.c | 14 +------ drivers/gpu/drm/v3d/v3d_drv.c | 1 - drivers/gpu/drm/v3d/v3d_drv.h | 6 --- drivers/gpu/drm/v3d/v3d_gem.c | 35 ++++------------ drivers/gpu/drm/vc4/vc4_bo.c | 15 +------ drivers/gpu/drm/vc4/vc4_drv.c | 1 - drivers/gpu/drm/vc4/vc4_drv.h | 6 --- drivers/gpu/drm/vc4/vc4_gem.c | 18 ++++---- drivers/gpu/drm/vc4/vc4_plane.c | 2 +- include/drm/drm_gem.h | 21 ++++++++++ 24 files changed, 119 insertions(+), 147 deletions(-) Acked-by: Daniel Vetter