mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Move intr data members from MC to CIC
Move interrupt specific data-members from common.mc to common.cic Some of these data members like sw_irq_stall_last_handled_cond need To be initialized much earlier during the OS specific init/probe stage. Also, some more members from struct nvgpu_interrupts(like stall_size, stall_lines[]), which will soon be moved to CIC will also need to be initialized early during the OS specific probe stage. However, the chip specific LUT can only be initialized after the hal_init stage where the HALs are all initialized. Split the CIC init to accommodate the above initialization requirements. JIRA NVGPU-6899 Change-Id: I9333db4cde59bb0aa8f6eb9f8472f00369817a5d Signed-off-by: Tejal Kudav <tkudav@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2552535 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
695dcab297
commit
b33079d47e
@@ -329,35 +329,6 @@ int test_enable_disable_reset(struct unit_module *m, struct gk20a *g, void *args
|
||||
*/
|
||||
int test_reset_mask(struct unit_module *m, struct gk20a *g, void *args);
|
||||
|
||||
/**
|
||||
* Test specification for: test_wait_for_deferred_interrupts
|
||||
*
|
||||
* Description: Validate functionality of waiting for deferred interrupts.
|
||||
*
|
||||
* Test Type: Feature
|
||||
*
|
||||
* Targets: nvgpu_cic_wait_for_deferred_interrupts
|
||||
*
|
||||
* Input: test_mc_setup_env must have been run.
|
||||
*
|
||||
* Steps:
|
||||
* - Initialize cond structures required by the API.
|
||||
* - Set the irq count states in the gk20a struct to 0 to cause immediate
|
||||
* completion.
|
||||
* - Call the API.
|
||||
* - Enable cond fault injection to simulate a timeouts.
|
||||
* - Set the irq count states in the gk20a struct to simulate pending stall
|
||||
* interrupts.
|
||||
* - Call the API.
|
||||
* - Set the irq count states in the gk20a struct to simulate pending non-stall
|
||||
* interrupts.
|
||||
* - Disable cond fault injection.
|
||||
*
|
||||
* Output: Returns PASS if expected result is met, FAIL otherwise.
|
||||
*/
|
||||
int test_wait_for_deferred_interrupts(struct unit_module *m, struct gk20a *g,
|
||||
void *args);
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user