apu2 and Atheros WLE600VX not working

2021-06-29 Thread George

Hi guys,

I am running OpenBSD 6.9 the machine recognizes an earlier version of

the same wireless PCIe card, namely the WLE200NX but for some,

unknown to me reason, the WLE600VX is not recognized. I checked the

athn driver support for the chip set which should be AR9280 and it list it.

When I boot I get in dmesg:

"Atheros QCA986x/988x" rev 0x00 at pci1 dev 0 function 0 not configured

pcidump -v:

1:0:0: Atheros QCA986x/988x
  0x: Vendor ID: 168c, Product ID: 003c
  0x0004: Command: 0002, Status: 0010
  0x0008: Class: 02 Network, Subclass: 80 Miscellaneous,
    Interface: 00, Revision: 00
  0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
    Cache Line Size: 10
  0x0010: BAR mem 64bit addr: 0xfe20/0x0020
  0x0018: BAR empty ()
  0x001c: BAR empty ()
  0x0020: BAR empty ()
  0x0024: BAR empty ()
  0x0028: Cardbus CIS: 
  0x002c: Subsystem Vendor ID:  Product ID: 
  0x0030: Expansion ROM Base Address: fe40
  0x0038: 
  0x003c: Interrupt Pin: 01 Line: 00 Min Gnt: 00 Max Lat: 00
  0x0040: Capability 0x01: Power Management
    State: D0

  0x0050: Capability 0x05: Message Signalled Interrupts (MSI)
    Enabled: no
  0x0070: Capability 0x10: PCI Express
    Max Payload Size: 256 / 256 bytes
    Max Read Request Size: 512 bytes
    Link Speed: 2.5 / 2.5 GT/s
    Link Width: x1 / x1

fw_update:

Path to firmware: http://firmware.openbsd.org/firmware/6.9/
Installed: vmm-firmware-1.11.0p3
Installed, extra: athn-firmware-1.1p4

Does anyone have this WLE600VX card working on OpenBSD?

Thanks in advance,

Cheers,

George



Source of the spin

2021-06-29 Thread Sven F.
Dear readers,

I probably did something silly again,
Could you help with a bit of knowledge around performance ?
My openbsd CPU (6.8) is spinning a lot :

 0.0%Int  53.1%Spn  25.8%Sys  19.6%Usr   1.4%Idle

 * Is this bad ?
 * What kind of basic operation ( like basic shell scripting ) could do that ? ?

Thank you,

-- 
--
-
Knowing is not enough; we must apply. Willing is not enough; we must do



Re: C style in OpenBSD

2021-06-29 Thread flint pyrite
you can use a formatter such use astyle or clang-format

On Tue, Jun 29, 2021 at 7:55 AM jslee  wrote:
>
> On Tue, 29 Jun 2021, at 15:18, Reuben ua Bríġ wrote:
> > any comments?
>
> http://man.openbsd.org/style.9
>
> Yes, two comments
>
> 1. Read more / write less
>
> 2. Sharp deviations from widely-accepted style, such as multiply-nested 
> ternaries, make it harder for others to play in your codebase, with zero 
> tangible gain
>
> I found your example horrifying.
>
> John
>



Re: Machine age and OpenBSD - Thinkpad R51e

2021-06-29 Thread Riccardo Mottola
Hi,


Thomas Vetere wrote:
> I was looking to get a laptop to run OpenBSD. The one I am looking at in
> particular is the Thinkpad R51e (2005). I like this particular model
> because it does not come with any extra hardware that OpenBSD does not
> support in the first place (bluetooth, camera, etc.) My main concern is the
> longevity that this model would have going forward. I already have a '94
> Thinkpad that cannot run the latest OpenBSD well because hardware support
> was gradually dropped during code cleanups, etc (i.e. newer versions of X11
> removed support for my ancient graphics chip because it just wasn't worth
> the time to maintain the code). Does anyone know, given the age of that
> model, how many years I might get out of it with OpenBSD and its packaged
> software before hardware support starts to drop? What is a good rule of
> thumb for selecting a machine to run OpenBSD with respect to its age?

hard to speak for "OpenBSD" in general, but seeing the trend, I'd say
you should be served well for a while.
I have several ThinkPad of that vintage (T4x, R5x) and they do run
various opensource OSs very well. The only hardware "support drop" I
have seen across the board is due to video drivers - but these have
either Intel or classic ATI which appears to continue to work quite well.
They are "the best crop" of 32bit Intel Machines.
I have an almost equivalent Toshiba too and recently Stefan fixed even
the internal WiFi card support for it!

