Kernel 4.12

OSS specific Linux discussion (x86/amd64)

Moderators: hannu, dev, cesium

keantoken
Member
Posts: 44
Joined: Fri Jul 08, 2011 2:54 am

Kernel 4.12

Postby keantoken » Sat Jul 01, 2017 5:20 pm

So, I got a Gigabyte motherboard and as it turns out only kernel 4.12 has the IRQ fixes needed to run it. The problem is, OSS doesn't work with 4.12. It fails to compile oss_usb and while it will start, it encounters a problem if you try to play a sound.

I also had to use iommu=pt again to get rid of the spray of AMD-Vi pagefaults that originally crippled my FX8350. Has anyone tried to debug that problem yet?

In any case, I'm strongly considering getting a different motherboard, but while I have this one I figured I would try and make it work. Has anyone gotten OSS to work on 4.12?

igorzwx
Known Member
Posts: 1245
Joined: Sun Jun 28, 2009 9:31 pm

Re: Kernel 4.12

Postby igorzwx » Sun Jul 02, 2017 1:05 pm

keantoken wrote:So, I got a Gigabyte motherboard and as it turns out only kernel 4.12 has the IRQ fixes needed to run it. The problem is, OSS doesn't work with 4.12. It fails to compile oss_usb and while it will start, it encounters a problem if you try to play a sound.


Could you please provide some info about your "Gigabyte motherboard"?

For example:

Code: Select all

$ dmesg | grep "DMI:"
[    0.000000] DMI: Gigabyte Technology Co., Ltd. To be filled by O.E.M./B75M-D3H, BIOS F10 08/17/2012


Code: Select all

$ sudo dmidecode -t baseboard
Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
   Manufacturer: Gigabyte Technology Co., Ltd.
   Product Name: B75M-D3H
   Version: x.x
   Serial Number: To be filled by O.E.M.
   Asset Tag: To be filled by O.E.M.
   Features:
      Board is a hosting board
      Board is replaceable
   Location In Chassis: To be filled by O.E.M.
   Chassis Handle: 0x0003
   Type: Motherboard
   Contained Object Handles: 0


Code: Select all

$ lspci -vnn
00:1b.0 Audio device [0403]: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller [8086:1e20] (rev 04)
   Subsystem: Giga-byte Technology Device [1458:a002]
   Flags: bus master, fast devsel, latency 0, IRQ 22
   Memory at f7e10000 (64-bit, non-prefetchable) [size=16K]
   Capabilities: <access denied>
   Kernel driver in use: oss_hdaudio
   Kernel modules: snd-hda-intel

keantoken
Member
Posts: 44
Joined: Fri Jul 08, 2011 2:54 am

Re: Kernel 4.12

Postby keantoken » Sun Jul 02, 2017 1:17 pm

The first command produced no output.

Code: Select all

$ sudo dmidecode -t baseboard
# dmidecode 3.0
Getting SMBIOS data from sysfs.
SMBIOS 3.0.0 present.

Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
   Manufacturer: Gigabyte Technology Co., Ltd.
   Product Name: AB350M-D3H-CF
   Version: x.x
   Serial Number: Default string
   Asset Tag: Default string
   Features:
      Board is a hosting board
      Board is replaceable
   Location In Chassis: Default string
   Chassis Handle: 0x0003
   Type: Motherboard
   Contained Object Handles: 0

Handle 0x001F, DMI type 10, 6 bytes
On Board Device Information
   Type: Video
   Status: Enabled
   Description:    To Be Filled By O.E.M.

Handle 0x0023, DMI type 41, 11 bytes
Onboard Device
   Reference Designation:  Onboard IGD
   Type: Video
   Status: Enabled
   Type Instance: 1
   Bus Address: 0000:00:02.0

Handle 0x0024, DMI type 41, 11 bytes
Onboard Device
   Reference Designation:  Onboard LAN
   Type: Ethernet
   Status: Enabled
   Type Instance: 1
   Bus Address: 0000:00:19.0

Handle 0x0025, DMI type 41, 11 bytes
Onboard Device
   Reference Designation:  Onboard 1394
   Type: Other
   Status: Enabled
   Type Instance: 1
   Bus Address: 0000:03:1c.2



Code: Select all

$ lspci -vnn
00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1450]
   Subsystem: Advanced Micro Devices, Inc. [AMD] Device [1022:1450]
   Flags: fast devsel

00:00.2 IOMMU [0806]: Advanced Micro Devices, Inc. [AMD] Device [1022:1451]
   Subsystem: Advanced Micro Devices, Inc. [AMD] Device [1022:1451]
   Flags: bus master, fast devsel, latency 0, IRQ 25
   Capabilities: <access denied>

