qcacmn: Do not allow CE register access when recovery is in progress

Currently, Shadow registers is not implemented for all registers.
This can lead to unclocked access and followed by NOC errors.
In Rx path Interrupt Status and src/dst read index are directly
accessed without shadow block. Target may execute
reset sequence due to PDR/SSR while rx path is active.

Avoid direct access to below registers if target is crashed due
to PDR/SSR.

HOST_IE_ADDRESS
HOST_IS_ADDRESS
CURRENT_DRRI_ADDRESS
CURRENT_SRRI_ADDRESS

Return from ISR without scheduling the bottom half if target is
crashed due to PDR/SSR.

Change-Id: Ifa993e978579b4d061d21281338494292e19700a
CRs-Fixed: 2123967
此提交包含在:
Govind Singh
2017-06-08 12:33:59 +05:30
提交者 Nandini Suresh
父節點 4a2f03c01c
當前提交 bc679dc919
共有 9 個檔案被更改,包括 103 行新增14 行删除

查看文件

@@ -463,6 +463,7 @@ struct hif_driver_state_callbacks {
bool (*is_recovery_in_progress)(void *context);
bool (*is_load_unload_in_progress)(void *context);
bool (*is_driver_unloading)(void *context);
bool (*is_target_ready)(void *context);
};
/* This API detaches the HTC layer from the HIF device */