Linux problems with Acer A315-42-R296 and parameter AMD-IOMMU

DIGITALIZAAAPP
DIGITALIZAAAPP Member Posts: 4 New User
edited March 20 in 2020 Archives
I have detected a problem in different versions of Linux (Ubuntu 20.04, ...) with Acer A315-42-R296 when AMD-IOMMU BIOS parameter is enabled

Problem detected

The graphical environment does not work correctly when laptop is started without the power charger connected and the parameter AMD-IOMMU is enabled.

If the laptop is connected to the power charger, the error does not occur

<div>&nbsp; &nbsp; BIOS Information:</div><div>	&nbsp; &nbsp; Vendor: Insyde Corp.</div><div>	&nbsp; &nbsp; Version: V1.07</div><div>	&nbsp; &nbsp; Release Date: 12/04/2019</div>

<div>&nbsp; &nbsp; DMESG Information:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; [&nbsp; &nbsp; 0.072235] AMD-Vi: ivrs, add hid:PNPD0040, uid:, rdevid:152</div><div>&nbsp; &nbsp; &nbsp; &nbsp; [&nbsp; &nbsp; 0.667395] pci 0000:00:00.2: AMD-Vi: Unable to read/write to IOMMU perf counter.</div><div>&nbsp; &nbsp; &nbsp; &nbsp; [&nbsp; &nbsp; 0.670728] pci 0000:00:00.2: AMD-Vi: Found IOMMU cap 0x40</div><div>&nbsp; &nbsp; &nbsp; &nbsp; [&nbsp; &nbsp; 0.670729] pci 0000:00:00.2: AMD-Vi: Extended features (0x4f77ef22294ada):</div><div>&nbsp; &nbsp; &nbsp; &nbsp; [&nbsp; &nbsp; 0.670731] AMD-Vi: Interrupt remapping enabled</div><div>&nbsp; &nbsp; &nbsp; &nbsp; [&nbsp; &nbsp; 0.670731] AMD-Vi: Virtual APIC enabled</div><div>&nbsp; &nbsp; &nbsp; &nbsp; [&nbsp; &nbsp; 0.670893] AMD-Vi: Lazy IO/TLB flushing enabled</div><div>&nbsp; &nbsp; &nbsp; &nbsp; [&nbsp; &nbsp; 0.918395] AMD-Vi: AMD IOMMUv2 driver by Joerg Roedel <jroedel@suse.de></div>

<div>&nbsp; &nbsp; Kernel Information:</div>&nbsp; &nbsp; &nbsp; &nbsp; 5.4.0-37-generic

Solutions:

     Solution 1: BIOS & Advanced & AMD-IOMMU set as Disabled

     Solution 2:
                        Step 1. Disable IOMMU in /etc/default/grub with amd_iommu parameter
                                            GRUB_CMDLINE_LINUX_DEFAULT="quiet splash amd_iommu=off"
                        Step 2. update-grub    

Someone has better solutions?
 
digitaliza.aapp

Edited the content to hide personal information
Acer-Samuel

Best Answers

  • DIGITALIZAAAPP
    DIGITALIZAAAPP Member Posts: 4 New User
    edited June 2020 Answer ✓
    I have found the problem, it is in Kernel 5.4 and AMD
    In Kernel 5.5 there is major rework to AMD IOMMU driver 
    and the problem has been solved.

    Solutions:

    - Kernel 5.4 used by default in Ubuntu 20.04, Xubuntu 20.04, etc. (proposed solutions in the first message):
     
         Solution 1: BIOS & Advanced & AMD-IOMMU set as Disabled

         Solution 2:

                     Step 1. Disable IOMMU in /etc/default/grub with amd_iommu parameter
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash amd_iommu=off"
                     Step 2. update-grub    

    - Kernel 5.6 (Upgrade Kernel branch)
      
        Step 1. Get latest kernel from https://kernel.ubuntu.com/~kernel-ppa/mainline
                        Today (06/28/2020 latest kernel version for 5.6 is v5.6.19)

        Step 2. Download deb files for install kernel 
    <div>cd /tmp/
    wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.6.19/amd64/linux-headers-5.6.19-050619_5.6.19-050619.202006171132_all.de
    </div><div>wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.6.19/amd64/linux-image-unsigned-5.6.19-050619-generic_5.6.19-050619.202006171132_amd64.deb
    </div><div>wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.6.19/amd64/linux-modules-5.6.19-050619-generic_5.6.19-050619.202006171132_amd64.deb</div>
        Step 3. Install kernel packages
    sudo dpkg -i *.deb
        Step 4. Reboot Linux and check Kernel version
    uname -a
    
    Command result: Linux Laptop 5.6.19-050619-generic #202006171132 SMP Wed Jun 17 16:31:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

    Pipe_ (digitaliza.aapp)
  • DIGITALIZAAAPP
    DIGITALIZAAAPP Member Posts: 4 New User
    edited June 2020 Answer ✓
    After testing with the new kernel 5.6.19 sometimes at boot appears a new BUG:
    watchdog: BUG: soft lockup - CPU#2 stuck for 21s! [migration/2:23]<br>
    watchdog: BUG: soft lockup - CPU#0 stuck for 21s! [systemd-udevd:185]<br>
    ...

    so i think the best solution is work with Kernel 5.4 and set AMD-IOMMU as Disabled


