drm/i915: Detect eDRAM with the enabled bit only
authorDamien Lespiau <damien.lespiau@intel.com>
Tue, 3 Feb 2015 14:25:14 +0000 (14:25 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 13 Feb 2015 22:28:30 +0000 (23:28 +0100)
commit2db59d530777b76f6b7944e0bfa43c9fede10b10
tree95cb24dcc2eaf95058dde5dc2d685b86216ca008
parent72603ec0e2db745978a8f126307fe857f9a1ddc9
drm/i915: Detect eDRAM with the enabled bit only

At the moment we compare the whole EDRAM_PRESENT/EDRAMCAP register value
to 1 while EDRAM_PRESENT is only bit 0 (the rest may be used to describe
eDRAM capabilities).

To be more future proof, only look at bit 0 to detect eDRAM presence.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_uncore.c