Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
180cc306
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看板
提交
180cc306
编写于
6月 07, 2011
作者:
B
Ben Skeggs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/nouveau: convert bo.mem.start usage to bo.offset
Signed-off-by:
N
Ben Skeggs
<
bskeggs@redhat.com
>
上级
07533ea5
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
10 addition
and
12 deletion
+10
-12
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/nouveau/nouveau_bo.c
+0
-1
drivers/gpu/drm/nouveau/nouveau_channel.c
drivers/gpu/drm/nouveau/nouveau_channel.c
+1
-1
drivers/gpu/drm/nouveau/nouveau_drv.c
drivers/gpu/drm/nouveau/nouveau_drv.c
+1
-1
drivers/gpu/drm/nouveau/nouveau_notifier.c
drivers/gpu/drm/nouveau/nouveau_notifier.c
+1
-1
drivers/gpu/drm/nouveau/nouveau_object.c
drivers/gpu/drm/nouveau/nouveau_object.c
+1
-1
drivers/gpu/drm/nouveau/nv50_crtc.c
drivers/gpu/drm/nouveau/nv50_crtc.c
+3
-3
drivers/gpu/drm/nouveau/nv50_display.c
drivers/gpu/drm/nouveau/nv50_display.c
+1
-1
drivers/gpu/drm/nouveau/nv50_evo.c
drivers/gpu/drm/nouveau/nv50_evo.c
+2
-3
未找到文件。
drivers/gpu/drm/nouveau/nouveau_bo.c
浏览文件 @
180cc306
...
...
@@ -433,7 +433,6 @@ nouveau_bo_init_mem_type(struct ttm_bo_device *bdev, uint32_t type,
TTM_MEMTYPE_FLAG_CMA
;
man
->
available_caching
=
TTM_PL_MASK_CACHING
;
man
->
default_caching
=
TTM_PL_FLAG_CACHED
;
man
->
gpu_offset
=
dev_priv
->
gart_info
.
aper_base
;
break
;
default:
NV_ERROR
(
dev
,
"Unknown GART type: %d
\n
"
,
...
...
drivers/gpu/drm/nouveau/nouveau_channel.c
浏览文件 @
180cc306
...
...
@@ -54,7 +54,7 @@ nouveau_channel_pushbuf_init(struct nouveau_channel *chan)
* buffer resides, userspace can submit its own push buffers from
* anywhere within the same memtype.
*/
chan
->
pushbuf_base
=
chan
->
pushbuf_bo
->
bo
.
mem
.
start
<<
PAGE_SHIFT
;
chan
->
pushbuf_base
=
chan
->
pushbuf_bo
->
bo
.
offset
;
if
(
dev_priv
->
card_type
>=
NV_50
)
{
if
(
dev_priv
->
card_type
<
NV_C0
)
{
ret
=
nouveau_gpuobj_dma_new
(
chan
,
...
...
drivers/gpu/drm/nouveau/nouveau_drv.c
浏览文件 @
180cc306
...
...
@@ -358,7 +358,7 @@ nouveau_pci_resume(struct pci_dev *pdev)
list_for_each_entry
(
crtc
,
&
dev
->
mode_config
.
crtc_list
,
head
)
{
struct
nouveau_crtc
*
nv_crtc
=
nouveau_crtc
(
crtc
);
u32
offset
=
nv_crtc
->
cursor
.
nvbo
->
bo
.
mem
.
start
<<
PAGE_SHIFT
;
u32
offset
=
nv_crtc
->
cursor
.
nvbo
->
bo
.
offset
;
nv_crtc
->
cursor
.
set_offset
(
nv_crtc
,
offset
);
nv_crtc
->
cursor
.
set_pos
(
nv_crtc
,
nv_crtc
->
cursor_saved_x
,
...
...
drivers/gpu/drm/nouveau/nouveau_notifier.c
浏览文件 @
180cc306
...
...
@@ -122,7 +122,7 @@ nouveau_notifier_alloc(struct nouveau_channel *chan, uint32_t handle,
target
=
NV_MEM_TARGET_VRAM
;
else
target
=
NV_MEM_TARGET_GART
;
offset
=
chan
->
notifier_bo
->
bo
.
mem
.
start
<<
PAGE_SHIFT
;
offset
=
chan
->
notifier_bo
->
bo
.
offset
;
}
else
{
target
=
NV_MEM_TARGET_VM
;
offset
=
chan
->
notifier_bo
->
vma
.
offset
;
...
...
drivers/gpu/drm/nouveau/nouveau_object.c
浏览文件 @
180cc306
...
...
@@ -768,7 +768,7 @@ nouveau_gpuobj_channel_init(struct nouveau_channel *chan,
struct
nouveau_gpuobj
*
sem
=
NULL
;
struct
nv50_display_crtc
*
dispc
=
&
nv50_display
(
dev
)
->
crtc
[
i
];
u64
offset
=
dispc
->
sem
.
bo
->
bo
.
mem
.
start
<<
PAGE_SHIFT
;
u64
offset
=
dispc
->
sem
.
bo
->
bo
.
offset
;
ret
=
nouveau_gpuobj_dma_new
(
chan
,
0x3d
,
offset
,
0xfff
,
NV_MEM_ACCESS_RW
,
...
...
drivers/gpu/drm/nouveau/nv50_crtc.c
浏览文件 @
180cc306
...
...
@@ -104,7 +104,7 @@ nv50_crtc_blank(struct nouveau_crtc *nv_crtc, bool blanked)
OUT_RING
(
evo
,
nv_crtc
->
lut
.
depth
==
8
?
NV50_EVO_CRTC_CLUT_MODE_OFF
:
NV50_EVO_CRTC_CLUT_MODE_ON
);
OUT_RING
(
evo
,
(
nv_crtc
->
lut
.
nvbo
->
bo
.
mem
.
start
<<
PAGE_SHIFT
)
>>
8
);
OUT_RING
(
evo
,
nv_crtc
->
lut
.
nvbo
->
bo
.
offset
>>
8
);
if
(
dev_priv
->
chipset
!=
0x50
)
{
BEGIN_RING
(
evo
,
0
,
NV84_EVO_CRTC
(
index
,
CLUT_DMA
),
1
);
OUT_RING
(
evo
,
NvEvoVRAM
);
...
...
@@ -372,7 +372,7 @@ nv50_crtc_cursor_set(struct drm_crtc *crtc, struct drm_file *file_priv,
nouveau_bo_unmap
(
cursor
);
nv_crtc
->
cursor
.
set_offset
(
nv_crtc
,
nv_crtc
->
cursor
.
nvbo
->
bo
.
mem
.
start
<<
PAGE_SHIFT
);
nv_crtc
->
cursor
.
set_offset
(
nv_crtc
,
nv_crtc
->
cursor
.
nvbo
->
bo
.
offset
);
nv_crtc
->
cursor
.
show
(
nv_crtc
,
true
);
out:
...
...
@@ -546,7 +546,7 @@ nv50_crtc_do_mode_set_base(struct drm_crtc *crtc,
}
}
nv_crtc
->
fb
.
offset
=
fb
->
nvbo
->
bo
.
mem
.
start
<<
PAGE_SHIFT
;
nv_crtc
->
fb
.
offset
=
fb
->
nvbo
->
bo
.
offset
;
nv_crtc
->
fb
.
tile_flags
=
nouveau_bo_tile_layout
(
fb
->
nvbo
);
nv_crtc
->
fb
.
cpp
=
drm_fb
->
bits_per_pixel
/
8
;
if
(
!
nv_crtc
->
fb
.
blanked
&&
dev_priv
->
chipset
!=
0x50
)
{
...
...
drivers/gpu/drm/nouveau/nv50_display.c
浏览文件 @
180cc306
...
...
@@ -484,7 +484,7 @@ nv50_display_flip_next(struct drm_crtc *crtc, struct drm_framebuffer *fb,
OUT_RING
(
evo
,
0x00000000
);
OUT_RING
(
evo
,
0x00000000
);
BEGIN_RING
(
evo
,
0
,
0x0800
,
5
);
OUT_RING
(
evo
,
(
nv_fb
->
nvbo
->
bo
.
mem
.
start
<<
PAGE_SHIFT
)
>>
8
);
OUT_RING
(
evo
,
nv_fb
->
nvbo
->
bo
.
offset
>>
8
);
OUT_RING
(
evo
,
0
);
OUT_RING
(
evo
,
(
fb
->
height
<<
16
)
|
fb
->
width
);
OUT_RING
(
evo
,
nv_fb
->
r_pitch
);
...
...
drivers/gpu/drm/nouveau/nv50_evo.c
浏览文件 @
180cc306
...
...
@@ -154,7 +154,7 @@ nv50_evo_channel_init(struct nouveau_channel *evo)
{
struct
drm_device
*
dev
=
evo
->
dev
;
int
id
=
evo
->
id
,
ret
,
i
;
u64
pushbuf
=
evo
->
pushbuf_bo
->
bo
.
mem
.
start
<<
PAGE_SHIFT
;
u64
pushbuf
=
evo
->
pushbuf_bo
->
bo
.
offset
;
u32
tmp
;
tmp
=
nv_rd32
(
dev
,
NV50_PDISPLAY_EVO_CTRL
(
id
));
...
...
@@ -335,13 +335,12 @@ nv50_evo_create(struct drm_device *dev)
ret
=
nouveau_bo_new
(
dev
,
NULL
,
4096
,
0x1000
,
TTM_PL_FLAG_VRAM
,
0
,
0x0000
,
&
dispc
->
sem
.
bo
);
if
(
!
ret
)
{
offset
=
dispc
->
sem
.
bo
->
bo
.
mem
.
start
<<
PAGE_SHIFT
;
ret
=
nouveau_bo_pin
(
dispc
->
sem
.
bo
,
TTM_PL_FLAG_VRAM
);
if
(
!
ret
)
ret
=
nouveau_bo_map
(
dispc
->
sem
.
bo
);
if
(
ret
)
nouveau_bo_ref
(
NULL
,
&
dispc
->
sem
.
bo
);
offset
=
dispc
->
sem
.
bo
->
bo
.
offset
;
}
if
(
ret
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录