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 (1h)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (178d) 

2024-05-10 10:59:53 UTC Now

2018-08-12 20:13:13 UTC MAIN commitmail json YAML

2018-08-12 19:48:36 UTC MAIN commitmail json YAML

Back to aprint_debug for dumping clocks at attach

(jmcneill)

2018-08-12 19:28:42 UTC MAIN commitmail json YAML

2018-08-12 19:23:20 UTC MAIN commitmail json YAML

2018-08-12 19:10:14 UTC MAIN commitmail json YAML

Add support for RK3399

(jmcneill)

2018-08-12 18:42:08 UTC MAIN commitmail json YAML

2018-08-12 18:39:59 UTC MAIN commitmail json YAML

Only attempt to set interrupt affinity if we have more than one IRQ.

(jmcneill)

2018-08-12 18:36:27 UTC MAIN commitmail json YAML

Try the more likely gfortran instead of g77.
g77 has likely not shipped as a binary in a long time.

No change for netbsd src as it has no fortran code, no change for pkgsrc
because it passes ${FC} for fortran packages.

(maya)

2018-08-12 18:01:22 UTC MAIN commitmail json YAML

Add rk3399-rockpro64.dts

(jmcneill)

2018-08-12 18:01:03 UTC MAIN commitmail json YAML

2018-08-12 18:00:32 UTC MAIN commitmail json YAML

2018-08-12 17:59:21 UTC MAIN commitmail json YAML

Remove commented out BPFJIT & SLJIT options as they are provided as loadable
modules already.

Heads up by <leot> <christos>

(sevan)

2018-08-12 17:46:49 UTC MAIN commitmail json YAML

Remove a sneaky KASSERT

(jmcneill)

2018-08-12 17:21:36 UTC MAIN commitmail json YAML

2018-08-12 17:16:18 UTC MAIN commitmail json YAML

2018-08-12 17:15:56 UTC MAIN commitmail json YAML

Move rk3399 dtb files to the correct location

(jmcneill)

2018-08-12 17:14:42 UTC MAIN commitmail json YAML

arm: Add support for Rockchip RK3399 SoC.

(jmcneill)

2018-08-12 17:11:55 UTC MAIN commitmail json YAML

2018-08-12 16:49:25 UTC MAIN commitmail json YAML

Enable support for GICv3 and Rockchip RK3399

(jmcneill)

2018-08-12 16:48:05 UTC MAIN commitmail json YAML

2018-08-12 16:34:28 UTC MAIN commitmail json YAML

Use more generic rk3288 compatible string, and do clock assignments when present

(jmcneill)

2018-08-12 16:33:58 UTC MAIN commitmail json YAML

2018-08-12 16:07:27 UTC MAIN commitmail json YAML

handle variable kernel vm min address

(christos)

2018-08-12 16:00:41 UTC MAIN commitmail json YAML

i386 does not have a variable min address (yet)

(christos)

2018-08-12 15:55:27 UTC MAIN commitmail json YAML

2018-08-12 15:39:22 UTC MAIN commitmail json YAML

Add libz for new libisc needing it.

(christos)

2018-08-12 15:37:06 UTC MAIN commitmail json YAML

2018-08-12 15:33:36 UTC MAIN commitmail json YAML

mark two entries as done

(maxv)

2018-08-12 15:31:01 UTC MAIN commitmail json YAML

More ASLR: randomize the location of the PTE area. The PTE slot is not
created in locore anymore, but a little later; by using the already
entered L4 page, rather than the recursive slot itself (which doesn't
exist yet).

In the prekern we still map the slot - the prekern behaves as an external
locore -, because we need it as part of the randomization/relocation
work. The kernel then removes this slot, and regenerates a randomized
one.

Tested on GENERIC and GENERIC_KASLR, Xen doesn't have it and dom0 still
boots fine.

(maxv)

2018-08-12 15:05:13 UTC MAIN commitmail json YAML

make things link again.

(christos)

2018-08-12 14:32:39 UTC MAIN commitmail json YAML

2018-08-12 13:51:59 UTC MAIN commitmail json YAML

undo the time warp

(christos)

2018-08-12 13:31:16 UTC MAIN commitmail json YAML

Move the PCPU area from slot 384 to slot 510, to avoid creating too much
fragmentation in the slot space (384 is in the middle of the kernel half
of the VA).

(maxv)

2018-08-12 13:07:41 UTC MAIN commitmail json YAML

2018-08-12 13:03:09 UTC MAIN commitmail json YAML

2018-08-12 13:02:44 UTC MAIN commitmail json YAML

2018-08-12 13:02:42 UTC MAIN commitmail json YAML

2018-08-12 13:01:56 UTC MAIN commitmail json YAML

switch to the new bind.

(christos)

2018-08-12 12:42:54 UTC MAIN commitmail json YAML

Move the PTE area from slot 255 to slot 509. I've never understood why we
put it on 255; the "kernel" half of the VM space begins on slot 256, so
if anything, the PTE area should have been above it, not below.

Virtually extend the user slots in slotspace, because we don't want
(randomized) kernel mappings to land on slot 255.

The prekern is updated accordingly.

Tested on GENERIC, GENERIC_KASLR and XEN3_DOM0.

(maxv)

2018-08-12 12:23:33 UTC MAIN commitmail json YAML

Introduce PDIR_SLOT_USERLIM, which indicates the limit of the user slots.
Use it instead of PDIR_SLOT_PTE when we just want to iterate over the
user slots. Also use it in SVS, I had hardcoded 255 because there was no
proper define (which there now is).

(maxv)

2018-08-12 11:51:42 UTC MAIN commitmail json YAML

Reduce the minefield: zero out the pdir only once, at the beginning of
the function. This eliminates one assumption on the order of the VM
areas.

(maxv)

2018-08-12 11:50:51 UTC MAIN commitmail json YAML

fix broken library variable definitions (inconsistencies between
bsd.README and bsd.prog.mk)

(christos)

2018-08-12 10:50:35 UTC MAIN commitmail json YAML

2018-08-12 10:45:27 UTC MAIN commitmail json YAML

Take the last area into account, there is a hole before it.

(maxv)

2018-08-12 10:43:04 UTC MAIN commitmail json YAML

Remove dependency of __BITS on MAX/MIN by providing __MAX/__MIN

(skrll)

2018-08-12 09:59:30 UTC MAIN commitmail json YAML

Fixup previous to not break ping protocol.  My bad.

(skrll)

2018-08-12 09:29:16 UTC MAIN commitmail json YAML

Rename 'slotspace' -> 'slotarea' in UVM, to avoid (future) collision with
the x86 slotspace structure.

(maxv)

2018-08-12 09:27:02 UTC MAIN commitmail json YAML

conditionally set MACHINE_ARCH to arm, like other makefiles.
fixes epoc32 builds.

(mrg)

2018-08-12 09:05:52 UTC MAIN commitmail json YAML

Add a new area, SLAREA_HYPV, which indicates the slots used by the
hypervisor, in our case Xen.

(maxv)

2018-08-12 09:03:42 UTC MAIN commitmail json YAML

Add WITHOUT_GZIP

(christos)

2018-08-12 09:03:21 UTC MAIN commitmail json YAML

2018-08-12 09:02:02 UTC MAIN commitmail json YAML

Insert a .WAIT between building of the bootloaders and the CD images,
trying to avoid a build issue as seen on the build cluster:

copying image /home/builds/ab/HEAD/acorn32/201808111340Z-obj/home/source/ab/HEAD/src/distrib/acorn32/ramdisk/ramdisk.fs into netbsd-INSTALL.tmp (2355200 bytes)
done copying image
exiting
rm -f netbsd-INSTALL.gz
cp: /home/builds/ab/HEAD/acorn32/201808111340Z-dest/usr/mdec/boot32,ffa: No such file or directory

(martin)

2018-08-12 08:17:50 UTC MAIN commitmail json YAML

More ASLR: randomize the kernel main memory. VM_MIN_KERNEL_ADDRESS becomes
variable, and its location is chosen at boot time. There is room for
improvement, since for now we ask for an alignment of NBPD_L4.

This is enabled by default in GENERIC, but not in Xen. Tested extensively
on GENERIC and GENERIC_KASLR, XEN3_DOM0 still boots fine.

(maxv)

2018-08-12 08:00:32 UTC MAIN commitmail json YAML

2018-08-12 07:59:14 UTC MAIN commitmail json YAML

remove stray paren

(christos)

2018-08-12 07:53:38 UTC MAIN commitmail json YAML

2018-08-12 07:53:19 UTC MAIN commitmail json YAML

2018-08-12 06:11:47 UTC MAIN commitmail json YAML

Eliminate the only ASM reference to VM_MIN_KERNEL_ADDRESS. Rename the
value to VM_SPACE_SEP_HIGH32, it is now the highest 32bits of the first
va of the higher half of the address space (right after the canonical
hole).

(maxv)

2018-08-12 06:02:38 UTC MAIN commitmail json YAML

2018-08-12 05:43:42 UTC MAIN commitmail json YAML

enable the two errata for AMD Family 16h, tested by mrg@, thanks

(maxv)

2018-08-12 04:19:31 UTC MAIN commitmail json YAML

2018-08-12 04:17:54 UTC MAIN commitmail json YAML

Add SMSC LAN7505 USB 2.0 gigabit ethernet device.

(rin)

2018-08-11 20:16:21 UTC MAIN commitmail json YAML

In lfs_mkdir fix wrong return path in case of EMLINK which causes a panic. Also, check earlier before setting up dirop.

(zafer)

2018-08-11 19:46:03 UTC MAIN commitmail json YAML

hook in the tools version of grep

(christos)

2018-08-11 19:45:13 UTC MAIN commitmail json YAML

use the tools version of grep

(christos)

2018-08-11 19:44:19 UTC MAIN commitmail json YAML

use setvbuf if available; it is more portable.

(christos)

2018-08-11 19:43:54 UTC MAIN commitmail json YAML

don't build NLS if we don't need to

(christos)

2018-08-11 16:25:32 UTC MAIN commitmail json YAML

2018-08-11 16:24:59 UTC MAIN commitmail json YAML

2018-08-11 16:03:37 UTC MAIN commitmail json YAML

remove dup includes (already in grep.h)

(christos)

2018-08-11 14:56:05 UTC netbsd-8 commitmail json YAML

2018-08-11 14:54:50 UTC netbsd-8 commitmail json YAML

Pullup the following, requested by alnsn in ticket #970:

external/mit/lua/dist/README.import            up to 1.2
external/mit/lua/dist/README                    up to 1.8
external/mit/lua/dist/doc/contents.html        up to 1.7
external/mit/lua/dist/doc/lua.css              up to 1.7
external/mit/lua/dist/doc/manual.html          up to 1.8
external/mit/lua/dist/doc/readme.html          up to 1.7
external/mit/lua/dist/src/Makefile              up to 1.5
external/mit/lua/dist/src/lapi.c                up to 1.11
external/mit/lua/dist/src/lapi.h                up to 1.9
external/mit/lua/dist/src/lauxlib.c            up to 1.11
external/mit/lua/dist/src/lauxlib.h            up to 1.8
external/mit/lua/dist/src/lbaselib.c            up to 1.10
external/mit/lua/dist/src/lbitlib.c            up to 1.7
external/mit/lua/dist/src/lcode.c              up to 1.11
external/mit/lua/dist/src/lcode.h              up to 1.8
external/mit/lua/dist/src/lcorolib.c            up to 1.7
external/mit/lua/dist/src/lctype.c              up to 1.7
external/mit/lua/dist/src/lctype.h              up to 1.7
external/mit/lua/dist/src/ldblib.c              up to 1.11
external/mit/lua/dist/src/ldebug.c              up to 1.11
external/mit/lua/dist/src/ldebug.h              up to 1.9
external/mit/lua/dist/src/ldo.c                up to 1.9
external/mit/lua/dist/src/ldo.h                up to 1.9
external/mit/lua/dist/src/ldump.c              up to 1.9
external/mit/lua/dist/src/lfunc.c              up to 1.8
external/mit/lua/dist/src/lfunc.h              up to 1.8
external/mit/lua/dist/src/lgc.c                up to 1.10
external/mit/lua/dist/src/lgc.h                up to 1.8
external/mit/lua/dist/src/linit.c              up to 1.9
external/mit/lua/dist/src/liolib.c              up to 1.9
external/mit/lua/dist/src/llex.c                up to 1.12
external/mit/lua/dist/src/llex.h                up to 1.8
external/mit/lua/dist/src/llimits.h            up to 1.10
external/mit/lua/dist/src/lmathlib.c            up to 1.9
external/mit/lua/dist/src/lmem.c                up to 1.9
external/mit/lua/dist/src/lmem.h                up to 1.8
external/mit/lua/dist/src/loadlib.c            up to 1.9
external/mit/lua/dist/src/lobject.c            up to 1.12
external/mit/lua/dist/src/lobject.h            up to 1.10
external/mit/lua/dist/src/lopcodes.c            up to 1.8
external/mit/lua/dist/src/lopcodes.h            up to 1.8
external/mit/lua/dist/src/loslib.c              up to 1.11
external/mit/lua/dist/src/lparser.c            up to 1.11
external/mit/lua/dist/src/lparser.h            up to 1.8
external/mit/lua/dist/src/lprefix.h            up to 1.7
external/mit/lua/dist/src/lstate.c              up to 1.9
external/mit/lua/dist/src/lstate.h              up to 1.9
external/mit/lua/dist/src/lstring.c            up to 1.9
external/mit/lua/dist/src/lstring.h            up to 1.9
external/mit/lua/dist/src/lstrlib.c            up to 1.18
external/mit/lua/dist/src/ltable.c              up to 1.11
external/mit/lua/dist/src/ltable.h              up to 1.8
external/mit/lua/dist/src/ltablib.c            up to 1.9
external/mit/lua/dist/src/ltm.c                up to 1.9
external/mit/lua/dist/src/ltm.h                up to 1.8
external/mit/lua/dist/src/lua.c                up to 1.9
external/mit/lua/dist/src/lua.h                up to 1.11
external/mit/lua/dist/src/luac.c                up to 1.10
external/mit/lua/dist/src/luaconf.h            up to 1.23
external/mit/lua/dist/src/lualib.h              up to 1.7
external/mit/lua/dist/src/lundump.c            up to 1.8
external/mit/lua/dist/src/lundump.h            up to 1.7
external/mit/lua/dist/src/lutf8lib.c            up to 1.8
external/mit/lua/dist/src/lvm.c                up to 1.14
external/mit/lua/dist/src/lvm.h                up to 1.10
external/mit/lua/dist/src/lzio.c                up to 1.8
external/mit/lua/dist/src/lzio.h                up to 1.8
doc/3RDPARTY 1.1536

Import lua 5.3.5.

Lua 5.3.5 is a minor release. It fixes all bugs listed in
http://www.lua.org/bugs.html#5.3.4:

1. Wrong code generated for a 'goto' followed by a label inside an 'if'.
2. Lua crashes when building sequences with more than 2^30 elements.
3. Table length computation overflows for sequences larger than 2^31 elements.
4. Lua does not check GC when creating error messages.
5. Dead keys with nil values can stay in weak tables.
6. lua_pushcclosure should not call the garbage collector when n is zero.
7. Memory-allocation error when resizing a table can leave it in an
  inconsistent state..

(martin)

2018-08-11 14:47:32 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/if_wm.c: revision 1.584
sys/dev/pci/if_wmvar.h: revision 1.39

Add MDIC_WA and CLSEMWA to snprintb() string for WM_F_* flags.

Fix two bugs for non-SERDES fiber. Tested on 82544EI(0x1009), 82545GM(0x1027),
82546GB(0x107a), 82571GB(0x105f), 82572EI(0x107e). Tested on SERDES
82580(0x150e (Winyao SERDES SFP)) and 82580(0x150e) as regression test:

- Fix a bug that the link can't detect in link interrupt function for
  non-SERDES fiber. When the signal is detected & STATUS_LU == 0 & RXCW == 0,
  it's required to set CTRL_SLU and CTRL_FD bit. wm_check_for_link() is the
  function to do it. If a link status change interrupt occurred, call
  wm_check_for_link() before checking current link status.

- Fix a bug that 82542 misunderstand fiber's signal detection. CTRL_SWDPIN(1)
  is used for fiber's signal and it's value is reversed only on 82543 and
  82544. Simplify the code and move it into a new function wm_tbi_havesignal()
  and use it.

(martin)

2018-08-11 13:36:49 UTC netbsd-7 commitmail json YAML

2018-08-11 13:34:21 UTC netbsd-7 commitmail json YAML

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

share/man/man4/wm.4 1.40 via patch
sys/dev/mii/ihphyreg.h 1.2
sys/dev/mii/inbmphyreg.h 1.10
sys/dev/pci/if_wm.c 1.504, 1.506, 1.510-1.535, 1.539-1.540, 1.546, 1.548, 1.551-1.552, 1.558, 1.565-1.573, 1.575, 1.579, 1.582, 1.584 via patch
sys/dev/pci/if_wmreg.h 1.99-1.103, 1.106-1.107 via patch
sys/dev/pci/if_wmvar.h 1.34-1.39 via patch
sys/dev/pci/pcidevs 1.1327 via patch
sys/dev/pci/pcidevs.h regen
sys/dev/pci/pcidevs_data.h regen
sys/dev/pci/pcireg.h patch

Sync wm(4) up to 2018/08/08 except MSI/MSI-X and NET_MPSAFE:
- remove extra "+"
- Fix a bug that non-GMII devices don't send a routing message when
  the link status is changed.
- Set WMREG_KABGTXD not in wm_init_locked() but in wm_reset(). Same as
  other OSes.
- If a interrupt is a spurious interrupt, don't print debug message.
- Don't print the Image Unique ID if an NVM is iNVM (i210 and I211).
- Print sc_flags with snprintb().
- Fix a bug that a RAL was written at incorrect address when the index
  number is more than 16 on 82544 and newer.
- The layout of RAL on PCH* are different from others. Fix it.
- Flush every MTA write. Same as Linux.
- Move the location of calling wm_set_filter. Same as some other OSes.
- Add CSR_WRITE_FLUSH() after writing WMREG_CTRL in
  wm_gmii_mediachange().
- Add missing "else" in wm_nvm_release().
- Make new wm_phy_post_reset() and use this function at all location
  after resetting phy.
- Move the location of calling wm_get_hw_control. Same as Linux.
- Add I219 specific wokaround for legacy interrupt. From OpenBSD.
- Move the location of calling wm_lplu_d0_disable().
- Fix latency calculation in wm_platform_pm_pch_lpt().
- Set OBFF water mark and enable OBFF on PCH_LPT and newer.
- Disable D0 LPLU on 8257[12356], 82580, I350 and I21[01], too. Before
  this commit, above devices and non-PCIe devices accessed wrong
  register.
- Use device_printf() instead of aprint_error_dev() for PHY read/write
  functions because those are used not only in device attach.
- Fix a bug that wm_gmii_i82544_{read,write}reg() didn't take care of
  page select. PHY access from igphy() automatically did it, but
  accessing from wm(4) for wrokaround didn't work correctly. This
  change affects 8254[17], 8257[12] ICH8, ICH9 and ICH10.
- Call wm_kmrn_lock_loss_workaround_ich8lan() before any PHY access in
  wm_linkintr_gmii().
- Register access in wm_kmrn_lock_loss_workaround_ich8lan() now works
  correctly. Enable this function.
- Configure the LCD with the extended configuration region in NVM if
  it's required.
- If TX is not required to flush, RX is also not required to flush
  in wm_flush_desc_rings(). Same as other OSes.
- Remove wrong semaphore access in wm_nvm_{read,write}_{ich8,spt} to
  prevent hangup. A semaphore is get/put in wm_nvm_{read,write}.
- Move some initialization stuff in wm_attach() before wm_reset(). Some
  flags and callback function are required to set correctly before
  wm_reset() because wm_reset() and some helper functions refer them.
- Add wm_write_smbus_addr() to set SMBus address by software.
- Modify wm_gmii_hv_{read,write}reg_locked() to make them access
  HV_SMB_ADDR correctly.
- Use new nvm.{acquire,release}() for semaphore.
- Our MII readreg/writereg API has not way to detect an error.
  kmrn_{read,write}reg() are not used for MII API, so it's not required
  for these functions to use the same API. So,
  - Change return value as error code.
  - Change register value from int to uint16_t.
  - read: pass pointer for uint16_t as an argument.
  - Check return value on caller side.
- Check whether it's required to use MDIC workaround for 80003 or not
  in wm_reset(). If the workaround isn't required, don't use the
  workaround code in wm_gmii_i80003_{read,write}reg.
- Add WM_F_WA_I210_CLSEM flag for a workaround. FreeBSD/Linux drivers
  say "In rare circumstances, the SW semaphore may already be held
  unintentionally on I21[01]". PXE boot is one of the case.
- Qemu's e1000e emulation (82574L)'s SPI has only 64 words. I've never
  seen on real 82574 hardware with such small SPI ROM. Check
  sc->sc_nvm_wordsize before accessing higher address words to prevent
  timeout.
- Check some wm_nvm_read()'s return vale.
- Print NVM offset and word count when EERD polling failed.
- On I219, drop TARC0 bit 28 for DMA hang workaround (from Linux).
- 82583 supports jumbo frame. Fixes PR#52773 reported by
  Shinichi Doyashiki.
- Fix typo in comment. Reported by Shinichi Doyashiki in PR#52885.
- Add ASPM workaround for 8257[1234] and 82583 to prevent device
  timeout or hangup. Fixes PR#52818 reported by Shinichi Doyashiki.
- CID-1427779: Fix uninitialized variables.
- Fix a bug that wm_pll_workaround_i210() is not called when
  a) Chip is I211 or b) Chip is I210 and it uses iNVM (not FLASH).
- Do wm_reset_mdicnfg_82580() on 82580 only.
- Fix FLASH access on PCH_SPT and newer. Their FLASH access should be
  done by 32bit. Especially for ICH_FLASH_HSFCTL register, it's located
  at 0x0006, so it must be accessed via ICH_FLASH_HSFSTS(0x0004) and
  use shift or mask.
- Make wm_nvm_valid_bank_detect_ich8lan() the same as other OSes.
- If the extended configuration size in the EXTCNFSIZE register is 0,
  don't continue in wm_init_lcd_from_nvm().
- Add PCH_CNP support (I219 with Intel 300 series chipset).
- Enable I219 support.
- I354 uses an external PHY, so don't use wm_set_eee_i350().
- Fix a bug that the link can't detect in link interrupt function for
  non-SERDES fiber.
- Fix a bug that 82542 misunderstand fiber's signal detection.
- Add debug printf()s.
- Update comment.
- Rename functions and variables.
- Add diagnostic code.
- Sort registers.
- Lowercase hexadecimal values.
- KNF.

(martin)

2018-08-11 12:16:34 UTC MAIN commitmail json YAML

change to minimum invalidation of TLB.
specifying not only va but also asid, and not invalidate L0-L2 entry using tlbi_*_ll() if needed.

(ryo)

2018-08-11 11:33:10 UTC MAIN commitmail json YAML

Remove unused symbols from <sys/sysctl.h>

Drop: P_PAXMPROTECT and P_PAXNOMPROTECT.

These values are unused and the proper way to check PaX MPROTECT is to use
CTL_PROC.pid().PROC_PID_PAXFLAGS and check CTL_PROC_PAXFLAGS_MPROTECT.

Proposed on current-users@.
OK from <christos>

(kamil)

2018-08-11 10:34:25 UTC MAIN commitmail json YAML

disestablish interrupt handler regardless of the state whenever it was
setup, i.e. also when the instance is DISCONNECTING already

fixes PR port-xen/53487 by Bert Kiers; fix found and reported by
Dennis Lindroos

XXX pullup netbsd-8

(jdolecek)

2018-08-11 10:20:44 UTC MAIN commitmail json YAML

2018-08-11 10:06:41 UTC MAIN commitmail json YAML

fix multiple definition of __{ge,lt,gt,le,eq,ne,unordt}tf2 in libc and libgcc.
this fixes the ATF call_once_static, call_once2_static, cxxruntime_static, static_destructor_static.

(ryo)

2018-08-11 04:46:17 UTC MAIN commitmail json YAML

use DDB_EXPR_FMT. fix typo.

(ryo)

2018-08-11 03:41:06 UTC MAIN commitmail json YAML

2018-08-11 00:32:17 UTC MAIN commitmail json YAML

IPI and priority fixes. My RK3399 board boots multiuser now.

(jmcneill)

2018-08-10 22:43:22 UTC MAIN commitmail json YAML

fix race in wd_lastclose() on systems with two ide disks on same
channel, which happened when one disk had pending I/O while the other
disk executed the final disk flush - need to restart bufq processing
once xfer is freed in this case

it could happen e.g. on boot when system executes fsck on different
partitions on the two drives in parallell and hence open and closes
the disk devices repeatedly

add KASSERT() for empty bufq on wd_lastclose(), and fix similar issue
also on suspend/standby path

this was introduced by the NCQ merge and not dksubr - before the merge
each drive had their own xfer, so they could not block each other

fixes PR kern/52783 by Onno van der Linden; many thanks for extensive
help with tracking this down

(jdolecek)

2018-08-10 22:34:36 UTC MAIN commitmail json YAML

Pass full mpidr (instead of just aff0) to psci_cpu_on

(jmcneill)

2018-08-10 21:48:19 UTC MAIN commitmail json YAML

Bump version for recent change to struct emul

Welcome to 8.99.24 !

(pgoyette)

2018-08-10 21:47:16 UTC MAIN commitmail json YAML

2018-08-10 21:45:00 UTC MAIN commitmail json YAML

2018-08-10 21:06:42 UTC MAIN commitmail json YAML

treat kernel-exec attr and user-exec attr separately.
kernel cannot execute userland exec page, and user cannot execute kernel page.

(ryo)

2018-08-10 20:35:52 UTC MAIN commitmail json YAML

Merge FreeBSD improvements to the man-page of timespec_get(3)

Keep NetBSD references instead of FreeBSD ones included in the FreeBSD
version.

(kamil)

2018-08-10 20:11:29 UTC MAIN commitmail json YAML

lua: Import version 5.3.5.

(alnsn)

2018-08-10 17:54:46 UTC MAIN commitmail json YAML

Add snippet for bpfjit(4) as both i386 and amd64 are listed as supported.
Ideally BPFJIT should be enabled by default for use with NPF but I haven't
raised the question (no access to email at the moment) hence both are disabled.

(sevan)

2018-08-10 17:47:14 UTC MAIN commitmail json YAML

remove reference to CPU_ARMV2, suggested by jmcneill@

(maxv)

2018-08-10 17:46:06 UTC MAIN commitmail json YAML

2018-08-10 17:11:56 UTC MAIN commitmail json YAML

Don't hold up boot: defer acpibat(4) inquiry until threads are running.

ok jmcneill@

(riastradh)

2018-08-10 17:05:22 UTC MAIN commitmail json YAML

fix arm int_const.h for aarch64

(jakllsch)

2018-08-10 16:17:30 UTC MAIN commitmail json YAML

2018-08-10 10:31:01 UTC MAIN commitmail json YAML

fix if_snd_is_used(), ifp->if_snd is also used by if.c::if_transmit().

(knakahara)

2018-08-10 07:24:09 UTC MAIN commitmail json YAML

- Fix a bug that drop counter shows incorrect vaule like
  "net.inet.ip.ifq.drops = 72059810241052672"
- Change pktq's length sysctl to uint64_t.

(msaitoh)

2018-08-10 07:20:59 UTC MAIN commitmail json YAML

Change the type of wqinput's drop counter to uint64_t. OK'd by ozaki-r@.

(msaitoh)

2018-08-10 07:16:13 UTC MAIN commitmail json YAML

2018-08-10 06:55:04 UTC MAIN commitmail json YAML

Remove the callback and localify. Same as IPv4.

(maxv)

2018-08-10 06:46:09 UTC MAIN commitmail json YAML

Rename

ip6_undefer_csum  -> in6_undefer_cksum
in6_delayed_cksum -> in6_undefer_cksum_tcpudp

The two previous names were inconsistent and misleading.

Put the two functions into in6_offload.c. Add comments to explain what
we're doing.

Same as IPv4.

(maxv)

2018-08-10 06:23:12 UTC MAIN commitmail json YAML

Don't unconditionally call pmap_extract_ma, it is part of XENNET_DEBUG.
This call costs us.

(maxv)

2018-08-10 04:44:16 UTC MAIN commitmail json YAML

* Convert bus address to physical address in xxx_bs_mmap(), as done in
  xxx_bs_map().

* Reuse bs_map and bs_mmap in arm_generic_bs_tag in order to
  - set pmap flags properly for aarch64
  - dedup codes

OK ryo

(rin)

2018-08-10 04:24:46 UTC MAIN commitmail json YAML

Fix debug build. Also make formats more consistent with others in
DPRINTF added in the previous commit.

(rin)

2018-08-10 00:19:09 UTC MAIN commitmail json YAML

Update current versions of less, libarchive, libpcap.
Update libarchive home page.

(sevan)

2018-08-09 23:13:31 UTC MAIN commitmail json YAML

Add homepage & current version info for elftoolchain.

(sevan)

2018-08-09 21:23:23 UTC MAIN commitmail json YAML

2018-08-09 21:16:43 UTC MAIN commitmail json YAML

2018-08-09 20:30:26 UTC MAIN commitmail json YAML

Fix length calculation

(reinoud)

2018-08-09 18:17:39 UTC MAIN commitmail json YAML

fix DIAGNOSTIC build by not copying ub_usepolling to stack before use

(jakllsch)

