Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
igt-gpu-tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
55
Issues
55
List
Boards
Labels
Service Desk
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
drm
igt-gpu-tools
Commits
cd812a4e
Commit
cd812a4e
authored
Apr 26, 2015
by
Chris Wilson
🤔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
igt/gem_pwrite: Delete unused mmap(wc) for the big CPU test
Signed-off-by:
Chris Wilson
<
chris@chris-wilson.co.uk
>
parent
49bcdc84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
tests/gem_pwrite.c
tests/gem_pwrite.c
+0
-3
No files found.
tests/gem_pwrite.c
View file @
cd812a4e
...
...
@@ -84,7 +84,6 @@ static const char *bytes_per_sec(char *buf, double v)
static
void
test_big_cpu
(
int
fd
,
int
scale
)
{
uint64_t
offset
,
size
;
uint32_t
*
ptr
;
uint32_t
handle
;
size
=
scale
*
gem_aperture_size
(
fd
)
>>
2
;
...
...
@@ -95,7 +94,6 @@ static void test_big_cpu(int fd, int scale)
handle
=
gem_create
(
fd
,
size
);
gem_set_domain
(
fd
,
handle
,
I915_GEM_DOMAIN_CPU
,
I915_GEM_DOMAIN_CPU
);
ptr
=
gem_mmap__wc
(
fd
,
handle
,
0
,
size
,
PROT_READ
);
for
(
offset
=
0
;
offset
<
size
;
offset
+=
4096
)
{
int
suboffset
=
(
offset
>>
12
)
%
(
4096
-
sizeof
(
offset
));
uint64_t
tmp
;
...
...
@@ -105,7 +103,6 @@ static void test_big_cpu(int fd, int scale)
igt_assert_eq
(
offset
,
tmp
);
}
munmap
(
ptr
,
size
);
gem_close
(
fd
,
handle
);
}
...
...
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