Add CXXOPTS in bsd.README

2023-07-24 Thread Masato Asou
Hi, I have added a description of CXXOPTS in bsd.README. comments, ok? -- ASOU Masato === RCS file: /cvs/src/share/mk/bsd.README,v retrieving revision 1.85 diff -u -p -r1.85 bsd.README --- share/mk/bsd.README 22 Sep 2020 10:31:46 -0

Re: Zenbleed

2023-07-24 Thread Rafael Sadowski
I hit the same trap as Lucas with my HV (netcup.de). bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xf5900 (10 entries) bios0: vendor netcup version "RS 1000 G9 Plus" date 12/17/2020 bios0: netcup KVM Server acpi0 at bios0: ACPI 1.0 acpi0: sleep states S5 acpi0: tables DSDT FACP APIC acpi0: wakeup devices

Re: Zenbleed

2023-07-24 Thread Theo de Raadt
Would like to know if this patch helps anyone with this type of problem. Index: sys/arch/amd64/amd64/cpu.c === RCS file: /cvs/src/sys/arch/amd64/amd64/cpu.c,v retrieving revision 1.172 diff -u -p -u -r1.172 cpu.c --- sys/arch/amd64/am

Re: Zenbleed

2023-07-24 Thread Theo de Raadt
I am not aware of a feature flag we can check for if we can write to MSR_DE_CFG, and my guess is their VM needs to silently ignore the bits we modify, and not generate a fault. I'm not sure what we can do here, but I suspect some developers will think about it. Anyways, they decided to fault. T

Re: Zenbleed

2023-07-24 Thread Lucas
Hey, I'm running this on a Hetzner VPS, with the dmesg below. I ran syspatch followed by installboot -v sd0. After each boot, 100% I get cpu0 at mainbus0: apid 0 (boot processor) cpu0: AMD EPYC Processor, 2445.60 MHz, 17-31-00 cpu0: FPU,... (proc capabilities) cpu0: 32KB ... (cache info) cpu0: sm

ldd: check {,p}read return value consistently

2023-07-24 Thread Lucas
Hi, I wanted to understand how the pledge execpromises commit worked in ldd and went to read it, and noticed that there is both a if (read(fd, &ehdr, sizeof(ehdr)) < 0) { and a if (pread(fd, phdr, size, ehdr.e_phoff) != size) { In particular, the "read < 0" confused me quite a

OpenBSD Errata: July 24, 2023 (amd cpu firmware, wscons)

2023-07-24 Thread Alexander Bluhm
Errata patches for AMD cpus with their firmware updates and for wscons have been released for OpenBSD 7.2 and 7.3. Binary updates for the amd64, i386 and arm64 platform are available via the syspatch utility. Source code patches can be found on the respective errata page: https://www.openbsd.o

Zenbleed

2023-07-24 Thread Theo de Raadt
Zenbleed errata for 7.2 and 7.3 will come out soon. sysupgrade of the -current snapshot already contains a fix. I wanted to share some notes on impact: OpenBSD does not use the AVX instructions to the same extent that Linux and Microsoft do, so this is not as important. On Linux, glibc has AVX-

Re: Make USB WiFi drivers more robust

2023-07-24 Thread Martin Pieuchot
On 24/07/23(Mon) 12:07, Mark Kettenis wrote: > Hi All, > > I recently committed a change to the xhci(4) driver that fixed an > issue with suspending a machine while it has USB devices plugged in. > Unfortunately this diff had some unintended side effects. After > looking at the way the USB stack

Re: Onyx driver set_input support

2023-07-24 Thread Tobias Heider
On Wed, Aug 10, 2022 at 11:08:43AM +, jon@elytron.openbsd.amsterdam wrote: > Hello everyone. The following diff adds support for > switching the record.source with the macppc onyx > driver. I'm still unsure how to get mixerctl or > sndctl to set the volume, any hints appreciated. > > Drew som

Re: [Diff] Keyboard backlight support for late powerbooks, plus keybindings

2023-07-24 Thread Tobias Heider
On Sun, Jul 23, 2023 at 09:16:40PM +, jon@elytron.openbsd.amsterdam wrote: > If I'm not mistaken, all wskbd_{get,set}_backlight uses are in the > following drivers: acpicbkbd, acpithinkpad, asmc, pwmleds, and now > my implementation in adb. It is my impression that they are roughly > the same c

Make USB WiFi drivers more robust

2023-07-24 Thread Mark Kettenis
Hi All, I recently committed a change to the xhci(4) driver that fixed an issue with suspending a machine while it has USB devices plugged in. Unfortunately this diff had some unintended side effects. After looking at the way the USB stack works, I've come to the conclusion that it is best to try