Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\amd_nb.c Create Date:2022-07-28 08:43:54
Last Modify:2020-03-16 21:36:56 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:amd_flush_garts

Proto:void amd_flush_garts(void)

Type:void

Parameter:Nothing

454  DEFINE_SPINLOCK(gart_lock)
456  If Not amd_nb_has_feature(AMD_NB_GART) Then Return
465  spin_lock_irqsave( & gart_lock, flags)
466  flushed = 0
467  When i < num cycle
468  pci_write_config_dword(misc, 0x9c, flush_words[i] | 1)
470  flushed++
472  When i < num cycle
475  cycle
476  pci_read_config_dword(misc, 0x9c, & w)
478  If Not (w & 1) Then Break
480  cpu_relax()
483  spin_unlock_irqrestore( & gart_lock, flags)
484  If Not flushed Then pr_notice("nothing to flush?\n")
Caller
NameDescribe
flush_gartUse global flush state to avoid races with multiple flushers.
enable_gart_translations