Commit Graph

271486 Commits

Author SHA1 Message Date
msaitoh ac3281b18e Add missing initialization of sc_dev. 2019-11-10 13:34:52 +00:00
pgoyette 7b0f5c9e07 Convert the sendsig_sigcontext_16 function pointer to use the new
compat_hook mechanism.

XXX Despite being a kernel<-->module abi change, this should be
XXX pulled up to -9
2019-11-10 13:28:06 +00:00
jmcneill d5b364b035 Fix typo in phy config table 2019-11-10 12:07:50 +00:00
jmcneill ebd1df72ee Force DCLK_VOP0/1 dividers to 1 and select closest match when setting PLL
rates.
2019-11-10 11:43:04 +00:00
jmcneill 969a75239e Select the correct MPLL and PHY settings for the requested pixel clock 2019-11-10 10:36:01 +00:00
mrg 5052e4c83f update a bunch of reality. 2019-11-10 10:31:38 +00:00
mrg 0108eb486e add mpt(4) SCSI controller support (seen plugged into a rockpro64.) 2019-11-10 09:55:29 +00:00
mlelstv ab2ce32b2b Add functions to open devices by device number or path. 2019-11-10 06:47:30 +00:00
sevan 700433206f Definition of austerity by Alexei Sayle on Radio 4
https://web.archive.org/web/20190916192807/https://www.bbc.co.uk/sounds/play/m0008bbc
2019-11-10 00:54:57 +00:00
jdolecek d61dd23cbc regen 2019-11-09 23:45:07 +00:00
jdolecek 54412fca0b add dummy implementation of linux fallocate() which just returns EOPNOTSUPP;
this is needed so that glibc falls back to emulation and apps behaving
properly, since EOPNOTSUPP is a documented and expected return code, but
ENOSYS is not

right now there are no filesystems in NetBSD tree supporting the fallocate
VOP, so no point trying to map this to a native call

supposed to help with problem reported in
https://mail-index.netbsd.org/tech-kern/2019/11/03/msg025641.html
2019-11-09 23:44:31 +00:00
pgoyette a87c3088cd If we need to handle old-version signals, load the version-specific
"compat_16" module.  There is no longer a monolithic "compat" module!

XXX pullup-9 needed
2019-11-09 23:34:13 +00:00
jmcneill 0de0bae64e Add (commented out) Rockchip display support 2019-11-09 23:30:54 +00:00
jmcneill 49517fca6d WIP display driver for Rockchip RK3399 2019-11-09 23:30:14 +00:00
jmcneill 43077610c8 Add HDMI and VOP clocks 2019-11-09 23:29:48 +00:00
jmcneill 47f97eb335 Add fdtbus_clock_enable and fdtbus_clock_enable_index shortcuts 2019-11-09 23:28:26 +00:00
jmcneill 088b457010 Add support for internal DesignWare HDMI PHYs 2019-11-09 23:27:50 +00:00
jdolecek 1d1057a273 do not try to rm sysautoload when it's not actually used for given compat;
script tried to rm /dev/null which failed
2019-11-09 22:05:50 +00:00
jdolecek de940ab69b don't descend to sparc and sparc64, they don't have syscalls.master
so it just errors out
2019-11-09 22:02:45 +00:00
christos dbeaf00305 Understand _Alignof 2019-11-09 19:54:09 +00:00
tnn 7bd92a1a3d rk_gmac: clean up code for setting up clock delay lines a bit
- break long lines
- move toggle to enable it under a single #ifdef notyet

I've tested it and it works, but I'm keeping the #ifdef notyet for now
because it didn't solve the original problem I was debugging.
2019-11-09 17:21:48 +00:00
pgoyette 636ecf90f7 Fix a typo is christos long comment. :) 2019-11-09 16:46:09 +00:00
christos 24fd57becb Add a rather long comment explaining what has happened with disklabel and
why.
2019-11-09 16:40:38 +00:00
mrg e130416089 copyright maint. 2019-11-09 12:54:34 +00:00
mrg 95676db785 add support for playing IEEE float32 and float64 RIFF WAVE
samples on platforms that have these types natively, and
can handle signed linear 32 bit samples.  explicitly
disabled on vax, run-or-compile-time sizeof() check
disabled for everyone else

now i can play a float32 .wav file i found.
float64 not tested.

copyright maint, update HISTORY, update audio drivers list.
2019-11-09 12:46:44 +00:00
joerg 7330f729cc Import 01f3a59fb3e2542fce74c768718f594d0debd0da from the LLVM mono-repo:
clang (without test/, unittests/, www/)
llvm (without test/, unittests/)
2019-11-08 14:28:07 +00:00
maxv b081609ec2 Exclude the PTE space from KCSAN, since there the same VA can point to
different PAs.
2019-11-08 12:36:10 +00:00
jmcneill abf664cfda Fix PMU interrupt numbers on Allwinner A64. 2019-11-08 11:12:09 +00:00
hannken c4ae6d2fe2 dtrace_trap() gets called from alltraps() -> trap() with interrupts enabled
so we cannot assert for interrupts disabled here.

