From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5957F1C3C1E; Wed, 19 Feb 2025 08:32:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739953941; cv=none; b=EhxL/Vosj4TW/LfWOQ7XReUVkjqkbM7n0UH9i4LyN5ZoUsD55UL3Oc6XUpNr9H9YNnBlR+y6c/FPd5NtlrvGXbKpDcSXp4Uwc0dfUbfUkY6ENoJa1Kpst+y0KwOd+V8Yz2DXMOypTjT1bacpycRF9xpz1JWryamsVosC2DbfdCo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739953941; c=relaxed/simple; bh=Is7RApC1Qire/1RKZZAPsLb2SOxWNFEQi7ulrx8ho8I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XqYVr7p5LEowUOybkOSCtMitJxDiNKP108L+MjPfo040qRg2IqLN8SqQLpUSuqSkPx39MTWaP7aMk9PphRo36jnpResTUpqVTB7ktSinPGbK6O0Hu9wUAMgR+ItiZFbQflgVNEM6nIWHqa4nlDTs9G6PVaMcdg8u1DqJHikezUE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=y0mbsWuH; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="y0mbsWuH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA593C4CEE6; Wed, 19 Feb 2025 08:32:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1739953941; bh=Is7RApC1Qire/1RKZZAPsLb2SOxWNFEQi7ulrx8ho8I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=y0mbsWuHwM8Ru1KLKMNxSesDSjcsffVsvd8T+ksYBvWDFOARj4IAEKpHqBwKUUEsf EDgWOxeuXXVSZjC1KFZkVW52j/daj/eMIV3NzTqfHtTtG++fWURxtTeub2QYcXsyE6 CkvQrLEjRZLZI3SG+w/WyVYjevUx4zDo5zs6GfqQ= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Tejas Upadhyay , Himal Prasad Ghimiray , Nirmoy Das , Rodrigo Vivi , Sasha Levin Subject: [PATCH 6.13 046/274] drm/xe/client: bo->client does not need bos_lock Date: Wed, 19 Feb 2025 09:25:00 +0100 Message-ID: <20250219082611.325691573@linuxfoundation.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250219082609.533585153@linuxfoundation.org> References: <20250219082609.533585153@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.13-stable review patch. If anyone has any objections, please let me know. ------------------ From: Tejas Upadhyay [ Upstream commit fc876c9524e2a9f816f51d533ed31df789cff65a ] bos_lock is to protect list of bos used by client, it is not required to protect bo->client so bring it outside of bos_lock. Fixes: b27970f3e11c ("drm/xe: Add tracking support for bos per client") Signed-off-by: Tejas Upadhyay Reviewed-by: Himal Prasad Ghimiray Reviewed-by: Nirmoy Das Link: https://patchwork.freedesktop.org/patch/msgid/20250205051042.1991192-1-tejas.upadhyay@intel.com Signed-off-by: Nirmoy Das (cherry picked from commit f74fd53ba34551b7626193fb70c17226f06e9bf1) Signed-off-by: Rodrigo Vivi Signed-off-by: Sasha Levin --- drivers/gpu/drm/xe/xe_drm_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/xe/xe_drm_client.c b/drivers/gpu/drm/xe/xe_drm_client.c index 22f0f1a6dfd55..e8eaeb4646061 100644 --- a/drivers/gpu/drm/xe/xe_drm_client.c +++ b/drivers/gpu/drm/xe/xe_drm_client.c @@ -135,8 +135,8 @@ void xe_drm_client_add_bo(struct xe_drm_client *client, XE_WARN_ON(bo->client); XE_WARN_ON(!list_empty(&bo->client_link)); - spin_lock(&client->bos_lock); bo->client = xe_drm_client_get(client); + spin_lock(&client->bos_lock); list_add_tail(&bo->client_link, &client->bos_list); spin_unlock(&client->bos_lock); } -- 2.39.5