diff options
author | Elliot Berman <quic_eberman@quicinc.com> | 2023-02-13 10:18:29 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-06-09 10:48:18 +0200 |
commit | 6b952a4b2420faa7eccd5c246e767d21349bcd8a (patch) | |
tree | e9184da80abcb33702fc9f1b03d13afc80c63532 /include/linux | |
parent | a5187ae55c6435a91dd20083b0352863606e4e14 (diff) | |
download | linux-stable-6b952a4b2420faa7eccd5c246e767d21349bcd8a.tar.gz linux-stable-6b952a4b2420faa7eccd5c246e767d21349bcd8a.tar.bz2 linux-stable-6b952a4b2420faa7eccd5c246e767d21349bcd8a.zip |
firmware: qcom_scm: Use fixed width src vm bitmap
[ Upstream commit 968a26a07f75377afbd4f7bb18ef587a1443c244 ]
The maximum VMID for assign_mem is 63. Use a u64 to represent this
bitmap instead of architecture-dependent "unsigned int" which varies in
size on 32-bit and 64-bit platforms.
Acked-by: Kalle Valo <kvalo@kernel.org> (ath10k)
Tested-by: Gokul krishna Krishnakumar <quic_gokukris@quicinc.com>
Signed-off-by: Elliot Berman <quic_eberman@quicinc.com>
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230213181832.3489174-1-quic_eberman@quicinc.com
Stable-dep-of: a6e766dea0a2 ("misc: fastrpc: Pass proper scm arguments for secure map request")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/firmware/qcom/qcom_scm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/firmware/qcom/qcom_scm.h b/include/linux/firmware/qcom/qcom_scm.h index 1e449a5d7f5c..250ea4efb7cb 100644 --- a/include/linux/firmware/qcom/qcom_scm.h +++ b/include/linux/firmware/qcom/qcom_scm.h @@ -94,7 +94,7 @@ extern int qcom_scm_mem_protect_video_var(u32 cp_start, u32 cp_size, u32 cp_nonpixel_start, u32 cp_nonpixel_size); extern int qcom_scm_assign_mem(phys_addr_t mem_addr, size_t mem_sz, - unsigned int *src, + u64 *src, const struct qcom_scm_vmperm *newvm, unsigned int dest_cnt); |