mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: fix styling issues in gr_falcon.h
Align all GR falcon method numbers in gr_falcon.h header appropriately. Also add new lines between #endif/#ifdef. Fix couple of more than 80 char in a line violations. Jira NVGPU-4028 Change-Id: I61d2ece5a1ea86e9c9c6cd295e974f090f450040 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2199506 Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com> Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
8f6b3cd50f
commit
3ca62e3d9c
@@ -34,34 +34,42 @@ struct gk20a;
|
||||
struct nvgpu_gr_falcon;
|
||||
|
||||
#if defined(CONFIG_NVGPU_DEBUGGER) || defined(CONFIG_NVGPU_RECOVERY)
|
||||
#define NVGPU_GR_FALCON_METHOD_CTXSW_STOP 0
|
||||
#define NVGPU_GR_FALCON_METHOD_CTXSW_START 1
|
||||
#define NVGPU_GR_FALCON_METHOD_CTXSW_STOP 0
|
||||
#define NVGPU_GR_FALCON_METHOD_CTXSW_START 1
|
||||
#endif
|
||||
|
||||
/** Falcon method to halt FE pipeline. */
|
||||
#define NVGPU_GR_FALCON_METHOD_HALT_PIPELINE 2
|
||||
#define NVGPU_GR_FALCON_METHOD_HALT_PIPELINE 2
|
||||
|
||||
#ifdef CONFIG_NVGPU_FECS_TRACE
|
||||
#define NVGPU_GR_FALCON_METHOD_FECS_TRACE_FLUSH 3
|
||||
#define NVGPU_GR_FALCON_METHOD_FECS_TRACE_FLUSH 3
|
||||
#endif
|
||||
|
||||
/** Falcon method to query golden context image size. */
|
||||
#define NVGPU_GR_FALCON_METHOD_CTXSW_DISCOVER_IMAGE_SIZE 4
|
||||
#define NVGPU_GR_FALCON_METHOD_CTXSW_DISCOVER_IMAGE_SIZE 4
|
||||
|
||||
#ifdef CONFIG_NVGPU_GRAPHICS
|
||||
#define NVGPU_GR_FALCON_METHOD_CTXSW_DISCOVER_ZCULL_IMAGE_SIZE 5
|
||||
#define NVGPU_GR_FALCON_METHOD_CTXSW_DISCOVER_ZCULL_IMAGE_SIZE 5
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NVGPU_DEBUGGER
|
||||
#define NVGPU_GR_FALCON_METHOD_CTXSW_DISCOVER_PM_IMAGE_SIZE 6
|
||||
#define NVGPU_GR_FALCON_METHOD_CTXSW_DISCOVER_PM_IMAGE_SIZE 6
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NVGPU_POWER_PG
|
||||
#define NVGPU_GR_FALCON_METHOD_REGLIST_DISCOVER_IMAGE_SIZE 7
|
||||
#define NVGPU_GR_FALCON_METHOD_REGLIST_BIND_INSTANCE 8
|
||||
#define NVGPU_GR_FALCON_METHOD_REGLIST_SET_VIRTUAL_ADDRESS 9
|
||||
#define NVGPU_GR_FALCON_METHOD_REGLIST_DISCOVER_IMAGE_SIZE 7
|
||||
#define NVGPU_GR_FALCON_METHOD_REGLIST_BIND_INSTANCE 8
|
||||
#define NVGPU_GR_FALCON_METHOD_REGLIST_SET_VIRTUAL_ADDRESS 9
|
||||
#endif
|
||||
|
||||
/** Falcon method to bind the instance block. */
|
||||
#define NVGPU_GR_FALCON_METHOD_ADDRESS_BIND_PTR 10
|
||||
#define NVGPU_GR_FALCON_METHOD_ADDRESS_BIND_PTR 10
|
||||
/** Falcon method to save golden context image. */
|
||||
#define NVGPU_GR_FALCON_METHOD_GOLDEN_IMAGE_SAVE 11
|
||||
#define NVGPU_GR_FALCON_METHOD_GOLDEN_IMAGE_SAVE 11
|
||||
|
||||
#ifdef CONFIG_NVGPU_GRAPHICS
|
||||
#define NVGPU_GR_FALCON_METHOD_PREEMPT_IMAGE_SIZE 12
|
||||
#define NVGPU_GR_FALCON_METHOD_CONFIGURE_CTXSW_INTR 13
|
||||
#define NVGPU_GR_FALCON_METHOD_PREEMPT_IMAGE_SIZE 12
|
||||
#define NVGPU_GR_FALCON_METHOD_CONFIGURE_CTXSW_INTR 13
|
||||
#endif
|
||||
|
||||
/** Falcon index of mailbox 0. */
|
||||
@@ -100,9 +108,14 @@ struct nvgpu_ctxsw_ucode_segments {
|
||||
};
|
||||
|
||||
struct nvgpu_fecs_host_intr_status {
|
||||
/** Write this value to clear HOST_INT0 context switch error interrupt. */
|
||||
/**
|
||||
* Write this value to clear HOST_INT0 context switch error interrupt.
|
||||
*/
|
||||
u32 ctxsw_intr0;
|
||||
/** Write this value to clear HOST_INT1 context save completion interrupt. */
|
||||
/**
|
||||
* Write this value to clear HOST_INT1 context save completion
|
||||
* interrupt.
|
||||
*/
|
||||
u32 ctxsw_intr1;
|
||||
/** This flag is set for fault raised during ctxsw transaction. */
|
||||
bool fault_during_ctxsw_active;
|
||||
|
||||
Reference in New Issue
Block a user