From owner-freebsd-current@freebsd.org Wed Aug 22 09:11: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 547141082C24 for ; Wed, 22 Aug 2018 09:11:28 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com [IPv6:2a00:1450:400c:c09::234]) (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 B95AD8B790 for ; Wed, 22 Aug 2018 09:11:27 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: by mail-wm0-x234.google.com with SMTP id j192-v6so1104432wmj.1 for ; Wed, 22 Aug 2018 02:11:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=HetXXDVGzZ9nY5nJfvOzgg6lmfQFy42nSApEuXTgBKI=; b=oMyRSy6oz5jxW5NxY7EF6yvJ0pvNmgA1r5r1VQnrrvZHBcDqrmNpYqchl7MCW8MeSf SpoIqQb9YgC6C9WbS1zcy9nWRqc++M2xrCI1I/CvMXyP9lxudivlLoxQbeQKbePLMaCS I/IpLYxZ3IoIOIRtATTIYNhHFhVuO/4MPmTmxpcly4KQ0BLdstQJfHZU06rCdPM+CN/i nan0MNardXR8MrXrZq+0HgEtiRzB6NOHf9Yc4QbPgKcTH/nhgzc9k5KXpex/aY8YmPAA cCcy5eQb7w9Zj1kIzjRGJhq8kInIby+ppuFgYo/z/ZQoME5JGVCvboqF3mVVIe2hzyFP x4cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=HetXXDVGzZ9nY5nJfvOzgg6lmfQFy42nSApEuXTgBKI=; b=dJQNTbN/L7wsSFKn6VgahF65W0cbLE+Ba5XKcRQK3kQTZcAVpV7VZMQSKfWe7P2NdR MRAW54R+iMH5VNMS6GTviYjYz74rT1Ul4LPTuhP3Fh50n79FHTZ2fiFOjMtOgG+kMJGD iEz0v0UsFJI3OKach5CfwmIBwEYexwJiyyJIF+NsSqJKPZWwu3LSbyyO59U6mbSbSv8V /xKKe/CO5QbGaze4RiNMsFcmq8OB51Vn8WD+32qE5CXHPOrU31+U+Sf7YdptUi2unLSk 8/Uv758g3JoSYjWE+3cFl9WWVplxsoAX+e0crbvMj2EJUX9iGCXYFAJxuH5Zj+zVH3L5 SbJA== X-Gm-Message-State: APzg51CIRYy1M5hzj1aFmUckTSfswdU+3mtihcK7p7NrcRdepXu4YZjI HMBIZb2YT6LB7hCWMR/ejNCBYZeRlZmHQA== X-Google-Smtp-Source: ANB0VdZOX7ClmP+zmzCamtEQc5JoHsNRfBqHQtvr85Z+Tm3RKZIUzJHEMAGpejWZR5LicMvcP4J1UA== X-Received: by 2002:a1c:d98a:: with SMTP id q132-v6mr1898524wmg.78.1534929086119; Wed, 22 Aug 2018 02:11:26 -0700 (PDT) Received: from [192.168.1.231] (host-78-150-66-180.as13285.net. [78.150.66.180]) by smtp.gmail.com with ESMTPSA id a6-v6sm1221077wmf.22.2018.08.22.02.11.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Aug 2018 02:11:25 -0700 (PDT) To: freebsd-current From: Graham Perrin Subject: Suspend, resume, UEFI, CSM, drm-stable-kmod and drm-next-kmod with Radeon HD 7570M Message-ID: <93fcf295-1dae-12d4-5530-ef0c55bd8cc2@gmail.com> Date: Wed, 22 Aug 2018 10:11:24 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 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: Wed, 22 Aug 2018 09:11:28 -0000 HP EliteBook 8570p with AMD 'Thames' Radeon HD 7570M. If neither drm-stable-kmod nor drm-next-kmod is used – commenting out # kld_list="/boot/modules/radeonkms.ko" in /etc/rc.conf and if boot is pure UEFI, without CSM, then the notebook can reliably resume from suspend. There's a distinctive single amber pulse of the (normally blue) radio button before suspend occurs. However: - without CSM, most of the startup routine is illegible, 'torn' – for example, I can't see what's typed when I boot to single user mode. ---- If either drm-stable-kmod or drm-next-kmod is used and if boot is pure UEFI, then the notebook can not suspend. No amber pulse of the radio button. With and without drm-next-kmod: if boot is hybrid UEFI with CSM, then suspend occurs, but resume fails. No beep, the computer restarts. debug.acpi.resume_beep=1 in /boot/loader.conf for an audible beep. ---- Please: might graphics/drm-devel-kmod be better for either the tearing (without CSM) or for suspend? ---- $ date ; uname -v Wed 22 Aug 2018 09:51:39 BST FreeBSD 12.0-ALPHA2 #2 r337986: Fri Aug 17 22:01:23 BST 2018     root@momh167-gjp4-hpelitebook8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG $ pkg info graphics/drm-stable-kmod drm-stable-kmod-g20180802 Name           : drm-stable-kmod Version        : g20180802 Installed on   : Wed Aug 22 06:43:35 2018 BST Origin         : graphics/drm-stable-kmod Architecture   : FreeBSD:12:amd64 Prefix         : /usr/local Categories     : graphics kld Licenses       : BSD2CLAUSE, MIT, GPLv2 Maintainer     : jmd@FreeBSD.org WWW            : https://github.com/FreeBSDDesktop/kms-drm Comment        : DRM modules for the linuxkpi-based KMS components Options        :         DEBUG          : off Annotations    :         FreeBSD_version: 1200078         repo_type      : binary         repository     : FreeBSD Flat size      : 7.51MiB Description    : amdgpu, i915, and radeon DRM modules for the linuxkpi-based KMS components. Currently corresponding to Linux 4.9 DRM. More stable state. amdgpu and radeonkms are known to fail with EFI boot. WWW: https://github.com/FreeBSDDesktop/kms-drm $ pciconf -lv | grep -A 4 vga vgapci0@pci0:1:0:0:     class=0x030000 card=0x17a9103c chip=0x68411002 rev=0x00 hdr=0x00     vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'     device     = 'Thames [Radeon HD 7550M/7570M/7650M]'     class      = display     subclass   = VGA $