Date: Fri, 17 Feb 2017 22:50:41 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r313903 - head/sys/x86/x86 Message-ID: <201702172250.v1HMofoE054632@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Fri Feb 17 22:50:41 2017 New Revision: 313903 URL: https://svnweb.freebsd.org/changeset/base/313903 Log: Rely on CPUID feature only to enable attaching. MTRR are architectural and there is no reason to check cpu family or vendor. Noted by: royger Reviewed by: jhb Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D9657 Modified: head/sys/x86/x86/x86_mem.c Modified: head/sys/x86/x86/x86_mem.c ============================================================================== --- head/sys/x86/x86/x86_mem.c Fri Feb 17 22:49:52 2017 (r313902) +++ head/sys/x86/x86/x86_mem.c Fri Feb 17 22:50:41 2017 (r313903) @@ -721,16 +721,6 @@ x86_mem_drvinit(void *unused) return; if (!(cpu_feature & CPUID_MTRR)) return; - if ((cpu_id & 0xf00) != 0x600 && (cpu_id & 0xf00) != 0xf00) - return; - switch (cpu_vendor_id) { - case CPU_VENDOR_INTEL: - case CPU_VENDOR_AMD: - case CPU_VENDOR_CENTAUR: - break; - default: - return; - } mem_range_softc.mr_op = &x86_mrops; x86_mrinit(&mem_range_softc); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702172250.v1HMofoE054632>