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>
这个提交包含在:
Anjaneya Prasad Musunuri
2023-02-24 12:05:05 +05:30
提交者 Gerrit - the friendly Code Review server
父节点 7ac494a18e
当前提交 9452039e4a

查看文件

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only // 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. * 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) if (len % transfer_size_bytes)
len = len + (transfer_size_bytes - len % transfer_size_bytes); len = len + (transfer_size_bytes - len % transfer_size_bytes);
data = kvzalloc(len, GFP_KERNEL); data = vzalloc(len);
if (!data) if (!data)
return; 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); _perform_sbdma_kickoff(ctx, hw_cfg, dma_ops, blk, GAMUT);
exit: exit:
kvfree(data); vfree(data);
} }
void reg_dmav2_setup_vig_gamutv61(struct sde_hw_pipe *ctx, void *cfg) void reg_dmav2_setup_vig_gamutv61(struct sde_hw_pipe *ctx, void *cfg)