Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp589479rdb; Thu, 22 Feb 2024 12:58:26 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUKpbZkkoaDeODVBkWB2sf3sYB2/k9d9x+rYQ0hihNetRz8YJoPetvsEEogPyKnJ+c3rY2g4AU73bwXXjaomQHvAS9yDT+J4YXwAB7DBw== X-Google-Smtp-Source: AGHT+IEw8XzLRkQ3gawnajYq5JZ1PJgIJum+LgIQN7tgg+uYOk83Jt8AL+JRG8wIytH+v0kaQhhv X-Received: by 2002:a17:90b:5383:b0:299:ba59:d20a with SMTP id sv3-20020a17090b538300b00299ba59d20amr10369106pjb.40.1708635506297; Thu, 22 Feb 2024 12:58:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708635506; cv=pass; d=google.com; s=arc-20160816; b=GqBPYRV7MkNnLB9D+iAp0kiCiZyFa7KoEw+wL1nMgZ1LaXY4eCiuh3XHvpFRWc71Zs piOVClyaPH5S1vPnAoInD/jQ64Byzj+GUIgQfVRlJ3Fc8ptrRZzyd/m+MBZvxkHSDMw1 EyfLmhdZ4nmA1IMgSc6hVqTLMRTJCkpqzqcFOCEzYkc6Qi+vZ/pXq7J/ZuDxmZHloEuV KEftAXoas6OzvxkUJBaKOYr3CJqNW/vmn9IC/jlhprv4ZFtyhI7HagFa06/tg5ZbT+SA d4VZ92cYFg7Ur5G9LPxIKq7nybJHFIOvA508Z18eU/0N6chnZiCks/ISpIuSsxufu4tW S/9A== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=uQNCPPxOXSIi1YvPzBU8stcQQepKpFfnl3c3A7lEn1w=; fh=l74HcAni2UfQJngIxo7C8HfGMgimKQ1jenNpkLLX2CQ=; b=T0KkeMh7dE60XDM8Q2/6HMcpn74IjqaiDL2N2+ge+oH618/B2pnyM5r0m5gkO7Li8a DnzMjmvDoKUzZGjvvEDY3SX4yB7JHFSTVHLqq7HcrBnNvPItxvgiQIzVnpX7Uyl9KaMV PRzKacC6Gn8avXeqiB/ZWzN8oAD7O2VixQNkBi66ku96Yezc6N7MzLVo8fz3Cwuj/Jey Setb/mNVW4cX2AsWN7wCpiy/EJR8uuHuHrQMn4jvLt8f/JsTqDsha2DP/ZisjdJr246d o7eD6ks/JFu/IsqYYbw0UcNyL82HhStQb/BOra+jhydJQR9dNDREwDiUEj/jnGESm1RJ VNjA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GfpSA7iM; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-77349-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77349-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id p3-20020a17090ab90300b002971af6cd46si4196022pjr.133.2024.02.22.12.58.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 12:58:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77349-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GfpSA7iM; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-77349-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77349-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 EC70328CF81 for ; Thu, 22 Feb 2024 20:58:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 91FA173F3D; Thu, 22 Feb 2024 20:58:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="GfpSA7iM" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 3E9AA73F0C for ; Thu, 22 Feb 2024 20:58:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708635486; cv=none; b=KEa/FKsdN6yoVxJpZrlY8Hgvp0fMWK7dtFpuzF2LSorxz+cg1OGFvZ56uJsUSIDOBtT5PZeX8u/aL5SEcUODZpQkfO9zzbF3PKwJr8b9UV4TrxfhPjzfU16cy4KP1wPFrafLIFAVnVMPeQ+pN+XpGig3NTr2DTOOkT8wdyM/4O4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708635486; c=relaxed/simple; bh=KO17FxZqGQUTkWpzYZMY3Yy4KQM5Bz9Xy9i+eEsb9uU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TrjamSw3tibInCgiLoZJ77sINaqp2PK7yVVn56a/5M70v+jJ3bY2VPkZeEeZHfSyPrYDFrJlu2e+H6hogw2d9Zij5aRvo1er2FTecspHKuU99xA2ZSCgbUfN8GMPC+C4VKuEyB8Nc1giGl6jNojI5jjAEA/fYFIic+dG7JjKcyo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=GfpSA7iM; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1708635484; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=uQNCPPxOXSIi1YvPzBU8stcQQepKpFfnl3c3A7lEn1w=; b=GfpSA7iMstK3TApu2JFY6mmuYZs9vWfU793d/EA5McPw0zmMJcW2Fs2feneAxPZK76u73N Mvlp66MDTdweIfJnd6XDVQMjPYFDFcESoTruIgMXA4N2BJ26dRKmlSEj4Uvc6k65yKQSOV fLAQti2wJR7750gzy1gfUPRvSimWizc= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-640-iPvArl2jNXObXjSmQJpj3Q-1; Thu, 22 Feb 2024 15:57:58 -0500 X-MC-Unique: iPvArl2jNXObXjSmQJpj3Q-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 43454890F64; Thu, 22 Feb 2024 20:57:58 +0000 (UTC) Received: from ibm-p8-16-fsp.mgmt.pnr.lab.eng.rdu2.redhat.com (unknown [10.22.8.53]) by smtp.corp.redhat.com (Postfix) with ESMTP id EC3EB10802; Thu, 22 Feb 2024 20:57:56 +0000 (UTC) From: Luiz Capitulino To: ilpo.jarvinen@linux.intel.com, shravankr@nvidia.com Cc: davthompson@nvidia.com, ndalvi@redhat.com, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, Luiz Capitulino Subject: [PATCH 0/2] platform/mellanox: mlxbf-pmc: Fix module loading Date: Thu, 22 Feb 2024 15:57:28 -0500 Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 Hi, The mlxbf-pmc driver fails to load when the firmware reports a new but not yet implemented performance block. I can reproduce this today with a Bluefield-3 card and UEFI version 4.6.0-18-g7d063bb-BId13035, since this reports the new clock_measure performance block. This[1] patch from Shravan implements the clock_measure support and will solve the issue. But this series avoids the situation by ignoring and logging unsupported performance blocks. NOTE: This series is based on latest linux-next which contains new changes to mlxbf-pmc. [1] https://lore.kernel.org/lkml/1c2f1b6da51523fe0f338f9ddce9e3903148f604.1707808180.git.shravankr@nvidia.com/ Luiz Capitulino (2): platform/mellanox: mlxbf-pmc: mlxbf_pmc_event_list(): make size ptr optional platform/mellanox: mlxbf-pmc: Ignore unsupported performance blocks drivers/platform/mellanox/mlxbf-pmc.c | 56 +++++++++++++++++---------- 1 file changed, 36 insertions(+), 20 deletions(-) -- 2.43.1