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 DAB5B3590B8; Tue, 17 Mar 2026 16:45:43 +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=1773765943; cv=none; b=fpx2f0vkMHoKe1QFRO8KgHl3fhTK3uVcSt9RB0Qonlv2nZE8utJ3R/dDeq7H0qJT2/YuWhzQqxdGGcpyrfQMNtnmeGYAFUjN3fbVQ5iv98rFP+9NLCTmXIb//VJ5/fSIZS9D7GS27HCRwCg5TUeJ9JjYavxljtUy400nThbj/GI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773765943; c=relaxed/simple; bh=sWsowVJjP+D85uX/59UWHtkQDhpp+SXF8++6rgBly1E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=M7CggSFVuDr/1D+WbBWKAYu8GA2y5FJUTLwGORHbP3vr87hoXCwaHqqVDhiOoIELXdKKakA8F6CawvyGppFbJclm5IPI6C0gcHM9Nv+LMjZ1+493uc3BRcLJX2BsAz6ScA92d7gZWx9MPLsWu9wwRqSAE/E8RUlbJq2WMLQzE/k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=e58OS0cl; 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="e58OS0cl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C03DC4CEF7; Tue, 17 Mar 2026 16:45:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1773765943; bh=sWsowVJjP+D85uX/59UWHtkQDhpp+SXF8++6rgBly1E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e58OS0clOMARpaypFwgeCVz1V1b5CHJ5q6bNOsjkJz7qAaGRSR6UoyKSjdB4+IiLe 17dP0n50/dW6uAdlbxsRHemueffFyVqPiqY2fSjU8lDwmn3wXB5A0W7JiOknIcVSho xi/cIQe/7zwpLj7t9KP81Gd9WoOJ2ao9c6hyHK1M= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Philip Yang , Alex Sierra , Alex Deucher , Sasha Levin Subject: [PATCH 6.19 100/378] drm/amdkfd: Unreserve bo if queue update failed Date: Tue, 17 Mar 2026 17:30:57 +0100 Message-ID: <20260317163010.696818772@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260317163006.959177102@linuxfoundation.org> References: <20260317163006.959177102@linuxfoundation.org> User-Agent: quilt/0.69 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.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Philip Yang [ Upstream commit 2ce75a0b7e1bfddbcb9bc8aeb2e5e7fa99971acf ] Error handling path should unreserve bo then return failed. Fixes: 305cd109b761 ("drm/amdkfd: Validate user queue update") Signed-off-by: Philip Yang Reviewed-by: Alex Sierra Signed-off-by: Alex Deucher (cherry picked from commit c24afed7de9ecce341825d8ab55a43a254348b33) Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c b/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c index 7fbb5c274ccc4..7bf712032c52c 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c @@ -606,6 +606,7 @@ int pqm_update_queue_properties(struct process_queue_manager *pqm, p->queue_size)) { pr_debug("ring buf 0x%llx size 0x%llx not mapped on GPU\n", p->queue_address, p->queue_size); + amdgpu_bo_unreserve(vm->root.bo); return -EFAULT; } -- 2.51.0