[Kernel-packages] [Bug 1952568] Re: AMD GPU kernel driver unload error

2021-12-31 Thread Masato Yoshida
** Description changed:

- After updating the kernel from 5.14.0-1005 to 5.14.0-1007 on ubuntu20.04, if 
you unload the driver with the following command, the command will be forcibly 
terminated and the driver cannot be unloaded.
- Can be unloaded with 5.14.0-1005 without any problem
+ 
ubuntu20.04でカーネルを5.14.0-1005から5.14.0-1007に更新した後、次のコマンドでドライバーをアンロードすると、コマンドが強制的に終了し、ドライバーをアンロードできなくなります。
+ 5.14.0-1005で問題なくアンロードできます
  
  sudo modprob -s -r amdgpu
  
- 
- Driver information in lsmod
- -
- sudo lsmod |grep amdgpu
- amdgpu   7049216  -1
- iommu_v2   24576  1 amdgpu
- gpu_sched  36864  1 amdgpu
- drm_ttm_helper 16384  1 amdgpu
- ttm73728  2 amdgpu,drm_ttm_helper
- drm_kms_helper258048  1 amdgpu
- drm   557056  6 
gpu_sched,drm_kms_helper,amdgpu,drm_ttm_helper,ttm
- i2c_algo_bit   16384  2 igb,amdgpu
+ ドライバの情報ではlsmod 
+ - 
+ sudoのはlsmod | grepをamdgpu 
+ amdgpu 7049216 -1 
+ iommu_v2 24576 1 amdgpu 
+ gpu_sched 36864 1 amdgpu 
+ drm_ttm_helper 16384 1 amdgpu 
+ TTM 73728 2 amdgpu、drm_ttm_ヘルパー
+ 258048は1 amdgpu drm_kms_helper 
+ DRM 557056 6 gpu_sched、drm_kms_ヘルパー、amdgpu 、drm_ttm_ヘルパー、ttm 
+ i2c_algo_bit 16384 2 igb、amdgpu 
  -
  
- ProblemType: Bug
- DistroRelease: Ubuntu 20.04
- Package: linux-modules-5.14.0-1007-oem 5.14.0-1007.7
- ProcVersionSignature: Ubuntu 5.14.0-1007.7-oem 5.14.14
- Uname: Linux 5.14.0-1007-oem x86_64
- ApportVersion: 2.20.11-0ubuntu27.21
- Architecture: amd64
- CasperMD5CheckResult: skip
- CurrentDesktop: LXQt
- Date: Mon Nov 29 13:46:48 2021
- InstallationDate: Installed on 2019-07-24 (858 days ago)
- InstallationMedia: Ubuntu-Server 19.04 "Disco Dingo" - Release amd64 
(20190416.1)
- SourcePackage: linux-oem-5.14
- UpgradeStatus: Upgraded to focal on 2020-05-02 (575 days ago)
+ ProblemType:Bug 
+ DistroRelease:Ubuntu 20.04 
+ Package:linux-modules- 5.14.0- 1007-oem 5.14.0-1007.7 
+ ProcVersionSign ature :Ubuntu 5.14.0-1007.7-oem 5.14.14 
+ Uname:Linux 5.14.0-1007-oem x86_64 
+ ApportVersion:2.20.11-0ubuntu27 。21
+ アーキテクチャ:amd64 
+ CasperMD5CheckR esult:skip 
+ CurrentDesktop:LXQt 
+ Date:Mon Nov 29 13:46:48 2021 
+ InstallationDate:Installed on 2019-07-24(858日前)
+ InstallationMedia:Ubuntu-Server 19.04 "Disco Dingo" -Release amd64( 
20190416.1)
+ SourcePackage:linux-oem-5.14 
+ UpgradeStatus:2020-05-02にフォーカルにアップグレードされました(575日前)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-oem-5.14 in Ubuntu.
https://bugs.launchpad.net/bugs/1952568

Title:
  AMD GPU kernel driver unload error

Status in linux-oem-5.14 package in Ubuntu:
  New

Bug description:
  
