mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Yunsheng Lin <linyunsheng@huawei.com>
To: Jakub Kicinski <kuba@kernel.org>, Zenghui Yu <yuzenghui@huawei.com>
Cc: <yisen.zhuang@huawei.com>, <salil.mehta@huawei.com>,
	<davem@davemloft.net>, <netdev@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>, <wanghaibin.wang@huawei.com>,
	<tanhuazhong@huawei.com>
Subject: Re: [PATCH net] net: hns3: Clear the CMDQ registers before unmapping BAR region
Date: Tue, 27 Oct 2020 09:24:10 +0800	[thread overview]
Message-ID: <bca7fb17-2390-7ff3-d62d-fe279af6a225@huawei.com> (raw)
In-Reply-To: <20201026161325.6f33d9c8@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net>

On 2020/10/27 7:13, Jakub Kicinski wrote:
> On Fri, 23 Oct 2020 15:01:14 +0800 Zenghui Yu wrote:
>> On 2020/10/23 14:22, Yunsheng Lin wrote:
>>> On 2020/10/23 13:15, Zenghui Yu wrote:  
>>>> When unbinding the hns3 driver with the HNS3 VF, I got the following
>>>> kernel panic:
>>>>
>>>> [  265.709989] Unable to handle kernel paging request at virtual address ffff800054627000
>>>> [  265.717928] Mem abort info:
>>>> [  265.720740]   ESR = 0x96000047
>>>> [  265.723810]   EC = 0x25: DABT (current EL), IL = 32 bits
>>>> [  265.729126]   SET = 0, FnV = 0
>>>> [  265.732195]   EA = 0, S1PTW = 0
>>>> [  265.735351] Data abort info:
>>>> [  265.738227]   ISV = 0, ISS = 0x00000047
>>>> [  265.742071]   CM = 0, WnR = 1
>>>> [  265.745055] swapper pgtable: 4k pages, 48-bit VAs, pgdp=0000000009b54000
>>>> [  265.751753] [ffff800054627000] pgd=0000202ffffff003, p4d=0000202ffffff003, pud=00002020020eb003, pmd=00000020a0dfc003, pte=0000000000000000
>>>> [  265.764314] Internal error: Oops: 96000047 [#1] SMP
>>>> [  265.830357] CPU: 61 PID: 20319 Comm: bash Not tainted 5.9.0+ #206
>>>> [  265.836423] Hardware name: Huawei TaiShan 2280 V2/BC82AMDDA, BIOS 1.05 09/18/2019
>>>
>>> Do you care to provide the testcase for above calltrace?  
>>
>> I noticed it with VFIO, but it's easy to reproduce it manually. Here you
>> go:
>>
>>    # cat /sys/bus/pci/devices/0000\:7d\:00.2/sriov_totalvfs
>> 3
>>    # echo 3 > /sys/bus/pci/devices/0000\:7d\:00.2/sriov_numvfs
>>    # lspci | grep "Virtual Function"
>> 7d:01.6 Ethernet controller: Huawei Technologies Co., Ltd. HNS RDMA 
>> Network Controller (Virtual Function) (rev 21)
>> 7d:01.7 Ethernet controller: Huawei Technologies Co., Ltd. HNS RDMA 
>> Network Controller (Virtual Function) (rev 21)
>> 7d:02.0 Ethernet controller: Huawei Technologies Co., Ltd. HNS RDMA 
>> Network Controller (Virtual Function) (rev 21)
>>    # echo 0000:7d:01.6 > /sys/bus/pci/devices/0000:7d:01.6/driver/unbind
> 
> Do you know if the bug occurred on 5.4? Is this the correct fixes tag?
> 
> Fixes: 862d969a3a4d ("net: hns3: do VF's pci re-initialization while PF doing FLR")

The correct Fixes tag should be:

Fixes: e3338205f0c7 ("net: hns3: uninitialize pci in the hclgevf_uninit")

Thanks

> 
> .
> 

  reply	other threads:[~2020-10-27  1:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-23  5:15 Zenghui Yu
2020-10-23  6:22 ` Yunsheng Lin
2020-10-23  7:01   ` Zenghui Yu
2020-10-26 23:13     ` Jakub Kicinski
2020-10-27  1:24       ` Yunsheng Lin [this message]
2020-10-27  1:25         ` Jakub Kicinski
2020-10-27  1:42           ` Yunsheng Lin
2020-10-27  3:27             ` Jakub Kicinski

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=bca7fb17-2390-7ff3-d62d-fe279af6a225@huawei.com \
    --to=linyunsheng@huawei.com \
    --cc=davem@davemloft.net \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=salil.mehta@huawei.com \
    --cc=tanhuazhong@huawei.com \
    --cc=wanghaibin.wang@huawei.com \
    --cc=yisen.zhuang@huawei.com \
    --cc=yuzenghui@huawei.com \
    /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

all inboxes | Powered by JetHome®