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 C76CD200CB; Mon, 14 Oct 2024 14:30:12 +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=1728916212; cv=none; b=V6IGCatZqbCllz9SHyjCV+wyI8hOgrrS+sT7pbwElE1rWu2dT8eGnHfA7FRuCedXhOEYFsRAct7I+gqaluTGsWhxc0XqqepuU4MEYrLWebRcgh2wcH9czMKAoyEIGT0qRA8KZwoPrSrF7hS8YgjVkhtlqTyiymZ3i2QiUtdU0IU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728916212; c=relaxed/simple; bh=5fxguFS5ektI9xbjVye3LSTdrQA4rA3xP4EQmrrD3Oo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=f2gPeGJb2fPBpv8YlkPldc5GQEa886APOH7PNaFYlmzO71NVxjFL4bHH/S/v56IycQhughSfg0z5A2l6/hG1iApqJrBvlqFE3r5dl0/Fj9or4vWshXvxBvRzCln8jo+gAWxm/GjIyY+V4xeEbeFE0qLJs++JXL1PmFss8ww3CbA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UjjdAtIk; 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="UjjdAtIk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0127FC4CEC3; Mon, 14 Oct 2024 14:30:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1728916212; bh=5fxguFS5ektI9xbjVye3LSTdrQA4rA3xP4EQmrrD3Oo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UjjdAtIkxpqWy9k4NXRIZcXSpLDn6QgWHi0A6x97Cmq5YosX3W6a+oc/ms0hh5aje jOidtfphHqPovtlpVlaZKYcdE71huWYXyT/e4bYFjaEtbtZKLJfGp4uetTePLjVhuR we0RS/LQOU09RUAHSpSf07ykHxTzi0un4e6IuIQI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Yonatan Maman , Gal Shalom , Ben Skeggs , Danilo Krummrich , Sasha Levin Subject: [PATCH 6.11 115/214] nouveau/dmem: Fix privileged error in copy engine channel Date: Mon, 14 Oct 2024 16:19:38 +0200 Message-ID: <20241014141049.480767431@linuxfoundation.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241014141044.974962104@linuxfoundation.org> References: <20241014141044.974962104@linuxfoundation.org> User-Agent: quilt/0.67 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.11-stable review patch. If anyone has any objections, please let me know. ------------------ From: Yonatan Maman [ Upstream commit 04e0481526e30ab8c7e7580033d2f88b7ef2da3f ] When `nouveau_dmem_copy_one` is called, the following error occurs: [272146.675156] nouveau 0000:06:00.0: fifo: PBDMA9: 00000004 [HCE_PRIV] ch 1 00000300 00003386 This indicates that a copy push command triggered a Host Copy Engine Privileged error on channel 1 (Copy Engine channel). To address this issue, modify the Copy Engine channel to allow privileged push commands Fixes: 6de125383a5c ("drm/nouveau/fifo: expose runlist topology info on all chipsets") Signed-off-by: Yonatan Maman Co-developed-by: Gal Shalom Signed-off-by: Gal Shalom Reviewed-by: Ben Skeggs Signed-off-by: Danilo Krummrich Link: https://patchwork.freedesktop.org/patch/msgid/20241008115943.990286-2-ymaman@nvidia.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/nouveau/nouveau_drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.c b/drivers/gpu/drm/nouveau/nouveau_drm.c index 88413b5c8684a..bfba4e374df44 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drm.c +++ b/drivers/gpu/drm/nouveau/nouveau_drm.c @@ -356,7 +356,7 @@ nouveau_accel_ce_init(struct nouveau_drm *drm) return; } - ret = nouveau_channel_new(&drm->client, false, runm, NvDmaFB, NvDmaTT, &drm->cechan); + ret = nouveau_channel_new(&drm->client, true, runm, NvDmaFB, NvDmaTT, &drm->cechan); if (ret) NV_ERROR(drm, "failed to create ce channel, %d\n", ret); } -- 2.43.0