Should fix PR kern/54603: kernel panic when running dtruss
2019-11-08 11:06:21 +00:00
msaitoh c123683662 Regen. 2019-11-08 04:45:54 +00:00
msaitoh fe1e7325d2 - Update Intel's NVMe SSDs.
- Modify 0x0953's description to "750 or DC P3[567]00 SSD"
  - Add DC P4[56]00
- Add Apollo Lake TXE HECI.
2019-11-08 04:37:45 +00:00
msaitoh b0bfc42be9 Fix a bug that evcnt_detach() called twice when the idt vector is full.
OK'd by knakahara.
2019-11-08 04:15:02 +00:00
jmcneill 03b6843e43 Support reads of more than 32 bytes in a single xfer. 2019-11-08 00:35:16 +00:00
joerg 8b42e4de60 Mirror the ld.elf_so logic for handling aligning the TLS size.
Most noticable, recompute the start of the TLS area for variant I
relative to the TCB. This makes a difference when the segment size and
base alignment don't agree.
2019-11-07 22:25:21 +00:00
nisimura ec6ebfdae0 comment touchup 2019-11-07 22:00:37 +00:00
kamil ff408de6a7 Revert subr_disk_mbr.c r.1.54
Requested by <christos> as there can be a better way to fix the original
problem with alignment.
2019-11-07 20:34:29 +00:00
kamil 23fe401f2f Decorate check_label_magic() with __noubsan
Requested by <christos>
2019-11-07 20:30:49 +00:00
joerg 280b4162f9 Preserve the LWP ID of the calling thread on (v)fork. This ensures that
_lwp_self() remains invariant as necessary for the locking in the
dynamic linker. Otherwise if a process creates a thread and forks from
it, the main thread of the parent would share the LWP ID of the main
thread of the child, even though they have different origins.

Partial fix for pkg/54192.
2019-11-07 19:45:18 +00:00
kamil 185882ca80 Revert src/sys/kern/subr_disk_mbr.c r.1.52
Addressed in a better way in r. 1.53.
2019-11-07 18:35:41 +00:00
kamil 077b1ebea2 Ensure in validate_label() that struct disklabel pointer is 8-byte aligned
The label is searched each 4 bytes and can be detected in an unaligned
location. Before any operations on it, copy it to promptly aligned local
copy on the stack.

This is a missing part of the following change:

revision 1.108
date: 2011-01-18 20:52:24 +0100;  author: matt;  state: Exp;  lines: +2 -1;
Make struct disklabel 8 byte aligned.  This increases its size by 4 bytes
on IPL32 platforms so add code in sys_ioctl (and netbsd32_ioctl) to deal
with the older/smaller diskabel size.  This change makes disklabel the
same for both IPL32 and LP64 platforms

OK by <martin>
2019-11-07 18:30:27 +00:00
rin 49c102a79c For netbsd32_statvfs, f_spare should be netbsd32_uint64, not uint64_t.
Fix syscalls using struct statvfs on COMPAT_NETBSD32 on amd64, where
NETBSD32_INT64_ALIGN is __attribute__((__aligned__(4))).
2019-11-07 15:21:55 +00:00
nisimura 242f87d9f3 clarify 8842 MAC behaves 100FDX only has no alternative media selection
possible.
2019-11-07 09:05:29 +00:00
skrll f563530044 Fix a UVMHIST_LOG format broken in 1.91 2019-11-07 07:45:14 +00:00
msaitoh cc6c2e1ed4 micphy(4): Add support for Microchip KSZ80[0456]1, KSZ87[23]1, KSZ9[01]31 and KSZ9477. 2019-11-07 02:34:44 +00:00
sevan 8d42f92ab0 bsd-family-tree 2019-11-06 23:44:39 +00:00
sevan df20fab130 sync with FreeBSD r354417 2019-11-06 23:43:35 +00:00
wiz 66041a7b29 Add missing El. Use more markup. 2019-11-06 23:17:37 +00:00
mrg 2c291b342a oops, regen these again with right iconv prototype present. 2019-11-06 21:33:07 +00:00
christos 5d36819ed2 Correct documentation of -m and -M.
From Ed Maste @ FreeBSD
2019-11-06 21:04:22 +00:00
christos c7395fee77 Ordinarily, the continue clause of the for-loop would free 'line.' In this
case we instead return early, missing the free.  Add an explicit free to
avoid the leak. Found via coverity.

From Conrad Meyer @ FreeBSD r331230
2019-11-06 21:01:17 +00:00