Link [ NetBSD | NetBSD OpenGrok source search | PR fulltext-search | Summary of daily snapshot builds | history of daily build result | pkgsrc commit viewer ]


   
        usage: [branch:branch] [user:user] [path@revision] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN sys/arch/arm, if_wm.c@1.234 )




switch to index mode

recent branches: MAIN (51m)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (177d) 

2024-05-09 22:19:49 UTC Now

2020-07-15 08:56:06 UTC MAIN commitmail json YAML

ftp.1: don't wrap "[[user@]host [port]]"

(lukem)

2020-07-15 08:48:40 UTC MAIN commitmail json YAML

Treat trap instruction from userland correctly in EXC_PGM handler;
raise SIGTRAP with TRAP_BRKPT instead of SIGILL.

(rin)

2020-07-15 08:29:07 UTC MAIN commitmail json YAML

FPSCR[FEX] is not a sticky bit; it is always cleared when read from
userland via mffs on real hardware.

(rin)

2020-07-15 08:14:41 UTC MAIN commitmail json YAML

PR port-powerpc/55425

Update comment; FPU emulation seems to work just fine now. However,
FPU-optimized code should still be avoided for better performance,
if FPU is not present.

(rin)

2020-07-15 08:10:41 UTC MAIN commitmail json YAML

PR port-powerpc/55425

Fix emulation for mtfsf; source register is frB here.

Now, userland processes successfully change rounding mode, by which
FPU-optimized code in OpenSSL works just fine as far as I can see.

(rin)

2020-07-15 07:58:26 UTC MAIN commitmail json YAML

Rename emulated_opcode() to emulate_privileged() for clarity.
No functional changes.

(rin)

2020-07-15 07:54:25 UTC MAIN commitmail json YAML

For trap instruction, ksi_code should be TRAP_BRKPT not TRAP_TRACE.

(rin)

2020-07-15 07:52:58 UTC MAIN commitmail json YAML

Do not set ksi->ksi_addr twice. No functional changes.

(rin)

2020-07-15 07:47:27 UTC MAIN commitmail json YAML

Do not raise divide-by-zero exception when dividend is zero.

(rin)

2020-07-15 07:44:34 UTC MAIN commitmail json YAML

Do not use curlwp twice. No functional changes.

(rin)

2020-07-15 07:37:25 UTC MAIN commitmail json YAML

Remove old workaround foe cache problem on ibm4xx.
The problem seems gone already.

(rin)

2020-07-15 02:26:07 UTC MAIN commitmail json YAML

Add missing note about Intel I219 LM10-LM15 and V10-V14.

(msaitoh)

2020-07-15 01:42:27 UTC MAIN commitmail json YAML

2020-07-15 00:51:40 UTC MAIN commitmail json YAML

Fixup OpenSimpleReadFile usage:
- The "EFI_DEVICE_PATH **FilePath" parameter can change, so do not free
  the output. This was causing crashes on U-Boot when attempting to load
  boot.cfg, even if it didn't exist.
- Allocate the SIMPLE_READ_FILE in advance and store a pointer to it in
  struct open_file.

(jmcneill)

2020-07-14 17:40:10 UTC MAIN commitmail json YAML

note ciss(4) adapter match update

(jdolecek)

2020-07-14 17:39:19 UTC MAIN commitmail json YAML

update list of matched adapters

(jdolecek)

2020-07-14 17:23:59 UTC MAIN commitmail json YAML

match newer HP Smart Array controllers, list from FreeBSD

(jdolecek)

2020-07-14 17:23:27 UTC MAIN commitmail json YAML

fix __arraycount() parameter

(jdolecek)

2020-07-14 17:19:03 UTC MAIN commitmail json YAML

make ciss_pci_devices[] more compact

(jdolecek)

2020-07-14 16:57:12 UTC MAIN commitmail json YAML

2020-07-14 16:56:35 UTC MAIN commitmail json YAML

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

(jdolecek)

2020-07-14 15:59:21 UTC MAIN commitmail json YAML

mark diagused variable as such

fixing non DIAGNOSTIC builds

(para)

2020-07-14 15:37:40 UTC MAIN commitmail json YAML

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

(jdolecek)

2020-07-14 13:40:37 UTC netbsd-8 commitmail json YAML

2020-07-14 13:39:09 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by uwe in ticket #1574):

lib/libcurses/newwin.c: revision 1.58

newwin - fix crash with negative ncols.

When support for negative nrows/ncols was added, one s/ncols/maxx/ was
missed so we ended up passing negative (i.e. huge unsigned) length
when hashing the line contents.

Reported by Naman Jain in PR lib/55484

(martin)

2020-07-14 13:38:12 UTC netbsd-9 commitmail json YAML

2020-07-14 13:37:18 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by uwe in ticket #1004):

lib/libcurses/newwin.c: revision 1.58

newwin - fix crash with negative ncols.

When support for negative nrows/ncols was added, one s/ncols/maxx/ was
missed so we ended up passing negative (i.e. huge unsigned) length
when hashing the line contents.

Reported by Naman Jain in PR lib/55484

(martin)

2020-07-14 12:15:16 UTC MAIN commitmail json YAML

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

(jdolecek)

2020-07-14 12:04:46 UTC MAIN commitmail json YAML

remove CISS_NO_INTERRUPT_HACK, discussed with joerg@ and spz@

(jdolecek)

2020-07-14 11:44:53 UTC MAIN commitmail json YAML

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

(jdolecek)

2020-07-14 11:39:02 UTC MAIN commitmail json YAML

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

(jdolecek)

2020-07-14 10:49:21 UTC MAIN commitmail json YAML

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

(jdolecek)

2020-07-14 10:44:34 UTC MAIN commitmail json YAML

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

(jdolecek)

2020-07-14 10:38:07 UTC MAIN commitmail json YAML

g/c #if 0'ed ciss_scsi_raw_cmd()

(jdolecek)

