Re: svn commit: r332730 - in head/sys: amd64/amd64 i386/i386 powerpc/powerpc

2018-05-14 Thread Andriy Gapon
On 05/05/2018 01:55, John Baldwin wrote: > On Wednesday, April 18, 2018 03:44:54 PM Andriy Gapon wrote: >> Author: avg >> Date: Wed Apr 18 15:44:54 2018 >> New Revision: 332730 >> URL: https://svnweb.freebsd.org/changeset/base/332730 >> >> Log: >>

svn commit: r333630 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2018-05-15 Thread Andriy Gapon
Author: avg Date: Tue May 15 13:27:29 2018 New Revision: 333630 URL: https://svnweb.freebsd.org/changeset/base/333630 Log: Fix 'zpool create -t ' Creating a pool with a temporary name fails when we also specify custom dataset properties: this is because we mistakenly call zfs_set_prop_n

svn commit: r333638 - head/sys/x86/x86

2018-05-15 Thread Andriy Gapon
Author: avg Date: Tue May 15 16:56:30 2018 New Revision: 333638 URL: https://svnweb.freebsd.org/changeset/base/333638 Log: calibrate lapic timer in native_lapic_setup The idea is to calibrate the LAPIC timer just once and only on boot, given that [at present] the timer constants are globa

svn commit: r333667 - in head/sys: arm/arm arm64/arm64 mips/mips

2018-05-15 Thread Andriy Gapon
Author: avg Date: Wed May 16 06:52:08 2018 New Revision: 333667 URL: https://svnweb.freebsd.org/changeset/base/333667 Log: followup to r332730/r332752: set kdb_why to "trap" for fatal traps This change updates arm, arm64 and mips achitectures. Additionally, it removes redundant checks fo

svn commit: r333707 - head/sys/x86/x86

2018-05-17 Thread Andriy Gapon
Author: avg Date: Thu May 17 10:16:20 2018 New Revision: 333707 URL: https://svnweb.freebsd.org/changeset/base/333707 Log: fix a problem with bad performance after wakeup caused by r21 This change reverts a "while here" part of r21 that moved clearing of suspended_cpus to an earli

svn commit: r333994 - in head/sys: dev/acpica kern sys

2018-05-21 Thread Andriy Gapon
Author: avg Date: Mon May 21 20:23:04 2018 New Revision: 333994 URL: https://svnweb.freebsd.org/changeset/base/333994 Log: stop and restart kernel event timers in the suspend / resume cycle I have a system that is very unstable after resuming from suspend-to-RAM but only if HPET is used a

svn commit: r333998 - head/sys/dev/usb/serial

2018-05-21 Thread Andriy Gapon
Author: avg Date: Mon May 21 20:58:06 2018 New Revision: 333998 URL: https://svnweb.freebsd.org/changeset/base/333998 Log: uchcom: add DPRINTF-s to aid debugging of the driver Reviewed by: hselasky MFC after:2 weeks Modified: head/sys/dev/usb/serial/uchcom.c Modified: head/sys/de

svn commit: r333999 - head/sys/dev/usb/serial

2018-05-21 Thread Andriy Gapon
Author: avg Date: Mon May 21 20:59:15 2018 New Revision: 333999 URL: https://svnweb.freebsd.org/changeset/base/333999 Log: uchcom: add a hardware configuration tweak seen in Linux code Reviewed by: hselasky MFC after:2 weeks Modified: head/sys/dev/usb/serial/uchcom.c Modified: he

svn commit: r333997 - head/sys/dev/usb/serial

2018-05-21 Thread Andriy Gapon
Author: avg Date: Mon May 21 20:57:14 2018 New Revision: 333997 URL: https://svnweb.freebsd.org/changeset/base/333997 Log: uchcom: report detected product based on USB product ID Product IDs are specified in vendor documents. The previously used device ID is not. This is a cosmetic chan

svn commit: r334001 - head/sys/dev/usb/serial

2018-05-21 Thread Andriy Gapon
Author: avg Date: Mon May 21 21:02:10 2018 New Revision: 334001 URL: https://svnweb.freebsd.org/changeset/base/334001 Log: uchcom: remove UCHCOM_REG_BREAK2 alias of UCHCOM_REG_LCR1 Also, add definitions for more bits of UCHCOM_REG_LCR1 as seen in the Linux driver. UCHCOM_LCR1_PARENB defi

svn commit: r334002 - head/sys/dev/usb/serial

2018-05-21 Thread Andriy Gapon
Author: avg Date: Mon May 21 21:04:31 2018 New Revision: 334002 URL: https://svnweb.freebsd.org/changeset/base/334002 Log: uchcom: extend hardware support to version 0x30 This change adds support for a UBS<->RS232 adapter based on CH340 (or an analogue) that I own. The device seems to ha

svn commit: r334000 - head/sys/dev/usb/serial

2018-05-21 Thread Andriy Gapon
Author: avg Date: Mon May 21 21:00:13 2018 New Revision: 334000 URL: https://svnweb.freebsd.org/changeset/base/334000 Log: uchcom: reject parity and double stop bits as unsupported Reviewed by: hselasky MFC after:2 weeks Modified: head/sys/dev/usb/serial/uchcom.c Modified: head/s

Re: svn commit: r334197 - head/sys/kern

2018-05-24 Thread Andriy Gapon
> We can > + * unlock the chain lock so a new turnstile may take it's place. > + */ > + turnstile_unpend(ts, TS_EXCLUSIVE_LOCK); > + } > turnstile_chain_unlock(&m->lock_object); > } > P.S. I had to re-read the co

svn commit: r334203 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2018-05-25 Thread Andriy Gapon
Author: avg Date: Fri May 25 07:29:52 2018 New Revision: 334203 URL: https://svnweb.freebsd.org/changeset/base/334203 Log: fix zfs_getpages crash when called from sendfile, followup to r329363 It turns out that sendfile_swapin() has an optimization where it may insert pointers to bogus_pa

svn commit: r334204 - in head/sys: amd64/include dev/acpica i386/include x86/x86

2018-05-25 Thread Andriy Gapon
Author: avg Date: Fri May 25 07:33:20 2018 New Revision: 334204 URL: https://svnweb.freebsd.org/changeset/base/334204 Log: re-synchronize TSC-s on SMP systems after resume, if necessary The TSC-s are checked and synchronized only if they were good originally. That is, invariant, synchron

svn commit: r334338 - head/sys/x86/x86

2018-05-29 Thread Andriy Gapon
Author: avg Date: Tue May 29 16:03:53 2018 New Revision: 334338 URL: https://svnweb.freebsd.org/changeset/base/334338 Log: fix x86 UP build broken by r334204, TSC resynchronization Reported by: bde MFC after:1 week X-MFC with: r334204 Modified: head/sys/x86/x86/tsc.c Modified

svn commit: r334340 - in head/sys: dev/uart kern sys x86/acpica

2018-05-29 Thread Andriy Gapon
Author: avg Date: Tue May 29 16:16:24 2018 New Revision: 334340 URL: https://svnweb.freebsd.org/changeset/base/334340 Log: add support for console resuming, implement it for uart, use on x86 This change adds a new optional console method cn_resume and a kernel console interface cnresume.

svn commit: r334479 - head/sys/dev/acpica

2018-06-01 Thread Andriy Gapon
Author: avg Date: Fri Jun 1 09:44:23 2018 New Revision: 334479 URL: https://svnweb.freebsd.org/changeset/base/334479 Log: call AcpiLeaveSleepStatePrep after re-enabling interrupts I want to do this change because this call (actually, AcpiHwLegacyWakePrep) does a memory allocation and ACP

Re: svn commit: r334543 - head/usr.bin/top

2018-06-03 Thread Andriy Gapon
On 04/06/2018 00:33, Rodney W. Grimes wrote: > lsof is your friend here. That is the tool of choice for finding > cwd of processes that are in directories you can not unmount. s/lsof/fstat -f [-m]/ :-) -- Andriy Gapon ___ svn-src-head@freeb

Re: svn commit: r334669 - head/sys/sys

2018-06-05 Thread Andriy Gapon
did this one get flagged? > > I agree, and I tend to avoid adding "!= 0" unnecessarily, but I don't > feel very strongly about it. I am not sure what parts of code you work on, but turning bit operations into logical operations within conditions is the predominant Fr

Re: svn commit: r334708 - head/sys/kern

2018-06-06 Thread Andriy Gapon
0, vp, >                             ("_vhold: vnode with holdcnt is free")); >                         return; > > > So why isn't the refcount_acquire() enough? This is the wrong "acquire", "acquire" in a sense of "get" or &qu

svn commit: r334785 - head/sys/x86/x86

2018-06-07 Thread Andriy Gapon
Author: avg Date: Thu Jun 7 14:23:31 2018 New Revision: 334785 URL: https://svnweb.freebsd.org/changeset/base/334785 Log: expand descriptions of x86 panic_on_nmi and kdb_on_nmi sysctls The descriptions were as terse as the variable names and they did not explain additional conditions for

svn commit: r334786 - head/sys/x86/x86

2018-06-07 Thread Andriy Gapon
Author: avg Date: Thu Jun 7 14:46:52 2018 New Revision: 334786 URL: https://svnweb.freebsd.org/changeset/base/334786 Log: x86: reorganize code that deals with unexpected NMI-s Expected NMI-s are those than are either generated by the software (such as a CPU sending NMI to other CPU) or g

Re: svn commit: r326383 - head/sys/x86/cpufreq

2017-11-30 Thread Andriy Gapon
ve not revisited cpufreq in a long time, so I can say something silly. But I think that we need to finally start being aware of power state dependencies (ACPI _PSD). I have an impression that a good share of the problems was (perhaps still is) because we completely ignored that stuff.

svn commit: r326537 - head/sys/amd64/vmm/amd

2017-12-04 Thread Andriy Gapon
Author: avg Date: Mon Dec 4 17:02:53 2017 New Revision: 326537 URL: https://svnweb.freebsd.org/changeset/base/326537 Log: amd-vi: clear event interrupt and overflow bits upon handling the interrupt This ensures that we can receive further event interrupts. See the description of the bits

svn commit: r326538 - head/sys/amd64/vmm/amd

2017-12-04 Thread Andriy Gapon
Author: avg Date: Mon Dec 4 17:08:03 2017 New Revision: 326538 URL: https://svnweb.freebsd.org/changeset/base/326538 Log: vmm/amd: add ivhd device with a higher order ivhd should attach after the root PCI bus and, thus, after the ACPI Host-PCI bridge off which the bus hangs. This is bec

svn commit: r326539 - head/sys/amd64/vmm/amd

2017-12-04 Thread Andriy Gapon
Author: avg Date: Mon Dec 4 17:10:52 2017 New Revision: 326539 URL: https://svnweb.freebsd.org/changeset/base/326539 Log: amd-vi: set iommu msi configuration using pci_enable_msi method This is better than directly changing PCI configuration space of the device because it makes the PCI b

svn commit: r326567 - head/sys/ddb

2017-12-05 Thread Andriy Gapon
Author: avg Date: Tue Dec 5 14:22:08 2017 New Revision: 326567 URL: https://svnweb.freebsd.org/changeset/base/326567 Log: ddb: fix validation of cpu id in 'set db_cpu=x' MFC after:1 week Modified: head/sys/ddb/db_sym.c Modified: head/sys/ddb/db_sym.c ===

Re: svn commit: r326347 - in head/sys: kern sys vm

2017-12-07 Thread Andriy Gapon
iews.freebsd.org/D13187 Given this bug report https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224080#c3 can we revert this commit until its impact on ZFS is examined (and fixed)? Unfortunately, there is no public comment from you at all. Not even "y

Re: svn commit: r326383 - head/sys/x86/cpufreq

2017-12-07 Thread Andriy Gapon
ic registers, but they can not be set by software directly anyway. My impression is that the proper way to observe the boost states is via APERF / MPERF MSRs. They are useful for other things, e.g. C0 residency, too. P.S. i7z-like utility for AMD would be nice to have. -- Andriy Gapon ___

Re: svn commit: r326731 - head/sys/ufs/ffs

2017-12-09 Thread Andriy Gapon
licate_bio() contribute to the problem with those GEOM classes? -- Andriy Gapon ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Re: svn commit: r326758 - in head/sys/i386: conf include

2017-12-12 Thread Andriy Gapon
tools that can analyze stack requirements for possible call chains rather than individual functions. -- Andriy Gapon ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "s

svn commit: r327593 - head/sys/amd64/vmm/amd

2018-01-05 Thread Andriy Gapon
Author: avg Date: Fri Jan 5 19:15:24 2018 New Revision: 327593 URL: https://svnweb.freebsd.org/changeset/base/327593 Log: Fix a couple of comments in AMD Virtual Machine Control Block structure MFC after:1 week Modified: head/sys/amd64/vmm/amd/vmcb.h Modified: head/sys/amd64/vmm/am

svn commit: r327724 - head/sys/dev/usb

2018-01-09 Thread Andriy Gapon
Author: avg Date: Tue Jan 9 13:42:08 2018 New Revision: 327724 URL: https://svnweb.freebsd.org/changeset/base/327724 Log: usbdevs: add ASMedia vendor ID MFC after:1 week Modified: head/sys/dev/usb/usbdevs Modified: head/sys/dev/usb/usbdevs ==

svn commit: r327725 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2018-01-09 Thread Andriy Gapon
Author: avg Date: Tue Jan 9 13:43:04 2018 New Revision: 327725 URL: https://svnweb.freebsd.org/changeset/base/327725 Log: zfs_mount: restore a bit of ifdef-out illumos code And correctly mark the end of the replacement FreeBSD code. MFC after:1 week Modified: head/sys/cddl/cont

svn commit: r327726 - head/sys/amd64/vmm/amd

2018-01-09 Thread Andriy Gapon
Author: avg Date: Tue Jan 9 14:22:18 2018 New Revision: 327726 URL: https://svnweb.freebsd.org/changeset/base/327726 Log: vmm/svm: contigmalloc of the whole svm_softc is excessive This is a followup to r307903. struct svm_softc takes more than 200 kilobytes while what we really need

svn commit: r327775 - head/sys/dev/amdsbwd

2018-01-10 Thread Andriy Gapon
Author: avg Date: Wed Jan 10 17:35:00 2018 New Revision: 327775 URL: https://svnweb.freebsd.org/changeset/base/327775 Log: amdsbwd: fix handling of timeout values beyond the supported range The driver now fully observes watchdog(9) protocol. Previously a too large timeout was silently cla

svn commit: r327996 - in head/sys: cam/scsi geom

2018-01-15 Thread Andriy Gapon
Author: avg Date: Mon Jan 15 11:20:00 2018 New Revision: 327996 URL: https://svnweb.freebsd.org/changeset/base/327996 Log: geom_disk / scsi_da: deny opening write-protected disks for writing Ths change consists of two parts. geom_disk: deny opening a disk for writing if it's marked as

Re: svn commit: r327996 - in head/sys: cam/scsi geom

2018-01-15 Thread Andriy Gapon
On 15/01/2018 14:25, Konstantin Belousov wrote: > On Mon, Jan 15, 2018 at 11:20:00AM +0000, Andriy Gapon wrote: >> Author: avg >> Date: Mon Jan 15 11:20:00 2018 >> New Revision: 327996 >> URL: https://svnweb.freebsd.org/changeset/base/327996 >> >> Log: >&

Re: svn commit: r328110 - head/sys/kern

2018-01-18 Thread Andriy Gapon
d(other_cpus); > did_stop_cpus = 1; > @@ -707,8 +708,9 @@ kdb_trap(int type, int code, struct trapframe *tf) > kdb_active--; > > #ifdef SMP > + CPU_AND(&other_cpus, &stopped_cpus); > if (did_stop_cpus) > -

svn commit: r328126 - head/sys/kern

2018-01-18 Thread Andriy Gapon
Author: avg Date: Thu Jan 18 12:59:04 2018 New Revision: 328126 URL: https://svnweb.freebsd.org/changeset/base/328126 Log: correct read-ahead calculations in vfs_bio_getpages Previously the calculations were done as if the requested region ended at the start of the last requested page, no

Re: svn commit: r327354 - head/sys/vm

2018-01-18 Thread Andriy Gapon
On 18/01/2018 23:10, Matt Joras wrote: > "/* Insert an empty line if the function has no local variables. */" And if there is a single silly rule in style(9) then it is this. Waste a line for no possible benefit at all. -- Andriy Gapon __

Re: svn commit: r328159 - head/sys/modules

2018-01-19 Thread Andriy Gapon
the count to a number between 0 and 31. When the destination is 64 bits wide, the processor masks the upper two bits of the count, providing a count in the range of 0 to 63. -- Andriy Gapon ___ svn-src-head@freebsd.org mailing list https://lis

svn commit: r328217 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2018-01-21 Thread Andriy Gapon
Author: avg Date: Sun Jan 21 11:19:18 2018 New Revision: 328217 URL: https://svnweb.freebsd.org/changeset/base/328217 Log: zfs: no need to check that size of zfs_cmd_t is not greater than IOCPARM_MAX Nowadays we do not pass zfs_cmd_t directly through the ioctl interface. Instead a small z

Re: svn commit: r331347 - in head: etc/mtree include sys/conf sys/dev/tcp_log sys/kern sys/netinet usr.bin/netstat

2018-03-22 Thread Andriy Gapon
6: warning: nested extern declaration of 'atomic_fetchadd_64' [-Wnested-externs] -- Andriy Gapon ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

svn commit: r331420 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2018-03-23 Thread Andriy Gapon
Author: avg Date: Fri Mar 23 09:42:47 2018 New Revision: 331420 URL: https://svnweb.freebsd.org/changeset/base/331420 Log: zfs: fix mismatch between format specifier and type vdev_dbgmsg_print_tree printed vdev_id of uint64_t type with %u format specifier. That caused subsequent paramete

svn commit: r331613 - in head/tests/sys/cddl/zfs: bin include tests/cli_root/zpool_add tests/delegate tests/devices tests/hotspare tests/interop tests/largest_pool tests/slog tests/utils_test tests...

2018-03-27 Thread Andriy Gapon
Author: avg Date: Tue Mar 27 11:49:15 2018 New Revision: 331613 URL: https://svnweb.freebsd.org/changeset/base/331613 Log: ZFS test suite: fix uses of illumos /dev/[r]dsk/ and /dev/zvol/[r]dsk/ Modified: head/tests/sys/cddl/zfs/bin/devname2devid.c head/tests/sys/cddl/zfs/bin/zpool_bsd.ksh

svn commit: r331616 - in head: sbin/mount sys/kern

2018-03-27 Thread Andriy Gapon
Author: avg Date: Tue Mar 27 14:31:42 2018 New Revision: 331616 URL: https://svnweb.freebsd.org/changeset/base/331616 Log: vfs_donmount: in certain cases try r/o mount if r/w mount fails If the operation is not an update, if neither r/w nor r/o mode is explicitly requested, if the error c

svn commit: r331666 - in head/sys: cddl/contrib/opensolaris/uts/common/fs kern sys

2018-03-28 Thread Andriy Gapon
Author: avg Date: Wed Mar 28 08:55:31 2018 New Revision: 331666 URL: https://svnweb.freebsd.org/changeset/base/331666 Log: ZFS vn_rele_async: catch up with the use of refcount(9) for the vnode use count It's not sufficient nor required to use the vnode interlock when checking if we are g

svn commit: r331761 - head/sys/i386/i386

2018-03-30 Thread Andriy Gapon
Author: avg Date: Fri Mar 30 11:25:30 2018 New Revision: 331761 URL: https://svnweb.freebsd.org/changeset/base/331761 Log: align i386 cpu_reset() with amd64 version Maybe this code could be moved to x86. MFC after:1 week Modified: head/sys/i386/i386/vm_machdep.c Modified: head/

svn commit: r331874 - in head/sys: amd64/amd64 i386/i386

2018-04-02 Thread Andriy Gapon
Author: avg Date: Mon Apr 2 07:45:13 2018 New Revision: 331874 URL: https://svnweb.freebsd.org/changeset/base/331874 Log: x86 cpu_reset_proxy: no need to stop_cpus() the original processor The processor is "parked" in a spin-loop already and that's sufficient for the reset. There is not

svn commit: r331875 - in head/sys: amd64/amd64 i386/i386

2018-04-02 Thread Andriy Gapon
Author: avg Date: Mon Apr 2 08:06:18 2018 New Revision: 331875 URL: https://svnweb.freebsd.org/changeset/base/331875 Log: x86 cpu_reset: if failed to switch to BSP proceed to cpu_reset_real If cpu_reset() is called on an AP and if it somehow fails to wake the BSP, then it's better to att

Re: svn commit: r327056 - in head/sys: kern sys x86/acpica x86/x86

2018-04-02 Thread Andriy Gapon
directly > to the restarted state, while ACPI resume goes through the resuming state. > Enter the resuming state early for all cases so that resume_cpus can test > for being in this state and not have to worry about the intermediate > !suspended state for ACPI only. -- Andriy Ga

svn commit: r331878 - in head/sys: amd64/amd64 i386/i386 x86/x86

2018-04-02 Thread Andriy Gapon
Author: avg Date: Mon Apr 2 13:45:23 2018 New Revision: 331878 URL: https://svnweb.freebsd.org/changeset/base/331878 Log: unify amd64 and i386 cpu_reset() in x86/cpu_machdep.c Because I didn't see any reason not too. I've been making some changes to the code and couldn't help but notice

svn commit: r331908 - head/sys/x86/x86

2018-04-02 Thread Andriy Gapon
Author: avg Date: Tue Apr 3 06:46:26 2018 New Revision: 331908 URL: https://svnweb.freebsd.org/changeset/base/331908 Log: fix signatures of cpu_reset_real and cpu_reset_proxy, broken in r331878 When I moved these functions from i386 and amd64 to x86 I dropped their prototype declarations

Re: svn commit: r327056 - in head/sys: kern sys x86/acpica x86/x86

2018-04-03 Thread Andriy Gapon
On 02/04/2018 18:28, Bruce Evans wrote: > On Mon, 2 Apr 2018, Andriy Gapon wrote: > >> On 21/12/2017 11:17, Bruce Evans wrote: >>> Author: bde >>> Date: Thu Dec 21 09:17:48 2017 >>> New Revision: 327056 >>> URL: https://svnweb.freebsd.org/changese

svn commit: r331931 - in head/sys: amd64/amd64 i386/i386 x86/x86

2018-04-03 Thread Andriy Gapon
Author: avg Date: Tue Apr 3 17:16:06 2018 New Revision: 331931 URL: https://svnweb.freebsd.org/changeset/base/331931 Log: fix i386 build with CPU_ELAN (LINT for instance) after r331878 x86/cpu_machdep.c now needs to include elan_mmcr.h when CPU_ELAN is set. While here, also remove the no

Re: svn commit: r331701 - in head: cddl/contrib/opensolaris/cmd/zdb cddl/contrib/opensolaris/cmd/zpool cddl/contrib/opensolaris/cmd/ztest cddl/contrib/opensolaris/lib/libzfs/common cddl/contrib/openso

2018-04-05 Thread Andriy Gapon
eBSD. This commit restored it. I am actually indifferent about having it. Just pointing out this possibly unintended change. -- Andriy Gapon ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

svn commit: r332426 - in head: cddl/contrib/opensolaris/cmd/zpool cddl/contrib/opensolaris/lib/libzfs/common sys/cddl/contrib/opensolaris/common/zfs sys/cddl/contrib/opensolaris/uts/common/fs/zfs s...

2018-04-12 Thread Andriy Gapon
Author: avg Date: Thu Apr 12 10:37:26 2018 New Revision: 332426 URL: https://svnweb.freebsd.org/changeset/base/332426 Log: allow ZFS pool to have temporary name for duration of current import The change adds -t option to zpool create and -t option to zpool import in its form with an old

svn commit: r332559 - head/usr.sbin/mountd

2018-04-16 Thread Andriy Gapon
Author: avg Date: Mon Apr 16 09:17:36 2018 New Revision: 332559 URL: https://svnweb.freebsd.org/changeset/base/332559 Log: mountd: fix a crash when getgrouplist reports too many groups Previously the code only warned about the condition and then happily proceeded to use the too large valu

Re: svn commit: r332559 - head/usr.sbin/mountd

2018-04-16 Thread Andriy Gapon
On 16/04/2018 13:56, Konstantin Belousov wrote: > On Mon, Apr 16, 2018 at 09:17:36AM +0000, Andriy Gapon wrote: >> Author: avg >> Date: Mon Apr 16 09:17:36 2018 >> New Revision: 332559 >> URL: https://svnweb.freebsd.org/changeset/base/332559 >> >> Log: >

svn commit: r332730 - in head/sys: amd64/amd64 i386/i386 powerpc/powerpc

2018-04-18 Thread Andriy Gapon
Author: avg Date: Wed Apr 18 15:44:54 2018 New Revision: 332730 URL: https://svnweb.freebsd.org/changeset/base/332730 Log: don't check for kdb reentry in trap_fatal(), it's impossible trap() checks for it earlier and calls kdb_reentry(). Discussed with: jhb MFC after:12 day

svn commit: r332752 - in head/sys: amd64/amd64 i386/i386 powerpc/powerpc sys

2018-04-18 Thread Andriy Gapon
Author: avg Date: Thu Apr 19 05:06:56 2018 New Revision: 332752 URL: https://svnweb.freebsd.org/changeset/base/332752 Log: set kdb_why to "trap" when calling kdb_trap from trap_fatal This will allow to hook a ddb script to "kdb.enter.trap" event. Previously there was no specific name for

svn commit: r332816 - head/sys/kern

2018-04-20 Thread Andriy Gapon
Author: avg Date: Fri Apr 20 13:08:04 2018 New Revision: 332816 URL: https://svnweb.freebsd.org/changeset/base/332816 Log: call racct_proc_ucred_changed() under the proc lock The lock is required to ensure that the switch to the new credentials and the transfer of the process's accounting

svn commit: r332918 - in head/sys: dev/acpica x86/acpica

2018-04-24 Thread Andriy Gapon
Author: avg Date: Tue Apr 24 09:42:58 2018 New Revision: 332918 URL: https://svnweb.freebsd.org/changeset/base/332918 Log: add a new ACPI suspend debugging knob, debug.acpi.suspend_deep_bounce This sysctl allows a deeper dive into the sleep abyss comparing to debug.acpi.suspend_bounce. W

svn commit: r333209 - head/sys/dev/acpica

2018-05-03 Thread Andriy Gapon
Author: avg Date: Thu May 3 13:14:31 2018 New Revision: 333209 URL: https://svnweb.freebsd.org/changeset/base/333209 Log: hpet: use macros instead of magic values for the timer mode MFC after:1 week Modified: head/sys/dev/acpica/acpi_hpet.c Modified: head/sys/dev/acpica/acpi_hpet.c

svn commit: r333212 - head/sys/dev/amdsbwd

2018-05-03 Thread Andriy Gapon
Author: avg Date: Thu May 3 15:33:18 2018 New Revision: 333212 URL: https://svnweb.freebsd.org/changeset/base/333212 Log: amdsbwd: add suspend and resume methods Without the suspend method the watchdog may fire in S1 state. Without the resume method the watchdog is not re-enabled after

svn commit: r333243 - head/sys/cddl/compat/opensolaris/kern

2018-05-04 Thread Andriy Gapon
Author: avg Date: Fri May 4 07:28:01 2018 New Revision: 333243 URL: https://svnweb.freebsd.org/changeset/base/333243 Log: opensolaris system_taskq does not need to run at maximum priority In fact, this taskqueue should use "boring" threads, nothing special about them. MFC after:

svn commit: r333268 - head/sys/kern

2018-05-04 Thread Andriy Gapon
Author: avg Date: Sat May 5 05:19:32 2018 New Revision: 333268 URL: https://svnweb.freebsd.org/changeset/base/333268 Log: for bus suspend, detach and shutdown iterate children in reverse order For most buses all children are equal, so the order does not matter. Other buses, such as acpi,

svn commit: r333269 - head/sys/dev/amdsbwd

2018-05-04 Thread Andriy Gapon
Author: avg Date: Sat May 5 05:22:11 2018 New Revision: 333269 URL: https://svnweb.freebsd.org/changeset/base/333269 Log: amdsbwd: fix reboot status reporting Originally, I overlooked that PMIO register 0xc0 has a dual personality. It can either be S5/Reset Status register or Misc. Fix r

svn commit: r333321 - head/sys/x86/x86

2018-05-07 Thread Andriy Gapon
Author: avg Date: Mon May 7 12:22:25 2018 New Revision: 21 URL: https://svnweb.freebsd.org/changeset/base/21 Log: x86 cpususpend_handler: call wbinvd after setting suspend state bits Without a subsequent wbinvd the changes to suspended_cpus (and resuming_cpus) can be lost at leas

svn commit: r318812 - head/cddl/contrib/opensolaris/cmd/zdb

2017-05-24 Thread Andriy Gapon
Author: avg Date: Wed May 24 20:41:26 2017 New Revision: 318812 URL: https://svnweb.freebsd.org/changeset/base/318812 Log: MFV r316860: 7545 zdb should disable reference tracking illumos/illumos-gate@4dd77f9e38ef05b39db128ff7608d926fd3218c6 https://github.com/illumos/illumos-gate/commit/

svn commit: r318814 - head/cddl/contrib/opensolaris/lib/libzfs_core/common

2017-05-24 Thread Andriy Gapon
Author: avg Date: Wed May 24 20:53:01 2017 New Revision: 318814 URL: https://svnweb.freebsd.org/changeset/base/318814 Log: MFC r316904: 7729 libzfs_core`lzc_rollback() leaks result nvl illumos/illumos-gate@ac428481f96be89add7a1edf43ae47dd71038553 https://github.com/illumos/illumos-gate/c

svn commit: r318818 - in head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs: . sys

2017-05-24 Thread Andriy Gapon
Author: avg Date: Wed May 24 21:29:31 2017 New Revision: 318818 URL: https://svnweb.freebsd.org/changeset/base/318818 Log: MFC r316907: 1300 filename normalization doesn't work for removes illumos/illumos-gate@1c17160ac558f98048951327f4e9248d8f46acc0 https://github.com/illumos/illumos-ga

svn commit: r318819 - head/cddl/contrib/opensolaris/lib/libzfs/common

2017-05-24 Thread Andriy Gapon
Author: avg Date: Wed May 24 21:32:35 2017 New Revision: 318819 URL: https://svnweb.freebsd.org/changeset/base/318819 Log: MFC r316908: 7541 zpool import/tryimport ioctl returns ENOMEM because provided buffer is too small for config illumos/illumos-gate@8b65a70b763232c90a91f31eb2010314c02e

svn commit: r318821 - in head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs: . sys

2017-05-24 Thread Andriy Gapon
Author: avg Date: Wed May 24 21:43:34 2017 New Revision: 318821 URL: https://svnweb.freebsd.org/changeset/base/318821 Log: MFC r316912: 7793 ztest fails assertion in dmu_tx_willuse_space illumos/illumos-gate@61e255ce7267b52208af9daf434b77d37fb75622 https://github.com/illumos/illumos-gate

svn commit: r318822 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2017-05-24 Thread Andriy Gapon
Author: avg Date: Wed May 24 21:45:52 2017 New Revision: 318822 URL: https://svnweb.freebsd.org/changeset/base/318822 Log: MFC r316913: 7869 panic in bpobj_space(): null pointer dereference illumos/illumos-gate@a3905a45920de250d181b66ac0b6b71bd200d9ef https://github.com/illumos/illumos-g

svn commit: r318823 - in head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs: . sys

2017-05-24 Thread Andriy Gapon
Author: avg Date: Wed May 24 21:49:21 2017 New Revision: 318823 URL: https://svnweb.freebsd.org/changeset/base/318823 Log: MFC r316914: 7801 add more by-dnode routines illumos/illumos-gate@b0c42cd4706ba01ce158bd2bb1004f7e59eca5fe https://github.com/illumos/illumos-gate/commit/b0c42cd4706

svn commit: r318824 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2017-05-24 Thread Andriy Gapon
Author: avg Date: Wed May 24 21:52:20 2017 New Revision: 318824 URL: https://svnweb.freebsd.org/changeset/base/318824 Log: MFC r316915: 7801 add more by-dnode routines (lint) illumos/illumos-gate@411be58a6e030a3b606f1afcc7f2e2459ffda844 https://github.com/illumos/illumos-gate/commit/411b

svn commit: r318827 - in head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs: . sys

2017-05-24 Thread Andriy Gapon
Author: avg Date: Wed May 24 22:15:16 2017 New Revision: 318827 URL: https://svnweb.freebsd.org/changeset/base/318827 Log: MFV r316916: 7970 zfs_arc_num_sublists_per_state should be common to all multilists illumos/illumos-gate@10fbdecb05f411234920f8d3c92c148d39106d7e https://github.com

svn commit: r318828 - in head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs: . sys

2017-05-24 Thread Andriy Gapon
Author: avg Date: Wed May 24 22:21:24 2017 New Revision: 318828 URL: https://svnweb.freebsd.org/changeset/base/318828 Log: MFV r316917: 7968 multi-threaded spa_sync() illumos/illumos-gate@94c2d0eb22e9624151ee84a7edbf7178e1bf4087 https://github.com/illumos/illumos-gate/commit/94c2d0eb22e9

svn commit: r318829 - in head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs: . sys

2017-05-24 Thread Andriy Gapon
Author: avg Date: Wed May 24 22:25:26 2017 New Revision: 318829 URL: https://svnweb.freebsd.org/changeset/base/318829 Log: MFV r316920: 8023 Panic destroying a metaslab deferred range tree illumos/illumos-gate@3991b535a8e990c0369be677746a87c259b13e9f https://github.com/illumos/illumos-ga

svn commit: r318830 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2017-05-24 Thread Andriy Gapon
for that condition to occur, but it's better to have more accurate code. Reviewed by: Matt Ahrens Reviewed by: Serapheim Dimitropoulos Reviewed by: Paul Dagnelie Approved by: Dan McDonald Author: Andriy Gapon MFC after:1 week Modified: head/sys/cddl/contrib/op

svn commit: r318831 - head/cddl/contrib/opensolaris/lib/libzfs/common

2017-05-24 Thread Andriy Gapon
c and that the snapshots are updated one by one the described behavior may lead to a sever performance penalty. Reviewed by: Paul Dagnelie Reviewed by: Matt Ahrens Approved by: Dan McDonald Author: Andriy Gapon MFC after:3 weeks Modified: head/cddl/contrib/opensolari

svn commit: r318832 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2017-05-24 Thread Andriy Gapon
Approved by: Richard Lowe Author: Andriy Gapon MFC after:1 week Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_pool.c Directory Properties: head/sys/cddl/contrib/opensolaris/ (props changed) Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

svn commit: r318833 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2017-05-24 Thread Andriy Gapon
Reviewed by: Matthew Ahrens Approved by: Dan McDonald Author: Andriy Gapon MFC after:2 weeks Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vfsops.c Directory Properties: head/sys/cddl/contrib

svn commit: r318834 - head/sys/cddl/contrib/opensolaris

2017-05-24 Thread Andriy Gapon
Author: avg Date: Wed May 24 22:40:56 2017 New Revision: 318834 URL: https://svnweb.freebsd.org/changeset/base/318834 Log: MFV r316930: 5814 bpobj_iterate_impl(): Close a refcount leak iterating on a sublist. illumos/illumos-gate@b67dde11a73a9455d641403cbbb65ec2add41b41 https://github.c

Re: svn commit: r318814 - head/cddl/contrib/opensolaris/lib/libzfs_core/common