Answers

  • DIGITALIZAAAPP
    DIGITALIZAAAPP Member Posts: 4 New User
    Bios Update to 1.09 and problem persists

    BIOS Information
    Getting SMBIOS data from sysfs.
    SMBIOS 3.1.1 present.
    Table at 0xAE603000.
    
    Handle 0x0000, DMI type 0, 26 bytes
    BIOS Information
    	Vendor: Insyde Corp.
    	Version: V1.09
    	Release Date: 06/01/2020
    	Address: 0xE0000
    	Runtime Size: 128 kB
    	ROM Size: 4608 kB
    	Characteristics:
    		PCI is supported
    		BIOS is upgradeable
    		BIOS shadowing is allowed
    		Boot from CD is supported
    		Selectable boot is supported
    		EDD is supported
    		Japanese floppy for NEC 9800 1.2 MB is supported (int 13h)
    		Japanese floppy for Toshiba 1.2 MB is supported (int 13h)
    		5.25"/360 kB floppy services are supported (int 13h)
    		5.25"/1.2 MB floppy services are supported (int 13h)
    		3.5"/720 kB floppy services are supported (int 13h)
    		3.5"/2.88 MB floppy services are supported (int 13h)
    		8042 keyboard services are supported (int 9h)
    		CGA/mono video services are supported (int 10h)
    		ACPI is supported
    		USB legacy is supported
    		BIOS boot specification is supported
    		Targeted content distribution is supported
    		UEFI is supported
    	BIOS Revision: 1.9
    	Firmware Revision: 1.8
    Pipe_ (digitaliza.aapp)
  • DIGITALIZAAAPP
    DIGITALIZAAAPP Member Posts: 4 New User
    edited June 2020 Answer ✓
    I have found the problem, it is in Kernel 5.4 and AMD
    In Kernel 5.5 there is major rework to AMD IOMMU driver 
    and the problem has been solved.

    Solutions:

    - Kernel 5.4 used by default in Ubuntu 20.04, Xubuntu 20.04, etc. (proposed solutions in the first message):
     
         Solution 1: BIOS & Advanced & AMD-IOMMU set as Disabled

         Solution 2:

                     Step 1. Disable IOMMU in /etc/default/grub with amd_iommu parameter
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash amd_iommu=off"
                     Step 2. update-grub    

    - Kernel 5.6 (Upgrade Kernel branch)
      
        Step 1. Get latest kernel from https://kernel.ubuntu.com/~kernel-ppa/mainline
                        Today (06/28/2020 latest kernel version for 5.6 is v5.6.19)

        Step 2. Download deb files for install kernel 
    <div>cd /tmp/
    wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.6.19/amd64/linux-headers-5.6.19-050619_5.6.19-050619.202006171132_all.de
    </div><div>wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.6.19/amd64/linux-image-unsigned-5.6.19-050619-generic_5.6.19-050619.202006171132_amd64.deb
    </div><div>wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.6.19/amd64/linux-modules-5.6.19-050619-generic_5.6.19-050619.202006171132_amd64.deb</div>
        Step 3. Install kernel packages
    sudo dpkg -i *.deb
        Step 4. Reboot Linux and check Kernel version
    uname -a
    
    Command result: Linux Laptop 5.6.19-050619-generic #202006171132 SMP Wed Jun 17 16:31:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

    Pipe_ (digitaliza.aapp)
  • DIGITALIZAAAPP
    DIGITALIZAAAPP Member Posts: 4 New User
    edited June 2020 Answer ✓
    After testing with the new kernel 5.6.19 sometimes at boot appears a new BUG:
    watchdog: BUG: soft lockup - CPU#2 stuck for 21s! [migration/2:23]<br>
    watchdog: BUG: soft lockup - CPU#0 stuck for 21s! [systemd-udevd:185]<br>
    ...

    so i think the best solution is work with Kernel 5.4 and set AMD-IOMMU as Disabled