Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1150431pxv; Fri, 9 Jul 2021 19:37:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxl0K0d939uQ39TdoaPwPWZmUoO9yxhDnELM1siZmdH2zm8cMCd4B1w14kbrWeNhbW0LCGH X-Received: by 2002:a02:ca41:: with SMTP id i1mr15770859jal.70.1625884670203; Fri, 09 Jul 2021 19:37:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625884670; cv=none; d=google.com; s=arc-20160816; b=V54buW6A5RGx5NOtCHGOeIT+hSOawWl8QJxG9LDJLEZLeFNOrgExN1GGD0UBqDwJOe 2kH6jqqjvUM8SvX6wP/+PVPu0+yirqvjIvaHEWL/QcZLG4dimCcfrodNb0H/2N1eZ8Z4 JP0v+KyiS8sJBgZpVwbh7XpMsSt7bnULXnmexC0kELSuKgllmlWnXPltdYsz9r9qDbBA p+NSQHXDTKAVSjfMU/hfTPCMOcwQ16xhTlF3k7d3FU5H7iN4bkb55e58xg5sI5xqpv7z CHRbLm0BJe/XvIr7nkHBPzAeq+XQrJHsS0Ux0lnRxwgfBBv3cpWZFh253F7HWcrTVEEN 7qkg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=cFlv5Aycggch8Ep8RuyBc3EQjncfA20RbTp5UOY8qXU=; b=guH4Y54JUASkIy7wdhq1zcmGnlK5RGW0gZn9thXmXA+XsaLQex8XGJYE7q33HtUsoE I9tRFSNzix+YRwV3a4wzhzuysEQJvlTK7Adl7kuJR5dBc/cj91jTd0kMJYN8eyOU/qV8 n26FIqYxFZmLT9esj2hiAtCGEZvuKuysQP9BI95Wb9w1bXw+4CclyiEVaKTyrN4z0gHg Sw0UYEFA4hmAIpnIj+6ehITSWY7xRKQSumgD1eWrrUHUZfg0XLhTNMmVunsJu0GFMXrn PAAEWowrDQuN+xlRPliVZOHW/gI6RLg61xuzs1qRFz/4SAWcUuNJeTShVk6iapc0mjT1 Gytw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="C+8/B6xU"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c6si8955525jab.33.2021.07.09.19.37.38; Fri, 09 Jul 2021 19:37:50 -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=@kernel.org header.s=k20201202 header.b="C+8/B6xU"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232856AbhGJCjw (ORCPT + 99 others); Fri, 9 Jul 2021 22:39:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:56622 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234764AbhGJChk (ORCPT ); Fri, 9 Jul 2021 22:37:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8787A613CA; Sat, 10 Jul 2021 02:34:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625884496; bh=nrRvggJviXFfdy9LsU0DWs5Wxc2DOv6ikzovAtFzfGs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=C+8/B6xUUunXU1Lalx96gB77oNvAkJOer/p0PDEueWf05FEkn/XtPDYV2W2FtgZRB yKwWucrjcRhuvw86Deqr7rKGIrJa1EUbMvLDP/hb6HIyt+IjmA1WhcCrjbmZZu2Iu/ Mcmj8do9ctjGdk5LIPWhDynOn4/uU7Wr/kQUC/qvEwupc26fTQaho04J04X9c0Lqxv NCawxs8tDfnnlW67fP4sQgxiNnAFtz0mMqYyHfnjOAKnmXFsA22Bf0MswgYl54L85z foBjKR2JqmK11AWWBO807ALPZdNbRaHfLmI/VeDBaVe0BWiuZvh/5jty/tZtQ6tWWK zUsPZN+9V0BvQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Athira Rajeev , Shirisha Ganta , Michael Ellerman , Sasha Levin , linuxppc-dev@lists.ozlabs.org, linux-kselftest@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 25/39] selftests/powerpc: Fix "no_handler" EBB selftest Date: Fri, 9 Jul 2021 22:31:50 -0400 Message-Id: <20210710023204.3171428-25-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210710023204.3171428-1-sashal@kernel.org> References: <20210710023204.3171428-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore 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