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
c354080d
Commit
c354080d
authored
Aug 10, 2014
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nv50/disp: shhh compiler
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
d6bd3803
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/gpu/drm/nouveau/core/engine/disp/nv50.c
drivers/gpu/drm/nouveau/core/engine/disp/nv50.c
+4
-4
No files found.
drivers/gpu/drm/nouveau/core/engine/disp/nv50.c
View file @
c354080d
...
...
@@ -1574,7 +1574,7 @@ nv50_disp_intr_unk20_2_dp(struct nv50_disp_priv *priv,
int
TU
,
VTUi
,
VTUf
,
VTUa
;
u64
link_data_rate
,
link_ratio
,
unk
;
u32
best_diff
=
64
*
symbol
;
u32
link_nr
,
link_bw
,
bits
,
r
;
u32
link_nr
,
link_bw
,
bits
;
/* calculate packed data rate for each lane */
if
(
dpctrl
>
0x00030000
)
link_nr
=
4
;
...
...
@@ -1594,7 +1594,7 @@ nv50_disp_intr_unk20_2_dp(struct nv50_disp_priv *priv,
/* calculate ratio of packed data rate to link symbol rate */
link_ratio
=
link_data_rate
*
symbol
;
r
=
do_div
(
link_ratio
,
link_bw
);
do_div
(
link_ratio
,
link_bw
);
for
(
TU
=
64
;
TU
>=
32
;
TU
--
)
{
/* calculate average number of valid symbols in each TU */
...
...
@@ -1655,8 +1655,8 @@ nv50_disp_intr_unk20_2_dp(struct nv50_disp_priv *priv,
/* XXX close to vbios numbers, but not right */
unk
=
(
symbol
-
link_ratio
)
*
bestTU
;
unk
*=
link_ratio
;
r
=
do_div
(
unk
,
symbol
);
r
=
do_div
(
unk
,
symbol
);
do_div
(
unk
,
symbol
);
do_div
(
unk
,
symbol
);
unk
+=
6
;
nv_mask
(
priv
,
0x61c10c
+
loff
,
0x000001fc
,
bestTU
<<
2
);
...
...
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