mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: nvgpu: support preprocessing of SM exceptions
Support preprocessing of SM exceptions if API pointer pre_process_sm_exception() is defined Also, expose some common APIs Bug 200156699 Change-Id: I1303642c1c4403c520b62efb6fd83e95eaeb519b Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/925883 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
committed by
Sachin Nikam
parent
0ce201e8de
commit
ca76b336b3
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* GK20A Graphics Engine
|
||||
*
|
||||
* Copyright (c) 2011-2015, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2011-2016, NVIDIA CORPORATION. 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,
|
||||
@@ -175,6 +175,17 @@ struct gk20a_cs_snapshot_client;
|
||||
struct gk20a_cs_snapshot;
|
||||
#endif
|
||||
|
||||
struct gr_gk20a_isr_data {
|
||||
u32 addr;
|
||||
u32 data_lo;
|
||||
u32 data_hi;
|
||||
u32 curr_ctx;
|
||||
u32 chid;
|
||||
u32 offset;
|
||||
u32 sub_chan;
|
||||
u32 class_num;
|
||||
};
|
||||
|
||||
struct gr_gk20a {
|
||||
struct gk20a *g;
|
||||
struct {
|
||||
@@ -533,4 +544,16 @@ static inline void gr_gk20a_free_cyclestats_snapshot_data(struct gk20a *g)
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
int gk20a_gr_handle_fecs_error(struct gk20a *g, struct channel_gk20a *ch,
|
||||
struct gr_gk20a_isr_data *isr_data);
|
||||
int gk20a_gr_wait_for_sm_lock_down(struct gk20a *g, u32 gpc, u32 tpc,
|
||||
u32 global_esr_mask, bool check_errors);
|
||||
void gk20a_gr_clear_sm_hww(struct gk20a *g,
|
||||
u32 gpc, u32 tpc, u32 global_esr);
|
||||
int gr_gk20a_ctx_wait_ucode(struct gk20a *g, u32 mailbox_id,
|
||||
u32 *mailbox_ret, u32 opc_success,
|
||||
u32 mailbox_ok, u32 opc_fail,
|
||||
u32 mailbox_fail, bool sleepduringwait);
|
||||
|
||||
#endif /*__GR_GK20A_H__*/
|
||||
|
||||
Reference in New Issue
Block a user