imxpwm: fix polarity handling
- get_config() returned the wrong polarity.
- imx6_pwm: the polarity was set incorrectly.
- Use the SAR mask, not the PR mask, when writing PWMSAR.
- In attach, clear only the CLKSRC field of PWMCR, not the other bits.
Tested on NETWALKER: the LCD is lit at boot, and the polarity no
longer flips when the brightness is changed. Built GENERIC.
cgthree: make cgthreeloadcmap arguments unsigned
wsdisplay_cmap and fbcmap already have these fields as unsigned.
Makes KUBSAN -Werror=array-bounds happy.
Reinstate rev 1.358 now that the indirect block issue has been fixed in
lfs_segment.c rev 1.323.
Check for dirty blocks, in addition to checking for IN_MODIFIED, when
inactivating a vnode. Should address PR kern/61000.
Do not create duplicate copies of indirect blocks if the inode to which
they are attached has been deleted. The duplicate indirect block prevents
lfs_inactive from cleaning all the blocks. This is part of the fix for
PR kern/61000.
aarch64: allow GICv4.1 system register access for EL1
Invert the test for GIC system register availability and cover the
0b0001 versions 3.0 and 4.0 of the GIC CPU interface is supported.
0b0011 version 4.1 of the GIC CPU interface is supported.
meanings of ID_AA64PFR0_EL1.GIC
From Jared.
mk48txx: small oscillator-related fixes:
mask off the stop bit when reading the seconds (avoids returning secs > 60)
use SYSCTL_DESCR for the description
su(1): Fix kerberized path with MKPAM=no MKKERBEROS=yes.
Fixes:
$ su riastradh
riastradh at EXAMPLE.COM's Password:
su: chown 0x7e3294e318a0: No such file or directory
After using the target user's password to get credentials (that is, a
ticket-granting ticket) into an in-memory cache and verifying the
credentials are valid, don't copy them into _another_ in-memory cache
and then chown it -- that makes no sense and doesn't work. Instead,
copy them into a _file_ cache.
This was broken in 2012 with a build fix that apparently nobody has
ever tested since:
https://mail-index.netbsd.org/source-changes/2012/04/12/msg033638.html
PR bin/61091: MKPAM=no kerberized su(1) is busted
Restructure virt68k clocks to be more or less the same way that clock
handling is structures in hb68k, with a few tweaks:
- Keep the "delay clock" that virt68k requires to implement delay().
- Add the notion of "clock priority"; higher-priority clocks get chosen
for duty before lower-priority clocks.
Save and restore X around BPF_COP/BPF_COPX calls whenever
the program uses X, not only when it has a BPF_LDX instruction.
Add new test-cases to t_cop.c files: load X, call a special
copprocessor function that clobbers registers and check X.
While here, fix copx_no_ctx to test BPF_COPX (it tested BPF_COP,
likely a copy/paste error).