Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
a3a06cb6
Commit
a3a06cb6
authored
Jan 08, 2010
by
Dave Airlie
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote branch 'korg/drm-core-next' into drm-testing
parents
a81406b4
7751b8cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
6 deletions
+27
-6
drivers/gpu/drm/drm_crtc_helper.c
drivers/gpu/drm/drm_crtc_helper.c
+23
-1
drivers/gpu/drm/drm_fb_helper.c
drivers/gpu/drm/drm_fb_helper.c
+4
-5
No files found.
drivers/gpu/drm/drm_crtc_helper.c
View file @
a3a06cb6
...
@@ -216,7 +216,7 @@ bool drm_helper_crtc_in_use(struct drm_crtc *crtc)
...
@@ -216,7 +216,7 @@ bool drm_helper_crtc_in_use(struct drm_crtc *crtc)
EXPORT_SYMBOL
(
drm_helper_crtc_in_use
);
EXPORT_SYMBOL
(
drm_helper_crtc_in_use
);
/**
/**
* drm_disable_unused_functions - disable unused objects
* drm_
helper_
disable_unused_functions - disable unused objects
* @dev: DRM device
* @dev: DRM device
*
*
* LOCKING:
* LOCKING:
...
@@ -1162,6 +1162,9 @@ EXPORT_SYMBOL(drm_helper_mode_fill_fb_struct);
...
@@ -1162,6 +1162,9 @@ EXPORT_SYMBOL(drm_helper_mode_fill_fb_struct);
int
drm_helper_resume_force_mode
(
struct
drm_device
*
dev
)
int
drm_helper_resume_force_mode
(
struct
drm_device
*
dev
)
{
{
struct
drm_crtc
*
crtc
;
struct
drm_crtc
*
crtc
;
struct
drm_encoder
*
encoder
;
struct
drm_encoder_helper_funcs
*
encoder_funcs
;
struct
drm_crtc_helper_funcs
*
crtc_funcs
;
int
ret
;
int
ret
;
list_for_each_entry
(
crtc
,
&
dev
->
mode_config
.
crtc_list
,
head
)
{
list_for_each_entry
(
crtc
,
&
dev
->
mode_config
.
crtc_list
,
head
)
{
...
@@ -1174,6 +1177,25 @@ int drm_helper_resume_force_mode(struct drm_device *dev)
...
@@ -1174,6 +1177,25 @@ int drm_helper_resume_force_mode(struct drm_device *dev)
if
(
ret
==
false
)
if
(
ret
==
false
)
DRM_ERROR
(
"failed to set mode on crtc %p
\n
"
,
crtc
);
DRM_ERROR
(
"failed to set mode on crtc %p
\n
"
,
crtc
);
/* Turn off outputs that were already powered off */
if
(
drm_helper_choose_crtc_dpms
(
crtc
))
{
list_for_each_entry
(
encoder
,
&
dev
->
mode_config
.
encoder_list
,
head
)
{
if
(
encoder
->
crtc
!=
crtc
)
continue
;
encoder_funcs
=
encoder
->
helper_private
;
if
(
encoder_funcs
->
dpms
)
(
*
encoder_funcs
->
dpms
)
(
encoder
,
drm_helper_choose_encoder_dpms
(
encoder
));
crtc_funcs
=
crtc
->
helper_private
;
if
(
crtc_funcs
->
dpms
)
(
*
crtc_funcs
->
dpms
)
(
crtc
,
drm_helper_choose_crtc_dpms
(
crtc
));
}
}
}
}
/* disable the unused connectors while restoring the modesetting */
/* disable the unused connectors while restoring the modesetting */
drm_helper_disable_unused_functions
(
dev
);
drm_helper_disable_unused_functions
(
dev
);
...
...
drivers/gpu/drm/drm_fb_helper.c
View file @
a3a06cb6
...
@@ -606,11 +606,10 @@ int drm_fb_helper_check_var(struct fb_var_screeninfo *var,
...
@@ -606,11 +606,10 @@ int drm_fb_helper_check_var(struct fb_var_screeninfo *var,
return
-
EINVAL
;
return
-
EINVAL
;
/* Need to resize the fb object !!! */
/* Need to resize the fb object !!! */
if
(
var
->
xres
>
fb
->
width
||
var
->
yres
>
fb
->
height
)
{
if
(
var
->
bits_per_pixel
>
fb
->
bits_per_pixel
||
var
->
xres
>
fb
->
width
||
var
->
yres
>
fb
->
height
)
{
DRM_ERROR
(
"Requested width/height is greater than current fb "
DRM_DEBUG
(
"fb userspace requested width/height/bpp is greater than current fb "
"object %dx%d > %dx%d
\n
"
,
var
->
xres
,
var
->
yres
,
"object %dx%d-%d > %dx%d-%d
\n
"
,
var
->
xres
,
var
->
yres
,
var
->
bits_per_pixel
,
fb
->
width
,
fb
->
height
);
fb
->
width
,
fb
->
height
,
fb
->
bits_per_pixel
);
DRM_ERROR
(
"Need resizing code.
\n
"
);
return
-
EINVAL
;
return
-
EINVAL
;
}
}
...
...
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