Date: Sun, 08 Dec 2024 01:43:22 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 283187] dev/random doesn't seem to utilize hardware feature(s) on AMD Zen family Message-ID: <bug-283187-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283187 Bug ID: 283187 Summary: dev/random doesn't seem to utilize hardware feature(s) on AMD Zen family Product: Base System Version: 14.1-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: diizzy@FreeBSD.org CC: cem@freebsd.org, delphij@FreeBSD.org, emaste@freebsd.org, glebius@FreeBSD.org, gordon@FreeBSD.org, markm@FreeBSD.org Hi, Maybe I'm reading the code incorrectly and misunderstand how kern.random.random_sources is supposed to work but from what I can tell it doesn't seem like the kernel is using RDSEED (and RDRAND) which is availabl= e on AMD Zen CPUs? # sysctl kern.random.random_sources kern.random.random_sources: References: https://www.amd.com/content/dam/amd/en/documents/developer/amd-secure-rando= m-number-generator-library-2.0-whitepaper.pdf https://www.uops.info/html-instr/RDSEED_R64.html dmesg output: CPU: AMD Ryzen 9 7900 12-Core Processor (3693.12-MHz K8-class = CPU) Origin=3D"AuthenticAMD" Id=3D0xa60f12 Family=3D0x19 Model=3D0x61 Step= ping=3D2 =20 Features=3D0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,= MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT> =20 Features2=3D0x7ef8320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4.1,SSE4.2,x2AP= IC,MOVBE,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND> AMD Features=3D0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM> AMD Features2=3D0x75c237ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW= ,IBS,SKINIT,WDT,TCE,Topology,PCXC,PNXC,DBE,PL2I,MWAITX,ADMSKX> Structured Extended Features=3D0xf1bf97a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,PQM,PQE,AVX= 512F,AVX512DQ,RDSEED,ADX,SMAP,AVX512IFMA,CLFLUSHOPT,CLWB,AVX512CD,SHA,AVX51= 2BW,AVX512VL> Structured Extended Features2=3D0x405fde<AVX512VBMI,UMIP,PKU,OSPKE,AVX512VBMI2,GFNI,VAES,VPCLMU= LQDQ,AVX512VNNI,AVX512BITALG,AVX512VPOPCNTDQ,RDPID> Structured Extended Features3=3D0x10000010<FSRM,L1DFL> XSAVE Features=3D0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES> AMD Extended Feature Extensions ID EBX=3D0x791ef257<CLZERO,IRPerf,XSaveErPtr,RDPRU,BE,WBNOINVD,IBPB,INT_WBINVD= ,IBRS,STIBP,STIBP_ALWAYSON,PREFER_IBRS,SAMEMODE_IBRS,NOLMSLE,SSBD,CPPC,PSFD= ,BTC_NO,IBPB_RET> SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=3D32768 TSC: P-state invariant, performance statistics --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-283187-227>