2020-07-14 10:37:30 UTC MAIN commitmail json YAML

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

(jdolecek)

2020-07-14 10:26:34 UTC MAIN commitmail json YAML

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()

(jdolecek)

2020-07-14 08:58:03 UTC MAIN commitmail json YAML

2020-07-14 08:55:07 UTC MAIN commitmail json YAML

2020-07-14 08:52:00 UTC MAIN commitmail json YAML

Adapt to new proplib API

(martin)

2020-07-14 04:39:39 UTC MAIN commitmail json YAML

newwin - fix crash with negative ncols.

When support for negative nrows/ncols was added, one s/ncols/maxx/ was
missed so we ended up passing negative (i.e. huge unsigned) length
when hashing the line contents.

Reported by Naman Jain in PR lib/55484

(uwe)

2020-07-14 01:05:07 UTC MAIN commitmail json YAML

Enable PCPU_IDT option by default

(yamaguchi)

2020-07-14 01:01:05 UTC MAIN commitmail json YAML

show the verbose commands for bozohttpd and calendar too

And bump the version.

(reed)

2020-07-14 00:45:53 UTC MAIN commitmail json YAML

Introduce per-cpu IDTs

This is realized by following modifications:
- Add IDT pages and its allocation maps for each cpu in "struct cpu_info"
- Load per-cpu IDTs at cpu_init_idt(struct cpu_info*)
- Copy the IDT entries for cpu0 to other CPUs at attach
  - These are, for example, exceptions, db, system calls, etc.

And, added a kernel option named PCPU_IDT to enable the feature.

(yamaguchi)

2020-07-13 23:56:42 UTC MAIN commitmail json YAML

+corvid

This file already has "covid" somehow, and while that's fine now my
best guess is that it was originally an OCR blooper for "corvid",
which is missing.

(dholland)

2020-07-13 21:21:57 UTC MAIN commitmail json YAML

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

(jdolecek)

2020-07-13 16:54:03 UTC MAIN commitmail json YAML

Use pcu_save_all_on_cpu, not pcu_save.

We don't care what curlwp is here; we care whose state is in the fpu
registers.

(riastradh)

2020-07-13 16:53:06 UTC MAIN commitmail json YAML

Limit arm32 fpu_kern_enter/leave to IPL_VM or below.

(riastradh)

2020-07-13 16:52:23 UTC MAIN commitmail json YAML

Limit aarch64 fpu_kern_enter/leave to IPL_VM or below.

(riastradh)

2020-07-13 16:51:51 UTC MAIN commitmail json YAML

Limit x86 fpu_kern_enter/leave to IPL_VM or below.

There are no users of crypto at IPL_SCHED or IPL_HIGH as far as I
know, and although we generally limit the amount of time spent in any
one crypto operation -- e.g., cgd is usually limited to processing
512 or 4096 bytes at a time -- it's better not to block IPL_SCHED and
IPL_HIGH interrupts at all.  This should make ddb a little more
accessible during crypto-heavy workloads.

This means the aes_* API cannot be used at IPL_SCHED or IPL_HIGH; the
same will go for any new crypto subsystems, like the ChaCha and
Poly1305 ones I'm drafting.  It might be better to prohibit them
altogether in hard interrupt context, but right now cprng_fast and
cprng_strong are both technically allowed at IPL_VM and are sometimes
used there (e.g., for opencrypto CBC IV generation).

KASSERT the ilevel to detect violation of this constraint in case I'm
wrong.

(riastradh)

2020-07-13 15:05:05 UTC MAIN commitmail json YAML

2020-07-13 14:37:41 UTC netbsd-8 commitmail json YAML

2020-07-13 14:35:29 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by simonb in ticket #1573):

sys/dev/usb/ualea.c: revision 1.12

Set up the USB xfer for every transfer, not just once in the attach
function.  Caught by DIAGNOSTIC on a similar driver.  Thanks to mrg@
for USB xfer clue and martin@ for testing.

(martin)

2020-07-13 14:34:30 UTC netbsd-9 commitmail json YAML

2020-07-13 14:32:20 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by simonb in ticket #1003):

sys/dev/usb/ualea.c: revision 1.12

Set up the USB xfer for every transfer, not just once in the attach
function.  Caught by DIAGNOSTIC on a similar driver.  Thanks to mrg@
for USB xfer clue and martin@ for testing.

(martin)

2020-07-13 14:22:47 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by nia in ticket #1002):

sys/dev/wscons/wsksymdef.h: revision 1.68
sys/dev/wscons/wsksymdef.h: revision 1.69
sys/dev/pckbport/wskbdmap_mfii.c: revision 1.28
sys/dev/pckbport/wskbdmap_mfii.c: revision 1.29
sys/dev/hid/hidkbdmap.c: revision 1.10
share/man/man4/pckbd.4: revision 1.23
share/man/man4/wskbd.4: revision 1.18
share/man/man4/wskbd.4: revision 1.19
share/man/man4/pckbd.4: revision 1.25
sys/dev/wscons/wsksymdef.h: revision 1.70
sys/dev/wscons/wsksymdef.h: revision 1.71
sys/dev/pckbport/wskbdmap_mfii.c: revision 1.30
sys/dev/wscons/wsksymdef.h: revision 1.72
sys/dev/pckbport/wskbdmap_mfii.c: revision 1.31
sys/dev/wscons/wsksymdef.h: revision 1.73
sys/dev/pckbport/wskbdmap_mfii.c: revision 1.32
sys/dev/pckbport/wskbdmap_mfii.c: revision 1.33
sys/dev/hid/hidkbdmap.c: revision 1.4
sbin/wsconsctl/wsconsctl.8: revision 1.30
sys/dev/hid/hidkbdmap.c: revision 1.5
etc/wscons.conf: revision 1.20
sys/dev/hid/hidkbdmap.c: revision 1.6
etc/wscons.conf: revision 1.21
sys/dev/hid/hidkbdmap.c: revision 1.7
sys/dev/hid/hidkbdmap.c: revision 1.8
sys/dev/hid/hidkbdmap.c: revision 1.9

