posix-clock: Fix return code on the poll method's error path
[linux/fpc-iii.git] / drivers / gpu / drm / nouveau / nvkm / engine / gr / ctxgm206.c
blobd6be6034c2c258db0e6b8adfd199c1a5d7da8ece
1 /*
2 * Copyright 2015 Red Hat Inc.
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20 * OTHER DEALINGS IN THE SOFTWARE.
22 * Authors: Ben Skeggs <bskeggs@redhat.com>
24 #include "ctxgf100.h"
26 static const struct gf100_gr_init
27 gm206_grctx_init_gpc_unk_1[] = {
28 { 0x418600, 1, 0x04, 0x0000007f },
29 { 0x418684, 1, 0x04, 0x0000001f },
30 { 0x418700, 1, 0x04, 0x00000002 },
31 { 0x418704, 1, 0x04, 0x00000080 },
32 { 0x418708, 1, 0x04, 0x40000000 },
33 { 0x41870c, 2, 0x04, 0x00000000 },
34 { 0x418728, 1, 0x04, 0x00300020 },
38 static const struct gf100_gr_pack
39 gm206_grctx_pack_gpc[] = {
40 { gm107_grctx_init_gpc_unk_0 },
41 { gm204_grctx_init_prop_0 },
42 { gm206_grctx_init_gpc_unk_1 },
43 { gm204_grctx_init_setup_0 },
44 { gf100_grctx_init_zcull_0 },
45 { gk208_grctx_init_crstr_0 },
46 { gm204_grctx_init_gpm_0 },
47 { gm204_grctx_init_gpc_unk_2 },
48 { gf100_grctx_init_gcc_0 },
52 const struct gf100_grctx_func
53 gm206_grctx = {
54 .main = gm204_grctx_generate_main,
55 .unkn = gk104_grctx_generate_unkn,
56 .hub = gm204_grctx_pack_hub,
57 .gpc = gm206_grctx_pack_gpc,
58 .zcull = gf100_grctx_pack_zcull,
59 .tpc = gm204_grctx_pack_tpc,
60 .ppc = gm204_grctx_pack_ppc,
61 .icmd = gm204_grctx_pack_icmd,
62 .mthd = gm204_grctx_pack_mthd,
63 .bundle = gm107_grctx_generate_bundle,
64 .bundle_size = 0x3000,
65 .bundle_min_gpm_fifo_depth = 0x180,
66 .bundle_token_limit = 0x780,
67 .pagepool = gm107_grctx_generate_pagepool,
68 .pagepool_size = 0x20000,
69 .attrib = gm107_grctx_generate_attrib,
70 .attrib_nr_max = 0x600,
71 .attrib_nr = 0x400,
72 .alpha_nr_max = 0x1800,
73 .alpha_nr = 0x1000,