OpenBSD Mentorship

2023-05-18 Thread Katherine Mcmillan
Hello all,

There was a BOF for new project members being given at BSDCan tonight that I 
couldn't make, but I still think that I could benefit from mentorship on the 
project.  I'm wondering if anyone would be open to providing this? One thing 
that caught my attention was working on OpenBSD storage, ex. ISCSI.

If you are experienced in this area, and open to mentoring, please contact me 
privately.  Please seriously consider this if you are a "storage hacker" 
willing to offer mentorship!

Thank you,
Katie


Firefox and DPMS

2023-05-18 Thread Ricky Cintron
When watching fullscreen videos in Firefox on my OpenBSD desktop, 
Firefox
doesn't inhibit DPMS, allowing the display to turn off. This isn't new 
for me,
since I noticed the same thing back in 2018. At that time, I tested 
Chromium as

well, and it performed as expected by keeping my display on.

I've looked into this a couple of times since then, and at this point 
I'm sure
it has nothing to do with OpenBSD. Instead, it seems to be due to the 
way
Firefox attempts to inhibit DPMS and/or the screensaver, which 
apparently
doesn't work with a simple window manager setup like mine. I assume it 
works

fine under XFCE and Gnome.

I've worked around this issue by creating keybindings to disable and 
enable DPMS
manually when needed (using xset), so this isn't a high-priority problem 
for me.
However, I was hoping to see if others have experienced the same 
behavior, if
anyone can confirm my assumption about WMs/DEs, and if there's a better 
way to

deal with it.



High sys/spin CPU and hangs on ThinkPad T14 (amdgpu)

2023-05-18 Thread Mark Kane
I've been running snapshots on my Ryzen ThinkPad T14 for about 1.5 years 
and everything has been working great except for some occasional hangs 
which seem to be getting more frequent. I've heard about some amdgpu 
issues upstream and am not sure if this is related to that or something 
different.


- The same graphical programs are always running: i3, Firefox (usually 
with at least 1 YouTube video tab playing, possibly more open in the 
background but not actively playing), and Remmina with one RDP session.
- When the issue starts the mouse can still be moved around but it gets 
more sluggish as time goes on. Within 1-2 minutes the mouse usually 
stops responding and there is no keyboard response. The longer it sits 
in this state the less chance it can be recovered without a power cycle.
- In the past there was no high CPU usage but there were messages like 
this in dmesg: [drm] *ERROR* ring sdma0 timeout, signaled seq=68607, 
emitted seq=68607
- On recent snaps (noticed after upgrading from Mar 25 to May 3) the 
effect seems to be almost 100% CPU usage (~40% sys/~60% spin) making the 
whole system sluggish. I haven't seen the drm error recently.
- If caught fast enough sometimes I can SSH in from another machine and 
`pkill firefox` which will take some minutes to complete and eventually 
things return to normal. Other times pkilling firefox ends up with 
several zombie processes and does not recover without a power cycle.
- Sitting in the bad state long enough (a few minutes) will cause the 
system to hang, stop responding to ping, stop responding to SSH.
- Opening a new Firefox window, trying to play another YouTube video, or 
loading a heavy javascript site can trigger the issue sometimes but not 
always. Sometimes things are fine for a few days, other times I'll have 
to power cycle multiple times per day.
- Nothing interesting in /var/log/messages or /var/log/Xorg* at the 
issue times


Below is some info gathered via SSH during the issue. Is there anything 
else that would be helpful to collect to narrow this down?


Thanks in advance for any pointers,

-Mark

dmesg:
OpenBSD 7.3-current (GENERIC.MP) #1184: Tue May 16 15:53:34 MDT 2023
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 7711297536 (7354MB)
avail mem = 7457939456 (7112MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.2 @ 0xbf71 (67 entries)
bios0: vendor LENOVO version "R1BET73W(1.42 )" date 12/09/2022
bios0: LENOVO 20UD000HUS
efi0 at bios0: UEFI 2.7
efi0: Lenovo rev 0x1360
acpi0 at bios0: ACPI 6.3
acpi0: sleep states S0 S4 S5
acpi0: tables DSDT FACP SSDT SSDT SSDT IVRS SSDT SSDT TPM2 SSDT MSDM 
BATB HPET APIC MCFG SBST WSMT VFCT SSDT CRAT CDIT FPDT SSDT SSDT SSDT 
SSDT SSDT SSDT SSDT SSDT UEFI SSDT SSDT BGRT
acpi0: wakeup devices GPP0(S0) RESA(S3) GPP5(S0) GPP6(S0) GP17(S0) 
LID_(S4) SLPB(S3)

acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpihpet0 at acpi0: 14318180 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Ryzen 5 PRO 4650U with Radeon Graphics, 2100.00 MHz, 17-60-01
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,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,PQM,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA,UMIP,IBPB,IBRS,STIBP,SSBD,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu0: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 512KB 
64b/line 8-way L2 cache, 4MB 64b/line 16-way L3 cache

cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 100MHz
cpu0: mwait min=64, max=64, C-substates=1.1, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD Ryzen 5 PRO 4650U with Radeon Graphics, 2100.00 MHz, 17-60-01
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,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,PQM,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA,UMIP,IBPB,IBRS,STIBP,SSBD,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu1: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 512KB 
64b/line 8-way L2 cache, 4MB 64b/line 16-way L3 cache

cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: AMD Ryzen 5 PRO 4650U with Radeon Graphics, 2100.00 MHz, 17-60-01
cpu2: 

Re: Installing OpenBSD on MacbookPro 8,1 (Late/Early 2011)

2023-05-18 Thread Anders Andersson
On Thu, May 18, 2023 at 10:05 AM Daniele B.  wrote:
>
> Don't think your platform is supported:
> https://www.openbsd.org/plat.html
> https://www.openbsd.org/macppc.html
>
> otherwise let us know, I will install it on mine too ;d)