00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1452]
   Flags: fast devsel

00:01.3 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:1453] (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0, IRQ 282
   Bus: primary=00, secondary=03, subordinate=09, sec-latency=0
   I/O behind bridge: 0000c000-0000efff
   Memory behind bridge: fd500000-fd7fffff
   Prefetchable memory behind bridge: 00000000f2100000-00000000f21fffff
   Capabilities: <access denied>
   Kernel driver in use: pcieport
   Kernel modules: shpchp

00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1452]
   Flags: fast devsel

00:03.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1452]
   Flags: fast devsel

00:03.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:1453] (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0, IRQ 283
   Bus: primary=00, secondary=0a, subordinate=0a, sec-latency=0
   I/O behind bridge: 0000f000-0000ffff
   Memory behind bridge: fc000000-fd0fffff
   Prefetchable memory behind bridge: 00000000e8000000-00000000f1ffffff
   Capabilities: <access denied>
   Kernel driver in use: pcieport
   Kernel modules: shpchp

00:04.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1452]
   Flags: fast devsel

00:07.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1452]
   Flags: fast devsel

00:07.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:1454] (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0, IRQ 284
   Bus: primary=00, secondary=11, subordinate=11, sec-latency=0
   Memory behind bridge: fd200000-fd4fffff
   Capabilities: <access denied>
   Kernel driver in use: pcieport
   Kernel modules: shpchp

00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1452]
   Flags: fast devsel

00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:1454] (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0, IRQ 286
   Bus: primary=00, secondary=12, subordinate=12, sec-latency=0
   Memory behind bridge: fd800000-fd8fffff
   Capabilities: <access denied>
   Kernel driver in use: pcieport
   Kernel modules: shpchp

00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 59)
   Subsystem: Gigabyte Technology Co., Ltd FCH SMBus Controller [1458:5001]
   Flags: 66MHz, medium devsel
   Kernel driver in use: piix4_smbus
   Kernel modules: i2c_piix4, sp5100_tco

00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51)
   Subsystem: Gigabyte Technology Co., Ltd FCH LPC Bridge [1458:5001]
   Flags: bus master, 66MHz, medium devsel, latency 0

00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1460]
   Flags: fast devsel

00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1461]
   Flags: fast devsel

00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1462]
   Flags: fast devsel

00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1463]
   Flags: fast devsel

00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1464]
   Flags: fast devsel

00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1465]
   Flags: fast devsel

00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1466]
   Flags: fast devsel

00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1467]
   Flags: fast devsel

03:00.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:43bb] (rev 02) (prog-if 30 [XHCI])
   Subsystem: ASMedia Technology Inc. Device [1b21:1142]
   Flags: bus master, fast devsel, latency 0, IRQ 294
   Memory at fd7a0000 (64-bit, non-prefetchable) [size=32K]
   Capabilities: <access denied>
   Kernel driver in use: xhci_hcd

03:00.1 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] Device [1022:43b7] (rev 02) (prog-if 01 [AHCI 1.0])
   Subsystem: ASMedia Technology Inc. Device [1b21:1062]
   Flags: bus master, fast devsel, latency 0, IRQ 297
   Memory at fd780000 (32-bit, non-prefetchable) [size=128K]
   Expansion ROM at fd700000 [disabled] [size=512K]
   Capabilities: <access denied>
   Kernel driver in use: ahci
   Kernel modules: ahci

03:00.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:43b2] (rev 02) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0, IRQ 288
   Bus: primary=03, secondary=04, subordinate=09, sec-latency=0
   I/O behind bridge: 0000c000-0000efff
   Memory behind bridge: fd500000-fd6fffff
   Prefetchable memory behind bridge: 00000000f2100000-00000000f21fffff
   Capabilities: <access denied>
   Kernel driver in use: pcieport
   Kernel modules: shpchp

04:00.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:43b4] (rev 02) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0, IRQ 290
   Bus: primary=04, secondary=05, subordinate=05, sec-latency=0
   I/O behind bridge: 0000e000-0000efff
   Memory behind bridge: fd600000-fd6fffff
   Prefetchable memory behind bridge: 00000000f2100000-00000000f21fffff
   Capabilities: <access denied>
   Kernel driver in use: pcieport
   Kernel modules: shpchp

04:01.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:43b4] (rev 02) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0, IRQ 292
   Bus: primary=04, secondary=06, subordinate=07, sec-latency=0
   I/O behind bridge: 0000d000-0000dfff
   Memory behind bridge: fd500000-fd5fffff
   Capabilities: <access denied>
   Kernel driver in use: pcieport
   Kernel modules: shpchp

