linux/drivers/firmware/tegra
Timo Alho 8b08dbb1b1 firmware: tegra: Add return code checks and increase debugfs size
Add checking of the BPMP-FW return code values for MRQ_DEBUGFS calls.

Also, development versions of the firmware may have debugfs with a
directory structure larger than 256 KiB. Hence increase the size of the
memory buffer to accommodate those firmware revisions.

And finally, ensure that no access outside of allocated memory buffer
happens in case BPMP-FW returns an invalid response size (nbytes) from
mrq_debugfs_dumpdir() call.

Signed-off-by: Timo Alho <talho@nvidia.com>
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
2020-07-14 17:56:28 +02:00
..
bpmp-debugfs.c firmware: tegra: Add return code checks and increase debugfs size 2020-07-14 17:56:28 +02:00
bpmp-private.h firmware/tegra: Enable Tegra186 BPMP support on Tegra194 2019-02-07 18:52:39 +01:00
bpmp-tegra186.c firmware: tegra: Defer BPMP probe if shared memory not available 2020-05-22 14:57:14 +02:00
bpmp-tegra210.c firmware: tegra: add bpmp driver for Tegra210 2019-01-25 15:58:47 +01:00
bpmp.c firmware: tegra: Make BPMP a regular driver 2020-04-22 00:02:10 +02:00
ivc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
Kconfig firmware: tegra: Fix a typo in Kconfig 2020-02-17 08:54:09 +01:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00