Top-posting is messy but I'll try it this way!

OPs states that his macbook is Intel i5, so macppc is irrelevant. This is amd64.



> May 18, 2023 08:39:07 yellowcutterpillow :
>
> > I wanted to install OpenBSD on my Macbook Pro 8,1 (Early/Late 2011)
> > but seem to fail. When I boot up install73.img or miniroot73.img, they
> > boot up, but when I actually boot up the ramdisk, bsd or bsd.rd, they
> > stuck up at a message about aicp0 being remapped or something. I would
> > try to diagnose it but I can't since when I boot with -c flag, the
> > cursor glitches, or the keyboard stops working, because I can't type
> > anything.
> >
> > I've set up a QEMU emulation of OpenBSD on my Linux box and it works
> > fine. The reason I did so is because I've sort read that I can configure
> > the kernel using it though I lost the reference, so now I don't have any
> > idea on how I can even turn on the ``verbose`` flag in the kernel. I
> > can't also access ``dmesg,`` so if anyone has any idea, I'd be more than
> > happy for your help. Some info, MBP 8,1 is Intel i5, QUAD CORE, and
> > UEFI. No BIOS options, not sure if it supports CMS.



Re: Installing OpenBSD on MacbookPro 8,1 (Late/Early 2011)

2023-05-18 Thread Daniele B.
Don't think your platform is supported:
https://www.openbsd.org/plat.html
https://www.openbsd.org/macppc.html

otherwise let us know, I will install it on mine too ;d)


-- Daniele Bonini


May 18, 2023 08:39:07 yellowcutterpillow :

> Hello!
> 
> I wanted to install OpenBSD on my Macbook Pro 8,1 (Early/Late 2011)
> but seem to fail. When I boot up install73.img or miniroot73.img, they
> boot up, but when I actually boot up the ramdisk, bsd or bsd.rd, they
> stuck up at a message about aicp0 being remapped or something. I would
> try to diagnose it but I can't since when I boot with -c flag, the
> cursor glitches, or the keyboard stops working, because I can't type
> anything.
> 
> I've set up a QEMU emulation of OpenBSD on my Linux box and it works
> fine. The reason I did so is because I've sort read that I can configure
> the kernel using it though I lost the reference, so now I don't have any
> idea on how I can even turn on the ``verbose`` flag in the kernel. I
> can't also access ``dmesg,`` so if anyone has any idea, I'd be more than
> happy for your help. Some info, MBP 8,1 is Intel i5, QUAD CORE, and
> UEFI. No BIOS options, not sure if it supports CMS.
> 
> Thank you very much!



Installing OpenBSD on MacbookPro 8,1 (Late/Early 2011)

2023-05-18 Thread yellowcutterpillow
Hello!

I wanted to install OpenBSD on my Macbook Pro 8,1 (Early/Late 2011)
but seem to fail. When I boot up install73.img or miniroot73.img, they
boot up, but when I actually boot up the ramdisk, bsd or bsd.rd, they
stuck up at a message about aicp0 being remapped or something. I would
try to diagnose it but I can't since when I boot with -c flag, the
cursor glitches, or the keyboard stops working, because I can't type
anything.

I've set up a QEMU emulation of OpenBSD on my Linux box and it works
fine. The reason I did so is because I've sort read that I can configure
the kernel using it though I lost the reference, so now I don't have any
idea on how I can even turn on the ``verbose`` flag in the kernel. I
can't also access ``dmesg,`` so if anyone has any idea, I'd be more than
happy for your help. Some info, MBP 8,1 is Intel i5, QUAD CORE, and
UEFI. No BIOS options, not sure if it supports CMS.

Thank you very much!