From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B6087EE49A4 for ; Tue, 22 Aug 2023 11:37:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 20A7210E31D; Tue, 22 Aug 2023 11:37:24 +0000 (UTC) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by gabe.freedesktop.org (Postfix) with ESMTPS id B47CE10E31C; Tue, 22 Aug 2023 11:37:19 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 34CAC6539A; Tue, 22 Aug 2023 11:37:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A886C433C7; Tue, 22 Aug 2023 11:37:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692704238; bh=RT2yH3IRbxVwpbXO8souw3b1hiBtsDsDo2KMzcNbGls=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sN7QL1NY5WHd9Gk3AV0135FVWHzU0jzjmB2yGfe/cU8pldSlYKRgXgSIi3hoaXVM9 /ZSZ47Jz24kgRp4BBl121qJxbXmaJsDRTlxPHzthWhR/xImAv+F0xdCYH3HnXQUKrd yGzVCvPZzSZq4xOUrDiAmQ6CRR03EdvgjnOWKbIOkW677CjbUjqm9oI4nmlOmQctHB 4/+/HhOh4PBIRMzdB/q3cnAS9pvEewXTE0BGTp5M6g1IiXU6jcIaXPUAbHeheWsUTB CUG8cZHabM45u54O6l4BXPBzlqUofKL3LdQu0UhsDg3ymxfTYm6nCVtwaoJw2oKeEB prTQe0kSOl4PA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH AUTOSEL 5.15 6/6] drm/amdkfd: ignore crat by default Date: Tue, 22 Aug 2023 07:36:58 -0400 Message-Id: <20230822113658.3551550-6-sashal@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230822113658.3551550-1-sashal@kernel.org> References: <20230822113658.3551550-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 5.15.127 Content-Transfer-Encoding: 8bit X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sasha Levin , Mike Lothian , Felix Kuehling , Xinhui.Pan@amd.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, daniel@ffwll.ch, Alex Deucher , airlied@gmail.com, =?UTF-8?q?Christian=20K=C3=B6nig?= Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" From: Alex Deucher [ Upstream commit a6dea2d64ff92851e68cd4e20a35f6534286e016 ] We are dropping the IOMMUv2 path, so no need to enable this. It's often buggy on consumer platforms anyway. Reviewed-by: Felix Kuehling Acked-by: Christian König Tested-by: Mike Lothian Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c index e574aa32a111d..46dfd9baeb013 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_crat.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_crat.c @@ -1523,11 +1523,7 @@ static bool kfd_ignore_crat(void) if (ignore_crat) return true; -#ifndef KFD_SUPPORT_IOMMU_V2 ret = true; -#else - ret = false; -#endif return ret; } -- 2.40.1