From owner-freebsd-current@freebsd.org Sun Sep 23 07:01:28 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 26B6210AF96E for ; Sun, 23 Sep 2018 07:01:28 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 92823930AE for ; Sun, 23 Sep 2018 07:01:27 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: by mail-wm1-x32d.google.com with SMTP id z16-v6so574716wmi.3 for ; Sun, 23 Sep 2018 00:01:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:cc:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=kk378wxG2C44xOuB9lcFDWBoS7aK2Hk5u6K6SFDPDn0=; b=lRKsGQVWejQ/7QeBTNiyFv3PksM5hFJB7DZ88kku91W/18jecv47BxJH2TOVCiBsYt F6Z89qwHgdd8rrvWCtWjsCIaHFjbqG5kDcBobDQIvM/1pf7pm5wZozyjmEH3cZjFWUCX Dm4nlRcqPEB4nWtxJK8HA97KR5oLw0zaoQJtzlG/rQKNAXh80grkQf1x5hbFlyDRiUZ1 4DMFGUdlOfNVWzptbe4oEIOlWzxyBKqz992Pva+9JpfsxU/1lD0OTY9jl4i84pJjawqI VqAZA51fdTjk6mZx1m4gD5HlLUawpIsGs+gFAWABo4rE6GMg5vnOIGmUvj9Ckxr/lCt3 JkKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:cc:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=kk378wxG2C44xOuB9lcFDWBoS7aK2Hk5u6K6SFDPDn0=; b=eKiM3RROsID6OcnHEzhdC1GO9rMTLrLzvt0iPXv6bt5wQL2j2WySlEP0cKGc4Kk9Kd qv6++3eUbRE6CoYsAwOtWMUPJAEdpe7ROOVIf3qPwClJwMMTYbBeqRkVU+WAuLRFcaHP k2sscUrlEaecyNCZWkfgGmkE83tDzHVJS9HTLnOKMYHPzGfvlUJXBhsHJD5wyTk2VUMN /UtpjgSS7XA+YJ/UxJsOlxSrWzh4M4htQOk+ZXa1EhUKWSotijSRUzTueeoX5rFfKHLp g8C8oQIuo7Fxzd8m/6p/ozpNFs2IH0nUeAb6EmirOv+PTgcpvSM9frTTaydrvXLLpEq4 ghPA== X-Gm-Message-State: ABuFfogNWlkVYUaKILt9ljjDgYhHeuSrY7enawfpLI1cL9jblijiL9Xa 3ROYzPuLQpYaybiXHRVgx2/o6pBz X-Google-Smtp-Source: ACcGV62cWA6O9r8BZSzxbvwwtqlVeeazyzJKExiT3CI8YnbPGwmas3QDQ1NhH60XCXghz9Sx8g9JeQ== X-Received: by 2002:a1c:7212:: with SMTP id n18-v6mr3238050wmc.33.1537686085877; Sun, 23 Sep 2018 00:01:25 -0700 (PDT) Received: from [192.168.1.231] (79-66-139-63.dynamic.dsl.as9105.com. [79.66.139.63]) by smtp.gmail.com with ESMTPSA id x23-v6sm7043225wmh.26.2018.09.23.00.01.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 Sep 2018 00:01:24 -0700 (PDT) Subject: Re: Suspend, resume, UEFI, CSM, drm-stable-kmod and drm-next-kmod with Radeon HD 7570M To: freebsd-current References: <93fcf295-1dae-12d4-5530-ef0c55bd8cc2@gmail.com> <0aa72278-c17b-0bd7-1f5b-960366890426@nomadlogic.org> <549ab380-60a8-c919-980a-b5b6a541e3c9@gmail.com> From: Graham Perrin Cc: Johannes Lundberg Message-ID: <38395f26-faa5-e56e-6a4c-3e72fbfc2a73@gmail.com> Date: Sun, 23 Sep 2018 08:01:23 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 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: Sun, 23 Sep 2018 07:01:28 -0000 On 22/08/2018 19:27, Johannes Lundberg wrote: > On Wed, Aug 22, 2018 at 6:00 PM Graham Perrin > wrote: > > On 22/08/2018 17:50, Pete Wright wrote: > > not sure this will address this specific issue - but have you tested setting this sysctl knob and seeing if that fixes your resume issues: > > hw.acpi.reset_video=1 > > Thanks, I'll be away for around three weeks, I'll test some time in September. > > > Hi > > Make sure you also update the drm packages from ports when you're back. There was an issue causing kernel panic for amdgpu and radeon on suspend/resume that has been fixed. It should be available in an updated pkg later this week. > Try drm-stable or drm-devel. drm-devel will require a rather recent 12/13-CURRENT. Now: $ date ; uname -v Sun 23 Sep 2018 07:16:54 BST FreeBSD 12.0-ALPHA7 r338892 GENERIC-NODEBUG $ uname -a FreeBSD momh167-gjp4-hpelitebook8570p-freebsd 12.0-ALPHA7 FreeBSD 12.0-ALPHA7 r338892 GENERIC-NODEBUG  amd64 $ pkg info drm-next-kmod | grep Version Version        : 4.11.g20180822 $ grep -i radeon /etc/rc.conf | grep kld # kld_list="/boot/modules/radeonkms.ko" # kld_list="radeonkms" It seems that working without any drm-next-* and booting without CSM is the best combination. There's the tearing during most of startup, but it's not a showstopper. For single user mode, I have a mental note to F10 at boot and temporarily enable CSM. Temporarily, because with CSM I can't resume from suspend. ---- If I un-comment this: kld_list="/boot/modules/radeonkms.ko" – then the display goes blank, but remains lit, before startup completes. No response to Control-Alt-F2, no response to a normal press on the power button, it's necessary to force off the computer. If I'm not mistaken, drm-next-kmod was _less_ troublesome with a slightly less recent -CURRENT. I could use the computer, but there was a tendency to (for example) flicker badly, most noticeable with a VGA display (connected via the HP dock for the 8570p) after some idle time. I often found the flickering at the lock screen of KDE Plasma 5.