| e275ae7a | 04-Apr-2018 |
Varun Wadekar <vwadekar@nvidia.com> |
Tegra210: suspend/resume bpmp interface across System Suspend
The BPMP firmware takes some time to initialise its state on exiting System Suspend state. The CPU needs to synchronize with the BPMP du
Tegra210: suspend/resume bpmp interface across System Suspend
The BPMP firmware takes some time to initialise its state on exiting System Suspend state. The CPU needs to synchronize with the BPMP during this process to avoid any race conditions. This patch suspends and resumes the BPMP interface across a System Suspend cycle, to fix this race.
Change-Id: I82a61d12ef3eee267bdd8d4386bed23397fbfd2d Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
show more ...
|
| c33473d5 | 19-Mar-2018 |
Varun Wadekar <vwadekar@nvidia.com> |
Tegra210: skip past sc7entry-fw signature header
This patch skips past the signature header added to the sc7entry-fw binary by the previous level bootloader. Currently, the size of the header is 1KB
Tegra210: skip past sc7entry-fw signature header
This patch skips past the signature header added to the sc7entry-fw binary by the previous level bootloader. Currently, the size of the header is 1KB, so adjust the start address and the binary size at the time of copy.
Change-Id: Id0494548009749035846d54df417a960c640c8f9 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
show more ...
|
| 7350277b | 07-Mar-2018 |
Varun Wadekar <vwadekar@nvidia.com> |
Tegra210: move sc7entry-fw inside the TZDRAM fence
This patch uses the sc7entry-fw base/size values to calculate the TZDRAM fence, so as to move sc7entry-fw inside the TZDRAM fence.
Change-Id: I91a
Tegra210: move sc7entry-fw inside the TZDRAM fence
This patch uses the sc7entry-fw base/size values to calculate the TZDRAM fence, so as to move sc7entry-fw inside the TZDRAM fence.
Change-Id: I91aeeeece857076c478cdc4c18a6ad70dc265031 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
show more ...
|
| fdc08e2e | 07-Mar-2018 |
kalyani chidambaram <kalyanic@nvidia.com> |
Tegra210: SiP handlers to allow PMC access
This patch adds SiP handler for Tegra210 platforms to service read/write requests for PMC block. None of the secure registers are accessible to the NS worl
Tegra210: SiP handlers to allow PMC access
This patch adds SiP handler for Tegra210 platforms to service read/write requests for PMC block. None of the secure registers are accessible to the NS world though.
Change-Id: I7dc1f10c6a6ee6efc642ddcfb1170fb36d3accff Signed-off-by: kalyani chidambaram <kalyanic@nvidia.com>
show more ...
|
| 2d5560f9 | 05-Mar-2018 |
Varun Wadekar <vwadekar@nvidia.com> |
Tegra210: power off all DMA masters before System Suspend entry
This patch puts all the DMA masters in reset before starting the System Suspend sequence. This helps us make sure that there are no ro
Tegra210: power off all DMA masters before System Suspend entry
This patch puts all the DMA masters in reset before starting the System Suspend sequence. This helps us make sure that there are no rogue agents in the system trying to over-write the SC7 Entry Firmware with their own.
Change-Id: I7eb39999d229951e612fbfeb9f86c4efb8f98b5a Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
show more ...
|
| 3ca3c27c | 27-Feb-2018 |
Varun Wadekar <vwadekar@nvidia.com> |
Tegra: support for System Suspend using sc7entry-fw binary
This patch adds support to enter System Suspend on Tegra210 platforms without the traditional BPMP firmware. The BPMP firmware will no long
Tegra: support for System Suspend using sc7entry-fw binary
This patch adds support to enter System Suspend on Tegra210 platforms without the traditional BPMP firmware. The BPMP firmware will no longer be supported on Tegra210 platforms and its functionality will be divided across the CPU and sc7entry-fw.
The sc7entry-fw takes care of performing the hardware sequence required to enter System Suspend (SC7 power state) from the COP. The CPU is required to load this firmware to the internal RAM of the COP and start the sequence. The CPU also make sure that the COP is off after cold boot and is only powered on when we want to start the actual System Suspend sequence.
The previous bootloader loads the firmware to TZDRAM and passes its base and size as part of the boot parameters. The EL3 layer is supposed to sanitize the parameters before touching the firmware blob.
To assist the warmboot code with the PMIC discovery, EL3 is also supposed to program PMC's scratch register #210, with appropriate values. Without these settings the warmboot code wont be able to get the device out of System Suspend.
Change-Id: I5a7b868512dbfd6cfefd55acf3978a1fd7ebf1e2 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
show more ...
|
| 93e3b0f3 | 14-Feb-2018 |
Varun Wadekar <vwadekar@nvidia.com> |
Tegra210: remove support for cluster power down
This patch removes support for powering down a CPU cluster on Tegra210 platforms as none of them actually use it.
Change-Id: I9665634cf2b5b7b8a1b5a27
Tegra210: remove support for cluster power down
This patch removes support for powering down a CPU cluster on Tegra210 platforms as none of them actually use it.
Change-Id: I9665634cf2b5b7b8a1b5a2700cae152dc9165fe3 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
show more ...
|
| 7db077f2 | 14-Feb-2018 |
Varun Wadekar <vwadekar@nvidia.com> |
Tegra210: support for cluster idle from the CPU
This patch adds support to enter/exit to/from cluster idle power state on Tegra210 platforms that do not load BPMP firmware.
The CPU initates the clu
Tegra210: support for cluster idle from the CPU
This patch adds support to enter/exit to/from cluster idle power state on Tegra210 platforms that do not load BPMP firmware.
The CPU initates the cluster idle sequence on the last standing CPU, by following these steps:
Entry ----- * stop other CPUs from waking up * program the PWM pinmux to tristate for OVR PMIC * program the flow controller to enter CC6 state * skip L1 $ flush during cluster power down, as L2 $ is inclusive of L1 $ on Cortex-A57 CPUs
Exit ---- * program the PWM pinmux to un-tristate for OVR PMIC * allow other CPUs to wake up
This patch also makes sure that cluster idle state entry is not enabled until CL-DVFS is ready.
Change-Id: I54cf31bf72b4a09d9bf9d2baaed6ee5a963c7808 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
show more ...
|
| 26cf0849 | 23-Jan-2018 |
Varun Wadekar <vwadekar@nvidia.com> |
Tegra: organize memory/mmio apertures to decrease memmap latency
This patch organizes the memory and mmio maps linearly, to make the mmap_add_region process faster. The microsecond timer has been mo
Tegra: organize memory/mmio apertures to decrease memmap latency
This patch organizes the memory and mmio maps linearly, to make the mmap_add_region process faster. The microsecond timer has been moved to individual platforms instead of making it a common step, as it further speeds up the memory map creation process.
Change-Id: I6fdaee392f7ac5d99daa182380ca9116a001f5d6 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
show more ...
|
| 51a5e593 | 03-Jan-2019 |
Varun Wadekar <vwadekar@nvidia.com> |
Tegra210: Enable WDT_CPU interrupt for FIQ Debugger
This patch enables the watchdog timer's interrupt as an FIQ interrupt to the CPU. The interrupt generated by the watchdog is connected to the flow
Tegra210: Enable WDT_CPU interrupt for FIQ Debugger
This patch enables the watchdog timer's interrupt as an FIQ interrupt to the CPU. The interrupt generated by the watchdog is connected to the flow controller for power management reasons, and needs to be routed to the GICD for it to reach the CPU.
Change-Id: I9437b516da2c5d763eca72694ed7f3c7389b3d9e Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
show more ...
|
| d16b045c | 26-Jan-2018 |
Varun Wadekar <vwadekar@nvidia.com> |
Tegra: fiq_glue: support to handle LEGACY_FIQ PPIs for Tegra SoCs
This patch adds support to handle secure PPIs for Tegra watchdog timers. This functionality is currently protected by the ENABLE_WDT
Tegra: fiq_glue: support to handle LEGACY_FIQ PPIs for Tegra SoCs
This patch adds support to handle secure PPIs for Tegra watchdog timers. This functionality is currently protected by the ENABLE_WDT_LEGACY_FIQ_HANDLING configuration variable and is only enabled for Tegra210 platforms, for now.
Change-Id: I0752ef54a986c58305e1bc8ad9be71d4a8bbd394 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
show more ...
|
| 28f45bb8 | 26-Oct-2017 |
Pritesh Raithatha <praithatha@nvidia.com> |
Tegra186: smmu: add support for backup multiple smmu regs
Modifying smmu macros to pass base address of smmu so that it can be used with multiple smmus.
Added macro for combining smmu backup regs t
Tegra186: smmu: add support for backup multiple smmu regs
Modifying smmu macros to pass base address of smmu so that it can be used with multiple smmus.
Added macro for combining smmu backup regs that can be used for multiple smmus.
Change-Id: I4f3bb83d66d5df14a3b91bc82f7fc26ec8e4592e Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
show more ...
|
| 8ec45621 | 30-Nov-2017 |
Varun Wadekar <vwadekar@nvidia.com> |
Tegra186: remove RELOCATE_TO_BL31_BASE config
This patch removes this unused config option from the Tegra186 platform makefiles.
Change-Id: Idcdf6854332a26599323a247289c2d3ce19f475f Signed-off-by:
Tegra186: remove RELOCATE_TO_BL31_BASE config
This patch removes this unused config option from the Tegra186 platform makefiles.
Change-Id: Idcdf6854332a26599323a247289c2d3ce19f475f Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
show more ...
|
| fc5adf7d | 30-Nov-2017 |
Varun Wadekar <vwadekar@nvidia.com> |
Tegra: memctrl_v2: remove usage of ENABLE_SMMU_DEVICE config
This patch removes the usage of this platform config, as it is always enabled by all the supported platforms.
Change-Id: Ie7adb641adeb36
Tegra: memctrl_v2: remove usage of ENABLE_SMMU_DEVICE config
This patch removes the usage of this platform config, as it is always enabled by all the supported platforms.
Change-Id: Ie7adb641adeb3604b177b6960b797722d60addfa Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
show more ...
|
| 4cba6985 | 15-Nov-2017 |
Varun Wadekar <vwadekar@nvidia.com> |
Tegra: console driver compilation from platform makefiles
This patch includes the console driver from individual platform makefiles and removes it from tegra_common.mk. This allows future platforms
Tegra: console driver compilation from platform makefiles
This patch includes the console driver from individual platform makefiles and removes it from tegra_common.mk. This allows future platforms to include consoles of their choice.
Change-Id: I7506562bfac78421a80fb6782ac8472fbef6cfb0 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
show more ...
|
| c63ec263 | 14-Nov-2017 |
Steven Kao <skao@nvidia.com> |
Tegra: memctrl_v2: platform handler for TZDRAM setup
The Tegra memctrl driver sets up the TZDRAM fence during boot and system suspend exit. This patch provides individual platforms with handlers to
Tegra: memctrl_v2: platform handler for TZDRAM setup
The Tegra memctrl driver sets up the TZDRAM fence during boot and system suspend exit. This patch provides individual platforms with handlers to perform custom steps during TZDRAM setup.
Change-Id: Iee094d6ca189c6dd24f1147003c33c99ff3a953b Signed-off-by: Steven Kao <skao@nvidia.com>
show more ...
|
| 539c62d7 | 10-Nov-2017 |
Varun Wadekar <vwadekar@nvidia.com> |
Tegra186: save system suspend entry marker to TZDRAM
This patch adds support to save the system suspend entry and exit markers to TZDRAM to help the trampoline code decide if the current warmboot is
Tegra186: save system suspend entry marker to TZDRAM
This patch adds support to save the system suspend entry and exit markers to TZDRAM to help the trampoline code decide if the current warmboot is actually an exit from System Suspend.
The Tegra186 platform handler sets the system suspend entry marker before entering SC7 state and the trampoline flips the state back to system resume, on exiting SC7.
Change-Id: I29d73f1693c89ebc8d19d7abb1df1e460eb5558e Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
show more ...
|
| 889c07c7 | 08-Nov-2017 |
Varun Wadekar <vwadekar@nvidia.com> |
Tegra186: helper functions for CPU rst handler and SMMU ctx offset
This patch adds a helper function to get the SMMU context's offset and uses another helper function to get the CPU trampoline offse
Tegra186: helper functions for CPU rst handler and SMMU ctx offset
This patch adds a helper function to get the SMMU context's offset and uses another helper function to get the CPU trampoline offset. These helper functions are used by the System Suspend entry sequence to save the SMMU context and CPU reset handler to TZDRAM.
Change-Id: I95e2862fe37ccad00fa48ec165c6e4024df01147 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
show more ...
|
| d7be5e2e | 23-Aug-2017 |
Varun Wadekar <vwadekar@nvidia.com> |
Tegra: bpmp: return error if BPMP init fails
This patch returns error if BPMP initialization fails. The platform code marks the cluster as "runnning" since we wont be able to get it into the low pow
Tegra: bpmp: return error if BPMP init fails
This patch returns error if BPMP initialization fails. The platform code marks the cluster as "runnning" since we wont be able to get it into the low power state without BPMP.
Change-Id: I86f51d478626240bb7b4ccede8907674290c5dc1 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
show more ...
|
| 601a8e54 | 23-Oct-2017 |
Steven Kao <skao@nvidia.com> |
Tegra: rename secure scratch register macros
This patch renames all the secure scratch registers to reflect their usage.
This is a list of all the macros being renamed:
- SECURE_SCRATCH_RSV1_* ->
Tegra: rename secure scratch register macros
This patch renames all the secure scratch registers to reflect their usage.
This is a list of all the macros being renamed:
- SECURE_SCRATCH_RSV1_* -> SCRATCH_RESET_VECTOR_* - SECURE_SCRATCH_RSV6 -> SCRATCH_SECURE_BOOTP_FCFG - SECURE_SCRATCH_RSV11_* -> SCRATCH_SMMU_TABLE_ADDR_* - SECURE_SCRATCH_RSV53_* -> SCRATCH_BOOT_PARAMS_ADDR_* - SECURE_SCRATCH_RSV55_* -> SCRATCH_TZDRAM_ADDR_*
NOTE: Future SoCs will have to define these macros to keep the drivers functioning.
Change-Id: Ib3ba40dd32e77b92b47825f19c420e6fdfa8b987 Signed-off-by: Steven Kao <skao@nvidia.com>
show more ...
|
| d5bd0de6 | 30-Oct-2017 |
Varun Wadekar <vwadekar@nvidia.com> |
Tegra: memctrl_v2: platform handler for TZDRAM settings
The Tegra memctrl driver sets up the TZDRAM fence during boot and system suspend exit. This patch provides individual platforms with handlers
Tegra: memctrl_v2: platform handler for TZDRAM settings
The Tegra memctrl driver sets up the TZDRAM fence during boot and system suspend exit. This patch provides individual platforms with handlers to perform platform specific steps, e.g. enable encryption, save base/size to secure scratch registers.
Change-Id: Ifaa2e0eac20b50f77ec734256544c36dd511bd63 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
show more ...
|
| 7191566c | 25-Oct-2017 |
Varun Wadekar <vwadekar@nvidia.com> |
Tegra186: secondary: fix MISRA violations for Rules 8.6, 11.1
This patch fixes the following MISRA violations:
Rule 8.6: Externally-linked object or function has "no" definition(s). Rule 11.1: A ca
Tegra186: secondary: fix MISRA violations for Rules 8.6, 11.1
This patch fixes the following MISRA violations:
Rule 8.6: Externally-linked object or function has "no" definition(s). Rule 11.1: A cast shall not convert a pointer to a function to any other type.
Change-Id: Ic1f6fc14c744e54ff782c6987dab9c9430410f5e Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
show more ...
|
| b6d1757b | 17-Oct-2017 |
Varun Wadekar <vwadekar@nvidia.com> |
Tegra186: sanity check target cluster during core power on
This patch sanity checks the target cluster value, during core power on, by comparing it against the maximum number of clusters supported b
Tegra186: sanity check target cluster during core power on
This patch sanity checks the target cluster value, during core power on, by comparing it against the maximum number of clusters supported by the platform.
Reported by: Rohit Khanna <rokhanna@nvidia.com>
Change-Id: Ia73ccf04bd246403de4ffff6e5c99e3b00fb98ca Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
show more ...
|
| ad67f8c5 | 22-Sep-2017 |
Anthony Zhou <anzhou@nvidia.com> |
Tegra186: setup: Fix MISRA Rule 8.4 violation
MISRA Rule 8.4, A compatible declaration shall be visible when an object or function with external linkage is defined.
This patch adds static for local
Tegra186: setup: Fix MISRA Rule 8.4 violation
MISRA Rule 8.4, A compatible declaration shall be visible when an object or function with external linkage is defined.
This patch adds static for local array to fix this defect.
Change-Id: I8231448bf1bc0b1e59611d7645ca983b83d5c8e3 Signed-off-by: Anthony Zhou <anzhou@nvidia.com>
show more ...
|
| f8f400d2 | 06-Sep-2017 |
Varun Wadekar <vwadekar@nvidia.com> |
Tegra186: mce: get the "right" uncore command/response bits
This patch corrects the logic to read the uncore command/response bits from the command/response values. The previous logic tapped into in
Tegra186: mce: get the "right" uncore command/response bits
This patch corrects the logic to read the uncore command/response bits from the command/response values. The previous logic tapped into incorrect bits leading to garbage counter values.
Change-Id: Ib8327ca3cb3d2086bb268e9a5366865cdf35b493 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
show more ...
|