Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
07533ea5
Commit
07533ea5
authored
Jun 07, 2011
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau: convert some bo.offset use to vma.offset
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
d2f96666
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
7 deletions
+9
-7
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/nouveau/nouveau_bo.c
+0
-2
drivers/gpu/drm/nouveau/nouveau_channel.c
drivers/gpu/drm/nouveau/nouveau_channel.c
+1
-1
drivers/gpu/drm/nouveau/nouveau_dma.c
drivers/gpu/drm/nouveau/nouveau_dma.c
+1
-1
drivers/gpu/drm/nouveau/nouveau_gem.c
drivers/gpu/drm/nouveau/nouveau_gem.c
+5
-1
drivers/gpu/drm/nouveau/nvc0_fbcon.c
drivers/gpu/drm/nouveau/nvc0_fbcon.c
+2
-2
No files found.
drivers/gpu/drm/nouveau/nouveau_bo.c
View file @
07533ea5
...
@@ -138,8 +138,6 @@ nouveau_bo_new(struct drm_device *dev, struct nouveau_channel *chan,
...
@@ -138,8 +138,6 @@ nouveau_bo_new(struct drm_device *dev, struct nouveau_channel *chan,
}
}
nvbo
->
channel
=
NULL
;
nvbo
->
channel
=
NULL
;
if
(
nvbo
->
vma
.
node
)
nvbo
->
bo
.
offset
=
nvbo
->
vma
.
offset
;
*
pnvbo
=
nvbo
;
*
pnvbo
=
nvbo
;
return
0
;
return
0
;
}
}
...
...
drivers/gpu/drm/nouveau/nouveau_channel.c
View file @
07533ea5
...
@@ -64,7 +64,7 @@ nouveau_channel_pushbuf_init(struct nouveau_channel *chan)
...
@@ -64,7 +64,7 @@ nouveau_channel_pushbuf_init(struct nouveau_channel *chan)
NV_MEM_TARGET_VM
,
NV_MEM_TARGET_VM
,
&
chan
->
pushbuf
);
&
chan
->
pushbuf
);
}
}
chan
->
pushbuf_base
=
chan
->
pushbuf_bo
->
bo
.
offset
;
chan
->
pushbuf_base
=
chan
->
pushbuf_bo
->
vma
.
offset
;
}
else
}
else
if
(
chan
->
pushbuf_bo
->
bo
.
mem
.
mem_type
==
TTM_PL_TT
)
{
if
(
chan
->
pushbuf_bo
->
bo
.
mem
.
mem_type
==
TTM_PL_TT
)
{
ret
=
nouveau_gpuobj_dma_new
(
chan
,
NV_CLASS_DMA_IN_MEMORY
,
0
,
ret
=
nouveau_gpuobj_dma_new
(
chan
,
NV_CLASS_DMA_IN_MEMORY
,
0
,
...
...
drivers/gpu/drm/nouveau/nouveau_dma.c
View file @
07533ea5
...
@@ -167,7 +167,7 @@ nv50_dma_push(struct nouveau_channel *chan, struct nouveau_bo *bo,
...
@@ -167,7 +167,7 @@ nv50_dma_push(struct nouveau_channel *chan, struct nouveau_bo *bo,
int
delta
,
int
length
)
int
delta
,
int
length
)
{
{
struct
nouveau_bo
*
pb
=
chan
->
pushbuf_bo
;
struct
nouveau_bo
*
pb
=
chan
->
pushbuf_bo
;
uint64_t
offset
=
bo
->
bo
.
offset
+
delta
;
uint64_t
offset
=
bo
->
vma
.
offset
+
delta
;
int
ip
=
(
chan
->
dma
.
ib_put
*
2
)
+
chan
->
dma
.
ib_base
;
int
ip
=
(
chan
->
dma
.
ib_put
*
2
)
+
chan
->
dma
.
ib_base
;
BUG_ON
(
chan
->
dma
.
ib_free
<
1
);
BUG_ON
(
chan
->
dma
.
ib_free
<
1
);
...
...
drivers/gpu/drm/nouveau/nouveau_gem.c
View file @
07533ea5
...
@@ -125,6 +125,7 @@ nouveau_gem_new(struct drm_device *dev, int size, int align, uint32_t domain,
...
@@ -125,6 +125,7 @@ nouveau_gem_new(struct drm_device *dev, int size, int align, uint32_t domain,
static
int
static
int
nouveau_gem_info
(
struct
drm_gem_object
*
gem
,
struct
drm_nouveau_gem_info
*
rep
)
nouveau_gem_info
(
struct
drm_gem_object
*
gem
,
struct
drm_nouveau_gem_info
*
rep
)
{
{
struct
drm_nouveau_private
*
dev_priv
=
gem
->
dev
->
dev_private
;
struct
nouveau_bo
*
nvbo
=
nouveau_gem_object
(
gem
);
struct
nouveau_bo
*
nvbo
=
nouveau_gem_object
(
gem
);
if
(
nvbo
->
bo
.
mem
.
mem_type
==
TTM_PL_TT
)
if
(
nvbo
->
bo
.
mem
.
mem_type
==
TTM_PL_TT
)
...
@@ -133,7 +134,10 @@ nouveau_gem_info(struct drm_gem_object *gem, struct drm_nouveau_gem_info *rep)
...
@@ -133,7 +134,10 @@ nouveau_gem_info(struct drm_gem_object *gem, struct drm_nouveau_gem_info *rep)
rep
->
domain
=
NOUVEAU_GEM_DOMAIN_VRAM
;
rep
->
domain
=
NOUVEAU_GEM_DOMAIN_VRAM
;
rep
->
size
=
nvbo
->
bo
.
mem
.
num_pages
<<
PAGE_SHIFT
;
rep
->
size
=
nvbo
->
bo
.
mem
.
num_pages
<<
PAGE_SHIFT
;
if
(
dev_priv
->
card_type
<
NV_50
)
rep
->
offset
=
nvbo
->
bo
.
offset
;
rep
->
offset
=
nvbo
->
bo
.
offset
;
else
rep
->
offset
=
nvbo
->
vma
.
offset
;
rep
->
map_handle
=
nvbo
->
bo
.
addr_space_offset
;
rep
->
map_handle
=
nvbo
->
bo
.
addr_space_offset
;
rep
->
tile_mode
=
nvbo
->
tile_mode
;
rep
->
tile_mode
=
nvbo
->
tile_mode
;
rep
->
tile_flags
=
nvbo
->
tile_flags
;
rep
->
tile_flags
=
nvbo
->
tile_flags
;
...
...
drivers/gpu/drm/nouveau/nvc0_fbcon.c
View file @
07533ea5
...
@@ -203,8 +203,8 @@ nvc0_fbcon_accel_init(struct fb_info *info)
...
@@ -203,8 +203,8 @@ nvc0_fbcon_accel_init(struct fb_info *info)
BEGIN_NVC0
(
chan
,
2
,
NvSub2D
,
0x0000
,
1
);
BEGIN_NVC0
(
chan
,
2
,
NvSub2D
,
0x0000
,
1
);
OUT_RING
(
chan
,
0x0000902d
);
OUT_RING
(
chan
,
0x0000902d
);
BEGIN_NVC0
(
chan
,
2
,
NvSub2D
,
0x0104
,
2
);
BEGIN_NVC0
(
chan
,
2
,
NvSub2D
,
0x0104
,
2
);
OUT_RING
(
chan
,
upper_32_bits
(
chan
->
notifier_bo
->
bo
.
offset
));
OUT_RING
(
chan
,
upper_32_bits
(
chan
->
notifier_bo
->
vma
.
offset
));
OUT_RING
(
chan
,
lower_32_bits
(
chan
->
notifier_bo
->
bo
.
offset
));
OUT_RING
(
chan
,
lower_32_bits
(
chan
->
notifier_bo
->
vma
.
offset
));
BEGIN_NVC0
(
chan
,
2
,
NvSub2D
,
0x0290
,
1
);
BEGIN_NVC0
(
chan
,
2
,
NvSub2D
,
0x0290
,
1
);
OUT_RING
(
chan
,
0
);
OUT_RING
(
chan
,
0
);
BEGIN_NVC0
(
chan
,
2
,
NvSub2D
,
0x0888
,
1
);
BEGIN_NVC0
(
chan
,
2
,
NvSub2D
,
0x0888
,
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment