Init kind tables in gk20a specific fb init.
Change-Id: Ib7642aba74c924b69aa8c0038315c65d30c57883
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/378325
#include <linux/types.h>
#include <dev.h>
#include "gk20a/gk20a.h"
+#include "kind_gk20a.h"
#include "hw_mc_gk20a.h"
static void fb_gk20a_reset(struct gk20a *g)
void gk20a_init_fb(struct gpu_ops *gops)
{
gops->fb.reset = fb_gk20a_reset;
+ gk20a_init_uncompressed_kind_map();
+ gk20a_init_kind_attr();
}
} gr;
const char *name;
struct {
+ void (*init_fs_state)(struct gk20a *g);
void (*reset)(struct gk20a *g);
+ void (*init_uncompressed_kind_map)(struct gk20a *g);
+ void (*init_kind_attr)(struct gk20a *g);
} fb;
};
if (g->ops.fb.reset)
g->ops.fb.reset(g);
+ if (g->ops.fb.init_fs_state)
+ g->ops.fb.init_fs_state(g);
+
return 0;
}
gk20a_init_bar1_vm(mm);
- gk20a_init_uncompressed_kind_map();
- gk20a_init_kind_attr();
-
mm->remove_support = gk20a_remove_mm_support;
mm->sw_ready = true;