Add support for the Brazilian keyboard layout to pckbd and ukbd.

This is significantly different from the European Portugese layout,
and was pieced together from Wikipedia, X11 layout files, and to
some extent with trial and error.

Thanks to lun-4 for helping test this.

PR kern/44570
Update lists of keyboard layouts to add Turkish and Brazilian

Bring br.nodead closer to X11

Add Estonian layout as a variation of Swedish for ukbd and pckbd

Add KB_TR for uhid keyboards (it was PS/2 only, this seems wrong)

Add Icelandic keyboard layout to ukbd/pckbd.

Add keyboard layout for Latin American Spanish to ukbd/pckbd

Canadian French keyboard layout for ukbd/pckbd

Clarify that KB_TR is the "Q" layout - there's two standards for Turkish.

Move description of keyboard layouts to wskbd.4, add newer layouts

Previously, the best reference was pckbd.4. This does not make much
sense to read if you are on, say, an evbarm device with only USB.
wsconsctl.8 contained a vaguer description of supported language names,
which isn't very useful because you can't pass full language names
to the command. Point readers to wskbd.4 instead.

Note in the wskbd.4 page that while all layouts are generally supported
by pckbd(4) and ukbd(4), older keyboard interfaces might only support
a subset.

wskbd.4: Add KB_LA

Point readers at wskbd.4

(martin)

2020-07-13 14:13:12 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kim in ticket #1572):

sys/dev/pci/vioscsi.c: revision 1.22

Fix off-by-one SCSI target reporting

Use max_target as the controller ID instead of zero, so that the device
located at SCSI ID zero (e.g. a disk) is not obscured through not being
probed by scsi_probe_bus() (which skips the controller ID).

Copy the target requested onto the wire without decrementing it by one.

ok christos@

(martin)

2020-07-13 14:11:55 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by kim in ticket #1001):

sys/dev/pci/vioscsi.c: revision 1.22

Fix off-by-one SCSI target reporting

Use max_target as the controller ID instead of zero, so that the device
located at SCSI ID zero (e.g. a disk) is not obscured through not being
probed by scsi_probe_bus() (which skips the controller ID).

Copy the target requested onto the wire without decrementing it by one.

ok christos@

(martin)

2020-07-13 14:11:17 UTC MAIN commitmail json YAML

Try to improve markup, PostScript output.

(uwe)

2020-07-13 14:10:25 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kim in ticket #1571):

sys/dev/scsipi/scsiconf.c: revision 1.288

Continue scanning a SCSI bus when a LUN is reported not present

This fixes disk attachment under Qemu when there is no disk on LUN 0 on
a SCSI bus but there is a disk on LUN 1. The inquiry for LUN 0 returns
SID_QUAL_LU_NOTPRESENT & T_NODEVICE.  Quirks are only checked if neither
one of those are set, so cannot use a quirk entry.

Use case 1: Proxmox 6 configures each disk on its own bus when using
the "Virtio SCSI single" SCSI controller. However, while the "scsi0"
disk is on LUN 0, the "scsi1" disk is on LUN 1.

Use case 2: A Linode boot profile with multiple disks results in
the first disk ("sda") on LUN 1, while the second disk ("sdb") is
on LUN 0, each on their own bus.

(martin)

2020-07-13 14:09:10 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by kim in ticket #1000):

sys/dev/scsipi/scsiconf.c: revision 1.288

Continue scanning a SCSI bus when a LUN is reported not present

This fixes disk attachment under Qemu when there is no disk on LUN 0 on
a SCSI bus but there is a disk on LUN 1. The inquiry for LUN 0 returns
SID_QUAL_LU_NOTPRESENT & T_NODEVICE.  Quirks are only checked if neither
one of those are set, so cannot use a quirk entry.

Use case 1: Proxmox 6 configures each disk on its own bus when using
the "Virtio SCSI single" SCSI controller. However, while the "scsi0"
disk is on LUN 0, the "scsi1" disk is on LUN 1.

Use case 2: A Linode boot profile with multiple disks results in
the first disk ("sda") on LUN 1, while the second disk ("sdb") is
on LUN 0, each on their own bus.

(martin)

2020-07-13 13:58:31 UTC netbsd-8 commitmail json YAML

Apply patch, requested by roy in ticket #1570:

external/bsd/dhcpcd/dist/hooks/01-test (apply patch)

Fix dhcpcd test not to require /usr by syncing with the 01-test hook with
-current (which uses a newer dhcpcd version).

(martin)

2020-07-13 13:55:41 UTC netbsd-9 commitmail json YAML

Apply patch, requested by roy in ticket #999:

external/bsd/dhcpcd/dist/hooks/01-test (apply patch)

Fix dhcpcd test not to require /usr by syncing with the 01-test hook with
-current (which uses a newer dhcpcd version).

(martin)

2020-07-13 13:53:04 UTC MAIN commitmail json YAML

Set up the USB xfer for every transfer, not just once in the attach
function.  Caught by DIAGNOSTIC on a similar driver.  Thanks to phone@
for USB xfer clue and martin@ for testing.

(simonb)

2020-07-13 13:42:51 UTC MAIN commitmail json YAML

Imnprove previous.

(pgoyette)

2020-07-13 13:33:29 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #998):

sys/arch/x86/include/specialreg.h: revision 1.162
sys/arch/x86/include/specialreg.h: revision 1.164
sys/arch/x86/include/specialreg.h: revision 1.165
sys/arch/x86/include/specialreg.h: revision 1.166
sys/arch/x86/include/specialreg.h: revision 1.167
sys/arch/x86/include/specialreg.h: revision 1.168

- AMD CPUID Fn8000_000a %edx bit 20 is "SPEC_CTRL".
- Add some bit definitions of AMD's CPUID Fn8000_001f Encrypted Memory
  features.
