diff options
author | Jordan Crouse <jcrouse@codeaurora.org> | 2019-09-11 08:32:15 -0600 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-09-17 02:18:24 -0700 |
commit | 5ffb9e5b7a80805f6e6c504cdd1d70d6411b51ab (patch) | |
tree | 85a5117ccf7de1adf4eb647598ac6ce86869da33 /drivers/gpu/msm/kgsl.h | |
parent | 19f118bcf52ba3ee9d9e89ca1e6ad01215e245ac (diff) |
msm: kgsl: Make the "scratch" global buffer use a random GPU address
Select a random global GPU address for the "scratch" buffer that is used
by the ringbuffer for various tasks.
Change-Id: Ic0dedbaddda71dbf9cb2adab3c6c33a24d6a604c
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Harshitha Sai Neelati <hsaine@codeaurora.org>
Diffstat (limited to 'drivers/gpu/msm/kgsl.h')
-rw-r--r-- | drivers/gpu/msm/kgsl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/msm/kgsl.h b/drivers/gpu/msm/kgsl.h index a486d9a86f9d..6b8ef82d340f 100644 --- a/drivers/gpu/msm/kgsl.h +++ b/drivers/gpu/msm/kgsl.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2008-2016, 2018, The Linux Foundation. All rights reserved. +/* Copyright (c) 2008-2016,2018-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -189,6 +189,8 @@ struct kgsl_memdesc_ops { #define KGSL_MEMDESC_TZ_LOCKED BIT(7) /* The memdesc is allocated through contiguous memory */ #define KGSL_MEMDESC_CONTIG BIT(8) +/* For global buffers, randomly assign an address from the region */ +#define KGSL_MEMDESC_RANDOM BIT(9) /** * struct kgsl_memdesc - GPU memory object descriptor |