Page MenuHomeFreeBSD

Add AMD SVM features to dmesg.
ClosedPublic

Authored by grehan on Oct 25 2014, 2:40 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 1, 7:59 PM
Unknown Object (File)
Sep 23 2024, 4:37 PM
Unknown Object (File)
Sep 23 2024, 4:36 PM
Unknown Object (File)
Sep 23 2024, 4:36 PM
Unknown Object (File)
Sep 23 2024, 3:28 PM
Unknown Object (File)
Sep 20 2024, 2:33 PM
Unknown Object (File)
Sep 9 2024, 12:54 AM
Unknown Object (File)
Sep 9 2024, 12:06 AM
Subscribers
None

Details

Summary

Output a summary of optional SVM features in dmesg similar to CPU features. If bootverbose is enabled, a detailed list is provided; otherwise, a single-line summary is displayed.

Test Plan

Booted an Opteron 6320 with/without SVM enabled in the BIOS, and with/without a verbose boot.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

grehan retitled this revision from to Add AMD SVM features to dmesg..
grehan updated this object.
grehan edited the test plan for this revision. (Show Details)
grehan added reviewers: jhb, neel.

Short (default) output with SVM enabled:

CPU: AMD Opteron(tm) Processor 6320                  (2800.06-MHz K8-class CPU)
Origin="AuthenticAMD"  Id=0x600f20  Family=0x15  Model=0x2  Stepping=0
Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
Features2=0x3e98320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4.1,SSE4.2,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C>
AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
AMD Features2=0x1ebbfff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,XOP,SKINIT,WDT,LWP,FMA4,TCE,NodeId,TBM,Topology,PCXC,PNXC>
Structured Extended Features=0x8<BMI1>
SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=65536
TSC: P-state invariant, performance statistics

Short output with SVM disabled:

CPU: AMD Opteron(tm) Processor 6320                  (2800.06-MHz K8-class CPU)
Origin="AuthenticAMD"  Id=0x600f20  Family=0x15  Model=0x2  Stepping=0
Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
Features2=0x3e98320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4.1,SSE4.2,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C>
AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
AMD Features2=0x1ebbfff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,XOP,SKINIT,WDT,LWP,FMA4,TCE,NodeId,TBM,Topology,PCXC,PNXC>
Structured Extended Features=0x8<BMI1>
SVM: (disabled in BIOS) NP,NRIP,VClean,AFlush,DAssist,NAsids=65536
TSC: P-state invariant, performance statistics

Verbose output with SVM enabled:

CPU: AMD Opteron(tm) Processor 6320                  (2800.06-MHz K8-class CPU)
Origin="AuthenticAMD"  Id=0x600f20  Family=0x15  Model=0x2  Stepping=0
Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
Features2=0x3e98320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4.1,SSE4.2,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C>
AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
AMD Features2=0x1ebbfff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,XOP,SKINIT,WDT,LWP,FMA4,TCE,NodeId,TBM,Topology,PCXC,PNXC>
Structured Extended Features=0x8<BMI1>
SVM: Features=0x1cff<NP,LbrVirt,SVML,NRIPS,TscRateMsr,VmcbClean,FlushByAsid,DecodeAssist,PauseFilter,<b11>,PauseFilterThreshold>
Revision=1, ASIDs=65536

Verbose with SVM disabled:

CPU: AMD Opteron(tm) Processor 6320                  (2800.06-MHz K8-class CPU)
Origin="AuthenticAMD"  Id=0x600f20  Family=0x15  Model=0x2  Stepping=0
Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
Features2=0x3e98320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4.1,SSE4.2,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C>
AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
AMD Features2=0x1ebbfff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,XOP,SKINIT,WDT,LWP,FMA4,TCE,NodeId,TBM,Topology,PCXC,PNXC>
Structured Extended Features=0x8<BMI1>
SVM: (disabled in BIOS) Features=0x1cff<NP,LbrVirt,SVML,NRIPS,TscRateMsr,VmcbClean,FlushByAsid,DecodeAssist,PauseFilter,<b11>,PauseFilterThreshold>
Revision=1, ASIDs=65536

Reviewers: I'm extremely open to changing the SVM dmesg text/ordering/etc.

neel edited edge metadata.

Looks good.

This revision is now accepted and ready to land.Oct 25 2014, 2:59 AM
jhb edited edge metadata.
grehan updated this revision to Diff 2130.

Closed by commit rS273748 (authored by @grehan).