Re: firefox freezes X on AMD Ryzen running 6.8

2020-10-18 Thread Marco Scholz
On Sun, Oct 18, 2020 at 02:49:30PM +1100, Jonathan Gray wrote:
> There are changes coming to the memory handling in drm.
[...]
> I've asked for the drm_mm diff to be pulled from snapshots for now.

Thank you for the information and your help!  



Re: firefox freezes X on AMD Ryzen running 6.8

2020-10-17 Thread Jonathan Gray
On Sat, Oct 17, 2020 at 09:51:49PM +0200, Marco Scholz wrote:
> I am running 6.8 #116 amd64 on a Thinkpad T495s (AMD Ryzen). Firefox
> keeps freezing X. No problem with 6.7.
> 
> Does anybody have this problem too?

There are changes coming to the memory handling in drm.
The drm_mm changes in snapshots change how memory regions are allocated
and change when the no-retry page fault situation is hit.

Another pending diff not currently in snapshots changes the ttm fault
handler.

I've asked for the drm_mm diff to be pulled from snapshots for now.

> 
> /var/log/messages:
> 
> Oct 17 12:53:24 sirius /bsd: drm:pid90646:gmc_v9_0_process_interrupt
> *ERROR* in page starting at address 0x800103b0 from client 27
> Oct 17 12:53:24 sirius /bsd: drm:pid90646:gmc_v9_0_process_interrupt
> *ERROR* VM_L2_PROTECTION_FAULT_STATUS:0x
> Oct 17 12:53:24 sirius /bsd: drm:pid90646:gmc_v9_0_process_interrupt
> *ERROR* MORE_FAULTS: 0x0
> Oct 17 12:53:24 sirius /bsd: drm:pid90646:gmc_v9_0_process_interrupt
> *ERROR* WALKER_ERROR: 0x0
> Oct 17 12:53:24 sirius /bsd: drm:pid90646:gmc_v9_0_process_interrupt
> *ERROR* PERMISSION_FAULTS: 0x0
> Oct 17 12:53:24 sirius /bsd: drm:pid90646:gmc_v9_0_process_interrupt
> *ERROR* MAPPING_ERROR: 0x0
> Oct 17 12:53:24 sirius /bsd: drm:pid90646:gmc_v9_0_process_interrupt
> *ERROR* RW: 0x0
> Oct 17 12:53:24 sirius /bsd: drm:pid90646:gmc_v9_0_process_interrupt
> *ERROR* [gfxhub0] no-retry page fault (src_id:0 ring:157 vmid:2
> pasid:32796, for process pid 0 thread
> firefox pid 99170)
> 
> 
> dmesg:
> 
> OpenBSD 6.8-current (RAMDISK_CD) #110: Fri Oct 16 12:38:28 MDT 2020
> dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
> real mem = 6334730240 (6041MB)
> avail mem = 6138724352 (5854MB)
> random: good seed from bootblocks
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 3.1 @ 0xbc025000 (63 entries)
> bios0: vendor LENOVO version "R13ET27W(1.01 )" date 04/18/2019
> bios0: LENOVO 20QJ000AUS
> acpi0 at bios0: ACPI 5.0
> acpi0: tables DSDT FACP SSDT SSDT SSDT MSDM SLIC BATB HPET APIC MCFG
> SBST WSMT VFCT IVRS SSDT CRAT CDIT FPDT SSDT SSDT SSDT UEFI
> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: AMD Ryzen 5 PRO 3500U w/ Radeon Vega Mobile Gfx, 2096.38 MHz,
> 17-18-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,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,SHA,IBPB,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
> cpu0: 64KB 64b/line 4-way I-cache, 32KB 64b/line 8-way D-cache, 512KB
> 64b/line 8-way L2 cache, 4MB 64b/line 16-way L3 cache
> cpu0: ITLB 64 4KB entries fully associative, 64 4MB entries fully
> associative
> cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully
> associative
> cpu0: apic clock running at 24MHz
> cpu0: mwait min=64, max=64, C-substates=1.1, IBE
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> cpu at mainbus0: not configured
> ioapic0 at mainbus0: apid 32 pa 0xfec0, version 21, 24 pins, can't
> remap
> ioapic1 at mainbus0: apid 33 pa 0xfec01000, version 21, 32 pins, can't
> remap
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus -1 (GPP0)
> acpiprt2 at acpi0: bus 1 (GPP1)
> acpiprt3 at acpi0: bus 2 (GPP2)
> acpiprt4 at acpi0: bus 3 (GPP3)
> acpiprt5 at acpi0: bus -1 (GPP4)
> acpiprt6 at acpi0: bus -1 (GPP5)
> acpiprt7 at acpi0: bus 4 (GPP6)
> acpiprt8 at acpi0: bus 5 (GP17)
> acpiprt9 at acpi0: bus -1 (GP18)
> acpiec0 at acpi0
> "PNP0C0C" at acpi0 not configured
> acpipci0 at acpi0 PCI0: 0x0010 0x0011 0x
> acpicmos0 at acpi0
> "PNP0C0A" at acpi0 not configured
> "ACPI0003" at acpi0 not configured
> "LEN0268" at acpi0 not configured
> "SMB0001" at acpi0 not configured
> "PNP0C14" at acpi0 not configured
> "PNP0C0D" at acpi0 not configured
> "PNP0C0E" at acpi0 not configured
> "PNP0C14" at acpi0 not configured
> "PNP0C14" at acpi0 not configured
> "PNP0C14" at acpi0 not configured
> amdgpio0 at acpi0 GPIO uid 0 addr 0xfed81500/0x400 irq 7, 184 pins
> "USBC000" at acpi0 not configured
> "PNP0C14" at acpi0 not configured
> acpicpu at acpi0 not configured
> acpipwrres at acpi0 not configured
> acpipwrres at acpi0 not configured
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "AMD 17h/1xh Root Complex" rev 0x00
> "AMD 17h/1xh IOMMU" rev 0x00 at pci0 dev 0 function 2 not configured
> pchb1 at pci0 dev 1 function 0 "AMD 17h PCIE" rev 0x00
> ppb0 at pci0 dev 1 function 2 "AMD 17h/1xh PCIE" rev 0x00: msi
> pci1 at ppb0 bus 1
> iwm0 at pci1 dev 0 function 0 "Intel Dual Band Wireless-AC 8265" rev
> 0x78, msi
>

firefox freezes X on AMD Ryzen running 6.8

2020-10-17 Thread Marco Scholz
I am running 6.8 #116 amd64 on a Thinkpad T495s (AMD Ryzen). Firefox
keeps freezing X. No problem with 6.7.

Does anybody have this problem too?

/var/log/messages:

Oct 17 12:53:24 sirius /bsd: drm:pid90646:gmc_v9_0_process_interrupt
*ERROR* in page starting at address 0x800103b0 from client 27
Oct 17 12:53:24 sirius /bsd: drm:pid90646:gmc_v9_0_process_interrupt
*ERROR* VM_L2_PROTECTION_FAULT_STATUS:0x
Oct 17 12:53:24 sirius /bsd: drm:pid90646:gmc_v9_0_process_interrupt
*ERROR* MORE_FAULTS: 0x0
Oct 17 12:53:24 sirius /bsd: drm:pid90646:gmc_v9_0_process_interrupt
*ERROR* WALKER_ERROR: 0x0
Oct 17 12:53:24 sirius /bsd: drm:pid90646:gmc_v9_0_process_interrupt
*ERROR* PERMISSION_FAULTS: 0x0
Oct 17 12:53:24 sirius /bsd: drm:pid90646:gmc_v9_0_process_interrupt
*ERROR* MAPPING_ERROR: 0x0
Oct 17 12:53:24 sirius /bsd: drm:pid90646:gmc_v9_0_process_interrupt
*ERROR* RW: 0x0
Oct 17 12:53:24 sirius /bsd: drm:pid90646:gmc_v9_0_process_interrupt
*ERROR* [gfxhub0] no-retry page fault (src_id:0 ring:157 vmid:2
pasid:32796, for process pid 0 thread
firefox pid 99170)


dmesg:

