Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2970052rdb; Mon, 4 Dec 2023 12:36:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IEMzkjTig1rqkZmtRJeOGT6TbqWvjlVnQPEfLjFqASrcle2/zXYvfUzqpsCYzBONhLnCWOW X-Received: by 2002:a05:6358:592a:b0:170:30db:1188 with SMTP id g42-20020a056358592a00b0017030db1188mr1784833rwf.24.1701722193816; Mon, 04 Dec 2023 12:36:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701722193; cv=none; d=google.com; s=arc-20160816; b=pQUnt5u4woLQaE8H61bZpPQBy/pDzRARnwKDJobwzoR17WVKKSpkWb+6Y4RJ4wAss6 u/0KuCECz2Scyp333cW8fhspw4lkamFDozANTycGCPi2dumeLSaNueMBVWAUo0lPpqJb YiR2dwgZhDJniq51HaFh51b2dyld/xfyUc6AmwJ7Zv5I2o5qYHy3bJAvgsdLdShkvDRq cHj1tPX+Kz+iJvLtk8zrhu55xWSXTxs1SCAh/8oMeILtrTusbArs95AP7Bl+zB6xrzNJ CqfRQuyJss2WlaQu5UzRNuhg24xyHAq3H2D+sJUIJwDnsM47K4MwkqVSiS39jOhZNeww Su1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=50rKi0LDn3+d0dWqI3d0ARj4A9xtPdhlgMunLrv6fy4=; fh=4SM5YPNiT7/d371pAtjdjP2/3qugrbqJ9JlioOzdMOM=; b=vMsNgs7nUXCwOj1Ll1Qnnr1JaIiNfa1i3U83Wy+HR77z8yHILQhvzsrldRwhqRbtX8 0+TQbGWFw60pLTq2vuidpvcmrFN4JAH+l/HdCCoUuu31y2yjk2bE3qjL7opPOvzonITQ jzldyHxHlMRBxzDth7fv2+1xBue3eZr/EuLGz0LsIPofDntiDqTwzP2y6Ud/R5eFGI8m 2H5ofYqxKXndARAVPE4s02k6LzEqq0QmjTJHnnbX+tIFMueMqv9zTehcQi+0o+eAJndc QvXI0qDjspk6iCAGppX9yHi5jC5u+0bpXaUS+O51FSA8uswEJiibVhp+xoySYnvzHvZB LdxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HiYRLuG0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id 22-20020a631556000000b005bdc61e1793si2525361pgv.358.2023.12.04.12.36.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 12:36:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HiYRLuG0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 35E7C8039DEA; Mon, 4 Dec 2023 12:36:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346195AbjLDUf5 (ORCPT + 99 others); Mon, 4 Dec 2023 15:35:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235564AbjLDUfg (ORCPT ); Mon, 4 Dec 2023 15:35:36 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFE0D2685 for ; Mon, 4 Dec 2023 12:34:30 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D512C433C7; Mon, 4 Dec 2023 20:34:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701722070; bh=8SAQFhl1WNO7lMXy+iuBPzv3y+k5QbJiqIb5Kk4ciFI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HiYRLuG0XWKtDOmjvp8BMXSXHLWIy+l6cgr+tErZ6pUZ2Z/j9aiKc4CRC9hlmK4xL ruTkYS5YwDnuJzmxza9gQgUK++OBhtUayCIoLp5mjnAabNpmJXdO7tRN1W5Ct0LYC/ wH6pU/J1jLutRyZsm0X4Wh9gpEQWyhJmtfZH+mduEkLFDeSl2P83E33Io80L61T8Rm vvIof37LsWCYmquW0OF/czic/apwVdOyjR6kYiqTGUDSIMAKMxVDsp/Q9A8OxyB1G1 kYi+RLN5Gn9N7apFkbrkkSnc/2G0UlglKiusLhcW8aCiyVUjuY7bx1BP2x7yUH6xiC Nw+26H5NQs7LA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Mukul Joshi , Harish Kasiviswanathan , Alex Deucher , Sasha Levin , Felix.Kuehling@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 6.6 24/32] drm/amdkfd: Use common function for IP version check Date: Mon, 4 Dec 2023 15:32:44 -0500 Message-ID: <20231204203317.2092321-24-sashal@kernel.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231204203317.2092321-1-sashal@kernel.org> References: <20231204203317.2092321-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.6.4 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 04 Dec 2023 12:36:31 -0800 (PST) From: Mukul Joshi [ Upstream commit 2f86bf79b63dbe6963ebc647b77a5f576a906b40 ] KFD_GC_VERSION was recently updated to use a new function for IP version checks. As a result, use KFD_GC_VERSION as the common function for all IP version checks in KFD. Signed-off-by: Mukul Joshi Reviewed-by: Harish Kasiviswanathan Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdkfd/kfd_priv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h index fa24e1852493d..df7a5cdb8693f 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h +++ b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h @@ -1128,7 +1128,7 @@ static inline struct kfd_node *kfd_node_by_irq_ids(struct amdgpu_device *adev, struct kfd_dev *dev = adev->kfd.dev; uint32_t i; - if (adev->ip_versions[GC_HWIP][0] != IP_VERSION(9, 4, 3)) + if (KFD_GC_VERSION(dev) != IP_VERSION(9, 4, 3)) return dev->nodes[0]; for (i = 0; i < dev->num_nodes; i++) -- 2.42.0