Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp318213rdb; Fri, 5 Jan 2024 10:47:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IF5nFkA8Tt4+ugdsfptKYFp7cvS55G11ATawaOs7r38BY/LR2uaOI2A+bj6A19w0ucn4B47 X-Received: by 2002:a05:6a20:e11c:b0:191:db80:d8e3 with SMTP id kr28-20020a056a20e11c00b00191db80d8e3mr2435127pzb.11.1704480437662; Fri, 05 Jan 2024 10:47:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704480437; cv=none; d=google.com; s=arc-20160816; b=DYdk9OhKUpU/OUbRlq8cswgRAB5hXOUTSRfmU1XApJiCnjaODSaGypdJwsq5BjvY6f RvCLp50CyJrde1gKTSWS6ZguTAAYSUloHiIj1/iW4mFuniVloSi1OeXpdXaKxMVv17EW pNEEhSyMtWzcbqyubf/M8HpfqBtV7c7v4Ew87hy4lMMcXHWJ/OMbKfXfyyvs/TEmdNKA pTgxt/mx2L7cnTgLE9TyjcJIIPkdVo9hDwkuUV64HvKdjaev39zlqfwKG9iBzowchvq7 LRGVw/D3pqI2jY/amsiwpYkbu4cS4npHp/bxitcm4uNfqfUJJTd5Sb3rwEa9jpfieVVJ BK+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=0eJzqlljwutPB3q3T/xkW5/93c4LgnQ1V0YKnjblxTs=; fh=5cel2jD5h+yPMXVwxbomyVhwojHUqATy6nFjd4aOh4o=; b=RWwxwOs5eYkaMzs5M/WDTWOD+S4khHxTsEFc6kYlvvICf2xfQ9U4+a+1F2r8IGPima UcOQ1WpkuoKpizN4ZmapL1KJoXQq2zbJzzfnMlazqgH3zDe+L3FhwlGUPHNOxl9qB1ER iV5JOCRbKV4qo/FYQpmDAIWWGUI5FcVioFOHQcxxrW+yZv4A6uSATQvkL49gQN4Fs2Zc /J+arRTaHGiDfxLFq50hgs+xMwvgcyipWvyFjhLoJ6DPp2tqK1wRfH5QKbvcdt8e8JoL SGcw82oBjxSylseefACOzfpnui2RBQg12u2PwU+n4Mk9g/hN2u9FVr+HkrrXZMU6aXpD HRZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=E7SWBKFy; spf=pass (google.com: domain of linux-kernel+bounces-18240-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18240-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l12-20020a62be0c000000b006dab11fc4fesi1678328pff.244.2024.01.05.10.47.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 10:47:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18240-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=E7SWBKFy; spf=pass (google.com: domain of linux-kernel+bounces-18240-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18240-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 44AFC285B9E for ; Fri, 5 Jan 2024 18:47:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F3313608F; Fri, 5 Jan 2024 18:46:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="E7SWBKFy" X-Original-To: linux-kernel@vger.kernel.org Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 686E335EFA for ; Fri, 5 Jan 2024 18:46:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1704480407; bh=nR4jYVhSWCLMrjIGrNICVL5mLIA6VSkplrmpOfwke3k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E7SWBKFyyVHM9/BgPb2tO1ghBhNH/e/IaRwE45mMwxLbawQWEePrIhRbKeUMUYg0Z lv2d5w7aWLCfOZpkuq5H8BTm926H4+sMuNOJ57GVVXhU76VJ3VS0+rSWE6P2Q7M+vL 9KVtAkUU2/5WjF7C3yb8GjGa7ofWnHJ1kh8QFQ5iYUuOinYATpUMrdKvEybZgHE12f pr8JbUYAjwIEJDINNHx6Y3SeK12ZRCZndHykfZRHpdivONEeFy0osDfXjaPkwxaaH1 OE82Fe+qXZTvdpSvHW9brpx83hyQkz2/QzO2V3nP3VQttBcaTkqsLBYu4lLXHdoUzd Hn0GZXQdalP2Q== Received: from workpc.. (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: dmitry.osipenko) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 469C2378203B; Fri, 5 Jan 2024 18:46:46 +0000 (UTC) From: Dmitry Osipenko To: David Airlie , Gerd Hoffmann , Gurchetan Singh , Chia-I Wu , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , =?UTF-8?q?Christian=20K=C3=B6nig?= , Qiang Yu , Steven Price , Boris Brezillon , Emma Anholt , Melissa Wen Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kernel@collabora.com, virtualization@lists.linux-foundation.org Subject: [PATCH v19 02/30] drm/gem: Add _locked postfix to functions that have unlocked counterpart Date: Fri, 5 Jan 2024 21:45:56 +0300 Message-ID: <20240105184624.508603-3-dmitry.osipenko@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240105184624.508603-1-dmitry.osipenko@collabora.com> References: <20240105184624.508603-1-dmitry.osipenko@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add _locked postfix to drm_gem functions that have unlocked counterpart functions to make GEM functions naming more consistent and intuitive in regards to the locking requirements. Acked-by: Maxime Ripard Reviewed-by: Boris Brezillon Suggested-by: Boris Brezillon Signed-off-by: Dmitry Osipenko --- drivers/gpu/drm/drm_gem.c | 6 +++--- include/drm/drm_gem.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c index 95327b003692..4523cd40fb2f 100644 --- a/drivers/gpu/drm/drm_gem.c +++ b/drivers/gpu/drm/drm_gem.c @@ -1490,10 +1490,10 @@ drm_gem_lru_scan(struct drm_gem_lru *lru, EXPORT_SYMBOL(drm_gem_lru_scan); /** - * drm_gem_evict - helper to evict backing pages for a GEM object + * drm_gem_evict_locked - helper to evict backing pages for a GEM object * @obj: obj in question */ -int drm_gem_evict(struct drm_gem_object *obj) +int drm_gem_evict_locked(struct drm_gem_object *obj) { dma_resv_assert_held(obj->resv); @@ -1505,4 +1505,4 @@ int drm_gem_evict(struct drm_gem_object *obj) return 0; } -EXPORT_SYMBOL(drm_gem_evict); +EXPORT_SYMBOL(drm_gem_evict_locked); diff --git a/include/drm/drm_gem.h b/include/drm/drm_gem.h index decb19ffb2c8..f835fdee6a5e 100644 --- a/include/drm/drm_gem.h +++ b/include/drm/drm_gem.h @@ -551,7 +551,7 @@ unsigned long drm_gem_lru_scan(struct drm_gem_lru *lru, unsigned long *remaining, bool (*shrink)(struct drm_gem_object *obj)); -int drm_gem_evict(struct drm_gem_object *obj); +int drm_gem_evict_locked(struct drm_gem_object *obj); #ifdef CONFIG_LOCKDEP /** -- 2.43.0