From: Shaokun Zhang <zhangshaokun@hisilicon.com>
To: John Garry <john.garry@huawei.com>,
Zhengyuan Liu <liuzhengyuang521@gmail.com>
Cc: Mark Rutland <mark.rutland@arm.com>,
kong.kongxinwei@hisilicon.com, Will Deacon <will@kernel.org>,
linux-arm-kernel@lists.infradead.org
Subject: Re: BUG about Hisilicon PMU
Date: Mon, 11 Jan 2021 17:33:10 +0800 [thread overview]
Message-ID: <ada98c97-1e06-5f71-0487-638f679eebf7@hisilicon.com> (raw)
In-Reply-To: <de766881-dd2c-d621-93b4-deca304c3fe4@huawei.com>
Hi John/Zhengyuan,
在 2021/1/11 17:13, John Garry 写道:
> 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?
I doubt the UEFI which maybe give more HHA numbers than PC has or give the wrong
mmap address space that may cause this issue.
So please can you tell more information about the UEFI?
Shaokun,
>
> Thanks,
> John
> .
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2021-01-11 9:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-11 8:25 BUG about Hisilicon PMU Zhengyuan Liu
2021-01-11 9:13 ` John Garry
2021-01-11 9:33 ` Shaokun Zhang [this message]
2021-01-11 11:38 ` Zhengyuan Liu
2021-01-12 7:38 ` Shaokun Zhang
2021-01-12 7:46 ` Zhengyuan Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ada98c97-1e06-5f71-0487-638f679eebf7@hisilicon.com \
--to=zhangshaokun@hisilicon.com \
--cc=john.garry@huawei.com \
--cc=kong.kongxinwei@hisilicon.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=liuzhengyuang521@gmail.com \
--cc=mark.rutland@arm.com \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).