[Intel-gfx] [PATCH 2/3] drm/i915: Fold sandybridge_pcode_read() into snb_pcode_request()

Chris Wilson chris at chris-wilson.co.uk
Tue Jan 30 11:57:49 UTC 2018


Quoting Imre Deak (2018-01-30 11:47:11)
> These two functions are very similar so simplify things by removing the
> duplication.
> 
> Add a seperate sleeping poll timeout parameter, useful for longer polls
> like the CDCLK change on BXT/GLK. The next patch will take that into use.
> 
> While at it document snb_pcode_request() and clean up a bit the
> error/debug prints. Other than that no functional changes.

In my patches to do the same (and move it to intel_sideband.c) I kept
the sandybridge_pcode_read/sandybridge_pcode_write functions to both
take the sb_lock and to provide imo clearer debug messages.
https://patchwork.freedesktop.org/series/36469/
-Chris


More information about the Intel-gfx mailing list