04:04.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:43b4] (rev 02) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0, IRQ 293
   Bus: primary=04, secondary=08, subordinate=09, sec-latency=0
   I/O behind bridge: 0000c000-0000cfff
   Capabilities: <access denied>
   Kernel driver in use: pcieport
   Kernel modules: shpchp

05:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0c)
   Subsystem: Gigabyte Technology Co., Ltd Onboard Ethernet [1458:e000]
   Flags: bus master, fast devsel, latency 0, IRQ 315
   I/O ports at e000 [size=256]
   Memory at fd600000 (64-bit, non-prefetchable) [size=4K]
   Memory at f2100000 (64-bit, prefetchable) [size=16K]
   Capabilities: <access denied>
   Kernel driver in use: r8169
   Kernel modules: r8169

06:00.0 PCI bridge [0604]: Integrated Technology Express, Inc. Device [1283:8892] (rev 71) (prog-if 01 [Subtractive decode])
   Flags: bus master, fast devsel, latency 0, IRQ 291
   Bus: primary=06, secondary=07, subordinate=07, sec-latency=32
   I/O behind bridge: 0000d000-0000dfff
   Memory behind bridge: fd500000-fd5fffff
   Capabilities: <access denied>

07:00.0 RAID bus controller [0104]: VIA Technologies, Inc. VT6421 IDE/SATA Controller [1106:3249] (rev 50)
   Subsystem: VIA Technologies, Inc. VT6421 IDE/SATA Controller [1106:3249]
   Flags: bus master, medium devsel, latency 32, IRQ 291
   I/O ports at d150 [size=16]
   I/O ports at d140 [size=16]
   I/O ports at d130 [size=16]
   I/O ports at d120 [size=16]
   I/O ports at d100 [size=32]
   I/O ports at d000 [size=256]
   Expansion ROM at fd500000 [disabled] [size=64K]
   Capabilities: <access denied>
   Kernel driver in use: sata_via
   Kernel modules: sata_via

08:00.0 PCI bridge [0604]: PLX Technology, Inc. PEX8112 x1 Lane PCI Express-to-PCI Bridge [10b5:8112] (rev aa) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0, IRQ 289
   Bus: primary=08, secondary=09, subordinate=09, sec-latency=32
   I/O behind bridge: 0000c000-0000cfff
   Capabilities: <access denied>
   Kernel modules: shpchp

09:04.0 Multimedia audio controller [0401]: C-Media Electronics Inc CMI8788 [Oxygen HD Audio] [13f6:8788]
   Subsystem: ASUSTeK Computer Inc. Virtuoso 100 (Xonar DX) [1043:8275]
   Flags: bus master, medium devsel, latency 32, IRQ 289
   I/O ports at c000 [size=256]
   Capabilities: <access denied>
   Kernel driver in use: oss_cmi878x

0a:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF108 [GeForce GT 620] [10de:0f01] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: eVga.com. Corp. GF108 [GeForce GT 620] [3842:2625]
   Flags: bus master, fast devsel, latency 0, IRQ 320
   Memory at fc000000 (32-bit, non-prefetchable) [size=16M]
   Memory at e8000000 (64-bit, prefetchable) [size=128M]
   Memory at f0000000 (64-bit, prefetchable) [size=32M]
   I/O ports at f000 [size=128]
   [virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
   Capabilities: <access denied>
   Kernel driver in use: nvidia
   Kernel modules: nvidia

0a:00.1 Audio device [0403]: NVIDIA Corporation GF108 High Definition Audio Controller [10de:0bea] (rev a1)
   Subsystem: eVga.com. Corp. GF108 High Definition Audio Controller [3842:2625]
   Flags: bus master, fast devsel, latency 0, IRQ 11
   Memory at fd080000 (32-bit, non-prefetchable) [size=16K]
   Capabilities: <access denied>

11:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device [1022:145a]
   Subsystem: Advanced Micro Devices, Inc. [AMD] Device [1022:145a]
   Flags: bus master, fast devsel, latency 0
   Capabilities: <access denied>

11:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Device [1022:1456]
   Subsystem: Advanced Micro Devices, Inc. [AMD] Device [1022:1456]
   Flags: bus master, fast devsel, latency 0, IRQ 316
   Memory at fd300000 (32-bit, non-prefetchable) [size=1M]
   Memory at fd400000 (32-bit, non-prefetchable) [size=8K]
   Capabilities: <access denied>
   Kernel driver in use: ccp
   Kernel modules: ccp

11:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:145c] (prog-if 30 [XHCI])
   Subsystem: Gigabyte Technology Co., Ltd Device [1458:5007]
   Flags: bus master, fast devsel, latency 0, IRQ 296
   Memory at fd200000 (64-bit, non-prefetchable) [size=1M]
   Capabilities: <access denied>
   Kernel driver in use: xhci_hcd

12:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device [1022:1455]
   Subsystem: Advanced Micro Devices, Inc. [AMD] Device [1022:1455]
   Flags: bus master, fast devsel, latency 0
   Capabilities: <access denied>

12:00.2 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901] (rev 51) (prog-if 01 [AHCI 1.0])
   Subsystem: Gigabyte Technology Co., Ltd FCH SATA Controller [AHCI mode] [1458:b002]
   Flags: bus master, fast devsel, latency 0, IRQ 299
   Memory at fd808000 (32-bit, non-prefetchable) [size=4K]
   Capabilities: <access denied>
   Kernel driver in use: ahci
   Kernel modules: ahci

12:00.3 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Device [1022:1457]
   Subsystem: Gigabyte Technology Co., Ltd Device [1458:a182]
   Flags: bus master, fast devsel, latency 0, IRQ 10
   Memory at fd800000 (32-bit, non-prefetchable) [size=32K]
   Capabilities: <access denied>



BTW, OSS doesn't seem to support the ALC887 HDA on this board. Which is fine since I have an Asus Xonar I am trying to get working.

keantoken
Member
Posts: 44
Joined: Fri Jul 08, 2011 2:54 am

Re: Kernel 4.12

Postby keantoken » Sun Jul 02, 2017 1:57 pm

The AMD-Vi pagefaults are coming from my Asus Xonar DX soundcard - it may be a hardware/firmware fault. But oddly enough in my last computer with Asus M5A99FX Pro R2.0, I still had to use iommu=pt to get the motherboard sound working well, even though the Xonar DX was not installed.

What's interesting is the IOMMU problem carried over to the Zen B350 chipset. Since it happens with multiple chipsets I suspect it's caused by OSS somehow.

Anyway, what I want specifically is to get OSS working on kernel 4.12... If there is no way to do that then for sure I will have to return this motherboard.

igorzwx
Known Member
Posts: 1245
Joined: Sun Jun 28, 2009 9:31 pm

Re: Kernel 4.12

Postby igorzwx » Sun Jul 02, 2017 6:59 pm

keantoken wrote:If there is no way to do that then for sure I will have to return this motherboard.


You may find some info about Linux compatible hardware on Linux Mint website and/or Linux shops

For example:
_https://duckduckgo.com/?q=Gigabyte+GA-B150M-D3H+site%3Ahttps%3A%2F%2Fcommunity.linuxmint.com%2Fhardware

_https://community.linuxmint.com/hardware/view/16874
GA-B75M-D3H
Brand: Gigabyte (Motherboard)


_http://www.diawo.de/epages/62691663.sf/de_DE/?ObjectPath=/Shops/62691663/Products/PWKLi4
Komplett Linux-PC
Prozessor: Intel Core i7 6700 / 4 x 3,40GHz
SSD: 256GB Samsung aus der Pro Serie
Arbeitsspeicher: 16GB DDR4 2133 Kingston
Mainboard: Gigabyte GA-B150M-D3H
Grafik: HD 530 von Intel (2 Monitore möglich)
Laufwerk: DVD-RW Brenner von LG
Netzteil: 350 Watt Pure Power 80+ von BeQuiet!

+ Cardreader und Wlan Karte mit 300 Mbps
+ Silent CPU-Kühler Pure Rock von BeQuiet!

OS: Ubuntu 16.04 LTS (aktuelle Version)
Oder hier ein anderes Linux auswählen


_http://www.diawo.de/epages/62691663.sf/de_DE/?ObjectPath=/Shops/62691663/Products/zub_esi_julia%40
Interne Referenz-Audiokarte ESI Julia@ / 24bit/192kHz


ESI Julia@ [Ego Systems Juli@] works with both ALSA and OSS4
NOTE: For ESI Julia@, OSS4 supports 32bit input/output format and sample rates: 8 kHz - 192 kHz
_http://ossnext.trueinstruments.com/forum/viewtopic.php?f=3&t=5812#p21400

keantoken
Member
Posts: 44
Joined: Fri Jul 08, 2011 2:54 am

Re: Kernel 4.12

Postby keantoken » Wed Jul 05, 2017 1:33 am

The patch for the motherboard has been backported to kernel 4.11-16. It appears the patch itself breaks compatibility with OSS. The dmesg log is attached.
Attachments
dmesg.log
(67.65 KiB) Downloaded 11 times


Return to “Linux”

Who is online

Users browsing this forum: No registered users and 2 guests