- Add AMD INVLPGB/TLBSYNC hypervisor enable in VMCB and TLBSYNC intercept bit.
- Modify comment.
Add AMD MSR_DE_CFG's bit 1 as DE_CFG_LFENCE_SERIALIZE.
This bit makes lfence instruction serializing.
Add some definitions from the latest Intel SDM plus small fix:
  - Add CPUID leaf 6 %eax bit 19 for HW_FEEDBACK* and IA32_PACKAGE_TERM* MSRs.
  - Add CPUID leaf 7 %ecx bit 31 for Protection Keys.
  - Add definition of Load only TLB and Store only TLB.
  - Add IF_PSCHANGE_MC_NO bit of IA32_ARCH_CAPABILITIES
  - Fix HWP_IGNIDL.
  Add SRBDS_CTRL bit.
style and fix typo

(martin)

2020-07-13 13:16:08 UTC MAIN commitmail json YAML

Do not allow disabling interrupts on the primary CPU. Fixes PR kern/45117.

(jruoho)

2020-07-13 12:56:58 UTC MAIN commitmail json YAML

Make sure declaration of db_mach_reset_cmd() is available always, not
just #ifdef OCTEON.

(simonb)

2020-07-13 12:44:04 UTC MAIN commitmail json YAML

Complete the example.

(jruoho)

2020-07-13 11:59:37 UTC MAIN commitmail json YAML

obviously wrong country code

(nia)

2020-07-13 11:26:50 UTC MAIN commitmail json YAML

doc/CHANGES: More keyboard layouts

(nia)

2020-07-13 11:24:27 UTC MAIN commitmail json YAML

Whitespace/macro usage fixes.

(wiz)

2020-07-13 11:17:54 UTC MAIN commitmail json YAML

Point readers at wskbd.4

(nia)

2020-07-13 11:17:14 UTC MAIN commitmail json YAML

ftp(1): consistency tweaks

(lukem)

2020-07-13 11:15:49 UTC MAIN commitmail json YAML

wskbd.4: Add KB_LA

(nia)

2020-07-13 11:14:12 UTC MAIN commitmail json YAML

Move description of keyboard layouts to wskbd.4, add newer layouts

Previously, the best reference was pckbd.4. This does not make much
sense to read if you are on, say, an evbarm device with only USB.

wsconsctl.8 contained a vaguer description of supported language names,
which isn't very useful because you can't pass full language names
to the command. Point readers to wskbd.4 instead.

Note in the wskbd.4 page that while all layouts are generally supported
by pckbd(4) and ukbd(4), older keyboard interfaces might only support
a subset.

(nia)

2020-07-13 10:46:10 UTC MAIN commitmail json YAML

paddr_t can't be printed by "%lx" in some platforms.

fix the eg, i386 build.

(mrg)

2020-07-13 10:35:17 UTC MAIN commitmail json YAML

Add -DNO_BLOCKLIST_SUPPORT also to small/Makefile.

(jruoho)

2020-07-13 09:50:12 UTC MAIN commitmail json YAML

Clarify that KB_TR is the "Q" layout - there's two standards for Turkish.

(nia)

2020-07-13 09:44:48 UTC MAIN commitmail json YAML

2020-07-13 09:41:18 UTC MAIN commitmail json YAML

2020-07-13 09:38:57 UTC MAIN commitmail json YAML

Do not report status code 500 to blocklistd(8)  Add -DNO_BLOCKLIST_SUPPORT
to Makefile.boot.

(jruoho)

2020-07-13 09:10:35 UTC MAIN commitmail json YAML

2020-07-13 09:00:40 UTC MAIN commitmail json YAML

2020-07-13 08:59:34 UTC MAIN commitmail json YAML

2020-07-13 08:58:48 UTC MAIN commitmail json YAML

New sentence, new line.

(wiz)

2020-07-13 08:45:12 UTC MAIN commitmail json YAML

2020-07-13 07:26:27 UTC MAIN commitmail json YAML

Add the missing rescue(8) and tests(7) sets.  XXX: this manual is somewhat
broken due to the differences in the archival formats used.

(jruoho)

2020-07-13 07:22:51 UTC MAIN commitmail json YAML

MKLLVMRT is automatically enabled on x86 and arm64, not mesa18+.

(mrg)

2020-07-13 05:52:50 UTC MAIN commitmail json YAML

actually show the start/end that failed start < end in uvm_page_physload().

(mrg)

2020-07-13 05:43:38 UTC MAIN commitmail json YAML

for both usbd_transfer() and usbd_ar_pipe() be sure to reset the
xfer ux_state to XFER_BUSY when removing from the queue.

seems to fix an occasional panic i was seeing on pinebook and
pinebookpro lately with axen(4).

from riastradh@.

XXX: pullup-9.

(mrg)

2020-07-13 05:40:25 UTC MAIN commitmail json YAML

i hit an assert in this code but we weren't sure why.

for now, add the ostate and nstate values for further diagnosis
to the assert message.

(mrg)

2020-07-13 05:38:52 UTC MAIN commitmail json YAML

move some of the patching of callbacks and other data after
ieee80211_ifattach() but before if_deferred_start_init().

may fix panic i saw in after restarting wpa_supplicant.

from mlelstv.

(mrg)

2020-07-13 05:20:46 UTC MAIN commitmail json YAML

Copy "mach reset" logic from arm32 recently added by jmcneill@.  The
previous MIPS "mach reset" DDB command was hard-coded for Octeon Cavium
CPUs only.

(simonb)

2020-07-13 04:44:03 UTC MAIN commitmail json YAML

mark USBNET_DEBUG as a defflag that depends on USB_DEBUG.

(mrg)

2020-07-13 00:04:04 UTC MAIN commitmail json YAML

Drop unused opt_interrupt.h include.

(rin)

2020-07-12 23:58:30 UTC MAIN commitmail json YAML

