Skip to contentSkip to conversation

Problem with ethernet/sound with IOMMU enabled on M5A99FX pro r2.0 motherboard

DISCUSSION JapHack 3 participants 5 messages Mar 5, 2013 – Mar 7, 2013 4 messages not in the archive

lore
Share & tools
lore

JapHack

author
#0 lore raw

I recently bought this board as I wanted to start doing pci passthrough emulation.

I noticed that after I had installed it and booted up, with IOMMU enabled the network would work fine for a while then I would get an AMD-Vi IO page fault and the driver would crash.
IF I turn off IOMMU there is no problem with using ethernet,

The onboard ethernet chip is a RTL8111F/8168F.
For now I've turned off the network adapter in the bios and am using an add on card.

Then I noticed that I could not use the onboard audio with oss (4.2.2007) with IOMMU enabled. Alsa works ok, but I prefer to use oss. As with the ethernet card if I turn off IOMMU in the bios the onboard audio is recognized and works fine.

Any clues or help would be appreciated
Thanks, Don

A message that is not in the archive (sent off-list or not yet received): 1362510652.3171.YahooMailClassic-s6rE+/[email protected]

#2 lore raw

Probably a missing IVMD block for the sound device.

The ethernet device issue could be a driver issue -- DMA write to a page that was mapped for read-only. Providing the IO page fault message would help to diagnose further.

- DonD

----- Original Message -----
From: "JapHack" <japhack-/[email protected]>
To: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
Sent: Tuesday, March 5, 2013 2:10:52 PM
Subject: Problem with ethernet/sound with IOMMU enabled on M5A99FX pro r2.0 motherboard

I recently bought this board as I wanted to start doing pci passthrough emulation.

I noticed that after I had installed it and booted up, with IOMMU enabled the network would work fine for a while then I would get an AMD-Vi IO page fault and the driver would crash.
IF I turn off IOMMU there is no problem with using ethernet,

The onboard ethernet chip is a RTL8111F/8168F.
For now I've turned off the network adapter in the bios and am using an add on card.

Then I noticed that I could not use the onboard audio with oss (4.2.2007) with IOMMU enabled. Alsa works ok, but I prefer to use oss. As with the ethernet card if I turn off IOMMU in the bios the onboard audio is recognized and works fine.

Any clues or help would be appreciated
Thanks, Don

_______________________________________________
iommu mailing list iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 498F3735-A671-4FEA-A612-4BACF08DCE15-5C7GfCeVMHo@public.gmane.org

#5 lore raw

Hi,

Would you please provide the kernel log and the dump of ACPI (from tools like "acpidump")? These should help debugging the issue.

Thank you,

Suravee

Quoted 48 lines
Quoted 48 lines

*From:* Donald Dutile <[email protected] <mailto:[email protected]>> *Date:* March 7, 2013, 3:08:57 AM GMT+08:00
*To:* JapHack <japhack-/[email protected] <mailto:japhack-/[email protected]>> *Cc:* <iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org <mailto:iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>> *Subject:* *Re: Problem with ethernet/sound with IOMMU enabled on M5A99FX pro r2.0 motherboard*

Probably a missing IVMD block for the sound device.

The ethernet device issue could be a driver issue -- DMA write to a page that was mapped for read-only. Providing the IO page fault message would help to diagnose further.

- DonD

----- Original Message -----
From: "JapHack" <japhack-/[email protected] <mailto:japhack-/[email protected]>>
To: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org <mailto:iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>
Sent: Tuesday, March 5, 2013 2:10:52 PM
Subject: Problem with ethernet/sound with IOMMU enabled on M5A99FX pro r2.0 motherboard

I recently bought this board as I wanted to start doing pci passthrough emulation.

I noticed that after I had installed it and booted up, with IOMMU enabled the network would work fine for a while then I would get an AMD-Vi IO page fault and the driver would crash.
IF I turn off IOMMU there is no problem with using ethernet,

The onboard ethernet chip is a RTL8111F/8168F.
For now I've turned off the network adapter in the bios and am using an add on card.

Then I noticed that I could not use the onboard audio with oss (4.2.2007) with IOMMU enabled. Alsa works ok, but I prefer to use oss. As with the ethernet card if I turn off IOMMU in the bios the onboard audio is recognized and works fine.

Any clues or help would be appreciated
Thanks, Don

_______________________________________________
iommu mailing list
iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org <mailto:iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>
https://lists.linuxfoundation.org/mailman/listinfo/iommu
_______________________________________________
iommu mailing list
iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org <mailto:iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>
https://lists.linuxfoundation.org/mailman/listinfo/iommu

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#7 lore raw

acpi.dump http://pastebin.com/2wEYXykY
dmesg.dump http://pastebin.com/ugfpRjxc
lspci -nnk http://pastebin.com/W5HdqQia

I have the onboard ethernet shut off in the bios
but the soundcard is still not being seen with oss4, if iommu is enabled in bios and iommu=pt is not entered in grub.

Thanks, Don

--- On Thu, 3/7/13, Suravee Suthikulanit <[email protected]> wrote:

From: Suravee Suthikulanit <[email protected]>
Subject: Re: Problem with ethernet/sound with IOMMU enabled on M5A99FX pro r2.0 motherboard
To: japhack-/[email protected]
Cc: [email protected], iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
Date: Thursday, March 7, 2013, 9:25 AM

Hi,

Would you please provide the kernel log and the dump of ACPI (from tools like "acpidump")?  These should help debugging the issue.

Thank you,

Suravee

From: Donald Dutile <[email protected]>

Date: March 7, 2013, 3:08:57 AM GMT+08:00

To: JapHack <japhack-/[email protected]>

Cc <iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>

Subject: Re: Problem with ethernet/sound with IOMMU
enabled on M5A99FX pro r2.0 motherboard

Probably a missing IVMD block for the sound device.

The ethernet device issue could be a driver issue --

DMA write to a page that was mapped for read-only.

Providing the IO page fault message would help to

diagnose further.

- DonD

----- Original Message -----

From: "JapHack" <japhack-/[email protected]>

To: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org

Sent: Tuesday, March 5, 2013 2:10:52 PM

Subject: Problem with ethernet/sound with IOMMU enabled
on M5A99FX pro r2.0    motherboard

I recently bought this board as I wanted to start doing
pci passthrough emulation.

I noticed that after I had installed it and booted up,
with IOMMU enabled

the network would work fine for a while then I would get
an AMD-Vi IO page fault

and the driver would crash.

IF I turn off IOMMU there is no problem with using
ethernet,

The onboard ethernet chip is a RTL8111F/8168F.

For now I've turned off the network adapter in the bios
and am using an add on card.

Then I noticed that I could not use the onboard audio
with oss (4.2.2007) with IOMMU

enabled. Alsa works ok, but I prefer to use oss. As with
the ethernet card if I turn off

IOMMU in the bios the onboard audio is recognized and
works fine.

Any clues or help would be appreciated

Thanks, Don

_______________________________________________

iommu mailing list

iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org

https://lists.linuxfoundation.org/mailman/listinfo/iommu

_______________________________________________

iommu mailing list

iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org

https://lists.linuxfoundation.org/mailman/listinfo/iommu

author
#8 lore raw
In reply to a message not in the archive

This is in addition to what I just sent.
It is triggered off when I run soundon (loads the oss drivers) with IOMMU on and iommu=pt not enabled.

[   15.096281] AMD-Vi: Event logged [IO_PAGE_FAULT device=00:14.2 domain=0x000e address=0x000000009641f000 flags=0x0010] [   15.096285] AMD-Vi: Event logged [IO_PAGE_FAULT device=00:14.2 domain=0x000e address=0x000000009641f000 flags=0x0010] [   15.096373] oss_hdaudio: HDA codec 0x00000000 not known yet
[   15.096528] oss_hdaudio: HDA codec 0x00000000 not known yet
[   15.096583] oss_hdaudio: No hdaudio codecs were detected
[   15.096589] oss_hdaudio: probe of 0000:00:14.2 failed with error -5

Thanks for looking at this problem
Don