Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
c63834e1
Commit
c63834e1
authored
Jan 08, 2010
by
Ben Skeggs
Committed by
Dave Airlie
Jan 11, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau: initialise DMA tracking parameters earlier
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
400f14ac
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
drivers/gpu/drm/nouveau/nouveau_channel.c
drivers/gpu/drm/nouveau/nouveau_channel.c
+2
-0
drivers/gpu/drm/nouveau/nouveau_dma.c
drivers/gpu/drm/nouveau/nouveau_dma.c
+9
-6
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_drv.h
+1
-0
No files found.
drivers/gpu/drm/nouveau/nouveau_channel.c
View file @
c63834e1
...
...
@@ -158,6 +158,8 @@ nouveau_channel_alloc(struct drm_device *dev, struct nouveau_channel **chan_ret,
return
ret
;
}
nouveau_dma_pre_init
(
chan
);
/* Locate channel's user control regs */
if
(
dev_priv
->
card_type
<
NV_40
)
user
=
NV03_USER
(
channel
);
...
...
drivers/gpu/drm/nouveau/nouveau_dma.c
View file @
c63834e1
...
...
@@ -29,6 +29,15 @@
#include "nouveau_drv.h"
#include "nouveau_dma.h"
void
nouveau_dma_pre_init
(
struct
nouveau_channel
*
chan
)
{
chan
->
dma
.
max
=
(
chan
->
pushbuf_bo
->
bo
.
mem
.
size
>>
2
)
-
2
;
chan
->
dma
.
put
=
0
;
chan
->
dma
.
cur
=
chan
->
dma
.
put
;
chan
->
dma
.
free
=
chan
->
dma
.
max
-
chan
->
dma
.
cur
;
}
int
nouveau_dma_init
(
struct
nouveau_channel
*
chan
)
{
...
...
@@ -74,12 +83,6 @@ nouveau_dma_init(struct nouveau_channel *chan)
return
ret
;
}
/* Initialise DMA vars */
chan
->
dma
.
max
=
(
chan
->
pushbuf_bo
->
bo
.
mem
.
size
>>
2
)
-
2
;
chan
->
dma
.
put
=
0
;
chan
->
dma
.
cur
=
chan
->
dma
.
put
;
chan
->
dma
.
free
=
chan
->
dma
.
max
-
chan
->
dma
.
cur
;
/* Insert NOPS for NOUVEAU_DMA_SKIPS */
ret
=
RING_SPACE
(
chan
,
NOUVEAU_DMA_SKIPS
);
if
(
ret
)
...
...
drivers/gpu/drm/nouveau/nouveau_drv.h
View file @
c63834e1
...
...
@@ -837,6 +837,7 @@ nouveau_debugfs_channel_fini(struct nouveau_channel *chan)
#endif
/* nouveau_dma.c */
extern
void
nouveau_dma_pre_init
(
struct
nouveau_channel
*
);
extern
int
nouveau_dma_init
(
struct
nouveau_channel
*
);
extern
int
nouveau_dma_wait
(
struct
nouveau_channel
*
,
int
size
);
...
...
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