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 X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77ADAC433E0 for ; Mon, 11 Jan 2021 09:17:50 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EA69F2063A for ; Mon, 11 Jan 2021 09:17:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EA69F2063A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=m5CJdbO6svscxQaU0U8hqUHcvYh5mTttCDnSdyZSd3w=; b=rFqBAAKLXdpVbOWsKbSuflC0N b6oHnP2R0yXekeFLT0ireGJ8eV5uetcf0rdFl/O7gpIaCnDzYQhenTK+ZUUgLd+SAPHb5iGMYY/za usoWRVgHCqQH3DAhKuS/dJxkYUytiY2QFVNQ16BI7B9T+Zu27FpmMjY/pRZ+54kr0Wn4xkVsiwgoQ 2ZeKxbWiAmv8sfNu5fHKYnfgCLFurb+H/IJ8ix7i90cYw5vFPGfu/iccYnCqTCuQOrUxNOJ5b3dup tyjNyRji+Sj9z5wwCQh/sQzPBYXIFhI34JuE5+NVbu44i9NIcuccGqw5c/474bn1W3jD0vXo0r8Ny BKCjQeCvg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kytJH-000703-K9; Mon, 11 Jan 2021 09:16:23 +0000 Received: from frasgout.his.huawei.com ([185.176.79.56]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kytJD-00067A-Az for linux-arm-kernel@lists.infradead.org; Mon, 11 Jan 2021 09:16:20 +0000 Received: from fraeml711-chm.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4DDnwr050hz67ZPK; Mon, 11 Jan 2021 17:10:20 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml711-chm.china.huawei.com (10.206.15.60) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Mon, 11 Jan 2021 10:14:08 +0100 Received: from [10.210.171.188] (10.210.171.188) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2106.2; Mon, 11 Jan 2021 09:14:07 +0000 Subject: Re: BUG about Hisilicon PMU To: Zhengyuan Liu References: From: John Garry Message-ID: Date: Mon, 11 Jan 2021 09:13:02 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-Originating-IP: [10.210.171.188] X-ClientProxiedBy: lhreml703-chm.china.huawei.com (10.201.108.52) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210111_041619_546606_AFAA8A00 X-CRM114-Status: GOOD ( 12.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: zhangshaokun@hisilicon.com, Mark Rutland , kong.kongxinwei@hisilicon.com, Will Deacon , linux-arm-kernel@lists.infradead.org Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 11/01/2021 08:25, Zhengyuan Liu wrote: > Hi, all > > When boot v5.11-rc2 on my Kunpeng 920 PC, the kernel will block at PMU > initialization stage, and after binary-search with bisect I found that > this problem was introduced by commit ac4511c9364c ("drivers/perf: > hisi: Add identifier sysfs file"), > and to be more accurate it actually blocked at following position: > > hisi_hha_pmu_init_data(): > hha_pmu->identifier = readl(hha_pmu->base + HHA_VERSION); > > If you guys had already know this problem, please ignore this message. Do you have a dmesg? I don't see anything to block here, only crash. Does v5.11-rc1 boot ok? It works fine on my D06CS (which includes Kunpeng 920) with rc3: john@debian:~$ more /sys/bus/event_source/devices/hisi_sccl5_hha7/identifier 0x00000000 john@debian:~$ uname -a Linux debian 5.11.0-rc3-dirty #139 SMP PREEMPT Mon Jan 11 08:42:26 GMT 2021 aarch64 GNU/Linux john@debian:~$ @Shaokun, Do you know what could be the problem on PC? Thanks, John _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel