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
e74cfed5
Commit
e74cfed5
authored
Nov 09, 2010
by
Chris Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "drm/i915/ringbuffer: Ignore failure to setup the ring on Sandybridge"
This reverts commit
629e8941
.
parent
cae5852d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
24 deletions
+8
-24
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.c
+8
-24
No files found.
drivers/gpu/drm/i915/intel_ringbuffer.c
View file @
e74cfed5
...
...
@@ -180,30 +180,14 @@ static int init_ring_common(struct intel_ring_buffer *ring)
if
((
I915_READ_CTL
(
ring
)
&
RING_VALID
)
==
0
||
I915_READ_START
(
ring
)
!=
obj_priv
->
gtt_offset
||
(
I915_READ_HEAD
(
ring
)
&
HEAD_ADDR
)
!=
0
)
{
if
(
IS_GEN6
(
ring
->
dev
)
&&
ring
->
dev
->
pdev
->
revision
<=
8
)
{
/* Early revisions of Sandybridge do not like
* revealing the contents of the ring buffer
* registers whilst idle. Fortunately, the
* auto-reporting mechanism prevents most hangs,
* but this will bite us eventually...
*/
DRM_DEBUG
(
"%s initialization failed "
"ctl %08x head %08x tail %08x start %08x. Ignoring, hope for the best!
\n
"
,
ring
->
name
,
I915_READ_CTL
(
ring
),
I915_READ_HEAD
(
ring
),
I915_READ_TAIL
(
ring
),
I915_READ_START
(
ring
));
}
else
{
DRM_ERROR
(
"%s initialization failed "
"ctl %08x head %08x tail %08x start %08x
\n
"
,
ring
->
name
,
I915_READ_CTL
(
ring
),
I915_READ_HEAD
(
ring
),
I915_READ_TAIL
(
ring
),
I915_READ_START
(
ring
));
return
-
EIO
;
}
DRM_ERROR
(
"%s initialization failed "
"ctl %08x head %08x tail %08x start %08x
\n
"
,
ring
->
name
,
I915_READ_CTL
(
ring
),
I915_READ_HEAD
(
ring
),
I915_READ_TAIL
(
ring
),
I915_READ_START
(
ring
));
return
-
EIO
;
}
if
(
!
drm_core_check_feature
(
ring
->
dev
,
DRIVER_MODESET
))
...
...
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