projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2cad9d
)
drm/i915: Do not hardcode s_max, ss_max and eu_mask for BXT
author
Dongwon Kim
<
[email protected]
>
Thu, 17 Sep 2015 18:26:35 +0000
(11:26 -0700)
committer
Daniel Vetter
<
[email protected]
>
Wed, 23 Sep 2015 13:36:58 +0000
(15:36 +0200)
We can calculate BXT values correctly from GFX fuse values without
hardcoding special limits.
Cc: Imre Deak <
[email protected]
>
Cc: Matthew D Roper <
[email protected]
>
Signed-off-by: Dongwon Kim <
[email protected]
>
Reviewed-by: Arun Siluvery <
[email protected]
>
Signed-off-by: Daniel Vetter <
[email protected]
>
drivers/gpu/drm/i915/i915_dma.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_dma.c
b/drivers/gpu/drm/i915/i915_dma.c
index c0695504dd8fa35e9bd793d31f85c9404b0f2db7..817b05ce8dd33ffa2c7cc06c241a937e7e6df370 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_dma.c
+++ b/
drivers/gpu/drm/i915/i915_dma.c
@@
-631,17
+631,6
@@
static void gen9_sseu_info_init(struct drm_device *dev)
u32 fuse2, s_enable, ss_disable, eu_disable;
u8 eu_mask = 0xff;
- /*
- * BXT has a single slice. BXT also has at most 6 EU per subslice,
- * and therefore only the lowest 6 bits of the 8-bit EU disable
- * fields are valid.
- */
- if (IS_BROXTON(dev)) {
- s_max = 1;
- eu_max = 6;
- eu_mask = 0x3f;
- }
-
info = (struct intel_device_info *)&dev_priv->info;
fuse2 = I915_READ(GEN8_FUSE2);
s_enable = (fuse2 & GEN8_F2_S_ENA_MASK) >>