2018-08-09 17:43:55 UTC MAIN commitmail json YAML

2018-08-09 17:32:44 UTC MAIN commitmail json YAML

Use an independent pool, don't steal pages from mcl_cache. This was a bad
hack.

No particular functional change, since the (MCLBYTES != PAGE_SIZE)
condition is already true.

(maxv)

2018-08-09 17:26:00 UTC MAIN commitmail json YAML

2018-08-09 16:27:23 UTC MAIN commitmail json YAML

Fix two bugs for non-SERDES fiber. Tested on 82544EI(0x1009), 82545GM(0x1027),
82546GB(0x107a), 82571GB(0x105f), 82572EI(0x107e). Tested on SERDES
82580(0x150e (Winyao SERDES SFP)) and 82580(0x150e) as regression test:

- Fix a bug that the link can't detect in link interrupt function for
  non-SERDES fiber. When the signal is detected & STATUS_LU == 0 & RXCW == 0,
  it's required to set CTRL_SLU and CTRL_FD bit. wm_check_for_link() is the
  function to do it. If a link status change interrupt occured, call
  wm_check_for_link() before checking current link staus.
- Fix a bug that 82542 misunderstand fiber's signal detection. CTRL_SWDPIN(1)
  is used for fiber's signal and it's value is reversed only on 82543 and
  82544. Simplify the code and move it into a new function wm_tbi_havesignal()
  and use it.

(msaitoh)

2018-08-09 14:39:22 UTC netbsd-7 commitmail json YAML

2018-08-09 14:38:16 UTC netbsd-7 commitmail json YAML

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

lib/libcurses/addbytes.c: revision 1.48

Avoid curx going beyond end of window when adding a wide character to the
last column.

OK @blymn.

(martin)

2018-08-09 13:49:30 UTC MAIN commitmail json YAML

2018-08-09 13:25:35 UTC netbsd-8 commitmail json YAML

2018-08-09 13:24:41 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by christos in ticket #968):

sys/fs/tmpfs/tmpfs_vfsops.c: revision 1.73

Fix tmpfs performance regression from rmind@:
Just from a very quick look, it seems like a regression introduced with
the vcache changes: the MP-safe flag is set too late and not inherited
by the root vnode.

(martin)

2018-08-09 13:21:36 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by christos in ticket #967):

crypto/external/bsd/openssl.old/dist/crypto/evp/evp.h: revision 1.6
crypto/external/bsd/openssl.old/dist/crypto/x509/x509_vfy.h: revision 1.2
(applied to crypto/external/bsd/openssl/)

Add missing functions for racoon2 to compile under netbsd-8
From Chuck Zmudzinski

XXX: pullup-8 (to openssl not openssl.old)

(martin)

2018-08-09 12:45:15 UTC MAIN commitmail json YAML

Fix stack protector build.

(christos)

2018-08-09 10:27:17 UTC MAIN commitmail json YAML

Restore ICC_SRE_EL2 registers lost in previous commit

(jmcneill)

2018-08-09 08:43:56 UTC MAIN commitmail json YAML

FIx performance regression from rmind@:

Just from a very quick look, it seems like a regression introduced with
the vcache changes: the MP-safe flag is set too late and not inherited
by the root vnode.

(christos)

2018-08-09 08:32:41 UTC MAIN commitmail json YAML

2018-08-09 08:30:29 UTC MAIN commitmail json YAML

Add some aliases (from phone)

(christos)

2018-08-09 06:29:08 UTC MAIN commitmail json YAML

2018-08-09 06:26:47 UTC MAIN commitmail json YAML

pull across abort fixes from nick-nhusb.  add more abort fixes, using
ideas from Taylor and Nick, and myself.  special thanks to both who
inspired much of the code here, if not wrote it directly.

among other problems, this assert should no longer trigger:

  panic: kernel diagnostic assertion "xfer->ux_state == XFER_ONQU" failed: file "/current/src/sys/dev/usb/usbdi.c", line 914

using usbhist i was able to track down my instance of it being related
to userland close() beginning, dropping the sc_lock, and then the usb
softintr completes the transfer normally, and when it is done, the
abort path attempts to re-complete the transfer, and the above assert
is tripped.

changes from nhusb were commited with these logs:
--
Move the struct usb_task to struct usbd_xfer for everyone to use.
--
Set device transfer status to USBD_IN_PROGRESS if start methods succeeds
--
Actually set the transfer status on transfers in ohci_abort_xfer and
the controller is dying
--
Don't supply the lock to callout_halt when polling as it won't be held
--
Improve transfer abort
--
Mark device transfers as USBD_IN_PROGRESS appropriately and improve
abort handling
--
#ifdef DIAGNOSTIC -> KASSERT and add another KASSERT
--
Mark device transfers as USBD_IN_PROGRESS appropriately and improve
abort handling
--

additional changes include:
- initialise the usb abort task in the HCI allocx routine, so that it
  can be safely usb_rem_task()'d.
- rework the handling of softintr vs cancellation vs timeout abort based
  upon a scheme from Taylor:
  when completing a transfer normally:
  - if the status is not in progress, it must be cancelled or timed out,
    and we should not process this xfer.
  - set the status as normal.
  - unconditionallly callout_stop() and usb_rem_task().  they're safe and
    either aren't running, or will run and do nothing.
  - finally call usb_transfer_complete().
  when aborting a transfer:
  - status should be cancelled or timed out.
  - if cancelling, callout_halt and usb_rem_task_wait() to make sure the
    timer is either done or cancelled.
  - at this point, the ux_status must not be cancelled or timed out, and
    if it is not in progress we're done.
  - set the status.
  - if the controller is dying, just return.
  - perform HCI-specific tasks to abort this xfer.
  - finally call usb_transfer_complete().
  for the timeout and timeout task:
  - if the HCI is not dying, and the ux_status is in progress, then
    trigger the usb abort task.
- remove UXFER_ABORTWAIT and UXFER_ABORTING.

tested on:
- multiple PC systems with several types of devices: ugen/UPS, ucom,
  umass with disk, ssd and cdrom backends, kbd, ms, using uhci, ehci
  and xhci.
- erlite3: sd@umass on dwc2.
- sunblade2000: kbd/ms and umass disk on ohci.

untested:
- motg, slhci and ahci.  motg has some portion of the new scheme
  applied, but slhci and ahci require more study.

future work includes pushing a lot of the common abort handling into
usbdi.c and leaving upm_abort() for HC specific tasks, but this change
is pullup-able to netbsd-7 and netbsd-8 as it does not change any
external API, as well as removing over 100 lines of code while adding
over 30 new asserts.

XXX: pullup-7, pullup-8.

(mrg)

2018-08-08 22:16:49 UTC MAIN commitmail json YAML

Fix ordering of bus_dmamap_sync.

The ordering is:

...
- driver writes to kernel pointer
- sync
- driver triggers device use of newly written data (*)
- sync
- driver writes to kernel pointer
- sync
...

The operation (*) is a DMA write.  Hence the syncs should be:

...
- driver writes to kernel pointer
- bus_dmamap_sync(BUS_DMASYNC_PREWRITE)
- driver triggers device use of newly written data
- bus_dmamap_sync(BUS_DMASYNC_POSTWRITE)
- bus_dmamap_sync(BUS_DMASYNC_PREWRITE)
- driver writes to kernel pointer
- bus_dmamap_sync(BUS_DMASYNC_POSTWRITE)
- bus_dmamap_sync(BUS_DMASYNC_PREWRITE)
...

(Preemptive pullup from my DRM/KMS update branch in Git.)

