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

"swiotlb buffer is full" in DomU with PCI passthrough is caused by low memory in Dom0


  • To: xen-users@xxxxxxxxxxxxxxxxxxxx
  • From: Paul Leiber <paul@xxxxxxxxxxxxxxxx>
  • Date: Tue, 25 Apr 2023 22:30:44 +0200
  • Arc-authentication-results: i=1; strato.com; arc=none; dkim=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1682454646; s=strato-dkim-0002; d=strato.com; h=Subject:From:To:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=M66C83rzEUOdED5zEp/oxQXgwn44SxhKXgCIqfCirhM=; b=TVn35XEWahGojJp+WB0BAKlFsiS1VWQUYoox7ymeuvPbI56i98IUO/6NiJ50UmsQXs TxNV6LxJkprNosI73Nmk7ISPmXhoaeK6yd8Y88LkoMuiW7PULFjlR6QX4YHMiCtSAPk/ N0TMNV9PDiCtg2xS3dZrcdGUq5Qk5EkgkFcEuEnr1LUPkypeY1082GK2q0Xjix42Wzer ie69ChNMg16LJlmOL1C6wjx8w7erezNvaiDw8rCpfL/UTHEdNnPxEawGUhevQtF34VtT Nr5znCCYlD6/tBLa8uylEETFWWK6irzA9vRCki1lHQMdCCU7LUIwdgxl3yxvPFR6+SxH FCpA==
  • Arc-seal: i=1; a=rsa-sha256; t=1682454646; cv=none; d=strato.com; s=strato-dkim-0002; b=UzGCTcW0IUtnt2zz9hqmhP7bw+BK0HBrENhCFeS/WXt3mSOGgRa0NWx8hNTOXN1Nen vEVlcj0TgbhX7JOAjB4ucPRx0L+hAiKuznM4rv3gjXJivMTP2dLLxJR+7VjVmpDJVZ5g ilwbX8iuZnBRZSlYhv6cw634rgRyjcomlnqErA7JvVozyiYIkMvGKh5Q7ApeRFi+mVBv l29DRsXWm4lWc4B9x2WIuY3y28YjACKp3QSyKR8Ilr9p0Zqc2u3eRvIm+3XONPRx0fMM a4VF7vzg0GQo/jjxYAkULr22g56zilGeOXKp1JntUloXG3Gqeo0uNrOM4hNeZiFEel2c t82g==
  • Delivery-date: Tue, 25 Apr 2023 20:31:41 +0000
  • List-id: Xen user discussion <xen-users.lists.xenproject.org>

Hi,

this message is meant mainly to document an issue and the solution to help others in a similar situation.

I came across this situation when installing Xen on a small PC (PC Engines APU4D4) with 4 GB of RAM and passing through a PCI device (a Compex WLE900VX wifi card) to a OpenWRT DomU. In the beginning, I wanted to use as little memory as possible for the Debian Dom0, therefore I set its memory to 512 MB by using "dom0_mem=512M,max:512M". When trying to pass through the PCI card to the DomU, the DomU could see it, but it did not work. Dmesg output in the OpenWRT DomU showed several instances of the following line:

"ath10k_pci 0000:00:00.0: swiotlb buffer is full (sz: 2112 bytes), total 2048 (slots), used 2034 (slots)"

Everything else in DomU seemed to work. Searching the web for this error message did not give me an indication for the cause. I also could not find any cause in the Dom0 logs. Therefore, I could not find the reason for this issue for quite some time.

I then randomly tried out to enlarge Dom0 memory to 768 MB, and the error message in the DomU disappeared during the next boot. The PCI device was working.

I can't rule out that there actually is a log entry in Dom0 for this situation, and my Xen and/or linux knowledge was not good enough to let me find it. If this is the case, I'd appreciate some pointers.

Best regards,

Paul



 


Rackspace

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