Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp264800lqr; Wed, 5 Jun 2024 05:39:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVsTsTy6v3gF67ZcYdsEWJveGaY00OjCjLXNL0cU5v7dywCRNjTSeFsXTF4TNFNZCjlM0vJImu/yVZsezDwkEiOlQzYvEXS5xN1joL/pw== X-Google-Smtp-Source: AGHT+IFDpaytx2tcMUlo7QmGjlFI/YmeY0DncXudOq0n78hbOPniRqazPFLPxFMQ0Mmzu+0JQCLn X-Received: by 2002:a05:6214:5787:b0:6af:c69a:40e1 with SMTP id 6a1803df08f44-6b02bf1e20emr19130776d6.17.1717591142423; Wed, 05 Jun 2024 05:39:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717591142; cv=pass; d=google.com; s=arc-20160816; b=dthFlBAol3upCwfVHPDE955eid/9ahT/s7P5ekhombXs+/Ccnsq7nCzUR/Zn/0p6L5 PyONv23xZnHx70Uk9a7peElAab/2trcgFr/10ne0AuFQJnhC2RpRb4y0Hgh5p+KkWuOB BzOF6Wnk6ZdOcYkSXv4mBdr236BGxcWZdXGSfXR36rgdoW3CR17Su4SXhvR47ujobrj4 ZY/BtFEbVd/c8qPTemL2HQTRCnStsxATuArkNmJFpbyIgkp1rNL3EjRPfCsqXGLcbUQI sPaYYjmAciR+LpsimP37mDqvXVBCiB5hcqhDbj1HyTDloSwykX8+H2ol6C9ycF5jlEpn lTIQ== 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=pwJN1U37MDl+1dtTTZ20aldbgSed8wOQNj3QGTRHeds=; fh=P0byohfyTWFys7r5wYbRp7Oz6km9q5bP5Nx8zfsEiOg=; b=KsIwfuD5ET3Igar/Bz9WlaQaKibsAYeHq5hh7G2BD6iynGuh4y330gtk63pnhIvGC8 zP40amiBiOzu6UsevKRbNWcbn2sVtH1bR62/q7JkT1yqP4fPs0Iz3RiDQ2Kxtb31jcM0 UUCH7qH2gxJLgOHSqRbh03779M1ZjVPb86NEr2EInvtam5M06lZgWrrhuYd1y+TrMyI3 GNR3JEDagm7V5x5uzpVnE3PSR7hqO33jJSs/EhAcVHvcJRYJ4TrSKAS9egIYlF/cZi0f CwutA1h0yj3MqB7m1UjaYZxI+/5afDJpCZiubariWjOnS9Tvl3Q9K2+bBBKtvPHTjfOV 57Lg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bxSef32A; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202492-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202492-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43ff259e20fsi39463881cf.643.2024.06.05.05.39.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 05:39:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202492-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bxSef32A; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-202492-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202492-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 28FB01C22CBE for ; Wed, 5 Jun 2024 12:39:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 974541A369E; Wed, 5 Jun 2024 12:03:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bxSef32A" 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 BC5471A3689; Wed, 5 Jun 2024 12:03:53 +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=1717589033; cv=none; b=kG+JZOZspg+z+JP7wx0c98n333eAPjWcvUh3ym7pI/mw9oEaMLuGy+ECnKYhapMZYKz/4AklkNhKKksRiEBjLVAk0szbNHSMafRSwgkWwRHdVlqPiGBJiX+hLr1y+GJA2ys+aX6hBMyqVX+I1Lm4w6jPAmQAvWVUsJOr6Et/FwU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717589033; c=relaxed/simple; bh=huM3Hia/E8C/3CGVJFNUtJsHYsCR6y3z74t2rsw1sPI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eiG8Sa0u0WZvinlR0Gxmlu0Dd/60fdLgzmcCRqt8I8zQp8ADo9XzgejANMBcPeUSFc9acsdktNBsoAvllT5kCFaN4UQX4CV7q71TBbLu59l4kHqyyQ8RvoenCe+SG+AShAElKbX5Lk6m8WPvmmT88gIL/N39zfz1IJjX3pX2EqE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bxSef32A; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11A77C32781; Wed, 5 Jun 2024 12:03:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717589033; bh=huM3Hia/E8C/3CGVJFNUtJsHYsCR6y3z74t2rsw1sPI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bxSef32AZ8FligZkolP9iURMo5sTk4PMJaN4QHVQUMwKp1yaT0aoGApIuyzDT0/5N eLgXV//WzlKnY9orInUmPd5xAt3h6mvQkSu2XAHHKS5Pj+J968u6+o9Fl6k6r7J/XF 6Tpxjj4bhq8Ezha3gs55OyqG9vMuWZaPrkTBKxhLsBDH7l9KgBUOKJ9G4lWfWKlacs 8ig/78ocJmsj3oegqOACr7Z9mqejLFPFjyAaJj9iAQSW6YsdIrCQgJZBuADGYjtT6l 41mBBAUZwDwcCNygK92LotA314NDuDRR4Dkwuax1WSMsNJRg+wqgiPdfOnluyQ6FfI lSrpwp+zRepYA== 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.8 17/18] Revert "drm/amdkfd: fix gfx_target_version for certain 11.0.3 devices" Date: Wed, 5 Jun 2024 08:03:07 -0400 Message-ID: <20240605120319.2966627-17-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240605120319.2966627-1-sashal@kernel.org> References: <20240605120319.2966627-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.8.12 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 fcf6558d019e5..7d39982bf74e2 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_device.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_device.c @@ -405,15 +405,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