Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-29-2019, 02:29 AM
|
#1
|
Member
Registered: Nov 2007
Location: Seattle
Distribution: Debian Wheezy & Jessie; Ubuntu
Posts: 334
Rep:
|
DMA Out of SW-IOMMU space
I am not sure if this is the correct place for it but either way. I have a Debian Stretch headless server which have become unresponsive lately and it seems to be related to this error:
Code:
DMA: Out of SW-IOMMU space for 8 bytes at device 0000:00:1d.0
This PC also function as a wifi access point with 2 adapters attached to the USB ports, a RT2870/RT3070 & Atheros AR9271 Wireless Adapter. The modules used are ath9k_htc, rt2800usb & rt2x00usb. Since my upgrade to the 4.9.0-9-amd64 stock kernel the PC seems to become unresponsive after a few days and the samba & nfs shares times out. On reboot, /var/log/syslog & kern.log is filled with this message. >5000000 lines worth.
The device in question seems to be the USB 2.0 controller hub:
00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 (rev 04)
I have been able to find similar error messages on Google relating to much older kernels & one suggestion was to set swiommu memory limit higher by adding a option to kernel boot line in grub. I am just wondering if this is the correct solution.
Regards,
Stefan
|
|
|
05-29-2019, 08:34 AM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,776
|
When you get that, what's the o/p of 'free -h'?
Have you any clue what address they're writing to?
There is a thing in the kernel all right. It's relevant on 32 bit boxes, I think. The 32 bit address limits your memory at 4 Gigs. Now basically all processors since the z80 have been able to address twice the data bus width by a double data width instruction. So a 32 bit cpu can pair internal registers, and store 64 bit numbers, manipulate them them, or write them, so you're able to higher, but in the past it probably required a little gymnastics. There's piles of IOMMU handlers in the kernel. Find your kernel config in /boot and grep it for IOMMU; check your chipset is supported.
This shouldn't be an obstacle on a debian stock kernel.
|
|
1 members found this post helpful.
|
05-29-2019, 02:41 PM
|
#3
|
Member
Registered: Nov 2007
Location: Seattle
Distribution: Debian Wheezy & Jessie; Ubuntu
Posts: 334
Original Poster
Rep:
|
Quote:
Originally Posted by business_kid
When you get that, what's the o/p of 'free -h'?
|
Unfortunately I do not know. I was unable to ssh the server & when I attached a screen & keyboard there was no response so I had to power cycle the computer. I only saw the messages after the restart. I do have enough memory for the server:
Code:
total used free shared buff/cache available
Mem: 7.5G 624M 4.6G 14M 2.3G 6.6G
Swap: 7.5G 0B 7.5G
Quote:
Originally Posted by business_kid
Have you any clue what address they're writing to?
There is a thing in the kernel all right. It's relevant on 32 bit boxes, I think. The 32 bit address limits your memory at 4 Gigs. Now basically all processors since the z80 have been able to address twice the data bus width by a double data width instruction. So a 32 bit cpu can pair internal registers, and store 64 bit numbers, manipulate them them, or write them, so you're able to higher, but in the past it probably required a little gymnastics. There's piles of IOMMU handlers in the kernel. Find your kernel config in /boot and grep it for IOMMU; check your chipset is supported.
This shouldn't be an obstacle on a debian stock kernel.
|
I am using a stock kernel & I was under the impression the Intel chipset on the motherboard is fully supported. At least I have not previously had problems - everything was essentially plug & play.
grep IOMMU /boot/config-4.9.0-9-amd64:
Code:
CONFIG_GART_IOMMU=y
CONFIG_CALGARY_IOMMU=y
CONFIG_CALGARY_IOMMU_ENABLED_BY_DEFAULT=y
CONFIG_IOMMU_HELPER=y
CONFIG_VFIO_IOMMU_TYPE1=m
# CONFIG_VFIO_NOIOMMU is not set
CONFIG_IOMMU_API=y
CONFIG_IOMMU_SUPPORT=y
# Generic IOMMU Pagetable Support
CONFIG_IOMMU_IOVA=y
CONFIG_AMD_IOMMU=y
CONFIG_AMD_IOMMU_V2=y
CONFIG_INTEL_IOMMU=y
CONFIG_INTEL_IOMMU_SVM=y
# CONFIG_INTEL_IOMMU_DEFAULT_ON is not set
CONFIG_INTEL_IOMMU_FLOPPY_WA=y
# CONFIG_IOMMU_DEBUG is not set
# CONFIG_IOMMU_STRESS is not set
Thanks for replying,
Stefan
|
|
|
05-30-2019, 05:20 AM
|
#4
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,776
|
Ok. Scratch the IOMMU issue, I'm sure you're ok.
If you had to reboot the box, it tells us nothing except that it crashed. Check the logs. You'll have to go at this the hard way. If you an update and a dist-upgrade, it might sort itself. I'd try a memtest, and get Debian's mind on it, posting a bug if necessary.
|
|
|
06-03-2019, 01:57 AM
|
#5
|
Member
Registered: Nov 2007
Location: Seattle
Distribution: Debian Wheezy & Jessie; Ubuntu
Posts: 334
Original Poster
Rep:
|
Quote:
Originally Posted by business_kid
Ok. Scratch the IOMMU issue, I'm sure you're ok.
If you had to reboot the box, it tells us nothing except that it crashed. Check the logs. You'll have to go at this the hard way. If you an update and a dist-upgrade, it might sort itself. I'd try a memtest, and get Debian's mind on it, posting a bug if necessary.
|
I have done an update & dist-upgrade and I have plugged the wifi adapters into usb 3.0 ports. So far the error has not showed up again in either syslog or kernel.log. Funny thing is that this PC has been running with up times of several months and after the last kernel update it crashed twice so I don't think it is a hardware issue.
Regards,
Stefan
PS This is the output of
Code:
sudo grep "SW-IOMMU" /var/log/kern.log | sed -e 's/\[[0-9]*\.[0-9]*\]//g' | sort | uniq -c | sort -n | tail
Code:
4502 May 27 05:27:43 ISKServer kernel: DMA: Out of SW-IOMMU space for 8 bytes at device 0000:00:1d.0
4503 May 27 05:16:49 ISKServer kernel: DMA: Out of SW-IOMMU space for 8 bytes at device 0000:00:1d.0
4509 May 27 05:34:08 ISKServer kernel: DMA: Out of SW-IOMMU space for 8 bytes at device 0000:00:1d.0
4510 May 27 05:30:49 ISKServer kernel: DMA: Out of SW-IOMMU space for 8 bytes at device 0000:00:1d.0
4512 May 27 05:42:01 ISKServer kernel: DMA: Out of SW-IOMMU space for 8 bytes at device 0000:00:1d.0
4515 May 27 05:06:08 ISKServer kernel: DMA: Out of SW-IOMMU space for 8 bytes at device 0000:00:1d.0
4516 May 27 05:24:56 ISKServer kernel: DMA: Out of SW-IOMMU space for 8 bytes at device 0000:00:1d.0
4520 May 27 04:50:56 ISKServer kernel: DMA: Out of SW-IOMMU space for 8 bytes at device 0000:00:1d.0
4538 May 27 04:47:07 ISKServer kernel: DMA: Out of SW-IOMMU space for 8 bytes at device 0000:00:1d.0
4575 May 27 04:41:54 ISKServer kernel: DMA: Out of SW-IOMMU space for 8 bytes at device 0000:00:1d.0
4664 May 27 05:32:31 ISKServer kernel: DMA: Out of SW-IOMMU space for 8 bytes at device 0000:00:1d.0
The error appears over about one hour & occasionally > 4000x per second.
Last edited by propofol; 06-03-2019 at 02:09 AM.
|
|
|
06-03-2019, 12:50 PM
|
#6
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,776
|
Sounds Good. Broke itself, fixed itself…… Lets hope it stays. Saves us thinking.
|
|
|
All times are GMT -5. The time now is 09:04 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|