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
Kirill Smelkov
linux
Commits
1772fcc6
Commit
1772fcc6
authored
Nov 09, 2011
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nv50/disp: fix evo for create/init + destroy/fini split
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
cf41d53b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
11 deletions
+13
-11
drivers/gpu/drm/nouveau/nv50_display.c
drivers/gpu/drm/nouveau/nv50_display.c
+9
-1
drivers/gpu/drm/nouveau/nv50_display.h
drivers/gpu/drm/nouveau/nv50_display.h
+2
-0
drivers/gpu/drm/nouveau/nv50_evo.c
drivers/gpu/drm/nouveau/nv50_evo.c
+2
-10
No files found.
drivers/gpu/drm/nouveau/nv50_display.c
View file @
1772fcc6
...
...
@@ -347,7 +347,7 @@ nv50_display_create(struct drm_device *dev)
struct
dcb_table
*
dcb
=
&
dev_priv
->
vbios
.
dcb
;
struct
drm_connector
*
connector
,
*
ct
;
struct
nv50_display
*
priv
;
int
i
;
int
ret
,
i
;
NV_DEBUG_KMS
(
dev
,
"
\n
"
);
...
...
@@ -400,6 +400,13 @@ nv50_display_create(struct drm_device *dev)
tasklet_init
(
&
priv
->
tasklet
,
nv50_display_bh
,
(
unsigned
long
)
dev
);
nouveau_irq_register
(
dev
,
26
,
nv50_display_isr
);
ret
=
nv50_evo_create
(
dev
);
if
(
ret
)
{
nv50_display_destroy
(
dev
);
return
ret
;
}
return
0
;
}
...
...
@@ -410,6 +417,7 @@ nv50_display_destroy(struct drm_device *dev)
NV_DEBUG_KMS
(
dev
,
"
\n
"
);
nv50_evo_destroy
(
dev
);
nouveau_irq_unregister
(
dev
,
26
);
kfree
(
disp
);
}
...
...
drivers/gpu/drm/nouveau/nv50_display.h
View file @
1772fcc6
...
...
@@ -79,6 +79,8 @@ int nv50_display_flip_next(struct drm_crtc *, struct drm_framebuffer *,
struct
nouveau_channel
*
chan
);
void
nv50_display_flip_stop
(
struct
drm_crtc
*
);
int
nv50_evo_create
(
struct
drm_device
*
dev
);
void
nv50_evo_destroy
(
struct
drm_device
*
dev
);
int
nv50_evo_init
(
struct
drm_device
*
dev
);
void
nv50_evo_fini
(
struct
drm_device
*
dev
);
void
nv50_evo_dmaobj_init
(
struct
nouveau_gpuobj
*
,
u32
memtype
,
u64
base
,
...
...
drivers/gpu/drm/nouveau/nv50_evo.c
View file @
1772fcc6
...
...
@@ -218,7 +218,7 @@ nv50_evo_channel_fini(struct nouveau_channel *evo)
}
}
static
void
void
nv50_evo_destroy
(
struct
drm_device
*
dev
)
{
struct
nv50_display
*
disp
=
nv50_display
(
dev
);
...
...
@@ -235,7 +235,7 @@ nv50_evo_destroy(struct drm_device *dev)
nv50_evo_channel_del
(
&
disp
->
master
);
}
static
int
int
nv50_evo_create
(
struct
drm_device
*
dev
)
{
struct
drm_nouveau_private
*
dev_priv
=
dev
->
dev_private
;
...
...
@@ -388,12 +388,6 @@ nv50_evo_init(struct drm_device *dev)
struct
nv50_display
*
disp
=
nv50_display
(
dev
);
int
ret
,
i
;
if
(
!
disp
->
master
)
{
ret
=
nv50_evo_create
(
dev
);
if
(
ret
)
return
ret
;
}
ret
=
nv50_evo_channel_init
(
disp
->
master
);
if
(
ret
)
return
ret
;
...
...
@@ -420,6 +414,4 @@ nv50_evo_fini(struct drm_device *dev)
if
(
disp
->
master
)
nv50_evo_channel_fini
(
disp
->
master
);
nv50_evo_destroy
(
dev
);
}
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