Older ones like the classic 600 or T2x series, while having also clearer
memory limitations, have strange video cards and those are an issue now.
Also SSE2 is useful for browsing, video, etc, if needed.

If Intel 32bit support continues for a while, you ThinkPad will remain
useful. Of course don't expect super-heavy browsing! Browsers get more
andmore hungry... But on my R52 (with Linux though) I can use FireFox
and ArcticFox quite well with few tabs and watch full-screen movies too.
What do you want more from such a trusty thing? Enough for a quick web
look up. Then they are fantastic coding machines, remote terminals, etc
due to the nice 4:3 displays with relaxing look and good keyboards.
Infrared ports, fireware and nice stuff, some of these have RS232.

There is only one thing to "avoid as pest": nVidia cards. My experience
is that OpenBSD sucks with them, I got no vintage laptop working. NetBSD
not much better (although it has nouveau inside it didn't work for me).
FreeBSD was nice because it has binary drivers, but with the lastes X11
upgrades they are no longer compatible, so sicne you need also those
"legacy drivers" nVidia did not update, you end up with lots of nice bricks.

ThinkPad T61 might have (as mine has) those as an option and now I don't
know what to do, right now with it. Nice machine - except that it is a
little bit more "lenovo quality" than the R5x and T4x series. I could
switch from FreeBSD to OpenBSD but last time I tried no decent video
support, only the old nv divers which are antique (although theys till
run, but you have almost no acceleration and have other issues with
sleep, etc).

Then, nobody knows what the future will be... especially in software.

Riccardo



Re: Sharing desktop with Jitsi and pledge

2021-06-29 Thread Uwe Werler
Not with jitsi but with Nextcloud Talk I got it working in Chrome.

Am 29. Juni 2021 19:30:57 GMT+00:00 schrieb Jonathan Drews 
:
>Hi Folks:
>
>I am running OpenBSD 6.9 GENERIC.MP#4 amd64 and have Jitsi working
>well here on OpenBSD. The audio and video work fine. So do the typing
>of comments in Jitsi
>
>However when I attempt to share my desktop, through Jitsi, then
>Firefox crashes. I get this message in my dmesg output:
>
>firefox[17370]: pledge "", syscall 289
>
>It looks like pledge is stopping Jitsi, as it should. Any suggestions
>at to how I could share a presentation through OpenBSD? I've tried
>Zoom but it doesn't work as well as Jitsi.
>
>Kind regards,
>Jonathan

-- 
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.


Re: Sharing desktop with Jitsi and pledge

2021-06-29 Thread Jonathan Drews
On Tue, Jun 29, 2021 at 01:36:35PM -0600, Theo de Raadt wrote:
> Jonathan Drews  wrote:
> 
> > However when I attempt to share my desktop, through Jitsi, then
> > Firefox crashes. I get this message in my dmesg output:
> > 
> > firefox[17370]: pledge "", syscall 289
> > 
> > It looks like pledge is stopping Jitsi, as it should. Any suggestions
> > at to how I could share a presentation through OpenBSD? I've tried
> > Zoom but it doesn't work as well as Jitsi.
> 
> I have never found a happy way to handle this in pledge
> 
> /sys/sys/syscall.h:#define  SYS_shmget  289
> 
> There is only 1 application which uses it.


After a little thought, I came up with a solution. Email the
Libreoffice *.odp presentation to the attendees before the Jitsi
presentation. They can each look at it on their OpenBSD desktop. This
is for a *BSD user group meeting.

--
Kind regards,
Jonathan




Re: Sharing desktop with Jitsi and pledge

2021-06-29 Thread Theo de Raadt
Jonathan Drews  wrote:

> I am running OpenBSD 6.9 GENERIC.MP#4 amd64 and have Jitsi working
> well here on OpenBSD. The audio and video work fine. So do the typing
> of comments in Jitsi
> 
> However when I attempt to share my desktop, through Jitsi, then
> Firefox crashes. I get this message in my dmesg output:
> 
> firefox[17370]: pledge "", syscall 289
> 
> It looks like pledge is stopping Jitsi, as it should. Any suggestions
> at to how I could share a presentation through OpenBSD? I've tried
> Zoom but it doesn't work as well as Jitsi.

I have never found a happy way to handle this in pledge

/sys/sys/syscall.h:#define  SYS_shmget  289

There is only 1 application which uses it.



Sharing desktop with Jitsi and pledge

2021-06-29 Thread Jonathan Drews
Hi Folks:

I am running OpenBSD 6.9 GENERIC.MP#4 amd64 and have Jitsi working
well here on OpenBSD. The audio and video work fine. So do the typing
of comments in Jitsi

However when I attempt to share my desktop, through Jitsi, then
Firefox crashes. I get this message in my dmesg output:

firefox[17370]: pledge "", syscall 289

It looks like pledge is stopping Jitsi, as it should. Any suggestions
at to how I could share a presentation through OpenBSD? I've tried
Zoom but it doesn't work as well as Jitsi.

Kind regards,
Jonathan



supermicro 5019D-FTN4 server with AMD EPYC 3251 SoC Processor

2021-06-29 Thread EdaSky
Good day everyone

Does anyone use supermicro 5019D-FTN4 server with AMD EPYC 3251 SoC
Processor?

https://www.supermicro.com/Aplus/system/Embedded/AS-5019D-FTN4.cfm

Experience and dmesg would be perfect.

I did not find any mention in the archive

I'm looking for a new efficient router for 10" depth rack.

Thanks



Re: Machine age and OpenBSD - Thinkpad R51e

2021-06-29 Thread Stuart Henderson
On 2021-06-29, Riccardo Mottola  wrote:
> I have several ThinkPad of that vintage (T4x, R5x) and they do run
> various opensource OSs very well. The only hardware "support drop" I
> have seen across the board is due to video drivers - but these have
> either Intel or classic ATI which appears to continue to work quite well.
> They are "the best crop" of 32bit Intel Machines.

Chromium built but hasn't run on OpenBSD/i386 for several releases (but
nobody mentioned it until a few months before 6.9 - at which point it
was fixed, worked for a short while, but now it fails to build).

