From patchwork Mon Feb 6 20:47:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 53504 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2454044wrn; Mon, 6 Feb 2023 12:50:06 -0800 (PST) X-Google-Smtp-Source: AK7set91KWKdxfA+IPCh8rXDY/My5C37IQUP4eHFHVb0Hnf9Btwi8Qi9EOMztSgq9Z4jPlxfvN0Q X-Received: by 2002:a17:902:f2ca:b0:199:1491:c5ff with SMTP id h10-20020a170902f2ca00b001991491c5ffmr156788plc.37.1675716606040; Mon, 06 Feb 2023 12:50:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675716606; cv=none; d=google.com; s=arc-20160816; b=q1StANFtvR/SKPXCIq5wo8Lr9rw+L4HrYkq2ZCeYp2xta4zCWm5OzG8ou0a0ts39ao aDfnrBPc25oXU8wMne4BDJKd6FcEmNgOqBohfqkas62ZCsK1MzjaSprJU0WAlCRvKBF8 1V/RNmEpka08Ic7aILX2dG70QAc9Not6IIAbB94LD7SQedUb5f5vjxlUTwxYNssH/VYI yZHftPzY2HNGfnbWnqPTFydyaUIbkD2uaTJ2AYpKNZwDs4JrYHRwQF9JVxBgan/WMhwz xInGoWbRG1ak5jWu2qn9RJ2awA3zWV46L5e7/i5pViGzph4vWRvXlG0jc/w1NREUSQmP KXww== 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 :message-id:date:subject:cc:to:from; bh=lVCM7ppZvWPv0FWgAoeEHCyX95o4pmFH2WhzfJapagw=; b=ZOlfLzvo9uWzosLGPHU/mqGkQsdT1xBvsnlqcBprAvI2rVvHYe64AO+8DSg3BTLbrz 7yL/H1N3vfE/dGr6v03V7Ln9AlRmWwMRtFCIxH13kORnH60SbPdrnDMBXOHpgAZKG8xW k9FCALrDLZdaZFV49mpEEjq6TqQ+OeuibmCJOEk16crVESivLJnoBEnbLZRrCtfAIsmK cLe81PhfLyiwcsbZK4uOH/8snLNgA1mp7WrmjfMDNhPKINJNkWabu/scz5l27WNxCfA/ +gjEE17xvXX6OF3Vq01CzjCUSTsKpSgmviRJE8Xa/MkV++uCq72G73XnotqMIQn01lNO 87jg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p13-20020a637f4d000000b004fa0cf58e12si9093000pgn.630.2023.02.06.12.49.53; Mon, 06 Feb 2023 12:50:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229826AbjBFUs2 (ORCPT + 99 others); Mon, 6 Feb 2023 15:48:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229566AbjBFUs0 (ORCPT ); Mon, 6 Feb 2023 15:48:26 -0500 Received: from mail-ot1-f45.google.com (mail-ot1-f45.google.com [209.85.210.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F29601DBB8 for ; Mon, 6 Feb 2023 12:48:25 -0800 (PST) Received: by mail-ot1-f45.google.com with SMTP id e12-20020a0568301e4c00b0068bc93e7e34so3571237otj.4 for ; Mon, 06 Feb 2023 12:48:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=lVCM7ppZvWPv0FWgAoeEHCyX95o4pmFH2WhzfJapagw=; b=du/Rr05MsZoyDDriWw9JxDc4W5e1jJ7W8K9JASgOpe/J1GW6QldOzPZ4lod6bR0q2M r0d6UFNzfV43hj1EaIRY05J1bnrsb5CsDbhhDGfCWO5u3oGpP2FNJfgRu3pcOjQvqPYh AcsbA0r9lMiLNIv9cqWUQ6Rql05CWxNwQZg/kDFIyF7+nOiHvBVula1enPDcxBfSxkLI zggHS5tDdTau/N5EGUIOp1ZUtFLxRC8NQH/Ylv/5tFiLCN2+eTMUjIj/7h1F7um8UfiZ CnVygLqMNnSQbwB00VJelCqBYuU3JL9XCpRuHw4+d+uC+YMSHf8NEqUjlVQXWF35C8tS at4g== X-Gm-Message-State: AO0yUKVqTTbRMyTxSN4uaGo+aLqptXbZPvz9fwx7hsNLhHcCnFgRb9TW 7SQCbEoeu0J5G7hiMGBJ7w== X-Received: by 2002:a05:6830:349e:b0:68b:d4ac:1ca0 with SMTP id c30-20020a056830349e00b0068bd4ac1ca0mr633920otu.29.1675716505110; Mon, 06 Feb 2023 12:48:25 -0800 (PST) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id l21-20020a05683016d500b0068663820588sm5585250otr.44.2023.02.06.12.48.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Feb 2023 12:48:24 -0800 (PST) Received: (nullmailer pid 1453774 invoked by uid 1000); Mon, 06 Feb 2023 20:48:24 -0000 From: Rob Herring To: Will Deacon , Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] perf: arm_spe: Print the version of SPE detected Date: Mon, 6 Feb 2023 14:47:46 -0600 Message-Id: <20230206204746.1452942-1-robh@kernel.org> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757116215841993598?= X-GMAIL-MSGID: =?utf-8?q?1757116215841993598?= There's up to 4 versions of SPE now. Let's add the version that's been detected to the driver's informational print out. Signed-off-by: Rob Herring --- drivers/perf/arm_spe_pmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/perf/arm_spe_pmu.c b/drivers/perf/arm_spe_pmu.c index 573db4211acd..b9ba4c4fe5a2 100644 --- a/drivers/perf/arm_spe_pmu.c +++ b/drivers/perf/arm_spe_pmu.c @@ -1105,8 +1105,8 @@ static void __arm_spe_pmu_dev_probe(void *info) } dev_info(dev, - "probed for CPUs %*pbl [max_record_sz %u, align %u, features 0x%llx]\n", - cpumask_pr_args(&spe_pmu->supported_cpus), + "probed SPEv1.%d for CPUs %*pbl [max_record_sz %u, align %u, features 0x%llx]\n", + spe_pmu->pmsver - 1, cpumask_pr_args(&spe_pmu->supported_cpus), spe_pmu->max_record_sz, spe_pmu->align, spe_pmu->features); spe_pmu->features |= SPE_PMU_FEAT_DEV_PROBED;