Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2086656imd; Sun, 4 Nov 2018 16:54:13 -0800 (PST) X-Google-Smtp-Source: AJdET5c2mfuj9qmiTZiONmhnykTIW0mFqRHJQ8AF+5pv954sUk/pDRLsCWKhu9lbNUIqa+IXoNra X-Received: by 2002:a62:1c53:: with SMTP id c80-v6mr3256969pfc.14.1541379253475; Sun, 04 Nov 2018 16:54:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541379253; cv=none; d=google.com; s=arc-20160816; b=l8/2ZurYE4twy1Swg9BqiKDwLfF1oMj5htfmGPSz+FkEvLoED7zt+1dbW54OKvVek6 /wZRMA8U9HiVC387YfV8p8tGogN+7cl6VpNRv3Kh+NKVFL9n0DSFV8jQT40PogW967Qr ha05n7AdiY1fVHg7BoWy7cxjdhcpIIO5VUSPdbPmK7LX8xovA5O4V703AcFGsPMhN5uW iVkp6FhlXcFd2tfoAFVTSSQ/A0RTVgFDiWXSFWrRNznrGSeQLFFSggWFTCHmeQUDgUZB N+rs+japduzEgRby6k7POQs5NWrlSWdEk3ywBt5ZMPy2QNaH1F7nSjNA9P5shs+vaJO3 Labw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=VhUUbXEcnZZcwUABGiwh7EvTpRgpF2jPbQpyaQZHwMA=; b=fyGai4EhfQyNS80/PQjRcaJ4Q/vYKh/Ih8fuBD6WA+EOqDajF0jmFS2kQ1PxNa0Hiz Ay9AnoOkWwErvn5ah67uh0YENxrHWdV+z1q1qwL1FbtMSnYKUcgjN0Ob05d5PruyFMs/ KCaQ5lemruaNNlAgGWna8Svb/31IGMuqqR+CT5H0OAT7OjkLyyP0wpHR/jaKUbZIA08m yOhOK+rL6rv+MaPUOcNQnYikIIV+1IcYiSRiiYma5gtBHIaVkkEpypMptoXVZIZ0DZ3Q t1w58a5IqrX4kXdbvrdieTFt1PfBIw2OcLoADcuTV5PKjVYzecoY9t7bDwQeLUg0g29+ 7oAQ== 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 q15-v6si36699919pgv.437.2018.11.04.16.53.59; Sun, 04 Nov 2018 16:54:13 -0800 (PST) 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 S1730672AbeKEIcJ (ORCPT + 99 others); Mon, 5 Nov 2018 03:32:09 -0500 Received: from gate.crashing.org ([63.228.1.57]:43049 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730390AbeKEIcJ (ORCPT ); Mon, 5 Nov 2018 03:32:09 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id wA4NEwbC010015; Sun, 4 Nov 2018 17:14:59 -0600 Message-ID: <365d8b24f1c6a28c32998924a95b6a2a74655526.camel@kernel.crashing.org> Subject: Re: radeon vs radeonfb Mobility quirks (Thinkpad X32) From: Benjamin Herrenschmidt To: Eric Wong , 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 =?ISO-8859-1?Q?K=F6nig?= , "David (ChunMing) Zhou" Date: Mon, 05 Nov 2018 10:14:57 +1100 In-Reply-To: <20181104042328.jzavn47y2wloprbs@untitled> References: <20181104042328.jzavn47y2wloprbs@untitled> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.1 (3.30.1-1.fc29) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2018-11-04 at 04:23 +0000, Eric Wong wrote: > 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). There's a whole pile of power management stuff for ancient laptops that never quite made it from radeonfb to the radeon DRM driver... sadly it also prevents sleep on old PowerBooks but I haven't had many complaints so... The code for D2 and D3 on those old things is reasonably self contained, it shouldn't be that hard to move it over I suppose. Cheers, Ben.