Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1218237imd; Sat, 3 Nov 2018 21:37:46 -0700 (PDT) X-Google-Smtp-Source: AJdET5d7ZqMmwiUxhMUMFEbb65M30vgevisl6m/NOJlUE706U3c1Ot39FlkAGjkhCwygNsZWb3qJ X-Received: by 2002:a17:902:6f16:: with SMTP id w22-v6mr17820775plk.309.1541306266310; Sat, 03 Nov 2018 21:37:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541306266; cv=none; d=google.com; s=arc-20160816; b=e18/n9yrNJaZd3mLs83D7tMh+qrIugAuvimUz0iwbJunK7semI4940I28e9kpJkLeZ 8B8xs82qvT6cu/+o37UkjM+FDduweJHUxRTp3NpeClXQ3+VI+O6ufE7PxWzmAvGmyRtN V9gNKidgpzBckbPhRGgLuRC1+ipBwExVSANOw5erdQ1CBJrPoyycTG5/sqHZWR0hEMFS 7soAsmZmj0fwrSZUSwZzJAY/N+2J8heoISkumllQkDQIj/445l3fPzYnD49HSltW8yYr 0yeQ7iZ1jZV3gExVDvWbwni8zrBkLb2JaR4jkd2FReNsFr4XMUrVMDKj8bC/tM/6xeMk LlFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :message-id:subject:cc:to:from:date; bh=/QOnsWk5UgGn+1I02yFgt8WyTn6RjPRwQfzv2dStt+w=; b=Miu10TmAr/tT7fZTVghTKvWWjbYfemi00/u9zR19bZQq4cnWPtw1ZJTvVpun3pOZZM Ct2bvZNtiNzx2uiF+T0HfDQIOOa72cMWzTp5aL3YSRPGHAbX62BowaAWpf9wWi6/gODO P6rAj4b61HxjJAv+Pp1KTrL+Danqm35HFJNEePY26rdlNAlmNeIyTnQy0/0JA3DhRDfO 6RNsuK4S99hGMOM5nuQKHerR1GGPzx0p9v4ybG7Qt2J3xCsUae1MJcgNFkW4pQpoyTVS fYwFJj6VNM+XvYvvT44ifS66hqI4YxRDLcS2buBuRoSjPhSPQmHflL3jCa8LmI7uZqKk 13ew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c2-v6si29252016plb.123.2018.11.03.21.37.18; Sat, 03 Nov 2018 21:37:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729121AbeKDNnq (ORCPT + 99 others); Sun, 4 Nov 2018 08:43:46 -0500 Received: from dcvr.yhbt.net ([64.71.152.64]:51408 "EHLO dcvr.yhbt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729037AbeKDNnq (ORCPT ); Sun, 4 Nov 2018 08:43:46 -0500 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 7E6E51F453; Sun, 4 Nov 2018 04:23:28 +0000 (UTC) Date: Sun, 4 Nov 2018 04:23:28 +0000 From: Eric Wong To: Benjamin Herrenschmidt , David Airlie , Bartlomiej Zolnierkiewicz Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, Alex Deucher , Christian =?utf-8?B?S8O2bmln?= , "David (ChunMing) Zhou" Subject: radeon vs radeonfb Mobility quirks (Thinkpad X32) Message-ID: <20181104042328.jzavn47y2wloprbs@untitled> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org My Thinkpad X32 (r100, Mobility M6) can't suspend or hibernate with KMS using the "radeon" driver. "radeonfb" and the VESA fallback (no KMS) are both fine. It seems to be the same bug as: https://bugs.freedesktop.org/show_bug.cgi?id=38554 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=583120 The problem manifests in the console and inside X11, and with 0 or 3 in /proc/sys/kernel/acpi_video_flags. "radeontool light off" to disable the backlight doesn't help, either (no VGA plugged in) Looking at drivers/video/fbdev/aty/radeon_pm.c, I notice it sets a D2 sleep mode for my X32: BUGFIX("IBM Thinkpad X31/X32", PCI_VENDOR_ID_IBM, 0x052f, radeon_pm_d2, NULL), Which I suspect is what allows "radeonfb" to work for me But I can't find the corresponding quirk in drivers/gpu/drm/radeon/, so I now believe a missing quirk is the cause of this problem with the "radeon" driver. I poked around but couldn't figure out what changes to make to the "radeon" driver to enable the corresponding, but I'm willing to test patches. Setting "dynpm" in /sys/**/power_method didn't seem to change things, either. Help greatly appreaciated. Thanks I've mainly been using the X32 as a server this decade so didn't use suspend/hibernate so I didn't investigate until recently (because my netbook died).