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
6dcee40a
Commit
6dcee40a
authored
Oct 11, 2013
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/mc: have single entry and exit points to the interrupt handler
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
cfc2f263
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
18 deletions
+19
-18
drivers/gpu/drm/nouveau/core/subdev/mc/base.c
drivers/gpu/drm/nouveau/core/subdev/mc/base.c
+19
-18
No files found.
drivers/gpu/drm/nouveau/core/subdev/mc/base.c
View file @
6dcee40a
...
...
@@ -31,29 +31,30 @@ nouveau_mc_intr(int irq, void *arg)
struct
nouveau_mc
*
pmc
=
arg
;
const
struct
nouveau_mc_intr
*
map
=
pmc
->
intr_map
;
struct
nouveau_subdev
*
unit
;
u32
stat
,
intr
;
u32
intr
,
stat
;
intr
=
stat
=
nv_rd32
(
pmc
,
0x000100
);
if
(
intr
==
0xffffffff
)
return
IRQ_NONE
;
while
(
stat
&&
map
->
stat
)
{
if
(
stat
&
map
->
stat
)
{
intr
=
nv_rd32
(
pmc
,
0x000100
);
if
(
intr
==
0xffffffff
)
/* likely fallen off the bus */
intr
=
0x00000000
;
if
((
stat
=
intr
)
!=
0
)
{
while
(
map
->
stat
)
{
if
(
intr
&
map
->
stat
)
{
unit
=
nouveau_subdev
(
pmc
,
map
->
unit
);
if
(
unit
&&
unit
->
intr
)
unit
->
intr
(
unit
);
intr
&=
~
map
->
stat
;
stat
&=
~
map
->
stat
;
}
map
++
;
}
if
(
pmc
->
use_msi
)
nv_wr08
(
pmc
,
0x088068
,
0xff
);
if
(
intr
)
{
if
(
stat
)
nv_error
(
pmc
,
"unknown intr 0x%08x
\n
"
,
stat
);
}
return
stat
?
IRQ_HANDLED
:
IRQ_NONE
;
return
intr
?
IRQ_HANDLED
:
IRQ_NONE
;
}
int
...
...
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