Firefox had been OK up until 6.9 but it no longer builds.

Iridium builds about 70% of the time at the moment on i386; but next
time it's updated to a newwr chromium base that will probably stop too.

You might eke out another release or two with an alternative browser
(maybe qutebrowser) but in general 32-bit x86 is a dead end for this
sort of software.




Re: C style in OpenBSD

2021-06-29 Thread jslee
On Tue, 29 Jun 2021, at 15:18, Reuben ua Bríġ wrote:
> any comments?

http://man.openbsd.org/style.9

Yes, two comments

1. Read more / write less

2. Sharp deviations from widely-accepted style, such as multiply-nested 
ternaries, make it harder for others to play in your codebase, with zero 
tangible gain

I found your example horrifying.

John



C style in OpenBSD

2021-06-29 Thread Reuben ua Bríġ
gday folks.

first i will say i am do not consider myself well versed in machine
languages.  i have use plain tex for a while, and i use the odd bit of
sh, sed, etc.  i recently read K because sh disgusts me.  i have seen
a bit of some programming languages, but nothing very recent, and i
cant say C or most any other language i have seen seem very sensible.
i am have an account on a timesharing system in the CS school, but
otherwise have nothing to do with them or any computer scholars.

i have seen much comment from openbsd developers about bad C style.
i would be thankful to see examples of `good' style, in case i wish to
write some C for OpenBSD.  (right now i am interested in fixing some
bugs in vi.)

also are there places for discussing such things, suitable for a newbie?

cheers,
reuben.

p.s.  one particular question i have is on the mandoc/main.c:

i found the following:

if (strcmp(progname, BINM_MAN) == 0)
search.argmode = ARG_NAME;
else if (strcmp(progname, BINM_APROPOS) == 0)
search.argmode = ARG_EXPR;
else if (strcmp(progname, BINM_WHATIS) == 0)
search.argmode = ARG_WORD;
else if (strncmp(progname, "help", 4) == 0)
search.argmode = ARG_NAME;
else
search.argmode = ARG_FILE;

much more readable as:

search.argmode =
strcmp(progname, BINM_MAN) == 0 ?   ARG_NAME :
strcmp(progname, BINM_APROPOS) == 0 ?   ARG_EXPR :
strcmp(progname, BINM_WHATIS) == 0 ?ARG_WORD :
strncmp(progname, "help", 4) == 0 ? ARG_NAME :
ARG_FILE;

a style i came up with in imitation of some disgusting haskell code.
any comments?

---
ANSI 'K'&'R' is really just 'B' in disguise.



snapshot miniroot69.img not bootable anymore

2021-06-29 Thread Mihai Popescu
Hello,

I was using miniroot69.img to create an USB bootable stick using the FAQ
method:
dd if=miniroot69.img of=/dev/rsd1c bs=1m

When I boot, using this USB stick i get this:
Using drive 0, partition 0

Nos-system disk
Press any key to reboot.

I tried another USB stick, same problem. Old images are able to boot.

Build date: 1624861129 - Mon Jun 28 06:18:49 UTC 2021 for the troublesome
image.

OpenBSD 6.9-current (GENERIC.MP) #95: Mon Jun 28 00:10:20 MDT 2021
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8029429760 (7657MB)
avail mem = 7770615808 (7410MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.6 @ 0xeebc0 (57 entries)
bios0: vendor LENOVO version "9VKT33AUS" date 09/11/2013
bios0: LENOVO 1990RZ2
acpi0 at bios0: ACPI 4.0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC TCPA MCFG SLIC MCFG HPET SSDT
acpi0: wakeup devices PCE2(S4) PCE3(S4) PCE4(S4) PCE5(S4) PCE6(S4) PCE7(S4)
PCE9(S4) PCEA(S4) PCEB(S4) PCEC(S4) SBAZ(S4) P0PC(S4) PE20(S4) PE21(S4)
PE22(S4) PE23(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Athlon(tm) II X2 B26 Processor, 3194.58 MHz, 10-06-03
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,NODEID,ITSC
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 16 4MB entries fully
associative
cpu0: DTLB 48 4KB entries fully associative, 48 4MB entries fully
associative
cpu0: AMD erratum 721 detected and fixed
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 199MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Athlon(tm) II X2 B26 Processor, 3192.02 MHz, 10-06-03
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,NODEID,ITSC
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB
64b/line 16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 16 4MB entries fully
associative
cpu1: DTLB 48 4KB entries fully associative, 48 4MB entries fully
associative
cpu1: AMD erratum 721 detected and fixed
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 3 pa 0xfec0, version 21, 24 pins
acpimcfg0 at acpi0
acpimcfg0: addr 0xe000, bus 0-255
acpimcfg1 at acpi0
acpimcfg1: addr 0xe000, bus 0-255
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (P0P1)
acpiprt2 at acpi0: bus -1 (PCE2)
acpiprt3 at acpi0: bus -1 (PCE3)
acpiprt4 at acpi0: bus -1 (PCE4)
acpiprt5 at acpi0: bus -1 (PCE5)
acpiprt6 at acpi0: bus -1 (PCE6)
acpiprt7 at acpi0: bus -1 (PCE7)
acpiprt8 at acpi0: bus -1 (PCE9)
acpiprt9 at acpi0: bus -1 (PCEA)
acpiprt10 at acpi0: bus 2 (P0PC)
acpiprt11 at acpi0: bus 3 (PE20)
acpiprt12 at acpi0: bus -1 (PE21)
acpiprt13 at acpi0: bus -1 (PE22)
acpiprt14 at acpi0: bus 4 (PE23)
acpipci0 at acpi0 PCI0
acpicmos0 at acpi0
acpibtn0 at acpi0: PWRB
acpicpu0 at acpi0: C1(@1 halt!), PSS
acpicpu1 at acpi0: C1(@1 halt!), PSS
cpu0: 3194 MHz: speeds: 3200 2500 1900 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "AMD RS880 Host" rev 0x00
ppb0 at pci0 dev 1 function 0 vendor "Lenovo", unknown product 0x9602 rev
0x00
pci1 at ppb0 bus 1
radeondrm0 at pci1 dev 5 function 0 "ATI Radeon HD 4250" rev 0x00
drm0 at radeondrm0
radeondrm0: apic 3 int 18
ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x00: apic 3 int 19,
AHCI 1.2
ahci0: port 0: 3.0Gb/s
ahci0: port 1: 1.5Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: 
naa.50014ee1018094dc
sd0: 305245MB, 512 bytes/sector, 625142448 sectors
cd0 at scsibus1 targ 1 lun 0:  removable
ohci0 at pci0 dev 18 function 0 "ATI SB700 USB" rev 0x00: apic 3 int 18,
version 1.0, legacy support
ehci0 at pci0 dev 18 function 2 "ATI SB700 USB2" rev 0x00: apic 3 int 17
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "ATI EHCI root hub" rev 2.00/1.00
addr 1
ohci1 at pci0 dev 19 function 0 "ATI SB700 USB" rev 0x00: apic 3 int 18,
version 1.0, legacy support
ehci1 at pci0 dev 19 function 2 "ATI SB700 USB2" rev 0x00: apic 3 int 17
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "ATI EHCI root hub" rev 2.00/1.00
addr 1
piixpm0 at pci0 dev 20 function 0 "ATI SBx00 SMBus" rev 0x42: SMI
iic0 at piixpm0
spdmem0 at iic0 addr 0x52: 4GB DDR3 SDRAM PC3-10600
spdmem1 at iic0 addr 0x53: 4GB DDR3 SDRAM PC3-10600
azalia0 at pci0 dev 20