Fix typo; U3_HT_PIC_DE*P*UG ---> U3_HT_PIC_DEBUG

(rin)

2020-07-12 23:54:39 UTC MAIN commitmail json YAML

No need to test _KERNEL_OPT twice.
No binary changes.

(rin)

2020-07-12 23:52:37 UTC MAIN commitmail json YAML

Remove duplicate include of opt_ppb.h.
No binary changes.

(rin)

2020-07-12 21:18:01 UTC MAIN commitmail json YAML

No need to work around for IBM405 Errata 77; ibm4xx does not use this file.

(rin)

2020-07-12 21:16:23 UTC MAIN commitmail json YAML

Fix comment.

ibm4xx does not use powerpc/powerpc/trap_subr.S, but
powerpc/ibm4xx/trap_subr.S.

(rin)

2020-07-12 19:05:32 UTC MAIN commitmail json YAML

enable MSI/MSI-X if supported by adapter

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

(jdolecek)

2020-07-12 14:31:50 UTC MAIN commitmail json YAML

2020-07-12 13:40:44 UTC MAIN commitmail json YAML

2020-07-12 13:35:33 UTC MAIN commitmail json YAML

Add KUBSAN commented out.

(skrll)

2020-07-12 13:33:44 UTC MAIN commitmail json YAML

Avoid undefined behaviour.  Detected by KUBSAN.

(skrll)

2020-07-12 13:12:17 UTC MAIN commitmail json YAML

Add KB_TR for uhid keyboards (it was PS/2 only, this seems wrong)

(nia)

2020-07-12 12:13:05 UTC MAIN commitmail json YAML

Add Estonian layout as a variation of Swedish for ukbd and pckbd

(nia)

2020-07-12 11:44:36 UTC netbsd-9 commitmail json YAML

Ammend ticket #991 for additional pullups

(martin)

2020-07-12 11:40:58 UTC netbsd-9 commitmail json YAML

Additionaly pull up the following revisions for ticket #998 to unbreak
the build:

sys/arch/x86/pci/rdcpcib.c 1.3

Recognize more RDC devices.

(martin)

2020-07-12 10:10:53 UTC MAIN commitmail json YAML

fix inaccuracy about kmsan

(maxv)

2020-07-12 08:48:49 UTC MAIN commitmail json YAML

Make this compile

(kim)

2020-07-12 06:42:33 UTC MAIN commitmail json YAML

in sysctl_dbcool_behavior() - actually use the array index when translating
text from sysctl -w *.behavior=<whatever>
now this actually works on my sb2500's two adm1030s

(macallan)

2020-07-12 06:40:11 UTC MAIN commitmail json YAML

Fix off-by-one SCSI target reporting

Use max_target as the controller ID instead of zero, so that the device
located at SCSI ID zero (e.g. a disk) is not obscured through not being
probed by scsi_probe_bus() (which skips the controller ID).

Copy the target requested onto the wire without decrementing it by one.

ok christos@

(kim)

2020-07-12 06:38:57 UTC MAIN commitmail json YAML

get sensor names from device properties if possible

(macallan)

2020-07-12 06:37:39 UTC MAIN commitmail json YAML

2020-07-12 06:35:58 UTC MAIN commitmail json YAML

2020-07-12 03:52:51 UTC MAIN commitmail json YAML

Use symbolic constants for SR and CCR init values.
Same object code is generated.

(uwe)

2020-07-12 03:37:07 UTC MAIN commitmail json YAML

More keyboard layouts

(nia)

2020-07-12 02:34:54 UTC MAIN commitmail json YAML

Avoid messing up the display when too many letters are guessed at once.

The field to put them in was made 26 characters wide... but includes
the string "Guessed: ". So if you get to 17 it wraps to the next line
and clreol()'s it. Instead, when reaching this point step on the
"Guessed:" string instead.

Reported by phil@.

(dholland)

2020-07-12 02:09:52 UTC MAIN commitmail json YAML

doc/CHANGES: Added KB_BR

(nia)

2020-07-12 01:52:22 UTC MAIN commitmail json YAML

Wrap _ROM_START in #ifdef ROMIMAGE to match its use.

(uwe)

2020-07-12 01:44:24 UTC MAIN commitmail json YAML

2020-07-12 01:36:32 UTC MAIN commitmail json YAML

Update lists of keyboard layouts to add Turkish and Brazilian

(nia)

2020-07-12 01:35:59 UTC MAIN commitmail json YAML

Add support for the Brazilian keyboard layout to pckbd and ukbd.

This is significantly different from the European Portugese layout,
and was pieced together from Wikipedia, X11 layout files, and to
some extent with trial and error.

Thanks to lun-4 for helping test this.

PR kern/44570

(nia)

2020-07-11 14:31:46 UTC MAIN commitmail json YAML

Continue scanning a SCSI bus when a LUN is reported not present

This fixes disk attachment under Qemu when there is no disk on LUN 0 on
a SCSI bus but there is a disk on LUN 1. The inquiry for LUN 0 returns
SID_QUAL_LU_NOTPRESENT & T_NODEVICE.  Quirks are only checked if neither
one of those are set, so cannot use a quirk entry.

Use case 1: Proxmox 6 configures each disk on its own bus when using
the "Virtio SCSI single" SCSI controller. However, while the "scsi0"
disk is on LUN 0, the "scsi1" disk is on LUN 1.

Use case 2: A Linode boot profile with multiple disks results in
the first disk ("sda") on LUN 1, while the second disk ("sdb") is
on LUN 0, each on their own bus.

(kim)

2020-07-11 13:07:01 UTC MAIN commitmail json YAML

Fix various typos of "system" in comments. Mainly copypasto errors.

from vezhlys on freenode.

(nia)

2020-07-11 13:04:29 UTC MAIN commitmail json YAML

spell system correctly; from vezhlys on freenode

(nia)

2020-07-11 12:51:21 UTC MAIN commitmail json YAML

Xref x86/tco(4) instead of the parent x86/ichlpcib(4) bridge.

(jruoho)

2020-07-11 09:55:26 UTC MAIN commitmail json YAML

2020-07-11 09:35:22 UTC MAIN commitmail json YAML

Skip this test as it may cause a panic. Point to PR kern/55481.

(jruoho)

2020-07-11 08:10:52 UTC MAIN commitmail json YAML

2020-07-11 07:14:53 UTC MAIN commitmail json YAML

Remove support for '%n' in the kernel printf functions.

It makes vulnerabilities too easily exploitable, is unused and as a sanity
rule should not be used in the kernel to begin with.

Now, "printf(unfiltered_string);" is much less of a problem.

(maxv)

2020-07-11 06:46:19 UTC MAIN commitmail json YAML

2020-07-11 03:53:32 UTC MAIN commitmail json YAML

Fix doc comment for sh_clock_init.

Forgot to update it back in 2006 when sh3 ports were converted to
todr(9) and its second argument (struct rtc_ops) was removed.

(uwe)

2020-07-11 02:19:32 UTC MAIN commitmail json YAML

ftp.c: improve signal handler restoration

Only invoke the old signal handler if it's a real signal handler
and not SIG_IGN, SIG_DFL, SIG_HOLD, or SIG_ERR, using new static
function issighandler().
Avoids an intermittent race condition with a null pointer
dereference via (*SIG_DFL)().
Bug class reported by Joyu Liao from Juniper Networks.

Use SIG_ERR instead of NULL as the indicator that a signal handler
hasn't been changed, so that SIG_DFL (equivalent to NULL)
will be restored.

(lukem)

2020-07-11 00:39:53 UTC MAIN commitmail json YAML

meta_oodate: if target is explicitly .META missing is oodate

If a .meta file is missing for a target marked .META
it is out-of-date

(sjg)

2020-07-11 00:29:38 UTC MAIN commitmail json YAML

fetch_url: improve signal handler restoration

Use SIG_ERR not NULL as the indicator that a signal handler
hasn't been changed, so that SIG_DFL (equivalent to NULL)
will be restored.

Fix restoration of SIGQUIT; use the old handler not SIGPIPE's.

(lukem)

2020-07-10 20:34:24 UTC MAIN commitmail json YAML

Fix numeric variable handling in settc (lyzliyuzhi at 163 dot com)

(christos)

2020-07-10 16:02:00 UTC MAIN commitmail json YAML

2020-07-10 15:53:30 UTC MAIN commitmail json YAML

Use O_CLOEXEC and save a syscall.

Reviewed by: riastradh

(sjg)

2020-07-10 15:12:33 UTC MAIN commitmail json YAML

Remove stray #else / #endif block in KASAN support commit

(skrll)

2020-07-10 14:24:14 UTC MAIN commitmail json YAML

remove write-only sc_ccbq, and unused sc_ccbdone

(jdolecek)

2020-07-10 14:23:56 UTC MAIN commitmail json YAML

remove write-only sc_ccbq, and unused sc_ccbdone

(jdolecek)

2020-07-10 12:45:16 UTC MAIN commitmail json YAML

Oops... deal with a last minute #define name change.  KASAN support now
builds.

(skrll)

2020-07-10 12:25:11 UTC MAIN commitmail json YAML

2020-07-10 12:14:58 UTC MAIN commitmail json YAML

2020-07-10 11:59:10 UTC netbsd-9 commitmail json YAML

2020-07-10 11:35:51 UTC netbsd-9 commitmail json YAML

Pull up the following revisions, requested by msaitoh in ticket #997:

sys/dev/pci/ixgbe/ix_txrx.c 1.62-1.63 via patch
sys/dev/pci/ixgbe/ixgbe.c 1.225, 1.228-1.229,
1.232 via patch
sys/dev/pci/ixgbe/ixgbe.h 1.64, 1.66
sys/dev/pci/ixgbe/ixv.c 1.146, 1.148-1.150
sys/dev/pci/ixgbe/ixgbe_common.c 1.27
sys/dev/pci/ixgbe/ixgbe_vf.c 1.23
sys/dev/pci/ixgbe/ixgbe_82598.c 1.15
sys/dev/pci/ixgbe/ixgbe_x550.c 1.18
sys/dev/pci/ixgbe/ixgbe_netbsd.c 1.14
sys/dev/pci/ixgbe/ixgbe_phy.c 1.21
sys/dev/pci/ixgbe/ixgbe_osdep.h 1.26

- Fix IXGBE_LE32_TO_CPUS() macro for big endian machine. This problem
  was only on X550*.
- Add debug printf()s.
- Use unsigned to avoid undefined behavior in
  ixgbe_fc_enable_generic().
- Modify a little to reduce diff between ixgbe.c and ixv.c.
  No functional change.
- Modify comment.
- Remove unused macros.
- Whitespace fix.
- Fix typos.

(martin)

2020-07-10 11:31:59 UTC netbsd-9 commitmail json YAML

Pull up the following revisions, via patch, requested by msaitoh in
ticket #996:

sys/dev/pci/ichsmb.c 1.62, 1.66-1.68

- Fix LOCKDEBUG panic on detach when attach failed.
- Add Comet Lake, Whiskey Lake U and Amber Lake Y support.
- Whitespace fix.

(martin)

2020-07-10 11:20:29 UTC netbsd-9 commitmail json YAML

Pull up the following revisions (all via patch) requested by msaitoh in
ticket #995:

usr.sbin/cpuctl/Makefile 1.9
usr.sbin/cpuctl/arch/cpuctl_i386.h 1.5
usr.sbin/cpuctl/arch/i386.c 1.111-1.113
usr.sbin/cpuctl/cpuctl.c 1.31
usr.sbin/cpuctl/cpuctl.h 1.7
sys/arch/x86/x86/identcpu_subr.c 1.1-1.7