OpenBSD 6.8-current (RAMDISK_CD) #110: Fri Oct 16 12:38:28 MDT 2020
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
real mem = 6334730240 (6041MB)
avail mem = 6138724352 (5854MB)
random: good seed from bootblocks
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.1 @ 0xbc025000 (63 entries)
bios0: vendor LENOVO version "R13ET27W(1.01 )" date 04/18/2019
bios0: LENOVO 20QJ000AUS
acpi0 at bios0: ACPI 5.0
acpi0: tables DSDT FACP SSDT SSDT SSDT MSDM SLIC BATB HPET APIC MCFG
SBST WSMT VFCT IVRS SSDT CRAT CDIT FPDT SSDT SSDT SSDT UEFI
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Ryzen 5 PRO 3500U w/ Radeon Vega Mobile Gfx, 2096.38 MHz,
17-18-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,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,SHA,IBPB,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu0: 64KB 64b/line 4-way I-cache, 32KB 64b/line 8-way D-cache, 512KB
64b/line 8-way L2 cache, 4MB 64b/line 16-way L3 cache
cpu0: ITLB 64 4KB entries fully associative, 64 4MB entries fully
associative
cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully
associative
cpu0: apic clock running at 24MHz
cpu0: mwait min=64, max=64, C-substates=1.1, IBE
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 32 pa 0xfec0, version 21, 24 pins, can't
remap
ioapic1 at mainbus0: apid 33 pa 0xfec01000, version 21, 32 pins, can't
remap
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (GPP0)
acpiprt2 at acpi0: bus 1 (GPP1)
acpiprt3 at acpi0: bus 2 (GPP2)
acpiprt4 at acpi0: bus 3 (GPP3)
acpiprt5 at acpi0: bus -1 (GPP4)
acpiprt6 at acpi0: bus -1 (GPP5)
acpiprt7 at acpi0: bus 4 (GPP6)
acpiprt8 at acpi0: bus 5 (GP17)
acpiprt9 at acpi0: bus -1 (GP18)
acpiec0 at acpi0
"PNP0C0C" at acpi0 not configured
acpipci0 at acpi0 PCI0: 0x0010 0x0011 0x
acpicmos0 at acpi0
"PNP0C0A" at acpi0 not configured
"ACPI0003" at acpi0 not configured
"LEN0268" at acpi0 not configured
"SMB0001" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C0D" at acpi0 not configured
"PNP0C0E" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
amdgpio0 at acpi0 GPIO uid 0 addr 0xfed81500/0x400 irq 7, 184 pins
"USBC000" at acpi0 not configured
"PNP0C14" at acpi0 not configured
acpicpu at acpi0 not configured
acpipwrres at acpi0 not configured
acpipwrres at acpi0 not configured
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "AMD 17h/1xh Root Complex" rev 0x00
"AMD 17h/1xh IOMMU" rev 0x00 at pci0 dev 0 function 2 not configured
pchb1 at pci0 dev 1 function 0 "AMD 17h PCIE" rev 0x00
ppb0 at pci0 dev 1 function 2 "AMD 17h/1xh PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
iwm0 at pci1 dev 0 function 0 "Intel Dual Band Wireless-AC 8265" rev
0x78, msi
ppb1 at pci0 dev 1 function 3 "AMD 17h/1xh PCIE" rev 0x00: msi
pci2 at ppb1 bus 2
nvme0 at pci2 dev 0 function 0 "Samsung SM981/PM981 NVMe" rev 0x00:
msix, NVMe 1.3
nvme0: SAMSUNG MZVLB256HBHQ-000L7, firmware 3L2QEXH7, serial
S4ELNE0M503179
scsibus0 at nvme0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: 
sd0: 244198MB, 512 bytes/sector, 500118192 sectors
ppb2 at pci0 dev 1 function 4 "AMD 17h/1xh PCIE" rev 0x00: msi
pci3 at ppb2 bus 3
re0 at pci3 dev 0 function 0 "Realtek 8168" rev 0x0e: RTL8168EP/8111EP
(0x5000), msi, address 98:fa:9b:02:7c:ed
rgephy0 at re0 phy 7: RTL8251 PHY, rev. 0
vendor