“5877457a96e5f89567d2eea092ec28db5d55fc06”上不存在“arch/x86/platform/intel-mid/intel-mid.c”
提交 b2c19870 编写于 作者: A Alexandre Courbot 提交者: Ben Skeggs

drm/gk20a/fb: fix setting of large page size bit

Commit "ltc/gf100-: fix cbc issues on certain boards" moved the setting
of the large page size bit from bar/nvc0 to fb/nvc0. GK20A uses its own
FB device and the change was thus not applied to it - fix this.
Signed-off-by: NAlexandre Courbot <acourbot@nvidia.com>
Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 67e26e41
...@@ -26,6 +26,20 @@ struct gk20a_fb_priv { ...@@ -26,6 +26,20 @@ struct gk20a_fb_priv {
struct nouveau_fb base; struct nouveau_fb base;
}; };
static int
gk20a_fb_init(struct nouveau_object *object)
{
struct gk20a_fb_priv *priv = (void *)object;
int ret;
ret = nouveau_fb_init(&priv->base);
if (ret)
return ret;
nv_mask(priv, 0x100c80, 0x00000001, 0x00000000); /* 128KiB lpg */
return 0;
}
static int static int
gk20a_fb_ctor(struct nouveau_object *parent, struct nouveau_object *engine, gk20a_fb_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
struct nouveau_oclass *oclass, void *data, u32 size, struct nouveau_oclass *oclass, void *data, u32 size,
...@@ -48,7 +62,7 @@ gk20a_fb_oclass = &(struct nouveau_fb_impl) { ...@@ -48,7 +62,7 @@ gk20a_fb_oclass = &(struct nouveau_fb_impl) {
.base.ofuncs = &(struct nouveau_ofuncs) { .base.ofuncs = &(struct nouveau_ofuncs) {
.ctor = gk20a_fb_ctor, .ctor = gk20a_fb_ctor,
.dtor = _nouveau_fb_dtor, .dtor = _nouveau_fb_dtor,
.init = _nouveau_fb_init, .init = gk20a_fb_init,
.fini = _nouveau_fb_fini, .fini = _nouveau_fb_fini,
}, },
.memtype = nvc0_fb_memtype_valid, .memtype = nvc0_fb_memtype_valid,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册