From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sender4-pp-f112.zoho.com (sender4-pp-f112.zoho.com [136.143.188.112]) (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 83B683E8C54 for ; Fri, 8 May 2026 13:58:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.188.112 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778248731; cv=pass; b=ua5ebVIlKWeIsBaBGgQMnNcFJhzcxvUiRbCEzm7WbhAWen9QXEOcYcPbbVUDY3kRN3DzWeRqZFoCwjv7KtISdv0LMdzM7JpsNB3q6TRxGqtTp+NixtO4/tmGI9KrtFg86ohg1XpEk/+OKUw8e18FDsdCKbD2K/7GpgcgDucVIKQ= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778248731; c=relaxed/simple; bh=rcjXDN8hssonw5QuBecFEecV8MLWkk2RRZhVA+GF7wI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=WB484fQJwxfz3XOyjbih+wiEXilvnfx5PBoLIu+tq32FESb7dm2wC3xL2Kk88elTas4AI4YhV4gv8GaiIpBzOQpRd7QfzN4Cauzmph9ZvNxTB8EHQXS4D8eCvuMj7c0N/qXc4UpWZRZ/B0pqZAe3VV2ZwJjrmDtqrYXXHYlExUc= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (1024-bit key) header.d=collabora.com header.i=adrian.larumbe@collabora.com header.b=f1aAhyx7; arc=pass smtp.client-ip=136.143.188.112 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=collabora.com header.i=adrian.larumbe@collabora.com header.b="f1aAhyx7" ARC-Seal: i=1; a=rsa-sha256; t=1778248710; cv=none; d=zohomail.com; s=zohoarc; b=WN01I0arlGspujodryolaOf9eEx/8s5vv0H6oxmDrclrqzrm3c7uCBZ3vvyKN0wGAJBKBzDuuhIcq7BiLXsgHDudrP42vhJZH6/3q631RijJ00fcS7X0xYIoi6qjUrZ5PLsHN3/bXNu9LYYmJYN9d7osdyzzZZ5i+kknV4Eyers= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1778248710; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=2XxAyhD+cPP5bbx4QSdWivMJIWCt/E759TvxLI/dglc=; b=OZbqhbv8gXL3CxcVHJhJ/uyhNtJYrjctJyATD3UH8EVwZJUtBXw6FMJm9FfPtnWdPJmw1upI8uXJZzfO3qOeNxbUVrxoxI1YllBTF+Zl3UKIjSfBj+CySfpW6Ye5x5Qz8g9LJR6D2P7oXABST3lXXWKV0WTswWTIerpYb3zAdvs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=adrian.larumbe@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1778248710; s=zohomail; d=collabora.com; i=adrian.larumbe@collabora.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=2XxAyhD+cPP5bbx4QSdWivMJIWCt/E759TvxLI/dglc=; b=f1aAhyx79F6PgTxHXOhpRqCkJuOBk0QdHBOQLxlFVPnaIS5Q6+KlAuRgZ/SAqAdN l9/RUCQNbMqqLzBOhyO/spKVK5PVBRIz0O/zSCVpOSoFfzzTGm2w6q2g+zQuoUYgc2V UxLVhe234/5zHGe0Ea0gE0vgeuvziQUkHSig2m/E= Received: by mx.zohomail.com with SMTPS id 1778248709941414.46861839131236; Fri, 8 May 2026 06:58:29 -0700 (PDT) From: =?UTF-8?q?Adri=C3=A1n=20Larumbe?= To: Danilo Krummrich , Matthew Brost , =?UTF-8?q?Thomas=20Hellstr=C3=B6m?= , Alice Ryhl , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Cc: kernel@collabora.com, =?UTF-8?q?Adri=C3=A1n=20Larumbe?= , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] drm/gpuvm: Fix comment to reflect remap operation operand status Date: Fri, 8 May 2026 14:58:08 +0100 Message-ID: <20260508135814.3296874-2-adrian.larumbe@collabora.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260508135814.3296874-1-adrian.larumbe@collabora.com> References: <20260508135814.3296874-1-adrian.larumbe@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When a new mapping intersects with an existing GPU VA, but either end lies before or beyond the existing VA's edges, then the prev and next mapping operations part of a remap will reflect this condition by being set to NULL. Signed-off-by: Adrián Larumbe --- include/drm/drm_gpuvm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/drm/drm_gpuvm.h b/include/drm/drm_gpuvm.h index 625958fce7fd..4836ef9cc25f 100644 --- a/include/drm/drm_gpuvm.h +++ b/include/drm/drm_gpuvm.h @@ -929,6 +929,8 @@ struct drm_gpuva_op_unmap { * If either a new mapping's start address is aligned with the start address * of the old mapping or the new mapping's end address is aligned with the * end address of the old mapping, either @prev or @next is NULL. + * This will also be the case when the requested mapping begins before the + * old mapping's start address or stretches beyond its end address. * * Note, the reason for a dedicated remap operation, rather than arbitrary * unmap and map operations, is to give drivers the chance of extracting driver -- 2.53.0