From owner-freebsd-current@freebsd.org Mon May 14 08:18:57 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 56AC1FE0473 for ; Mon, 14 May 2018 08:18:57 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: from mail.daemonic.se (mail.daemonic.se [176.58.89.161]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E2BF07DA23; Mon, 14 May 2018 08:18:56 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: from cid.daemonic.se (localhost [IPv6:::1]) by mail.daemonic.se (Postfix) with ESMTP id 40ktrT1D19zDhS5; Mon, 14 May 2018 08:18:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=daemonic.se; h= content-transfer-encoding:content-language:content-type :content-type:in-reply-to:mime-version:user-agent:date:date :message-id:from:from:references:subject:subject:received :received; s=20151023; t=1526285928; bh=Yf5JmyYHNmitrNQrMQ31c15U pFuRbWCodEbkjhABK2Y=; b=PiaB1MTLJjSxUup0N6iGOz+plX/jqSSNRAj+1DKC AZF5fq5njHQG6zIEqHUakM14gO/5zwUyxD9u2pSBmPB7LuZu1HrhDPz2/w4E+QPg WdUs8KZvtS29lhKfJ57PgsQjPd/Q6kLXamZSJ/k3pNfyKHhEMrGyMp1ShbgYX4Wz hMQ= X-Virus-Scanned: amavisd-new at daemonic.se Received: from mail.daemonic.se ([IPv6:::1]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256) by cid.daemonic.se (mailscanner.daemonic.se [IPv6:::1]) (amavisd-new, port 10587) with ESMTPS id ooSul8_j2pnR; Mon, 14 May 2018 08:18:48 +0000 (UTC) Received: from garnet.daemonic.se (host-95-192-250-89.mobileonline.telia.com [95.192.250.89]) by mail.daemonic.se (Postfix) with ESMTPSA id 40ktrR6K8dzDhS4; Mon, 14 May 2018 08:18:47 +0000 (UTC) Subject: Re: suspend/resume regression To: Pete Wright , Theron , Andriy Gapon , FreeBSD Current References: <1e608109-fcdd-d794-b03a-2e417300b95a@nomadlogic.org> <3488a8a4-8cad-d6a8-0852-3bbbdd971c7f@gmail.com> <26f5ec31-3994-eac9-0c43-6d2458c35ad0@nomadlogic.org> <9f7fcdaa-99ea-98f4-8ef3-c8da6060542e@nomadlogic.org> From: Niclas Zeising Message-ID: <92bc7e50-2252-5e6a-cf2c-165ef5f6f2d3@daemonic.se> Date: Mon, 14 May 2018 10:18:35 +0200 User-Agent: Mutt/1.5.21 MIME-Version: 1.0 In-Reply-To: <9f7fcdaa-99ea-98f4-8ef3-c8da6060542e@nomadlogic.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2018 08:18:57 -0000 On 05/13/18 21:44, Pete Wright wrote: >=20 >=20 > On 05/13/2018 10:27, Pete Wright wrote: >> >> >> On 05/13/2018 08:58, Theron wrote: >>>> Hi! >>>> I'm also seeing issues, not as severe as Pete, but after I resume=20 >>>> (which works, with drm-next and DMC firmware), the system becomes=20 >>>> sluggish.=C2=A0 It feels like I/O takes more time, and graphics are=20 >>>> sluggish (very sientific, I know, but for instance git operations=20 >>>> are much slower after a resume).=C2=A0 I know there's been an update= to=20 >>>> acpica between my system updates, when this started to happen, but I= =20 >>>> haven't had time to revert that update and test again.=C2=A0 I will = try=20 >>>> to do that and report back. >>>> Regards >>> Hi Niclas, >>> I used drm-next on Skylake with issues which sound similar. Resuming=20 >>> from suspend, or simply switching the laptop display output off and=20 >>> on from xrandr, resulted in graphics sluggishness (drop to 30fps in=20 >>> glxgears) and graphical corruption in Xorg apps, which persisted even= =20 >>> after restarting these apps. Switching to drm-stable made the=20 >>> problems go away; I haven't had time to figure out what -next is=20 >>> doing differently to cause them. >>> >>> Pete's issue sounds more severe, and unrelated as it happens without=20 >>> drm loaded.=C2=A0 My kernel is two weeks out of date (r333093), so I = need=20 >>> to check whether the more recent changes affect my system as well. >>> >> so i've done a bit more debugging on my end.=C2=A0 i've even installed= the=20 >> 11.2-BETA branch last night since 11-STABLE worked without issues=20 >> about a month or so ago. >> >> i've set "debug.acpi.resume_beep=3D1" and when resuming after entering= =20 >> an S3 sleep state the bell rings and does not stop until i do a hard=20 >> reset (both with i915kms loaded and unloaded). >> >> kinda at a loss as to how this could break both CURRENT and basically=20 >> 11-STABLE.=C2=A0 i'm going to make a ubuntu live image and test that, = my=20 >> laptop is a System76 laptop that shipped with ubuntu originally.=C2=A0= if=20 >> that is broken as well then i guess this could be a hardware issue. >> > ubuntu live image suspends/resumes without issue so this certainly seem= s=20 > to be a freebsd issue unfortunately.=C2=A0 i guess next step is to atte= mpt to=20 > find a working CURRENT snapshot that does suspend/resume without issue=20 > then start looking at commits? >=20 Hi! It's a bit worrisome that your regression occurs both on CURRENT and=20 STABLE. There was an update to both drm-next-kmod and drm-stable-kmod=20 last week, but both are very minor. One question, did you install from=20 pkg or compile from ports? Wrt. my own issues, I'm not entirely sure what's going on. I tried a=20 kernel from r333269 and that worked fine, however, r333340 did not.=20 I'll need to bisect exactly which revision causes my regression, with=20 slowness and lag after resume from sleep. Regards --=20 Niclas