Re: amdgpu panics

2020-04-09 Thread Grzegorz Junka
Tried just now with 12-STABLE installed using FreeBSD-base and all kmod 
packages recompiled in a jail that was created from the same obj/usr as 
the 12-STABLE base packages. In other words:


The build host is running 12.1-RELEASE-p3. On it I fetched 12-STABLE and 
compiled world and kernel. Then packaged both into FreeBSD-base packages 
to install on the destination desktop. Then I created a new poudriere 
jail using the same 12-STABLE usr/obj. Then I used that jail to build 
drm-kmod, drm-fbsd12.0-kmod and gpu-firmware-kmod. Then I reinstalled 
the base (world/kernel) on the destination desktop using FreeBSD-base 
packages and reinstalled on it the three kmod packages recompiled with 
poudriere.


The result is (almost) exactly the same as with 12.1-RELEASE-p3. The 
screen goes blank and to sleep after a few seconds. The ssh session 
survived:


root@venus:~ # kldstat
Id Refs Address    Size Name
 1  142 0x8020  226f3f0 kernel
 2    1 0x8247   3adf68 zfs.ko
 3    2 0x8281e000 a430 opensolaris.ko
 4    1 0x82e11000 4950 linprocfs.ko
 5    3 0x82e16000 3148 linux_common.ko
 6    1 0x82e1a000 8838 tmpfs.ko
 7    1 0x82e23000    16b50 if_iwm.ko
 8    1 0x82e3a000    fb11f iwm3168fw.ko
 9    1 0x82f36000 2658 intpm.ko
10    1 0x82f39000  b60 smbus.ko
11    1 0x82f3a000 1880 uhid.ko
12    1 0x82f3c000 2968 ums.ko
13    1 0x82f3f000 1a40 wmt.ko
14    1 0x82f41000 cbd0 snd_uaudio.ko
15    1 0x82f4e000 4240 ng_ubt.ko
16    6 0x82f53000 9be0 netgraph.ko
17    2 0x82f5d000 91e8 ng_hci.ko
18    3 0x82f67000  9b0 ng_bluetooth.ko
19    1 0x82f68000 cb40 ng_l2cap.ko
20    1 0x82f75000    1b420 ng_btsocket.ko
21    1 0x82f91000 2180 ng_socket.ko
22    1 0x82f94000    3d450 linux.ko
23    1 0x82fd2000    35260 linux64.ko
24    1 0x83008000 1a88 fdescfs.ko
25    3 0x8300a000    764b0 drm.ko
26    5 0x83081000    11170 linuxkpi.ko
27    4 0x83093000    13f30 linuxkpi_gplv2.ko
28    2 0x830a7000  6d0 debugfs.ko
30    1 0x832f8000 ef41 ttm.ko
31    1 0x83307000  2c1 amdgpu_vega10_gpu_info_bin.ko
32    1 0x83308000    27d07 amdgpu_vega10_sos_bin.ko
33    1 0x8333    1e377 amdgpu_vega10_asd_bin.ko
34    1 0x8334f000    4047f amdgpu_vega10_acg_smc_bin.ko
35    1 0x8339 55f7 amdgpu_vega10_pfp_bin.ko
36    1 0x83396000 45f5 amdgpu_vega10_me_bin.ko
37    1 0x8339b000 25f5 amdgpu_vega10_ce_bin.ko
38    1 0x8339e000 4477 amdgpu_vega10_rlc_bin.ko
39    1 0x833a3000    41887 amdgpu_vega10_mec_bin.ko
40    1 0x833e5000    41889 amdgpu_vega10_mec2_bin.ko
41    1 0x83427000 4579 amdgpu_vega10_sdma_bin.ko
42    1 0x8342c000 457b amdgpu_vega10_sdma1_bin.ko
43    1 0x83431000    5c337 amdgpu_vega10_uvd_bin.ko
44    1 0x8348e000    2a797 amdgpu_vega10_vce_bin.ko

root@venus:~ # dmesg
---<>---
Copyright (c) 1992-2020 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
    The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.1-STABLE r359722 GENERIC amd64
