use labels in the device tree to init interface descriptions

2023-04-06 Thread David Gwynne
ethernet interfaces in device trees can have a "label" property which is generally used (when it is used) to identify which connector it is on the case or something like that. eg, eth2 in the turris omnia device tree has 'label = "wan"' on the mvneta interface. ive been using labels in the dts rec

Re: ahci at fdt where the firmware doesnt help

2023-04-06 Thread Peter Stuge
David Gwynne wrote: > the boot loaders arent quite there yet, so i tried to make the driver > better. .. > so i see this now: > > ahci0 at mainbus0: AHCI 1.3 > ahci0: port 0: 3.0Gb/s > scsibus0 at ahci0: 32 targets > sd0 at scsibus0 targ 0 lun 0: naa.5002538250006f47 > sd0: 95396MB, 512 bytes/sec

ahci at fdt where the firmware doesnt help

2023-04-06 Thread David Gwynne
the banana pi r2 pro has a usable sata port, but ahci wasnt finding anything attached to it. the fdt glue looked like it assumed the boot loader did a lot of work to get things going. however, i havent figured out how to configure u-boot to do ahci, and quartz_uefi doesn't have ahci/sata working y

arp input remove kernel lock

2023-04-06 Thread Alexander Bluhm
Hi, When removing these kernel locks from the ARP input path, the machine runs stable in my tests. Caller if_netisr() grabs the exclusive netlock and that should be sufficent for in_arpinput() and arpcache(). To stress the ARP resolver I run arp -nd ... in a loop. Hrvoje: Could you run this dif

Re: vmm firmware: omit datetime and hostname from version string

2023-04-06 Thread Dave Voutila
Stuart Henderson writes: > On 2023/04/06 15:49, Klemens Nanni wrote: >> bios0: vendor SeaBIOS version >> "1.14.0-20230330_133212-symphytum.spacehopper.orgp2-OpenBSD-vmm" date >> 01/01/2011 >> >> in dmesg is a weird concat of port version, datetime, hostname, >> port revision, uname(?) and a

Re: vmm firmware: omit datetime and hostname from version string

2023-04-06 Thread Stuart Henderson
On 2023/04/06 15:49, Klemens Nanni wrote: > bios0: vendor SeaBIOS version > "1.14.0-20230330_133212-symphytum.spacehopper.orgp2-OpenBSD-vmm" date > 01/01/2011 > > in dmesg is a weird concat of port version, datetime, hostname, > port revision, uname(?) and a fixed string(?) in that order. oh y

vmm firmware: omit datetime and hostname from version string

2023-04-06 Thread Klemens Nanni
bios0: vendor SeaBIOS version "1.14.0-20230330_133212-symphytum.spacehopper.orgp2-OpenBSD-vmm" date 01/01/2011 in dmesg is a weird concat of port version, datetime, hostname, port revision, uname(?) and a fixed string(?) in that order. I don't fully understand their messy buildversion.py script

Re: [installer] default answer to "Is the disk partition already mounted?"

2023-04-06 Thread Klemens Nanni
06.04.2023 14:48, Christian Weisgerber пишет: > We need to consider > (1) mode: install, upgrade > (2) medium: installXX, other > > installXX.img and .iso carry the sets, and people who choose this > medium typically want to use the sets from the medium. Other media > need to access external sets

Re: [installer] default answer to "Is the disk partition already mounted?"

2023-04-06 Thread Christian Weisgerber
On 2023-04-05, Klemens Nanni wrote: >> In conversation with Klemens (kn@) new iteration has been born, it >> follows to what Omar (op@) has suggested - we're not trying to change >> the default answer for all cases, since no one complained for all these >> years, but just flip default for install

Re: pass M_CANFAIL to malloc() which use M_WAITOK but are tested for failure

2023-04-06 Thread Alexander Bluhm
On Thu, Apr 06, 2023 at 02:58:56PM +0800, Kevin Lo wrote: > The diff below adds M_CANFAIL to the flag passed to malloc() since we are able > to fail gracefully. I would not call a return ENOMEM a gracefull fail. Usually if we can wait with M_WAITOK and everyting is fine afterwards, that's a good