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
a779e5ab
Commit
a779e5ab
authored
Jan 09, 2011
by
Chris Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/i915: Record AGP memory type upon error
Signed-off-by:
Chris Wilson
<
chris@chris-wilson.co.uk
>
parent
0a58705b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
4 deletions
+16
-4
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_debugfs.c
+12
-2
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_drv.h
+3
-2
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/i915_irq.c
+1
-0
No files found.
drivers/gpu/drm/i915/i915_debugfs.c
View file @
a779e5ab
...
...
@@ -624,6 +624,15 @@ static const char *ring_str(int ring)
}
}
static
const
char
*
agp_type_str
(
int
type
)
{
switch
(
type
)
{
case
0
:
return
" uncached"
;
case
1
:
return
" snooped"
;
default:
return
""
;
}
}
static
const
char
*
pin_flag
(
int
pinned
)
{
if
(
pinned
>
0
)
...
...
@@ -662,7 +671,7 @@ static void print_error_buffers(struct seq_file *m,
seq_printf
(
m
,
"%s [%d]:
\n
"
,
name
,
count
);
while
(
count
--
)
{
seq_printf
(
m
,
" %08x %8zd %04x %04x %08x%s%s%s%s%s"
,
seq_printf
(
m
,
" %08x %8zd %04x %04x %08x%s%s%s%s%s
%s
"
,
err
->
gtt_offset
,
err
->
size
,
err
->
read_domains
,
...
...
@@ -672,7 +681,8 @@ static void print_error_buffers(struct seq_file *m,
tiling_flag
(
err
->
tiling
),
dirty_flag
(
err
->
dirty
),
purgeable_flag
(
err
->
purgeable
),
ring_str
(
err
->
ring
));
ring_str
(
err
->
ring
),
agp_type_str
(
err
->
agp_type
));
if
(
err
->
name
)
seq_printf
(
m
,
" (name: %d)"
,
err
->
name
);
...
...
drivers/gpu/drm/i915/i915_drv.h
View file @
a779e5ab
...
...
@@ -174,18 +174,19 @@ struct drm_i915_error_state {
u32
*
pages
[
0
];
}
*
ringbuffer
,
*
batchbuffer
[
I915_NUM_RINGS
];
struct
drm_i915_error_buffer
{
size_t
size
;
u32
size
;
u32
name
;
u32
seqno
;
u32
gtt_offset
;
u32
read_domains
;
u32
write_domain
;
u32
fence_reg
;
s32
fence_reg
:
5
;
s32
pinned
:
2
;
u32
tiling
:
2
;
u32
dirty
:
1
;
u32
purgeable
:
1
;
u32
ring
:
4
;
u32
agp_type
:
1
;
}
*
active_bo
,
*
pinned_bo
;
u32
active_bo_count
,
pinned_bo_count
;
struct
intel_overlay_error_state
*
overlay
;
...
...
drivers/gpu/drm/i915/i915_irq.c
View file @
a779e5ab
...
...
@@ -665,6 +665,7 @@ static u32 capture_bo_list(struct drm_i915_error_buffer *err,
err
->
dirty
=
obj
->
dirty
;
err
->
purgeable
=
obj
->
madv
!=
I915_MADV_WILLNEED
;
err
->
ring
=
obj
->
ring
?
obj
->
ring
->
id
:
0
;
err
->
agp_type
=
obj
->
agp_type
==
AGP_USER_CACHED_MEMORY
;
if
(
++
i
==
count
)
break
;
...
...
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