Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp255237pxa; Wed, 12 Aug 2020 00:42:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDHnZaC5Pg4Xu66Nx5CSxys2muie4RN0q7dwocNPKjhMSbJMcsH9XhCgPqaSrwtL5Zgv0J X-Received: by 2002:a17:906:68da:: with SMTP id y26mr29243339ejr.250.1597218175794; Wed, 12 Aug 2020 00:42:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597218175; cv=none; d=google.com; s=arc-20160816; b=piCm4KZ8TVsmYUDrK4htoAg/TC9GbCBEbTDwNYJX7BUeWsRbqefHwMC9Ke5h2cnrkr Epdbu8zGLnLLyokUhMYzCIZRCGL6AiRH+hnqblNdyHRwcnq3pfN0lvYb5OAS0Y12OgF6 ABFeBb7o04WyvzQHcLULr34pHAfKvbk8EsvYgCMrFpBeCguSpTJUcdfzUOLpPG/tGUmK JFR8NwUMIvXjxJoJHNu+ZJmJ6qIiCVjqgc2MCSsSxF928nk+AeyqMHqdIHdVRs9U8Cu+ Ky6loae0m9o1YkITbU3AvJ1ZJ+kFg2FfkUb2kXA4LmMrELIaXqzLmni7rgsT5+UDdp9o 6f6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject:dkim-signature; bh=OHEoD0OL9TMKDoEtwEodFChTT/XNznBR9noWaAASTjY=; b=MaJhWVsWsAl8jISzj9hDmcUn3dXz7bC5neQQnnHuezbqdWGFc/5ui8o6JjrNiFgJ5+ jMDkv5sKz0FE4Gq9xPUTsSG62dYNSVAsXzpVTe0Q1hTSa6zjyOzawI6LAkyXywgsOCWd KL+zWNtogCdQEQX7zlY2qJomW5oYV1w1Ku77/XC2wEOvgKUk/7kS7BfvrIq7B81gBGUT cqcBZ86FKnEBoyE7FF+t2f8QcnDEW7ABSq7I5BV4Fg+N07vhWYLpBkEmlAs0wVm9S8In trxar7yEFw38M9oD+jJ3P6jcLS4Eq+2OZ6bFldgmdz4/g8plo+vzncazdgraeYXmZuyF GPLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YS7LHI77; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p22si762265eds.169.2020.08.12.00.42.32; Wed, 12 Aug 2020 00:42:55 -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=@redhat.com header.s=mimecast20190719 header.b=YS7LHI77; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726692AbgHLHjd (ORCPT + 99 others); Wed, 12 Aug 2020 03:39:33 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:41325 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726255AbgHLHja (ORCPT ); Wed, 12 Aug 2020 03:39:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1597217968; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=OHEoD0OL9TMKDoEtwEodFChTT/XNznBR9noWaAASTjY=; b=YS7LHI776V+SxPrqpAHgUfAZEcwXPWdTo5kowiUPOWz4u+jAmY1shd0e9jW+ABJHFfqFoV 6W/Py6MOZciU7Z6Gd9oB13H+p0IfunMjAcGxWcrJfV80Q5iCqkHtZSxz7i+22oPwDiT0Q7 R+QfnKfctrpEIaZOblVXUSg2ApMUHhU= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-381-eDlGBmfsMUmbX0Rua8QoeA-1; Wed, 12 Aug 2020 03:39:24 -0400 X-MC-Unique: eDlGBmfsMUmbX0Rua8QoeA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3BDE280183C; Wed, 12 Aug 2020 07:39:23 +0000 (UTC) Received: from [10.36.110.45] (unknown [10.36.110.45]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3C8C38BB13; Wed, 12 Aug 2020 07:39:19 +0000 (UTC) Subject: Re: [PATCH 1/2] vdpa: ifcvf: return err when fail to request config irq To: Jason Wang , mst@redhat.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org Cc: Zhu Lingshan References: <20200723091254.20617-1-jasowang@redhat.com> From: Maxime Coquelin Autocrypt: addr=maxime.coquelin@redhat.com; keydata= mQINBFOEQQIBEADjNLYZZqghYuWv1nlLisptPJp+TSxE/KuP7x47e1Gr5/oMDJ1OKNG8rlNg kLgBQUki3voWhUbMb69ybqdMUHOl21DGCj0BTU3lXwapYXOAnsh8q6RRM+deUpasyT+Jvf3a gU35dgZcomRh5HPmKMU4KfeA38cVUebsFec1HuJAWzOb/UdtQkYyZR4rbzw8SbsOemtMtwOx YdXodneQD7KuRU9IhJKiEfipwqk2pufm2VSGl570l5ANyWMA/XADNhcEXhpkZ1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0/bJGhgUr9U7oG7Hh2F8vzpOqZrdd65MRkxmc7bWj1k81tOU2woR/Gy8xLzi0k0KUa8ueB iYOcZcIGTcs9CssVwQjYaXRoeT65LJnTxYZif2pfNxfINFzCGw42s3EtZFteczClKcVSJ1+L +QUY/J24x0/ocQX/M1PwtZbB4c/2Pg/t5FS+s6UB1Ce08xsJDcwyOPIH6O3tccZuriHgvqKP yKz/Ble76+NFlTK1mpUlfM7PVhD5XzrDUEHWRTeTJSvJ8TIPL4uyfzhjHhlkCU0mw7Pscyxn DE8G0UYMEaNgaZap8dcGMYH/96EfE5s/nTX0M6MXV0yots7U2BDb4soLCxLOJz4tAFDtNFtA wLBhXRSvWhdBJZiig/9CG3dXmKfi2H+wdUCSvEFHRpgo7GK8/Kh3vGhgKmnnxhl8ACBaGy9n fxjSxjSO6rj4/MeenmlJw1yebzkX8ZmaSi8BHe+n6jTGEFNrbiOdWpJgc5yHIZZnwXaW54QT UhhSjDL1rV2B4F28w30jYmlRmm2RdN7iCZfbyP3dvFQTzQ4ySquuPkIGcOOHrvZzxbRjzMx1 Mwqu3GQ= Message-ID: Date: Wed, 12 Aug 2020 09:39:17 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200723091254.20617-1-jasowang@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 7/23/20 11:12 AM, Jason Wang wrote: > We ignore the err of requesting config interrupt, fix this. > > Fixes: e7991f376a4d ("ifcvf: implement config interrupt in IFCVF") > Cc: Zhu Lingshan > Signed-off-by: Jason Wang > --- > drivers/vdpa/ifcvf/ifcvf_main.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/vdpa/ifcvf/ifcvf_main.c b/drivers/vdpa/ifcvf/ifcvf_main.c > index f5a60c14b979..ae7110955a44 100644 > --- a/drivers/vdpa/ifcvf/ifcvf_main.c > +++ b/drivers/vdpa/ifcvf/ifcvf_main.c > @@ -76,6 +76,10 @@ static int ifcvf_request_irq(struct ifcvf_adapter *adapter) > ret = devm_request_irq(&pdev->dev, irq, > ifcvf_config_changed, 0, > vf->config_msix_name, vf); > + if (ret) { > + IFCVF_ERR(pdev, "Failed to request config irq\n"); > + return ret; > + } > > for (i = 0; i < IFCVF_MAX_QUEUE_PAIRS * 2; i++) { > snprintf(vf->vring[i].msix_name, 256, "ifcvf[%s]-%d\n", > This series fixes below Kernel BUG I faced while doing some experiments: [ 1398.695362] kernel BUG at drivers/pci/msi.c:375! [ 1398.700561] invalid opcode: 0000 [#1] SMP PTI [ 1398.705423] CPU: 0 PID: 25110 Comm: dpdk-testpmd Not tainted 5.8.0-amorenoz-vdpa+ #2 [ 1398.714063] Hardware name: Dell Inc. PowerEdge R730/072T6D, BIOS 2.4.3 01/17/2017 [ 1398.722415] RIP: 0010:free_msi_irqs+0x189/0x1c0 [ 1398.727470] Code: 14 85 c0 0f 84 cc fe ff ff 31 ed eb 0f 83 c5 01 39 6b 14 0f 86 bc fe ff ff 8b 7b 10 01 ef e8 7e 94 b9 ff 48 83 78 70 00d [ 1398.748426] RSP: 0018:ffffb48ac5dd3db8 EFLAGS: 00010286 [ 1398.754257] RAX: ffff9ab298b85400 RBX: ffff9ab285d97100 RCX: 0000000000000000 [ 1398.762219] RDX: 0000000000000000 RSI: 0000000000000073 RDI: ffffffffac65e8a0 [ 1398.770182] RBP: 0000000000000000 R08: ffff9ab298b85400 R09: ffff9ab74a8c3d98 [ 1398.778145] R10: ffff9ab74a8c3f58 R11: 0000000000000000 R12: ffff9ab719fd82e0 [ 1398.786107] R13: ffff9ab719fd8000 R14: ffff9ab719fd8000 R15: ffff9ab719fd80b0 [ 1398.794069] FS: 00007efc5dea9000(0000) GS:ffff9ab75fc00000(0000) knlGS:0000000000000000 [ 1398.803099] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1398.809508] CR2: 000000c000079ff8 CR3: 000000038283e005 CR4: 00000000003606f0 [ 1398.817471] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 1398.825434] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 1398.833394] Call Trace: [ 1398.836127] pci_disable_msix+0xf7/0x120 [ 1398.840504] pci_free_irq_vectors+0xe/0x20 [ 1398.845074] ifcvf_vdpa_set_status+0xda/0x301 [ 1398.849938] vhost_vdpa_unlocked_ioctl+0x61d/0x790 [ 1398.855277] ? vhost_vdpa_process_iotlb_msg+0x2f0/0x2f0 [ 1398.861109] ksys_ioctl+0x87/0xc0 [ 1398.864808] __x64_sys_ioctl+0x16/0x20 [ 1398.868992] do_syscall_64+0x52/0x90 [ 1398.872982] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 1398.878610] RIP: 0033:0x7efc5df9ff9b [ 1398.882598] Code: 0f 1e fa 48 8b 05 ed ce 0c 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa b8 10 00 00 008 [ 1398.903551] RSP: 002b:00007ffd0948e378 EFLAGS: 00000283 ORIG_RAX: 0000000000000010 [ 1398.911998] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007efc5df9ff9b [ 1398.919960] RDX: 00007ffd0948e3d4 RSI: 000000004001af72 RDI: 000000000000002c [ 1398.927921] RBP: 00007ffd0948e3c0 R08: 0000000002651bf8 R09: 0000000000000000 [ 1398.935883] R10: 00007ffd0948e417 R11: 0000000000000283 R12: 0000000000408950 [ 1398.943845] R13: 00007ffd0948e6a0 R14: 0000000000000000 R15: 0000000000000000 [ 1398.951809] Modules linked in: vxlan ip6_udp_tunnel udp_tunnel ip_vs_sh ip_vs_wrr ip_vs_rr ip_vs xt_comment xt_mark nf_tables xt_nat vetht [ 1398.951847] ghash_clmulni_intel iTCO_vendor_support mlx5_core dcdbas rapl intel_cstate intel_uncore ipmi_ssif pcspkr mxm_wmi mlxfw virtii Tested-by: Maxime Coquelin Thanks, Maxime