From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1C003C433EF for ; Tue, 10 May 2022 19:39:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:CC:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XbbdYlaoSk9wJiBdtDEtvPO0NAta3lH16QOqE8oB+EI=; b=2tw5i9P+02JFu+ QNSJGKFuryC+L63MPNc2lugJOTAaQr/HiklyPGcYrUFwSdzKEP41Cdp2/BHcPECS29bJv2JJeBTMV GUaQFAd+o7K2Yt5CxjuWMwgWXYDScb25CF4zPKgeoijlKM7kLNnyWKbmi1OeInyFzbGjtvvXiZQZE oZl3P7jCpA8PufpZUe98uysVLgNSK7KOVfxUwdcW7/YYOKQcrs274rEsTfDk7njPRSMSmDhY/LchI 1KDWPGtLpJvvUV5xQFrwI+PI1QUp0xHfs8kYO9Tkg502q0tF8eztUdlB1SUAn/1ZUBq90p9ffywij 6BuqKmTMkfM66H5WjBpA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1noVgl-003pow-Rp; Tue, 10 May 2022 19:38:31 +0000 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1noVgb-003pmu-HQ for linux-arm-kernel@lists.infradead.org; Tue, 10 May 2022 19:38:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1652211501; x=1683747501; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=QzlWmohZuSNg4ig9TWm8pptv9CEgyH8S6A23UVyM6Pc=; b=m3ZQmRUwcsHg+O9X3pl8AW24P+VNf8XZvtA3HXVzWpr0l3sv6OR3mPrB XTzWkbUOhL80GKOhgWWLRPL6hI0mPXvhdzmDaxNC7zVQdtDPEKdppGuZF NeFIb3tKWkbPuaLwM+bytAWbkVrs4Diw1mP3QmJdmPHQsId/b9xqc8gnh w=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-02.qualcomm.com with ESMTP; 10 May 2022 12:38:18 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2022 12:38:18 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 10 May 2022 12:38:18 -0700 Received: from qian (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 10 May 2022 12:38:17 -0700 Date: Tue, 10 May 2022 15:38:15 -0400 From: Qian Cai To: Robin Murphy CC: , , Subject: Re: [PATCH 0/4] perf/arm-cmn: Add CMN-650 and CMN-700 Message-ID: <20220510193815.GA302@qian> References: <20220510171520.GA215@qian> <781f1ac8-a30c-81d9-8831-22bfbf593f58@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <781f1ac8-a30c-81d9-8831-22bfbf593f58@arm.com> X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220510_123821_664111_A01CB394 X-CRM114-Status: GOOD ( 14.09 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, May 10, 2022 at 06:50:56PM +0100, Robin Murphy wrote: > Hmm, can you narrow it down a bit more to a particular patch and/or a > specific reproducer? I don't see how it could really be crashing > dereferencing event->pmu, especially since none of the code this early in > event_init has even changed recently :/ Right, there is an old bug that sometimes the debuginfo on kernel modules is not accurate on arm64, so gdb and faddr2line gave the wrong line. Anyway, using the printk() method, we were faulted on this line. + /* This is sufficiently annoying to recalculate, so cache it */ + hw->filter_sel = arm_cmn_filter_sel(cmn->model, type, eventid); Also, it can be reproduced within 5-min by running, $ trinity -C 128 -cperf_event_open > Something's definitely screwy here though... these ID numbers should have a > device type above them. Was this dumped with patch #1 applied, and if not do > they show as "????" when it is? Yes, with the series applied, we have, X 0 1 2 3 4 5 6 7 Y P D+--------+--------+--------+--------+--------+--------+--------+--------+ 5 | XP #40 | XP #41 | XP #42 | XP #43 | XP #44 | XP #45 | XP #46 | XP #47 | | DTC 0 | DTC 0 | DTC 0 | DTC 0 | DTC 0 | DTC 0 | DTC 0 | DTC 0 | |........|........|........|........|........|........|........|........| 0 | CXRH | HN-I | HN-I | HN-I | HN-D | HN-I | HN-I | CXRH | 0| #2 | #3 | #4 | #5 | #0 | #6 | #7 | #3 | 1| | | | | | | | | 1 | RN-D | RN-D | RN-D | RN-I | RN-I | RN-D | RN-D | RN-D | 0| #2 | #3 | #4 | #10 | #11 | #5 | #6 | #7 | 1| | | | | | | | | -----+--------+--------+--------+--------+--------+--------+--------+--------+ 4 | XP #32 | XP #33 | XP #34 | XP #35 | XP #36 | XP #37 | XP #38 | XP #39 | | DTC 0 | DTC 0 | DTC 0 | DTC 0 | DTC 0 | DTC 0 | DTC 0 | DTC 0 | |........|........|........|........|........|........|........|........| 0 | SN-F | RN-F_B | RN-I | RN-F_B | RN-F_B | RN-I | RN-F_B | SN-F | 0| | | #8 | | | #9 | | | 1| | | | | | | | | 1 | ???? | RN-F_B | ???? | RN-F_B | RN-F_B | ???? | RN-F_B | ???? | 0| #24 | | #26 | | | #28 | | #30 | 1| #25 | | #27 | | | #29 | | #31 | -----+--------+--------+--------+--------+--------+--------+--------+--------+ 3 | XP #24 | XP #25 | XP #26 | XP #27 | XP #28 | XP #29 | XP #30 | XP #31 | | DTC 0 | DTC 0 | DTC 0 | DTC 0 | DTC 0 | DTC 0 | DTC 0 | DTC 0 | |........|........|........|........|........|........|........|........| 0 | SN-F | RN-F_B | RN-I | RN-F_B | RN-F_B | RN-I | RN-F_B | SN-F | 0| | | #6 | | | #7 | | | 1| | | | | | | | | 1 | ???? | RN-F_B | ???? | RN-F_B | RN-F_B | ???? | RN-F_B | ???? | 0| #16 | | #18 | | | #20 | | #22 | 1| #17 | | #19 | | | #21 | | #23 | -----+--------+--------+--------+--------+--------+--------+--------+--------+ 2 | XP #16 | XP #17 | XP #18 | XP #19 | XP #20 | XP #21 | XP #22 | XP #23 | | DTC 0 | DTC 0 | DTC 0 | DTC 0 | DTC 0 | DTC 0 | DTC 0 | DTC 0 | |........|........|........|........|........|........|........|........| 0 | SN-F | RN-F_B | RN-I | RN-F_B | RN-F_B | RN-I | RN-F_B | SN-F | 0| | | #4 | | | #5 | | | 1| | | | | | | | | 1 | ???? | RN-F_B | ???? | RN-F_B | RN-F_B | ???? | RN-F_B | ???? | 0| #8 | | #10 | | | #12 | | #14 | 1| #9 | | #11 | | | #13 | | #15 | -----+--------+--------+--------+--------+--------+--------+--------+--------+ 1 | XP #8 | XP #9 | XP #10 | XP #11 | XP #12 | XP #13 | XP #14 | XP #15 | | DTC 0 | DTC 0 | DTC 0 | DTC 0 | DTC 0 | DTC 0 | DTC 0 | DTC 0 | |........|........|........|........|........|........|........|........| 0 | SN-F | RN-F_B | RN-I | RN-F_B | RN-F_B | RN-I | RN-F_B | SN-F | 0| | | #2 | | | #3 | | | 1| | | | | | | | | 1 | ???? | RN-F_B | ???? | RN-F_B | RN-F_B | ???? | RN-F_B | ???? | 0| #0 | | #2 | | | #4 | | #6 | 1| #1 | | #3 | | | #5 | | #7 | -----+--------+--------+--------+--------+--------+--------+--------+--------+ 0 | XP #0 | XP #1 | XP #2 | XP #3 | XP #4 | XP #5 | XP #6 | XP #7 | | DTC 0 | DTC 0 | DTC 0 | DTC 0 | DTC 0 | DTC 0 | DTC 0 | DTC 0 | |........|........|........|........|........|........|........|........| 0 | CXRH | RN-F_B | RN-I | RN-F_B | RN-F_B | RN-I | RN-F_B | CXRH | 0| #0 | | #0 | | | #1 | | #1 | 1| | | | | | | | | 1 | RN-D | RN-F_B | HN-I | RN-F_B | RN-F_B | HN-I | RN-F_B | RN-D | 0| #0 | | #1 | | | #2 | | #1 | 1| | | | | | | | | -----+--------+--------+--------+--------+--------+--------+--------+--------+ _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel