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

2017-11-26 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Nov 26 11:37:10 UTC 2017 Modified Files: src/sys/arch/x86/x86: ioapic.c lapic.c Log Message: Remove unused variables. To generate a diff of this commit: cvs rdiff -u -r1.54 -r1.55 src/sys/arch/x86/x86/ioapic.c cvs rdiff -u

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

2017-11-23 Thread Jared D. McNeill
Module Name:src Committed By: jmcneill Date: Thu Nov 23 19:53:21 UTC 2017 Modified Files: src/sys/arch/x86/x86: lapic.c Log Message: Add a workaround for local APIC timers running under KVM. It seems these timers don't reload the current-count register in periodic mode

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

2017-11-22 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Nov 22 21:26:01 UTC 2017 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Avoid NPE. To generate a diff of this commit: cvs rdiff -u -r1.266 -r1.267 src/sys/arch/x86/x86/pmap.c Please note that diffs are not

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

2017-11-11 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Nov 11 21:05:58 UTC 2017 Modified Files: src/sys/arch/x86/x86: intr.c Log Message: Add KASSERT to confirm no change in xen intr MP-safety annotations. To generate a diff of this commit: cvs rdiff -u -r1.111 -r1.112

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

2017-11-11 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Nov 11 19:25:29 UTC 2017 Modified Files: src/sys/arch/x86/x86: intr.c Log Message: KNF NFC To generate a diff of this commit: cvs rdiff -u -r1.110 -r1.111 src/sys/arch/x86/x86/intr.c Please note that diffs are not

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

2017-11-11 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Nov 11 17:37:03 UTC 2017 Modified Files: src/sys/arch/x86/x86: intr.c Log Message: Free ih when done. To generate a diff of this commit: cvs rdiff -u -r1.109 -r1.110 src/sys/arch/x86/x86/intr.c Please note that diffs

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

2017-11-11 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Nov 11 17:26:51 UTC 2017 Modified Files: src/sys/arch/x86/x86: intr.c Log Message: Pass xname through Xen intr_establish_xname to event_set_handler. To generate a diff of this commit: cvs rdiff -u -r1.108 -r1.109

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

2017-11-10 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Nov 11 07:52:42 UTC 2017 Modified Files: src/sys/arch/x86/x86: intr.c Log Message: Pass IPL through from intr_establish to event_set_handler. Don't unconditionally use IPL_CLOCK, which aside from being the wrong IPL for

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

2017-11-10 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Nov 11 07:46:52 UTC 2017 Modified Files: src/sys/arch/x86/x86: intr.c Log Message: #if DIAGNOSTIC panic ---> KASSERTMSG To generate a diff of this commit: cvs rdiff -u -r1.106 -r1.107 src/sys/arch/x86/x86/intr.c Please

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

2017-11-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Nov 4 12:53:00 UTC 2017 Modified Files: src/sys/arch/x86/x86: lapic.c Log Message: Fix stack overflow, found when testing a new feature. To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63

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

2017-11-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Nov 4 08:58:30 UTC 2017 Modified Files: src/sys/arch/x86/x86: fpu.c Log Message: Add support for xsaveopt. It is basically an instruction that optimizes context switch performance by not saving to memory FPU registers that are

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

2017-11-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Nov 4 07:38:42 UTC 2017 Modified Files: src/sys/arch/x86/x86: fpu.c Log Message: Always set XCR0_X87, to force a reload of CW. That's needed for compat options where fx_cw is not the standard fpu value. To generate a diff of

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

2017-11-04 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Nov 4 07:35:00 UTC 2017 Modified Files: src/sys/arch/x86/x86: fpu.c Log Message: Fix xen. Not tested, but seems fine enough. To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/sys/arch/x86/x86/fpu.c Please

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

2017-11-03 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Nov 3 16:21:01 UTC 2017 Modified Files: src/sys/arch/x86/x86: identcpu.c Log Message: Revert last and instead #include to get the needed prototype. To generate a diff of this commit: cvs rdiff -u -r1.63 -r1.64

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

2017-11-03 Thread Robert Elz
Module Name:src Committed By: kre Date: Fri Nov 3 13:11:39 UTC 2017 Modified Files: src/sys/arch/x86/x86: identcpu.c Log Message: XEN apparently has no fpuinit_mxcsr_mask() and hasn't needed it until now, so just omit this (as it was before) for XEN. If this is not

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

2017-10-31 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Oct 31 18:23:29 UTC 2017 Modified Files: src/sys/arch/x86/x86: fpu.c Log Message: Zero out the buffer entirely. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/sys/arch/x86/x86/fpu.c Please note that diffs

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

2017-10-31 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Oct 31 18:13:37 UTC 2017 Modified Files: src/sys/arch/x86/x86: fpu.c Log Message: Mask mxcsr, otherwise userland could set reserved bits to 1 and make xrstor fault. To generate a diff of this commit: cvs rdiff -u -r1.18

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

2017-10-31 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Oct 31 15:16:10 UTC 2017 Modified Files: src/sys/arch/x86/x86: fpu.c Log Message: Initialize xstate_bv with the structures that were just filled in, otherwise xrstor does not restore them. This can happen only if userland calls

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

