CVS commit: src/sys/arch/xen/xen

2021-07-28 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Wed Jul 28 22:17:49 UTC 2021

Modified Files:
src/sys/arch/xen/xen: xbdback_xenbus.c

Log Message:
fix off-by-one check in another KASSERT() for bcount

still related to PR port-xen/56328


To generate a diff of this commit:
cvs rdiff -u -r1.98 -r1.99 src/sys/arch/xen/xen/xbdback_xenbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/xen

2021-07-28 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Wed Jul 28 21:38:50 UTC 2021

Modified Files:
src/sys/arch/xen/xen: xbdback_xenbus.c

Log Message:
fix intentional, but eventually faulty off-by-one for the maximum number
of segments for I/O - this was supposed to allow MAXPHYS-size I/O even
with page offset, but actually ended up letting through I/O up to
MAXPHYS+PAGE_SIZE

the KASSERT(bcount < MAXPHYS) is kept as-is, since at that place the number
of segments should already be validated, so it's kernel bug if the size
is still too big there

fixes PR port-xen/56328 by Greg Oster


To generate a diff of this commit:
cvs rdiff -u -r1.97 -r1.98 src/sys/arch/xen/xen/xbdback_xenbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/usb

2021-06-06 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Jun  6 18:37:20 UTC 2021

Modified Files:
src/sys/dev/usb: xhci.c

Log Message:
also reset xs->xs_xr[dci] to NULL when closing the pipe

avoids KASSERT() on next xhci_open()

should fix PR kern/56194 by nia


To generate a diff of this commit:
cvs rdiff -u -r1.143 -r1.144 src/sys/dev/usb/xhci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2021-05-05 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Wed May  5 19:30:51 UTC 2021

Modified Files:
src/sys/dev/pci: siisata_pci.c

Log Message:
disable MSI for SiI3124 - interrupts don't seem to work on this old board
when MSI is enabled, maybe because it's behind a PCI bridge

PR kern/55115 by John D. Baker


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/pci/siisata_pci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2021-05-02 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun May  2 19:13:43 UTC 2021

Modified Files:
src/sys/kern: kern_event.c
src/sys/sys: eventvar.h

Log Message:
implement fo_restart hook for kqueue descriptors, so that close(2)
on the descriptor won't block indefinitely if other thread is currently
blocked on the same kqueue in kevent(2)

done similarily to pipes and sockets, i.e. using flag on the potentially
shared kqueue structure hooked off file_t - this is somewhat suboptimal
if the application dup(2)ped the descriptor, but this should be rare
enough to not really matter

usually this causes the kevent(2) to end up returning EBADF since
on the syscall restart the descriptor is not there anymore; if
dup(2)ped the kevent(2) call can continue successfully if the closed
kqueue descriptor was other than the one used for the kevent(2)
call

PR kern/46248 by Julian Fagir


To generate a diff of this commit:
cvs rdiff -u -r1.117 -r1.118 src/sys/kern/kern_event.c
cvs rdiff -u -r1.8 -r1.9 src/sys/sys/eventvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/mca

2021-04-08 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Thu Apr  8 17:36:33 UTC 2021

Modified Files:
src/sys/dev/mca: if_we_mca.c

Log Message:
update comment about the 'quirk' in we_mca_init_hook() - actually that is
just interrupt enable bit, so not a quirk at all; NFCI

info passed by Valery Ushakov from a guy running https://www.os2museum.com/wp/


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/dev/mca/if_we_mca.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



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

2021-02-21 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Feb 21 20:11:59 UTC 2021

Modified Files:
src/sys/arch/xen/x86: xen_shm_machdep.c

Log Message:
in xen_shm_map(), make sure to unmap any successfully mapped pages
before returning failure if there is partial failure

fix detection of partial failure - GNTTABOP_map_grant_ref can actually return
zero for partial failure, so we need to always check all the entries
to detect it

previously, DIAGNOSTIC kernel triggered panic() for partial failure,
and non-DIAGNOSTIC kernel did not detect it at all, leading to Dom0 page
fault later; since the mapping failure can be triggered by malicious
DomU via bad grant reference, it's important to expect the calls
to fail, and handle it gracefully without crashing Dom0

part of fixes for XSA-362


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/xen/x86/xen_shm_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/xen

2021-02-21 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Feb 21 20:02:25 UTC 2021

Modified Files:
src/sys/arch/xen/xen: xbdback_xenbus.c

Log Message:
reset xio_xv before calling xbdback_io_error() so it won't try to unmap
the non-initialized handles when xen_shm_map() fails

remove the ratechecked error printf for shm error - xbdback_io_error() prints
the error too

part of fixes for XSA-362


To generate a diff of this commit:
cvs rdiff -u -r1.96 -r1.97 src/sys/arch/xen/xen/xbdback_xenbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/stdio

2021-02-07 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Feb  7 15:54:09 UTC 2021

Modified Files:
src/lib/libc/stdio: fread.c

Log Message:
restore change from rev 1.23 "Avoid undefined behavior in fread(3)", mistakely
removed as part __SNBF optimization


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/lib/libc/stdio/fread.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



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

2021-02-06 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Feb  6 21:24:20 UTC 2021

Modified Files:
src/sys/arch/x86/x86: pmap.c

Log Message:
use __builtin_assume_aligned() on places where the memset() or memcpy()
parameters are known to be PAGE_SIZE-aligned, so compiler doesn't need
to emit atrocious alignment check code when inlining them

this particularly improves pmap_zero_page() and pmap_copy_page(),
which are now reduced to only 'rep stosq', and close to what a hand-written
assembly would do

Note: on CPUs supporting ERMS, 'rep stosb' would still be slightly faster, but
this is a solid stop-gap improvement

suggested by Mateusz Guzik in:
http://mail-index.netbsd.org/tech-kern/2020/07/19/msg026620.html


To generate a diff of this commit:
cvs rdiff -u -r1.408 -r1.409 src/sys/arch/x86/x86/pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/thread-stub

2021-02-05 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Feb  6 00:08:58 UTC 2021

Modified Files:
src/lib/libc/thread-stub: thread-stub.c

Log Message:
change libc sched_yield() stub to actually still call the syscall
instead of doing nothing when app is not linked with pthread; this matches
other systems

suggested by Mateusz Guzik in:
http://mail-index.netbsd.org/tech-kern/2020/07/19/msg026620.html


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/lib/libc/thread-stub/thread-stub.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2021-02-04 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Thu Feb  4 21:07:06 UTC 2021

Modified Files:
src/sys/kern: vfs_init.c vfs_subr.c
src/sys/sys: mount.h

Log Message:
introduce vfs.generic.timestamp_precision sysctl to control precision
of the timer used for vfs_timestamp(); default stays the same
to use nanotime(9), but option is there to use the faster, albeit
less precise methods

code taken from FreeBSD

suggested by Mateusz Guzik in:
http://mail-index.netbsd.org/tech-kern/2020/07/19/msg026620.html


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/sys/kern/vfs_init.c
cvs rdiff -u -r1.489 -r1.490 src/sys/kern/vfs_subr.c
cvs rdiff -u -r1.236 -r1.237 src/sys/sys/mount.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/stdio

2021-02-01 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Feb  1 17:50:53 UTC 2021

Modified Files:
src/lib/libc/stdio: fread.3 fread.c fwrite.c

Log Message:
for fread(3) and fwrite(3) check for (size * nmemb) size_t overflow, and
error out with EOVERFLOW if it happens; this is less silly answer
to a silly call than returning some randomly wrapped length

change adapted from OpenBSD

FreeBSD has a similar check, but they return EINVAL instead, feel
free to adjust if SUS or other standard mandates specific value

suggested by Kamil Rytarowski


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/lib/libc/stdio/fread.3
cvs rdiff -u -r1.24 -r1.25 src/lib/libc/stdio/fread.c
cvs rdiff -u -r1.18 -r1.19 src/lib/libc/stdio/fwrite.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libc/stdio

2021-01-31 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Jan 31 16:18:22 UTC 2021

Modified Files:
src/lib/libc/stdio: fread.c

Log Message:
for unbuffered I/O arrange for the destination buffer to be filled in one
go, instead of triggering long series of 1 byte read(2)s; this speeds up
fread() several order of magnitudes for this case, directly proportional
to the size of the supplied buffer

change adapted from OpenBSD rev. 1.19

fixes PR lib/55808 by Roland Illig


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/lib/libc/stdio/fread.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2021-01-26 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Jan 26 19:09:18 UTC 2021

Modified Files:
src/sys/kern: kern_event.c

Log Message:
call f_touch with kq_lock held, and without KERNEL_LOCK() - for this
adjust EVFILT_USER, which is the only filter actually using that hook

kqueue_scan() now doesn't need to exit/enter the kq_lock when calling
f_touch, which removes another possible race

part of PR kern/50094


To generate a diff of this commit:
cvs rdiff -u -r1.115 -r1.116 src/sys/kern/kern_event.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2021-01-25 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Jan 25 19:57:05 UTC 2021

Modified Files:
src/sys/kern: kern_event.c

Log Message:
put back clearing of KN_QUEUED and check for re-queue - as rev. 1.53 notes,
it's necessary for correct function

fixes PR kern/55946, thanks to Paul Goyette for testing

part of PR kern/50094 fix


To generate a diff of this commit:
cvs rdiff -u -r1.114 -r1.115 src/sys/kern/kern_event.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2021-01-24 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Jan 24 11:31:47 UTC 2021

Modified Files:
src/sys/kern: kern_event.c

Log Message:
don't check signals while waiting for other kqueue scans to finish

reportedly somewhat improves behaviour for PR kern/55946

part of PR kern/50094 fix


To generate a diff of this commit:
cvs rdiff -u -r1.113 -r1.114 src/sys/kern/kern_event.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2021-01-21 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Thu Jan 21 19:37:23 UTC 2021

Modified Files:
src/sys/kern: kern_event.c

Log Message:
remove stray debug #define DEBUG


To generate a diff of this commit:
cvs rdiff -u -r1.112 -r1.113 src/sys/kern/kern_event.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2021-01-21 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Thu Jan 21 18:09:23 UTC 2021

Modified Files:
src/sys/kern: kern_event.c

Log Message:
adjust kq_check() (enabled with DEBUG) to new reality - it's now perfectly
normal to have kq_count bigger than number of the linked entries
on the kqueue

PR kern/50094, problem pointed out by Chuck Silvers


To generate a diff of this commit:
cvs rdiff -u -r1.111 -r1.112 src/sys/kern/kern_event.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/usb

2021-01-20 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Wed Jan 20 22:46:33 UTC 2021

Modified Files:
src/sys/dev/usb: umidi.c

Log Message:
fix free_all_endpoints() to not try calling free_pipe() when no endpoints
are allocated; this can happen during config_detach() after attach fails

Reported-by: syzbot+6e8a4c978358ecead...@syzkaller.appspotmail.com
Reported-by: syzbot+b25ba25b57561144a...@syzkaller.appspotmail.com


To generate a diff of this commit:
cvs rdiff -u -r1.82 -r1.83 src/sys/dev/usb/umidi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2021-01-20 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Wed Jan 20 21:39:09 UTC 2021

Modified Files:
src/sys/kern: kern_event.c

