Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
9100468d
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9100468d
编写于
10月 15, 2010
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau: pass gpuobj alignment request down into backing allocator
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
0541324a
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
14 addition
and
14 deletion
+14
-14
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_drv.h
+4
-4
drivers/gpu/drm/nouveau/nouveau_object.c
drivers/gpu/drm/nouveau/nouveau_object.c
+1
-1
drivers/gpu/drm/nouveau/nv04_instmem.c
drivers/gpu/drm/nouveau/nv04_instmem.c
+1
-1
drivers/gpu/drm/nouveau/nv50_instmem.c
drivers/gpu/drm/nouveau/nv50_instmem.c
+5
-5
drivers/gpu/drm/nouveau/nvc0_instmem.c
drivers/gpu/drm/nouveau/nvc0_instmem.c
+3
-3
未找到文件。
drivers/gpu/drm/nouveau/nouveau_drv.h
浏览文件 @
9100468d
...
...
@@ -265,7 +265,7 @@ struct nouveau_instmem_engine {
void
(
*
resume
)(
struct
drm_device
*
dev
);
int
(
*
populate
)(
struct
drm_device
*
,
struct
nouveau_gpuobj
*
,
u
int32_t
*
size
);
u
32
*
size
,
u32
align
);
void
(
*
clear
)(
struct
drm_device
*
,
struct
nouveau_gpuobj
*
);
int
(
*
bind
)(
struct
drm_device
*
,
struct
nouveau_gpuobj
*
);
int
(
*
unbind
)(
struct
drm_device
*
,
struct
nouveau_gpuobj
*
);
...
...
@@ -1121,7 +1121,7 @@ extern void nv04_instmem_takedown(struct drm_device *);
extern
int
nv04_instmem_suspend
(
struct
drm_device
*
);
extern
void
nv04_instmem_resume
(
struct
drm_device
*
);
extern
int
nv04_instmem_populate
(
struct
drm_device
*
,
struct
nouveau_gpuobj
*
,
u
int32_t
*
size
);
u
32
*
size
,
u32
align
);
extern
void
nv04_instmem_clear
(
struct
drm_device
*
,
struct
nouveau_gpuobj
*
);
extern
int
nv04_instmem_bind
(
struct
drm_device
*
,
struct
nouveau_gpuobj
*
);
extern
int
nv04_instmem_unbind
(
struct
drm_device
*
,
struct
nouveau_gpuobj
*
);
...
...
@@ -1133,7 +1133,7 @@ extern void nv50_instmem_takedown(struct drm_device *);
extern
int
nv50_instmem_suspend
(
struct
drm_device
*
);
extern
void
nv50_instmem_resume
(
struct
drm_device
*
);
extern
int
nv50_instmem_populate
(
struct
drm_device
*
,
struct
nouveau_gpuobj
*
,
u
int32_t
*
size
);
u
32
*
size
,
u32
align
);
extern
void
nv50_instmem_clear
(
struct
drm_device
*
,
struct
nouveau_gpuobj
*
);
extern
int
nv50_instmem_bind
(
struct
drm_device
*
,
struct
nouveau_gpuobj
*
);
extern
int
nv50_instmem_unbind
(
struct
drm_device
*
,
struct
nouveau_gpuobj
*
);
...
...
@@ -1147,7 +1147,7 @@ extern void nvc0_instmem_takedown(struct drm_device *);
extern
int
nvc0_instmem_suspend
(
struct
drm_device
*
);
extern
void
nvc0_instmem_resume
(
struct
drm_device
*
);
extern
int
nvc0_instmem_populate
(
struct
drm_device
*
,
struct
nouveau_gpuobj
*
,
u
int32_t
*
size
);
u
32
*
size
,
u32
align
);
extern
void
nvc0_instmem_clear
(
struct
drm_device
*
,
struct
nouveau_gpuobj
*
);
extern
int
nvc0_instmem_bind
(
struct
drm_device
*
,
struct
nouveau_gpuobj
*
);
extern
int
nvc0_instmem_unbind
(
struct
drm_device
*
,
struct
nouveau_gpuobj
*
);
...
...
drivers/gpu/drm/nouveau/nouveau_object.c
浏览文件 @
9100468d
...
...
@@ -112,7 +112,7 @@ nouveau_gpuobj_new(struct drm_device *dev, struct nouveau_channel *chan,
NV_DEBUG
(
dev
,
"global heap
\n
"
);
/* allocate backing pages, sets vinst */
ret
=
engine
->
instmem
.
populate
(
dev
,
gpuobj
,
&
size
);
ret
=
engine
->
instmem
.
populate
(
dev
,
gpuobj
,
&
size
,
align
);
if
(
ret
)
{
nouveau_gpuobj_ref
(
NULL
,
&
gpuobj
);
return
ret
;
...
...
drivers/gpu/drm/nouveau/nv04_instmem.c
浏览文件 @
9100468d
...
...
@@ -99,7 +99,7 @@ nv04_instmem_takedown(struct drm_device *dev)
int
nv04_instmem_populate
(
struct
drm_device
*
dev
,
struct
nouveau_gpuobj
*
gpuobj
,
u
int32_t
*
sz
)
u
32
*
size
,
u32
align
)
{
return
0
;
}
...
...
drivers/gpu/drm/nouveau/nv50_instmem.c
浏览文件 @
9100468d
...
...
@@ -322,19 +322,19 @@ nv50_instmem_resume(struct drm_device *dev)
int
nv50_instmem_populate
(
struct
drm_device
*
dev
,
struct
nouveau_gpuobj
*
gpuobj
,
u
int32_t
*
sz
)
u
32
*
size
,
u32
align
)
{
int
ret
;
if
(
gpuobj
->
im_backing
)
return
-
EINVAL
;
*
s
z
=
ALIGN
(
*
sz
,
4096
);
if
(
*
s
z
==
0
)
*
s
ize
=
ALIGN
(
*
size
,
4096
);
if
(
*
s
ize
==
0
)
return
-
EINVAL
;
ret
=
nouveau_bo_new
(
dev
,
NULL
,
*
s
z
,
0
,
TTM_PL_FLAG_VRAM
,
0
,
0x0000
,
true
,
false
,
&
gpuobj
->
im_backing
);
ret
=
nouveau_bo_new
(
dev
,
NULL
,
*
s
ize
,
align
,
TTM_PL_FLAG_VRAM
,
0
,
0x0000
,
true
,
false
,
&
gpuobj
->
im_backing
);
if
(
ret
)
{
NV_ERROR
(
dev
,
"error getting PRAMIN backing pages: %d
\n
"
,
ret
);
return
ret
;
...
...
drivers/gpu/drm/nouveau/nvc0_instmem.c
浏览文件 @
9100468d
...
...
@@ -28,7 +28,7 @@
int
nvc0_instmem_populate
(
struct
drm_device
*
dev
,
struct
nouveau_gpuobj
*
gpuobj
,
u
int32_t
*
size
)
u
32
*
size
,
u32
align
)
{
int
ret
;
...
...
@@ -36,8 +36,8 @@ nvc0_instmem_populate(struct drm_device *dev, struct nouveau_gpuobj *gpuobj,
if
(
*
size
==
0
)
return
-
EINVAL
;
ret
=
nouveau_bo_new
(
dev
,
NULL
,
*
size
,
0
,
TTM_PL_FLAG_VRAM
,
0
,
0x0000
,
true
,
false
,
&
gpuobj
->
im_backing
);
ret
=
nouveau_bo_new
(
dev
,
NULL
,
*
size
,
align
,
TTM_PL_FLAG_VRAM
,
0
,
0x0000
,
true
,
false
,
&
gpuobj
->
im_backing
);
if
(
ret
)
{
NV_ERROR
(
dev
,
"error getting PRAMIN backing pages: %d
\n
"
,
ret
);
return
ret
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录