evdev: Map the HP mic mute and programmable keys
HP laptops send these keys as AT scancodes 0xE0 0x01 and 0x68, which
evdev dropped. Map 0xE0 0x01 to KEY_MICMUTE, as systemd's hwdb does
for the HP business laptops (EliteBook, ProBook, ZBook, Elite
Dragonfly), and 0x68 to KEY_PROG1, as it does for the Elite
Dragonfly G2.
hwdb maps 0xE0 0x01 to Fn+Esc on the other HP models. The AT table is
not per machine, so Fn+Esc there now sends KEY_MICMUTE instead of
nothing.
Reviewed by: wulf
Approved by: wulf
Pull Request: https://ron-dev.freebsd.org/FreeBSD/src/pulls/122
pci: Accept D3hot in pci_set_powerstate_method()
Since D3 was split into D3hot and D3cold, PCI_POWERSTATE_D3 is D3cold
and the switch rejects D3hot with EINVAL. Devices whose _SxD is 3
(D3hot) then stay in D0 on suspend, and acpi_pci skips their ACPI
transition. LinuxKPI pci_set_power_state(PCI_D3hot) fails the same way.
The PM register has a single D3 state, so write it for both.
Reviewed by: kbowling
Approved by: kbowling
Fixes: 84bbfc32a3f4 ("acpi_powerres: D3cold support")
MFC after: 1 week
Pull Request: https://ron-dev.freebsd.org/FreeBSD/src/pulls/111
tools/build: also stage machine/cpu_flags.h on powerpc
powerpc's machine/elf.h now includes machine/cpu_flags.h, but only elf.h
gets copied into the legacy include directory. Building world natively
on a powerpc host that doesn't have cpu_flags.h installed yet then fails
in libllvmminimal.
Reviewed by: jhibbits
Fixes: 90bc40e26c61 ("powerpc: Split CPU flags into separate file...")
MFC with: 90bc40e26c61
Differential Revision: https://reviews.freebsd.org/D61920
tpm: crb: Do not attach when no CRB interface answers
Some firmware describes a CRB TPM that is not there: a Protectli FW6
with coreboot 4.12 publishes a TPM2 table at 0xfed40000, but no PTT
answers and the Intel ME interface is absent too. Every register
reads all-ones, so attach failed only after 0.6 s of state timeouts,
with ready, idle and locality messages that hid the cause.
Check INTF_ID once, as tpm_tis12_probe() does for TPM 1.2.
Reviewed by: kbowling
Approved by: kbowling
MFC after: 1 week
Pull Request: https://ron-dev.freebsd.org/FreeBSD/src/pulls/128
Mk/Uses/kde.mk: Fix indents for pre-commit hooks
[pre-commit] ERROR: kde.mk is not properly indented -- please use /tmp/check_indentations-kde.mk.TaMU8uQEjL/kde.mk which was created using Tools/scripts/indent_make_if.pl
Fixes: 8facaa7b8b25 - Mk/*: Bring support for Plasma 6 LTS release
audio/muse-sequencer: Facilitate KF5 removal
After [1], the version of kde can be and now *should* be omitted for
ports using only kde version agnostic components such as ecm.
This port still depends on Qt 5, which is also EOL, but we need to
git rid of KF5 first.
[1] https://cgit.freebsd.org/ports/commit/?id=ee319c49617da1da49e5695aac0133743b2d93bc
With hat: kde@
PR: 299313
capsicum-test: Disable `HAVE_SEND_RECV_MMSG` again
04c4b2084eb9 accidentally added some changes from another WIP commit into that
diff. Instead of wholesale reverting the change, just revert the part that's
currently broken (`HAVE_SEND_RECV_MMSG`). While some of the related tests pass,
one of the testcases (`capmode.cc:AllowedMmsgSendRecv`) doesn't currently pass.
Revert the change to make the CI run more green again.
MFC after: 1 week
Fixes: 04c4b2084eb9 ("capsicum-test: make the code WARNS=6 clean")
(cherry picked from commit 71eddb44d7dfa60e43f77c90b51bd091f0693f85)
contrib/kyua: update config.h for 0.15.1 -> 0.15.2
This was accidentally missed in the prior commit.
This commit addresses a largely cosmetic issue.
MFC after: 6 days
MFC with: c16da33701d0
Fixes: c16da33701d0 contrib/kyua: update to 0.15.2
(cherry picked from commit d9daf5ae796518af1793f919156fb6feba05959d)