From 5190a1db72af28efa956381fe70bffdd77620ae6 Mon Sep 17 00:00:00 2001 From: Ajay Nandakumar Date: Tue, 4 May 2021 17:52:45 +0530 Subject: [PATCH] nvadsp: change chip_id type in shared struct The chip_id type in shared struct is u8 where as across the adsp firmwares the chip_id type is of type uint32_t. This causes shared structure sizes to be different causing firmwares and causes different address of the shared struct variables when accessed from the Host and the adsp firmware. Bug 200692666 Change-Id: I6ad23f021f64458d87596b9d6c47c9df38e3689b Signed-off-by: Ajay Nandakumar Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2524414 Reviewed-by: Sachin Nikam Reviewed-by: Nikesh Oswal Reviewed-by: mobile promotions GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions --- drivers/platform/tegra/nvadsp/adsp_shared_struct.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/tegra/nvadsp/adsp_shared_struct.h b/drivers/platform/tegra/nvadsp/adsp_shared_struct.h index 6c0dd462..7a08b8c0 100644 --- a/drivers/platform/tegra/nvadsp/adsp_shared_struct.h +++ b/drivers/platform/tegra/nvadsp/adsp_shared_struct.h @@ -3,7 +3,7 @@ * * A header file containing shared data structures shared with ADSP OS * - * Copyright (C) 2015-2020 NVIDIA Corporation. All rights reserved. + * Copyright (C) 2015-2021 NVIDIA Corporation. All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and @@ -128,7 +128,7 @@ struct nvadsp_os_args { char logger[DRAM_DEBUG_LOG_SIZE]; uint64_t adsp_freq_hz; uint32_t dynamic_app_support; - u8 chip_id; + uint32_t chip_id; char reserved[120]; } __packed;