disp: msm: sde: use vzalloc for large allocations
Large allocations using kvzalloc can lead to timeouts. This updates the allocation calls accordingly to use vzalloc to remove requirements on physically contiguous memory. Change-Id: I437913b3bf2e46bfeeb2c511bdfc153470fcbc24 Signed-off-by: Anjaneya Prasad Musunuri <quic_aprasad@quicinc.com>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
7ac494a18e
commit
9452039e4a
@@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
@@ -4630,7 +4630,7 @@ void reg_dmav2_setup_dspp_3d_gamutv43(struct sde_hw_dspp *ctx, void *cfg)
|
||||
if (len % transfer_size_bytes)
|
||||
len = len + (transfer_size_bytes - len % transfer_size_bytes);
|
||||
|
||||
data = kvzalloc(len, GFP_KERNEL);
|
||||
data = vzalloc(len);
|
||||
if (!data)
|
||||
return;
|
||||
|
||||
@@ -4706,7 +4706,7 @@ void reg_dmav2_setup_dspp_3d_gamutv43(struct sde_hw_dspp *ctx, void *cfg)
|
||||
_perform_sbdma_kickoff(ctx, hw_cfg, dma_ops, blk, GAMUT);
|
||||
|
||||
exit:
|
||||
kvfree(data);
|
||||
vfree(data);
|
||||
}
|
||||
|
||||
void reg_dmav2_setup_vig_gamutv61(struct sde_hw_pipe *ctx, void *cfg)
|
||||
|
Reference in New Issue
Block a user