mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu:nvgpu: clear domain response memory
Same receive queue memory allocated for the domain gets used to send the response to userspace. So it is needed to clear the memory before updating it. Bug 3884011 Change-Id: I23270f9b5796ac1f4cc8f8f180da7b8abd527f77 Signed-off-by: prsethi <prsethi@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2828818 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
e0a9553533
commit
6337e0e272
@@ -766,6 +766,9 @@ static int nvgpu_nvs_ctrl_fifo_scheduler_process_receiver(struct gk20a *g,
|
|||||||
{
|
{
|
||||||
int result = 0;
|
int result = 0;
|
||||||
|
|
||||||
|
(void)memset(receiver_queue_sender->internal_buffer, 0,
|
||||||
|
NVS_DOMAIN_MESSAGE_MAX_PAYLOAD_SIZE);
|
||||||
|
|
||||||
if (send_queue_receiver->msg_type == NVS_DOMAIN_MSG_TYPE_CTRL_GET_CAPS_INFO) {
|
if (send_queue_receiver->msg_type == NVS_DOMAIN_MSG_TYPE_CTRL_GET_CAPS_INFO) {
|
||||||
result = nvgpu_nvs_ctrl_fifo_scheduler_process_caps_request(g,
|
result = nvgpu_nvs_ctrl_fifo_scheduler_process_caps_request(g,
|
||||||
send_queue_receiver, receiver_queue_sender);
|
send_queue_receiver, receiver_queue_sender);
|
||||||
|
|||||||
Reference in New Issue
Block a user