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
03ce8d9e
Commit
03ce8d9e
authored
Jun 10, 2011
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/pm: some fermi chipsets still use volt 0x30
Fun, fun. Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
da1dc4cf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_drv.h
+1
-0
drivers/gpu/drm/nouveau/nouveau_perf.c
drivers/gpu/drm/nouveau/nouveau_perf.c
+4
-4
drivers/gpu/drm/nouveau/nouveau_volt.c
drivers/gpu/drm/nouveau/nouveau_volt.c
+2
-1
No files found.
drivers/gpu/drm/nouveau/nouveau_drv.h
View file @
03ce8d9e
...
...
@@ -420,6 +420,7 @@ struct nouveau_pm_voltage_level {
struct
nouveau_pm_voltage
{
bool
supported
;
u8
version
;
u8
vid_mask
;
struct
nouveau_pm_voltage_level
*
level
;
...
...
drivers/gpu/drm/nouveau/nouveau_perf.c
View file @
03ce8d9e
...
...
@@ -146,16 +146,16 @@ nouveau_perf_voltage(struct drm_device *dev, struct bit_entry *P,
id
=
perflvl
->
volt_min
;
perflvl
->
volt_min
=
0
;
/*
pre-fermi vbios stores the voltage level directly in th
e
* perflvl entry as a multiple of 10mV
/*
boards using voltage table version <0x40 store the voltag
e
*
level directly in the
perflvl entry as a multiple of 10mV
*/
if
(
dev_priv
->
card_type
<
NV_C
0
)
{
if
(
dev_priv
->
engine
.
pm
.
voltage
.
version
<
0x4
0
)
{
perflvl
->
volt_min
=
id
*
10000
;
perflvl
->
volt_max
=
perflvl
->
volt_min
;
return
;
}
/*
from fermi onward
s, the perflvl stores an index into yet another
/*
on newer one
s, the perflvl stores an index into yet another
* vbios table containing a min/max voltage value for the perflvl
*/
if
(
P
->
version
!=
2
||
P
->
length
<
34
)
{
...
...
drivers/gpu/drm/nouveau/nouveau_volt.c
View file @
03ce8d9e
...
...
@@ -204,7 +204,8 @@ nouveau_volt_init(struct drm_device *dev)
}
/* parse vbios entries into common format */
if
(
volt
[
0
]
<
0x40
)
{
voltage
->
version
=
volt
[
0
];
if
(
voltage
->
version
<
0x40
)
{
voltage
->
nr_level
=
entries
;
voltage
->
level
=
kcalloc
(
entries
,
sizeof
(
*
voltage
->
level
),
GFP_KERNEL
);
...
...
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