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
270a5747
Commit
270a5747
authored
Jul 05, 2011
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nvd0/disp: skeletal handling of modeset interrupts
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
83fc083c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
0 deletions
+60
-0
drivers/gpu/drm/nouveau/nvd0_display.c
drivers/gpu/drm/nouveau/nvd0_display.c
+60
-0
No files found.
drivers/gpu/drm/nouveau/nvd0_display.c
View file @
270a5747
...
...
@@ -268,6 +268,42 @@ nvd0_sor_create(struct drm_connector *connector, struct dcb_entry *dcbe)
/******************************************************************************
* IRQ
*****************************************************************************/
static
void
nvd0_display_unk1_handler
(
struct
drm_device
*
dev
)
{
u32
unk0
=
nv_rd32
(
dev
,
0x6101d0
);
NV_INFO
(
dev
,
"PDISP: unk1 0x%08x
\n
"
,
unk0
);
nv_wr32
(
dev
,
0x6101d4
,
0x00000000
);
nv_wr32
(
dev
,
0x6109d4
,
0x00000000
);
nv_wr32
(
dev
,
0x6101d0
,
0x80000000
);
}
static
void
nvd0_display_unk2_handler
(
struct
drm_device
*
dev
)
{
u32
unk0
=
nv_rd32
(
dev
,
0x6101d0
);
NV_INFO
(
dev
,
"PDISP: unk2 0x%08x
\n
"
,
unk0
);
nv_wr32
(
dev
,
0x6101d4
,
0x00000000
);
nv_wr32
(
dev
,
0x6109d4
,
0x00000000
);
nv_wr32
(
dev
,
0x6101d0
,
0x80000000
);
}
static
void
nvd0_display_unk4_handler
(
struct
drm_device
*
dev
)
{
u32
unk0
=
nv_rd32
(
dev
,
0x6101d0
);
NV_INFO
(
dev
,
"PDISP: unk4 0x%08x
\n
"
,
unk0
);
nv_wr32
(
dev
,
0x6101d4
,
0x00000000
);
nv_wr32
(
dev
,
0x6109d4
,
0x00000000
);
nv_wr32
(
dev
,
0x6101d0
,
0x80000000
);
}
static
void
nvd0_display_intr
(
struct
drm_device
*
dev
)
{
...
...
@@ -291,6 +327,29 @@ nvd0_display_intr(struct drm_device *dev)
intr
&=
~
0x00000002
;
}
if
(
intr
&
0x00100000
)
{
u32
stat
=
nv_rd32
(
dev
,
0x6100ac
);
if
(
stat
&
0x00000007
)
{
nv_wr32
(
dev
,
0x6100ac
,
(
stat
&
0x00000007
));
if
(
stat
&
0x00000001
)
nvd0_display_unk1_handler
(
dev
);
if
(
stat
&
0x00000002
)
nvd0_display_unk2_handler
(
dev
);
if
(
stat
&
0x00000004
)
nvd0_display_unk4_handler
(
dev
);
stat
&=
~
0x00000007
;
}
if
(
stat
)
{
NV_INFO
(
dev
,
"PDISP: unknown intr24 0x%08x
\n
"
,
stat
);
nv_wr32
(
dev
,
0x6100ac
,
stat
);
}
intr
&=
~
0x00100000
;
}
if
(
intr
&
0x01000000
)
{
u32
stat
=
nv_rd32
(
dev
,
0x6100bc
);
nv_wr32
(
dev
,
0x6100bc
,
stat
);
...
...
@@ -354,6 +413,7 @@ nvd0_display_init(struct drm_device *dev)
}
nv_wr32
(
dev
,
0x610010
,
(
disp
->
mem
->
vinst
>>
8
)
|
9
);
nv_mask
(
dev
,
0x6100b0
,
0x00000307
,
0x00000307
);
/* init master */
nv_wr32
(
dev
,
0x610494
,
(
disp
->
evo
[
0
].
handle
>>
8
)
|
3
);
...
...
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