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 46C7515C120; Mon, 6 Jan 2025 15:29:09 +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=1736177350; cv=none; b=atp7Wtr+4OFgcUUE9nVWT38eFCBe38aqewO59w2LKSZUvnGqgla5YHOtuhfZ1x5siqAzAXlyBPjjfmypLWEtzH2V6IR7rxmTpADncT/euYsV2Lcyebv36DP5nD/wFa684WxLdQALEsFjVk1wdhi3oyYBv1opELkiHPhBFycg5KU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736177350; c=relaxed/simple; bh=+9zKuKbioxLYyT02WHEprk8vZ1zskX48TPYxoqAu/6Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mhFuAqsZ7+pVZpP5HCPtvkifE5rdYg1KszF7ncAJpnxyp9jqIYce8vzcmm93yMfWEjhRPK3WPUXl2/QNHmxsJBIpFlvi8IadpTEtNJEkwe/IlSOc+rRi6k8XeDV8/wiUfeeJjNvyX6dnPBeHFgkigIU0huazDWRUvkGiiCkRNFE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rCI54HoA; 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="rCI54HoA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B4CDC4CED2; Mon, 6 Jan 2025 15:29:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736177349; bh=+9zKuKbioxLYyT02WHEprk8vZ1zskX48TPYxoqAu/6Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rCI54HoA/vsK30nGLgLGaQcK/+znJlCQzCocN1Y2E2Qx+eSChknJubT58UWF9J56w z2t4wWBOufNBMaDW+SUGV4gSQXU1boRv1/U4+lU9kS19lHYk2QfBgcTr1HJTIxZ5b3 HZsX+yS4c5+0+namoTqDsnwAiMdrUppI3DpOTkPw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Preethi G , Kalesh AP , Selvin Xavier , Leon Romanovsky , Sasha Levin Subject: [PATCH 6.6 135/222] RDMA/bnxt_re: Fix reporting hw_ver in query_device Date: Mon, 6 Jan 2025 16:15:39 +0100 Message-ID: <20250106151155.877337430@linuxfoundation.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250106151150.585603565@linuxfoundation.org> References: <20250106151150.585603565@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kalesh AP [ Upstream commit 7179fe0074a3c962e43a9e51169304c4911989ed ] Driver currently populates subsystem_device id in the "hw_ver" field of ib_attr structure in query_device. Updated to populate PCI revision ID. Fixes: 1ac5a4047975 ("RDMA/bnxt_re: Add bnxt_re RoCE driver") Reviewed-by: Preethi G Signed-off-by: Kalesh AP Signed-off-by: Selvin Xavier Link: https://patch.msgid.link/20241211083931.968831-6-kalesh-anakkur.purayil@broadcom.com Signed-off-by: Leon Romanovsky Signed-off-by: Sasha Levin --- drivers/infiniband/hw/bnxt_re/ib_verbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/bnxt_re/ib_verbs.c b/drivers/infiniband/hw/bnxt_re/ib_verbs.c index 9bf00fb666d7..9e8f86f48801 100644 --- a/drivers/infiniband/hw/bnxt_re/ib_verbs.c +++ b/drivers/infiniband/hw/bnxt_re/ib_verbs.c @@ -147,7 +147,7 @@ int bnxt_re_query_device(struct ib_device *ibdev, ib_attr->vendor_id = rdev->en_dev->pdev->vendor; ib_attr->vendor_part_id = rdev->en_dev->pdev->device; - ib_attr->hw_ver = rdev->en_dev->pdev->subsystem_device; + ib_attr->hw_ver = rdev->en_dev->pdev->revision; ib_attr->max_qp = dev_attr->max_qp; ib_attr->max_qp_wr = dev_attr->max_qp_wqes; ib_attr->device_cap_flags = -- 2.39.5