[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PCI pass-through problem for SN570 NVME SSD


  • To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 4 Jul 2022 18:07:16 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=yrLnmREYn27xx1jqBfZXAI2eo/abf2oVC83FWsdzA7w=; b=dNms2NHWLchCinJh1H7iVUsivXu57OGbz2aUyNnMVGR31BKe+w3KB+zeqLXYXMJ3h+z25qRMVLzBmoCTPlB79Ysi8fwiJvGNL1WsuIVWyuW7pquX7NzTaIGvyJ6uxKKZcZLH7HUSAYWoLMou2LqmS93KAxO6WP6tP1/fdgJKUINB9r8YiM/ThWjXNGPL/xHaRDf/ylw0RheE9EhGQtwbZhRrGJJiHKk6pIx5uiRTJ0jEFSYKllCPjFQ7EY8Tlt56/GOugvBSedyk/uqz8eDdeoN1mDaoolYkiqpuZ//zZkmaWt7wU91UhjsH1C+b9XpE0TcY7kOeUvweAxB4+P1ZhQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mPWRok2sCGGycIAlABkByXbAYPk5RWkhijdDt/a+OFPxfbqkOf3xfO6BqyKfgNbuntRU731FoWYVRncJVXq6LSLkt9t+C873sZTk/kqXPO8JPu1VkgFZF2YYSbVEeyHMz2peWIyKxefnIrx3AKcJGg8zSzJnY2oz4CIESZxV1wvU0Ipyk++OWtEnQ2JYZgH6Hsr8cZoMXeLwXt6QyGn5FehaindcSEUnrR5JgtHciqqew16cfbdYBHgDen86UVmthtAgWhnjmmgKahgJ3e7KwwLAzcodnFdMraTS61exgt+7i719HThfrOyO2BBHIu4YQ+PsqUxwKDtYq91vhlkkLQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: xen-devel <xen-devel@xxxxxxxxxxxxx>, "G.R." <firemeteor@xxxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 04 Jul 2022 16:07:23 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 04.07.2022 18:05, Roger Pau Monné wrote:
> On Mon, Jul 04, 2022 at 11:37:13PM +0800, G.R. wrote:
>> On Mon, Jul 4, 2022 at 11:15 PM G.R. <firemeteor@xxxxxxxxxxxxxxxxxxxxx> 
>> wrote:
>>>
>>> On Mon, Jul 4, 2022 at 10:51 PM G.R. <firemeteor@xxxxxxxxxxxxxxxxxxxxx> 
>>> wrote:
>>>>
>>>> On Mon, Jul 4, 2022 at 9:09 PM Roger Pau Monné <roger.pau@xxxxxxxxxx> 
>>>> wrote:
>>>>> Can you paste the lspci -vvv output for any other device you are also
>>>>> passing through to this guest?
>>>>>
>>>
>>> As reminded by this request, I tried to assign this nvme device to
>>> another FreeBSD12 domU.
>> Just to clarify, this time this NVME SSD is the only device I passed to this 
>> VM.
>>
>>> This time it does not fail at the VM setup stage, but the device is
>>> still not usable at the domU.
>>> The nvmecontrol command is not able to talk to the device at all:
>>> nvme0: IDENTIFY (06) sqid:0 cid:0 nsid:0 cdw10:00000001 cdw11:00000000
>>> nvme0: ABORTED - BY REQUEST (00/07) sqid:0 cid:0 cdw0:0
>>> nvme0: IDENTIFY (06) sqid:0 cid:0 nsid:0 cdw10:00000001 cdw11:00000000
>>> nvme0: ABORTED - BY REQUEST (00/07) sqid:0 cid:0 cdw0:0
>>>
>>> The QEMU log says the following:
>>> 00:05.0] Write-back to unknown field 0x09 (partially) inhibited (0x00)
>>> [00:05.0] If the device doesn't work, try enabling permissive mode
>>> [00:05.0] (unsafe) and if it helps report the problem to xen-devel
>>> [00:05.0] msi_msix_setup: Error: Mapping of MSI-X (err: 61, vec: 0x30, 
>>> entry 0)
>>
>> I retried with the following:
>> pci=['05:00.0,permissive=1,msitranslate=1']
>> Those extra options suppressed some error logging, but still didn't
>> make the device usable to the domU.
>> The nvmecontrol command still get ABORTED result from the kernel...
>>
>> The only thing remained in the QEMU file is this one:
>> [00:05.0] msi_msix_setup: Error: Mapping of MSI-X (err: 61, vec: 0x30, entry 
>> 0)
> 
> Hm it seems like Xen doesn't find the position of the MSI-X table
> correctly, given there's only one error path from msi.c returning
> -ENODATA (61).
> 
> Are there errors from pciback when this happens?  I would expect the
> call to pci_prepare_msix() from pciback to fail and thus also report
> some error?
> 
> I think it's likely I will have to provide an additional debug patch
> to Xen, maybe Jan has an idea of what could be going on.

No, sorry, not without - as you say - further debugging output added.

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.