Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
af3b8d53
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
af3b8d53
编写于
11月 01, 2017
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau/mmu: remove old vm creation hooks
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
8e39abff
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
1 addition
and
65 deletion
+1
-65
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/base.c
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/base.c
+1
-29
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/g84.c
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/g84.c
+0
-1
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/gf100.c
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/gf100.c
+0
-8
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/gk104.c
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/gk104.c
+0
-1
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/gk20a.c
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/gk20a.c
+0
-1
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/gm200.c
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/gm200.c
+0
-2
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/gm20b.c
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/gm20b.c
+0
-2
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/nv50.c
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/nv50.c
+0
-11
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/priv.h
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/priv.h
+0
-10
未找到文件。
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/base.c
浏览文件 @
af3b8d53
...
...
@@ -616,31 +616,6 @@ nvkm_vm_legacy(struct nvkm_mmu *mmu, u64 offset, u64 length, u64 mm_offset,
return
0
;
}
int
nvkm_vm_create
(
struct
nvkm_mmu
*
mmu
,
u64
offset
,
u64
length
,
u64
mm_offset
,
u32
block
,
struct
lock_class_key
*
key
,
struct
nvkm_vm
**
pvm
)
{
static
struct
lock_class_key
_key
;
struct
nvkm_vm
*
vm
;
int
ret
;
vm
=
kzalloc
(
sizeof
(
*
vm
),
GFP_KERNEL
);
if
(
!
vm
)
return
-
ENOMEM
;
__mutex_init
(
&
vm
->
mutex
,
"&vm->mutex"
,
key
?
key
:
&
_key
);
vm
->
mmu
=
mmu
;
ret
=
nvkm_vm_legacy
(
mmu
,
offset
,
length
,
mm_offset
,
block
,
vm
);
if
(
ret
)
{
kfree
(
vm
);
return
ret
;
}
*
pvm
=
vm
;
return
0
;
}
int
nvkm_vm_new
(
struct
nvkm_device
*
device
,
u64
offset
,
u64
length
,
u64
mm_offset
,
struct
lock_class_key
*
key
,
struct
nvkm_vm
**
pvm
)
...
...
@@ -666,10 +641,7 @@ nvkm_vm_new(struct nvkm_device *device, u64 offset, u64 length, u64 mm_offset,
return
ret
;
}
if
(
!
mmu
->
func
->
create
)
return
-
EINVAL
;
return
mmu
->
func
->
create
(
mmu
,
offset
,
length
,
mm_offset
,
key
,
pvm
);
return
-
EINVAL
;
}
static
int
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/g84.c
浏览文件 @
af3b8d53
...
...
@@ -30,7 +30,6 @@ g84_mmu = {
.
pgt_bits
=
29
-
12
,
.
spg_shift
=
12
,
.
lpg_shift
=
16
,
.
create
=
nv50_vm_create
,
.
map_pgt
=
nv50_vm_map_pgt
,
.
map
=
nv50_vm_map
,
.
map_sg
=
nv50_vm_map_sg
,
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/gf100.c
浏览文件 @
af3b8d53
...
...
@@ -190,13 +190,6 @@ gf100_vm_flush(struct nvkm_vm *vm)
mutex_unlock
(
&
mmu
->
subdev
.
mutex
);
}
int
gf100_vm_create
(
struct
nvkm_mmu
*
mmu
,
u64
offset
,
u64
length
,
u64
mm_offset
,
struct
lock_class_key
*
key
,
struct
nvkm_vm
**
pvm
)
{
return
nvkm_vm_create
(
mmu
,
offset
,
length
,
mm_offset
,
4096
,
key
,
pvm
);
}
static
const
struct
nvkm_mmu_func
gf100_mmu
=
{
.
limit
=
(
1ULL
<<
40
),
...
...
@@ -204,7 +197,6 @@ gf100_mmu = {
.
pgt_bits
=
27
-
12
,
.
spg_shift
=
12
,
.
lpg_shift
=
17
,
.
create
=
gf100_vm_create
,
.
map_pgt
=
gf100_vm_map_pgt
,
.
map
=
gf100_vm_map
,
.
map_sg
=
gf100_vm_map_sg
,
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/gk104.c
浏览文件 @
af3b8d53
...
...
@@ -30,7 +30,6 @@ gk104_mmu = {
.
pgt_bits
=
27
-
12
,
.
spg_shift
=
12
,
.
lpg_shift
=
17
,
.
create
=
gf100_vm_create
,
.
map_pgt
=
gf100_vm_map_pgt
,
.
map
=
gf100_vm_map
,
.
map_sg
=
gf100_vm_map_sg
,
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/gk20a.c
浏览文件 @
af3b8d53
...
...
@@ -30,7 +30,6 @@ gk20a_mmu = {
.
pgt_bits
=
27
-
12
,
.
spg_shift
=
12
,
.
lpg_shift
=
17
,
.
create
=
gf100_vm_create
,
.
map_pgt
=
gf100_vm_map_pgt
,
.
map
=
gf100_vm_map
,
.
map_sg
=
gf100_vm_map_sg
,
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/gm200.c
浏览文件 @
af3b8d53
...
...
@@ -32,7 +32,6 @@ gm200_mmu = {
.
pgt_bits
=
27
-
12
,
.
spg_shift
=
12
,
.
lpg_shift
=
17
,
.
create
=
gf100_vm_create
,
.
map_pgt
=
gf100_vm_map_pgt
,
.
map
=
gf100_vm_map
,
.
map_sg
=
gf100_vm_map_sg
,
...
...
@@ -48,7 +47,6 @@ gm200_mmu_fixed = {
.
pgt_bits
=
27
-
12
,
.
spg_shift
=
12
,
.
lpg_shift
=
17
,
.
create
=
gf100_vm_create
,
.
map_pgt
=
gf100_vm_map_pgt
,
.
map
=
gf100_vm_map
,
.
map_sg
=
gf100_vm_map_sg
,
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/gm20b.c
浏览文件 @
af3b8d53
...
...
@@ -32,7 +32,6 @@ gm20b_mmu = {
.
pgt_bits
=
27
-
12
,
.
spg_shift
=
12
,
.
lpg_shift
=
17
,
.
create
=
gf100_vm_create
,
.
map_pgt
=
gf100_vm_map_pgt
,
.
map
=
gf100_vm_map
,
.
map_sg
=
gf100_vm_map_sg
,
...
...
@@ -48,7 +47,6 @@ gm20b_mmu_fixed = {
.
pgt_bits
=
27
-
12
,
.
spg_shift
=
12
,
.
lpg_shift
=
17
,
.
create
=
gf100_vm_create
,
.
map_pgt
=
gf100_vm_map_pgt
,
.
map
=
gf100_vm_map
,
.
map_sg
=
gf100_vm_map_sg
,
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/nv50.c
浏览文件 @
af3b8d53
...
...
@@ -200,16 +200,6 @@ nv50_vm_flush(struct nvkm_vm *vm)
mutex_unlock
(
&
subdev
->
mutex
);
}
int
nv50_vm_create
(
struct
nvkm_mmu
*
mmu
,
u64
offset
,
u64
length
,
u64
mm_offset
,
struct
lock_class_key
*
key
,
struct
nvkm_vm
**
pvm
)
{
u32
block
=
(
1
<<
(
mmu
->
func
->
pgt_bits
+
12
));
if
(
block
>
length
)
block
=
length
;
return
nvkm_vm_create
(
mmu
,
offset
,
length
,
mm_offset
,
block
,
key
,
pvm
);
}
static
const
struct
nvkm_mmu_func
nv50_mmu
=
{
.
limit
=
(
1ULL
<<
40
),
...
...
@@ -217,7 +207,6 @@ nv50_mmu = {
.
pgt_bits
=
29
-
12
,
.
spg_shift
=
12
,
.
lpg_shift
=
16
,
.
create
=
nv50_vm_create
,
.
map_pgt
=
nv50_vm_map_pgt
,
.
map
=
nv50_vm_map
,
.
map_sg
=
nv50_vm_map_sg
,
...
...
drivers/gpu/drm/nouveau/nvkm/subdev/mmu/priv.h
浏览文件 @
af3b8d53
...
...
@@ -18,9 +18,6 @@ struct nvkm_mmu_func {
u8
spg_shift
;
u8
lpg_shift
;
int
(
*
create
)(
struct
nvkm_mmu
*
,
u64
offset
,
u64
length
,
u64
mm_offset
,
struct
lock_class_key
*
,
struct
nvkm_vm
**
);
void
(
*
map_pgt
)(
struct
nvkm_gpuobj
*
pgd
,
u32
pde
,
struct
nvkm_memory
*
pgt
[
2
]);
void
(
*
map
)(
struct
nvkm_vma
*
,
struct
nvkm_memory
*
,
...
...
@@ -42,13 +39,8 @@ struct nvkm_mmu_func {
}
vmm
;
};
int
nvkm_vm_create
(
struct
nvkm_mmu
*
,
u64
,
u64
,
u64
,
u32
,
struct
lock_class_key
*
,
struct
nvkm_vm
**
);
extern
const
struct
nvkm_mmu_func
nv04_mmu
;
int
nv50_vm_create
(
struct
nvkm_mmu
*
,
u64
,
u64
,
u64
,
struct
lock_class_key
*
,
struct
nvkm_vm
**
);
void
nv50_vm_map_pgt
(
struct
nvkm_gpuobj
*
,
u32
,
struct
nvkm_memory
**
);
void
nv50_vm_map
(
struct
nvkm_vma
*
,
struct
nvkm_memory
*
,
struct
nvkm_mem
*
,
u32
,
u32
,
u64
,
u64
);
...
...
@@ -57,8 +49,6 @@ void nv50_vm_map_sg(struct nvkm_vma *, struct nvkm_memory *, struct nvkm_mem *,
void
nv50_vm_unmap
(
struct
nvkm_vma
*
,
struct
nvkm_memory
*
,
u32
,
u32
);
void
nv50_vm_flush
(
struct
nvkm_vm
*
);
int
gf100_vm_create
(
struct
nvkm_mmu
*
,
u64
,
u64
,
u64
,
struct
lock_class_key
*
,
struct
nvkm_vm
**
);
void
gf100_vm_map_pgt
(
struct
nvkm_gpuobj
*
,
u32
,
struct
nvkm_memory
**
);
void
gf100_vm_map
(
struct
nvkm_vma
*
,
struct
nvkm_memory
*
,
struct
nvkm_mem
*
,
u32
,
u32
,
u64
,
u64
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录