Re: update xf86-video-amdgpu to latest git

2021-08-03 Thread rgc
@tech

this combo has been working great for me the past few days.
i have not encountered any sort of crash since doing a sysupgrade.

$ sysctl kern.version
kern.version=OpenBSD 6.9-current (GENERIC.MP) #158: Sat Jul 31 11:00:00 MDT 2021
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

$ fw_update -i
Installed: vmm-firmware-1.14.0 amdgpu-firmware-20210716

rgc

On Wed, Jul 21, 2021 at 05:36:08AM +0900, rgc wrote:
> @tech
> 
> i've been using this patch for a week
> i've experience 4 hangs ... X hangs ... network is alive so i can do a safe 
> reboot
> via ssh. last hang occured just 5 mins ago while watching some YouTube videos.
> 
> 2 behaviours:
> - video/screen freezes indifinitely, which requires me to login via ssh and 
> reboot
> - video/screen freezes and X restarts, allowing me to just re-login
> 
> 
> this laptop acts mostly like a server. it gets rebooted only when it hangs, 
> or if
> there is a new snapshot.
> 
> rgc
> 
> On Sat, Jul 10, 2021 at 08:04:54AM +0900, rgc wrote:
> > On Thu, Jul 08, 2021 at 05:29:01PM +1000, Jonathan Gray wrote:
> > > The latest xf86-video-amdgpu release was in 2019.
> > > 
> > > xf86-video-amdgpu-19.1.0..origin/master
> > 
> > 8>< snipped
> > 
> > just finished rebuilding xenocara
> > build fine
> > booted fine
> > none of my previous issues (see links below) happening yet.
> > 
> > -current:
> > 
> > kern.version=OpenBSD 6.9-current (GENERIC.MP) #120: Thu Jul  8 23:45:06 MDT 
> > 2021
> > dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> > 
> > amdgpu0: PICASSO 10 CU rev 0x01
> > 
> > 
> > this were my system issues/reports:
> > https://marc.info/?l=openbsd-misc=161131537616993=2
> > https://marc.info/?l=openbsd-misc=161736536311231=2
> > 
> > since my last update i have updated the BIOS FW (3.06)
> > 
> > rgc
> > 
> 



Re: update xf86-video-amdgpu to latest git

2021-07-20 Thread rgc
@tech

i've been using this patch for a week
i've experience 4 hangs ... X hangs ... network is alive so i can do a safe 
reboot
via ssh. last hang occured just 5 mins ago while watching some YouTube videos.

2 behaviours:
- video/screen freezes indifinitely, which requires me to login via ssh and 
reboot
- video/screen freezes and X restarts, allowing me to just re-login


this laptop acts mostly like a server. it gets rebooted only when it hangs, or 
if
there is a new snapshot.

rgc

On Sat, Jul 10, 2021 at 08:04:54AM +0900, rgc wrote:
> On Thu, Jul 08, 2021 at 05:29:01PM +1000, Jonathan Gray wrote:
> > The latest xf86-video-amdgpu release was in 2019.
> > 
> > xf86-video-amdgpu-19.1.0..origin/master
> 
> 8>< snipped
> 
> just finished rebuilding xenocara
> build fine
> booted fine
> none of my previous issues (see links below) happening yet.
> 
> -current:
> 
> kern.version=OpenBSD 6.9-current (GENERIC.MP) #120: Thu Jul  8 23:45:06 MDT 
> 2021
> dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> 
> amdgpu0: PICASSO 10 CU rev 0x01
> 
> 
> this were my system issues/reports:
> https://marc.info/?l=openbsd-misc=161131537616993=2
> https://marc.info/?l=openbsd-misc=161736536311231=2
> 
> since my last update i have updated the BIOS FW (3.06)
> 
> rgc
> 



Re: update xf86-video-amdgpu to latest git

2021-07-09 Thread rgc
On Thu, Jul 08, 2021 at 05:29:01PM +1000, Jonathan Gray wrote:
> The latest xf86-video-amdgpu release was in 2019.
> 
> xf86-video-amdgpu-19.1.0..origin/master

8>< snipped

just finished rebuilding xenocara
build fine
booted fine
none of my previous issues (see links below) happening yet.

-current:

kern.version=OpenBSD 6.9-current (GENERIC.MP) #120: Thu Jul  8 23:45:06 MDT 2021
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP

amdgpu0: PICASSO 10 CU rev 0x01


this were my system issues/reports:
https://marc.info/?l=openbsd-misc=161131537616993=2
https://marc.info/?l=openbsd-misc=161736536311231=2

since my last update i have updated the BIOS FW (3.06)

rgc



[PATCH] www/macppc.html: update the sample usage of wsconsctl

2020-05-06 Thread rgc
tech@

www/macppc.html has this sample usage for wsconsctl:

Backlight on lcd devices can be controlled through the brightness control keys 
on ADB (laptop) keyboards, or through'wsconsctl -w display.brightness=xx' (0 - 
100) and 'wsconsctl -w display.backlight=xx' (0 or 100)

current wsconsctl does not have a "-w" option. remove the option from
the sample command.




Index: www/macppc.html
===
RCS file: /home/cvs/www/macppc.html,v
retrieving revision 1.271
diff -u -p -r1.271 macppc.html
--- www/macppc.html 3 May 2020 16:09:46 -   1.271
+++ www/macppc.html 6 May 2020 09:06:57 -
@@ -390,8 +390,8 @@ adapters supported by the https://man.openbsd.org/macppc/pwdog.4;>pwdog)



Re: macppc kernel and clang

2020-03-15 Thread rgc
On Sat, Mar 14, 2020 at 11:33:37PM -0400, George Koehler wrote:
> After the diff, I put my dmesg; my iMac G3 isn't GENERIC.MP and
> doesn't have radeondrm.  --George
> 

i've been using your ppc_mftb() patch on both clang ang gcc compiled
kernel ... for SP though and there seems to be no issues

attached is Powerbook G4 w/ radeondrm ... using the patches and the
steps you provided (thus this kernel is not -Oz)


[ using 1137228 bytes of bsd ELF symbol table ]
console out [ATY,Jasper_A] console in [keyboard], using USB
using parent ATY,JasperParent:: memaddr b800, size 800 : consaddr 
b8008000 : ioaddr b002, size 2: width 1440 linebytes 1536 height 960 
depth 8
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2020 OpenBSD. All rights reserved.  https://www.OpenBSD.org

OpenBSD 6.6-current (GENERIC) #27: Sun Mar 15 16:50:21 JST 2020

r...@apbg4.my.domain:/home/rgc/work/clang-kern/src/sys/arch/macppc/compile/GENERIC
real mem = 1073741824 (1024MB)
avail mem = 1024315392 (976MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root: model PowerBook5,8
cpu0 at mainbus0: 7447A (Revision 0x105): 1666 MHz: 512KB L2 cache
mem0 at mainbus0
spdmem0 at mem0: 1GB DDR2 SDRAM non-parity PC2-5300CL5 SO-DIMM
memc0 at mainbus0: uni-n rev 0xd9
"hw-clock" at memc0 not configured
kiic0 at memc0 offset 0xf8001000
iic0 at kiic0
adt0 at iic0 addr 0x2e: adt7467 rev 0x71
lmtemp0 at iic0 addr 0x49: ds1775
mpcpcibr0 at mainbus0 pci: uni-north
pci0 at mpcpcibr0 bus 0
pchb0 at pci0 dev 11 function 0 "Apple Intrepid 2 AGP" rev 0x00
agp at pchb0 not configured
radeondrm0 at pci0 dev 16 function 0 "ATI Radeon Mobility M10" rev 0x00
drm0 at radeondrm0
radeondrm0: irq 48
mpcpcibr1 at mainbus0 pci: uni-north
pci1 at mpcpcibr1 bus 0
macobio0 at pci1 dev 23 function 0 "Apple Intrepid" rev 0x00
openpic0 at macobio0 offset 0x4: version 0x4614 feature 3f0302 LE
macgpio0 at macobio0 offset 0x50
"modem-reset" at macgpio0 offset 0x1d not configured
"accelerometer-1" at macgpio0 offset 0x13 not configured
"accelerometer-2" at macgpio0 offset 0x14 not configured
"amp-mute" at macgpio0 offset 0x20 not configured
"dig-hw-reset" at macgpio0 offset 0x26 not configured
"codec-error-irq" at macgpio0 offset 0x18 not configured
"combo-in-sense" at macgpio0 offset 0xb not configured
"combo-out-sense" at macgpio0 offset 0x12 not configured
"codec-input-data-mux" at macgpio0 offset 0x23 not configured
"codec-clock-mux" at macgpio0 offset 0x29 not configured
"hw-reset" at macgpio0 offset 0x1a not configured
"linein-detect" at macgpio0 offset 0xc not configured
"lineout-detect" at macgpio0 offset 0x17 not configured
"lineout-mute" at macgpio0 offset 0x1f not configured
dfs0 at macgpio0 offset 0x1b: speeds: 1666, 833 MHz
macgpio1 at macgpio0 offset 0x9: irq 47
"programmer-switch" at macgpio0 offset 0x11 not configured
"escc-legacy" at macobio0 offset 0x12000 not configured
zs0 at macobio0 offset 0x13000: irq 22,23
zstty0 at zs0 channel 0
zstty1 at zs0 channel 1
onyx0 at macobio0 offset 0x0: irq 30,1,2
"timer" at macobio0 offset 0x15000 not configured
adb0 at macobio0 offset 0x16000
apm0 at adb0: battery flags 0x7, 16% charged
piic0 at adb0
iic1 at piic0
"backlight" at macobio0 offset 0xf300 not configured
kiic1 at macobio0 offset 0x18000
iic2 at kiic1
"pcm3052" at iic2 addr 0x46 not configured
"cs8416" at iic2 addr 0x10 not configured
audio0 at onyx0
bwi0 at pci1 dev 17 function 0 "Broadcom BCM4318" rev 0x02: irq 52, address 
00:14:51:7e:3b:4c
cbb0 at pci1 dev 20 function 0 "TI PCI1510 CardBus" rev 0x00: irq 53
ohci0 at pci1 dev 21 function 0 "NEC USB" rev 0x43: irq 54, version 1.0
ohci1 at pci1 dev 21 function 1 "NEC USB" rev 0x43: irq 54, version 1.0
ehci0 at pci1 dev 21 function 2 "NEC USB" rev 0x04: irq 54
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "NEC EHCI root hub" rev 2.00/1.00 
addr 1
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 1 device 0 cacheline 0x8, lattimer 0x20
pcmcia0 at cardslot0
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 configuration 1 interface 0 "NEC OHCI root hub" rev 1.00/1.00 
addr 1
usb2 at ohci1: USB revision 1.0
uhub2 at usb2 configuration 1 interface 0 "NEC OHCI root hub" rev 1.00/1.00 
addr 1
mpcpcibr2 at mainbus0 pci: uni-north
pci2 at mpcpcibr2 bus 0
kauaiata0 at pci2 dev 13 function 0 "Apple Intrepid 2 ATA" rev 0x00
wdc0 at kauaiata0 irq 39: DMA
wd0 at wdc0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA48, 244198MB, 500118192 sectors
atapiscsi0 at wdc0 channel 0 drive 1
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lu