After revert commit in Focal and oem-5.6, this issue can be fixed.

>From b1cc82bb294939c76dc6b61146e960bd9f810222 Mon Sep 17 00:00:00 2001
From: Aaron Ma <[email protected]>
Date: Fri, 28 Aug 2020 11:03:46 +0800
Subject: [PATCH] Revert "UBUNTU: SAUCE: vfio -- release device lock before
 userspace requests"

This reverts part of commit 240766c8b029a4445f632f822a744c6ae34c48e3.

Part of changes break stress S3 test on ttm driver with radeon.

Error log:
[TTM] Erroneous page count. Leaking pages.

Signed-off-by: Aaron Ma <[email protected]>
---
 drivers/base/dd.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/drivers/base/dd.c b/drivers/base/dd.c
index b4f9e99f7372..b25bcab2a26b 100644
--- a/drivers/base/dd.c
+++ b/drivers/base/dd.c
@@ -1135,13 +1135,6 @@ static void __device_release_driver(struct device *dev, 
struct device *parent)
                        dev->bus->remove(dev);
                else if (drv->remove)
                        drv->remove(dev);
- /*
- * A concurrent invocation of the same function might
- * have released the driver successfully while this one
- * was waiting, so check for that.
- */
- if (dev->driver != drv)
- return;

                device_links_driver_cleanup(dev);

--

** Tags added: oem-priority originate-from-1890075 sutton

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

Title:
  System hang when stress S3 on radeon with TTM

Status in HWE Next:
  New
Status in linux package in Ubuntu:
  New

Bug description:
  [Summary]
  System got hang during executing the S3-30-cycle test case.

  [Steps to reproduce]
  $ sudo checkbox-support-fwts_test -l /home/u/suspend_30_cycles -f none -s s3 
--s3-device-check --s3-device-check-delay=60 --s3-sleep-delay=60 
--s3-multiple=30

  [Expected result]
  The test script should be finished smoothly.

  [Actual result]
  System got hang at the 7th or 8th S3 resumed back.

  [Failure rate]
  100%

  [Additional information]
  CPU: Intel(R) Core(TM) i5-10600 CPU @ 3.30GHz (12x)
  GPU: 00:02.0 Display controller [0380]: Intel Corporation Device [8086:9bc8]
  01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. 
[AMD/ATI] Oland [Radeon HD 8570 / R7 240/340 OEM] [1002:6611] (rev 87)
  kernel-version: 5.6.0-1020-oem

To manage notifications about this bug go to:
https://bugs.launchpad.net/hwe-next/+bug/1893609/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to