- Get TSC frequency from CPUID 0x15 and/or x16 for newer Intel
  processors.
- Add 0xa5 and 0xa6 for Comet Lake.
- Rename ci_cpuid_level to ci_max_cpuid and ci_cpuid_extlevel to
  ci_max_ext_cpuid to match x86/include/cpu.h. No functional change.
- Sort some entries.
- Add comment.

(martin)

2020-07-10 10:45:56 UTC netbsd-9 commitmail json YAML

Pull up the following revisions, requested by msaitoh in ticket #994:

sys/dev/pci/if_wm.c 1.655-1.658, 1.660, 1.662, 1.664-1.668,
1.671-1.674, 1.678,1.680-1.681 via patch
sys/dev/pci/if_wmreg.c 1.118-1.119
sys/dev/pci/if_wmvar.c 1.45

- Add SFP support. Module insertion/removal is not supported yet.
  Currently, SFP detection is only done in the driver's attach phase.
- Detect the Media Auto Sense feature. Not supported yet.
- Fix SFF_SFP_ETH_FLAGS_100FX. It's not 0x10 but 0x20.
- Add extra delay in wm_serdes_power_up_link_82575().
- Add Intel I219 LM10-LM15 and V10-V14.
- wm(4) can use workqueue as deferred Rx/Tx handler.
  Set hw.wm*.txrx_workqueue=1 to use workqueue instead of softint.
  The default value of hw.wm*.txrx_workqueue is 0 which use softint
  as before.
- Unset RSS UDP flags like ixg(4) and other OSes. To handle IP
  fragmented UDP, first packet and second packet should be processed
  in the same Rx queue.
- It's useless to not to set PCI_PMCSR_PME_STS bit when writing because
  the bit is W1C. Instead, always write PCI_PMCSR_PME_STS bit to clear
  in case it's already set.
- Actually writing always the checksum offload context descriptor
  makes the HW do extra processing, avoid doing that if possible.
- Fix a bug that the WMREG_EEARBC_I210 register is incorrectly set if
  the system uses iNVM.
- "wmX: 0" on 82542 is difficult to understand, so don't print it.
- Rename some macros and function.
- KNF. Add comment.

(martin)

2020-07-10 10:36:56 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #993):

sys/arch/x86/x86/procfs_machdep.c: revision 1.37
sys/arch/x86/x86/procfs_machdep.c: revision 1.38

  Add AMD protected processor identification number (PPIN).

  Lowercase ppin.

(martin)

2020-07-10 10:33:38 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #992):

sys/dev/i2c/sdtemp.c: revision 1.37
sys/dev/i2c/sdtemp.c: revision 1.38
sys/dev/i2c/sdtemp.c: revision 1.39

KNF. No functional change.

  Check the return value of iic_acquire_bus(). This function may fail.

  One of the case is driver's detaching phase on shutdown. mutex_tryenter()
might fail and return with EBUSY. To avoid calling iic_release_bus() without
taking lock, check the return value of iic_acquire_bus().

  If an error occurred in sme_refresh function, pass ENVSYS_SINVALID.
OK'd by pgoyette.

(martin)

2020-07-10 10:25:25 UTC netbsd-9 commitmail json YAML

2020-07-10 10:23:57 UTC netbsd-9 commitmail json YAML

Pull up the following revisions, requested by msaitoh in ticket #991:

sys/dev/pci/pcidevs 1.1403-1.1407, 1.1409, 1.1412-1.1418 via patch

- Add NVIDIA Quadro NVS 295.
- Add more RDC products from Andrius V.
- Add some Intel UHD Graphics devices. Mainly taken from OpenBSD.
- Add Intel Comet Lake, Whiskey Lake U and Amber Lake Y devices.
- Modify description of Intel 0x591e from HD Graphics to UHD Graphics.
- Add Intel XMM 7360 LTE Modem.
- Add Western Digital WD Blue SN550 NVMe SSD.
- Add ATI Radeon R5/R6/R7 Graphics.
- Add IDs for Ampere eMAG PCIe Root Ports.
- Add RTL8192EE Wireless LAN 802.11n PCI-E NIC.
- Add ASIX AX99100 Multi I/O (Serial,Parallel,I2C,SPI,LocalBus,GPIO)
  Controller.
- Add a couple of additional device IDs for the AMD Cryptographic
  Coprocessor.
- Remove duplicated entries.

(martin)

2020-07-10 10:18:32 UTC netbsd-9 commitmail json YAML

2020-07-10 10:18:01 UTC netbsd-9 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #990):

sys/dev/mii/miidevs: revision 1.168

  Add some Microsemi (Vitesse) devices.

(martin)

2020-07-10 07:48:28 UTC MAIN commitmail json YAML

Expose KASAN_SHADOW_SCALE_SHIFT.  OK'ed by maxv.

(skrll)

2020-07-10 07:31:33 UTC MAIN commitmail json YAML

2020-07-10 06:28:49 UTC MAIN commitmail json YAML

2020-07-10 06:15:23 UTC MAIN commitmail json YAML

Add missing NetBSD RCS Id.

(msaitoh)

2020-07-10 02:27:13 UTC MAIN commitmail json YAML

Update pci_configure_bus(9) to reflect the new reality -- no more manual
fiddling with extent maps, use pciconf_resource_{init,add,fini}() instead.

(thorpej)

2020-07-10 00:42:53 UTC MAIN commitmail json YAML

filemon_dev:filemon_open need FD_CLOEXEC

We need to mark the fd for filemon FD_CLOEXEC
so that when we call filemon_close() the device is
closed and unflushed data written to our temp file.

(sjg)

2020-07-09 23:43:42 UTC MAIN commitmail json YAML

fix build error of /usr/sbin/crash

pointed out by rjs@, thanks.

(ryo)

2020-07-09 22:45:54 UTC MAIN commitmail json YAML

Adapt to proplib api changes

