Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\resctrl\pseudo_lock.c Create Date:2022-07-28 08:13:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pseudo_lock_fn - Load kernel memory into cache*@_rdtgrp: resource group to which pseudo-lock region belongs* This is the core pseudo-locking flow

Proto:static int pseudo_lock_fn(void *_rdtgrp)

Type:int

Parameter:

TypeParameterName
void *_rdtgrp
415  rdtgrp = _rdtgrp
416  plr = plr
445  native_wbinvd()
451  local_irq_disable()
462  __wrmsr(MSR_MISC_FEATURE_CONTROL, The bits needed to disable hardware prefetching varies based on the* platform. During initialization we will discover which bits to use., 0x0)
463  closid_p = Operations with implied preemption/interrupt protection. These* operations can be used without worrying about preemption or interrupt.(cur_closid)
464  rmid_p = Operations with implied preemption/interrupt protection. These* operations can be used without worrying about preemption or interrupt.(cur_rmid)
465  mem_r = kmem
466  size = size
467  line_size = line_size
474  __wrmsr(IA32_PQR_ASSOC, rmid_p, closid)
484  When i < size cycle
489  rmb()
490  asm volatile
495  When i < size cycle
500  rmb()
501  asm volatile
510  __wrmsr(IA32_PQR_ASSOC, rmid_p, closid_p)
513  wrmsr(MSR_MISC_FEATURE_CONTROL, 0x0, 0x0)
514  The local_irq_*() APIs are equal to the raw_local_irq*()* if !TRACE_IRQFLAGS.()
516  thread_done = 1
517  wake_up_interruptible( & lock_thread_wq)
518  Return 0