2017-05-24 Thread Andriy Gapon
On 24/05/2017 23:53, Andriy Gapon wrote: > MFC r316904: 7729 libzfs_core`lzc_rollback() leaks result nvl This and a few other commits should have MFV instead of MFC in their description. Sorry for any confusion that this mistake of mine might cause. -- Andriy Ga

svn commit: r318867 - head/sys/dev/vmware/vmxnet3

2017-05-25 Thread Andriy Gapon
Author: avg Date: Thu May 25 10:49:56 2017 New Revision: 318867 URL: https://svnweb.freebsd.org/changeset/base/318867 Log: fix vmxnet3 crash when LRO is enabled The crash can occur when all of the following conditions are true: - a packet consists of multiple segements (requires LRO enabl

svn commit: r318920 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2017-05-26 Thread Andriy Gapon
Author: avg Date: Fri May 26 10:27:35 2017 New Revision: 318920 URL: https://svnweb.freebsd.org/changeset/base/318920 Log: MFC r316924: 8061 sa_find_idx_tab can be declared more type-safely illumos/illumos-gate@7f0bdb4257bb4f1f76390b72665961e411da24c6 https://github.com/illumos/illumos-g

svn commit: r318921 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2017-05-26 Thread Andriy Gapon
ze variable caches the correct value of z_blksz and can be safely used here. Reviewed by: Matt Ahrens Reviewed by: Pavel Zakharov Approved by: Dan McDonald Author: Andriy Gapon MFC after:1 week Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c Directory

svn commit: r318922 - head/sys/cddl/contrib/opensolaris

2017-05-26 Thread Andriy Gapon
do not see code to actually apply the attributes... I would expect there to be a call to sa_bulk_update(), there is such a call in zfs_write() for instance. mmap_write.c [Magnifier] - demo (1.42 KB) Andriy Gapon, 2015-11-11 01:53 PM Reviewed by: Matthew Ahrens Reviewed by

svn commit: r318923 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2017-05-26 Thread Andriy Gapon
Author: avg Date: Fri May 26 10:37:55 2017 New Revision: 318923 URL: https://svnweb.freebsd.org/changeset/base/318923 Log: zfs_putpages: assert that sa_bulk_update() must succeed Same as the upstream does in r316927. MFC after:1 week Modified: head/sys/cddl/contrib/opensolaris/u

svn commit: r318924 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2017-05-26 Thread Andriy Gapon
Author: avg Date: Fri May 26 11:05:56 2017 New Revision: 318924 URL: https://svnweb.freebsd.org/changeset/base/318924 Log: arc_init: make code closer to upstream by introducing 'allmem' variable All the differences in calculations are kept. A comment about arc_max being 1/2 of all memory

svn commit: r318925 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2017-05-26 Thread Andriy Gapon
Author: avg Date: Fri May 26 11:23:16 2017 New Revision: 318925 URL: https://svnweb.freebsd.org/changeset/base/318925 Log: MFV r316929: 6914 kernel virtual memory fragmentation leads to hang illumos/illumos-gate@af868f46a5b794687741d5424de9e3a2d684a84a https://github.com/illumos/illumos-

svn commit: r318926 - head/sys/cddl/contrib/opensolaris

2017-05-26 Thread Andriy Gapon
Author: avg Date: Fri May 26 11:25:44 2017 New Revision: 318926 URL: https://svnweb.freebsd.org/changeset/base/318926 Log: MFV r316919: 7885 zpool list can report 16.0e for expandsz FreeBSD note: this is a record-only change, the actual change was directly committed by smh. illumos/i

svn commit: r318928 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2017-05-26 Thread Andriy Gapon
Author: avg Date: Fri May 26 11:30:55 2017 New Revision: 318928 URL: https://svnweb.freebsd.org/changeset/base/318928 Log: MFV r318927: 8025 dbuf_read() creates unnecessary zio_root() for bonus buf illumos/illumos-gate@def4fac5882b4ca67bd0f4a53509b6d1fa8ae14e https://github.com/illumos/i

svn commit: r318930 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2017-05-26 Thread Andriy Gapon
Author: avg Date: Fri May 26 11:33:34 2017 New Revision: 318930 URL: https://svnweb.freebsd.org/changeset/base/318930 Log: MFV r318929: 7786 zfs`vdev_online() needs better notification about state changes illumos/illumos-gate@5f368aef86387d6ef4eda84030ae9b402313ee4c https://github.com/i

svn commit: r318932 - in head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs: . sys

2017-05-26 Thread Andriy Gapon
Author: avg Date: Fri May 26 11:37:11 2017 New Revision: 318932 URL: https://svnweb.freebsd.org/changeset/base/318932 Log: MFV r318931: 8063 verify that we do not attempt to access inactive txg illumos/illumos-gate@b7b2590dd9f11b12a0b4878db3886068cce176af https://github.com/illumos/illum

svn commit: r318935 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2017-05-26 Thread Andriy Gapon
Author: avg Date: Fri May 26 11:49:42 2017 New Revision: 318935 URL: https://svnweb.freebsd.org/changeset/base/318935 Log: MFV r318934: 8070 Add some ZFS comments illumos/illumos-gate@40713f2b249d289022c715107b3951055a63aef0 https://github.com/illumos/illumos-gate/commit/40713f2b249d2890

  1   2   3   4   5   6   7   8   9   10   >