Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3900012pxv; Mon, 19 Jul 2021 11:29:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPbA00iZsf48T7U1P2bPEse622XfCfnpb60gYGLvAw8ytx0QljCQo50uTceyX07qR5ms8N X-Received: by 2002:a05:6402:1347:: with SMTP id y7mr36397868edw.87.1626719346475; Mon, 19 Jul 2021 11:29:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626719346; cv=none; d=google.com; s=arc-20160816; b=LdbEHImWwPC2G7gUMnKHVdDBtWOx8n9dSwoFSbEyuWBnpSVifX2v4wS5Rnx3lXCeAE 7/DHAj3iZ/7kcS3xd4FGkHx/vCga+nDUSVaybk7Y7AvlgSQpgKYVpNb2rganmtCLo10m 4to5ft6BgpNk66aWwubQpE3EXMFq+HpWzjAHrGqXE1UhQIgcjpKTomL/FVmPWqo7szmH o3PHoimXlCq5x06qMq0Z+kVQhWgBDg7pvvlldDEryVxqWj7ktnsYcVXiEciNTP3ennBW DjKb7iBDY8EvZQYPqS8PjNC8oi3UnJf90L8FtnGzHxJnt4505t6HAOPh4fMT16Ju8q5+ 1ukQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=cFlv5Aycggch8Ep8RuyBc3EQjncfA20RbTp5UOY8qXU=; b=PNk+haoroUVVzWyQ14N7j6zLxFeCz0tStFc9Y03T2707FnpsFcGkfSguye1zhmTQtc mLw6Ah7XePlhhDJIip85pylGbksVZy3bGWJPQaXN6BbYDxC56VlRaaGm3O/ts83+INmg VIjemAA7KPyUbMRPptlkY1rb5pFiweaVRwJfepW8g3picRnr0ghK9t6E7FhfSs2CUwPT DIKXWySJvNVBxbRjr4dEeMbLWuQsxDCd0q1dgo7kUfu/caV+iYGXe+N/HOh5L1yI+ECg CyP+8FecuiLu8mHak0ng86SdhbCEJmhZXnRNQJR1V7jJZ9ECF8ttnzy4aiZ+sqM0megc k3xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=duzLTI0d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f24si20640872edw.224.2021.07.19.11.28.42; Mon, 19 Jul 2021 11:29:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=duzLTI0d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382052AbhGSRjA (ORCPT + 99 others); Mon, 19 Jul 2021 13:39:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:38200 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343578AbhGSQEU (ORCPT ); Mon, 19 Jul 2021 12:04:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5121660C40; Mon, 19 Jul 2021 16:44:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626713096; bh=nrRvggJviXFfdy9LsU0DWs5Wxc2DOv6ikzovAtFzfGs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=duzLTI0d6aziRY4To3/Hf6rgp45MQJLIv2hmOKi3Gwsdd6Z4YNI6diQZIOZf9JtEq uv64JJL+lWh4QKGo6zXJ/as/mXuJo0ZAURTVn+tNZEpPe7cV8FT4JeWIvL9//zwLrs Cvp3WqXyO2qUXoyflXsFOQp7hUwd0ZEIIGc3YGp0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shirisha Ganta , Athira Rajeev , Michael Ellerman , Sasha Levin Subject: [PATCH 4.14 254/315] selftests/powerpc: Fix "no_handler" EBB selftest Date: Mon, 19 Jul 2021 16:52:23 +0200 Message-Id: <20210719144951.781446946@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210719144942.861561397@linuxfoundation.org> References: <20210719144942.861561397@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Athira Rajeev [ Upstream commit 45677c9aebe926192e59475b35a1ff35ff2d4217 ] The "no_handler_test" in ebb selftests attempts to read the PMU registers twice via helper function "dump_ebb_state". First dump is just before closing of event and the second invocation is done after closing of the event. The original intention of second dump_ebb_state was to dump the state of registers at the end of the test when the counters are frozen. But this will be achieved with the first call itself since sample period is set to low value and PMU will be frozen by then. Hence patch removes the dump which was done before closing of the event. Reported-by: Shirisha Ganta Signed-off-by: Athira Rajeev Tested-by: Nageswara R Sastry > Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/1621950703-1532-2-git-send-email-atrajeev@linux.vnet.ibm.com Signed-off-by: Sasha Levin --- tools/testing/selftests/powerpc/pmu/ebb/no_handler_test.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/testing/selftests/powerpc/pmu/ebb/no_handler_test.c b/tools/testing/selftests/powerpc/pmu/ebb/no_handler_test.c index 8341d7778d5e..87630d44fb4c 100644 --- a/tools/testing/selftests/powerpc/pmu/ebb/no_handler_test.c +++ b/tools/testing/selftests/powerpc/pmu/ebb/no_handler_test.c @@ -50,8 +50,6 @@ static int no_handler_test(void) event_close(&event); - dump_ebb_state(); - /* The real test is that we never took an EBB at 0x0 */ return 0; -- 2.30.2