Re: Apply screen rotation quirks to amdgpu

2023-04-25 Thread Jonathan Gray
On Tue, Apr 25, 2023 at 09:28:58AM -0600, bent...@openbsd.org wrote: > Hi, > > The orientation quirks applied at virtual console initialization in > inteldrm_attachhook() are not applied at the corresponding place in > amdgpu. Adding them to amdgpu causes the Steam Deck console to display >

Re: Add parent to nvgre in ifconfig.8

2023-04-25 Thread David Gwynne
ok > On 26 Apr 2023, at 11:10, Masato Asou wrote: > > Tne interface of nvgre(4) has SIOC[SGD]IFPARENT as below from man nvgre: > > nvgre interfaces support the following ioctl(2) calls: > >SIOCSIFPARENT struct if_parent * >Configure which interface will be joined

Re: DIOCGETRULE is slow for large rulesets (2/3)

2023-04-25 Thread David Gwynne
On Wed, Apr 26, 2023 at 12:39:00AM +0200, Alexandr Nedvedicky wrote: > Hello, > > This is the second diff. It introduces a transaction (pf_trans). > It's more or less diff with dead code. > > It's still worth to note those two chunks in this diff: > > @@ -1142,10 +1172,7 @@ pfioctl(dev_t dev,

Re: DIOCGETRULE is slow for large rulesets (1/3)

2023-04-25 Thread David Gwynne
> On 26 Apr 2023, at 08:25, Alexandr Nedvedicky wrote: > > Hello, > > below is diff which renames ruleset member `ticket` to `version`. > the reason for this is to keep things clean. The word `ticket` > will be used to identify transaction, while newly introduced `version` > identifies

Add parent to nvgre in ifconfig.8

2023-04-25 Thread Masato Asou
Tne interface of nvgre(4) has SIOC[SGD]IFPARENT as below from man nvgre: nvgre interfaces support the following ioctl(2) calls: SIOCSIFPARENT struct if_parent * Configure which interface will be joined to the multicast group specified by the tunnel

DIOCGETRULE is slow for large rulesets (3/3)

2023-04-25 Thread Alexandr Nedvedicky
Hello, this is 3rd of three diffs to improve DIOCGETRULE ioctl operation. the summary of changes done here is as follows: - add new members to pf_trans structure so it can hold data for DIOCGETRULE operation - DIOCGETRULES opens transaction and returns ticket/transaction id

DIOCGETRULE is slow for large rulesets (2/3)

2023-04-25 Thread Alexandr Nedvedicky
Hello, This is the second diff. It introduces a transaction (pf_trans). It's more or less diff with dead code. It's still worth to note those two chunks in this diff: @@ -1142,10 +1172,7 @@ pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p) return

DIOCGETRULE is slow for large rulesets (1/3)

2023-04-25 Thread Alexandr Nedvedicky
Hello, below is diff which renames ruleset member `ticket` to `version`. the reason for this is to keep things clean. The word `ticket` will be used to identify transaction, while newly introduced `version` identifies change of particular pf object (ruleset). diff below is simple find/replace.

DIOCGETRULE is slow for large rulesets (complete diff)

2023-04-25 Thread Alexandr Nedvedicky
Hello, below is a complete diff which makes DIOCGETRULE bit more sane. This is the complete change I'd like to commit. It is also more convenient for people who want to test the diff. when running 'pfctl -sr' to show rules pfctl performs several ioctl(2) calls. The first call is DIOCGETRULES to

Re: arpresolve reduce kernel lock

2023-04-25 Thread Vitaliy Makkoveev
On Tue, Apr 25, 2023 at 11:44:34AM +0200, Alexander Bluhm wrote: > Hi, > > Mutex arp_mtx protects the llinfo_arp la_... fields. So kernel > lock is only needed for changing the route rt_flags. > > Of course there is a race between checking and setting rt_flags. > But the other checks of the

Re: mg.1: mark up commands

2023-04-25 Thread Omar Polo
On 2023/04/25 21:01:21 +0100, Jason McIntyre wrote: > On Tue, Apr 25, 2023 at 03:58:08PM +0200, Omar Polo wrote: > > The commands are sometimes typed as-is, sometimes in single quotes > > 'like-this' and sometime inside Dq. I'd prefer to consistently use Ic > > for commands (which I believe is

Re: mg.1: mark up commands

2023-04-25 Thread Jason McIntyre
On Tue, Apr 25, 2023 at 03:58:08PM +0200, Omar Polo wrote: > The commands are sometimes typed as-is, sometimes in single quotes > 'like-this' and sometime inside Dq. I'd prefer to consistently use Ic > for commands (which I believe is the appropriate mandoc macro). As a > by-product, this allows

Re: arpresolve reduce kernel lock

2023-04-25 Thread Klemens Nanni
On Tue, Apr 25, 2023 at 04:15:49PM +, Klemens Nanni wrote: > A clearer version of this diff would use two new bools `expired' and `reject' > rather than a ternary `reject', but that can be polished and retested later. Or simpler even, use new `expired' and existing `refresh'. Refresh and

Re: arpresolve reduce kernel lock

2023-04-25 Thread Klemens Nanni
On Tue, Apr 25, 2023 at 11:44:34AM +0200, Alexander Bluhm wrote: > Hi, > > Mutex arp_mtx protects the llinfo_arp la_... fields. So kernel > lock is only needed for changing the route rt_flags. > > Of course there is a race between checking and setting rt_flags. > But the other checks of the

Apply screen rotation quirks to amdgpu

2023-04-25 Thread bentley
Hi, The orientation quirks applied at virtual console initialization in inteldrm_attachhook() are not applied at the corresponding place in amdgpu. Adding them to amdgpu causes the Steam Deck console to display upright instead of on its side. ok? Index: sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c

vmd(8): multi-process device emulation (plz test)

2023-04-25 Thread Dave Voutila
tech@: The below diff splits out virtio device emulation for virtio block and network devices into separate fork+exec'd & pledge(2)'d subprocesses. In order of priority, this diff: 1. Isolates common exploit targets (e.g. emulated network devices) from the rest of the vm process, tightening

Re: riscv64 RAMDISK: enable softraid

2023-04-25 Thread Mike Larkin
On Tue, Apr 25, 2023 at 01:12:24PM +, Klemens Nanni wrote: > (Thought I already committed this months ago, noticed now looking into > bootloaders again...) > > GENERIC, efiboot and installboot(8) all have softraid support already, > softraid(4) documents boot support for riscv64, > "just" the

mg.1: mark up commands

2023-04-25 Thread Omar Polo
The commands are sometimes typed as-is, sometimes in single quotes 'like-this' and sometime inside Dq. I'd prefer to consistently use Ic for commands (which I believe is the appropriate mandoc macro). As a by-product, this allows to jump via :t to the description, which is very handy. I haven't

riscv64 RAMDISK: enable softraid

2023-04-25 Thread Klemens Nanni
(Thought I already committed this months ago, noticed now looking into bootloaders again...) GENERIC, efiboot and installboot(8) all have softraid support already, softraid(4) documents boot support for riscv64, "just" the ramdisk kernel lacks it. Still boots fine on the SiFive HiFive Unmatched

Re: OpenBSD 7.2 on Oracle Cloud

2023-04-25 Thread Aaron Mason
On Mon, Apr 24, 2023 at 3:47 PM Aaron Mason wrote: > > On Fri, Apr 21, 2023 at 2:50 PM Aaron Mason wrote: > > > > On Fri, Apr 21, 2023 at 1:39 PM Aaron Mason > > wrote: > > > > > > On Fri, Apr 7, 2023 at 3:25 AM Antun Matanović > > > wrote: > > > > > > > > On Thu, 6 Apr 2023 at 12:55, Fabio

Re: em(4) multiqueue

2023-04-25 Thread Jan Klemkow
On Fri, Apr 14, 2023 at 10:26:14AM +0800, Kevin Lo wrote: > On Thu, Apr 13, 2023 at 01:30:36PM -0500, Brian Conway wrote: > > Reviving this thread, apologies for discontinuity in mail readers: > > https://marc.info/?t=16564219358 > > > > After rebasing on 7.3, my results have mirrored

arpresolve reduce kernel lock

2023-04-25 Thread Alexander Bluhm
Hi, Mutex arp_mtx protects the llinfo_arp la_... fields. So kernel lock is only needed for changing the route rt_flags. Of course there is a race between checking and setting rt_flags. But the other checks of the RTF_REJECT flags were without kernel lock before. This does not cause trouble,

Re: Recognize Kingston KC3000 NVME SSD

2023-04-25 Thread Jonathan Gray
thanks, committed On Sat, Apr 22, 2023 at 05:09:28PM +0200, Paul de Weerd wrote: > ping > > Is this worth it? Rebased diff at the bottom for convenience > > On Sun, Mar 19, 2023 at 05:12:18PM +0100, Paul de Weerd wrote: > | I put a Kingston KC3000 NVME SSD[1] in my new machine. This diff > |