CVS commit: src/sys/dev/ata

2017-10-08 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Oct  8 19:00:29 UTC 2017

Modified Files:
src/sys/dev/ata: ata.c ataconf.h files.ata

Log Message:
as a stopgap measure, include necessary parts of dev/ata/ata.c even
if no atabus is configured, so that kernels with just 'wd* at umass?'
and no atabus compile; fixes kernel builds for vax, pmax and evbmips
after NCQ branch merge

XXX wd* at umass? still actually untested after the merge, need to discuss
XXX what to do with it


To generate a diff of this commit:
cvs rdiff -u -r1.134 -r1.135 src/sys/dev/ata/ata.c
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/ata/ataconf.h
cvs rdiff -u -r1.25 -r1.26 src/sys/dev/ata/files.ata

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



CVS commit: src/sys/dev/ofisa

2017-10-09 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Oct 10 05:35:15 UTC 2017

Modified Files:
src/sys/dev/ofisa: wdc_ofisa.c

Log Message:
fix wdc_init_shadow_regs() arg


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/sys/dev/ofisa/wdc_ofisa.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

2017-10-10 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Oct 10 16:30:23 UTC 2017

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

Log Message:
make compile with ATAPI_DEBUG_PROBE (by copying over the code from
atapi_wdc.c), which is on e.g. for i386/amd64 ALL kernels
problem found by hannken@, thanks


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/dev/ic/mvsata.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

2017-10-10 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Oct 10 16:44:24 UTC 2017

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

Log Message:
make compile with UISDATA_DEBUG


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/sys/dev/usb/umass_isdata.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/ata

2017-10-10 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Oct 10 17:19:39 UTC 2017

Modified Files:
src/sys/dev/ata: ata.c ataconf.h atavar.h files.ata
Added Files:
src/sys/dev/ata: ata_subr.c

Log Message:
split off functions used by 'wd* at umass?' into separate file, unfortunately
the previous approach with NATABUS doesn't work for kernels which include
MODULAR, but not atabus - such as macppc and evbarm


To generate a diff of this commit:
cvs rdiff -u -r1.135 -r1.136 src/sys/dev/ata/ata.c
cvs rdiff -u -r0 -r1.1 src/sys/dev/ata/ata_subr.c
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/ata/ataconf.h
cvs rdiff -u -r1.93 -r1.94 src/sys/dev/ata/atavar.h
cvs rdiff -u -r1.26 -r1.27 src/sys/dev/ata/files.ata

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



CVS commit: src/sys/sys

2017-10-10 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Oct 10 17:20:42 UTC 2017

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

Log Message:
bump kernel version for SATA NCQ branch merge


To generate a diff of this commit:
cvs rdiff -u -r1.546 -r1.547 src/sys/sys/param.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/scsipi

2017-10-10 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Oct 10 21:37:49 UTC 2017

Modified Files:
src/sys/dev/scsipi: atapi_wdc.c

Log Message:
revert the logic in wdc_atapi_intr() for wdc_wait_for_unbusy() to what it
was before NCQ merge; it got broken during the efford to remove ch_status
and ch_error on the branch

fixes atapi timeouts in vbox and with real harware reported separately
by Abhinav Upadhyay, Pault Goyette, Chavdar Ivanov, and Rares
Aioanei; with a bit of luck it could also fix PR kern/52605 and/or PR
kern/52606 by Martin Husemann


To generate a diff of this commit:
cvs rdiff -u -r1.127 -r1.128 src/sys/dev/scsipi/atapi_wdc.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/ata

2017-10-14 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Oct 14 13:15:14 UTC 2017

Modified Files:
src/sys/dev/ata: wd.c

Log Message:
only call drive reset with AT_POLL when the command itself was
polled, so that the logic for AT_POLL matches how e.g. ata_dmaerr() is
called; this was the original intent of the change in 1.428.2.25,
to make the error handling safe wrt. polled xfers

this is stopgap fix for ATA channel wedge after DMA error, as reported
by Martin Husemann in PR kern/52606, and PR kern/52605

problem happened due to ata_reset_channel() being called once in ata_dmaerr()
with flags == 0, which freezed channel and set flag to reset via thread,
then ata_reset_channel() was called via wdc_drive_reset() with AT_POLL, which
just executed the reset and cleared the flag, without clearing the extra
freeze; that logic will be refactored in separate commit


To generate a diff of this commit:
cvs rdiff -u -r1.430 -r1.431 src/sys/dev/ata/wd.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/ata

2017-10-14 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Oct 14 13:20:32 UTC 2017

Modified Files:
src/sys/dev/ata: wd.c

Log Message:
do not use the NCQ priority by default; seems it negatively affects
performance at least with some drives, so this needs better understood first


To generate a diff of this commit:
cvs rdiff -u -r1.431 -r1.432 src/sys/dev/ata/wd.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/ata

2017-10-15 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Oct 15 11:27:14 UTC 2017

Modified Files:
src/sys/dev/ata: ata_wdc.c

Log Message:
revert the logic for wdc_wait_for_unbusy() in wdc_ata_bio_intr() to pre-NCQ,
wdcintr() and wdctimeout() need that; follows same change
in atapi_wdc.c rev. 1.128


To generate a diff of this commit:
cvs rdiff -u -r1.107 -r1.108 src/sys/dev/ata/ata_wdc.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/ata

2017-10-15 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Oct 15 14:41:07 UTC 2017

Modified Files:
src/sys/dev/ata: ata.c

Log Message:
move the extra thaw for scheduled ata_reset_channel() to the function itself,
so it's done regardless if the actual reset is run from thread context
or e.g. call with AT_POLL; fixes a hang after xfer failure and dma downgrade

add some debugging printfs, so freeze/thaw issues are easier to track


To generate a diff of this commit:
cvs rdiff -u -r1.136 -r1.137 src/sys/dev/ata/ata.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

2017-10-15 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Oct 15 18:02:33 UTC 2017

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

Log Message:
explicitely ignore polled xfers in wdcintr(), so it won't be processed
twice - seems setting WDSD_IBM actually has no effect at least
on some PCI-IDE, and the interrupt ends up being triggered when we release
the channel lock to call c_poll hook

fixes PR kern/52605, and should also fix the 'New panic in wdc_ata_bio_intr'
reported on current-users@


To generate a diff of this commit:
cvs rdiff -u -r1.284 -r1.285 src/sys/dev/ic/wdc.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

2017-10-15 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Oct 16 05:52:43 UTC 2017

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

Log Message:
fix comment - it's WDCTL_IDS which is supposed to disable interrupts


To generate a diff of this commit:
cvs rdiff -u -r1.285 -r1.286 src/sys/dev/ic/wdc.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

2017-10-17 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Oct 17 16:24:14 UTC 2017

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

Log Message:
no need to clear DMA WAIT flag in mvsata_edma_handle(), it's not needed
by atabus layer


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/sys/dev/ic/mvsata.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

