Enable qcgcc(4), qcgeniqup(4), islchg(4) and sampdic(4), and let
qcgeniqup(4) take over the Qualcomm GENI attachment from simplebus(4).
Together with the preceding commits this makes battery charging work
on the Samsung Galaxy Book4 Edge after the USB-C power cable is
re-plugged, rather than only when the machine boots with it already
attached.
ok kettenis@
Add new sampdic(4) driver for the Samsung S2MM006 Power Delivery
Integrated Circuit (PDIC), a USB Type-C port controller found on
Samsung laptops.
ok kettenis@
Add new qcgeniqup(4) driver for the Generic Interface (GENI) based
Qualcomm Universal Peripheral (QUP) wrapper found on the Qualcomm
Snapdragon X1E80100 SoC. The wrapper's AHB clocks must be enabled
before any of its serial engines can be used, i2c20 among them.
ok kettenis@
Add new qcgcc(4) driver for the Global Clock Controller (GCC) found on
the Qualcomm Snapdragon X1E80100 SoC. Only the QUPV3 WRAP2 clocks are
implemented, which is what i2c20 needs; the firmware leaves them off
because it never uses that bus itself.
ok kettenis@
Add pinctrl support for qcgpio(4). For now only the two pins the i2c20
serial engine needs, gpio80 and gpio81, are supported. That bus carries
the ISL9241 battery charger.
ok kettenis@
Prevent VSTATUS (SIGINFO) from monopolizing the global kernel lock.
The VSTATUS case in ttyinput() calls ttyinfo() to format the load
and terminal status, potentially traversing every process and thread
in the foreground process group. We now treat VSTATUS as an
"expensive" terminal control operation and return 1 from ttyinput().
For a pty, this causes ptcwrite() to sleep for at least 1 tick after
the status info is written to the pty.
From Acts1631
Better frame buffer driver for HP Visualize FX2/4/6 boards, allowing proper
(currently unaccelerated) X11 support, as well as color, underline and larger
fonts in console.
The driver can also attach to FX5 and FX10, but doesn't by default due to
text console feature limitations, which will hopefully be worked around soon
(but attachment can be forced using flags in UKC).
Ported from NetBSD.
httpd: use the response writer for FastCGI
The writer now also does chunked encoding. FastCGI responses with no
body or with a Content-Length keep their framing.
Three FastCGI cases changes: A 1xx, 204 or 304 response with a body is
no longer sent chunked, the body is dropped. Output before the end of
the headers or after the end of the response is dropped instead of
being sent to the client.
feedback and ok rsadowski@ and kirill@ as part of a bigger diff
Check account expiration in auth_usercheck() and auth_userokay().
The challenge-response API (auth_userchallenge() and auth_userresponse())
already check for an expired account. This makes the basic auth
API (auth_usercheck() and auth_userokay()) do the same.
Programs calling the auth_approval() function already include the
check for an expired account.
From Acts1631
ext2fs: fix permission check on FIFOs
A typo/pasto resulted in vop_access being assigned to ufsfifo_close
instead of ext2fs_access for FIFOs. OK martijn@ armani@
From Ben Roeder
rpki-client: remove min/max arrays from struct roa_ip
struct roa_ip, representing a ROAIPaddress (afi, prefix, maxLength) of
a ROA, contains a copy of ->addr.addr in min and the corresponding upper
bound of the prefix in max. Both members were only accessed once when
checking against the EE cert's resources via ip_addr_check_covered().
We may as well compute the upper bound on the fly.
So: inline valid_roa() in roa_validate() and inline the still needed half
of ip_roa_compose_ranges() and drop these nearly useless members.
This reduces the struct from 56 bytes to 24 bytes with only one byte of
padding remaining. While struct roa isn't super long lived in either of
the two processes where it is used, this still reduces the memory foot
print a bit (the largest roa, AS9808.roa, has 20653 prefixes, so this saves
about 650 KiB for that one alone).
ok claudio
Introduce a Symbols.map for libpcap
Try to expose only those symbols that should be used. Mostly based on
what libpcap upstream exposes.
Use __{BEGIN,END}_HIDDEN_DECLS to expose less in the static library but
especially the flex and yacc generated code still leaks many symbols out.
Switch the flex yacc code to use _pcap_yy as prefix but more is needed
to hide those symbols properly.
OK tb@
Drop the public bpf_filter and _bpf_filter prototypes from bpf.h
Rename bpf_lfilter() to bpf_filter() and enforce all users to
pass in number of bpf instructions. Expose bpf_validate outside of
_KERNEL with the exception of the bpf_maxbufsize check which is
kernel only. bpf_validate will be used in libpcap in a follow up
commit.
OK tb@
rpki-client: skip a few things for a duplicate manifest
If a duplicate manifest is detected, it is currently still inserted into
the CCR via ccr_insert_mft() (which whines) and its filepath is added via
filepath_add() (which errors out). Skip these two bits. There are plans
to improve on this, but for now this seems a sensible solution.
found/tested by job
ok claudio
allow enabling AKM SHA256-802.1x with ifconfig
The kernel and some wifi drivers already support this feature but there
was no way to enable it with ifconfig. Putting this in now so it can
be easily tested by people with access to a WPA Enterprise setup.