(jdolecek)

2020-07-09 22:40:14 UTC MAIN commitmail json YAML

2020-07-09 22:34:09 UTC MAIN commitmail json YAML

compare_expression: return after fetch lhs and rhs if !doEval

Otherwise we end up throwing warings/errors for valid
conditionals due to not expanding variables fully.

Add tests to catch this.

Reviewed by: rillig

(sjg)

2020-07-09 14:08:44 UTC MAIN commitmail json YAML

Utilite has console on uart4.

(uwe)

2020-07-09 13:43:04 UTC MAIN commitmail json YAML

Clean up some useless ugliness.  NFC.

(simonb)

2020-07-09 11:40:54 UTC MAIN commitmail json YAML

2020-07-09 10:42:45 UTC MAIN commitmail json YAML

Rename base-termcap-share to base-terminfo-share in descrs

(uki)

2020-07-09 09:24:33 UTC MAIN commitmail json YAML

PR kern/55467
tmpfs calls pmap_kenter_pa(9) with virtual address with page offset

Bisectioning revealed that the failure starts with this commit:

sys/fs/tmpfs/tmpfs_vnops.c rev 1.142:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/fs/tmpfs/tmpfs_vnops.c#rev1.142

by which tmpfs became to use UBC_FAULTBUSY flag for ubc_uiomove(9).
If this flag is specified, pmap_kenter_pa(9) is called with virtual
address with page offset via ubc_alloc(9):

https://nxr.netbsd.org/xref/src/sys/uvm/uvm_bio.c#616

Most ports seem to neglect silently page offset of va argument for
pmap_kenter_pa(9). However, it causes KASSERT failure correctly for
powerpc/booke. So, truncate page offset there.

Now, tmpfs works just fine on evbppc-booke, and I've confirmed that
no new failures are detected by ATF.

Discussed with chs@. Thanks!

(rin)

2020-07-09 08:40:14 UTC MAIN commitmail json YAML

2020-07-09 08:39:46 UTC MAIN commitmail json YAML

Remove duplicated entry.

(msaitoh)

2020-07-09 06:42:44 UTC MAIN commitmail json YAML

"wmX: 0" on 82542 is difficult to understand, so don't print it.

(msaitoh)

2020-07-09 05:57:15 UTC MAIN commitmail json YAML

2020-07-09 05:12:09 UTC MAIN commitmail json YAML

2020-07-09 02:13:58 UTC MAIN commitmail json YAML

factor out common code.

(christos)

2020-07-08 22:28:21 UTC MAIN commitmail json YAML

tegra_xusb depends on firmload.

Make the dependency explicit, do not rely on some random USB device to
pull it in.

(uwe)

2020-07-08 19:39:22 UTC MAIN commitmail json YAML

Drop -fstack-usage* from CFLAGS passed genassym.
We don't want it to create a "-.su" file.

(uwe)

2020-07-08 15:07:13 UTC MAIN commitmail json YAML

2020-07-08 13:48:36 UTC netbsd-8 commitmail json YAML

Apply patch, requested by christos in ticket #1566:

Deduplicate more code and avoid use of uninitialized variables.

(martin)

2020-07-08 13:41:53 UTC MAIN commitmail json YAML

Update for proplib API changes.

(thorpej)

2020-07-08 13:39:04 UTC MAIN commitmail json YAML

Add ./usr/share/wscons/fonts/spleen-8x16.fnt

(thorpej)

2020-07-08 13:26:22 UTC MAIN commitmail json YAML

2020-07-08 13:12:35 UTC MAIN commitmail json YAML

Turn off pci_conf_debug -- it was enabled by mistake in previous
commit.

(thorpej)

2020-07-08 12:14:19 UTC MAIN commitmail json YAML

Add "Spleen 6x12" to wsfont, a font targetted at OLED displays.

It contains all printable ASCII characters (96 glyphes).

The font is 2-Clause BSD licensed and is my original creation.

(fcambus)

2020-07-08 12:12:16 UTC MAIN commitmail json YAML

Comment updates

(skrll)

2020-07-08 11:24:49 UTC MAIN commitmail json YAML

Add font file for Spleen 6x12, which can be loaded into the wsfont pool
or a wscons display device using wsfontload(8).

(fcambus)

2020-07-08 11:11:00 UTC MAIN commitmail json YAML

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.0000571] aes: Intel AES-NI

(jdolecek)

2020-07-08 10:18:00 UTC MAIN commitmail json YAML

Use the stack provided by armv6_start.S rather than svcstk.  This saves
some bss too.

(skrll)

2020-07-08 10:04:20 UTC MAIN commitmail json YAML

Sort the __HAVE_* defines

(skrll)

2020-07-08 10:02:44 UTC MAIN commitmail json YAML

Sort include "opt_..."s

(skrll)

2020-07-08 09:50:45 UTC MAIN commitmail json YAML

Provide some KVA layout #defines in arm32/vmparam.h and simplify
fdt/platform.h as a nice side effect

(skrll)

2020-07-08 08:20:05 UTC MAIN commitmail json YAML

2020-07-08 07:59:49 UTC MAIN commitmail json YAML

Remove an unnecessary #ifdef

(skrll)

2020-07-08 06:58:33 UTC MAIN commitmail json YAML

Define USPACE in terms of UPAGES (not the other way around) now that
NBPG is fixed at 4K

(skrll)

2020-07-08 06:54:57 UTC MAIN commitmail json YAML

2020-07-08 03:45:13 UTC MAIN commitmail json YAML

Determination of A64,A32,T32 for disasm is now done in strrdisasm() instead of the caller.
correctly disassemble by processor state if defined DEBUG_DUMP_ON_USERFAULT or DEBUG_DDB_ON_USERFAULT.

(ryo)

2020-07-08 03:44:10 UTC MAIN commitmail json YAML

don't read memory directly.
In particular, userland memory may be unmapped at the time of reading.

(ryo)