Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright 2018 Red Hat Inc.
0003  *
0004  * Permission is hereby granted, free of charge, to any person obtaining a
0005  * copy of this software and associated documentation files (the "Software"),
0006  * to deal in the Software without restriction, including without limitation
0007  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
0008  * and/or sell copies of the Software, and to permit persons to whom the
0009  * Software is furnished to do so, subject to the following conditions:
0010  *
0011  * The above copyright notice and this permission notice shall be included in
0012  * all copies or substantial portions of the Software.
0013  *
0014  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
0017  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
0018  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
0019  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0020  * OTHER DEALINGS IN THE SOFTWARE.
0021  */
0022 #include "gf100.h"
0023 #include "ram.h"
0024 
0025 int
0026 gv100_fb_init_page(struct nvkm_fb *fb)
0027 {
0028     return (fb->page == 16) ? 0 : -EINVAL;
0029 }
0030 
0031 static const struct nvkm_fb_func
0032 gv100_fb = {
0033     .dtor = gf100_fb_dtor,
0034     .oneinit = gf100_fb_oneinit,
0035     .init = gp100_fb_init,
0036     .init_page = gv100_fb_init_page,
0037     .init_unkn = gp100_fb_init_unkn,
0038     .vpr.scrub_required = gp102_fb_vpr_scrub_required,
0039     .vpr.scrub = gp102_fb_vpr_scrub,
0040     .ram_new = gp100_ram_new,
0041     .default_bigpage = 16,
0042 };
0043 
0044 int
0045 gv100_fb_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_fb **pfb)
0046 {
0047     return gp102_fb_new_(&gv100_fb, device, type, inst, pfb);
0048 }
0049 
0050 MODULE_FIRMWARE("nvidia/gv100/nvdec/scrubber.bin");
0051 MODULE_FIRMWARE("nvidia/tu102/nvdec/scrubber.bin");
0052 MODULE_FIRMWARE("nvidia/tu104/nvdec/scrubber.bin");
0053 MODULE_FIRMWARE("nvidia/tu106/nvdec/scrubber.bin");
0054 MODULE_FIRMWARE("nvidia/tu116/nvdec/scrubber.bin");
0055 MODULE_FIRMWARE("nvidia/tu117/nvdec/scrubber.bin");