Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Sep 2015 18:50:10 -0400
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        David Wolfskill <david@catwhisker.org>, "freebsd-acpi@freebsd.org" <freebsd-acpi@FreeBSD.org>, FreeBSD Current <freebsd-current@FreeBSD.org>, freebsd-x11@FreeBSD.org
Subject:   Re: acpi suspend debugging techniques?
Message-ID:  <55E8CEA2.5030905@FreeBSD.org>
In-Reply-To: <20150903223026.GK17650@albert.catwhisker.org>
References:  <55E3F098.9060806@FreeBSD.org> <F685F242-21A2-4063-B5A6-75EA17EFCFC0@gmail.com> <CAJ-Vmo=kAgTx-stpGKQZa1970x-Q5i52mwVaTBV%2B%2BfTo6oxdVg@mail.gmail.com> <55E88860.8020404@FreeBSD.org> <55E8C74C.2080207@FreeBSD.org> <20150903223026.GK17650@albert.catwhisker.org>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 09/03/2015 18:30, David Wolfskill wrote:
> [Much trimming, both of older content and recipient addresses --
> dhw]
> 
> On Thu, Sep 03, 2015 at 06:18:52PM -0400, Jung-uk Kim wrote:
>> ... AFAICT, the whole suspend/resume code looks incomplete and
>> very messy. In fact, I'll be very surprised if it ever worked.
>> :-(
>> 
>> Jung-uk Kim ...
> 
> While I bow to your expertise in the area, I point out that I 
> routinely suspend my laptop before putting it in my backpack, then 
> cycling between the shuttle stop and my house during my daily 
> commutes to & from work -- usually running stable/10, but I'm 
> sometimes running head at the time.
> 
> And I track both stable/10 and head daily on that laptop (in
> different slices).
> 
> While I do encounter "issues" from time to time, those are rare
> enough that I'd call them "unusual."  (To quantify that, I think
> I've had 3 - 5 such incidents since November 2014, while generally
> commuting 5 days/week.)
> 
> I'll be happy to test. :-)

I am not saying the patch is wrong.  Actually, it is in the right
direction.  If you can, please test the following patch, too.

- --- sys/dev/drm2/radeon/radeon_drv.c	(revision 287437)
+++ sys/dev/drm2/radeon/radeon_drv.c	(working copy)
@@ -327,14 +327,14 @@ radeon_suspend(device_t kdev)
 	struct drm_device *dev;
 	int ret;

+	ret = bus_generic_suspend(kdev);
+	if (ret)
+		return (ret);
+
 	dev = device_get_softc(kdev);
 	ret = radeon_suspend_kms(dev);
- -	if (ret)
- -		return (-ret);

- -	ret = bus_generic_suspend(kdev);
- -
- -	return (ret);
+	return (-ret);
 }

 static int


Jung-uk Kim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJV6M6cAAoJEHyflib82/FGX1UH/0BaQl+/e7Cqc2+3jdcmuusd
P8gJBGIFu89+6KsA2J1btQQYO2wwA9tJkpkZx4oi/pT+L+pIqZGx7/w7klsfXvXd
gfI0looWxzB5ZALCrzYq50Nk67E9s6iXymRMJ95oyZ2GLkbwLqY6gOStqld7vBuE
Z4iEBYHMrDtojd33w/9SRa8zNSpvwXZJliNjhpFd680ApkSO2xN/dIxI/z1JjlEw
oquRpvFlR4urqCdhYmKyjoXuR7rYdl0K2imfA7EjL2RFzlFyacS+ny4BqnbvMqzC
tMNxYFUOEvxMW+336DKZjiRWgAyfmJiOuoFxRoDiCq42zzjcLF+2gnLlcd4/j+4=
=/r95
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55E8CEA2.5030905>