2017-10-17 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Oct 17 18:52:51 UTC 2017

Modified Files:
src/sys/dev/ata: ata_subr.c ata_wdc.c atavar.h
src/sys/dev/ic: wdc.c
src/sys/dev/pci: pciide_common.c
src/sys/dev/scsipi: atapi_wdc.c

Log Message:
reintroduce ATACH_IRQ_WAIT flag for attachments using wdcintr(), only
process the interrupt when the flag is set - this fixes spurious interrupt
during post-reset drive setup in wdc_ata_bio_start(), and wdc_atapi_start()

while those functions set WDCTL_IDS, this seems to be ignored by certain
(maybe all) PCI-IDE controllers; usually the implicit KERNEL_LOCK() would
prevent the interrupt anyway, but not when the start routine is started
from the atabus thread, which doesn't take it

fixes 'panic: wdc_ata_bio_intr: bad state' reported on current-users
by Chavdar Ivanov


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/ata/ata_subr.c
cvs rdiff -u -r1.108 -r1.109 src/sys/dev/ata/ata_wdc.c
cvs rdiff -u -r1.94 -r1.95 src/sys/dev/ata/atavar.h
cvs rdiff -u -r1.286 -r1.287 src/sys/dev/ic/wdc.c
cvs rdiff -u -r1.63 -r1.64 src/sys/dev/pci/pciide_common.c
cvs rdiff -u -r1.128 -r1.129 src/sys/dev/scsipi/atapi_wdc.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/ata

2017-10-18 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Wed Oct 18 08:38:35 UTC 2017

Modified Files:
src/sys/dev/ata: ata.c

Log Message:
add newlines to the debug messages


To generate a diff of this commit:
cvs rdiff -u -r1.137 -r1.138 src/sys/dev/ata/ata.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

2017-10-19 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Thu Oct 19 20:11:38 UTC 2017

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

Log Message:
replace the chek for the shared channel of cmdide(4) a flag of the
product array, rather than switch inside attach routine

XXX judging from product name, Silicon Image 0680 might be newer than 0649
XXX and hence have actually independant channels, but I don't have the hw
XXX so keeping as-is

no functional change, just to improve visibility in course of fixing
PR kern/52606


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sys/dev/pci/cmdide.c
cvs rdiff -u -r1.47 -r1.48 src/sys/dev/pci/pciidevar.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/ata

2017-10-19 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Thu Oct 19 20:45:07 UTC 2017

Modified Files:
src/sys/dev/ata: ata.c ata_subr.c wd.c

Log Message:
more detailed debug info; also sync DEBUG_* values in wd.c with ata.c


To generate a diff of this commit:
cvs rdiff -u -r1.138 -r1.139 src/sys/dev/ata/ata.c
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/ata/ata_subr.c
cvs rdiff -u -r1.432 -r1.433 src/sys/dev/ata/wd.c

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



CVS commit: src/sys

2017-10-20 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Fri Oct 20 07:06:08 UTC 2017

Modified Files:
src/sys/arch/acorn32/eb7500atx: rside.c
src/sys/arch/acorn32/mainbus: wdc_pioc.c
src/sys/arch/acorn32/podulebus: icside.c rapide.c simide.c
src/sys/arch/amiga/dev: efa.c wdc_acafh.c wdc_amiga.c wdc_buddha.c
wdc_xsurf.c
src/sys/arch/arm/gemini: obio_wdc.c
src/sys/arch/atari/dev: wdc_mb.c
src/sys/arch/dreamcast/dev/g1: wdc_g1.c
src/sys/arch/evbarm/iq31244: wdc_obio.c
src/sys/arch/evbarm/tsarm: wdc_ts.c
src/sys/arch/evbppc/mpc85xx: wdc_obio.c
src/sys/arch/i386/pnpbios: pciide_pnpbios.c
src/sys/arch/landisk/dev: wdc_obio.c
src/sys/arch/mac68k/obio: wdc_obio.c
src/sys/arch/macppc/dev: kauai.c wdc_obio.c
src/sys/arch/mips/adm5120/dev: wdc_extio.c
src/sys/arch/mmeye/dev: wdc_mainbus.c
src/sys/arch/playstation2/dev: wdc_spd.c
src/sys/arch/prep/pnpbus: wdc_pnpbus.c
src/sys/dev/ata: ata.c ata_subr.c
src/sys/dev/ic: ahcisata_core.c ninjaata32.c siisata.c wdc.c wdc_upc.c
src/sys/dev/isa: wdc_isa.c
src/sys/dev/isapnp: wdc_isapnp.c
src/sys/dev/ofisa: wdc_ofisa.c
src/sys/dev/pci: artsata.c cmdide.c cypide.c pciide_common.c pdcsata.c
satalink.c viaide.c
src/sys/dev/pcmcia: wdc_pcmcia.c
src/sys/dev/podulebus: dtide.c hcide.c
src/sys/dev/usb: umass_isdata.c

Log Message:
move ata_queue_alloc(1) and ata_queue_free() calls to ata_channel_init()
and ata_channel_destroy() respectively, to make attachment code simpler,
and to make it easier to spot special queue manipulation like cmdide(4)

on topic of PR kern/52606


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/acorn32/eb7500atx/rside.c
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/acorn32/mainbus/wdc_pioc.c
cvs rdiff -u -r1.33 -r1.34 src/sys/arch/acorn32/podulebus/icside.c
cvs rdiff -u -r1.31 -r1.32 src/sys/arch/acorn32/podulebus/rapide.c
cvs rdiff -u -r1.30 -r1.31 src/sys/arch/acorn32/podulebus/simide.c
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/amiga/dev/efa.c
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/amiga/dev/wdc_acafh.c \
src/sys/arch/amiga/dev/wdc_xsurf.c
cvs rdiff -u -r1.39 -r1.40 src/sys/arch/amiga/dev/wdc_amiga.c
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/amiga/dev/wdc_buddha.c
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/arm/gemini/obio_wdc.c
cvs rdiff -u -r1.39 -r1.40 src/sys/arch/atari/dev/wdc_mb.c
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/dreamcast/dev/g1/wdc_g1.c
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/evbarm/iq31244/wdc_obio.c
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/evbarm/tsarm/wdc_ts.c
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/evbppc/mpc85xx/wdc_obio.c
cvs rdiff -u -r1.32 -r1.33 src/sys/arch/i386/pnpbios/pciide_pnpbios.c
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/landisk/dev/wdc_obio.c
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/mac68k/obio/wdc_obio.c
cvs rdiff -u -r1.37 -r1.38 src/sys/arch/macppc/dev/kauai.c
cvs rdiff -u -r1.60 -r1.61 src/sys/arch/macppc/dev/wdc_obio.c
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/mips/adm5120/dev/wdc_extio.c
cvs rdiff -u -r1.5 -r1.6 src/sys/arch/mmeye/dev/wdc_mainbus.c
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/playstation2/dev/wdc_spd.c
cvs rdiff -u -r1.14 -r1.15 src/sys/arch/prep/pnpbus/wdc_pnpbus.c
cvs rdiff -u -r1.139 -r1.140 src/sys/dev/ata/ata.c
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/ata/ata_subr.c
cvs rdiff -u -r1.58 -r1.59 src/sys/dev/ic/ahcisata_core.c
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/ic/ninjaata32.c
cvs rdiff -u -r1.34 -r1.35 src/sys/dev/ic/siisata.c
cvs rdiff -u -r1.287 -r1.288 src/sys/dev/ic/wdc.c
cvs rdiff -u -r1.30 -r1.31 src/sys/dev/ic/wdc_upc.c
cvs rdiff -u -r1.60 -r1.61 src/sys/dev/isa/wdc_isa.c
cvs rdiff -u -r1.43 -r1.44 src/sys/dev/isapnp/wdc_isapnp.c
cvs rdiff -u -r1.35 -r1.36 src/sys/dev/ofisa/wdc_ofisa.c
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/pci/artsata.c
cvs rdiff -u -r1.40 -r1.41 src/sys/dev/pci/cmdide.c
cvs rdiff -u -r1.31 -r1.32 src/sys/dev/pci/cypide.c
cvs rdiff -u -r1.64 -r1.65 src/sys/dev/pci/pciide_common.c
cvs rdiff -u -r1.28 -r1.29 src/sys/dev/pci/pdcsata.c
cvs rdiff -u -r1.54 -r1.55 src/sys/dev/pci/satalink.c
cvs rdiff -u -r1.85 -r1.86 src/sys/dev/pci/viaide.c
cvs rdiff -u -r1.125 -r1.126 src/sys/dev/pcmcia/wdc_pcmcia.c
cvs rdiff -u -r1.29 -r1.30 src/sys/dev/podulebus/dtide.c
cvs rdiff -u -r1.26 -r1.27 src/sys/dev/podulebus/hcide.c
cvs rdiff -u -r1.35 -r1.36 src/sys/dev/usb/umass_isdata.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

2017-10-20 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Fri Oct 20 21:51:29 UTC 2017

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

Log Message:
actually 0680 uses different chip map func, which doesn't call the function
handing non-independant channels, so don't set IDE_SHARED_CHANNELS for it


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 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

2017-10-22 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Oct 22 13:13:55 UTC 2017

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

Log Message:
do not share queue between the non-indepedant channels; instead make
sure only one of the channels is ever active on the same controller

fixes PR kern/52606 by Martin Husemann, thanks for report and testing


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/dev/pci/cmdide.c
cvs rdiff -u -r1.48 -r1.49 src/sys/dev/pci/pciidevar.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

2017-10-23 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Oct 23 19:03:40 UTC 2017

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

Log Message:
remove counter for 'journal I/O bufs biowait' - it's (total - async), so
superfluous; adjust the description of the the other counters a bit to make
them more clear


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

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



CVS commit: [tls-maxphys] src/sys/ufs/ufs

2017-10-24 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Oct 24 22:27:43 UTC 2017

Modified Files:
src/sys/ufs/ufs [tls-maxphys]: ufs_vfsops.c

Log Message:
remove rebase merge artifacts


To generate a diff of this commit:
cvs rdiff -u -r1.51.2.3 -r1.51.2.4 src/sys/ufs/ufs/ufs_vfsops.c

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



CVS commit: src/sys/ufs/ufs

2017-10-25 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Wed Oct 25 18:06:01 UTC 2017

Modified Files:
src/sys/ufs/ufs: quota2.h

Log Message:
fix tyop, PR kern/52653 by Edgar Fuss


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

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



CVS commit: src

2017-10-31 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Oct 31 08:10:12 UTC 2017

Modified Files:
src/distrib/sets/lists/comp: mi
src/share/man/man9: Makefile
Removed Files:
src/share/man/man9: ppi.9

Log Message:
remove ppi(9) manpage, the actual subsystem got never implemented

PR kern/52665 by Kamil Rytarowski


To generate a diff of this commit:
cvs rdiff -u -r1.2153 -r1.2154 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.415 -r1.416 src/share/man/man9/Makefile
cvs rdiff -u -r1.5 -r0 src/share/man/man9/ppi.9

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



CVS commit: src/doc/roadmaps

2017-10-31 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue Oct 31 19:03:32 UTC 2017

Modified Files:
src/doc/roadmaps: storage

Log Message:
bring the WAPBL entry more up-to-date and sound less desperate,
there is not really much preventing it to be enabled by default for
new installs again actually


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/doc/roadmaps/storage

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



CVS commit: src/sys/dev/ata

2017-11-01 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Wed Nov  1 21:27:22 UTC 2017

Modified Files:
src/sys/dev/ata: TODO.ncq

Log Message:
one down - mlelstv converted wd(4) to dksubr


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/ata/TODO.ncq

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



CVS commit: src/sys/dev/scsipi

2017-11-04 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Nov  4 21:02:37 UTC 2017

Modified Files:
src/sys/dev/scsipi: scsipi_disk.h

Log Message:
fix comment - scsipi_rw_big was renamed to scsipi_rw_10 a while ago


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/scsipi/scsipi_disk.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

2017-11-11 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Nov 11 16:49:13 UTC 2017

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

Log Message:
change several of error logs in ahci_intr_port() to use AHCIDEBUG_PRINT()
so they don't show unless debugging; e.g. the AHCI_P_IX_TFES seems to be
triggered normally by ATAPI with 'Media Change' error

adresses 'dmesg spam: ahcisata0 port 1: active 2 is 0x4001 tfd 0x2051'
thread by Stefan Hertenberger on current-users@


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/sys/dev/ic/ahcisata_core.c

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



CVS commit: src/usr.bin/audio/common

2017-11-25 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Nov 25 17:18:15 UTC 2017

Modified Files:
src/usr.bin/audio/common: wav.c

Log Message:
need getle16() for ext.sub_tag too

PR bin/52762 by Yosuke Sugahara


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/usr.bin/audio/common/wav.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

2017-12-02 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Dec  2 17:29:55 UTC 2017

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

Log Message:
according to benchmark extracting pkgsrc.tar, using FUA and hence waiting
for each transfer to write through to the medium is way slower than just
letting the drive use a cached write and doing DIOCCACHESYNC on the end

Results were (fs block 32KB / frag 4KB, partition aligned on 32KB boundary):
HDD at siisata(4):  no-FUA: 108 sec w/FUA: 294 sec
SSD at ahcisata(4): no-FUA:  73 sec w/FUA: 502 sec

change the flag so that FUA is only used for the commit block write;
for journal data write, only pass DPO, rely on the cache flush to get them
to media


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

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



CVS commit: [tls-maxphys] src/sys/modules/nvme

2017-12-03 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Dec  3 11:52:57 UTC 2017

Added Files:
src/sys/modules/nvme [tls-maxphys]: Makefile

Log Message:
sync with HEAD


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.4.2.2 src/sys/modules/nvme/Makefile

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



CVS commit: src/sys/modules/nvme

2017-12-03 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Dec  3 11:49:32 UTC 2017

Modified Files:
src/sys/modules/nvme: Makefile

Log Message:
again remove mistakely committed debug flags


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/modules/nvme/Makefile

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



CVS commit: [tls-maxphys] src/sys

2017-12-03 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Dec  3 14:21:05 UTC 2017

Modified Files:
src/sys/arch/amiga/conf [tls-maxphys]: GENERIC
src/sys/dev/pci [tls-maxphys]: files.pci

Log Message:
fix back some more incorrect sync


To generate a diff of this commit:
cvs rdiff -u -r1.289.2.5 -r1.289.2.6 src/sys/arch/amiga/conf/GENERIC
cvs rdiff -u -r1.360.2.4 -r1.360.2.5 src/sys/dev/pci/files.pci

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

2017-12-03 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Dec  3 14:26:38 UTC 2017

Modified Files:
src/sys/dev/pci: files.pci
Added Files:
src/sys/dev/pci: ips.c

Log Message:
port ips(4) driver from OpenBSD; needs a lot more work, right now just 
compilable


To generate a diff of this commit:
cvs rdiff -u -r1.391 -r1.392 src/sys/dev/pci/files.pci
cvs rdiff -u -r0 -r1.1 src/sys/dev/pci/ips.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

2017-12-04 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Dec  4 22:15:52 UTC 2017

Modified Files:
src/sys/dev: dksubr.c

Log Message:
add KASSERT() just before setting sc_deferred, to ensure this does
not trigger problem in PR kern/52769


To generate a diff of this commit:
cvs rdiff -u -r1.100 -r1.101 src/sys/dev/dksubr.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

2018-01-13 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Jan 13 17:55:57 UTC 2018

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

Log Message:
fix swapped comments for EFER LME and LMA


To generate a diff of this commit:
cvs rdiff -u -r1.107 -r1.108 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/x86

2018-01-22 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Jan 22 19:37:45 UTC 2018

Modified Files:
src/sys/arch/x86/conf: files.x86
Added Files:
src/sys/arch/x86/x86: x86_tlb.c
Removed Files:
src/sys/arch/x86/x86: pmap_tlb.c

Log Message:
rename sys/arch/x86/x86/pmap_tlb.c to sys/arch/x86/x86/x86_tlb.c, so that
x86 can eventually use uvm/pmap/pmap_tlb.c; step to future PCID support


To generate a diff of this commit:
cvs rdiff -u -r1.91 -r1.92 src/sys/arch/x86/conf/files.x86
cvs rdiff -u -r1.8 -r0 src/sys/arch/x86/x86/pmap_tlb.c
cvs rdiff -u -r0 -r1.1 src/sys/arch/x86/x86/x86_tlb.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/conf

2018-01-22 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Jan 22 22:36:11 UTC 2018

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

Log Message:
xen has separate list, update here also for x86/pmap_tlb.c -> x86/x86_tlb.c


To generate a diff of this commit:
cvs rdiff -u -r1.164 -r1.165 src/sys/arch/xen/conf/files.xen

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



CVS commit: src/sys/uvm/pmap

2018-02-19 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Feb 19 21:20:34 UTC 2018

Modified Files:
src/sys/uvm/pmap: pmap_tlb.c pmap_tlb.h

Log Message:
make it possible to not use the icache evcnts


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/uvm/pmap/pmap_tlb.c
cvs rdiff -u -r1.11 -r1.12 src/sys/uvm/pmap/pmap_tlb.h

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



CVS commit: src/sys/uvm/pmap

2018-02-19 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Feb 19 21:40:45 UTC 2018

Modified Files:
src/sys/uvm/pmap: pmap_tlb.c

Log Message:
a bit of DRY - add macro for initial free ASID count


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/uvm/pmap/pmap_tlb.c

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



CVS commit: src/sys/uvm/pmap

2018-02-19 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Feb 19 22:01:16 UTC 2018

Modified Files:
src/sys/uvm/pmap: pmap_tlb.c pmap_tlb.h

Log Message:
convert to use actual __BITMAP_*() macros from , and make
it possible to override the ASID bitmap length; default to 256 ASIDs as before

XXX NFCI; compile tested only on evbpcc and evbmips, unfortunately didn't
find any combination of port using the MI pmap_tlb.c and working in QEMU


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/sys/uvm/pmap/pmap_tlb.c
cvs rdiff -u -r1.12 -r1.13 src/sys/uvm/pmap/pmap_tlb.h

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



CVS commit: src/sys/uvm/pmap

2018-02-21 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Wed Feb 21 21:53:54 UTC 2018

Modified Files:
src/sys/uvm/pmap: pmap_tlb.c

Log Message:
KERNEL_PID is > 0 on powerpc/ibm4xx, need to mask all bits <0,
KERNEL_PID> to avoid triggering KASSERT() checking allocated asid
is bigger than KERNEL_PID; adjust also TLBINFO_ASID_INITIAL_FREE()
accordingly

discussed with Nick


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/uvm/pmap/pmap_tlb.c

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



CVS commit: src/sys/uvm/pmap

2018-02-25 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Feb 25 16:44:31 UTC 2018

Modified Files:
src/sys/uvm/pmap: pmap_tlb.c

Log Message:
adjust KASSERT() triggered in PR port-cobalt/53054 to provide more info


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/uvm/pmap/pmap_tlb.c

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



CVS commit: src/sys/uvm/pmap

2018-02-25 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Feb 25 21:43:03 UTC 2018

Modified Files:
src/sys/uvm/pmap: pmap_tlb.c

Log Message:
fix the DIAGNOSTIC function pmap_tlb_asid_count() to not expect
that TLBINFO_ASID_INUSE_P() returns just 0 or 1; the underlying
__BITMAP_ISSET() actually returns the matching bit nowadays, which
caused miscounting

fixes PR kern/53054 by Sevan Janiyan


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/uvm/pmap/pmap_tlb.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

2018-03-03 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Mar  3 19:21:59 UTC 2018

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

Log Message:
mark the ONCE_DECL() variables as __read_mostly to optimize cache placement


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/sys/once.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/x86/x86

2018-03-04 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Mar  4 10:02:10 UTC 2018

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

Log Message:
use tlbflush() instead of writing to %cr3, so it's more clear what code does


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/arch/x86/x86/mtrr_i686.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

2018-03-04 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Mar  4 10:13:09 UTC 2018

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

Log Message:
drop pmap_update_2pg(), just call pmap_update_pg() separately for each


To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 src/sys/arch/x86/include/pmap.h
cvs rdiff -u -r1.282 -r1.283 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/sys/arch/x86/x86

2018-03-04 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Mar  4 10:26:10 UTC 2018

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

Log Message:
dedup code around pmap_reactivate() - do the actual TLB flush also


To generate a diff of this commit:
cvs rdiff -u -r1.283 -r1.284 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/sys/arch/x86/x86

2018-03-04 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Mar  4 10:40:01 UTC 2018

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

Log Message:
dedup pmap_pdirpa() KASSERT() in pmap_reactive(), pmap_load(), and
pmap_deactivate()


To generate a diff of this commit:
cvs rdiff -u -r1.284 -r1.285 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/sys/arch/x86/x86

2018-03-04 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Mar  4 10:59:11 UTC 2018

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

Log Message:
move DIAGNOSTIC code for checking in-use pmap from pmap_destroy()
to a separate function for readability


To generate a diff of this commit:
cvs rdiff -u -r1.285 -r1.286 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/sys/arch/x86/x86

2018-03-04 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Mar  4 11:01:48 UTC 2018

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

Log Message:
reduce intendation in pmap_activate(), NFCI


To generate a diff of this commit:
cvs rdiff -u -r1.286 -r1.287 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/sys/dev/pci

2018-03-04 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Mar  4 13:11:51 UTC 2018

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

Log Message:
apply some updates and recommended corrections to pcidevs descriptions

PR kern/45733 by Greg A.Woods


To generate a diff of this commit:
cvs rdiff -u -r1.1317 -r1.1318 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

2018-03-04 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Mar  4 13:13:18 UTC 2018

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.1309 -r1.1310 src/sys/dev/pci/pcidevs.h
cvs rdiff -u -r1.1308 -r1.1309 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

2018-03-04 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Mar  4 13:24:46 UTC 2018

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.1310 -r1.1311 src/sys/dev/pci/pcidevs.h
cvs rdiff -u -r1.1309 -r1.1310 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

2018-03-04 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Mar  4 13:24:17 UTC 2018

Modified Files:
src/sys/arch/x86/pci: pcib.c
src/sys/dev/pci: pcidevs viaenv.c

Log Message:
according to VT82C686A chip specs, the VIA Technologies device 0x3057
is more a Power Management controller, rename the pcidevs entry and device
macro

PR kern/31963 by Nicolas Joly


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/x86/pci/pcib.c
cvs rdiff -u -r1.1318 -r1.1319 src/sys/dev/pci/pcidevs
cvs rdiff -u -r1.33 -r1.34 src/sys/dev/pci/viaenv.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

2018-03-04 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Mar  4 23:25:35 UTC 2018

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

Log Message:
adjust the pmap_check_inuse() fix to avoid #ifdef


To generate a diff of this commit:
cvs rdiff -u -r1.288 -r1.289 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/sys/dev/ic

2018-03-16 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Fri Mar 16 18:49:18 UTC 2018

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

Log Message:
stop using q_nccbs_avail for deciding whether there are available ccbs;
no need to maintain a counter _and_ q_ccb_list

this fixes deadlock when all ccbs happen to be taken before completion
interrupt - nvme_q_complete() increased q_nccbs_avail only after
processing all the completed commands, by then there was nothing
left to actually kick the disk queue again into action

this also fixes ccb leak on command errors e.g. with bus_dmamem_alloc()
or bus_dmamel_load() - q_nccbs_avail was never decreased on the error path

fixes PR kern/52769 by Martin Husemann, thanks to Paul Goyette
for testing


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/sys/dev/ic/nvme.c
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/ic/nvmevar.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

2018-03-16 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Fri Mar 16 23:31:19 UTC 2018

Modified Files:
src/sys/dev/ic: ld_nvme.c nvme.c nvmevar.h

Log Message:
refactor the locking code around DIOCGCACHE handling to be reusable
for other infrequent commands

it uses single condvar for simplicity, and uses it both when waiting
for ccb or command completion - this is fine, since usually there
will be just one such command qeueued anyway

use this to finally properly implement DIOCCACHESYNC - return only after
the command is confirmed as completed by the controller


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/dev/ic/ld_nvme.c
cvs rdiff -u -r1.33 -r1.34 src/sys/dev/ic/nvme.c
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/ic/nvmevar.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

2018-03-16 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Mar 17 00:28:03 UTC 2018

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

Log Message:
switch handling of passthrough commands to use queue, instead of polling

should fix PR kern/53059 by Frank Kardel


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 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/sys/dev/ic

2018-03-17 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Mar 17 09:36:32 UTC 2018

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

Log Message:
fix passthrough command usage also in nvme_get_number_of_queues(), fixes
memory corruption and possible panic on boot

PR kern/53059


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 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/sys/dev/ic

2018-03-17 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Mar 17 09:45:44 UTC 2018

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

Log Message:
also remove now duplicate nvme_ccb_put() call from nvme_get_number_of_queues()


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 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/sbin/nvmectl

2018-03-17 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Mar 17 11:07:26 UTC 2018

Modified Files:
src/sbin/nvmectl: devlist.c identify.c logpage.c nvmectl.c nvmectl.h
perftest.c power.c reset.c wdc.c

Log Message:
use setprogname()/getprogname(), do not hardcode the prognam name in fixed
strings


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sbin/nvmectl/devlist.c \
src/sbin/nvmectl/identify.c src/sbin/nvmectl/perftest.c \
src/sbin/nvmectl/power.c
cvs rdiff -u -r1.4 -r1.5 src/sbin/nvmectl/logpage.c \
src/sbin/nvmectl/nvmectl.c src/sbin/nvmectl/nvmectl.h
cvs rdiff -u -r1.1 -r1.2 src/sbin/nvmectl/reset.c src/sbin/nvmectl/wdc.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

2018-03-17 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Mar 17 19:37:11 UTC 2018

Modified Files:
src/sys/dev/usb: usbdevs

Log Message:
add LAN78xx family (Raspberry Pi 3B+) entries - PR kern/53105


To generate a diff of this commit:
cvs rdiff -u -r1.745 -r1.746 src/sys/dev/usb/usbdevs

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

2018-03-17 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Mar 17 19:37:49 UTC 2018

Modified Files:
src/sys/dev/usb: usbdevs.h usbdevs_data.h

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.737 -r1.738 src/sys/dev/usb/usbdevs.h
cvs rdiff -u -r1.738 -r1.739 src/sys/dev/usb/usbdevs_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

2018-03-24 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Mar 24 18:32:13 UTC 2018

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

Log Message:
use pci_intr_establish_xname()


To generate a diff of this commit:
cvs rdiff -u -r1.151 -r1.152 src/sys/dev/pci/auich.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/isa

2018-03-24 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Mar 24 18:34:43 UTC 2018

Modified Files:
src/sys/dev/isa: lpt_isa.c

Log Message:
use isa_intr_establish_xname()


To generate a diff of this commit:
cvs rdiff -u -r1.68 -r1.69 src/sys/dev/isa/lpt_isa.c

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



CVS commit: src/sys/uvm

2018-03-26 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Mar 26 21:43:30 UTC 2018

Modified Files:
src/sys/uvm: uvm_bio.c

Log Message:
mark ubc_winshift and ubc_winsize as __read_mostly, they are used often
so might benefit from cache placement


To generate a diff of this commit:
cvs rdiff -u -r1.92 -r1.93 src/sys/uvm/uvm_bio.c

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



CVS commit: src/sys/uvm

2018-04-02 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Apr  2 18:25:42 UTC 2018

Modified Files:
src/sys/uvm: uvm_emap.c

Log Message:
fix typo in comment


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/uvm/uvm_emap.c

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



CVS commit: src/doc/roadmaps

2018-04-12 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Thu Apr 12 19:08:02 UTC 2018

Modified Files:
src/doc/roadmaps: storage

Log Message:
update the NVMe entry; perhaps time to consider good enough and remove from
here?


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/doc/roadmaps/storage

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



CVS commit: src/doc/roadmaps

2018-04-12 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Thu Apr 12 19:11:35 UTC 2018

Modified Files:
src/doc/roadmaps: storage

Log Message:
update tls-maxphys


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/doc/roadmaps/storage

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



CVS commit: src/doc/roadmaps

2018-04-12 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Thu Apr 12 19:12:25 UTC 2018

Modified Files:
src/doc/roadmaps: storage

Log Message:
fix year for the tls-maxphys resync


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/doc/roadmaps/storage

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



CVS commit: src/sys/dev/ata

2018-04-16 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Apr 16 22:33:28 UTC 2018

Modified Files:
src/sys/dev/ata: atavar.h

Log Message:
remove superfluous semicolon


To generate a diff of this commit:
cvs rdiff -u -r1.95 -r1.96 src/sys/dev/ata/atavar.h

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



CVS commit: src/sys/uvm

2018-04-20 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Fri Apr 20 18:58:10 UTC 2018

Modified Files:
src/sys/uvm: uvm_bio.c uvm_extern.h

Log Message:
make ubc_alloc() and ubc_release() static, they should not be used
outside of ubc_uiomove()/ubc_zeropage(); for now mark as noinline
to keep them available as breakpoints


To generate a diff of this commit:
cvs rdiff -u -r1.93 -r1.94 src/sys/uvm/uvm_bio.c
cvs rdiff -u -r1.208 -r1.209 src/sys/uvm/uvm_extern.h

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



CVS commit: src/sys

2018-04-20 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Fri Apr 20 19:02:18 UTC 2018

Modified Files:
src/sys/kern: sys_pipe.c
src/sys/uvm: uvm_emap.c uvm_extern.h

Log Message:
add prot parameter for uvm_emap_enter(), so that it's possible to
enter also read/write mappings


To generate a diff of this commit:
cvs rdiff -u -r1.143 -r1.144 src/sys/kern/sys_pipe.c
cvs rdiff -u -r1.12 -r1.13 src/sys/uvm/uvm_emap.c
cvs rdiff -u -r1.209 -r1.210 src/sys/uvm/uvm_extern.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/usb

2018-04-21 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Apr 21 15:53:25 UTC 2018

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

Log Message:
add KASSERT() that sc_child* is set to NULL after child detach; just for
readability, it's not immediatelly obvious this is done in xhci_childdet()

no functional changes


To generate a diff of this commit:
cvs rdiff -u -r1.87 -r1.88 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/usb

2018-04-22 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Apr 22 07:47:15 UTC 2018

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

Log Message:
trigger the softint processing on that child bus which is not detached yet

fixes PR kern/53066 by Martin Husemann


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 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/usb

2018-04-23 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Mon Apr 23 19:55:00 UTC 2018

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

Log Message:
enable code to only trigger usb processing when EINT is set, to
avoid misinterpreting shared interrupt for another device

when clearing USBSTS, actually preserve the bits which spec requires to
preserve, and actually clear bit 1, which should be actually always
cleared to zero by spec

also #ifdef XHCI_DEBUG some unnecessary register reads

this should finally resolve PR kern/53066 also for Martin


To generate a diff of this commit:
cvs rdiff -u -r1.89 -r1.90 src/sys/dev/usb/xhci.c
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/usb/xhcireg.h

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



CVS commit: src

2018-05-12 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat May 12 14:49:34 UTC 2018

Modified Files:
src/distrib/sets/lists/comp: mi
src/share/man/man9: Makefile ubc.9

Log Message:
remove ubc_alloc(9) and ubc_release(9) from ubc(9) from the documentation, they
are internal (static) functions

pointed out by Matthew Green in private email


To generate a diff of this commit:
cvs rdiff -u -r1.2192 -r1.2193 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.419 -r1.420 src/share/man/man9/Makefile
cvs rdiff -u -r1.13 -r1.14 src/share/man/man9/ubc.9

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



CVS commit: src/share/man/man9

2018-05-12 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat May 12 15:03:20 UTC 2018

Modified Files:
src/share/man/man9: ubc.9

Log Message:
adjust description for ubc_uiomove() to not reference lenp variable (that part
was carried over from ubc_alloc() description), and instead mention the 
restriction
to ubc_winsize


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/share/man/man9/ubc.9

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



CVS import: sys/external/bsd/ena-com

2018-05-19 Thread Jaromir Dolecek
Module Name:sys
Committed By:   jdolecek
Date:   Sat May 19 08:50:54 UTC 2018

Update of /cvsroot/sys/external/bsd/ena-com
In directory ivanova.netbsd.org:/tmp/cvs-serv16991

Log Message:
Introduce HAL for Amazon Elastic Network Adapter (ENA)

This commit adds HAL (Hardware Abstraction Layer) code
for Amazon Elastic Network Adapter (ENA).

Version: 1.1.4.3

Obtained from: Amazon.com, Inc. via FreeBSD

Status:

Vendor Tag: FREEBSD
Release Tags:   ENA-COM-HAL_20180510

N sys/external/bsd/ena-com/ena_admin_defs.h
N sys/external/bsd/ena-com/ena_com.c
N sys/external/bsd/ena-com/ena_com.h
N sys/external/bsd/ena-com/ena_common_defs.h
N sys/external/bsd/ena-com/ena_eth_com.c
N sys/external/bsd/ena-com/ena_eth_com.h
N sys/external/bsd/ena-com/ena_eth_io_defs.h
N sys/external/bsd/ena-com/ena_plat.h
N sys/external/bsd/ena-com/ena_regs_defs.h
N sys/external/bsd/ena-com/ena_defs/ena_admin_defs.h
N sys/external/bsd/ena-com/ena_defs/ena_common_defs.h
N sys/external/bsd/ena-com/ena_defs/ena_eth_io_defs.h
N sys/external/bsd/ena-com/ena_defs/ena_gen_info.h
N sys/external/bsd/ena-com/ena_defs/ena_includes.h
N sys/external/bsd/ena-com/ena_defs/ena_regs_defs.h

No conflicts created by this import



CVS commit: sys/external/bsd/ena-com

2018-05-19 Thread Jaromir Dolecek
Module Name:sys
Committed By:   jdolecek
Date:   Sat May 19 08:54:34 UTC 2018

Removed Files:
sys/external/bsd/ena-com: ena_admin_defs.h ena_com.c ena_com.h
ena_common_defs.h ena_eth_com.c ena_eth_com.h ena_eth_io_defs.h
ena_plat.h ena_regs_defs.h
sys/external/bsd/ena-com/ena_defs: ena_admin_defs.h ena_common_defs.h
ena_eth_io_defs.h ena_gen_info.h ena_includes.h ena_regs_defs.h

Log Message:
remove, wrong import path


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r0 sys/external/bsd/ena-com/ena_admin_defs.h \
sys/external/bsd/ena-com/ena_com.c sys/external/bsd/ena-com/ena_com.h \
sys/external/bsd/ena-com/ena_common_defs.h \
sys/external/bsd/ena-com/ena_eth_com.c \
sys/external/bsd/ena-com/ena_eth_com.h \
sys/external/bsd/ena-com/ena_eth_io_defs.h \
sys/external/bsd/ena-com/ena_plat.h \
sys/external/bsd/ena-com/ena_regs_defs.h
cvs rdiff -u -r1.1.1.1 -r0 sys/external/bsd/ena-com/ena_defs/ena_admin_defs.h \
sys/external/bsd/ena-com/ena_defs/ena_common_defs.h \
sys/external/bsd/ena-com/ena_defs/ena_eth_io_defs.h \
sys/external/bsd/ena-com/ena_defs/ena_gen_info.h \
sys/external/bsd/ena-com/ena_defs/ena_includes.h \
sys/external/bsd/ena-com/ena_defs/ena_regs_defs.h

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



CVS import: src/sys/external/bsd/ena-com

2018-05-19 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat May 19 08:56:06 UTC 2018

Update of /cvsroot/src/sys/external/bsd/ena-com
In directory ivanova.netbsd.org:/tmp/cvs-serv24953

Log Message:
Introduce HAL for Amazon Elastic Network Adapter (ENA)

This commit adds HAL (Hardware Abstraction Layer) code
for Amazon Elastic Network Adapter (ENA).

Version: 1.1.4.3

Obtained from: Amazon.com, Inc. via FreeBSD

Status:

Vendor Tag: FREEBSD
Release Tags:   ENA-COM-HAL_20180510

N src/sys/external/bsd/ena-com/ena_admin_defs.h
N src/sys/external/bsd/ena-com/ena_com.c
N src/sys/external/bsd/ena-com/ena_com.h
N src/sys/external/bsd/ena-com/ena_common_defs.h
N src/sys/external/bsd/ena-com/ena_eth_com.c
N src/sys/external/bsd/ena-com/ena_eth_com.h
N src/sys/external/bsd/ena-com/ena_eth_io_defs.h
N src/sys/external/bsd/ena-com/ena_plat.h
N src/sys/external/bsd/ena-com/ena_regs_defs.h
N src/sys/external/bsd/ena-com/ena_defs/ena_admin_defs.h
N src/sys/external/bsd/ena-com/ena_defs/ena_common_defs.h
N src/sys/external/bsd/ena-com/ena_defs/ena_eth_io_defs.h
N src/sys/external/bsd/ena-com/ena_defs/ena_gen_info.h
N src/sys/external/bsd/ena-com/ena_defs/ena_includes.h
N src/sys/external/bsd/ena-com/ena_defs/ena_regs_defs.h

No conflicts created by this import



CVS commit: src/sys/external/bsd/ena-com

2018-05-19 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat May 19 08:59:38 UTC 2018

Modified Files:
src/sys/external/bsd/ena-com: ena_plat.h

Log Message:
adapt for NetBSD


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/sys/external/bsd/ena-com/ena_plat.h

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



CVS import: src/sys/dev/pci

2018-05-19 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat May 19 09:18:31 UTC 2018

Update of /cvsroot/src/sys/dev/pci
In directory ivanova.netbsd.org:/tmp/cvs-serv19156

Log Message:
Import source for FreeBSD Amazon Elastic Network Adapter (ENA) NIC driver
for reference. Needs a lot of work to port over.

Remapped filenames from FreeBSD to NetBSD structure:
sys/dev/ena/ena.c -> sys/dev/pci/if_ena.c
sys/dev/ena/ena.h -> sys/dev/pci/if_enavar.h

ena_sysctl.* not imported, if needed later will be merged into if_ena.c

Status:

Vendor Tag: FREEBSD
Release Tags:   ENA-20180510

N src/sys/dev/pci/if_ena.c
N src/sys/dev/pci/if_enavar.h

No conflicts created by this import



CVS commit: src/sys

2018-05-19 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat May 19 09:27:10 UTC 2018

Modified Files:
src/sys/arch/amd64/conf: ALL
src/sys/dev/pci: files.pci

Log Message:
add config glue for ena(4)


To generate a diff of this commit:
cvs rdiff -u -r1.87 -r1.88 src/sys/arch/amd64/conf/ALL
cvs rdiff -u -r1.395 -r1.396 src/sys/dev/pci/files.pci

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

2018-05-19 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat May 19 09:32:55 UTC 2018

Modified Files:
src/sys/dev/pci: if_ena.c if_enavar.h

Log Message:
Intermediate changes to make it further into actually at least compile, not 
nearly yet
complete. Committed so that others can possibly pick it off, as discussed
on tech-userlevel@ with Martin


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/sys/dev/pci/if_ena.c \
src/sys/dev/pci/if_enavar.h

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



CVS commit: src/sys/uvm

2018-05-19 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat May 19 11:02:33 UTC 2018

Modified Files:
src/sys/uvm: uvm_loan.c uvm_page.c

Log Message:
detect wraparound when bumping page wire_count and loan_count


To generate a diff of this commit:
cvs rdiff -u -r1.85 -r1.86 src/sys/uvm/uvm_loan.c
cvs rdiff -u -r1.196 -r1.197 src/sys/uvm/uvm_page.c

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



CVS commit: src/sys

2018-05-19 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat May 19 11:39:37 UTC 2018

Modified Files:
src/sys/arch/x86/include: pmap.h
src/sys/arch/x86/x86: pmap.c
src/sys/kern: kern_synch.c sys_pipe.c
src/sys/sys: pipe.h
src/sys/uvm: files.uvm uvm_extern.h uvm_init.c
Removed Files:
src/sys/uvm: uvm_emap.c

Log Message:
Remove emap support. Unfortunately it never got to state where it would be
used and usable, due to reliability and limited & complicated MD support.

Going forward, we need to concentrate on interface which do not map anything
into kernel in first place (such as direct map or KVA-less I/O), rather
than making those mappings cheaper to do.