XXX pullup-7
XXX pullup-8

(riastradh)

2018-08-08 21:17:46 UTC MAIN commitmail json YAML

Adjust set lists better.

(maya)

2018-08-08 21:15:42 UTC MAIN commitmail json YAML

Remove nsp(4) documentation following the removal of code.

(maya)

2018-08-08 21:00:29 UTC MAIN commitmail json YAML

2018-08-08 19:19:36 UTC MAIN commitmail json YAML

Add missing functions for racoon2 to compile under netbsd-8
From Chuck Zmudzinski
XXX: pullup-8 (to openssl not openssl.old)

(christos)

2018-08-08 19:05:19 UTC MAIN commitmail json YAML

arm: Add driver for ARM GICv3 interrupt controllers.

(jmcneill)

2018-08-08 19:03:08 UTC MAIN commitmail json YAML

2018-08-08 19:02:28 UTC MAIN commitmail json YAML

2018-08-08 19:01:55 UTC MAIN commitmail json YAML

2018-08-08 19:01:15 UTC MAIN commitmail json YAML

Add fields for per-cpu GICv3 state

(jmcneill)

2018-08-08 19:00:53 UTC MAIN commitmail json YAML

Add GICv3 system registers

(jmcneill)

2018-08-08 10:37:27 UTC netbsd-8 commitmail json YAML

2018-08-08 10:36:08 UTC netbsd-8 commitmail json YAML

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

sys/external/bsd/dwc2/dist/dwc2_core.h: revision 1.9
sys/external/bsd/dwc2/dist/dwc2_hcdqueue.c: revision 1.15
sys/external/bsd/dwc2/dist/dwc2_hcd.h: revision 1.15
sys/external/bsd/dwc2/dist/dwc2_hcdintr.c: revision 1.14
sys/external/bsd/dwc2/dist/dwc2_hcd.c: revision 1.21

Merge
https://github.com/torvalds/linux/commit/38d2b5fb75c15923fb89c32134516a623515bce4
to mitigate USB NAK interrupt storms, with an extra change from
skrll@ to also mitigate interrupt storms on the non-split case with
older DWC2 cores.

Fixes woeful USB disk performance on an ERLITE.

Much thanks to skrll@ for pointer to the above patch, handling the
non-split case and testing.

(martin)

2018-08-08 10:32:18 UTC netbsd-8 commitmail json YAML

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

lib/libcurses/addbytes.c: revision 1.48

Avoid curx going beyond end of window when adding a wide character to the
last column.

OK @blymn.
- --

(martin)

2018-08-08 10:28:35 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by riastradh in ticket #963):

sys/dev/usb/if_cue.c: revision 1.80
sys/dev/usb/umcs.c: revision 1.11
sys/dev/usb/umcs.c: revision 1.12
sys/dev/usb/if_ural.c: revision 1.56
sys/dev/usb/if_run.c: revision 1.28
sys/dev/usb/if_ural.c: revision 1.57
sys/dev/usb/if_run.c: revision 1.29
sys/dev/usb/uatp.c: revision 1.16
sys/dev/usb/uatp.c: revision 1.17
sys/dev/usb/if_axe.c: revision 1.91
sys/dev/usb/if_axe.c: revision 1.92
sys/dev/usb/if_zyd.c: revision 1.49
sys/dev/usb/if_axen.c: revision 1.15
sys/dev/usb/if_url.c: revision 1.60
sys/dev/usb/if_udav.c: revision 1.54
sys/dev/usb/if_axen.c: revision 1.16
sys/dev/usb/if_udav.c: revision 1.55
sys/dev/usb/if_athn_usb.c: revision 1.28
sys/dev/usb/if_athn_usb.c: revision 1.29
sys/dev/usb/if_urtw.c: revision 1.16
sys/dev/usb/if_urtw.c: revision 1.17
sys/dev/usb/if_cue.c: revision 1.79
sys/dev/usb/if_rum.c: revision 1.62
sys/dev/usb/if_urtwn.c: revision 1.61
sys/dev/usb/if_rum.c: revision 1.63
sys/dev/usb/if_urtwn.c: revision 1.63
sys/dev/usb/usb.c: revision 1.170
sys/dev/usb/usb.c: revision 1.171
sys/dev/usb/if_smsc.c: revision 1.35
sys/dev/usb/if_smsc.c: revision 1.36
sys/dev/usb/if_zyd.c: revision 1.50
sys/dev/usb/if_aue.c: revision 1.144
sys/dev/usb/if_aue.c: revision 1.145
sys/dev/usb/usb_subr.c: revision 1.225
sys/dev/usb/usb_subr.c: revision 1.226
sys/dev/usb/if_upgt.c: revision 1.21
sys/dev/usb/usbdi.h: revision 1.93
sys/dev/usb/if_upgt.c: revision 1.22
sys/dev/usb/if_url.c: revision 1.59
sys/dev/usb/usbdi.h: revision 1.95
sys/dev/usb/if_otus.c: revision 1.34
sys/dev/usb/if_atu.c: revision 1.62
sys/dev/usb/if_otus.c: revision 1.35
sys/dev/usb/if_atu.c: revision 1.63

New function usb_rem_task_wait(dev, task, queue).

If task is scheduled to run, removes it from the queue.  If it may
have already begun to run, waits for it to complete.  Caller must
guarantee it will not switch to another queue.  If caller guarantees
it will not be scheduled again, then usb_rem_task_wait guarantees it
is not running on return.

This will enable us to fix a litany of bugs in detach where we
currently fail to wait for a pending task.

Use usb_rem_task_wait in various drivers.

(martin)

2018-08-08 10:18:41 UTC netbsd-7 commitmail json YAML

2018-08-08 10:17:11 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by riastradh in ticket #1626):

sys/dev/usb/if_cue.c: revision 1.80
sys/dev/usb/umcs.c: revision 1.11
sys/dev/usb/umcs.c: revision 1.12
sys/dev/usb/if_ural.c: revision 1.56
sys/dev/usb/if_run.c: revision 1.28
sys/dev/usb/if_ural.c: revision 1.57
sys/dev/usb/if_run.c: revision 1.29
sys/dev/usb/uatp.c: revision 1.16
sys/dev/usb/uatp.c: revision 1.17
sys/dev/usb/if_axe.c: revision 1.91
sys/dev/usb/if_axe.c: revision 1.92
sys/dev/usb/if_zyd.c: revision 1.49
sys/dev/usb/if_axen.c: revision 1.15
sys/dev/usb/if_url.c: revision 1.60
sys/dev/usb/if_udav.c: revision 1.54
sys/dev/usb/if_axen.c: revision 1.16
sys/dev/usb/if_udav.c: revision 1.55
sys/dev/usb/if_athn_usb.c: revision 1.28
sys/dev/usb/if_athn_usb.c: revision 1.29
sys/dev/usb/if_urtw.c: revision 1.16
sys/dev/usb/if_urtw.c: revision 1.17
sys/dev/usb/if_cue.c: revision 1.79
sys/dev/usb/if_rum.c: revision 1.62
sys/dev/usb/if_urtwn.c: revision 1.61
sys/dev/usb/if_rum.c: revision 1.63
sys/dev/usb/if_urtwn.c: revision 1.63
sys/dev/usb/usb.c: revision 1.170
sys/dev/usb/usb.c: revision 1.171
sys/dev/usb/if_smsc.c: revision 1.35
sys/dev/usb/if_smsc.c: revision 1.36
sys/dev/usb/if_zyd.c: revision 1.50
sys/dev/usb/if_aue.c: revision 1.144
sys/dev/usb/if_aue.c: revision 1.145
sys/dev/usb/usb_subr.c: revision 1.225
sys/dev/usb/usb_subr.c: revision 1.226
sys/dev/usb/if_upgt.c: revision 1.21
sys/dev/usb/usbdi.h: revision 1.93
sys/dev/usb/if_upgt.c: revision 1.22
sys/dev/usb/if_url.c: revision 1.59
sys/dev/usb/usbdi.h: revision 1.95
sys/dev/usb/if_otus.c: revision 1.34
sys/dev/usb/if_atu.c: revision 1.62
sys/dev/usb/if_otus.c: revision 1.35
sys/dev/usb/if_atu.c: revision 1.63

