Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp267002lqr; Wed, 5 Jun 2024 05:43:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUVENDwYGQ1hAAcvQm3vvtqp7BNXt2gseR2t3ffbrFEpoK6bHrzEnks0UNUyuWk1o9ZiCQLrjtDiluetXNSOQ/yFEp21j3iA6E+lKs9iA== X-Google-Smtp-Source: AGHT+IGF7pm6/a9vycT/QZwHICqWdss82WBV3YVq1cJI0v3Urx8Nsb99GkVOF9NxWwvUFcYR4eB+ X-Received: by 2002:a05:6e02:1ca3:b0:36b:3af2:2349 with SMTP id e9e14a558f8ab-374b1f0c92bmr26528125ab.15.1717591398792; Wed, 05 Jun 2024 05:43:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717591398; cv=pass; d=google.com; s=arc-20160816; b=uQ9QiGdRvA0X3XFqlZSxBLhW5pl2h/a75/siq0xtx6L8qVTmye8+21O5kStTGLSW95 MelroKGmw6ZcteWfkLWvRDD1hjvEti2UK1V89+xzit+P6gfPi3vRzMIr/9s/pKb3huaK wPoeZXjXICo3nahXWssNjn0rMJqWjlnXiwaUhpGsU6hAQi4Lr/TouSeWZvyhk4KMRjMb iolewYctbAt6DJRyUqcdMRhngf+XXrz9+5Hndn/wvXbCprAR0S9YxbYfGXqkviEx7JQi /wO5HV2EBUNgyvdaeHlFmVp4UhLq7EB1lDW6cdcNQkAHH9FZ2a8ou1+MJg4EOD5pr75X HE2A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=J+w1K5cWIORESauWe6O77ZnNitzlK0PHijKFgLSfRD8=; fh=P0byohfyTWFys7r5wYbRp7Oz6km9q5bP5Nx8zfsEiOg=; b=wmpgGEYdJ2GtPqZlJD6cgHOdwhXfmbuj5itth6sfkMShujn9CtDJFAglK67kpibMSl uUM0eCHsmLl3/VC+EbBLXpiE9ArALaTJSHcg4Yi0TMPjez6fUql6E0sFHeIURYn+shx2 KJ7+QK06kPMljk2t2+5qnmtM1XDacMX9VhtEOSB3Necbcl6jXOfZkLIqb/+92EfpmaI+ kTWpy0LOxZr0ZHZcsAV9BZQPtjGjRbPGHUlJzA+eV078a7gCxezRV8f+SvtMvWhO2vq8 SfWYmpBx4BHd6FJUNl7uipo8K0AXdZlJt61wwmzaWFg9UNHH88dfbNDATxNG2JawQbbP Khtw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cegeb1HP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202472-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202472-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6dc8d14bdfcsi52216a12.541.2024.06.05.05.43.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 05:43:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202472-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cegeb1HP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202472-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202472-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 76602286FE3 for ; Wed, 5 Jun 2024 12:33:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E505419938A; Wed, 5 Jun 2024 12:03:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="cegeb1HP" 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 1559E1C158B; Wed, 5 Jun 2024 12:03:03 +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=1717588983; cv=none; b=XM9IQ52oaVqdr4SX8ZUHsp6wpEoZKIQnmgBY7VRJeNZ2T+x4v5fQUiVZtsYINUTvnuTJfm/FjNWnQ0F0/UgmzQTTkRr+r6/Nzwk9C3WMdl1KciaVg6RPhXxbq0XxbEWbbMQjtgzly43zUqLBiCMznQdeqCTfSCfW3nGAT6UHICE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717588983; c=relaxed/simple; bh=zKphogx/8wYxjzGfOYOpMTs9aysgexbDswaF4oPT8KU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LT2bbtmBkHv8n/Ot8B81oa0YQ5r5l2ebJwfO+LjyseVlCBCbo67WN0wgRZzXmXQYjdd8Umxz2i/tO3ZF9lLrQDKWlv1FDMlqnvu/cgd0xhv6+XgyNrPoTzFVOqckHiNq4C0dqjccHvDBqGg/A1LSmQ/6fUhi/ynZhlTnf5I7JNU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=cegeb1HP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63B7AC32786; Wed, 5 Jun 2024 12:03:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717588983; bh=zKphogx/8wYxjzGfOYOpMTs9aysgexbDswaF4oPT8KU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cegeb1HPeeJXgdaBxlkr8llciIflxHKuyz5agMRtVDKyRnLe5lKd4bIK7wbIKu+jw B14BI37p6+mVzC2T/JMMtl5y/uD5rTXxfWpuF0Auq8Um0H+NFlNsKg5y32HQfy4fh0 y32cwXn4JnqFpB+jeHJ+Ek3ZJlPAruGBDA44KChZYVxxCK2miKx3szV575vdu3WR8C tZlilqaFTeuOn3L5eTeSS7FypyLISwg5oF3O/IkvsNqC/YvYlb/YteQcA4YsnlWFKT 6ddEv6c4hbbDMWTjE6JcHmqb47GsvvcuFY41MVMIW321xc0A4AZpHq+5+aDYMG4Evr +51VgoaI1EhMQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Alex Deucher , Feifei Xu , Feifei Xu , Sasha Levin , Felix.Kuehling@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, nathan@kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, llvm@lists.linux.dev Subject: [PATCH AUTOSEL 6.9 21/23] Revert "drm/amdkfd: fix gfx_target_version for certain 11.0.3 devices" Date: Wed, 5 Jun 2024 08:02:04 -0400 Message-ID: <20240605120220.2966127-21-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240605120220.2966127-1-sashal@kernel.org> References: <20240605120220.2966127-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.9.3 Content-Transfer-Encoding: 8bit From: Alex Deucher [ Upstream commit dd2b75fd9a79bf418e088656822af06fc253dbe3 ] This reverts commit 28ebbb4981cb1fad12e0b1227dbecc88810b1ee8. Revert this commit as apparently the LLVM code to take advantage of this never landed. Reviewed-by: Feifei Xu Signed-off-by: Alex Deucher Cc: Feifei Xu Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdkfd/kfd_device.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device.c b/drivers/gpu/drm/amd/amdkfd/kfd_device.c index 719d6d365e150..ff01610fbce3b 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_device.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_device.c @@ -408,15 +408,8 @@ struct kfd_dev *kgd2kfd_probe(struct amdgpu_device *adev, bool vf) f2g = &gfx_v11_kfd2kgd; break; case IP_VERSION(11, 0, 3): - if ((adev->pdev->device == 0x7460 && - adev->pdev->revision == 0x00) || - (adev->pdev->device == 0x7461 && - adev->pdev->revision == 0x00)) - /* Note: Compiler version is 11.0.5 while HW version is 11.0.3 */ - gfx_target_version = 110005; - else - /* Note: Compiler version is 11.0.1 while HW version is 11.0.3 */ - gfx_target_version = 110001; + /* Note: Compiler version is 11.0.1 while HW version is 11.0.3 */ + gfx_target_version = 110001; f2g = &gfx_v11_kfd2kgd; break; case IP_VERSION(11, 5, 0): -- 2.43.0