Skip to content

Attempt to re-enable FBC on gen3

Adam Jackson intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm/i915: Make fbc control wrapper functionsdrivers/gpu/drm/i915/i915_debugfs.c drivers/gpu/drm/i915/i915_dma.c drivers/gpu/drm/i915/i915_drv.h +1 more+51 -360 replies
2/4drm/i915: Push an fbc disable across suspenddrivers/gpu/drm/i915/i915_drv.c drivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/i915_suspend.c+14 -23 replies
3/4drm/i915: Hide per-chipset fbc disable routines againdrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_display.c+2 -40 replies
4/4Revert "drm/i915: Disable FBC on 915GM and 945GM."drivers/gpu/drm/i915/i915_drv.c drivers/gpu/drm/i915/intel_display.c+3 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] Attempt to re-enable FBC on gen3

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