New function usb_rem_task_wait(dev, task, queue).

If task is scheduled to run, removes it from the queue.  If it may
have already begun to run, waits for it to complete.  Caller must
guarantee it will not switch to another queue.  If caller guarantees
it will not be scheduled again, then usb_rem_task_wait guarantees it
is not running on return.

This will enable us to fix a litany of bugs in detach where we
currently fail to wait for a pending task.

Use usb_rem_task_wait in various drivers.

(martin)

2018-08-08 07:50:12 UTC MAIN commitmail json YAML

Make change of ABI printf()s #ifdef DEBUG_EXEC.

(simonb)

2018-08-08 07:20:44 UTC MAIN commitmail json YAML

Merge
https://github.com/torvalds/linux/commit/38d2b5fb75c15923fb89c32134516a623515bce4
to mitigate USB NAK interrupt storms, with an extra change from
skrll@ to also mitigate interrupt storms on the non-split case with
older DWC2 cores.

Fixes woeful USB disk performance on an ERLITE.

Much thanks to skrll@ for pointer to the above patch, handling the
non-split case and testing.

(simonb)

2018-08-08 03:15:18 UTC MAIN commitmail json YAML

Add MDIC_WA and CLSEMWA to snprintb() string for WM_F_* flags.

(msaitoh)

2018-08-08 02:26:08 UTC MAIN commitmail json YAML

Avoid curx going beyond end of window when adding a wide character to the
last column.

OK @blymn.

(simonb)

2018-08-07 22:55:47 UTC MAIN commitmail json YAML

Simplify the description of npfd, default npflog interface & pcap file are
covered later.
Move advise regarding offline analysis to the CAVEATS section.

(sevan)

2018-08-07 22:02:08 UTC MAIN commitmail json YAML

Escape ellipsis to stop it being interpreted as a macro.
Drop commented out manual which doesn't exist.

(sevan)

2018-08-07 21:11:19 UTC MAIN commitmail json YAML

Escape Dx which otherwise gets interpreted as DragonFly.
via r1.49 in OpenBSD.

(sevan)

2018-08-07 16:35:08 UTC MAIN commitmail json YAML

aprint_verbose the core version

(skrll)

2018-08-07 16:07:49 UTC netbsd-7 commitmail json YAML

2018-08-07 16:04:28 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by nonaka in ticket #1625):

external/gpl2/gmake/dist/glob/glob.c: revision 1.5
(applied to gnu/dist/gmake)

gmake: __alloca and __stat are provided only when building with GLIBC.
Fix a build failure on Ubuntu 18.04.

(martin)

2018-08-07 15:53:18 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by martin in ticket #1624):

distrib/notes/ews4800mips/xfer: revision 1.3
distrib/notes/bebox/prep: revision 1.3
distrib/notes/newsmips/xfer: revision 1.3
distrib/notes/i386/xfer: revision 1.21
distrib/notes/common/main: revision 1.547
distrib/notes/news68k/xfer: revision 1.4

Replace references to i386 install media for Rawrite32 with
links to the homepage.

(martin)

2018-08-07 15:51:29 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by martin in ticket #1623):

sys/arch/i386/stand/misc/rawr32.exe.uue: file removal
sys/arch/i386/stand/misc/Makefile: revision 1.9

Remove Rawrite32 installer - no point having an outdated version on
some install media, the windows machine it needs to run on will
have internet and can easily download it.

(martin)

2018-08-07 13:40:40 UTC netbsd-8 commitmail json YAML

2018-08-07 13:36:41 UTC netbsd-8 commitmail json YAML

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

share/man/man4/ifmedia.4: revision 1.30

Add some missing IFM_* entries.

(martin)

2018-08-07 13:33:23 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/ixgbe/ixgbe_x550.c: revision 1.13
sys/dev/pci/ixgbe/ixgbe.h: revision 1.51
sys/dev/pci/ixgbe/ixgbe_type.h: revision 1.36
sys/dev/pci/ixgbe/ixgbe_osdep.h: revision 1.23
sys/dev/pci/ixgbe/ixgbe_netbsd.c: revision 1.8
sys/dev/pci/ixgbe/ixgbe.c: revision 1.163
sys/dev/pci/ixgbe/ix_txrx.c: revision 1.49

  Add force_10_100_autonego sysctl. The default value is 0(false).

This sysctl is only for 550EM_a with PHY firmware for a while.

  Make jcl allocation per queue to reduce mutex spin. Tested by me and
knakahara.

(martin)

2018-08-07 13:28:59 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #960):

sys/arch/x86/x86/cpu.c: revision 1.159

Oh. Don't call svs_pdir_switch if SVS is disabled, that's not needed.

I was playing around with PMCs, and was wondering why some cache misses
were occurring in svs_pdir_switch while I had SVS disabled.

(martin)

2018-08-07 13:24:59 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kre in ticket #959):

external/bsd/cron/dist/entry.c: revision 1.9,1.10

Fix from Michael Kaufmann in PR bin/53476

Do modulus using unsigned arith, and then convert the result to
int, rather than converting the arc4random() result to int (which
might be negative) and performing a modulus on that (with a
potentially negative answer).

Add some more "crappy error detection" - the low value of
the range of random_with_range() must not be negative (or now
we are doing unsigned modulus we might generate a very big result).

(martin)

2018-08-07 13:19:52 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by alnsn in ticket #958):

sbin/cgdconfig/cgdconfig.c: revision 1.46
sbin/cgdconfig/cgdconfig.c: revision 1.47
sbin/cgdconfig/cgdconfig.c: revision 1.48
sbin/cgdconfig/cgdconfig.8: revision 1.39
sbin/cgdconfig/cgdconfig.8: revision 1.40

Add '-e' option (echo the passphrase) and wipe the passphrase after use.
XXX Using memset for wiping isn't a good idea because memset is likely
optimised away by gcc. This should be revisited.

Missed one change when doing a manual merge of my patch with kre's commit.

use explicit_memset(3)

With the change to use getpass_r the 128 byte passphrase limit no
longer applies, so update the BUGS section here to reflect that change.
The limit now is 1023 whichever method is used to fetch the passphrase.

(martin)

2018-08-07 13:11:12 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by kre in ticket #956):

usr.bin/m4/eval.c: revision 1.27

Avoid an infinite loop caused by a line accidentally dropped
in 1.22 (almost 30 months ago!)
[ Discovered by rhialto@ ]

(martin)

2018-08-07 13:02:31 UTC netbsd-8 commitmail json YAML

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

sys/dev/pci/if_lmc.h: revision 1.25
sys/dev/pci/if_lmc.c: revision 1.65
doc/TODO.smpnet: revision 1.20

Move txintr_setup() stuff from lmc_interrupt() and do it in ifnet_start().
Now we can use bpf_mtap() in the TX path. Not tested.

(martin)

2018-08-07 11:41:23 UTC MAIN commitmail json YAML

