[PATCH 2/5] drm/i915: Do not read GAMMA_MODE register

2016-02-26 Thread Lionel Landwerlin
Implement Daniel Stone's recommendation to not read registers to infer the hardware's state. v2: Read GAMMA_MODE register value at init (Matt Roper's comment) v3: Read GAMMA_MODE register in intel_modeset_readout_hw_state along with other registers (Matt Roper's comment). v4: Mask

[PATCH 2/5] drm/i915: Do not read GAMMA_MODE register

2016-02-25 Thread Lionel Landwerlin
Implement Daniel Stone's recommendation to not read registers to infer the hardware's state. v2: Read GAMMA_MODE register value at init (Matt Roper's comment) v3: Read GAMMA_MODE register in intel_modeset_readout_hw_state along with other registers (Matt Roper's comment). Signed-off-by:

[PATCH 2/5] drm/i915: Do not read GAMMA_MODE register

2016-02-25 Thread Matt Roper
On Thu, Feb 25, 2016 at 10:58:46AM +, Lionel Landwerlin wrote: > Implement Daniel Stone's recommendation to not read registers to infer > the hardware's state. > > v2: Read GAMMA_MODE register value at init (Matt Roper's comment) > > v3: Read GAMMA_MODE register in

[PATCH 2/5] drm/i915: Do not read GAMMA_MODE register

2016-02-25 Thread Lionel Landwerlin
Implement Daniel Stone's recommendation to not read registers to infer the hardware's state. v2: Read GAMMA_MODE register value at init (Matt Roper's comment) v3: Read GAMMA_MODE register in intel_modeset_readout_hw_state along with other registers (Matt Roper's comment). Signed-off-by:

[PATCH 2/5] drm/i915: Do not read GAMMA_MODE register

2016-02-23 Thread Lionel Landwerlin
Implement Daniel Stone's recommendation to not read registers to infer the hardware's state. v2: Read GAMMA_MODE register value at init Signed-off-by: Lionel Landwerlin --- drivers/gpu/drm/i915/intel_color.c | 17 + drivers/gpu/drm/i915/intel_drv.h | 3 +++ 2 files changed,

[Intel-gfx] [PATCH 2/5] drm/i915: Do not read GAMMA_MODE register

2016-02-23 Thread Lionel Landwerlin
On 23/02/16 00:38, Matt Roper wrote: > On Mon, Feb 22, 2016 at 02:18:08PM +, Lionel Landwerlin wrote: >> Implement Daniel Stone's recommendation to not read registers to infer >> the hardware's state. >> >> Signed-off-by: Lionel Landwerlin > Do we need to ensure that software and hardware

[Intel-gfx] [PATCH 2/5] drm/i915: Do not read GAMMA_MODE register

2016-02-23 Thread Matt Roper
On Tue, Feb 23, 2016 at 10:36:36AM +, Lionel Landwerlin wrote: > On 23/02/16 00:38, Matt Roper wrote: > >On Mon, Feb 22, 2016 at 02:18:08PM +, Lionel Landwerlin wrote: > >>Implement Daniel Stone's recommendation to not read registers to infer > >>the hardware's state. > >> >

[Intel-gfx] [PATCH 2/5] drm/i915: Do not read GAMMA_MODE register

2016-02-22 Thread Matt Roper
On Mon, Feb 22, 2016 at 02:18:08PM +, Lionel Landwerlin wrote: > Implement Daniel Stone's recommendation to not read registers to infer > the hardware's state. > > Signed-off-by: Lionel Landwerlin Do we need to ensure that software and hardware state are synchronized at startup? A boot

[PATCH 2/5] drm/i915: Do not read GAMMA_MODE register

2016-02-22 Thread Lionel Landwerlin
Implement Daniel Stone's recommendation to not read registers to infer the hardware's state. Signed-off-by: Lionel Landwerlin --- drivers/gpu/drm/i915/intel_color.c | 7 +-- drivers/gpu/drm/i915/intel_drv.h | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git

[PATCH 2/5] drm/i915: Do not read GAMMA_MODE register

2016-02-19 Thread Lionel Landwerlin
Implement Daniel Stone's recommendation to not read registers to infer the hardware's state. Signed-off-by: Lionel Landwerlin --- drivers/gpu/drm/i915/intel_color.c | 7 +-- drivers/gpu/drm/i915/intel_drv.h | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git