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
59ef9742
Commit
59ef9742
authored
Aug 12, 2011
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nv40/pm: execute memory reset script from vbios
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
6d6538a0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
0 deletions
+16
-0
drivers/gpu/drm/nouveau/nouveau_bios.c
drivers/gpu/drm/nouveau/nouveau_bios.c
+10
-0
drivers/gpu/drm/nouveau/nouveau_drv.h
drivers/gpu/drm/nouveau/nouveau_drv.h
+1
-0
drivers/gpu/drm/nouveau/nv40_pm.c
drivers/gpu/drm/nouveau/nv40_pm.c
+5
-0
No files found.
drivers/gpu/drm/nouveau/nouveau_bios.c
View file @
59ef9742
...
@@ -6776,6 +6776,16 @@ nouveau_bios_run_init_table(struct drm_device *dev, uint16_t table,
...
@@ -6776,6 +6776,16 @@ nouveau_bios_run_init_table(struct drm_device *dev, uint16_t table,
spin_unlock_bh
(
&
bios
->
lock
);
spin_unlock_bh
(
&
bios
->
lock
);
}
}
void
nouveau_bios_init_exec
(
struct
drm_device
*
dev
,
uint16_t
table
)
{
struct
drm_nouveau_private
*
dev_priv
=
dev
->
dev_private
;
struct
nvbios
*
bios
=
&
dev_priv
->
vbios
;
struct
init_exec
iexec
=
{
true
,
false
};
parse_init_table
(
bios
,
table
,
&
iexec
);
}
static
bool
NVInitVBIOS
(
struct
drm_device
*
dev
)
static
bool
NVInitVBIOS
(
struct
drm_device
*
dev
)
{
{
struct
drm_nouveau_private
*
dev_priv
=
dev
->
dev_private
;
struct
drm_nouveau_private
*
dev_priv
=
dev
->
dev_private
;
...
...
drivers/gpu/drm/nouveau/nouveau_drv.h
View file @
59ef9742
...
@@ -1071,6 +1071,7 @@ extern void nouveau_bios_takedown(struct drm_device *dev);
...
@@ -1071,6 +1071,7 @@ extern void nouveau_bios_takedown(struct drm_device *dev);
extern
int
nouveau_run_vbios_init
(
struct
drm_device
*
);
extern
int
nouveau_run_vbios_init
(
struct
drm_device
*
);
extern
void
nouveau_bios_run_init_table
(
struct
drm_device
*
,
uint16_t
table
,
extern
void
nouveau_bios_run_init_table
(
struct
drm_device
*
,
uint16_t
table
,
struct
dcb_entry
*
,
int
crtc
);
struct
dcb_entry
*
,
int
crtc
);
extern
void
nouveau_bios_init_exec
(
struct
drm_device
*
,
uint16_t
table
);
extern
struct
dcb_gpio_entry
*
nouveau_bios_gpio_entry
(
struct
drm_device
*
,
extern
struct
dcb_gpio_entry
*
nouveau_bios_gpio_entry
(
struct
drm_device
*
,
enum
dcb_gpio_tag
);
enum
dcb_gpio_tag
);
extern
struct
dcb_connector_table_entry
*
extern
struct
dcb_connector_table_entry
*
...
...
drivers/gpu/drm/nouveau/nv40_pm.c
View file @
59ef9742
...
@@ -221,6 +221,7 @@ nv40_pm_clocks_set(struct drm_device *dev, void *pre_state)
...
@@ -221,6 +221,7 @@ nv40_pm_clocks_set(struct drm_device *dev, void *pre_state)
struct
drm_nouveau_private
*
dev_priv
=
dev
->
dev_private
;
struct
drm_nouveau_private
*
dev_priv
=
dev
->
dev_private
;
struct
nv40_pm_state
*
info
=
pre_state
;
struct
nv40_pm_state
*
info
=
pre_state
;
unsigned
long
flags
;
unsigned
long
flags
;
struct
bit_entry
M
;
u32
crtc_mask
=
0
;
u32
crtc_mask
=
0
;
u8
sr1
[
2
];
u8
sr1
[
2
];
int
i
;
int
i
;
...
@@ -310,6 +311,10 @@ nv40_pm_clocks_set(struct drm_device *dev, void *pre_state)
...
@@ -310,6 +311,10 @@ nv40_pm_clocks_set(struct drm_device *dev, void *pre_state)
nv_mask
(
dev
,
0x100210
,
0x80000000
,
0x80000000
);
nv_mask
(
dev
,
0x100210
,
0x80000000
,
0x80000000
);
udelay
(
100
);
udelay
(
100
);
/* execute memory reset script from vbios */
if
(
!
bit_table
(
dev
,
'M'
,
&
M
))
nouveau_bios_init_exec
(
dev
,
ROM16
(
M
.
data
[
0
]));
/* make sure we're in vblank (hopefully the same one as before), and
/* make sure we're in vblank (hopefully the same one as before), and
* then re-enable crtc memory access
* then re-enable crtc memory access
*/
*/
...
...
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