ubuntu20.04でカーネルを5.14.0-1005から5.14.0-1007に更新した後、次のコマンドでドライバーをアンロードすると、コマンドが強制的に終了し、ドライバーをアンロードできなくなります。
  5.14.0-1005で問題なくアンロードできます

  sudo modprob -s -r amdgpu

  ドライバの情報ではlsmod 
  - 
  sudoのはlsmod | grepをamdgpu 
  amdgpu 7049216 -1 
  iommu_v2 24576 1 amdgpu 
  gpu_sched 36864 1 amdgpu 
  drm_ttm_helper 16384 1 amdgpu 
  TTM 73728 2 amdgpu、drm_ttm_ヘルパー
  258048は1 amdgpu drm_kms_helper 
  DRM 557056 6 gpu_sched、drm_kms_ヘルパー、amdgpu 、drm_ttm_ヘルパー、ttm 
  i2c_algo_bit 16384 2 igb、amdgpu 
  -

  ProblemType:Bug 
  DistroRelease:Ubuntu 20.04 
  Package:linux-modules- 5.14.0- 1007-oem 5.14.0-1007.7 
  ProcVersionSign ature :Ubuntu 5.14.0-1007.7-oem 5.14.14 
  Uname:Linux 5.14.0-1007-oem x86_64 
  ApportVersion:2.20.11-0ubuntu27 。21
  アーキテクチャ:amd64 
  CasperMD5CheckR esult:skip 
  CurrentDesktop:LXQt 
  Date:Mon Nov 29 13:46:48 2021 
  InstallationDate:Installed on 2019-07-24(858日前)
  InstallationMedia:Ubuntu-Server 19.04 "Disco Dingo" -Release amd64( 
20190416.1)
  SourcePackage:linux-oem-5.14 
  UpgradeStatus:2020-05-02にフォーカルにアップグレードされました(575日前)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-oem-5.14/+bug/1952568/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1952568] Re: AMD GPU kernel driver unload error

2021-11-29 Thread Masato Yoshida
As far as the patches in other files are concerned, it should have been
as follows.

