Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
truenas-rk3588
kernel-rk3588
Commits
475144f6
Commit
475144f6
authored
6 years ago
by
jensen
Browse files
Options
Download
Email Patches
Plain Diff
MALI: midgard: Fixup for (compat) 32-bit clients
Signed-off-by:
jensen
<
jensenhuang@friendlyarm.com
>
parent
deac908a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/gpu/arm/midgard/mali_kbase_core_linux.c
+18
-2
drivers/gpu/arm/midgard/mali_kbase_core_linux.c
with
18 additions
and
2 deletions
+18
-2
drivers/gpu/arm/midgard/mali_kbase_core_linux.c
View file @
475144f6
...
...
@@ -515,11 +515,19 @@ static int kbase_legacy_dispatch(struct kbase_context *kctx,
case
KBASE_FUNC_JOB_SUBMIT
:
{
struct
kbase_uk_job_submit
*
job
=
args
;
char
__user
*
user_buf
;
if
(
sizeof
(
*
job
)
!=
args_size
)
goto
bad_size
;
if
(
kbase_jd_submit
(
kctx
,
job
->
addr
.
value
,
#ifdef CONFIG_COMPAT
if
(
kbase_ctx_flag
(
kctx
,
KCTX_COMPAT
))
user_buf
=
compat_ptr
(
job
->
addr
.
compat_value
);
else
#endif
user_buf
=
job
->
addr
.
value
;
if
(
kbase_jd_submit
(
kctx
,
user_buf
,
job
->
nr_atoms
,
job
->
stride
,
false
)
!=
0
)
...
...
@@ -531,11 +539,19 @@ static int kbase_legacy_dispatch(struct kbase_context *kctx,
case
KBASE_FUNC_JOB_SUBMIT_UK6
:
{
struct
kbase_uk_job_submit
*
job
=
args
;
char
__user
*
user_buf
;
if
(
sizeof
(
*
job
)
!=
args_size
)
goto
bad_size
;
if
(
kbase_jd_submit
(
kctx
,
job
->
addr
.
value
,
#ifdef CONFIG_COMPAT
if
(
kbase_ctx_flag
(
kctx
,
KCTX_COMPAT
))
user_buf
=
compat_ptr
(
job
->
addr
.
compat_value
);
else
#endif
user_buf
=
job
->
addr
.
value
;
if
(
kbase_jd_submit
(
kctx
,
user_buf
,
job
->
nr_atoms
,
job
->
stride
,
true
)
!=
0
)
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help