Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
e976278a
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e976278a
编写于
4月 14, 2016
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/fb/gm200: setup mmu debug buffer registers at init()
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
834b21f5
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
65 addition
and
9 deletion
+65
-9
drivers/gpu/drm/nouveau/include/nvkm/subdev/fb.h
drivers/gpu/drm/nouveau/include/nvkm/subdev/fb.h
+1
-0
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
+3
-3
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm200.c
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm200.c
+0
-6
drivers/gpu/drm/nouveau/nvkm/subdev/fb/Kbuild
drivers/gpu/drm/nouveau/nvkm/subdev/fb/Kbuild
+1
-0
drivers/gpu/drm/nouveau/nvkm/subdev/fb/gm200.c
drivers/gpu/drm/nouveau/nvkm/subdev/fb/gm200.c
+60
-0
未找到文件。
drivers/gpu/drm/nouveau/include/nvkm/subdev/fb.h
浏览文件 @
e976278a
...
@@ -90,6 +90,7 @@ int gf100_fb_new(struct nvkm_device *, int, struct nvkm_fb **);
...
@@ -90,6 +90,7 @@ int gf100_fb_new(struct nvkm_device *, int, struct nvkm_fb **);
int
gk104_fb_new
(
struct
nvkm_device
*
,
int
,
struct
nvkm_fb
**
);
int
gk104_fb_new
(
struct
nvkm_device
*
,
int
,
struct
nvkm_fb
**
);
int
gk20a_fb_new
(
struct
nvkm_device
*
,
int
,
struct
nvkm_fb
**
);
int
gk20a_fb_new
(
struct
nvkm_device
*
,
int
,
struct
nvkm_fb
**
);
int
gm107_fb_new
(
struct
nvkm_device
*
,
int
,
struct
nvkm_fb
**
);
int
gm107_fb_new
(
struct
nvkm_device
*
,
int
,
struct
nvkm_fb
**
);
int
gm200_fb_new
(
struct
nvkm_device
*
,
int
,
struct
nvkm_fb
**
);
#include <subdev/bios.h>
#include <subdev/bios.h>
#include <subdev/bios/ramcfg.h>
#include <subdev/bios/ramcfg.h>
...
...
drivers/gpu/drm/nouveau/nvkm/engine/device/base.c
浏览文件 @
e976278a
...
@@ -1995,7 +1995,7 @@ nv120_chipset = {
...
@@ -1995,7 +1995,7 @@ nv120_chipset = {
.
bios
=
nvkm_bios_new
,
.
bios
=
nvkm_bios_new
,
.
bus
=
gf100_bus_new
,
.
bus
=
gf100_bus_new
,
.
devinit
=
gm200_devinit_new
,
.
devinit
=
gm200_devinit_new
,
.
fb
=
gm
107
_fb_new
,
.
fb
=
gm
200
_fb_new
,
.
fuse
=
gm107_fuse_new
,
.
fuse
=
gm107_fuse_new
,
.
gpio
=
gk104_gpio_new
,
.
gpio
=
gk104_gpio_new
,
.
i2c
=
gm200_i2c_new
,
.
i2c
=
gm200_i2c_new
,
...
@@ -2029,7 +2029,7 @@ nv124_chipset = {
...
@@ -2029,7 +2029,7 @@ nv124_chipset = {
.
bios
=
nvkm_bios_new
,
.
bios
=
nvkm_bios_new
,
.
bus
=
gf100_bus_new
,
.
bus
=
gf100_bus_new
,
.
devinit
=
gm200_devinit_new
,
.
devinit
=
gm200_devinit_new
,
.
fb
=
gm
107
_fb_new
,
.
fb
=
gm
200
_fb_new
,
.
fuse
=
gm107_fuse_new
,
.
fuse
=
gm107_fuse_new
,
.
gpio
=
gk104_gpio_new
,
.
gpio
=
gk104_gpio_new
,
.
i2c
=
gm200_i2c_new
,
.
i2c
=
gm200_i2c_new
,
...
@@ -2063,7 +2063,7 @@ nv126_chipset = {
...
@@ -2063,7 +2063,7 @@ nv126_chipset = {
.
bios
=
nvkm_bios_new
,
.
bios
=
nvkm_bios_new
,
.
bus
=
gf100_bus_new
,
.
bus
=
gf100_bus_new
,
.
devinit
=
gm200_devinit_new
,
.
devinit
=
gm200_devinit_new
,
.
fb
=
gm
107
_fb_new
,
.
fb
=
gm
200
_fb_new
,
.
fuse
=
gm107_fuse_new
,
.
fuse
=
gm107_fuse_new
,
.
gpio
=
gk104_gpio_new
,
.
gpio
=
gk104_gpio_new
,
.
i2c
=
gm200_i2c_new
,
.
i2c
=
gm200_i2c_new
,
...
...
drivers/gpu/drm/nouveau/nvkm/engine/gr/gm200.c
浏览文件 @
e976278a
...
@@ -24,7 +24,6 @@
...
@@ -24,7 +24,6 @@
#include "gf100.h"
#include "gf100.h"
#include "ctxgf100.h"
#include "ctxgf100.h"
#include <subdev/fb.h>
#include <subdev/secboot.h>
#include <subdev/secboot.h>
#include <nvif/class.h>
#include <nvif/class.h>
...
@@ -57,17 +56,12 @@ int
...
@@ -57,17 +56,12 @@ int
gm200_gr_init
(
struct
gf100_gr
*
gr
)
gm200_gr_init
(
struct
gf100_gr
*
gr
)
{
{
struct
nvkm_device
*
device
=
gr
->
base
.
engine
.
subdev
.
device
;
struct
nvkm_device
*
device
=
gr
->
base
.
engine
.
subdev
.
device
;
struct
nvkm_fb
*
fb
=
device
->
fb
;
const
u32
magicgpc918
=
DIV_ROUND_UP
(
0x00800000
,
gr
->
tpc_total
);
const
u32
magicgpc918
=
DIV_ROUND_UP
(
0x00800000
,
gr
->
tpc_total
);
u32
data
[
TPC_MAX
/
8
]
=
{};
u32
data
[
TPC_MAX
/
8
]
=
{};
u8
tpcnr
[
GPC_MAX
];
u8
tpcnr
[
GPC_MAX
];
int
gpc
,
tpc
,
ppc
,
rop
;
int
gpc
,
tpc
,
ppc
,
rop
;
int
i
;
int
i
;
/*XXX: belongs in fb */
nvkm_wr32
(
device
,
0x100cc8
,
nvkm_memory_addr
(
fb
->
mmu_wr
)
>>
8
);
nvkm_wr32
(
device
,
0x100ccc
,
nvkm_memory_addr
(
fb
->
mmu_rd
)
>>
8
);
nvkm_mask
(
device
,
0x100cc4
,
0x00040000
,
0x00040000
);
gr
->
func
->
init_gpc_mmu
(
gr
);
gr
->
func
->
init_gpc_mmu
(
gr
);
gf100_gr_mmio
(
gr
,
gr
->
fuc_sw_nonctx
);
gf100_gr_mmio
(
gr
,
gr
->
fuc_sw_nonctx
);
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/fb/Kbuild
浏览文件 @
e976278a
...
@@ -23,6 +23,7 @@ nvkm-y += nvkm/subdev/fb/gf100.o
...
@@ -23,6 +23,7 @@ nvkm-y += nvkm/subdev/fb/gf100.o
nvkm-y += nvkm/subdev/fb/gk104.o
nvkm-y += nvkm/subdev/fb/gk104.o
nvkm-y += nvkm/subdev/fb/gk20a.o
nvkm-y += nvkm/subdev/fb/gk20a.o
nvkm-y += nvkm/subdev/fb/gm107.o
nvkm-y += nvkm/subdev/fb/gm107.o
nvkm-y += nvkm/subdev/fb/gm200.o
nvkm-y += nvkm/subdev/fb/ram.o
nvkm-y += nvkm/subdev/fb/ram.o
nvkm-y += nvkm/subdev/fb/ramnv04.o
nvkm-y += nvkm/subdev/fb/ramnv04.o
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/fb/gm200.c
0 → 100644
浏览文件 @
e976278a
/*
* Copyright 2012 Red Hat Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*
* Authors: Ben Skeggs
*/
#include "gf100.h"
#include "ram.h"
#include <core/memory.h>
static
void
gm200_fb_init
(
struct
nvkm_fb
*
base
)
{
struct
gf100_fb
*
fb
=
gf100_fb
(
base
);
struct
nvkm_device
*
device
=
fb
->
base
.
subdev
.
device
;
if
(
fb
->
r100c10_page
)
nvkm_wr32
(
device
,
0x100c10
,
fb
->
r100c10
>>
8
);
nvkm_mask
(
device
,
0x100c80
,
0x00000001
,
0x00000000
);
/* 128KiB lpg */
nvkm_wr32
(
device
,
0x100cc8
,
nvkm_memory_addr
(
fb
->
base
.
mmu_wr
)
>>
8
);
nvkm_wr32
(
device
,
0x100ccc
,
nvkm_memory_addr
(
fb
->
base
.
mmu_rd
)
>>
8
);
nvkm_mask
(
device
,
0x100cc4
,
0x00060000
,
min
(
nvkm_memory_size
(
fb
->
base
.
mmu_rd
)
>>
16
,
(
u64
)
2
)
<<
17
);
}
static
const
struct
nvkm_fb_func
gm200_fb
=
{
.
dtor
=
gf100_fb_dtor
,
.
oneinit
=
gf100_fb_oneinit
,
.
init
=
gm200_fb_init
,
.
intr
=
gf100_fb_intr
,
.
ram_new
=
gm107_ram_new
,
.
memtype_valid
=
gf100_fb_memtype_valid
,
};
int
gm200_fb_new
(
struct
nvkm_device
*
device
,
int
index
,
struct
nvkm_fb
**
pfb
)
{
return
gf100_fb_new_
(
&
gm200_fb
,
device
,
index
,
pfb
);
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录