platform: dce: Add suspend resume hooks

Add suspend resume hooks function and handling of sc7 events.

Bug 3583331
Bug 3826630

Signed-off-by: Mahesh Kumar <mahkumar@nvidia.com>
Change-Id: I920b02ad46a76330febe666fe17e8d328f744b1d
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2834856
Reviewed-by: Arun Swain <arswain@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2824218
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com>
This commit is contained in:
Mahesh Kumar
2022-05-19 15:01:13 +00:00
committed by Laxman Dewangan
parent 31b6d913ab
commit 75bfcf326d
10 changed files with 373 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019-2022, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2019-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
@@ -151,7 +151,7 @@ int dce_handle_boot_complete_received_event(struct tegra_dce *d, void *params)
*
* Return : 0 if successful else error code
*/
static int
int
dce_start_boot_flow(struct tegra_dce *d)
{
int ret = 0;
@@ -241,8 +241,12 @@ void dce_handle_irq_status(struct tegra_dce *d, u32 status)
NULL);
}
if (status & DCE_IRQ_SC7_ENTERED)
if (status & DCE_IRQ_SC7_ENTERED) {
dce_info(d, "DCE can be safely powered-off now");
(void)dce_fsm_post_event(d,
EVENT_ID_DCE_SC7_ENTERED_RECEIVED,
NULL);
}
if (status & DCE_IRQ_LOG_READY) {
dce_info(d, "DCE trace log buffers available");