提交 8897644a 编写于 作者: B Ben Widawsky 提交者: Daniel Vetter

drm/i915/bdw: HW context support

BDW context sizes varies a bit.

v2: Squash in fixup for the hw context size from Ben.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net> (v1)
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 31a5336e
...@@ -117,6 +117,9 @@ static int get_context_size(struct drm_device *dev) ...@@ -117,6 +117,9 @@ static int get_context_size(struct drm_device *dev)
else else
ret = GEN7_CXT_TOTAL_SIZE(reg) * 64; ret = GEN7_CXT_TOTAL_SIZE(reg) * 64;
break; break;
case 8:
ret = GEN8_CXT_TOTAL_SIZE;
break;
default: default:
BUG(); BUG();
} }
......
...@@ -1822,6 +1822,9 @@ ...@@ -1822,6 +1822,9 @@
* on HSW) - so the final size is 66944 bytes, which rounds to 17 pages. * on HSW) - so the final size is 66944 bytes, which rounds to 17 pages.
*/ */
#define HSW_CXT_TOTAL_SIZE (17 * PAGE_SIZE) #define HSW_CXT_TOTAL_SIZE (17 * PAGE_SIZE)
/* Same as Haswell, but 72064 bytes now. */
#define GEN8_CXT_TOTAL_SIZE (18 * PAGE_SIZE)
#define VLV_CLK_CTL2 0x101104 #define VLV_CLK_CTL2 0x101104
#define CLK_CTL2_CZCOUNT_30NS_SHIFT 28 #define CLK_CTL2_CZCOUNT_30NS_SHIFT 28
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册