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 X-Patchwork-Id: 157342 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1832946jaa; Sat, 2 Feb 2019 07:42:03 -0800 (PST) X-Google-Smtp-Source: ALg8bN6iuz2Fxe9P7F9/jm5tlQNQg5IQPJFDcKhZjDQPmyko97Et/RFjFDYpzJ07rGEQwFFle2AK X-Received: by 2002:a62:b15:: with SMTP id t21mr45654263pfi.136.1549122123431; Sat, 02 Feb 2019 07:42:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549122123; cv=none; d=google.com; s=arc-20160816; b=ZEO7eRndhQ5I3ZS9zseP+3D4sdYPN7JD62fqYU9Ouq2xaLJ3FM/h6y1M1Xx1T7opkp /6ie+V4cipiOHcpmYmFqP4/uSOn4LDDPWYpig+9Am882k5WDNtgl+vsTm4i53lYTza4X lohcs56PBdX4jxQTg6g+SMzgHnRIwh05KTDaF+1gxwcLuLLHaUantg3CuXyX/XilCIF7 dAo+m0AMxFR7bfbPQDTYelj8nOI6vIHcO+FDtE2RfIA3WK/IGqPFXLpcab+Jd7DF+Iw7 O/kMnhdgHv+8ev6VXMp1Iz8equyKExl9ZYUmg0OTqV8+Kg5zirzGUSccVOc4k/V5qRUO tLUA== 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=SsiemEY1j6N6fe9ANipXC2HzByXeQMhc37ccQ7xCioQ=; b=C966IvZv2d7v03IsbgP9+zSvA76FRyKUbxric9gKIalJnC3XwZjdUB4CaooilbFsP0 mYSe2Bq5GpsiqpvF3hBT4KvKUggvG7BVnLmLv+ciGPRnN0SgFhb1y51iN0st7RBCrMDq 0QWHRTE95IctHF2+fE6cIOegaX9/nUUfKew/7CQS/JYjaTN7KGvqRCw0Ka2FPSz3mP3C lMW5RsscI8dwqU/tMbNK50X3KGas85CUT0KubtY1YqbM8Ad4qXeAYJrRAtrVIX/UBcbs zWWToJE7lwKwYhzogjHqOszkTHJipK8Bth68kIFgKpDnZHbG6aQF1Ok5Azlgl2Vr/Vv6 s+Gw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g8si8238222pli.50.2019.02.02.07.42.02; Sat, 02 Feb 2019 07:42:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727713AbfBBPmC (ORCPT + 15 others); Sat, 2 Feb 2019 10:42:02 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:34071 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727474AbfBBPmC (ORCPT ); Sat, 2 Feb 2019 10:42:02 -0500 Received: by mail-oi1-f195.google.com with SMTP id r62so8338845oie.1 for ; Sat, 02 Feb 2019 07:42:01 -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=m1nF2RQVhJjJXCFUtmo+fACZcSh5VtVf4y+ktiA6Restrxl8gWvJ+E+b8W+2JjFk9F rUZ3vzFkx4LAHHSJ5T70t7WgVoMU61cTgXQq1lBgRsafCQj0w2eH7/wCEvGZ8pHvvXe0 i9i5tXzvc1nQoLT8essx6nsDYSSkxJ1ICQvjCrwzHBwWSZ/NCXQ2HUKUlTqqxpULa0Te LoWYUQhvH07GKYMWvPV90O+9LVgfvgqjsNK4Vo18STqZymFS6FypxNnUwtGmXeCbMH9a pCZTQZ7hi3qRdkFoLFC0LYKG0MFXfeqw+K+GRm2K6AM5VIWXLavMqaoqI3NHR20fb9vg lBhw== X-Gm-Message-State: AHQUAubR0jrB3JW7w+QE9kyfqbnM49RvHNVGbfeOL7Jmhnl43wqg9K+m MJ7fUzDoXcNz/QtW/7zh9g== 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 Cc: Christian Gmeiner , Daniel Vetter , David Airlie , Eric Anholt , etnaviv@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, Lucas Stach , Maarten Lankhorst , Maxime Ripard , Rob Clark , Russell King , Sean Paul 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 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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(-) -- 2.19.1 Acked-by: Daniel Vetter