padlock: Restore padlock_rng to the amd64 build

Revert 88a53301e1 and d1ca01059d .  They removed padlock_rng from the
amd64 build under the mistaken belief that this device was available on
32-bit processors only.  But it's also available on the 64-bit Via Nano,
Nano X2, and some Zhaoxin CPUs.

PR:		295517
Fixes:		88a53301e1 ("padlock.4: only install on i386")
Fixes:		d1ca01059d ("padlock(4)/nehemiah: move i386-only entropy")
MFC after:	1 week
Reviewed by:	kib
Differential Revision: https://reviews.freebsd.org/D57215
This commit is contained in:
Alan Somers
2026-05-23 18:19:13 -06:00
parent 3525c619ab
commit 14b8531c4c
8 changed files with 6 additions and 15 deletions
+1 -4
View File
@@ -903,6 +903,7 @@ _ntb_hw_intel.4= ntb_hw_intel.4
_ntb_hw_plx.4= ntb_hw_plx.4
_ntb_transport.4=ntb_transport.4
_nvram.4= nvram.4
_padlock.4= padlock.4
_pchtherm.4= pchtherm.4
_qat.4= qat.4
_qat_c2xxx.4= qat_c2xxx.4
@@ -949,10 +950,6 @@ _vmm.4= vmm.4
.endif
.endif
.if ${MACHINE_CPUARCH} == "i386"
_padlock.4= padlock.4
.endif
.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "aarch64"
_hwt.4= hwt.4
.if ${MACHINE_CPUARCH} == "amd64"
+1
View File
@@ -329,6 +329,7 @@ device xz # lzma decompression
device bpf # Berkeley packet filter
# random(4)
device padlock_rng # VIA Padlock RNG
device rdrand_rng # Intel Bull Mountain RNG
# Disabled for now since tpm(4) breaks suspend/resume.
#device tpm # Trusted Platform Module
+1
View File
@@ -125,6 +125,7 @@ device ether # Ethernet support
device bpf # Berkeley packet filter
# random(4)
device padlock_rng # VIA Padlock RNG
device rdrand_rng # Intel Bull Mountain RNG
# Disabled for now since tpm(4) breaks suspend/resume.
#device tpm # Trusted Platform Module
-1
View File
@@ -33,7 +33,6 @@ dev/hyperv/vmbus/i386/hyperv_machdep.c optional hyperv
dev/le/if_le_isa.c optional le isa
dev/ofw/ofw_pcib.c optional fdt pci
dev/pcf/pcf_isa.c optional pcf
dev/random/nehemiah.c optional padlock_rng !random_loadable
dev/sbni/if_sbni.c optional sbni
dev/sbni/if_sbni_isa.c optional sbni isa
dev/sbni/if_sbni_pci.c optional sbni pci
+1
View File
@@ -310,6 +310,7 @@ dev/ntb/ntb_hw/ntb_hw_plx.c optional ntb_hw_plx | ntb_hw
dev/ntb/test/ntb_tool.c optional ntb_tool
dev/nvram/nvram.c optional nvram isa
dev/random/ivy.c optional rdrand_rng !random_loadable
dev/random/nehemiah.c optional padlock_rng !random_loadable
dev/random/rdseed.c optional rdrand_rng !random_loadable
dev/qat_c2xxx/qat.c optional qat_c2xxx
dev/qat_c2xxx/qat_ae.c optional qat_c2xxx
-7
View File
@@ -296,13 +296,6 @@ envvar hint.pcf.0.irq="5"
#
device glxsb # AMD Geode LX Security Block
#
# padlock is a driver for the cryptographic functions and RNG in
# VIA C3, C7, and Eden processors.
# Requires 'device crypto'.
#
device padlock_rng # VIA Padlock RNG
#####################################################################
# ABI Emulation
+1 -3
View File
@@ -838,6 +838,7 @@ _nfe= nfe
_nvram= nvram
.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
_padlock= padlock
_padlock_rng= padlock_rng
_rdrand_rng= rdrand_rng
_rdseed_rng= rdseed_rng
.endif
@@ -911,9 +912,6 @@ _glxsb= glxsb
_pcfclock= pcfclock
_pst= pst
_sbni= sbni
.if ${MK_CRYPT} != "no" || defined(ALL_MODULES)
_padlock_rng= padlock_rng
.endif
.endif
.if ${MACHINE_ARCH} == "armv7"
+1
View File
@@ -549,6 +549,7 @@ envvar hint.pbio.0.port="0x360"
device smbios
device vpd
device tpm
device padlock_rng # VIA Padlock RNG
device rdrand_rng # Intel Bull Mountain RNG
device aesni # AES-NI OpenCrypto module
device ossl # OpenSSL OpenCrypto module