--
--- /usr/local/src/5.14.0.git/focal/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c   
2021-11-29 22:43:48.637432730 +
+++ uvd_v6_0.c  2021-11-30 06:54:01.572401893 +
@@ -543,30 +543,8 @@
 {
struct amdgpu_device *adev = (struct amdgpu_device *)handle;

-   /*
-* Proper cleanups before halting the HW engine:
-*   - cancel the delayed idle work
-*   - enable powergating
-*   - enable clockgating
-*   - disable dpm
-*
-* TODO: to align with the VCN implementation, move the
-* jobs for clockgating/powergating/dpm setting to
-* ->set_powergating_state().
-*/
cancel_delayed_work_sync(>uvd.idle_work);

-   if (adev->pm.dpm_enabled) {
-   amdgpu_dpm_enable_uvd(adev, false);
-   } else {
-   amdgpu_asic_set_uvd_clocks(adev, 0, 0);
-   /* shutdown the UVD block */
-   amdgpu_device_ip_set_powergating_state(adev, 
AMD_IP_BLOCK_TYPE_UVD,
-  AMD_PG_STATE_GATE);
-   amdgpu_device_ip_set_clockgating_state(adev, 
AMD_IP_BLOCK_TYPE_UVD,
-  AMD_CG_STATE_GATE);
-   }
-
if (RREG32(mmUVD_STATUS) != 0)
uvd_v6_0_stop(adev);

@@ -578,6 +556,30 @@
int r;
struct amdgpu_device *adev = (struct amdgpu_device *)handle;

+   /*
+ * Proper cleanups before halting the HW engine:
+ *   - cancel the delayed idle work
+ *   - enable powergating
+ *   - enable clockgating
+ *   - disable dpm
+ *
+ * TODO: to align with the VCN implementation, move the
+ * jobs for clockgating/powergating/dpm setting to
+ * ->set_powergating_state().
+ */
+cancel_delayed_work_sync(>uvd.idle_work);
+
+if (adev->pm.dpm_enabled) {
+amdgpu_dpm_enable_uvd(adev, false);
+} else {
+amdgpu_asic_set_uvd_clocks(adev, 0, 0);
+/* shutdown the UVD block */
+amdgpu_device_ip_set_powergating_state(adev, 
AMD_IP_BLOCK_TYPE_UVD,
+   AMD_PG_STATE_GATE);
+amdgpu_device_ip_set_clockgating_state(adev, 
AMD_IP_BLOCK_TYPE_UVD,
+   AMD_CG_STATE_GATE);
+}
+
r = uvd_v6_0_hw_fini(adev);
if (r)
return r;
--

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-oem-5.14 in Ubuntu.
https://bugs.launchpad.net/bugs/1952568

Title:
  AMD GPU kernel driver unload error

Status in linux-oem-5.14 package in Ubuntu:
  New

Bug description:
  After updating the kernel from 5.14.0-1005 to 5.14.0-1007 on ubuntu20.04, if 
you unload the driver with the following command, the command will be forcibly 
terminated and the driver cannot be unloaded.
  Can be unloaded with 5.14.0-1005 without any problem

  sudo modprob -s -r amdgpu

  
  Driver information in lsmod
  -
  sudo lsmod |grep amdgpu
  amdgpu   7049216  -1
  iommu_v2   24576  1 amdgpu
  gpu_sched  36864  1 amdgpu
  drm_ttm_helper 16384  1 amdgpu
  ttm73728  2 amdgpu,drm_ttm_helper
  drm_kms_helper258048  1 amdgpu
  drm   557056  6 
gpu_sched,drm_kms_helper,amdgpu,drm_ttm_helper,ttm
  i2c_algo_bit   16384  2 igb,amdgpu
  -

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: linux-modules-5.14.0-1007-oem 5.14.0-1007.7
  ProcVersionSignature: Ubuntu 5.14.0-1007.7-oem 5.14.14
  Uname: Linux 5.14.0-1007-oem x86_64
  ApportVersion: 2.20.11-0ubuntu27.21
  Architecture: amd64
  CasperMD5CheckResult: skip
  CurrentDesktop: LXQt
  Date: Mon Nov 29 13:46:48 2021
  InstallationDate: Installed on 2019-07-24 (858 days ago)
  InstallationMedia: Ubuntu-Server 19.04 "Disco Dingo" - Release amd64 
(20190416.1)
  SourcePackage: linux-oem-5.14
  UpgradeStatus: Upgraded to focal on 2020-05-02 (575 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-oem-5.14/+bug/1952568/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1952568] Re: AMD GPU kernel driver unload error

2021-11-29 Thread Masato Yoshida
Confirmed that unloading works fine with PPA mainline kernel 5.14.21 and
5.15.5.

Confirmed that unloading works without any problem when driver / gpu /
drm / amd of 5.14.0-1006 is imported to 1007.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-oem-5.14 in Ubuntu.
https://bugs.launchpad.net/bugs/1952568

Title:
  AMD GPU kernel driver unload error

Status in linux-oem-5.14 package in Ubuntu:
  New

Bug description:
  After updating the kernel from 5.14.0-1005 to 5.14.0-1007 on ubuntu20.04, if 
you unload the driver with the following command, the command will be forcibly 
terminated and the driver cannot be unloaded.
  Can be unloaded with 5.14.0-1005 without any problem

  sudo modprob -s -r amdgpu

  
  Driver information in lsmod
  -
  sudo lsmod |grep amdgpu
  amdgpu   7049216  -1
  iommu_v2   24576  1 amdgpu
  gpu_sched  36864  1 amdgpu
  drm_ttm_helper 16384  1 amdgpu
  ttm73728  2 amdgpu,drm_ttm_helper
  drm_kms_helper258048  1 amdgpu
  drm   557056  6 
gpu_sched,drm_kms_helper,amdgpu,drm_ttm_helper,ttm
  i2c_algo_bit   16384  2 igb,amdgpu
  -

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: linux-modules-5.14.0-1007-oem 5.14.0-1007.7
  ProcVersionSignature: Ubuntu 5.14.0-1007.7-oem 5.14.14
  Uname: Linux 5.14.0-1007-oem x86_64
  ApportVersion: 2.20.11-0ubuntu27.21
  Architecture: amd64
  CasperMD5CheckResult: skip
  CurrentDesktop: LXQt
  Date: Mon Nov 29 13:46:48 2021
  InstallationDate: Installed on 2019-07-24 (858 days ago)
  InstallationMedia: Ubuntu-Server 19.04 "Disco Dingo" - Release amd64 
(20190416.1)
  SourcePackage: linux-oem-5.14
  UpgradeStatus: Upgraded to focal on 2020-05-02 (575 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-oem-5.14/+bug/1952568/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1952568] Re: AMD GPU kernel driver unload error

2021-11-29 Thread Masato Yoshida
The AMGPU patch captured in 5.14.0-1007 was added to uvd_v6_0_hw_fini.
but in 5.16-rc3 it is the code added to uvd_v6_0_suspend, so the backport 
location may be wrong.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-oem-5.14 in Ubuntu.
https://bugs.launchpad.net/bugs/1952568

Title:
  AMD GPU kernel driver unload error

Status in linux-oem-5.14 package in Ubuntu:
  New

Bug description:
  After updating the kernel from 5.14.0-1005 to 5.14.0-1007 on ubuntu20.04, if 
you unload the driver with the following command, the command will be forcibly 
terminated and the driver cannot be unloaded.
  Can be unloaded with 5.14.0-1005 without any problem

  sudo modprob -s -r amdgpu

  
  Driver information in lsmod
  -
  sudo lsmod |grep amdgpu
  amdgpu   7049216  -1
  iommu_v2   24576  1 amdgpu
  gpu_sched  36864  1 amdgpu
  drm_ttm_helper 16384  1 amdgpu
  ttm73728  2 amdgpu,drm_ttm_helper
  drm_kms_helper258048  1 amdgpu
  drm   557056  6 
gpu_sched,drm_kms_helper,amdgpu,drm_ttm_helper,ttm
  i2c_algo_bit   16384  2 igb,amdgpu
  -

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: linux-modules-5.14.0-1007-oem 5.14.0-1007.7
  ProcVersionSignature: Ubuntu 5.14.0-1007.7-oem 5.14.14
  Uname: Linux 5.14.0-1007-oem x86_64
  ApportVersion: 2.20.11-0ubuntu27.21
  Architecture: amd64
  CasperMD5CheckResult: skip
  CurrentDesktop: LXQt
  Date: Mon Nov 29 13:46:48 2021
  InstallationDate: Installed on 2019-07-24 (858 days ago)
  InstallationMedia: Ubuntu-Server 19.04 "Disco Dingo" - Release amd64 
(20190416.1)
  SourcePackage: linux-oem-5.14
  UpgradeStatus: Upgraded to focal on 2020-05-02 (575 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-oem-5.14/+bug/1952568/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1952568] Re: AMD GPU kernel driver unload error

2021-11-29 Thread Masato Yoshida
If you replace driver / gpu / drm / amd / with the source of
5.14.0-1005, it can be unloaded normally.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-oem-5.14 in Ubuntu.
https://bugs.launchpad.net/bugs/1952568

Title:
  AMD GPU kernel driver unload error

Status in linux-oem-5.14 package in Ubuntu:
  New

Bug description:
  After updating the kernel from 5.14.0-1005 to 5.14.0-1007 on ubuntu20.04, if 
you unload the driver with the following command, the command will be forcibly 
terminated and the driver cannot be unloaded.
  Can be unloaded with 5.14.0-1005 without any problem

  sudo modprob -s -r amdgpu

  
  Driver information in lsmod
  -
  sudo lsmod |grep amdgpu
  amdgpu   7049216  -1
  iommu_v2   24576  1 amdgpu
  gpu_sched  36864  1 amdgpu
  drm_ttm_helper 16384  1 amdgpu
  ttm73728  2 amdgpu,drm_ttm_helper
  drm_kms_helper258048  1 amdgpu
  drm   557056  6 
gpu_sched,drm_kms_helper,amdgpu,drm_ttm_helper,ttm
  i2c_algo_bit   16384  2 igb,amdgpu
  -

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: linux-modules-5.14.0-1007-oem 5.14.0-1007.7
  ProcVersionSignature: Ubuntu 5.14.0-1007.7-oem 5.14.14
  Uname: Linux 5.14.0-1007-oem x86_64
  ApportVersion: 2.20.11-0ubuntu27.21
  Architecture: amd64
  CasperMD5CheckResult: skip
  CurrentDesktop: LXQt
  Date: Mon Nov 29 13:46:48 2021
  InstallationDate: Installed on 2019-07-24 (858 days ago)
  InstallationMedia: Ubuntu-Server 19.04 "Disco Dingo" - Release amd64 
(20190416.1)
  SourcePackage: linux-oem-5.14
  UpgradeStatus: Upgraded to focal on 2020-05-02 (575 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-oem-5.14/+bug/1952568/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1952568] Re: AMD GPU kernel driver unload error

2021-11-28 Thread Masato Yoshida
kernel 5.14.0-1007

# lsmod|grep amdgpu
-
amdgpu   7049216  4
iommu_v2   24576  1 amdgpu
gpu_sched  36864  1 amdgpu
drm_ttm_helper 16384  1 amdgpu
ttm73728  2 amdgpu,drm_ttm_helper
drm_kms_helper258048  1 amdgpu
drm   557056  8 
gpu_sched,drm_kms_helper,amdgpu,drm_ttm_helper,ttm
i2c_algo_bit   16384  2 igb,amdgpu
-

root@yoshi-kvm01:~# systemctl stop display-manager.service
root@yoshi-kvm01:~# killall lxqt-panel
lxqt-panel: no process found
root@yoshi-kvm01:~# echo 0 > /sys/class/vtconsole/vtcon1/bind
root@yoshi-kvm01:~# modprobe -s -r amdgpu

syslog
-
Nov 29 14:28:11 yoshi-kvm01 systemd[1]: Stopping Light Display Manager...
Nov 29 14:28:11 yoshi-kvm01 systemd[1]: Stopping Session c1 of user lightdm.
Nov 29 14:28:11 yoshi-kvm01 systemd[1]: session-c1.scope: Succeeded.
Nov 29 14:28:11 yoshi-kvm01 systemd[1]: Stopped Session c1 of user lightdm.
Nov 29 14:28:11 yoshi-kvm01 bluetoothd[2241]: Endpoint unregistered: 
sender=:1.49 path=/MediaEndpoint/A2DPSink/sbc
Nov 29 14:28:11 yoshi-kvm01 bluetoothd[2241]: Endpoint unregistered: 
sender=:1.49 path=/MediaEndpoint/A2DPSource/sbc
Nov 29 14:28:11 yoshi-kvm01 systemd[4021]: pulseaudio.service: Succeeded.
Nov 29 14:28:12 yoshi-kvm01 systemd[1]: lightdm.service: Succeeded.
Nov 29 14:28:12 yoshi-kvm01 systemd[1]: Stopped Light Display Manager.
Nov 29 14:28:21 yoshi-kvm01 systemd[1]: Stopping User Manager for UID 123...
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: Stopped target Main User Target.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: Stopping Accessibility services 
bus...
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: Stopping D-Bus User Message Bus...
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: Stopping Virtual filesystem 
service...
Nov 29 14:28:21 yoshi-kvm01 systemd[4346]: run-user-123-gvfs.mount: Succeeded.
Nov 29 14:28:21 yoshi-kvm01 systemd[1]: run-user-123-gvfs.mount: Succeeded.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: run-user-123-gvfs.mount: Succeeded.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: gvfs-daemon.service: Succeeded.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: Stopped Virtual filesystem service.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: dbus.service: Succeeded.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: Stopped D-Bus User Message Bus.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: at-spi-dbus-bus.service: Succeeded.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: Stopped Accessibility services bus.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: Stopped target Basic System.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: Stopped target Paths.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: Stopped target Sockets.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: Stopped target Timers.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: dbus.socket: Succeeded.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: Closed D-Bus User Message Bus Socket.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: dirmngr.socket: Succeeded.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: Closed GnuPG network certificate 
management daemon.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: gpg-agent-browser.socket: Succeeded.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: Closed GnuPG cryptographic agent and 
passphrase cache (access for web browsers).
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: gpg-agent-extra.socket: Succeeded.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: Closed GnuPG cryptographic agent and 
passphrase cache (restricted).
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: gpg-agent-ssh.socket: Succeeded.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: Closed GnuPG cryptographic agent 
(ssh-agent emulation).
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: gpg-agent.socket: Succeeded.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: Closed GnuPG cryptographic agent and 
passphrase cache.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: pk-debconf-helper.socket: Succeeded.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: Closed debconf communication socket.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: pulseaudio.socket: Succeeded.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: Closed Sound System.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: snapd.session-agent.socket: 
Succeeded.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: Closed REST API socket for snapd 
user session agent.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: Reached target Shutdown.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: systemd-exit.service: Succeeded.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: Finished Exit the Session.
Nov 29 14:28:21 yoshi-kvm01 systemd[4021]: Reached target Exit the Session.
Nov 29 14:28:21 yoshi-kvm01 systemd[1]: user@123.service: Succeeded.
Nov 29 14:28:21 yoshi-kvm01 systemd[1]: Stopped User Manager for UID 123.
Nov 29 14:28:21 yoshi-kvm01 systemd[1]: Stopping User Runtime Directory 
/run/user/123...
Nov 29 14:28:21 yoshi-kvm01 systemd[4346]: run-user-123.mount: Succeeded.
Nov 29 14:28:21 yoshi-kvm01 systemd[1]: run-user-123.mount: Succeeded.
Nov 29 14:28:21 yoshi-kvm01 

[Kernel-packages] [Bug 1952568] Re: AMD GPU kernel driver unload error

2021-11-28 Thread Masato Yoshida
kenrl 5.14.0-1005

# lsmod|grep amdgpu
-
amdgpu   7049216  4
iommu_v2   24576  1 amdgpu
gpu_sched  36864  1 amdgpu
drm_ttm_helper 16384  1 amdgpu
ttm73728  2 amdgpu,drm_ttm_helper
drm_kms_helper258048  1 amdgpu
drm   557056  8 
gpu_sched,drm_kms_helper,amdgpu,drm_ttm_helper,ttm
i2c_algo_bit   16384  2 igb,amdgpu
-

root@yoshi-kvm01:~# systemctl stop display-manager.service
root@yoshi-kvm01:~# killall lxqt-panel
lxqt-panel: no process found
root@yoshi-kvm01:~# echo 0 > /sys/class/vtconsole/vtcon1/bind
root@yoshi-kvm01:~# modprobe -s -r amdgpu

syslog
-
Nov 29 14:20:32 yoshi-kvm01 systemd[1]: Stopping Light Display Manager...
Nov 29 14:20:32 yoshi-kvm01 systemd[1]: Stopping Session c1 of user lightdm.
Nov 29 14:20:32 yoshi-kvm01 systemd[1]: session-c1.scope: Succeeded.
Nov 29 14:20:32 yoshi-kvm01 systemd[1]: Stopped Session c1 of user lightdm.
Nov 29 14:20:32 yoshi-kvm01 bluetoothd[2267]: Endpoint unregistered: 
sender=:1.49 path=/MediaEndpoint/A2DPSink/sbc
Nov 29 14:20:32 yoshi-kvm01 bluetoothd[2267]: Endpoint unregistered: 
sender=:1.49 path=/MediaEndpoint/A2DPSource/sbc
Nov 29 14:20:32 yoshi-kvm01 systemd[4070]: pulseaudio.service: Succeeded.
Nov 29 14:20:33 yoshi-kvm01 systemd[1]: lightdm.service: Succeeded.
Nov 29 14:20:33 yoshi-kvm01 systemd[1]: Stopped Light Display Manager.
Nov 29 14:20:42 yoshi-kvm01 systemd[1]: Stopping User Manager for UID 123...
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: Stopped target Main User Target.
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: Stopping Accessibility services 
bus...
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: Stopping D-Bus User Message Bus...
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: Stopping Virtual filesystem 
service...
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: run-user-123-gvfs.mount: Succeeded.
Nov 29 14:20:42 yoshi-kvm01 systemd[4341]: run-user-123-gvfs.mount: Succeeded.
Nov 29 14:20:42 yoshi-kvm01 systemd[1]: run-user-123-gvfs.mount: Succeeded.
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: gvfs-daemon.service: Succeeded.
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: Stopped Virtual filesystem service.
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: dbus.service: Succeeded.
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: Stopped D-Bus User Message Bus.
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: at-spi-dbus-bus.service: Succeeded.
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: Stopped Accessibility services bus.
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: Stopped target Basic System.
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: Stopped target Paths.
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: Stopped target Sockets.
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: Stopped target Timers.
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: dbus.socket: Succeeded.
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: Closed D-Bus User Message Bus Socket.
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: dirmngr.socket: Succeeded.
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: Closed GnuPG network certificate 
management daemon.
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: gpg-agent-browser.socket: Succeeded.
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: Closed GnuPG cryptographic agent and 
passphrase cache (access for web browsers).
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: gpg-agent-extra.socket: Succeeded.
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: Closed GnuPG cryptographic agent and 
passphrase cache (restricted).
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: gpg-agent-ssh.socket: Succeeded.
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: Closed GnuPG cryptographic agent 
(ssh-agent emulation).
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: gpg-agent.socket: Succeeded.
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: Closed GnuPG cryptographic agent and 
passphrase cache.
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: pk-debconf-helper.socket: Succeeded.
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: Closed debconf communication socket.
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: pulseaudio.socket: Succeeded.
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: Closed Sound System.
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: snapd.session-agent.socket: 
Succeeded.
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: Closed REST API socket for snapd 
user session agent.
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: Reached target Shutdown.
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: systemd-exit.service: Succeeded.
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: Finished Exit the Session.
Nov 29 14:20:42 yoshi-kvm01 systemd[4070]: Reached target Exit the Session.
Nov 29 14:20:42 yoshi-kvm01 systemd[1]: user@123.service: Succeeded.
Nov 29 14:20:42 yoshi-kvm01 systemd[1]: Stopped User Manager for UID 123.
Nov 29 14:20:42 yoshi-kvm01 systemd[1]: Stopping User Runtime Directory 
/run/user/123...
Nov 29 14:20:42 yoshi-kvm01 systemd[1]: run-user-123.mount: Succeeded.
Nov 29 14:20:42 yoshi-kvm01 systemd[4341]: run-user-123.mount: Succeeded.
Nov 29 14:20:42 yoshi-kvm01 

[Kernel-packages] [Bug 1952568] Re: AMD GPU kernel driver unload error

2021-11-28 Thread Masato Yoshida
# systemctl stop display-manager.service
# killall lxqt-panel
# echo 0 > /sys/class/vtconsole/vtcon1/bind
# modprobe -s -r amdgpu
Killed


syslog
-
tail -f /var/log/syslog
Nov 29 14:06:16 yoshi-kvm01 systemd[4521]: Listening on D-Bus User Message Bus 
Socket.
Nov 29 14:06:16 yoshi-kvm01 systemd[4521]: Reached target Sockets.
Nov 29 14:06:16 yoshi-kvm01 systemd[4521]: Reached target Basic System.
Nov 29 14:06:16 yoshi-kvm01 systemd[1]: Started User Manager for UID 0.
Nov 29 14:06:16 yoshi-kvm01 systemd[1]: Started Session 3 of user root.
Nov 29 14:06:16 yoshi-kvm01 systemd[4521]: Condition check resulted in Sound 
Service being skipped.
Nov 29 14:06:16 yoshi-kvm01 systemd[4521]: Reached target Main User Target.
Nov 29 14:06:16 yoshi-kvm01 systemd[4521]: Startup finished in 152ms.
Nov 29 14:06:35 yoshi-kvm01 systemd[1]: Started Session 5 of user root.
Nov 29 14:06:52 yoshi-kvm01 systemd[1]: Started Session 6 of user root.
Nov 29 14:07:20 yoshi-kvm01 systemd[1]: Stopping Light Display Manager...
Nov 29 14:07:20 yoshi-kvm01 systemd[1]: Stopping Session c1 of user lightdm.
Nov 29 14:07:20 yoshi-kvm01 systemd[1]: session-c1.scope: Succeeded.
Nov 29 14:07:20 yoshi-kvm01 systemd[1]: Stopped Session c1 of user lightdm.
Nov 29 14:07:20 yoshi-kvm01 bluetoothd[2240]: Endpoint unregistered: 
sender=:1.49 path=/MediaEndpoint/A2DPSink/sbc
Nov 29 14:07:20 yoshi-kvm01 bluetoothd[2240]: Endpoint unregistered: 
sender=:1.49 path=/MediaEndpoint/A2DPSource/sbc
Nov 29 14:07:20 yoshi-kvm01 systemd[4242]: pulseaudio.service: Succeeded.
Nov 29 14:07:20 yoshi-kvm01 systemd[1]: lightdm.service: Succeeded.
Nov 29 14:07:20 yoshi-kvm01 systemd[1]: Stopped Light Display Manager.
Nov 29 14:07:30 yoshi-kvm01 systemd[1]: Stopping User Manager for UID 123...
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: Stopped target Main User Target.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: Stopping Accessibility services 
bus...
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: Stopping D-Bus User Message Bus...
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: Stopping Virtual filesystem 
service...
Nov 29 14:07:30 yoshi-kvm01 systemd[1]: run-user-123-gvfs.mount: Succeeded.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: run-user-123-gvfs.mount: Succeeded.
Nov 29 14:07:30 yoshi-kvm01 systemd[4521]: run-user-123-gvfs.mount: Succeeded.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: gvfs-daemon.service: Succeeded.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: Stopped Virtual filesystem service.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: dbus.service: Succeeded.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: Stopped D-Bus User Message Bus.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: at-spi-dbus-bus.service: Succeeded.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: Stopped Accessibility services bus.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: Stopped target Basic System.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: Stopped target Paths.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: Stopped target Sockets.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: Stopped target Timers.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: dbus.socket: Succeeded.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: Closed D-Bus User Message Bus Socket.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: dirmngr.socket: Succeeded.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: Closed GnuPG network certificate 
management daemon.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: gpg-agent-browser.socket: Succeeded.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: Closed GnuPG cryptographic agent and 
passphrase cache (access for web browsers).
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: gpg-agent-extra.socket: Succeeded.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: Closed GnuPG cryptographic agent and 
passphrase cache (restricted).
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: gpg-agent-ssh.socket: Succeeded.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: Closed GnuPG cryptographic agent 
(ssh-agent emulation).
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: gpg-agent.socket: Succeeded.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: Closed GnuPG cryptographic agent and 
passphrase cache.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: pk-debconf-helper.socket: Succeeded.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: Closed debconf communication socket.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: pulseaudio.socket: Succeeded.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: Closed Sound System.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: snapd.session-agent.socket: 
Succeeded.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: Closed REST API socket for snapd 
user session agent.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: Reached target Shutdown.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: systemd-exit.service: Succeeded.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: Finished Exit the Session.
Nov 29 14:07:30 yoshi-kvm01 systemd[4242]: Reached target Exit the Session.
Nov 29 14:07:30 yoshi-kvm01 systemd[1]: user@123.service: Succeeded.
Nov 29 14:07:30 yoshi-kvm01 systemd[1]: Stopped User Manager for UID 

[Kernel-packages] [Bug 1952568] [NEW] AMD GPU kernel driver unload error

2021-11-28 Thread Masato Yoshida
Public bug reported:

After updating the kernel from 5.14.0-1005 to 5.14.0-1007 on ubuntu20.04, if 
you unload the driver with the following command, the command will be forcibly 
terminated and the driver cannot be unloaded.
Can be unloaded with 5.14.0-1005 without any problem

sudo modprob -s -r amdgpu


Driver information in lsmod
-
sudo lsmod |grep amdgpu
amdgpu   7049216  -1
iommu_v2   24576  1 amdgpu
gpu_sched  36864  1 amdgpu
drm_ttm_helper 16384  1 amdgpu
ttm73728  2 amdgpu,drm_ttm_helper
drm_kms_helper258048  1 amdgpu
drm   557056  6 
gpu_sched,drm_kms_helper,amdgpu,drm_ttm_helper,ttm
i2c_algo_bit   16384  2 igb,amdgpu
-

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: linux-modules-5.14.0-1007-oem 5.14.0-1007.7
ProcVersionSignature: Ubuntu 5.14.0-1007.7-oem 5.14.14
Uname: Linux 5.14.0-1007-oem x86_64
ApportVersion: 2.20.11-0ubuntu27.21
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: LXQt
Date: Mon Nov 29 13:46:48 2021
InstallationDate: Installed on 2019-07-24 (858 days ago)
InstallationMedia: Ubuntu-Server 19.04 "Disco Dingo" - Release amd64 
(20190416.1)
SourcePackage: linux-oem-5.14
UpgradeStatus: Upgraded to focal on 2020-05-02 (575 days ago)

** Affects: linux-oem-5.14 (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: amd64 apport-bug focal

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-oem-5.14 in Ubuntu.
https://bugs.launchpad.net/bugs/1952568

Title:
  AMD GPU kernel driver unload error

Status in linux-oem-5.14 package in Ubuntu:
  New

Bug description:
  After updating the kernel from 5.14.0-1005 to 5.14.0-1007 on ubuntu20.04, if 
you unload the driver with the following command, the command will be forcibly 
terminated and the driver cannot be unloaded.
  Can be unloaded with 5.14.0-1005 without any problem

  sudo modprob -s -r amdgpu

  
  Driver information in lsmod
  -
  sudo lsmod |grep amdgpu
  amdgpu   7049216  -1
  iommu_v2   24576  1 amdgpu
  gpu_sched  36864  1 amdgpu
  drm_ttm_helper 16384  1 amdgpu
  ttm73728  2 amdgpu,drm_ttm_helper
  drm_kms_helper258048  1 amdgpu
  drm   557056  6 
gpu_sched,drm_kms_helper,amdgpu,drm_ttm_helper,ttm
  i2c_algo_bit   16384  2 igb,amdgpu
  -

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: linux-modules-5.14.0-1007-oem 5.14.0-1007.7
  ProcVersionSignature: Ubuntu 5.14.0-1007.7-oem 5.14.14
  Uname: Linux 5.14.0-1007-oem x86_64
  ApportVersion: 2.20.11-0ubuntu27.21
  Architecture: amd64
  CasperMD5CheckResult: skip
  CurrentDesktop: LXQt
  Date: Mon Nov 29 13:46:48 2021
  InstallationDate: Installed on 2019-07-24 (858 days ago)
  InstallationMedia: Ubuntu-Server 19.04 "Disco Dingo" - Release amd64 
(20190416.1)
  SourcePackage: linux-oem-5.14
  UpgradeStatus: Upgraded to focal on 2020-05-02 (575 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-oem-5.14/+bug/1952568/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp