CVS commit: src/sys/arch/x86/include

2017-10-31 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Oct 31 10:39:13 UTC 2017 Modified Files: src/sys/arch/x86/include: cpu_extended_state.h Log Message: Add xsh_xcomp_bv and fx_zero, and use uint8_t instead. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/sys/

CVS commit: src/sys/arch/x86/x86

2017-10-31 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Oct 31 10:35:58 UTC 2017 Modified Files: src/sys/arch/x86/x86: fpu.c Log Message: Remove comments that are more misleading than anything else. While here make sure we zero out the FPU area entirely, and not just its legacy regio

CVS commit: src/sys/arch/x86/x86

2017-10-27 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Oct 27 23:22:01 UTC 2017 Modified Files: src/sys/arch/x86/x86: patch.c Log Message: Add comment explaining why membar_producer is not sfence. On x86, ordinary non-temporal stores are always issued in program order to main

CVS commit: src/sys/arch/x86/x86

2017-10-21 Thread Maya Rashish
Module Name:src Committed By: maya Date: Sun Oct 22 01:29:26 UTC 2017 Modified Files: src/sys/arch/x86/x86: efi.c x86_machdep.c Log Message: Add sysctl machdep.bootmethod either "UEFI" or "BIOS" to mimic freebsd To generate a diff of this commit: cvs rdiff -u -r1.13 -r1

CVS commit: src/sys/arch/x86/x86

2017-10-21 Thread Maya Rashish
Module Name:src Committed By: maya Date: Sun Oct 22 00:45:32 UTC 2017 Modified Files: src/sys/arch/x86/x86: efi.c Log Message: more static To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/sys/arch/x86/x86/efi.c Please note that diffs are not public doma

CVS commit: src/sys/arch/x86/x86

2017-10-21 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Oct 21 08:27:19 UTC 2017 Modified Files: src/sys/arch/x86/x86: sys_machdep.c Log Message: Forbid 64bit entries. That's it, now we support USER_LDT on amd64. To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 src/sys

CVS commit: src/sys/arch/x86/include