Log Message:
fix a race in kqueue_scan() - when multiple threads check the same
kqueue, it could happen other thread seen empty kqueue while kevent
was being checked for re-firing and re-queued

make sure to keep retrying if there are outstanding kevents even
if no kevent is found on first pass through the queue, and only
drop the KN_QUEUED flag and kq_count when actually completely done
with the kevent

change is inspired by the FreeBSD in-flux handling, but without
introducing the reference counting

PR kern/50094 by Christof Meerwald


To generate a diff of this commit:
cvs rdiff -u -r1.110 -r1.111 src/sys/kern/kern_event.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2020-12-27 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Dec 27 12:45:33 UTC 2020

Modified Files:
src/sys/kern: kern_event.c

Log Message:
reduce indentation for the main processing loop in kqueue_scan(), this also
makes the code more similar to FreeBSD; NFCI

part of PR kern/50094


To generate a diff of this commit:
cvs rdiff -u -r1.109 -r1.110 src/sys/kern/kern_event.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2020-12-20 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Dec 20 19:30:04 UTC 2020

Modified Files:
src/sys/dev/pci: aceride.c

Log Message:
disable (U)DMA for ATAPI on aceride(4), the chip doesn't support it
PR port-sparc64/55540


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/dev/pci/aceride.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/nvmectl

2020-09-27 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Sep 27 18:17:35 UTC 2020

Modified Files:
src/sbin/nvmectl: nvmectl.8 nvmectl.h power.c

Log Message:
add -s option for 'power' command, this instructs the controller to save
the value so it persists resets/whatnot; the NVMe specification lists
this as optional, so this only works if the controller supports it


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sbin/nvmectl/nvmectl.8 src/sbin/nvmectl/power.c
cvs rdiff -u -r1.8 -r1.9 src/sbin/nvmectl/nvmectl.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/nvmectl

2020-09-27 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Sep 27 17:27:08 UTC 2020

Modified Files:
src/sbin/nvmectl: power.c

Log Message:
print current power state and workload as separate values for
'nvmectl power nvme0'


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sbin/nvmectl/power.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sbin/nvmectl

2020-09-27 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Sep 27 16:45:21 UTC 2020

Modified Files:
src/sbin/nvmectl: identify.c

Log Message:
show APSTA support status in identify


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sbin/nvmectl/identify.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/ic

2020-09-27 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Sep 27 16:44:24 UTC 2020

Modified Files:
src/sys/dev/ic: nvmereg.h

Log Message:
add definition of the bit indicating support for APSTA


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/ic/nvmereg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/hid

2020-08-26 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Wed Aug 26 10:34:04 UTC 2020

Modified Files:
src/sys/dev/hid: hidkbdmap.c

Log Message:
for jp keymap map also scan code 49 to right bracket to handle ARCHISS model

PR kern/55608 by Shinichi Doyashiki


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/hid/hidkbdmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/doc

2020-08-16 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Aug 16 10:31:40 UTC 2020

Modified Files:
src/doc: CHANGES

Log Message:
note COMPAT_LINUX is disabled by default now


To generate a diff of this commit:
cvs rdiff -u -r1.2729 -r1.2730 src/doc/CHANGES

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2020-08-16 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Aug 16 10:27:47 UTC 2020

Modified Files:
src/sys/arch/alpha/conf: GENERIC
src/sys/arch/amd64/conf: GENERIC MODULAR NOCOMPAT XEN3_DOM0 XEN3_DOMU
src/sys/arch/evbarm/conf: ARMADILLO9 DUOVERO GUMSTIX HPT5325
MARVELL_NAS MV2120 OPENBLOCKS_A6 OPENBLOCKS_AX3 OPENRD PEPPER POGO
SHEEVAPLUG
src/sys/arch/i386/conf: GENERIC MODULAR XEN3PAE_DOM0 XEN3PAE_DOMU
src/sys/arch/netwinder/conf: GENERIC
src/sys/arch/sgimips/conf: GENERIC32_IP2x GENERIC32_IP3x INSTALL32_IP2x
std.sgimips64_32
src/sys/arch/shark/conf: GENERIC

Log Message:
make COMPAT_LINUX option disabled by default

leave the option enabled only in amd64/i386 ALL kernels to make
sure it continues to be compilable also when included in kernel


To generate a diff of this commit:
cvs rdiff -u -r1.403 -r1.404 src/sys/arch/alpha/conf/GENERIC
cvs rdiff -u -r1.574 -r1.575 src/sys/arch/amd64/conf/GENERIC
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/amd64/conf/MODULAR
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/amd64/conf/NOCOMPAT
cvs rdiff -u -r1.183 -r1.184 src/sys/arch/amd64/conf/XEN3_DOM0
cvs rdiff -u -r1.94 -r1.95 src/sys/arch/amd64/conf/XEN3_DOMU
cvs rdiff -u -r1.63 -r1.64 src/sys/arch/evbarm/conf/ARMADILLO9
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/evbarm/conf/DUOVERO
cvs rdiff -u -r1.105 -r1.106 src/sys/arch/evbarm/conf/GUMSTIX
cvs rdiff -u -r1.48 -r1.49 src/sys/arch/evbarm/conf/HPT5325
cvs rdiff -u -r1.39 -r1.40 src/sys/arch/evbarm/conf/MARVELL_NAS
cvs rdiff -u -r1.43 -r1.44 src/sys/arch/evbarm/conf/MV2120
cvs rdiff -u -r1.40 -r1.41 src/sys/arch/evbarm/conf/OPENBLOCKS_A6
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/evbarm/conf/OPENBLOCKS_AX3
cvs rdiff -u -r1.8 -r1.9 src/sys/arch/evbarm/conf/OPENRD \
src/sys/arch/evbarm/conf/POGO
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/evbarm/conf/PEPPER
cvs rdiff -u -r1.70 -r1.71 src/sys/arch/evbarm/conf/SHEEVAPLUG
cvs rdiff -u -r1.1230 -r1.1231 src/sys/arch/i386/conf/GENERIC
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/i386/conf/MODULAR
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/i386/conf/XEN3PAE_DOM0
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/i386/conf/XEN3PAE_DOMU
cvs rdiff -u -r1.140 -r1.141 src/sys/arch/netwinder/conf/GENERIC
cvs rdiff -u -r1.119 -r1.120 src/sys/arch/sgimips/conf/GENERIC32_IP2x
cvs rdiff -u -r1.131 -r1.132 src/sys/arch/sgimips/conf/GENERIC32_IP3x
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/sgimips/conf/INSTALL32_IP2x
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/sgimips/conf/std.sgimips64_32
cvs rdiff -u -r1.135 -r1.136 src/sys/arch/shark/conf/GENERIC

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



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

