svn commit: r368300 - head/cddl/contrib/opensolaris/cmd/dtrace

2020-12-03 Thread Andriy Gapon
Author: avg Date: Thu Dec 3 11:59:40 2020 New Revision: 368300 URL: https://svnweb.freebsd.org/changeset/base/368300 Log: dtrace: honor LC_NUMERIC for %'d and alike, and LC_TIME for %T Note that the public documentation on dtrace.org fails to mention %T and incorrectly documents %Y.

Re: svn commit: r367343 - in head/sys/contrib/openzfs/include/os: freebsd/zfs/sys linux/zfs/sys

2020-11-04 Thread Andriy Gapon
ow that I should? Any cross-reference would be of help both now and for the future code history archaeology. > On 11/4/20, Andriy Gapon wrote: >> On 04/11/2020 23:18, Mateusz Guzik wrote: >>> Author: mjg >>> Date: Wed Nov 4 21:18:51 2020 >>> New Revision: 367343

Re: svn commit: r367343 - in head/sys/contrib/openzfs/include/os: freebsd/zfs/sys linux/zfs/sys

2020-11-04 Thread Andriy Gapon
e same? Who will be resolving any merge conflicts resulting from my changes? -- 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: r366144 - head/usr.sbin/pwm

2020-09-25 Thread Andriy Gapon
Author: avg Date: Fri Sep 25 07:55:08 2020 New Revision: 366144 URL: https://svnweb.freebsd.org/changeset/base/366144 Log: pwm(8): fix potential duty overflow, use unsigneds for period and duty For a long period value and the duty specified as a percentage, there could be an overflow.

svn commit: r366143 - head/usr.sbin/pwm

2020-09-25 Thread Andriy Gapon
Author: avg Date: Fri Sep 25 07:54:38 2020 New Revision: 366143 URL: https://svnweb.freebsd.org/changeset/base/366143 Log: pwm(8): do not exit with failure after successfully reading configuration MFC after:1 week Modified: head/usr.sbin/pwm/pwm.c Modified: head/usr.sbin/pwm/pwm.c

Re: svn commit: r366142 - head/sys/arm/allwinner

2020-09-25 Thread Andriy Gapon
On 25/09/2020 10:41, Andriy Gapon wrote: > [*] At the same time I must note that the KPI provides for maximum > period of about 4 seconds (2^32 nanoseconds). Also, the KPI does not provide a way to invert active level of which some controllers are capable. -- Andriy

svn commit: r366142 - head/sys/arm/allwinner

2020-09-25 Thread Andriy Gapon
Author: avg Date: Fri Sep 25 07:41:51 2020 New Revision: 366142 URL: https://svnweb.freebsd.org/changeset/base/366142 Log: aw_pwm: add a check and some comments related to long periods The hardware supports periods as long as 196 seconds[*] when using the maximal prescaling of 72000 and

svn commit: r366140 - head/sys/arm/allwinner

2020-09-25 Thread Andriy Gapon
Author: avg Date: Fri Sep 25 07:40:26 2020 New Revision: 366140 URL: https://svnweb.freebsd.org/changeset/base/366140 Log: aw_pwm: fix programming of the period The programmed value is biased by one: 0 means 1 cycle, 1 means 2 cycles, etc. MFC after:3 weeks Modified:

svn commit: r366141 - head/sys/arm/allwinner

2020-09-25 Thread Andriy Gapon
Author: avg Date: Fri Sep 25 07:40:56 2020 New Revision: 366141 URL: https://svnweb.freebsd.org/changeset/base/366141 Log: aw_pwm: ensure sane configuration, just in case Make sure that the hardware is configured to cycle mode and that the bypass is disabled. MFC after:2 weeks

svn commit: r366139 - head/sys/arm/allwinner

2020-09-25 Thread Andriy Gapon
Author: avg Date: Fri Sep 25 07:40:02 2020 New Revision: 366139 URL: https://svnweb.freebsd.org/changeset/base/366139 Log: aw_pwm: fix selection of the prescaler Prescaling divides the frequency, not multiplies it. MFC after:2 weeks Modified: head/sys/arm/allwinner/aw_pwm.c

svn commit: r366138 - head/sys/arm/allwinner

2020-09-25 Thread Andriy Gapon
Author: avg Date: Fri Sep 25 07:39:41 2020 New Revision: 366138 URL: https://svnweb.freebsd.org/changeset/base/366138 Log: aw_pwm: remove the busy bit check The bit seems to always be set on my hardware, H3. However, programming the hardware seems to work just fine. MFC after:3

svn commit: r366137 - head/sys/arm/allwinner

2020-09-25 Thread Andriy Gapon
Author: avg Date: Fri Sep 25 07:39:14 2020 New Revision: 366137 URL: https://svnweb.freebsd.org/changeset/base/366137 Log: aw_pwm: trivially add H3 support MFC after:2 weeks Modified: head/sys/arm/allwinner/aw_pwm.c Modified: head/sys/arm/allwinner/aw_pwm.c

Re: svn commit: r365984 - head/usr.bin/calendar/calendars

2020-09-22 Thread Andriy Gapon
was inappropriate. I apologize. -- 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: r365984 - head/usr.bin/calendar/calendars

2020-09-22 Thread Andriy Gapon
ut IMO calendar.history has nothing to do with BSD, computers >> or anything else of interest to FreeBSD. At the very least this file should >> be moved to ports or better yet, removed entirely. I simply don't see the >> point of it being in the tree and distributed with an O/

svn commit: r365943 - head/sys/arm/allwinner

2020-09-21 Thread Andriy Gapon
Author: avg Date: Mon Sep 21 10:02:11 2020 New Revision: 365943 URL: https://svnweb.freebsd.org/changeset/base/365943 Log: aw_usbphy: add support for device mode operation OTG mode is not supported still. It's easy to do it as a one-off detection, but the proper support requires

Re: uninitialized variables [Was: svn commit: r365445 - head/sys/cam/mmc]

2020-09-10 Thread Andriy Gapon
On 09/09/2020 16:44, Mark Johnston wrote: > On Wed, Sep 09, 2020 at 08:49:01AM +0300, Andriy Gapon wrote: >> On 08/09/2020 15:48, Mark Johnston wrote: >>> I observed the same thing recently as well: the compiler catches >>> uninitialized variables only in simple c

Re: svn commit: r365517 - head/sys/net/route

2020-09-09 Thread Andriy Gapon
, "IU", > +CTLFLAG_VNET | CTLTYPE_U32 | CTLFLAG_RWTUN | CTLFLAG_NOFETCH | > CTLFLAG_MPSAFE, > +NULL, 0, _fibs, "IU", > "set number of fibs"); > > /* > Just upgraded and this version works perfectly. Thank you! -- Andriy Gapon __

Re: svn commit: r364465 - in head/sys: conf net net/route

2020-09-09 Thread Andriy Gapon
On 09/09/2020 00:50, Alexander V. Chernikov wrote: > 08.09.2020, 21:03, "Andriy Gapon" : >> On 22/08/2020 00:34, Alexander V. Chernikov wrote: >>>  Author: melifaro >>>  Date: Fri Aug 21 21:34:52 2020 >>>  New Revision: 364465 >>>  URL: https:

Re: uninitialized variables [Was: svn commit: r365445 - head/sys/cam/mmc]

2020-09-08 Thread Andriy Gapon
On 09/09/2020 08:49, Andriy Gapon wrote: > On 08/09/2020 15:48, Mark Johnston wrote: >> I observed the same thing recently as well: the compiler catches >> uninitialized variables only in simple cases. In my case, any uses of >> goto within the function seemed to sile

uninitialized variables [Was: svn commit: r365445 - head/sys/cam/mmc]

2020-09-08 Thread Andriy Gapon
maybe the situation is impossible, but it is reasonable to warn about it. But the number of false positives (and "possible but impossible" situations) is too overwhelming. -- Andriy Gapon ___ svn-src-head@freebsd.org mailing list https://lists.freebsd

Re: svn commit: r364465 - in head/sys: conf net net/route

2020-09-08 Thread Andriy Gapon
er. In other words, sysctal_fibs can be called earlier than vnet_rtables_init. I think that the best way to handle the problem would be to add CTLFLAG_NOFETCH to the sysctl declaration and then to add -- if necessary at all -- an explicit query of the kenv. -- Andriy Gapon _

Re: svn commit: r365445 - head/sys/cam/mmc

2020-09-08 Thread Andriy Gapon
On 08/09/2020 10:10, Andriy Gapon wrote: > On 08/09/2020 08:46, Andriy Gapon wrote: >> Author: avg >> Date: Tue Sep 8 05:46:10 2020 >> New Revision: 365445 >> URL: https://svnweb.freebsd.org/changeset/base/365445 >> >> Log: >> mmc_da: make s

Re: svn commit: r365445 - head/sys/cam/mmc

2020-09-08 Thread Andriy Gapon
On 08/09/2020 08:46, Andriy Gapon wrote: > Author: avg > Date: Tue Sep 8 05:46:10 2020 > New Revision: 365445 > URL: https://svnweb.freebsd.org/changeset/base/365445 > > Log: > mmc_da: make sure that part_index is not used uninitialized in sddastart [snip] > Modified: h

svn commit: r365447 - head/sys/cam/mmc

2020-09-08 Thread Andriy Gapon
Author: avg Date: Tue Sep 8 06:19:23 2020 New Revision: 365447 URL: https://svnweb.freebsd.org/changeset/base/365447 Log: mmc_da: universally use uint8_t for the partition index Also, assert in sdda_init_switch_part() that the index is within the defined range. MFC after:1 week

svn commit: r365446 - head/sys/cam/mmc

2020-09-08 Thread Andriy Gapon
Author: avg Date: Tue Sep 8 06:18:34 2020 New Revision: 365446 URL: https://svnweb.freebsd.org/changeset/base/365446 Log: mmc_da: fix a typo and a too long line MFC after:1 week Modified: head/sys/cam/mmc/mmc_da.c Modified: head/sys/cam/mmc/mmc_da.c

svn commit: r365445 - head/sys/cam/mmc

2020-09-07 Thread Andriy Gapon
Author: avg Date: Tue Sep 8 05:46:10 2020 New Revision: 365445 URL: https://svnweb.freebsd.org/changeset/base/365445 Log: mmc_da: make sure that part_index is not used uninitialized in sddastart This is a fix to r334065. Without this change I once got stuck I/O with endless partition

svn commit: r365402 - head/sys/dev/usb/controller

2020-09-07 Thread Andriy Gapon
Author: avg Date: Mon Sep 7 06:53:29 2020 New Revision: 365402 URL: https://svnweb.freebsd.org/changeset/base/365402 Log: musb/allwinner: add support for configuring phy as well as device mode At least on Orange Pi PC Plus even the host mode does not work without enabling the phy and

svn commit: r365401 - head/sys/dev/usb/controller

2020-09-07 Thread Andriy Gapon
Author: avg Date: Mon Sep 7 06:49:07 2020 New Revision: 365401 URL: https://svnweb.freebsd.org/changeset/base/365401 Log: musb/allwinner: add H3 support MFC after:6 weeks Modified: head/sys/dev/usb/controller/musb_otg_allwinner.c Modified:

svn commit: r365400 - head/sys/dev/usb/controller

2020-09-07 Thread Andriy Gapon
Author: avg Date: Mon Sep 7 06:48:08 2020 New Revision: 365400 URL: https://svnweb.freebsd.org/changeset/base/365400 Log: musb/allwinner: apply register filter in awusbdrd_bs_r_2() as well Otherwise, I get this panic: panic: awusbdrd_reg: Invalid register 0x342 It looks that musb

svn commit: r365399 - head/sys/dev/usb/controller

2020-09-07 Thread Andriy Gapon
Author: avg Date: Mon Sep 7 06:44:24 2020 New Revision: 365399 URL: https://svnweb.freebsd.org/changeset/base/365399 Log: fixup r365398: add a missed file with all the new Allwinner musb_otg code Obtained from:andrew MFC after:5 weeks X-MFC with: r365398 Added:

svn commit: r365398 - in head/sys: arm/allwinner arm64/conf conf

2020-09-07 Thread Andriy Gapon
Author: avg Date: Mon Sep 7 06:39:00 2020 New Revision: 365398 URL: https://svnweb.freebsd.org/changeset/base/365398 Log: Allwinner USB DRD support (musb_otg) Allwinner USB DRD is based on the Mentor USB OTG controller, with a different register layout and a few missing registers.

svn commit: r365397 - head/sys/dev/iicbus/twsi

2020-09-07 Thread Andriy Gapon
Author: avg Date: Mon Sep 7 06:32:03 2020 New Revision: 365397 URL: https://svnweb.freebsd.org/changeset/base/365397 Log: twsi: some variants clear interrupt flag by writing 0, others by writing 1 Make that distinction more explicit and regular in the code. The difference in behavior is

svn commit: r365396 - head/sys/dev/iicbus/twsi

2020-09-07 Thread Andriy Gapon
Author: avg Date: Mon Sep 7 06:29:41 2020 New Revision: 365396 URL: https://svnweb.freebsd.org/changeset/base/365396 Log: twsi: use tsleep instead of pause for better responsiveness wakeup() does not have any effect on pause(), so if a transfer was not finished by the time of the first

svn commit: r365395 - in head/sys: arm/allwinner/clkng dev/extres/clk

2020-09-07 Thread Andriy Gapon
Author: avg Date: Mon Sep 7 06:27:18 2020 New Revision: 365395 URL: https://svnweb.freebsd.org/changeset/base/365395 Log: aw_clk_nm: fix incorrect use of abs() abs() takes a (signed) int as input. Instead, it was used with unsigned 64-bit integers. So, add and use a new helper

svn commit: r365308 - head/sys/security/mac

2020-09-03 Thread Andriy Gapon
Author: avg Date: Thu Sep 3 20:30:52 2020 New Revision: 365308 URL: https://svnweb.freebsd.org/changeset/base/365308 Log: mac_framework.h: fix build with DEBUG_VFS_LOCKS and !MAC I have such a custom kernel configuration and its build failed with: linking kernel.full ld: error:

svn commit: r365290 - head/sys/dev/iicbus

2020-09-03 Thread Andriy Gapon
Author: avg Date: Thu Sep 3 08:02:19 2020 New Revision: 365290 URL: https://svnweb.freebsd.org/changeset/base/365290 Log: move defintion of hw.i2c sysctl node from iicbb to iicbus MFC after:2 weeks Modified: head/sys/dev/iicbus/iicbb.c head/sys/dev/iicbus/iicbus.c Modified:

svn commit: r365289 - head/sys/dev/iicbus/twsi

2020-09-03 Thread Andriy Gapon
Author: avg Date: Thu Sep 3 08:01:21 2020 New Revision: 365289 URL: https://svnweb.freebsd.org/changeset/base/365289 Log: twsi: no need to compare boolean with boolean constant Testing the boolean directly is shorter and more idiomatic. MFC after:1 week Modified:

svn commit: r365288 - head/sys/dev/iicbus/twsi

2020-09-03 Thread Andriy Gapon
Author: avg Date: Thu Sep 3 07:42:53 2020 New Revision: 365288 URL: https://svnweb.freebsd.org/changeset/base/365288 Log: twsi: replace a couple of errno codes with i2c error codes Reviewed by: manu MFC after:1 week Modified: head/sys/dev/iicbus/twsi/twsi.c Modified:

Re: svn commit: r365249 - head

2020-09-02 Thread Andriy Gapon
0824: >>   The resume code now notifies devd with the 'kernel' system >>   rather than the old 'kern' subsystem to be consistent with > Thanks, enough people seemed to be getting tripped up by this. I think that this is a very useful note. But I

Re: svn commit: r364989 - head/sys/dev/jedec_dimm

2020-08-31 Thread Andriy Gapon
+ for (i = dstsz - 1; i > 0; i--) { If 'i' is an index into the array, then shouldn't the condition be greater-equal? > if (dst[i] == ' ') { > dst[i] = 0; > } else if (dst[i] == 0) { &g

Re: svn commit: r364927 - head/sys/arm/allwinner/clkng

2020-08-30 Thread Andriy Gapon
intf("best freq (%llu) < requested freq(%llu)\n", > + best, *fout); > return (ERANGE); > } > if ((best > *fout) && > ((flags & CLK_SET_ROUND_UP) == 0)) { > *stop = 1; > +

Re: svn commit: r364817 - head/libexec/rc/rc.d

2020-08-27 Thread Andriy Gapon
file path will be imported. Multiple cache files and > pools not actually listed in a cachefile are valid scenarios for pools. Just want to express my complete agreement. -- Andriy Gapon ___ svn-src-head@freebsd.org mailing list https://lists.fr

Re: svn commit: r364817 - head/libexec/rc/rc.d

2020-08-27 Thread Andriy Gapon
On 2020-08-27 16:54, Cy Schubert wrote: > In message <202008271350.07rdogqn055...@slippy.cwsent.com>, Cy Schubert > writes: >> In message <7e55d429-482b-2277-b340-2b85c6874...@freebsd.org>, Andriy Gapon >> wri >> tes: >>> On 26/08/2020 16:13, Cy Schub

Re: svn commit: r364817 - head/libexec/rc/rc.d

2020-08-27 Thread Andriy Gapon
t; >>> Something like, for I in $(ls -t /etc/zfs/zpool.cache >>> /boot/zfs/zpool.cache) with the break? >>> >> >> /etc/zfs/zpool.cache is the new location and should generally be >> favored if it exists, I reckon. > > I retract the above. :-) ls -t

Re: svn commit: r364817 - head/libexec/rc/rc.d

2020-08-27 Thread Andriy Gapon
for migration, but I think that it does not make sense to split pools between the cache files. > + fi > + done > +} -- 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: r364344 - head/sys/dev/iicbus/mux

2020-08-18 Thread Andriy Gapon
Author: avg Date: Tue Aug 18 12:14:01 2020 New Revision: 364344 URL: https://svnweb.freebsd.org/changeset/base/364344 Log: iicmux: fix a sign error in comparison Because pcell_t is unsigned both sides of the comparison were treated as such. Because of that error iicmux created all

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

2020-08-17 Thread Andriy Gapon
t of fallout from this. Will you handle it? A warning from WITNESS is one thing, a panic is another. -- 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: r364155 - head/share/man/man4

2020-08-12 Thread Andriy Gapon
Author: avg Date: Wed Aug 12 11:37:28 2020 New Revision: 364155 URL: https://svnweb.freebsd.org/changeset/base/364155 Log: hook cp2112.4 to the build Reported by: 0mp MFC after:1 week X-MFC with: r364144 Modified: head/share/man/man4/Makefile Modified:

svn commit: r364154 - head/share/man/man4

2020-08-12 Thread Andriy Gapon
Author: avg Date: Wed Aug 12 11:36:09 2020 New Revision: 364154 URL: https://svnweb.freebsd.org/changeset/base/364154 Log: hook gpiokeys.4 to the build Reported by: 0mp MFC after:3 days X-MFC with: r363905 Modified: head/share/man/man4/Makefile Modified:

svn commit: r364149 - head/sys/arm/allwinner

2020-08-12 Thread Andriy Gapon
Author: avg Date: Wed Aug 12 09:57:28 2020 New Revision: 364149 URL: https://svnweb.freebsd.org/changeset/base/364149 Log: aw_cir: in the pulse encoding the actual length is one greater than value While here change type of some variables from long to int, it's sufficient. Also, add

svn commit: r364148 - head/sys/arm/allwinner

2020-08-12 Thread Andriy Gapon
Author: avg Date: Wed Aug 12 09:56:21 2020 New Revision: 364148 URL: https://svnweb.freebsd.org/changeset/base/364148 Log: aw_cir: lower activation threshold to support NECx protocol In NECx the leading mark has length of 8T as opposed to 16T in NEC, where T is 562.5 us. So, 4.5 ms.

svn commit: r364147 - head/sys/arm/allwinner

2020-08-12 Thread Andriy Gapon
Author: avg Date: Wed Aug 12 09:52:39 2020 New Revision: 364147 URL: https://svnweb.freebsd.org/changeset/base/364147 Log: aw_cir: minor cleanups MFC after:1 week Modified: head/sys/arm/allwinner/aw_cir.c Modified: head/sys/arm/allwinner/aw_cir.c

svn commit: r364146 - head/sys/arm/allwinner

2020-08-12 Thread Andriy Gapon
Author: avg Date: Wed Aug 12 09:52:12 2020 New Revision: 364146 URL: https://svnweb.freebsd.org/changeset/base/364146 Log: aw_cir: add support for allwinner,sun6i-a31-ir (found, e.g., on h3) MFC after:1 week Modified: head/sys/arm/allwinner/aw_cir.c Modified:

svn commit: r364145 - head/sys/dev/gpio

2020-08-12 Thread Andriy Gapon
Author: avg Date: Wed Aug 12 09:49:25 2020 New Revision: 364145 URL: https://svnweb.freebsd.org/changeset/base/364145 Log: gpiokeys: add evdev support Only linux,code is supported as it maps 1:1 to evdev key codes. No reverse mapping for freebsd,code yet. Reviewed by: wulf MFC

svn commit: r364144 - head/share/man/man4

2020-08-12 Thread Andriy Gapon
se-FreeBSD +.\" +.\" Copyright (c) 2020 Andriy Gapon +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain

svn commit: r364143 - head/sys/dev/usb/misc

2020-08-12 Thread Andriy Gapon
Author: avg Date: Wed Aug 12 09:07:07 2020 New Revision: 364143 URL: https://svnweb.freebsd.org/changeset/base/364143 Log: cp2112: a number of cleanups and improvements - hoist all request / response structures from function level to top level - replace magic numeric literals with

svn commit: r363951 - in head/sys: conf dev/usb/misc modules/usb modules/usb/cp2112

2020-08-06 Thread Andriy Gapon
+ * + * Copyright (c) Andriy Gapon + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + *notice, this list of conditions

svn commit: r363948 - head/sys/arm/allwinner/clkng

2020-08-06 Thread Andriy Gapon
Author: avg Date: Thu Aug 6 11:18:06 2020 New Revision: 363948 URL: https://svnweb.freebsd.org/changeset/base/363948 Log: ccu_sun8i_r: minor comment update MFC after:1 week Modified: head/sys/arm/allwinner/clkng/ccu_sun8i_r.c Modified: head/sys/arm/allwinner/clkng/ccu_sun8i_r.c

svn commit: r363905 - head/share/man/man4

2020-08-05 Thread Andriy Gapon
(r363905) @@ -0,0 +1,152 @@ +.\" +.\" SPDX-License-Identifier: BSD-2-Clause-FreeBSD +.\" +.\" Copyright (c) 2020 Andriy Gapon +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that th

svn commit: r363597 - head/sys/arm/allwinner/clkng

2020-07-27 Thread Andriy Gapon
Author: avg Date: Mon Jul 27 09:10:02 2020 New Revision: 363597 URL: https://svnweb.freebsd.org/changeset/base/363597 Log: actually enable gate control for allwinner's r-ccu ir clock The gate control bit offset was correctly specified, but AW_CLK_HAS_GATE flag was not set. Tested with

Re: svn commit: r363382 - head/sys/dev/gpio

2020-07-27 Thread Andriy Gapon
On 21/07/2020 10:35, Andriy Gapon wrote: > Author: avg > Date: Tue Jul 21 07:35:03 2020 > New Revision: 363382 > URL: https://svnweb.freebsd.org/changeset/base/363382 > > Log: > gpioiic: never drive lines active high > > I2C communication is done by a combin

svn commit: r363383 - in head/sys/cddl/dev: dtrace/arm fbt/arm

2020-07-21 Thread Andriy Gapon
Author: avg Date: Tue Jul 21 07:41:36 2020 New Revision: 363383 URL: https://svnweb.freebsd.org/changeset/base/363383 Log: dtrace/fbt: fix return probe arguments on arm arg0 should be an offset of the return point within the function, arg1 should be the return value. Previously the

svn commit: r363382 - head/sys/dev/gpio

2020-07-21 Thread Andriy Gapon
Author: avg Date: Tue Jul 21 07:35:03 2020 New Revision: 363382 URL: https://svnweb.freebsd.org/changeset/base/363382 Log: gpioiic: never drive lines active high I2C communication is done by a combination of driving a line low or letting it float, so that it is either pulled up or driven

svn commit: r363232 - head/sys/modules/dtb/allwinner

2020-07-15 Thread Andriy Gapon
Author: avg Date: Wed Jul 15 18:04:01 2020 New Revision: 363232 URL: https://svnweb.freebsd.org/changeset/base/363232 Log: build DTS for Orange Pi PC Plus as well Reviewed by: manu MFC after:1 week Modified: head/sys/modules/dtb/allwinner/Makefile Modified:

Re: svn commit: r362645 - head/sys/modules/ena

2020-06-26 Thread Andriy Gapon
On 26/06/2020 12:32, Andriy Gapon wrote: > Author: avg > Date: Fri Jun 26 09:32:57 2020 > New Revision: 362645 > URL: https://svnweb.freebsd.org/changeset/base/362645 > > Log: > ena: fix module build after r362530 Or rather, _standalone_ module bui

svn commit: r362647 - head/sys/dev/sound/pci/hda

2020-06-26 Thread Andriy Gapon
Author: avg Date: Fri Jun 26 09:46:03 2020 New Revision: 362647 URL: https://svnweb.freebsd.org/changeset/base/362647 Log: sound/hda: fix interrupt handler endless loop after r362294 Not all interrupt sources that affect CIS bit were acknowledged. Specifically, bits in STATESTS (aka

svn commit: r362645 - head/sys/modules/ena

2020-06-26 Thread Andriy Gapon
Author: avg Date: Fri Jun 26 09:32:57 2020 New Revision: 362645 URL: https://svnweb.freebsd.org/changeset/base/362645 Log: ena: fix module build after r362530 Somehow I missed the makefile when moving the change from phabricator to svn. MFC after:1 week X-MFC with: r362530

svn commit: r362530 - head/sys/dev/ena

2020-06-22 Thread Andriy Gapon
Author: avg Date: Tue Jun 23 04:58:36 2020 New Revision: 362530 URL: https://svnweb.freebsd.org/changeset/base/362530 Log: teach ena driver about RSS kernel option Networking is broken if the driver configures its (virtual) hardware to use a hash algorithm (or a key) different from the

svn commit: r362492 - head/sys/dev/gpio

2020-06-22 Thread Andriy Gapon
Author: avg Date: Mon Jun 22 10:32:41 2020 New Revision: 362492 URL: https://svnweb.freebsd.org/changeset/base/362492 Log: gpiobus_release_pin: remove incorrect prefix from error messages It's interesting that similar messages from gpiobus_acquire_pin never had any prefix while

Re: svn commit: r362294 - head/sys/dev/sound/pci/hda

2020-06-22 Thread Andriy Gapon
ac_attach2(void *arg) device_printf(sc->dev, "Scanning HDA codecs ...\n"); ); statests = HDAC_READ_2(>mem, HDAC_STATESTS); + HDAC_WRITE_2(>mem, HDAC_STATESTS, statests); hdac_unlock(sc); for (i = 0; i < HDAC_CODEC_MAX; i

Re: svn commit: r362466 - in head: contrib/file/magic/Magdir contrib/tcpdump lib/geom/part stand/efi/include stand/i386/boot0 sys/dev/hptmv sys/geom/part usr.bin/fortune/datfiles usr.bin/mkimg usr.sbi

2020-06-21 Thread Andriy Gapon
. > > s/Master Boot/Main Boot/ (also called MBR) Where does your hate for word 'master', especially in the technical context, come from? https://www.merriam-webster.com/dictionary/master > MFC after: 1 week > Sponsored by: Mell

svn commit: r362294 - head/sys/dev/sound/pci/hda

2020-06-18 Thread Andriy Gapon
Author: avg Date: Thu Jun 18 06:12:06 2020 New Revision: 362294 URL: https://svnweb.freebsd.org/changeset/base/362294 Log: hdac_intr_handler: keep working until global interrupt status clears It is plausible that the hardware interrupts a host only when GIS goes from zero to one. GIS is

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

2020-06-11 Thread Andriy Gapon
Author: avg Date: Thu Jun 11 11:35:30 2020 New Revision: 362048 URL: https://svnweb.freebsd.org/changeset/base/362048 Log: fix up r362047: a call to zvol_*_minors() was not hidden from userland Reported by: CI/FreeBSD-head-powerpc64-build MFC after:5 weeks X-MFC with: r362047

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

2020-06-11 Thread Andriy Gapon
Author: avg Date: Thu Jun 11 10:41:31 2020 New Revision: 362047 URL: https://svnweb.freebsd.org/changeset/base/362047 Log: rework how ZVOLs are updated in response to DSL operations With this change all ZVOL updates are initiated from the SPA sync context instead of a mix of the sync and

svn commit: r362042 - head/sys/dev/iicbus

2020-06-10 Thread Andriy Gapon
Author: avg Date: Thu Jun 11 05:34:31 2020 New Revision: 362042 URL: https://svnweb.freebsd.org/changeset/base/362042 Log: iicbb: rebuild the bit-banging algorithms using different primitives I2C_SET was quite inflexible, it used too long delays as well as some unnecessary delays. The

Re: svn commit: r361787 - head/sbin/ifconfig

2020-06-04 Thread Andriy Gapon
On 04/06/2020 16:06, Andriy Gapon wrote: > +Channel agility. > +.It Li B > +PBCC modulation. > +.It Li C > +Poll request capability. I would like to invite anyone who can expand short descriptions like the above to do so. -- Andriy Gapon

svn commit: r361788 - head/sys/dev/superio

2020-06-04 Thread Andriy Gapon
Author: avg Date: Thu Jun 4 13:18:21 2020 New Revision: 361788 URL: https://svnweb.freebsd.org/changeset/base/361788 Log: superio: do not assume that current LDN cannot change after config exit That assumption should be true when superio(4) uses the hardware exlusively. But it turns

svn commit: r361787 - head/sbin/ifconfig

2020-06-04 Thread Andriy Gapon
Author: avg Date: Thu Jun 4 13:06:49 2020 New Revision: 361787 URL: https://svnweb.freebsd.org/changeset/base/361787 Log: ifconfig.8: fix cpability and flag descriptions for list scan / sta Some capability descriptions under list scan actually described flags. Some capability

svn commit: r361621 - head/sys/dev/pci

2020-05-29 Thread Andriy Gapon
Author: avg Date: Fri May 29 07:50:55 2020 New Revision: 361621 URL: https://svnweb.freebsd.org/changeset/base/361621 Log: do not enable pci bridge decoding on resume until I/O windows are restored PCI bus driver restores most but not all of a child PCI-PCI bridge configuration. The

svn commit: r361620 - head/sys/kern

2020-05-29 Thread Andriy Gapon
Author: avg Date: Fri May 29 07:44:02 2020 New Revision: 361620 URL: https://svnweb.freebsd.org/changeset/base/361620 Log: corefile_open_last: don't keep a locked vnode while locking other ones Consider this scenario: - kern.corefile=/var/coredumps/%N.%U.%I.core - multiple processes

svn commit: r361434 - head/lib/libprocstat

2020-05-24 Thread Andriy Gapon
Author: avg Date: Sun May 24 14:54:21 2020 New Revision: 361434 URL: https://svnweb.freebsd.org/changeset/base/361434 Log: libprocstat: try to fix fallout from r361363 The revision caused libprocstat to have two undefined symbols: - __start_set_pcpu - __stop_set_pcpu probably because

Re: svn commit: r361363 - in head/lib/libprocstat: . zfs

2020-05-23 Thread Andriy Gapon
On 23/05/2020 18:43, Niclas Zeising wrote: > On 2020-05-22 13:20, Andriy Gapon wrote: >> Author: avg >> Date: Fri May 22 11:20:23 2020 >> New Revision: 361363 >> URL: https://svnweb.freebsd.org/changeset/base/361363 >> >> Log: >>    libprocstat: f

Re: svn commit: r361363 - in head/lib/libprocstat: . zfs

2020-05-22 Thread Andriy Gapon
On 22/05/2020 18:23, Andriy Gapon wrote: > On 22/05/2020 18:15, Conrad Meyer wrote: >> Hi Andriy, >> >> Would it make sense to also export sizes of those members? Currently >> the code assumes the members may be relocated in the struct, but never >> changed in s

Re: svn commit: r361363 - in head/lib/libprocstat: . zfs

2020-05-22 Thread Andriy Gapon
more likely to prompt a check of possible uses. But less likely does not equal will never happen, of course. So, I think that this is a good suggestion. > On Fri, May 22, 2020 at 4:20 AM Andriy Gapon wrote: >> >> Author: avg >> Date: Fri May 22 11:20:23 2020 >> New Rev

svn commit: r361364 - head/sys/net80211

2020-05-22 Thread Andriy Gapon
Author: avg Date: Fri May 22 11:25:45 2020 New Revision: 361364 URL: https://svnweb.freebsd.org/changeset/base/361364 Log: net80211: post RTM_IFINFO notification after toggling IFF_DRV_RUNNING This is useful when a wireless driver is stopped or started in response to events like an RF

svn commit: r361363 - in head/lib/libprocstat: . zfs

2020-05-22 Thread Andriy Gapon
Added: head/lib/libprocstat/zfs_defs.c == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lib/libprocstat/zfs_defs.c Fri May 22 11:20:23 2020 (r361363) @@ -0,0 +1,59 @@ +/*- + * S

svn commit: r361330 - head/lib/libprocstat

2020-05-21 Thread Andriy Gapon
Author: avg Date: Thu May 21 13:46:30 2020 New Revision: 361330 URL: https://svnweb.freebsd.org/changeset/base/361330 Log: libprocstat: fix reading of file descriptor table via kvm This seems to have been broken since r247602 (from year 2013!). Can be easily tested with fstat -N

svn commit: r361273 - head/sys/dev/iwm

2020-05-20 Thread Andriy Gapon
Author: avg Date: Wed May 20 08:15:09 2020 New Revision: 361273 URL: https://svnweb.freebsd.org/changeset/base/361273 Log: iwm: improve rfkill handling Previously the driver handled the bit within itself, but did not expose the state change to net80211 and interface layers. This change

svn commit: r361006 - head/sys/compat/linuxkpi/common/include/linux

2020-05-13 Thread Andriy Gapon
Author: avg Date: Wed May 13 07:47:56 2020 New Revision: 361006 URL: https://svnweb.freebsd.org/changeset/base/361006 Log: linuxkpi: print stack trace in WARN_ON macros Reviewed by: hselasky, kib MFC after:1 week Differential Revision: https://reviews.freebsd.org/D24779 Modified:

svn commit: r361002 - head/sys/dev/sound/pci/hda

2020-05-13 Thread Andriy Gapon
Author: avg Date: Wed May 13 06:26:30 2020 New Revision: 361002 URL: https://svnweb.freebsd.org/changeset/base/361002 Log: snd_hda: fix typos related to quirks set via 'config' tunable One wrong quirk bit, one wrong variable name. MFC after:1 week Modified:

svn commit: r361001 - head/sys/dev/sound/pci/hda

2020-05-13 Thread Andriy Gapon
Author: avg Date: Wed May 13 06:24:54 2020 New Revision: 361001 URL: https://svnweb.freebsd.org/changeset/base/361001 Log: sound/hda: newer AMD devices still require the same PCIe snoop So, replicate the ATI vendor snoop configuration for the AMD vendor. I think that this should fix a

svn commit: r360957 - head/sys/amd64/amd64

2020-05-12 Thread Andriy Gapon
Author: avg Date: Tue May 12 09:31:48 2020 New Revision: 360957 URL: https://svnweb.freebsd.org/changeset/base/360957 Log: amd64/pmap: unbreak !NUMA case for fictitious pages A fictitious page can have a physical address beyond the end of the RAM. In the NUMA case there is some special

svn commit: r360956 - head/cddl/contrib/opensolaris/cmd/zfs

2020-05-12 Thread Andriy Gapon
Author: avg Date: Tue May 12 09:04:57 2020 New Revision: 360956 URL: https://svnweb.freebsd.org/changeset/base/360956 Log: zfs allow/unallow should work with numeric uid/gid And that should work even (especially) if there is no matching user or group name. This change allows to see and

svn commit: r360779 - head/sys/dev/gpio

2020-05-07 Thread Andriy Gapon
Author: avg Date: Thu May 7 13:11:32 2020 New Revision: 360779 URL: https://svnweb.freebsd.org/changeset/base/360779 Log: gpioiic_attach: fix a NULL pointer crash on hints-based systems The attach method uses GPIO_GET_BUS() to get a "newbus" device that provides a pin. But on

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

2020-05-06 Thread Andriy Gapon
Author: avg Date: Wed May 6 15:24:31 2020 New Revision: 360692 URL: https://svnweb.freebsd.org/changeset/base/360692 Log: usbhid: add several missing usages from Digitizer page This is applicable to HID in general, not just USB HID. Inspired by: wulf MFC after:1 week

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

2020-05-05 Thread Andriy Gapon
Author: avg Date: Tue May 5 12:14:11 2020 New Revision: 360657 URL: https://svnweb.freebsd.org/changeset/base/360657 Log: acpi_video: try our best to work on systems without non-essential methods Only _BCL and _BCM methods seem to be essential to the driver's operation. If _BQC is

svn commit: r360499 - head/sys/dev/ichiic

2020-04-30 Thread Andriy Gapon
Author: avg Date: Thu Apr 30 15:45:01 2020 New Revision: 360499 URL: https://svnweb.freebsd.org/changeset/base/360499 Log: ig4iic_acpi_probe: remove set but unused variable MFC after:1 week Modified: head/sys/dev/ichiic/ig4_acpi.c Modified: head/sys/dev/ichiic/ig4_acpi.c

Re: svn commit: r360241 - head/sys/dev/ichiic

2020-04-24 Thread Andriy Gapon
us, iichb, ...) in icbus.c. That's essentially the same approach that is used for gpio. Maybe it's the way. But there was something that spooked me about many drivers having the same name, but can't recall what. -- Andriy Gapon ___ svn-src-h

Re: svn commit: r360241 - head/sys/dev/ichiic

2020-04-24 Thread Andriy Gapon
On 24/04/2020 18:11, Warner Losh wrote: > > > On Fri, Apr 24, 2020 at 8:47 AM Andriy Gapon <mailto:a...@freebsd.org>> wrote: > > On 24/04/2020 17:29, Warner Losh wrote: > > > > > > On Fri, Apr 24, 2020 at 1:49 AM Andriy Gapon &

Re: svn commit: r360241 - head/sys/dev/ichiic

2020-04-24 Thread Andriy Gapon
On 24/04/2020 17:29, Warner Losh wrote: > > > On Fri, Apr 24, 2020 at 1:49 AM Andriy Gapon <mailto:a...@freebsd.org>> wrote: > > Author: avg > Date: Fri Apr 24 07:49:21 2020 > New Revision: 360241 > URL: https://svnweb.freebsd.org/changeset/base

  1   2   3   4   5   6   7   8   9   10   >