From: Adam Jackson Subject: [PATCH 0/4] Attempt to re-enable FBC on gen3 Date: Fri, 23 Apr 2010 11:17:38 -0400 Message-ID: <1272035862-19447-1-git-send-email-ajax@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by gabe.freedesktop.org (Postfix) with ESMTP id 83E329E753 for ; Fri, 23 Apr 2010 08:17:50 -0700 (PDT) Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o3NFHnpq019512 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 23 Apr 2010 11:17:50 -0400 Received: from localhost.localdomain (ihatethathostname.lab.bos.redhat.com [10.16.43.238]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o3NFHm8I014835 for ; Fri, 23 Apr 2010 11:17:49 -0400 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org Disclaimer: I haven't tested this extensively, it just seems logical, and I really hate to see us lose FBC on gen3 since that's the family being used in low-wattage devices. Wider testing would be greatly appreciated. The only thing I really don't like about this is how we hit every CRTC on resume trying to enable FBC. But that's sort of a problem in the normal case anyway. On pre-gen4, we can only compress plane A, so we hardwire that to pipe B since LVDS is limited to pipe B. Ideally, you'd like to compress whichever CRTC has more pixels, assuming they're both mostly static. It's really awkward to do that in the current one-at-a-time CRTC setup kind of world though. On gen4 and later we can compress either plane, so it's a little messier; we'll compress whichever CRTC gets set up last, before suspend, but then after suspend we'll compress the highest-numbered CRTC. Either way, when multiple CRTCs are active, we're already sometimes compressing a suboptimal plane, so making more ways for that to happen isn't a huge deal. (Then, of course, you'd like to switch which pipe you compress to the one with the more static image, if they have different update rates. But that's way into diminishing returns territory.) - ajax