123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- #ifndef __GRU_H__
- #define __GRU_H__
- #define GRU_CACHE_LINE_BYTES 64
- #define GRU_HANDLE_STRIDE 256
- #define GRU_CB_BASE 0
- #define GRU_DS_BASE 0x20000
- #if defined(CONFIG_IA64)
- #define GRU_GSEG_PAGESIZE (256 * 1024UL)
- #elif defined(CONFIG_X86_64)
- #define GRU_GSEG_PAGESIZE (256 * 1024UL)
- #else
- #error "Unsupported architecture"
- #endif
- struct gru_chiplet_info {
- int node;
- int chiplet;
- int blade;
- int total_dsr_bytes;
- int total_cbr;
- int total_user_dsr_bytes;
- int total_user_cbr;
- int free_user_dsr_bytes;
- int free_user_cbr;
- };
- struct gru_gseg_statistics {
- unsigned long fmm_tlbmiss;
- unsigned long upm_tlbmiss;
- unsigned long tlbdropin;
- unsigned long context_stolen;
- unsigned long reserved[10];
- };
- #define GRU_OPT_MISS_DEFAULT 0x0000
- #define GRU_OPT_MISS_USER_POLL 0x0001
- #define GRU_OPT_MISS_FMM_INTR 0x0002
- #define GRU_OPT_MISS_FMM_POLL 0x0003
- #define GRU_OPT_MISS_MASK 0x0003
- #endif
|