To generate a diff of this commit:
cvs rdiff -u -r1.77 -r1.78 src/sys/arch/x86/include/pmap.h
cvs rdiff -u -r1.289 -r1.290 src/sys/arch/x86/x86/pmap.c
cvs rdiff -u -r1.314 -r1.315 src/sys/kern/kern_synch.c
cvs rdiff -u -r1.144 -r1.145 src/sys/kern/sys_pipe.c
cvs rdiff -u -r1.33 -r1.34 src/sys/sys/pipe.h
cvs rdiff -u -r1.28 -r1.29 src/sys/uvm/files.uvm
cvs rdiff -u -r1.13 -r0 src/sys/uvm/uvm_emap.c
cvs rdiff -u -r1.211 -r1.212 src/sys/uvm/uvm_extern.h
cvs rdiff -u -r1.48 -r1.49 src/sys/uvm/uvm_init.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

2018-05-19 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat May 19 11:40:22 UTC 2018

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

Log Message:
bump version to 8.99.18 - emap removal


To generate a diff of this commit:
cvs rdiff -u -r1.562 -r1.563 src/sys/sys/param.h

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



CVS commit: src/sys

2018-05-19 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat May 19 15:03:26 UTC 2018

Modified Files:
src/sys/arch/amd64/include: pmap.h
src/sys/uvm: uvm_page.c uvm_page.h uvm_pmap.h

Log Message:
add experimental new function uvm_direct_process(), to allow of read/writes
of contents of uvm pages without mapping them into kernel, using
direct map or moral equivalent; pmaps supporting the interface need
to provide pmap_direct_process() and define PMAP_DIRECT

implement the new interface for amd64; I hear alpha and mips might be relatively
easy to add too, but I lack the knowledge

part of resolution for PR kern/53124


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/sys/arch/amd64/include/pmap.h
cvs rdiff -u -r1.197 -r1.198 src/sys/uvm/uvm_page.c
cvs rdiff -u -r1.82 -r1.83 src/sys/uvm/uvm_page.h
cvs rdiff -u -r1.38 -r1.39 src/sys/uvm/uvm_pmap.h

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



CVS commit: src/sys/uvm

2018-05-19 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat May 19 15:13:26 UTC 2018

Modified Files:
src/sys/uvm: uvm_bio.c

Log Message:
change code to take advantage of direct map when available, avoiding the need
to map pages into kernel

this improves performance of UBC-based (read(2)/write(2)) I/O especially
for cached block I/O - sequential read on my NVMe goes from 1.7 GB/s to 1.9 GB/s
for non-cached, and from 2.2 GB/s to 5.6 GB/s for cached read

the new code is conditional now and off for now, so that it can be tested 
further;
can be turned on by adjusting ubc_direct variable to true

part of fix for PR kern/53124


To generate a diff of this commit:
cvs rdiff -u -r1.94 -r1.95 src/sys/uvm/uvm_bio.c

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



CVS commit: src/sys/uvm

2018-05-19 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat May 19 15:18:02 UTC 2018

Modified Files:
src/sys/uvm: uvm_readahead.c

Log Message:
adjust heuristics for read-ahead to skip the full read-ahead when last page of
the range is already cached; this speeds up I/O from cache, since it avoids
the lookup and allocation overhead

on my system I observed 4.5% - 15% improvement for cached I/O - from 2.2 GB/s to
2.3 GB/s for cached reads using non-direct UBC, and from 5.6 GB/s to 6.5 GB/s
for UBC using direct map

part of PR kern/53124


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/uvm/uvm_readahead.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/ia64/ia64

2018-05-24 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Fri May 25 06:34:02 UTC 2018

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

Log Message:
Don't use uvm_emap_size, emap was removed


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/sys/arch/ia64/ia64/pmap.c

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



CVS commit: src/sys/uvm

2018-05-25 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Fri May 25 20:11:03 UTC 2018

Modified Files:
src/sys/uvm: uvm_loan.c

Log Message:
add the KASSERT() for loan_count wrap-around to all places which increase it


To generate a diff of this commit:
cvs rdiff -u -r1.86 -r1.87 src/sys/uvm/uvm_loan.c

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



CVS commit: src/sys/uvm

2018-05-26 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat May 26 18:57:35 UTC 2018

Modified Files:
src/sys/uvm: uvm_bio.c

Log Message:
uvm_pageactivate() needs to be called _after_ code is done with the page, no 
reason
to bother pdaemon with PG_BUSY pages; also clear the PG_FAKE and PG_CLEAN after
we are done with the write

this does not make any difference on my machine, but maybe it might fix
the machine check panic on Martin's alpha

while here remove UBC_PARTIALOK handling from ubc_zeropage_direct(), just to be 
sure
it works exactly the same as the non-direct one


To generate a diff of this commit:
cvs rdiff -u -r1.95 -r1.96 src/sys/uvm/uvm_bio.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/isa

2018-05-28 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Tue May 29 06:14:34 UTC 2018

Modified Files:
src/sys/dev/isa: isadma.c isadmareg.h isareg.h

Log Message:
fix off-by-one in the mapping of the ISA DMA page registers, they actually
start at 0x81; the code used bus_space_map() starting from 0x80 but
used +1 offset for actual I/O, now it maps starting 0x81 and does I/O
without offset

the reads and writes work exactly the same as before, but this frees
0x80 for being mapped independantly

patch provided in PR kern/52468 by Jonathan Chapman; checked against the spec
and also FreeBSD sys/x86/isa/isa_dma.c


To generate a diff of this commit:
cvs rdiff -u -r1.66 -r1.67 src/sys/dev/isa/isadma.c
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/isa/isadmareg.h
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/isa/isareg.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/ata

2018-06-03 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Jun  3 18:38:36 UTC 2018

Modified Files:
src/sys/dev/ata: wd.c

Log Message:
take mutex around check for pending flush, as the code before dksubr
conversion had, to avoid possible race

on my system doesn't really change behaviour, besides the test runs
being slightly faster (3x parallell pkgsrc archive extraction, up
to 5% difference), thought that can just be noise

done as part of investigation for PR kern/53183 by Sevan Janiyan


To generate a diff of this commit:
cvs rdiff -u -r1.438 -r1.439 src/sys/dev/ata/wd.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

2018-06-09 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Jun  9 18:39:33 UTC 2018

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

Log Message:
small sync of Marvell Yukon PCI product ids with OpenBSD - add 8048 variant, 
rename
YUKON_1 to YUKON_8070

also adjust description for YUKON_8055_2 to have "88E8055-2" just so that it 
shows
up differently


To generate a diff of this commit:
cvs rdiff -u -r1.1339 -r1.1340 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

2018-06-09 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sat Jun  9 18:39:58 UTC 2018

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.1330 -r1.1331 src/sys/dev/pci/pcidevs.h
cvs rdiff -u -r1.1329 -r1.1330 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.



  1   2   3   4   5   6   7   8   9   10   >