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 <anandakumarm@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2524414
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Nikesh Oswal <noswal@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Ajay Nandakumar
2021-05-04 17:52:45 +05:30
committed by Laxman Dewangan
parent 56135207fa
commit 5190a1db72

View File

@@ -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;