2017-10-31 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Oct 31 11:37:05 UTC 2017 Modified Files: src/sys/arch/x86/x86: fpu.c identcpu.c Log Message: Always use x86_fpu_save, clearer. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/arch/x86/x86/fpu.c cvs rdiff

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

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

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

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

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

2017-10-17 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

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

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

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

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

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

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

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

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

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)

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

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

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

2017-09-03 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

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/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

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

2017-08-15 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

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

2017-08-11 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

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

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

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

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

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

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

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

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

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

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

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

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;

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

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

2017-06-15 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/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

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

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

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.

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/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

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

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:

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 <

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

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

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

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

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

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

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/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

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

2017-02-23 Thread Martin Husemann
Module Name:src Committed By: martin Date: Thu Feb 23 12:01:12 UTC 2017 Modified Files: src/sys/arch/x86/x86: dbregs.c Log Message: Make it compilable in non-diagnostic kernels To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/arch/x86/x86/dbregs.c

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

2017-02-16 Thread Thor Lancelot Simon
Module Name:src Committed By: tls Date: Thu Feb 16 15:00:30 UTC 2017 Modified Files: src/sys/arch/x86/x86: identcpu.c Log Message: On i386 (but not on amd64) we can enable SSE comparatively very late, when probing/attaching the FPU. This is a problem for cpu_rng with the

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

2017-02-15 Thread NONAKA Kimihiro
Module Name:src Committed By: nonaka Date: Thu Feb 16 03:53:20 UTC 2017 Modified Files: src/sys/arch/x86/x86: efi.c Log Message: Quell maybe-uninitialized false positives from gcc -Os. reported by John D. Baker at current-users@.

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

2017-02-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sat Feb 11 13:22:58 UTC 2017 Modified Files: src/sys/arch/x86/x86: tprof_amdpmi.c Log Message: As the XXX implicitly suggests, this line is wrong. Many other families support PMCs (like my 10h amd). While here, put a warning in a

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

2017-02-10 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Feb 10 10:39:36 UTC 2017 Modified Files: src/sys/arch/x86/x86: x86_machdep.c Log Message: If the segment list is full, print a warning on the console and launch the system with the available segments. High memory systems may

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

2017-02-10 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Feb 10 10:02:26 UTC 2017 Modified Files: src/sys/arch/x86/x86: x86_machdep.c Log Message: Use macros instead of hard-coded constants. By the way, I don't think this code is correct, but whatever. To generate a diff of this

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

2017-02-10 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Feb 10 09:57:04 UTC 2017 Modified Files: src/sys/arch/x86/x86: x86_machdep.c Log Message: Import iomem_ex locally. To generate a diff of this commit: cvs rdiff -u -r1.84 -r1.85 src/sys/arch/x86/x86/x86_machdep.c Please note

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

2017-02-02 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Feb 2 17:37:49 UTC 2017 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: The first va should depend on the text offset, not the kernel base. Use rounddown. Note: this value is still wrong, it should be roundup. But

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

2017-01-31 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Jan 31 17:38:54 UTC 2017 Modified Files: src/sys/arch/x86/x86: tprof_amdpmi.c Log Message: Update the URLs, and add the DC_refills_ flags (from the spec, not present on my cpu). To generate a diff of this commit: cvs rdiff -u

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

2017-01-25 Thread NONAKA Kimihiro
Module Name:src Committed By: nonaka Date: Thu Jan 26 01:36:35 UTC 2017 Modified Files: src/sys/arch/x86/x86: x86_machdep.c Log Message: Fix compile failure on i386 with DEBUG_MEMLOAD. To generate a diff of this commit: cvs rdiff -u -r1.82 -r1.83

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

2017-01-25 Thread NONAKA Kimihiro
Module Name:src Committed By: nonaka Date: Thu Jan 26 01:35:51 UTC 2017 Modified Files: src/sys/arch/x86/x86: efi.c Log Message: Fix compile failure on i386 with PAE. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/sys/arch/x86/x86/efi.c Please note

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

2017-01-22 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Sun Jan 22 20:04:35 UTC 2017 Modified Files: src/sys/arch/x86/x86: pmap.c Log Message: Put pmap_pg_nx into the dummy Xen page. While here, do some KNF and localify a bit. To generate a diff of this commit: cvs rdiff -u -r1.236

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

2017-01-18 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Jan 18 12:15:21 UTC 2017 Modified Files: src/sys/arch/x86/x86: dbregs.c Log Message: Fix bug with swapped event type and register that fired in hw watchpoints Swap bits for DR_EVENT_MASK and DR_REGISTER_MASK. Sponsored by

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

2017-01-17 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Wed Jan 18 05:48:16 UTC 2017 Modified Files: src/sys/arch/x86/x86: dbregs.c Log Message: Remove assert that Debug Registers are not mixed with Debug Trap Flag New code is designed to mix them. Sponsored by To generate a diff

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

2017-01-10 Thread Cherry G. Mathew
Module Name:src Committed By: cherry Date: Tue Jan 10 09:48:23 UTC 2017 Modified Files: src/sys/arch/x86/x86: x86_machdep.c Log Message: While reserving memory at boot time via uvm_physseg_unplug(9), in the case of a disappearing segment (due to a segment sized msgbuf)

<    1   2   3   4   5   6   7   8   >