Viswanath L
d5138e1c58
nvadsp: Fix build issues and enable
...
Fix build issues for nvadsp in OOT kernel and enable the build.
- Below files copied from kernel/nvidia/include/linux/
- tegra_nvadsp.h (72af3e78a6aff0fa250e9fd36b8414264d0e4c9a)
- tegra-firmwares.h (700223e52f49f300664dd91335fa11111af733aa)
- tegra-hsp.h (988be8f05033e1d728e046e918b506d829106082)
- Below file copied from kernel/nvidia/include/uapi/misc/
- adsp_console_ioctl.h (72af3e78a6aff0fa250e9fd36b8414264d0e4c9a)
- Functions that needs additional AGIC APIs not supported in upstream
are pushed under macro CONFIG_AGIC_EXT_APIS
- T210 chip_data and references removed
Bug 4164138
Bug 3682950
Change-Id: I5dfb570e578ca3631896de7350cea66698612568
Signed-off-by: Viswanath L <viswanathl@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2971924
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-09-26 12:09:57 -07:00
Viswanath L
119c4f87e2
nvadsp: Update license and remove kernel ver check
...
- Update license of all files in nvadsp that will be used
- Remove kernel version checks in the code
Bug 4164138
Bug 3682950
Change-Id: Ie1f9ba95c1d46c3dd9bc5614e502b1b444484df6
Signed-off-by: Viswanath L <viswanathl@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2980528
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com >
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com >
2023-09-26 12:09:52 -07:00
Niranjan Dighe
3fa96a4417
drivers: platform: nvadsp: Fix sparse issues
...
Fix multiple instances of the following issues -
- warning: incorrect type in argument 2 (different address spaces)
- warning: symbol 'file_size' was not declared. Should it be static?
Bug 3528414
Change-Id: I2cbda8dbfc98b134f36ec3c291a5147d96c6ff82
Signed-off-by: Niranjan Dighe <ndighe@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2684747
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-06-20 15:13:15 +00:00
Uday Gupta
19cf0a1232
nvadsp: Use HWMBOX5 for ADSP OS decompression
...
There is a decompress_done flag in the adsp OS firmware
that was earlier used to indicate that decompress is done
at the adsp os cold boot
However this flag cannot be part of firmware
as fw needs to authenticated at the sc7 resume as well and
hence the fw should not have modifications
On fw side, the flag is removed. Instead the same information
is preserved across sc7 cycles via HWMBOX5 and this driver
enables the decompress bit to indicate the same to adsp at
cold start
Bug 3491011
Change-Id: I77d1ff6defdf1228f4cd4278cf5bb667df51fad1
Signed-off-by: Uday Gupta <udayg@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2660706
Tested-by: Asha Talambedu <atalambedu@nvidia.com >
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: Asha Talambedu <atalambedu@nvidia.com >
Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com >
Reviewed-by: Sharad Gupta <sharadg@nvidia.com >
Reviewed-by: Viswanath L <viswanathl@nvidia.com >
GVS: Gerrit_Virtual_Submit
2023-06-20 15:13:15 +00:00
Viswanath L
2204b3fe10
nvadsp: Use array bound in loop
...
Use array bound in loop rather than depend upon a
NULL element to mark the end.
CID: 490319
Bug 3512545
Change-Id: I65c7eeecd41e8cfa3c35e2bbaa059b272b154d70
Signed-off-by: Viswanath L <viswanathl@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2676345
Reviewed-by: svcacv <svcacv@nvidia.com >
Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com >
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com >
Reviewed-by: Uday Gupta <udayg@nvidia.com >
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
GVS: Gerrit_Virtual_Submit
2023-06-20 15:13:15 +00:00
Bitan Biswas
ceb4b9f02e
kernel: nvidia: use fuse.h instead of chip-id.h in k5.4
...
bug 200591811
Change-Id: If72122efdeda154f435f79da8f2cd9cad644d380
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2337930
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-06-20 15:13:15 +00:00
Sameer Pujar
a617e73405
nvadsp: build dependency on HSP driver
...
ADSP driver has build dependency over HSP driver. Currently on
5.4 CONFIG_TEGRA_HSP is not yet enabled and it is causing build
break. This can be addressed by including corresponding driver
calls under above config check.
Bug 200593718
Change-Id: I4847f8ac251c9cb2bd96fbdecbf29b4200aca371
Signed-off-by: Sameer Pujar <spujar@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2323013
Reviewed-by: automaticguardword <automaticguardword@nvidia.com >
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com >
Reviewed-by: Dipesh Gandhi <dipeshg@nvidia.com >
Reviewed-by: Sharad Gupta <sharadg@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
GVS: Gerrit_Virtual_Submit
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-06-20 15:13:15 +00:00
Dipesh Gandhi
1dd46a95c7
ASoC: tegra-alt: remove redundant drivers
...
- remove unused code
- update hypervisor check condition
Bug 200552920
Change-Id: Ie2ca3542d8dc50191f402c9d4c96d56e4c89db7a
Signed-off-by: Dipesh Gandhi <dipeshg@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/2200432
Reviewed-by: Uday Gupta <udayg@nvidia.com >
Tested-by: Uday Gupta <udayg@nvidia.com >
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com >
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nitin Pai <npai@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-06-20 15:13:15 +00:00
Hariharan Sivaraman
ee8de73c70
nvadsp: Clear HWBOX0 for ADSP guest reset handling
...
During ADSP playback, if HWMBOX0 is high and guest reset is
done, after reset ADSP is unable to communicate with kernel
driver since the interrupt line remains High thereby not
generating interrupt (edge triggered).
Jira EMA-1178
Change-Id: Ifb1283c7286ed944f243e7d92dfe4db40bcd0ba2
Signed-off-by: Hariharan Sivaraman <hariharans@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1978017
Reviewed-by: Uday Gupta <udayg@nvidia.com >
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com >
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dipesh Gandhi <dipeshg@nvidia.com >
Reviewed-by: Sachin Nikam <snikam@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-06-20 15:13:15 +00:00
Hariharan Sivaraman
385dc63275
nvadsp: Add ADMA page info in hwmbox
...
For virtualized configurations, add DMA page info
for ADSP to read via HWMBOX. Remaining DMA pages will be
unmapped by ADSP OS
Jira EMA-414
Jira EMA-415
Change-Id: I67b7b2069aca07948e63436367d80a2baeaaf6ae
Signed-off-by: Hariharan Sivaraman <hariharans@nvidia.com >
Reviewed-on: https://git-master/r/1477304
(cherry picked from commit 93f338df31af5894935754aac23bb003168f9ea0)
Signed-off-by: Hariharan Sivaraman <hariharans@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1567625
Reviewed-by: Viraj Karandikar <vkarandikar@nvidia.com >
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com >
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nitin Pai <npai@nvidia.com >
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com >
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com >
2023-06-20 15:13:15 +00:00
Nitin Kumbhar
915f2bfa4d
Platform: nvadsp: Unify ADSP across chips
...
Unifying ADSP driver across t186, t210.
This removes the use of chip specific configs.
Based on:
platform: nvadsp: Enable ADSP in T210 for 4.4
nvadsp: Add nvadsp_os_init for t18x HV config
tegra: t210: nvadsp: move hwmbox to chip data
platform: nvadsp: Add callbacks to chip data
platform: nvadsp: Use WDT irq from chip data
soc: adsp: use soc/tegra/chip-id.h for soc header
tegra: nvadsp: remove clk periph reset assert/deassert
tegra: nvadsp: use ACLK to manage ADSP clk on t186
tegra: nvadsp: dfs: fix tfreq in error path
platform: tegra: adsp: update rpm error handling
platform: nvadsp: export symbols for audio driver
Bug 200272977
Jira EMA-373
Bug 200257350
Bug 200124772
Bug 200289390
Change-Id: Iab20f54a48c67febd6b4ccfaf2e89e5b264e0f5a
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com >
Reviewed-on: http://git-master/r/1468351
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com >
Reviewed-on: https://git-master.nvidia.com/r/1537319
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com >
GVS: Gerrit_Virtual_Submit
2023-06-20 15:13:15 +00:00