Use wp and wlen instead of ip and ilen for consistency.
No binary changes intended.

(rin)

2018-08-07 11:25:45 UTC MAIN commitmail json YAML

Remove unnecessary buffer allocation and memcpy.
Partially taken from nvi2.

(rin)

2018-08-07 10:50:12 UTC MAIN commitmail json YAML

Add five errata for AMD Family 17h (Ryzen etc), tested by Patrick Welche,
thanks. Also add two errata for Family 16h, not yet tested, so not yet
enabled.

(maxv)

2018-08-07 09:01:52 UTC MAIN commitmail json YAML

2018-08-07 08:36:31 UTC MAIN commitmail json YAML

Do not call usb_syncmem(9) with len = 0 to avoid diagnostic assertion
failure in bus_dmamap_sync(9) on Raspberry Pi 3 Model B running in
aarch64 mode.

Workaround for PR port-evbarm/53503.

(rin)

2018-08-07 08:26:42 UTC MAIN commitmail json YAML

2018-08-07 08:05:48 UTC MAIN commitmail json YAML

Add imctrl and imkey options, inspired by cannactrl and fepkey options in
nvi-m17n by itojun.

If imctrl option is set, input method is controlled by using escape
sequences compatible to Tera Term and RLogin. The state of input method in
commands specified by imkey option is saved and restored automatically.
Input method is then deactivated on returning to command mode.

(rin)

2018-08-07 07:19:28 UTC MAIN commitmail json YAML

Add ipsecif(4)

(ozaki-r)

2018-08-07 07:19:09 UTC MAIN commitmail json YAML

Categorize non MP-safe components into protected and unprotected ones

(ozaki-r)

2018-08-07 00:22:13 UTC MAIN commitmail json YAML

First pass at editing this manual.
Add a link to the NPF documentation website and refer to it.
Switch the multiple structural elements to a list to make it easier to read and
extend.
Clarify tables, re-order so all terms are before the example.
Clarify obtaining addresses per family
Move the minimum requirement for a default group to the group section.

(sevan)

2018-08-06 22:45:29 UTC MAIN commitmail json YAML

Update current version info for IANA services & protocols databases.

heads up by <leot>

(sevan)

2018-08-06 21:58:22 UTC MAIN commitmail json YAML

Update some current version information.
Note DEFAULT_PKCS11_WHITELIST needs to be adjusted for ssh-agent.

(sevan)

2018-08-06 20:07:05 UTC MAIN commitmail json YAML

add wddebug() which dumps some status for attached disks; indended for
debugging of PR kern/52783

(jdolecek)

2018-08-06 20:05:26 UTC MAIN commitmail json YAML

set kernel rodata/data non-executable.
set rodata section on 2Mbytes aligned. (kernel image is mapped with 2Mbytes L2 block)

(ryo)

2018-08-06 12:50:56 UTC MAIN commitmail json YAML

set kernel text/rodata readonly by default.
add function db_write_text() for setting ddb breakpoint.

(ryo)

2018-08-06 08:05:32 UTC MAIN commitmail json YAML

Add debug info for t_if_nametoindex

(martin)

2018-08-06 07:14:02 UTC MAIN commitmail json YAML

s/t_ifnametoindex/t_if_nametoindex/

(msaitoh)

2018-08-06 06:54:40 UTC MAIN commitmail json YAML

Change pktq's drops count sysctl from CTLTYPE_INT to CTLTYPE_QUAD.

(msaitoh)

2018-08-06 04:50:11 UTC MAIN commitmail json YAML

2018-08-06 03:58:59 UTC MAIN commitmail json YAML

Fix tun(4) kevent locking

filt_tunread gets called in two contexts:

- by calls to selnotify in if_tun.c (or knote, as the case may be,
  but not here), in which case tp->tun_lock is held; and

- by internal logic in kevent, in which tp->tun_lock is not held.

The standard convention to discriminate between these two cases is by
setting the kernel-only NOTE_SUBMIT bit in the hint to selnotify or
knote; then in filt_*:

        if (hint & NOTE_SUBMIT)
                KASSERT(mutex_owned(&tp->tun_lock));
        else
                mutex_enter(&tp->tun_lock);
        ...
        if (hint & NOTE_SUBMIT)
                KASSERT(mutex_owned(&tp->tun_lock));
        else
                mutex_exit(&tp->tun_lock);

Pointed out by and patch from riastradh@
Tested by ozaki-r@ (only the former path)

(ozaki-r)

2018-08-06 00:30:33 UTC MAIN commitmail json YAML

libkern min/max is 32-bit.  Linux min/max is generic.  @!*#@!$&

XXX pullup

(riastradh)

2018-08-06 00:30:24 UTC MAIN commitmail json YAML

Round nsec up for usec delay.

XXX pullup

(riastradh)

2018-08-06 00:30:15 UTC MAIN commitmail json YAML

Flush chipset writes after GGTT update.

Echoes Linux commit:

commit 8516673a996870ea0ceb337ee4f83c33c5ec3111
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:  Fri Dec 8 21:46:16 2017 +0000

    agp/intel: Flush all chipset writes after updating the GGTT

    Before accessing the GGTT we must flush the PTE writes and make them
    visible to the chipset, or else the indirect access may end up in the
    wrong page. In commit 3497971a71d8 ("agp/intel: Flush chipset writes
    after updating a single PTE"), we noticed corruption of the uploads for
    pwrite and for capturing GPU error states, but it was presumed that the
    explicit calls to intel_gtt_chipset_flush() were sufficient for the
    execbuffer path. However, we have not been flushing the chipset between
    the PTE writes and access via the GTT itself.

    For simplicity, do the flush after any PTE update rather than try and
    batch the flushes on a just-in-time basis.

    References: 3497971a71d8 ("agp/intel: Flush chipset writes after updating a single PTE")
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
    Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
    Cc: Mika Kuoppala <mika.kuoppala@intel.com>
    Cc: drm-intel-fixes@lists.freedesktop.org
    Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20171208214616.30147-1-chris@chris-wilson.co.uk

XXX pullup

(riastradh)

2018-08-06 00:30:07 UTC MAIN commitmail json YAML

Use uvm_km_alloc(kernel_map) and pmap_kenter, not uvm_pagermapin.

XXX pullup

(riastradh)

2018-08-06 00:29:57 UTC MAIN commitmail json YAML

Fix find_first_zero_bit to find the high bits of 64-bit words...oops.

XXX pullup

(riastradh)

2018-08-06 00:29:49 UTC MAIN commitmail json YAML

hweight32 should take uint32_t, not uint16_t.  OOPS.

XXX pullup

(riastradh)

2018-08-05 18:57:49 UTC MAIN commitmail json YAML

Advise to explicitly set flags +agm instead of only clearing them when set

(reinoud)

2018-08-05 18:42:49 UTC MAIN commitmail json YAML

2018-08-05 17:39:55 UTC MAIN commitmail json YAML

Update Lua, add myself to responsible.

(alnsn)

2018-08-05 16:51:59 UTC MAIN commitmail json YAML

To avoid possible collisions between the NetBSD/userland kernel and possible
host kernel memory allocation schemes, allocate two dedicated pages for page
copying and page zeroing.

(reinoud)

2018-08-05 15:37:10 UTC MAIN commitmail json YAML

Use PRIxBUSADDR and remove unnecessary cast

(skrll)

2018-08-05 15:28:21 UTC MAIN commitmail json YAML

Undo previous as it is not required.

(skrll)

2018-08-05 14:07:47 UTC netbsd-7 commitmail json YAML

2018-08-05 14:02:36 UTC MAIN commitmail json YAML