2020-08-01 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Aug  1 12:39:40 UTC 2020

Modified Files:
src/sys/arch/xen/x86: pintr.c xen_intr.c

Log Message:
adjust includes to pull __HAVE_PCI_MSI_MSIX properly


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/xen/x86/pintr.c
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/xen/x86/xen_intr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/x86

2020-08-01 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Aug  1 12:36:36 UTC 2020

Modified Files:
src/sys/arch/x86/pci: pci_intr_machdep.c
src/sys/arch/x86/x86: mainbus.c

Log Message:
reorder includes to pull __HAVE_PCI_MSI_MSIX properly via



To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/arch/x86/pci/pci_intr_machdep.c
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/x86/x86/mainbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/amd64/conf

2020-08-01 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Aug  1 12:28:19 UTC 2020

Modified Files:
src/sys/arch/amd64/conf: ALL

Log Message:
remove CISS_NO_INTERRUPT_HACK from ALL kernel config too, it's no longer
supported in ciss(4)


To generate a diff of this commit:
cvs rdiff -u -r1.159 -r1.160 src/sys/arch/amd64/conf/ALL

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



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

2020-08-01 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Aug  1 12:15:40 UTC 2020

Modified Files:
src/sys/arch/x86/conf: files.x86

Log Message:
defflag NO_PCI_MSI_MSIX


To generate a diff of this commit:
cvs rdiff -u -r1.118 -r1.119 src/sys/arch/x86/conf/files.x86

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2020-08-01 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Aug  1 12:14:40 UTC 2020

Modified Files:
src/sys/arch/amd64/include: types.h
src/sys/arch/i386/include: types.h
src/sys/arch/x86/include: pci_machdep_common.h

Log Message:
move __HAVE_PCI_MSI_MSIX to 


To generate a diff of this commit:
cvs rdiff -u -r1.68 -r1.69 src/sys/arch/amd64/include/types.h
cvs rdiff -u -r1.91 -r1.92 src/sys/arch/i386/include/types.h
cvs rdiff -u -r1.24 -r1.25 src/sys/arch/x86/include/pci_machdep_common.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2020-08-01 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Aug  1 11:18:26 UTC 2020

Modified Files:
src/sys/kern: subr_autoconf.c

Log Message:
avoid VLA for the sizeof() calculations


To generate a diff of this commit:
cvs rdiff -u -r1.272 -r1.273 src/sys/kern/subr_autoconf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2020-07-29 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Wed Jul 29 13:03:36 UTC 2020

Modified Files:
src/sys/dev/pci: xmm7360.c

Log Message:
fix xmm7360_os_msleep() macro to actually work when not wrapped inside a block

from genua


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/pci/xmm7360.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2020-07-29 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Wed Jul 29 13:01:19 UTC 2020

Modified Files:
src/sys/dev/pci: xmm7360.c

Log Message:
sprinkle __diagused so this compiles without DIAGNOSTIC


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/pci/xmm7360.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2020-07-29 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Wed Jul 29 13:00:26 UTC 2020

Modified Files:
src/sys/dev/pci: xmm7360.c

Log Message:
adjust OpenBSD mbuf handling so tcpdump(1) works there; from genua

keep code as-is for NetBSD, DLT_RAW works there


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/pci/xmm7360.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2020-07-29 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Wed Jul 29 07:14:45 UTC 2020

Modified Files:
src/sys/dev/pci: nvme_pci.c

Log Message:
rename label now that it has dual purpose; suggested by mrg@


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/dev/pci/nvme_pci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/ic

2020-07-28 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Jul 28 15:59:19 UTC 2020

Modified Files:
src/sys/dev/ic: nvme.c

Log Message:
say what is not configured in nvme_print()


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/dev/ic/nvme.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/doc

2020-07-28 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Jul 28 10:29:30 UTC 2020

Modified Files:
src/doc: CHANGES

Log Message:
note that MSI was enabled by default for Xen


To generate a diff of this commit:
cvs rdiff -u -r1.2720 -r1.2721 src/doc/CHANGES

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2020-07-28 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Jul 28 09:38:06 UTC 2020

Modified Files:
src/sys/arch/amd64/conf: XEN3_DOM0
src/sys/arch/i386/conf: XEN3PAE_DOM0

Log Message:
remove NO_PCI_MSI_MSIX again, enabling MSI for Xen Dom0 by default


To generate a diff of this commit:
cvs rdiff -u -r1.181 -r1.182 src/sys/arch/amd64/conf/XEN3_DOM0
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/i386/conf/XEN3PAE_DOM0

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev

2020-07-28 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Jul 28 09:36:05 UTC 2020

Modified Files:
src/sys/dev/ic: nvmevar.h
src/sys/dev/pci: nvme_pci.c

Log Message:
add a quirk to disable MSI, and enable it for Intel SSD DC P4500

this device seems to cause serious system responsiveness issues when configured
to use MSI, while it works fine when configured for either INTx or MSI-X

this is important so this works well under Xen Dom0, which doesn't
support MSI-X yet

fixes another issue reported as feedback for PR port-xen/55285 by Frank Kardel


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/ic/nvmevar.h
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/pci/nvme_pci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man4

2020-07-27 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Jul 27 14:17:47 UTC 2020

Modified Files:
src/share/man/man4: wwanc.4

Log Message:
add reference to net/py-xmm7360 for the network initialization script


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/share/man/man4/wwanc.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man4

2020-07-27 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Jul 27 11:12:56 UTC 2020

Modified Files:
src/share/man/man4: wwanc.4

Log Message:
more attribution


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/share/man/man4/wwanc.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2020-07-26 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Jul 26 17:12:41 UTC 2020

Modified Files:
src/sys/dev/pci: xmm7360.c

Log Message:
fix attribution - I was confused what was the correct final version


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/pci/xmm7360.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man4

2020-07-26 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Jul 26 15:57:03 UTC 2020

Modified Files:
src/share/man/man4: wwanc.4

Log Message:
finish sentence


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/share/man/man4/wwanc.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man4

2020-07-26 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Jul 26 15:56:30 UTC 2020

Modified Files:
src/share/man/man4: wwanc.4

Log Message:
add note that the network initialization script needs the device nodes
to be created


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/share/man/man4/wwanc.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/etc

2020-07-26 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Jul 26 15:47:27 UTC 2020

Modified Files:
src/etc: MAKEDEV.tmpl
src/etc/etc.amd64: MAKEDEV.conf

Log Message:
add support for wwanc(4) device nodes (xmm[0-9])


To generate a diff of this commit:
cvs rdiff -u -r1.220 -r1.221 src/etc/MAKEDEV.tmpl
cvs rdiff -u -r1.29 -r1.30 src/etc/etc.amd64/MAKEDEV.conf

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/doc

2020-07-26 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Jul 26 15:14:23 UTC 2020

Modified Files:
src/doc: CHANGES

Log Message:
note new Intel XMM7360 driver


To generate a diff of this commit:
cvs rdiff -u -r1.2719 -r1.2720 src/doc/CHANGES

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2020-07-26 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Jul 26 15:13:10 UTC 2020

Modified Files:
src/distrib/sets/lists/man: mi
src/share/man/man4: Makefile
Added Files:
src/share/man/man4: wwanc.4

Log Message:
add rudimentary wwanc(4) manpage


To generate a diff of this commit:
cvs rdiff -u -r1.1696 -r1.1697 src/distrib/sets/lists/man/mi
cvs rdiff -u -r1.705 -r1.706 src/share/man/man4/Makefile
cvs rdiff -u -r0 -r1.1 src/share/man/man4/wwanc.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2020-07-26 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Jul 26 14:51:19 UTC 2020

Modified Files:
src/sys/arch/amd64/conf: ALL
src/sys/conf: majors
src/sys/dev/pci: files.pci
Added Files:
src/sys/dev/pci: xmm7360.c

Log Message:
Add driver for Intel XMM7360 LTE modem, based upon Linux driver available
at https://github.com/xmm7360/xmm7360-pci

This version works on Linux, OpenBSD, and NetBSD.

OpenBSD port written for genua GmbH

Modem requires python script from the master site to initialize the network,
it will be added to pkgsrc shortly


To generate a diff of this commit:
cvs rdiff -u -r1.157 -r1.158 src/sys/arch/amd64/conf/ALL
cvs rdiff -u -r1.94 -r1.95 src/sys/conf/majors
cvs rdiff -u -r1.429 -r1.430 src/sys/dev/pci/files.pci
cvs rdiff -u -r0 -r1.1 src/sys/dev/pci/xmm7360.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2020-07-23 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Fri Jul 24 06:12:21 UTC 2020

Modified Files:
src/distrib/sets/lists/comp: md.amd64 md.i386
src/sys/arch/xen/include: Makefile

Log Message:
 is in fact used by the newly imported xentools 4.13,
reinstantiate it

header is for use by xentools only, which define domid_t themselves,
so it should not be a problem the header doesn't define it per PR port-xen/52874


To generate a diff of this commit:
cvs rdiff -u -r1.278 -r1.279 src/distrib/sets/lists/comp/md.amd64
cvs rdiff -u -r1.196 -r1.197 src/distrib/sets/lists/comp/md.i386
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/xen/include/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/conf

2020-07-22 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Wed Jul 22 19:37:59 UTC 2020

Modified Files:
src/sys/conf: Makefile.kern.inc

Log Message:
enable -Walloca, warn if something uses alloca()


To generate a diff of this commit:
cvs rdiff -u -r1.274 -r1.275 src/sys/conf/Makefile.kern.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



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

2020-07-19 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Jul 19 16:20:36 UTC 2020

Modified Files:
src/sys/arch/xen/x86: pintr.c

Log Message:
add #ifdef __HAVE_PCI_MSI_MSIX so this still compiles with NO_PCI_MSI_MSIX


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/xen/x86/pintr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



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

2020-07-19 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Jul 19 16:17:00 UTC 2020

Modified Files:
src/sys/arch/x86/include: specialreg.h

Log Message:
add definition for MSR_IA32_FEATURE_CONTROL, just for information


To generate a diff of this commit:
cvs rdiff -u -r1.168 -r1.169 src/sys/arch/x86/include/specialreg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch

2020-07-19 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Jul 19 14:27:07 UTC 2020

Modified Files:
src/sys/arch/x86/pci: pci_msi_machdep.c
src/sys/arch/xen/include: intr.h
src/sys/arch/xen/x86: pintr.c

Log Message:
for Xen MSI, fallback to INTx when PHYSDEVOP_map_pirq fails for the device

apparently Xen requires VT-d to be enabled in BIOS for PHYSDEVOP_map_pirq
to work, this change makes it work on systems with VT-d disabled or missing

adresses the panic part of PR port-xen/55285 by Patrick Welche


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/x86/pci/pci_msi_machdep.c
cvs rdiff -u -r1.57 -r1.58 src/sys/arch/xen/include/intr.h
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/xen/x86/pintr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2020-07-17 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Fri Jul 17 21:04:14 UTC 2020

Modified Files:
src/sys/dev/pci: cmdide.c

Log Message:
remove explicit irqack() call for unexpected interrupt; this happens
normally during boot when running identify for the drive as polled
command, and fixes hard hang caused by the irqack() on a sun machine

the unexpected interrupt happens because cmdide doesn't respect
WDCTL_IDS bit and triggers interrupt also for polled commands

also reclassify the "bogus intr" as aprint_verbose() to avoid noise
on boot

discussed and tested by Martin Husemann


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/sys/dev/pci/cmdide.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2020-07-17 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Fri Jul 17 12:12:24 UTC 2020

Modified Files:
src/distrib/sets/lists/comp: md.amd64 md.i386
src/sys/arch/xen/include: Makefile

Log Message:
don't install xen/xenio.h and xen/xenio3.h anymore, xentools don't use it

PR port-xen/52874


To generate a diff of this commit:
cvs rdiff -u -r1.277 -r1.278 src/distrib/sets/lists/comp/md.amd64
cvs rdiff -u -r1.195 -r1.196 src/distrib/sets/lists/comp/md.i386
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/xen/include/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2020-07-17 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Fri Jul 17 10:56:15 UTC 2020

Modified Files:
src/sys/dev/pci: if_bnx.c

Log Message:
if bnx_tx_encap() fails because mbuf is too fragmented or too long,
drop the mbuf instead of wedging the TX queue forever; found by code inspection

this is quite unlikely scenario since it requires mbuf chain consisting of
more than 8 frags and m_defrag() failing, so probably unrelated to PR kern/47229


To generate a diff of this commit:
cvs rdiff -u -r1.104 -r1.105 src/sys/dev/pci/if_bnx.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2020-07-17 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Fri Jul 17 10:08:04 UTC 2020

Modified Files:
src/sys/dev/pci: if_bnx.c

Log Message:
make sure bnx_alloc_pkts() always clears BNX_ALLOC_PKTS_FLAG and IFF_OACTIVE,
even on dmamap allocation failure; remove unnecessary IFF_UP condition


To generate a diff of this commit:
cvs rdiff -u -r1.103 -r1.104 src/sys/dev/pci/if_bnx.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2020-07-17 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Fri Jul 17 09:51:31 UTC 2020

Modified Files:
src/sys/dev/pci: if_bnx.c

Log Message:
remove mistakely committed in-progress code from previous commit


To generate a diff of this commit:
cvs rdiff -u -r1.102 -r1.103 src/sys/dev/pci/if_bnx.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2020-07-17 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Fri Jul 17 09:48:21 UTC 2020

Modified Files:
src/sys/dev/pci: if_bnx.c

Log Message:
re-enable MSI/MSI-X, the TX timeouts were caused by the IFF_OACTIVE handling,
which was fixed in previous revision


To generate a diff of this commit:
cvs rdiff -u -r1.101 -r1.102 src/sys/dev/pci/if_bnx.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2020-07-16 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Thu Jul 16 14:57:59 UTC 2020

Modified Files:
src/sys/dev/pci: if_bnx.c

Log Message:
need to clear IFF_OACTIVE after allocating more pkts in order to actually
start processing the queue in bnx_start()


To generate a diff of this commit:
cvs rdiff -u -r1.100 -r1.101 src/sys/dev/pci/if_bnx.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2020-07-16 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Thu Jul 16 14:44:43 UTC 2020

Modified Files:
src/sys/dev/pci: if_bnx.c

Log Message:
disable MSI/MSI-X for time being, it causes interrupt timeouts and needs
to be investigated before enabling this again


To generate a diff of this commit:
cvs rdiff -u -r1.99 -r1.100 src/sys/dev/pci/if_bnx.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/ic

2020-07-16 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Thu Jul 16 14:41:04 UTC 2020

Modified Files:
src/sys/dev/ic: cissreg.h

Log Message:
make sure the alignment of ciss_cmd matches KASSERT() in ciss_cmd()


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/ic/cissreg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/ic

2020-07-16 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Thu Jul 16 14:39:33 UTC 2020

Modified Files:
src/sys/dev/ic: ciss.c cissreg.h

Log Message:
revert the conversion to STAILQ, it broke execution of commands


To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/sys/dev/ic/ciss.c
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/ic/cissreg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/ic

2020-07-15 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Wed Jul 15 14:33:59 UTC 2020

Modified Files:
src/sys/dev/ic: cissvar.h

Log Message:
g/c unused sc_channel_raw, sc_adapter_raw


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/ic/cissvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/doc

2020-07-14 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Jul 14 17:40:10 UTC 2020

Modified Files:
src/doc: CHANGES

Log Message:
note ciss(4) adapter match update


To generate a diff of this commit:
cvs rdiff -u -r1.2712 -r1.2713 src/doc/CHANGES

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man4

2020-07-14 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Jul 14 17:39:19 UTC 2020

Modified Files:
src/share/man/man4: ciss.4

Log Message:
update list of matched adapters


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/share/man/man4/ciss.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2020-07-14 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Jul 14 17:23:59 UTC 2020

Modified Files:
src/sys/dev/pci: ciss_pci.c

Log Message:
match newer HP Smart Array controllers, list from FreeBSD


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/dev/pci/ciss_pci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2020-07-14 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Jul 14 17:23:27 UTC 2020

Modified Files:
src/sys/dev/pci: ciss_pci.c

Log Message:
fix __arraycount() parameter


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/pci/ciss_pci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2020-07-14 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Jul 14 17:19:03 UTC 2020

Modified Files:
src/sys/dev/pci: ciss_pci.c

Log Message:
make ciss_pci_devices[] more compact


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/pci/ciss_pci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2020-07-14 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Jul 14 16:57:12 UTC 2020

Modified Files:
src/sys/dev/pci: pcidevs.h pcidevs_data.h

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.1405 -r1.1406 src/sys/dev/pci/pcidevs.h
cvs rdiff -u -r1.1404 -r1.1405 src/sys/dev/pci/pcidevs_data.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2020-07-14 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Jul 14 16:56:35 UTC 2020

Modified Files:
src/sys/dev/pci: pcidevs

Log Message:
add newer ciss(4) devices, list obtained from FreeBSD


To generate a diff of this commit:
cvs rdiff -u -r1.1418 -r1.1419 src/sys/dev/pci/pcidevs

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2020-07-14 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Jul 14 15:37:40 UTC 2020

Modified Files:
src/sys/dev/pci: if_bnx.c if_bnxvar.h

Log Message:
make bnx_wk (used to trigger bnx_alloc_pkts()) part of softc instead
of using a static variable, so it's independant for each adapter


To generate a diff of this commit:
cvs rdiff -u -r1.98 -r1.99 src/sys/dev/pci/if_bnx.c
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/pci/if_bnxvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2020-07-14 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Jul 14 12:15:16 UTC 2020

Modified Files:
src/sys/dev/pci: if_bnx.c

Log Message:
remove call to bnx_alloc_pkts() from bnx_init_tx_chain() - it can
be called from softint context via bnx_watchdog(), and bnx_alloc_pkts()
dmamap allocation can't run in (soft)interrupt context


To generate a diff of this commit:
cvs rdiff -u -r1.97 -r1.98 src/sys/dev/pci/if_bnx.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev

2020-07-14 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Jul 14 12:04:46 UTC 2020

Modified Files:
src/sys/dev/ic: ciss.c cissvar.h
src/sys/dev/pci: ciss_pci.c

Log Message:
remove CISS_NO_INTERRUPT_HACK, discussed with joerg@ and spz@


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/sys/dev/ic/ciss.c
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/ic/cissvar.h
cvs rdiff -u -r1.18 -r1.19 src/sys/dev/pci/ciss_pci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/ic

2020-07-14 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Jul 14 11:44:53 UTC 2020

Modified Files:
src/sys/dev/ic: ciss.c cissreg.h

Log Message:
remove ccb_sc to save memory, no need to store pointer to sc in ccb


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/sys/dev/ic/ciss.c
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/ic/cissreg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/ic

2020-07-14 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Jul 14 11:39:02 UTC 2020

Modified Files:
src/sys/dev/ic: ciss.c cissreg.h

Log Message:
use STAILQ for ccb lists to save some memory, doubly-linked list is not needed


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/sys/dev/ic/ciss.c
cvs rdiff -u -r1.6 -r1.7 src/sys/dev/ic/cissreg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/doc

2020-07-14 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Jul 14 10:49:21 UTC 2020

Modified Files:
src/doc: CHANGES

Log Message:
note bnx(4) MSI/MSI-X and ciss(4) PERFORMANT+MSI/MSI-X


To generate a diff of this commit:
cvs rdiff -u -r1.2711 -r1.2712 src/doc/CHANGES

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/ic

2020-07-14 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Jul 14 10:44:34 UTC 2020

Modified Files:
src/sys/dev/ic: ciss.c

Log Message:
only copy the actual command length in ciss_scsi_cmd(), instead of always
copying CISS_MAX_CDB bytes

Fixes reading past buffer memory triggered e.g. on kernel dump, reported
by KASAN:
ASan: Unauthorized Access In ...: Addr ... [16 bytes, read, RedZonePartial]

also do not pre-zero the cdb before copying cmd to it, there is no need for it


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/sys/dev/ic/ciss.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/ic

2020-07-14 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Jul 14 10:38:07 UTC 2020

Modified Files:
src/sys/dev/ic: ciss.c

Log Message:
g/c #if 0'ed ciss_scsi_raw_cmd()


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/sys/dev/ic/ciss.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev

2020-07-14 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Jul 14 10:37:30 UTC 2020

Modified Files:
src/sys/dev/ic: ciss.c cissreg.h cissvar.h
src/sys/dev/pci: ciss_pci.c

Log Message:
add support for PERFORMANT mode, and allow MSI/MSI-X (only) for adapters which
support it

code adapted from FreeBSD, but with fix for setting the performant bit
and pull count on command submittion as seen in hpsa Linux driver

tested with INTx and MSI-X on HP Smart Array 11

thanks to Andreas Gustafsson for initial testing, and providing
access to test machine


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/sys/dev/ic/ciss.c
cvs rdiff -u -r1.5 -r1.6 src/sys/dev/ic/cissreg.h
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/ic/cissvar.h
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/pci/ciss_pci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2020-07-14 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Jul 14 10:26:34 UTC 2020

Modified Files:
src/sys/dev/pci: if_bnx.c

Log Message:
only destroy the TX pkgs and dmamaps in bnx_dma_free() called on detach, don't
do it anymore in bnx_free_tx_chain(), called from bnx_init()

avoid occassional panic triggered by the free code having to allocate
memory from interrupt context when bnx_init() is called from bnx_watchdog()


To generate a diff of this commit:
cvs rdiff -u -r1.96 -r1.97 src/sys/dev/pci/if_bnx.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/xen

2020-07-13 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Jul 13 21:21:57 UTC 2020

Modified Files:
src/sys/arch/xen/xen: xbd_xenbus.c

Log Message:
change xbd_unmap_align() to get the bp via argument rathen than
req_bp, to avoid using req_bp after it's been set to NULL by the
time xbd_unmap_align() is called in xbd_handler(); this fixes
regression caused by previous fix

also make sure xbd_unmap_align() works correctly even when using the
linked request pair for I/O (ie. for Dom0 not supporting indirect
segments), regardless of the order the paired requests finish


To generate a diff of this commit:
cvs rdiff -u -r1.128 -r1.129 src/sys/arch/xen/xen/xbd_xenbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2020-07-12 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Jul 12 19:05:32 UTC 2020

Modified Files:
src/sys/dev/pci: if_bnx.c if_bnxvar.h

Log Message:
enable MSI/MSI-X if supported by adapter

tested MSI-X with Broadcom NetXtreme II BCM5709 1000Base-T


To generate a diff of this commit:
cvs rdiff -u -r1.95 -r1.96 src/sys/dev/pci/if_bnx.c
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/pci/if_bnxvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/ic

2020-07-10 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Fri Jul 10 14:24:14 UTC 2020

Modified Files:
src/sys/dev/ic: cissvar.h

Log Message:
remove write-only sc_ccbq, and unused sc_ccbdone


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/ic/cissvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/ic

2020-07-10 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Fri Jul 10 14:23:56 UTC 2020

Modified Files:
src/sys/dev/ic: ciss.c

Log Message:
remove write-only sc_ccbq, and unused sc_ccbdone


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/dev/ic/ciss.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



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

2020-07-09 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Thu Jul  9 22:45:54 UTC 2020

Modified Files:
src/sys/arch/x86/x86: x86_autoconf.c

Log Message:
Adapt to proplib api changes


To generate a diff of this commit:
cvs rdiff -u -r1.83 -r1.84 src/sys/arch/x86/x86/x86_autoconf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



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

2020-07-08 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Wed Jul  8 11:11:00 UTC 2020

Modified Files:
src/sys/arch/xen/x86: cpu.c

Log Message:
initalize ci_kfpu_spl, to avoid triggering KASSERT() in fpu_kern_enter()

Follows revision 1.177 of sys/arch/x86/x86/cpu.c:
"""
Add a small API for in-kernel FPU operations.

fpu_kern_enter();
/* do FPU stuff */
fpu_kern_leave();
"""

With this DomU kernel boots with:
[   2.571] aes: Intel AES-NI


To generate a diff of this commit:
cvs rdiff -u -r1.137 -r1.138 src/sys/arch/xen/x86/cpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2020-07-05 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Jul  5 19:28:37 UTC 2020

Modified Files:
src/sys/dev/pci: ciss_pci.c

Log Message:
there is more to MSI/MSI-X support in ciss(4) than just allocating the
right interrupt, it needs some explicit support; disable for now
until the full support is there

PR kern/55461


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/pci/ciss_pci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2020-07-04 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Jul  4 14:49:24 UTC 2020

Modified Files:
src/sys/dev/pci: ciss_pci.c uhci_pci.c

Log Message:
switch to pci_intr_alloc() so this uses MSI/MSI-X if device supports it


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/pci/ciss_pci.c
cvs rdiff -u -r1.63 -r1.64 src/sys/dev/pci/uhci_pci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/sys

2020-07-03 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Fri Jul  3 19:37:28 UTC 2020

Modified Files:
src/sys/sys: statvfs.h

Log Message:
add a cast to (struct statvfs *) for STATVFSBUF_GET() to make sure it's
never assigned to anything else


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/sys/statvfs.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/compat/sys

2020-07-03 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Fri Jul  3 18:49:38 UTC 2020

Modified Files:
src/sys/compat/sys: mount.h

Log Message:
don't overallocate (follows similar change to compat/sys/statvfs.h)


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/compat/sys/mount.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/etc/root

2020-07-02 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Thu Jul  2 11:08:55 UTC 2020

Modified Files:
src/etc/root: dot.cshrc

Log Message:
fix incomplete gnu/ deletion - PR misc/55444 by Jim Bernard


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/etc/root/dot.cshrc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2020-07-01 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Wed Jul  1 17:57:14 UTC 2020

Modified Files:
src/sys/dev/pci: cmdide.c

Log Message:
revert, not working


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/sys/dev/pci/cmdide.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/pci

2020-07-01 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Wed Jul  1 15:10:01 UTC 2020

Modified Files:
src/sys/dev/pci: cmdide.c

Log Message:
ignore interrupt when not expecting one, particularly don't invoke
the irqack in this case

seems cmdide doesn't honour WDCTL_IDS when executing polled commands,
and there is a race where the irqack call interferes with polled
command and causes a lockup

reported by Martin Husemann


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/sys/dev/pci/cmdide.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/arch/xen/xen

2020-06-29 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Jun 29 21:45:50 UTC 2020

Modified Files:
src/sys/arch/xen/xen: xbd_xenbus.c

Log Message:
when using two linked requests for I/O (i.e. when backend doesn't support
INDIRECT segments), make sure to clear req_bp for both of them

fixes a misfired assertion in BLKIF_OP_FLUSH_DISKCACHE - PR port-xen/55431


To generate a diff of this commit:
cvs rdiff -u -r1.127 -r1.128 src/sys/arch/xen/xen/xbd_xenbus.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



  1   2   3   4   5   6   7   8   9   10   >