2017-10-18 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Thu Oct 19 06:29:16 UTC 2017 Modified Files: src/sys/arch/x86/include: specialreg.h Log Message: Add the following bits in AMD Fn800a %edx features (SVM features): PFThreshold (PAUSE filter threshold) AVIC (A

CVS commit: src/sys/arch/x86/include

2017-10-17 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Wed Oct 18 03:38:32 UTC 2017 Modified Files: src/sys/arch/x86/include: specialreg.h Log Message: Add Turbo Boost Max Technology 3.0 bit. To generate a diff of this commit: cvs rdiff -u -r1.103 -r1.104 src/sys/arch/x86/include/

CVS commit: src/sys/arch/x86/x86

2017-10-16 Thread Maya Rashish
Module Name:src Committed By: maya Date: Tue Oct 17 06:50:00 UTC 2017 Modified Files: src/sys/arch/x86/x86: vmt.c vmtreg.h Log Message: Update protocol reverse engineering URL to a working one only mention it once. >From openbsd by Seth Jackson To generate a diff of thi

CVS commit: src/sys/arch/x86/x86

2017-10-16 Thread Maya Rashish
Module Name:src Committed By: maya Date: Tue Oct 17 05:47:09 UTC 2017 Modified Files: src/sys/arch/x86/x86: vmt.c Log Message: Check that the host supports GET_SPEED as well as GET_VERSION before deciding vmt_probe has succeeded. qemu supports GET_VERSION but not the RPC

CVS commit: src/sys/arch/x86/x86

2017-10-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Oct 15 11:39:42 UTC 2017 Modified Files: src/sys/arch/x86/x86: sys_machdep.c Log Message: Remove this #undef on native amd64, but keep it on Xen. To generate a diff of this commit: cvs rdiff -u -r1.39 -r1.40 src/sys/arch/x86/x

CVS commit: src/sys/arch/x86/include

2017-10-13 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Fri Oct 13 13:53:54 UTC 2017 Modified Files: src/sys/arch/x86/include: specialreg.h Log Message: Add the following instruction bits in Structured Extended Flags Enumeration Leaf from "Intel Architecture Instruction Set Extension

CVS commit: src/sys/arch/x86/x86

2017-10-09 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Tue Oct 10 03:05:29 UTC 2017 Modified Files: src/sys/arch/x86/x86: procfs_machdep.c Log Message: Fix the location of AMD's smca(Scalable MCA) bit. Thanks Yasushi Oshima for finding this bug. To generate a diff of this commit:

CVS commit: src/sys/arch/x86/x86

2017-10-09 Thread Maya Rashish
Module Name:src Committed By: maya Date: Mon Oct 9 17:41:18 UTC 2017 Modified Files: src/sys/arch/x86/x86: identcpu.c Log Message: Don't probe for the no FPU case. it's not supported To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59 src/sys/arch/x86/x86/iden

CVS commit: src/sys/arch/x86/x86

2017-10-09 Thread Maya Rashish
Module Name:src Committed By: maya Date: Mon Oct 9 17:39:33 UTC 2017 Modified Files: src/sys/arch/x86/x86: identcpu.c Log Message: Simplify macro logic of cpu_probe_old_fpu To generate a diff of this commit: cvs rdiff -u -r1.57 -r1.58 src/sys/arch/x86/x86/identcpu.c Pl

CVS commit: src/sys/arch/x86/x86

2017-10-08 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Oct 8 13:49:38 UTC 2017 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Use roundup instead. Otherwise some (userland) pages could get mapped in the text large pages. We were using roundup to improve performance on i3

CVS commit: src/sys/arch/x86/x86

2017-10-04 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Thu Oct 5 03:24:40 UTC 2017 Modified Files: src/sys/arch/x86/x86: procfs_machdep.c Log Message: - Use per cpu ci->ci_max_cupid instead of global "cpuid_level" variable. - Print AMD specific cpuid leafs: 0x8008 ebx

CVS commit: src/sys/arch/x86/x86

2017-10-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Oct 2 19:23:16 UTC 2017 Modified Files: src/sys/arch/x86/x86: tsc.c tsc.h x86_machdep.c Log Message: Add a machdep.tsc_user_enable sysctl, to enable/disable the rdtsc instruction in usermode. It defaults to enabled. To genera

CVS commit: src/sys/arch/x86/x86

2017-09-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 30 12:35:48 UTC 2017 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: use bootspace (this branch is never taken) To generate a diff of this commit: cvs rdiff -u -r1.259 -r1.260 src/sys/arch/x86/x86/pmap.c Please

CVS commit: src/sys/arch/x86/x86

2017-09-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 30 12:29:58 UTC 2017 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Declare pmap_remap_global, and map the four regions independently with bootspace. To generate a diff of this commit: cvs rdiff -u -r1.258 -r1.2

CVS commit: src/sys/arch/x86/x86

2017-09-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 30 12:12:29 UTC 2017 Modified Files: src/sys/arch/x86/x86: db_memrw.c Log Message: use bootspace To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/x86/x86/db_memrw.c Please note that diffs are not p

CVS commit: src/sys/arch/x86/x86

2017-09-30 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 30 12:01:56 UTC 2017 Modified Files: src/sys/arch/x86/x86: x86_machdep.c Log Message: use bootspace To generate a diff of this commit: cvs rdiff -u -r1.94 -r1.95 src/sys/arch/x86/x86/x86_machdep.c Please note that diffs a

CVS commit: src/sys/arch/x86/include

2017-09-28 Thread Ryota Ozaki
Module Name:src Committed By: ozaki-r Date: Fri Sep 29 03:17:18 UTC 2017 Modified Files: src/sys/arch/x86/include: pmap.h Log Message: Fix build sys/arch/x86/x86/cpu.c:920:20: error: 'pmap_largepages' undeclared (first use in this function) smp_data.large = (pmap_large

CVS commit: src/sys/arch/x86/x86

2017-09-28 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Thu Sep 28 10:59:38 UTC 2017 Modified Files: src/sys/arch/x86/x86: procfs_machdep.c Log Message: Print the following cpuid bits: 0x000d:1 eax (xsaveopt, xsavec, xgetbv1, xsaves) 0x000f:0 edx (cqm_llc) 0x

CVS commit: src/sys/arch/x86/x86

2017-09-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 23 11:01:32 UTC 2017 Modified Files: src/sys/arch/x86/x86: x86_machdep.c Log Message: Make MTRR_GET privileged, the structures are not always zeroed (thereby leaking information), and beyond that we are not particularly inte

CVS commit: src/sys/arch/x86/acpi

2017-09-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 23 10:38:59 UTC 2017 Modified Files: src/sys/arch/x86/acpi: acpi_wakeup.c Log Message: Initialize the errata MSRs when waking up, otherwise they are clear and we're re-enabling certain CPU bugs. To generate a diff of this

CVS commit: src/sys/arch/x86/acpi

2017-09-23 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Sep 23 10:00:00 UTC 2017 Modified Files: src/sys/arch/x86/acpi: acpi_wakeup.c Log Message: Reinitialize the PAT MSR when waking up, otherwise the write-combined pages become write-through. To generate a diff of this commit: cv

CVS commit: src/sys/arch/x86/acpi

2017-09-18 Thread Maya Rashish
Module Name:src Committed By: maya Date: Tue Sep 19 01:22:14 UTC 2017 Modified Files: src/sys/arch/x86/acpi: acpi_wakeup.c Log Message: Remove unused macro To generate a diff of this commit: cvs rdiff -u -r1.46 -r1.47 src/sys/arch/x86/acpi/acpi_wakeup.c Please note that

CVS commit: src/sys/arch/x86/include

2017-09-16 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Sep 16 23:55:45 UTC 2017 Modified Files: src/sys/arch/x86/include: lock.h Log Message: more const To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/sys/arch/x86/include/lock.h Please note that diffs are no

CVS commit: src/sys/arch/x86/x86

2017-09-12 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Tue Sep 12 07:19:36 UTC 2017 Modified Files: src/sys/arch/x86/x86: identcpu.c Log Message: Set ci->ci_cflush_lsize correctly. This bug was added in the last commit(1.56). To generate a diff of this commit: cvs rdiff -u -r1.56 -

CVS commit: src/sys/arch/x86/x86

2017-09-11 Thread matthew green
Module Name:src Committed By: mrg Date: Tue Sep 12 01:01:25 UTC 2017 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: minor KNF. To generate a diff of this commit: cvs rdiff -u -r1.256 -r1.257 src/sys/arch/x86/x86/pmap.c Please note that diffs are not public do

CVS commit: src/sys/arch/x86/x86

2017-09-02 Thread Cherry G. Mathew
Module Name:src Committed By: cherry Date: Sun Sep 3 06:24:49 UTC 2017 Modified Files: src/sys/arch/x86/x86: intr.c Log Message: Remove redundant static function declaration To generate a diff of this commit: cvs rdiff -u -r1.102 -r1.103 src/sys/arch/x86/x86/intr.c Ple

CVS commit: src/sys/arch/x86/x86

2017-08-28 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Mon Aug 28 07:03:47 UTC 2017 Modified Files: src/sys/arch/x86/x86: procfs_machdep.c Log Message: Check buffer length correctly to not to print a garbage character. Fixes PR#52352 reported by Yasushi Oshima. To generate a diff

CVS commit: src/sys/arch/x86

2017-08-27 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Aug 27 08:38:32 UTC 2017 Modified Files: src/sys/arch/x86/include: cpu.h src/sys/arch/x86/x86: cpu.c Log Message: Localify. By the way, we should use a different stack for NMIs. To generate a diff of this commit: cvs r

CVS commit: src/sys/arch/x86/x86

2017-08-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 15 08:57:19 UTC 2017 Modified Files: src/sys/arch/x86/x86: kgdb_machdep.c Log Message: style To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/x86/x86/kgdb_machdep.c Please note that diffs are not p

CVS commit: src/sys/arch/x86/x86

2017-08-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 15 06:37:50 UTC 2017 Modified Files: src/sys/arch/x86/x86: bios32.c Log Message: style To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/x86/x86/bios32.c Please note that diffs are not public domain

CVS commit: src/sys/arch/x86/include

2017-08-12 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Aug 12 12:33:31 UTC 2017 Modified Files: src/sys/arch/x86/include: psl.h Log Message: Don't include opt_vm86.h. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/arch/x86/include/psl.h Please note that diff

CVS commit: src/sys/arch/x86/include

2017-08-10 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 11 06:27:12 UTC 2017 Modified Files: src/sys/arch/x86/include: specialreg.h Log Message: Add a comment about APICBASE_PHYSADDR. Has to do with PR/42597. To generate a diff of this commit: cvs rdiff -u -r1.100 -r1.101 src/s

CVS commit: src/sys/arch/x86/x86

2017-08-10 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Aug 11 06:18:29 UTC 2017 Modified Files: src/sys/arch/x86/x86: lapic.c Log Message: Fix a bug introduced in r1.55, this should be LAPIC_BASE. To generate a diff of this commit: cvs rdiff -u -r1.60 -r1.61 src/sys/arch/x86/x86/l

CVS commit: src/sys/arch/x86/acpi

2017-08-10 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Aug 10 13:13:03 UTC 2017 Modified Files: src/sys/arch/x86/acpi: acpi_wakeup.c Log Message: Save and restore xcr0 when doing ACPI sleeps. Should fix PR/49174. To generate a diff of this commit: cvs rdiff -u -r1.45 -r1.46 src/sy

CVS commit: src/sys/arch/x86/include

2017-08-10 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Aug 10 12:46:31 UTC 2017 Modified Files: src/sys/arch/x86/include: cpu_extended_state.h Log Message: Remove the svr4/ibcs2 fpu flags. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/arch/x86/include/cpu_e

CVS commit: src/sys/arch/x86/x86

2017-08-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Aug 7 17:31:11 UTC 2017 Modified Files: src/sys/arch/x86/x86: pmc.c Log Message: Fix GCC warning on NET4501, PR/52451. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/arch/x86/x86/pmc.c Please note that

CVS commit: src/sys/arch/x86/x86

2017-08-07 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Aug 7 17:10:09 UTC 2017 Modified Files: src/sys/arch/x86/x86: idt.c Log Message: Remove incorrect KASSERT, only the allocation is protected by cpu_lock. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/arch

CVS commit: src/sys/arch/x86/x86

2017-07-31 Thread Jaromir Dolecek
Module Name:src Committed By: jdolecek Date: Mon Jul 31 19:29:19 UTC 2017 Modified Files: src/sys/arch/x86/x86: bus_dma.c Log Message: modify code handling mismatch of nsegs in _bus_dmamem_alloc_range() to a KASSERT() - plain return leaks memory, and this condition should

CVS commit: src/sys/arch/x86/x86

2017-07-31 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Mon Jul 31 18:54:40 UTC 2017 Modified Files: src/sys/arch/x86/x86: intr.c Log Message: Use idt_vec_set instead. To generate a diff of this commit: cvs rdiff -u -r1.101 -r1.102 src/sys/arch/x86/x86/intr.c Please note that diffs ar

CVS commit: src/sys/arch/x86/pci

2017-07-28 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Jul 28 14:26:51 UTC 2017 Modified Files: src/sys/arch/x86/pci: msipic.c pci_addr_fixup.c pci_intr_machdep.c pci_msi_machdep.c Log Message: Don't include malloc.h. To generate a diff of this commit: cvs rdiff -u -r1

CVS commit: src/sys/arch/x86/x86

2017-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Jul 28 14:13:11 UTC 2017 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: #if DIAGNOSTIC panic ---> KASSERTMSG To generate a diff of this commit: cvs rdiff -u -r1.255 -r1.256 src/sys/arch/x86/x86/pmap.c Please n

CVS commit: src/sys/arch/x86/x86

2017-07-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Jul 28 14:12:26 UTC 2017 Modified Files: src/sys/arch/x86/x86: cpu.c Log Message: cpu_trace is no more, remove vestige of it that broke ALL kernel. To generate a diff of this commit: cvs rdiff -u -r1.131 -r1.132 src/sys/a

CVS commit: src/sys/arch/x86/isa

2017-07-21 Thread Cherry G. Mathew
Module Name:src Committed By: cherry Date: Fri Jul 21 12:27:48 UTC 2017 Modified Files: src/sys/arch/x86/isa: isa_machdep.c Log Message: Fix uninitialised use of variable mpih Pointed out by joerg@ To generate a diff of this commit: cvs rdiff -u -r1.35 -r1.36 src/sys/ar

CVS commit: src/sys/arch/x86/x86

2017-07-12 Thread NONAKA Kimihiro
Module Name:src Committed By: nonaka Date: Thu Jul 13 00:44:14 UTC 2017 Modified Files: src/sys/arch/x86/x86: lapic.c Log Message: PR/52266: Before access MSR[APICBASE], need to check if APIC is present. To generate a diff of this commit: cvs rdiff -u -r1.59 -r1.60 src/s

CVS commit: src/sys/arch/x86/include

2017-07-11 Thread Andreas Gustafsson
Module Name:src Committed By: gson Date: Tue Jul 11 14:00:16 UTC 2017 Modified Files: src/sys/arch/x86/include: specialreg.h Log Message: Fix typo in comment To generate a diff of this commit: cvs rdiff -u -r1.99 -r1.100 src/sys/arch/x86/include/specialreg.h Please note

CVS commit: src/sys/arch/x86/x86

2017-07-08 Thread NONAKA Kimihiro
Module Name:src Committed By: nonaka Date: Sat Jul 8 14:35:33 UTC 2017 Modified Files: src/sys/arch/x86/x86: lapic.c Log Message: PR/52266: use rdmsr_safe(9) instead of rdmsr(9) for old machine. tested by simonb@ To generate a diff of this commit: cvs rdiff -u -r1.58 -

CVS commit: src/sys/arch/x86/x86

2017-06-25 Thread Manuel Bouyer
Module Name:src Committed By: bouyer Date: Sun Jun 25 22:16:46 UTC 2017 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Xen/i386PAE is special, in that top-level entries are not in per-pmap tables but per-CPU pages. pmap_alloc_level() takes care of making new ent

CVS commit: src/sys/arch/x86/x86

2017-06-25 Thread Manuel Bouyer
Module Name:src Committed By: bouyer Date: Sun Jun 25 12:42:40 UTC 2017 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Page tables are not writable under Xen, so we can't memcpy() to them. Rewite to do the copy using pmap_pte_set() in the Xen case. To generate

CVS commit: src/sys/arch/x86/x86

2017-06-23 Thread Jaromir Dolecek
Module Name:src Committed By: jdolecek Date: Fri Jun 23 23:40:00 UTC 2017 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: remove panicstr KASSERT() in pmap_kremove_local() - kernel dump can legitimely invoked also without panic - via reboot -d fixes PR kern/4961

CVS commit: src/sys/arch/x86/x86

2017-06-22 Thread Joerg Sonnenberger
Module Name:src Committed By: joerg Date: Thu Jun 22 13:32:47 UTC 2017 Modified Files: src/sys/arch/x86/x86: ipmi.c Log Message: Use a proper format string. To generate a diff of this commit: cvs rdiff -u -r1.65 -r1.66 src/sys/arch/x86/x86/ipmi.c Please note that diffs

CVS commit: src/sys/arch/x86/x86

2017-06-21 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Jun 21 21:55:07 UTC 2017 Modified Files: src/sys/arch/x86/x86: ipmi.c Log Message: knf, fix more error and debugging messages. To generate a diff of this commit: cvs rdiff -u -r1.64 -r1.65 src/sys/arch/x86/x86/ipmi.c Plea

CVS commit: src/sys/arch/x86/include

2017-06-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jun 17 08:07:03 UTC 2017 Modified Files: src/sys/arch/x86/include: pmap.h Log Message: Actually, use slot 456 instead, so that it fits a cache line. To generate a diff of this commit: cvs rdiff -u -r1.66 -r1.67 src/sys/arch/x8

CVS commit: src/sys/arch/x86/x86

2017-06-17 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Jun 17 07:45:13 UTC 2017 Modified Files: src/sys/arch/x86/x86: vm_machdep.c Log Message: Check (inside), not (!outside). It explains the two install failures reported between pmap.h::r1.65 and vmparam.h::r1.40. To generate a d

CVS commit: src/sys/arch/x86/x86

2017-06-15 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Jun 15 18:15:53 UTC 2017 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: tidy up printf/kasserts; no functional change. To generate a diff of this commit: cvs rdiff -u -r1.250 -r1.251 src/sys/arch/x86/x86/pmap.c

CVS commit: src/sys/arch/x86/x86

2017-06-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jun 15 13:42:56 UTC 2017 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Fix a subtle but important bug in pmap_growkernel. When adding new toplevel slots to pmap_kernel, we are implicitly using the recursive slot; but

CVS commit: src/sys/arch/x86/x86

2017-06-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jun 15 09:31:48 UTC 2017 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Mmh, correctly handle the physmem % lvl == 0 case. Don't know how I didn't see this in the first place. To generate a diff of this commit: cvs

CVS commit: src/sys/arch/x86/x86

2017-06-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jun 15 07:05:32 UTC 2017 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Limit the size of the direct map with a 2MB granularity (instead of 1GB). This way if there's a computation error somewhere we will fault earlier

CVS commit: src/sys/arch/x86/x86

2017-06-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jun 15 06:32:52 UTC 2017 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Reorder these loops to reduce the number of enter->flush. I figured out yesterday that this has a clear impact: a system with 16TB of hard-coded

CVS commit: src/sys/arch/x86

2017-06-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Jun 14 14:17:15 UTC 2017 Modified Files: src/sys/arch/x86/include: pmap.h src/sys/arch/x86/x86: pmap.c Log Message: Give the direct map 32 slots (16TB of va). This matches MAXPHYSMEM, in such a way that the direct map is

CVS commit: src/sys/arch/x86/include

2017-06-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Jun 14 12:49:37 UTC 2017 Modified Files: src/sys/arch/x86/include: pmap.h Log Message: Move the direct map from slot 509 to slot 460. We will increase its size dynamically. To generate a diff of this commit: cvs rdiff -u -r1.6

CVS commit: src/sys/arch/x86/include

2017-06-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Jun 14 08:45:42 UTC 2017 Modified Files: src/sys/arch/x86/include: specialreg.h Log Message: Add EFER_TCE. This would be an interesting feature to have, since it reduces the indirect cost of invlpg; but I'm not convinced the way

CVS commit: src/sys/arch/x86/x86

2017-06-14 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Jun 14 08:12:22 UTC 2017 Modified Files: src/sys/arch/x86/x86: x86_machdep.c Log Message: Fix a bug introduced in bus_space.c::r1.39. This check too is hard-coded. Might have had a cumulative effect on PR/52000. To generate a

CVS commit: src/sys/arch/x86/x86

2017-06-09 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Sat Jun 10 05:31:34 UTC 2017 Modified Files: src/sys/arch/x86/x86: cpu.c Log Message: Further reduce the loop counter so that hatching completes before the boot processor times us out. Add a nice big XXX comment for why the cou

CVS commit: src/sys/arch/x86/x86

2017-05-31 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed May 31 14:41:07 UTC 2017 Modified Files: src/sys/arch/x86/x86: cpu.c Log Message: And now do what 1.128 should have done, and put back the (now re-)used variable that had earlier been deleted, when it's use was removed in 1.126,

CVS commit: src/sys/arch/x86/x86

2017-05-31 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed May 31 14:37:19 UTC 2017 Modified Files: src/sys/arch/x86/x86: cpu.c Log Message: Revert previous. Removing unused variable declarations is only a good idea when the variable is, in fact, unused. To generate a diff of this co

CVS commit: src/sys/arch/x86/x86

2017-05-31 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Wed May 31 10:15:18 UTC 2017 Modified Files: src/sys/arch/x86/x86: cpu.c Log Message: Remove unused variabe (I reverted too much in previous commit!) To generate a diff of this commit: cvs rdiff -u -r1.127 -r1.128 src/sys/arch

CVS commit: src/sys/arch/x86/x86

2017-05-31 Thread Paul Goyette
Module Name:src Committed By: pgoyette Date: Wed May 31 10:08:24 UTC 2017 Modified Files: src/sys/arch/x86/x86: cpu.c Log Message: Partially revert previous. Rather than completely removing the loop around calls to x86_pause(), just drastically reduce the repeat count. It

CVS commit: src/sys/arch/x86/x86

2017-05-30 Thread Maya Rashish
Module Name:src Committed By: maya Date: Wed May 31 00:19:17 UTC 2017 Modified Files: src/sys/arch/x86/x86: cpu.c Log Message: Do not pause many times between testing if the CPU can go. This only impacts QEMU as QEMU's implementation of pause is significantly slower than

CVS commit: src/sys/arch/x86

2017-05-22 Thread NONAKA Kimihiro
Module Name:src Committed By: nonaka Date: Tue May 23 03:23:58 UTC 2017 Modified Files: src/sys/arch/x86/include: i82093var.h src/sys/arch/x86/x86: lapic.c Log Message: whitespace To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/arch/x86/incl

CVS commit: src/sys/arch/x86

2017-05-22 Thread NONAKA Kimihiro
Module Name:src Committed By: nonaka Date: Tue May 23 03:18:40 UTC 2017 Modified Files: src/sys/arch/x86/include: i82093var.h src/sys/arch/x86/x86: mpbios.c Log Message: x86: No ioapic_softc.sc_apicid is used anymore. Use ioapic_softc.sc_pic.pic_apicid. To gener

CVS commit: src/sys/arch/x86/x86

2017-05-14 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Mon May 15 04:21:14 UTC 2017 Modified Files: src/sys/arch/x86/x86: procfs_machdep.c Log Message: - Print 0x0007:0 ecx leaf bits. - Don't print fdiv_bug on amd64. - Print APIC ID, Initial APIC ID and clflush size. To generat

CVS commit: src/sys/arch/x86/include

2017-05-14 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Mon May 15 04:02:52 UTC 2017 Modified Files: src/sys/arch/x86/include: cpu.h specialreg.h Log Message: CPUID_CFLUSH bit is not for CFLUSH insn but CLFLUSH insn, so modify comments and snprintb() sring. To generate a diff of th

CVS commit: src/sys/arch/x86/x86

2017-05-10 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Wed May 10 08:02:37 UTC 2017 Modified Files: src/sys/arch/x86/x86: identcpu.c Log Message: Print package ID, core ID and SMT ID. To generate a diff of this commit: cvs rdiff -u -r1.53 -r1.54 src/sys/arch/x86/x86/identcpu.c Pl

CVS commit: src/sys/arch/x86/include

2017-04-27 Thread NONAKA Kimihiro
Module Name:src Committed By: nonaka Date: Fri Apr 28 01:23:58 UTC 2017 Modified Files: src/sys/arch/x86/include: i82489reg.h Log Message: Added AMD extended APIC register space present definition. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/arc

CVS commit: src/sys/arch/x86/include

2017-04-21 Thread NONAKA Kimihiro
Module Name:src Committed By: nonaka Date: Sat Apr 22 04:25:09 UTC 2017 Modified Files: src/sys/arch/x86/include: i82093reg.h Log Message: Added I/O APIC EOI register definition. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/arch/x86/include/i82093r

CVS commit: src/sys/arch/x86

2017-04-21 Thread NONAKA Kimihiro
Module Name:src Committed By: nonaka Date: Sat Apr 22 04:24:26 UTC 2017 Modified Files: src/sys/arch/x86/include: i82489reg.h specialreg.h src/sys/arch/x86/x86: lapic.c Log Message: move LAPIC_MSR* to specialreg.h. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/sys/arch/x86/include

2017-04-21 Thread NONAKA Kimihiro
Module Name:src Committed By: nonaka Date: Sat Apr 22 04:23:17 UTC 2017 Modified Files: src/sys/arch/x86/include: i82489reg.h specialreg.h Log Message: Add x2APIC register definitions. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/arch/x86/include

CVS commit: src/sys/arch/x86/x86

2017-04-19 Thread Kengo NAKAHARA
Module Name:src Committed By: knakahara Date: Thu Apr 20 02:42:59 UTC 2017 Modified Files: src/sys/arch/x86/x86: intr.c Log Message: always notice if the device's interrupt set affinity to other than CPU#0. suggested by msaitoh@n.o. To generate a diff of this commit: cv

CVS commit: src/sys/arch/x86/include

2017-04-18 Thread NONAKA Kimihiro
Module Name:src Committed By: nonaka Date: Wed Apr 19 06:43:05 UTC 2017 Modified Files: src/sys/arch/x86/include: cpuvar.h i82489var.h Log Message: remove prototypes of nonexistent function. To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 src/sys/arch/x86/i

CVS commit: src/sys/arch/x86/x86

2017-04-18 Thread Maya Rashish
Module Name:src Committed By: maya Date: Tue Apr 18 15:14:28 UTC 2017 Modified Files: src/sys/arch/x86/x86: pmc.c Log Message: switch pmc_ncounters to unsigned int. matches userland pmc, makes it clear to static analyzers that if the loop in pmc_nmi (for (i = 0; i < pmc_n

CVS commit: src/sys/arch/x86/x86

2017-04-18 Thread Kengo NAKAHARA
Module Name:src Committed By: knakahara Date: Tue Apr 18 11:49:50 UTC 2017 Modified Files: src/sys/arch/x86/x86: intr.c Log Message: change aprint_verbose() to know easily msi devices affinity to CPU#0 or not. suggested by msaitoh@n.o. To generate a diff of this commit:

CVS commit: src/sys/arch/x86/x86

2017-04-18 Thread Kengo NAKAHARA
Module Name:src Committed By: knakahara Date: Tue Apr 18 11:44:38 UTC 2017 Modified Files: src/sys/arch/x86/x86: intr.c Log Message: use DPRINTF instead of #define INTRDEBUG and printf(). To generate a diff of this commit: cvs rdiff -u -r1.97 -r1.98 src/sys/arch/x86/x86/

CVS commit: src/sys/arch/x86/pci

2017-04-14 Thread Kengo NAKAHARA
Module Name:src Committed By: knakahara Date: Fri Apr 14 09:34:46 UTC 2017 Modified Files: src/sys/arch/x86/pci: pci_msi_machdep.c Log Message: disable msi/msix when the system doesn't detect ioapic. This would fix PR kern/52111. Some system does not detect ioapic when "

CVS commit: src/sys/arch/x86

2017-04-13 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Apr 14 04:43:47 UTC 2017 Modified Files: src/sys/arch/x86/include: cpu.h src/sys/arch/x86/x86: x86_machdep.c Log Message: x86: Export fpu_save, fpu_save_size, xsave_features to dedicated sysctl nodes Add new defines:

CVS commit: src/sys/arch/x86/x86

2017-03-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Mar 24 19:21:07 UTC 2017 Modified Files: src/sys/arch/x86/x86: pmc.c Log Message: Handle counter overflows, and sample with 50 events per interrupt. It's a pre-requisite for real sampling. Overflows are not yet displayed by

CVS commit: src/sys/arch/x86/x86

2017-03-24 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Mar 24 10:58:06 UTC 2017 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Don't forget to flush the xpq queue, otherwise shit may happen. To generate a diff of this commit: cvs rdiff -u -r1.244 -r1.245 src/sys/arch/x8

CVS commit: src/sys/arch/x86/x86

2017-03-19 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Mar 19 22:19:05 UTC 2017 Modified Files: src/sys/arch/x86/x86: intr.c Log Message: #if DIAGNOSTIC panic ---> KASSERT To generate a diff of this commit: cvs rdiff -u -r1.96 -r1.97 src/sys/arch/x86/x86/intr.c Please note t

CVS commit: src/sys/arch/x86/x86

2017-03-15 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Wed Mar 15 16:42:18 UTC 2017 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Add a comment to answer a question regarding privilege separation when modifying a PTE from an active page tree. The question is from Manuel Bouy

CVS commit: src/sys/arch/x86/x86

2017-03-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Mar 11 14:13:39 UTC 2017 Modified Files: src/sys/arch/x86/x86: pmc.c Log Message: Mmh, remove a debug printf I mistakenly added in my previous commit To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/arch/x86

CVS commit: src/sys/arch/x86/x86

2017-03-08 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Thu Mar 9 00:21:55 UTC 2017 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: in pmap_get_ptp(), if we need to allocate multiple new ptp levels and succeed in allocating some pages but fail to get them all, free any ptps we

CVS commit: src/sys/arch/x86/include

2017-03-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Mar 5 09:08:18 UTC 2017 Modified Files: src/sys/arch/x86/include: pmap.h Log Message: Remove PG_u from the kernel pages on Xen. Otherwise there is no privilege separation between the kernel and userland. On Xen-amd64, the kern

CVS commit: src/sys/arch/x86/x86

2017-03-05 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Mar 5 08:36:35 UTC 2017 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Should be PG_k, doesn't change anything. To generate a diff of this commit: cvs rdiff -u -r1.240 -r1.241 src/sys/arch/x86/x86/pmap.c Please no

CVS commit: src/sys/arch/x86

2017-02-24 Thread NONAKA Kimihiro
Module Name:src Committed By: nonaka Date: Sat Feb 25 01:13:50 UTC 2017 Modified Files: src/sys/arch/x86/pci: pci_machdep.c src/sys/arch/x86/x86: genfb_machdep.c Log Message: EFI console is drawing faster by shadowfb. To generate a diff of this commit: cvs rdiff

CVS commit: src/sys/arch/x86

2017-02-23 Thread NONAKA Kimihiro
Module Name:src Committed By: nonaka Date: Thu Feb 23 12:17:36 UTC 2017 Modified Files: src/sys/arch/x86/include: efi.h src/sys/arch/x86/x86: efi.c Log Message: Avoid panic when amd64 kernel is booted from 32bit UEFI. To generate a diff of this commit: cvs rdiff

<    1   2   3   4   5   6   7   8   9   10   >