Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3900087pxv; Mon, 19 Jul 2021 11:29:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/LBxGcY7FYDoe+RUccEaGaLGH6a8QCUCW77bxSmM7784Rj1ubc8UKVDk5DQ/1+t/F7UBv X-Received: by 2002:aa7:da4f:: with SMTP id w15mr35749334eds.266.1626719352054; Mon, 19 Jul 2021 11:29:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626719352; cv=none; d=google.com; s=arc-20160816; b=NapVP418BamzRoP5Q+kZKGtfFEToo0z8JnJsdeH+Dhqds+pD8TIRISNvyRzsKOWTCX 4xcZ/KYmDFEYqF1MnqH4KGE89O1Dhig+0+PPzezKStTx1w01i5jI590SclCk9F06/7Z/ YRo9rq6UEfReCQMJzvZOD5+kG9jhp+FAn3bduzkIMQ3tMiI0fkEeiNwo81PTgYahs00A y2bs5DZXZZa716n5QCK+UWG6TpGrHu+9L6qYnyVmgXGb9prmCpEycyVjXnZwYrjwjHoV bFK1x8bPh0a3jV4MdOoAs0dYsI9JrmDUPQJX9cTwm7EStUlWPrK+OBx17ZV7UnsgI3ft panw== 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=iNbZZXvpZWE5xn71NdkLPveX2i/q2NhFnty95S+Q+ns=; b=u0Wk8v92TluZeVCtzX3mln82lO0PfkUHlHPRdfT87bwzxRtCGmaLenPodvZWg26dMo NOzdyHx6Z6eEoWHP3Yn2pt7IsD3pPgjVnEkRrud0RF1NiP0oUzZdYpeAZSpO4HqrsQtB tQeDEBUoiPWY/xsQQnX76hRhm8eMp13nmhGySuVzD6Z4re02+gOWk248/rtGxHhC9gcb tIln8JgexsVgelRKFtCMc6p4BATeQVABkDGtaVBH+H23a8a+EUzhO2A4+Pw2SQCgpGzJ cUVff2fM9rTL7QtqnjU+Qftuqu3B3PcLlnBjpL7tDaYV5JpA+JtsoJCcDxbkQzM/LP1r ETbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=s9Hi41Pq; 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 w15si3365992edr.74.2021.07.19.11.28.48; Mon, 19 Jul 2021 11:29:12 -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=s9Hi41Pq; 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 S1382151AbhGSRjG (ORCPT + 99 others); Mon, 19 Jul 2021 13:39:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:38316 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344450AbhGSQEX (ORCPT ); Mon, 19 Jul 2021 12:04:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 59BC3610D0; Mon, 19 Jul 2021 16:45:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626713101; bh=jwxkV8jZGl94FlM/nlAXZjfg9eIq3wI2w8TCMXtD7B8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s9Hi41PqeOe63n8kQQrz6Ab16wCUcBs7We0h9mVkW3AgtzOXWEmMDtyoxNmWXmy1Y 3HQHymF0zrupRN0bMssj0A842gpdO2rukLrTuB87vFMwEdwo+bg+pZEK8PmsGhjff7 eVjKSLKi7tt2mfmCGCf83ycZT8LETNycExLPhj2w= 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 5.4 046/149] selftests/powerpc: Fix "no_handler" EBB selftest Date: Mon, 19 Jul 2021 16:52:34 +0200 Message-Id: <20210719144912.323285917@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210719144901.370365147@linuxfoundation.org> References: <20210719144901.370365147@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 fc5bf4870d8e..01e827c31169 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