FreeBSD clang version 9.0.1 (g...@github.com:llvm/llvm-project.git 
c1a0a213378a458fbea1a5c77b315c7dce08fd05) (based on LLVM 9.0.1)

VT(efifb): resolution 1024x768
CPU: AMD Ryzen 7 2700X Eight-Core Processor  (3700.37-MHz 
K8-class CPU)

  Origin="AuthenticAMD"  Id=0x800f82  Family=0x17  Model=0x8 Stepping=2
Features=0x178bfbff
Features2=0x7ed8320b
  AMD Features=0x2e500800
  AMD 
Features2=0x35c233ff
  Structured Extended 
Features=0x209c01a9

  XSAVE Features=0xf
  AMD Extended Feature Extensions ID EBX=0x1007
  SVM: (disabled in BIOS) NP,NRIP,VClean,AFlush,DAssist,NAsids=32768
  TSC: P-state invariant, performance statistics
real memory  = 68719476736 (65536 MB)
avail memory = 66808102912 (63713 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: 
FreeBSD/SMP: Multiprocessor System Detected: 16 CPUs
FreeBSD/SMP: 1 package(s) x 2 cache groups x 4 core(s) x 2 hardware threads
random: unblocking device.
Firmware Warning (ACPI): Optional FADT field Pm2ControlBlock has valid 
Length but zero Address: 0x/0x1 (20191213/tbfadt-796)

ioapic0  irqs 0-23 on motherboard
ioapic1  irqs 24-55 on motherboard
Launching APs: 12 13 9 15 8 11 1 10 14 7 6 3 4 5 2
Timecounter "TSC-low" frequency 1850186165 Hz quality 1000
random: entropy device external interface
kbd1 at kbdmux0
000.23 [4336] netmap_init   netmap: loaded module
[ath_hal] loaded

(...)

[drm] amdgpu kernel modesetting enabled.
drmn0:  on vgapci0
vgapci0: child drmn0 requested pci_enable_io
vgapci0: child 

libv4l upgrade coming soon!

2020-04-09 Thread Hans Petter Selasky

Hi,

If you are interested, this is the review:
https://reviews.freebsd.org/D24355

--HPS
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


FreeBSD Port: purple-discord-g20190804

2020-04-09 Thread Alex V. Petrov
Core dump after query DNS.
Can you upgrade the port?
In GIT was written that error fixed 4 days ago
-- 
-
Alex.
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: amdgpu panics

2020-04-09 Thread Tatsuki Makino
Grzegorz Junka wrote on 2020/04/09 06:54:
> 
> On 06/04/2020 22:08, Tatsuki Makino wrote:
>> Sorry, I derail from this topic.
>>
>> I have cloned the host to poudriere with the following command.
>>
>> poudriere jail -c -j src -m 'src=/usr/src' -v `make -C /usr/src/release/
>> -V VERSION VERSION=\$\{REVISION:Q\}-\$\{BRANCH:Q\}`
>>
>> Since the name of this jail is src, create src.conf as follows.
>>
>> ln -s /etc/src.conf /usr/local/etc/poudriere.d/src-src.conf
>>
>> Probably, this reproduces the same environment as the host... maybe :)
> 
> 
> Just trying this now. Poudriere's help says that -v only makes sense for
> method ftp and svn. For other methods, especially for src that you are
> using, the value is only for display.
> 
> Also, I don't think specifying src.conf for jail created with method src
> makes sense? It assumes that the world and kernel is already build. I
> would expect this to only take any effect when creating with -b or with
> method svn?
> 

I wrote the -v jumble because it was troublesome when 12.1-STABLE was
changed to 12.2-PRERELEASE. If -v is omitted, an error may have occurred.
I don't know what's being used internally...

-m src=... will install files that already exist in /usr/obj. If
/etc/src.conf prevents builds of unnecessary files, some files will be
missing.
...However, I do not know if the created symlink to /etc/src.conf solves
the problem :)

The poudriere jail created in this way can be updated immediately after
buildworld+buildkernel+installkernel+installworld(+reboot) the host with
the following command.

poudriere jail -u -j src

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"