Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1146016pxv; Fri, 9 Jul 2021 19:28:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQBivQ+ST2X2wIw+ypW8qEf8QnRyW75hCIPUknklAdzWW7s27RQfEiH3fcaI7fI6dDRZnd X-Received: by 2002:a05:6402:1014:: with SMTP id c20mr50792814edu.380.1625884125240; Fri, 09 Jul 2021 19:28:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625884125; cv=none; d=google.com; s=arc-20160816; b=fAaZgA41yB4rWnUBIpdtP3jHu5z/mjGJ06EH+HVYJARPVRqLG0UjDCEE/CWM/x2oU6 X1wF93D/ZDZGgoqmSRgg9gl76Q4LECJuriRvoZ8yRmvLGwaoCY2va83FbIkmCigBMHsL qT/ga32v0K3M5Z9I7K9mPUwDsdF3u4Njq1KbynoYyv4sWO7AiJhxrMkDAW4jsuoyj9dx WmqS3oBN1p166tMiNTb343nPWExvBMhp/psNTVprGmiF3U08YkpkPSylSdHfacf8LJUv /Ylj/MuHwk2WLczbdTNr2K8jn26xe8C01AGRafBMmeEgVKlUiGj8aHmoTtEq2vEYgPyy UZlw== 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=iNbZZXvpZWE5xn71NdkLPveX2i/q2NhFnty95S+Q+ns=; b=nd5CrsQw45THbnOf8s1dhveFDBOCew12aiWte1wyE+xjeJBZZhGCJ19a8oh9ZWu7gT TFSEJNG9X1O5CfDjEhWSqrdQoOaBz82PuMoiNoPCASg5dVCnke8r8YOp9XcVt7XdvgpM NXhCOB9MstQpwrLo0OZg/O269+JPZbZ0fE8+bfsAf4auYo//sHATbSrMF0UmusaqqhvU +OBH8KO0LwM5X9j0E+eiHjXAXGCHGfN4JD1A7p5shSMmCFGzQizjTLDSqzQRXwJoGC7T TqLAZZmL0G6CFk2xTl1KHVllfXriUKP7W6mFf/EZpOtVlhMLYwmOMdTVk3pvi3lCK+7v DmPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XV0KuQxw; 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 y15si104949edv.143.2021.07.09.19.28.21; Fri, 09 Jul 2021 19:28:45 -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=XV0KuQxw; 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 S232801AbhGJC1e (ORCPT + 99 others); Fri, 9 Jul 2021 22:27:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:43064 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233117AbhGJC0Z (ORCPT ); Fri, 9 Jul 2021 22:26:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 80A86613C3; Sat, 10 Jul 2021 02:23:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625883819; bh=jwxkV8jZGl94FlM/nlAXZjfg9eIq3wI2w8TCMXtD7B8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XV0KuQxwvDhY3zVeTsVz/cT3HoOzRs4EH13yIHZbsEOn2xLP+924j7kqs2c1hgQ6d yVMKOck1pRcCtKMi8pTxly4gpnvxq5KKs0U3MLX+nMEvZF8zevrP5NLLzjswYJXPzo XIBPI6Edc/PD+eiZMjA3REOvzBDcFz2rNpLKjy0fSuJyRcZp5/Ld0dt0IY7Blc2coF DN+rsk0pCx5ZnG3/ww1Qx8i9tDFykBYs3kZB7JBhYMex2KzVFR8sKFDqe1mhqqYrRq QFbUUBT6k2yf3v7Ss99qNQpeb8my1OMLSntyU/MXM0kRt67UbA142EnkEfAlBjHaJq yLE3GkdMk/GDg== 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 5.12 068/104] selftests/powerpc: Fix "no_handler" EBB selftest Date: Fri, 9 Jul 2021 22:21:20 -0400 Message-Id: <20210710022156.3168825-68-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210710022156.3168825-1-sashal@kernel.org> References: <20210710022156.3168825-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 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