diff options
Diffstat (limited to 'usr/src/uts/sun4v/os/mach_cpu_states.c')
| -rw-r--r-- | usr/src/uts/sun4v/os/mach_cpu_states.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/usr/src/uts/sun4v/os/mach_cpu_states.c b/usr/src/uts/sun4v/os/mach_cpu_states.c index a6ffb2b256..737bb0e1ac 100644 --- a/usr/src/uts/sun4v/os/mach_cpu_states.c +++ b/usr/src/uts/sun4v/os/mach_cpu_states.c @@ -1075,20 +1075,7 @@ kdi_cpu_init(int dcache_size, int dcache_linesize, int icache_size, void kdi_flush_caches(void) { - /* - * May not be implemented by all sun4v architectures. - * - * Cannot use hsvc_version to see if the group is already - * negotiated or not because, this function is called by - * KMDB when it is at the console prompt which is running - * at highest PIL. hsvc_version grabs an adaptive mutex and - * this is a no-no at this PIL level. - */ - if (hsvc_kdi_mem_iflush_negotiated) { - uint64_t status = hv_mem_iflush_all(); - if (status != H_EOK) - cmn_err(CE_PANIC, "Flushing all I$ entries failed"); - } + /* Not required on sun4v architecture. */ } /*ARGSUSED*/ @@ -1101,16 +1088,6 @@ kdi_get_stick(uint64_t *stickp) void cpu_kdi_init(kdi_t *kdi) { - /* - * Any API negotiation this early in the boot will be unsuccessful. - * Therefore firmware for Sun4v platforms that have incoherent I$ are - * assumed to support pre-negotiated MEM_IFLUSH APIs. Successful - * invokation the MEM_IFLUSH_ALL is a test for is availability. - * Set a flag if successful indicating its availabitlity. - */ - if (hv_mem_iflush_all() == 0) - hsvc_kdi_mem_iflush_negotiated = B_TRUE; - kdi->kdi_flush_caches = kdi_flush_caches; kdi->mkdi_cpu_init = kdi_cpu_init; kdi->mkdi_cpu_ready_iter = kdi_cpu_ready_iter; |
