Date: Wed, 6 Mar 2019 18:06:20 +0100 From: Pierre DAVID <pdagog@gmail.com> To: x11@freebsd.org Subject: Re: system freezes when loading amdgpu Message-ID: <20190306170620.GA9356@vagabond> In-Reply-To: <1cc99583-3096-3077-c13a-9c8143f254be@gmail.com> References: <20190225195558.GA1603@vagabond> <20190304094406.GB17710@vagabond> <6d097479-4678-7550-b90b-91fd2b88cf20@gmail.com> <20190305060754.GB1375@vagabond> <1cc99583-3096-3077-c13a-9c8143f254be@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--qMm9M+Fa2AknHoGS Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit On Wed, Mar 06, 2019 at 08:49:10AM +0000, Johannes Lundberg wrote: > >On 3/5/19 6:07 AM, Pierre DAVID wrote: >> On Mon, Mar 04, 2019 at 10:02:33AM +0000, Johannes Lundberg wrote: >>> Hi >>> >>> Sorry to hear you're having problems... The good news is, I think your >>> card is Southern Islands (SI) generation which means it's supported by >>> both radeonkms and amdgpu. SI should be enabled in amdgpu by default in >>> 4.16 or later. >>> >>> To avoid any UEFI issues, I recommend booting in legacy BIOS mode if >>> possible. This way you don't have to disable syscons. >>> >>> With drm-kmod radeonkms: >>> >>> pkg: xf86-video-ati >>> xorg driver: "radeon" >>> >>> With drm-kmod amdgpu: >>> >>> pkg: xf86-video-amdgpu for "amdgpu", "modesetting" is included in >>> xorg-server. >>> xorg driver: "modesetting" or "amdgpu" (modesetting is probably better) >>> >> >> My system always boots in legacy BIOS mode (it's a pre-UEFI system). >> >> I tried with radeonkms also: same thing occurs, the system is freezing. >> >>> >>> "The system freezes as soon as I kldload amdgpu (or if I start X)" >>> >>> Does this mean that you get freeze only sometimes in kldload amdgpu? >>> >> >> It always freezes when I kldload either amdgpu or radeonkms. > >Hmm :( > >Did you set all the sysctls as described in the "debugging tips" section >in https://wiki.freebsd.org/Graphics? > >dev.drm.skip_ddb="1" >debug.debugger_on_panic=0 >dev.drm.drm_debug_persist="1" >dev.drm.drm_debug=-1 > >With these set (add in /boot/loader.conf and reboot), do you get a core >dump or some drm log messages left in dmesg after reboot? > I didn't succeed in escaping to debugger without the dev.drm.skip_ddb tunable. With (or without) this tunable set to 1, there is no crash dump in /var/crash after manual reboot (via the reset button). Here are the relevant lines in /var/log/messages. Pierre --qMm9M+Fa2AknHoGS Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=messages Mar 6 17:50:57 biceps kernel: [drm:drm_core_init] Initialized Mar 6 17:50:58 biceps kernel: [drm] amdgpu kernel modesetting enabled. Mar 6 17:50:58 biceps kernel: drmn0: <drmn> on vgapci0 Mar 6 17:50:58 biceps kernel: vgapci0: child drmn0 requested pci_enable_io Mar 6 17:50:58 biceps syslogd: last message repeated 1 times Mar 6 17:50:58 biceps kernel: [drm:drm_minor_register] Mar 6 17:50:58 biceps syslogd: last message repeated 1 times Mar 6 17:50:58 biceps kernel: [drm:drm_minor_register] new minor registered 128 Mar 6 17:50:58 biceps kernel: [drm:drm_minor_register] Mar 6 17:50:58 biceps kernel: [drm:drm_minor_register] new minor registered 0 Mar 6 17:50:58 biceps kernel: [drm] initializing kernel modesetting (VERDE 0x1002:0x683F 0x174B:0xA001 0x00). Mar 6 17:50:58 biceps kernel: [drm] register mmio base: 0xF7E00000 Mar 6 17:50:58 biceps kernel: [drm] register mmio size: 262144 Mar 6 17:50:58 biceps kernel: [drm] PCI I/O BAR is not found. Mar 6 17:50:58 biceps kernel: [drm:amdgpu_device_ip_block_add] add ip block number 0 <si_common> Mar 6 17:50:58 biceps kernel: [drm:amdgpu_device_ip_block_add] add ip block number 1 <gmc_v6_0> Mar 6 17:50:58 biceps kernel: [drm:amdgpu_device_ip_block_add] add ip block number 2 <si_ih> Mar 6 17:50:58 biceps kernel: [drm:amdgpu_device_ip_block_add] add ip block number 3 <amdgpu_powerplay> Mar 6 17:50:58 biceps kernel: [drm:amdgpu_device_ip_block_add] add ip block number 4 <dce_v6_0> Mar 6 17:50:58 biceps kernel: [drm:amdgpu_device_ip_block_add] add ip block number 5 <gfx_v6_0> Mar 6 17:50:58 biceps kernel: [drm:amdgpu_device_ip_block_add] add ip block number 6 <si_dma> Mar 6 17:50:58 biceps kernel: [drm] BIOS signature incorrect 0 0 Mar 6 17:50:58 biceps kernel: [drm:check_atom_bios] ATOMBIOS detected Mar 6 17:50:58 biceps kernel: [drm:amdgpu_atombios_init] PCI I/O BAR is not found. Using MMIO to access ATOM BIOS Mar 6 17:50:58 biceps kernel: ATOM BIOS: 113-E213PLUM-X003 Mar 6 17:50:58 biceps kernel: [drm:amdgpu_atombios_allocate_fb_scratch] atom firmware requested 000fffe0 32kb Mar 6 17:50:58 biceps kernel: [drm:amdgpu_atombios_get_clock_info] Changing default dispclk from 600Mhz to 625Mhz Mar 6 17:50:58 biceps kernel: [drm] vm size is 64 GB, 2 levels, block size is 10-bit, fragment size is 9-bit Mar 6 17:50:58 biceps kernel: [drm:gmc_v6_0_init_microcode] Mar 6 17:50:58 biceps kernel: drmn0: successfully loaded firmware image with name: radeon/verde_mc.bin Mar 6 17:50:58 biceps kernel: drmn0: VRAM: 1024M 0x000000F400000000 - 0x000000F43FFFFFFF (1024M used) Mar 6 17:50:58 biceps kernel: drmn0: GTT: 1024M 0x0000000000000000 - 0x000000003FFFFFFF Mar 6 17:50:58 biceps kernel: Failed to add WC MTRR for [0xe0000000-0xefffffff]: -22; performance may suffer Mar 6 17:50:58 biceps kernel: [drm] Detected VRAM RAM=1024M, BAR=256M Mar 6 17:50:58 biceps kernel: [drm] RAM width 128bits GDDR5 Mar 6 17:50:58 biceps kernel: [TTM] Zone kernel: Available graphics memory: 8341692 kiB Mar 6 17:50:58 biceps kernel: [TTM] Zone dma32: Available graphics memory: 2097152 kiB Mar 6 17:50:58 biceps kernel: [TTM] Initializing pool allocator Mar 6 17:50:58 biceps kernel: [drm] amdgpu: 1024M of VRAM memory ready Mar 6 17:50:58 biceps kernel: [drm] amdgpu: 3072M of GTT memory ready. Mar 6 17:50:58 biceps kernel: i_size_write unimplemented Mar 6 17:50:58 biceps kernel: [drm] GART: num cpu pages 262144, num gpu pages 262144 Mar 6 17:50:58 biceps kernel: [drm:amdgpu_ucode_print_mc_hdr] MC Mar 6 17:50:58 biceps kernel: [drm:amdgpu_ucode_print_common_hdr] size_bytes: 32044 Mar 6 17:50:58 biceps kernel: [drm:amdgpu_ucode_print_common_hdr] header_size_bytes: 40 Mar 6 17:50:58 biceps kernel: [drm:amdgpu_ucode_print_common_hdr] header_version_major: 1 Mar 6 17:50:58 biceps kernel: [drm:amdgpu_ucode_print_common_hdr] header_version_minor: 0 Mar 6 17:50:58 biceps kernel: [drm:amdgpu_ucode_print_common_hdr] ip_version_major: 6 Mar 6 17:50:58 biceps kernel: [drm:amdgpu_ucode_print_common_hdr] ip_version_minor: 0 Mar 6 17:50:58 biceps kernel: [drm:amdgpu_ucode_print_common_hdr] ucode_version: 0x00a37610 Mar 6 17:50:58 biceps kernel: [drm:amdgpu_ucode_print_common_hdr] ucode_size_bytes: 31500 Mar 6 17:50:58 biceps kernel: [drm:amdgpu_ucode_print_common_hdr] ucode_array_offset_bytes: 544 Mar 6 17:50:58 biceps kernel: [drm:amdgpu_ucode_print_common_hdr] crc32: 0x442d834d Mar 6 17:50:58 biceps kernel: [drm:amdgpu_ucode_print_mc_hdr] io_debug_size_bytes: 288 Mar 6 17:50:58 biceps kernel: [drm:amdgpu_ucode_print_mc_hdr] io_debug_array_offset_bytes: 256 Mar 6 17:50:58 biceps kernel: drmn0: PCIE GART of 1024M enabled (table at 0x000000F400040000). Mar 6 17:50:58 biceps kernel: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). Mar 6 17:50:58 biceps kernel: [drm] Driver supports precise vblank timestamp query. Mar 6 17:50:58 biceps kernel: [drm:drm_irq_install] irq=16 Mar 6 17:50:58 biceps kernel: [drm:amdgpu_irq_init] amdgpu: irq initialized. Mar 6 17:50:58 biceps kernel: [drm:si_dpm_init_microcode] Mar 6 17:50:59 biceps kernel: drmn0: successfully loaded firmware image with name: radeon/verde_smc.bin Mar 6 17:50:59 biceps kernel: [drm] Internal thermal controller without fan control Mar 6 17:50:59 biceps kernel: [drm] amdgpu: dpm initialized Mar 6 17:50:59 biceps kernel: [drm] Connector DP-1: get mode from tunables: Mar 6 17:50:59 biceps kernel: [drm] - kern.vt.fb.modes.DP-1 Mar 6 17:50:59 biceps kernel: [drm] - kern.vt.fb.default_mode Mar 6 17:50:59 biceps kernel: [drm:drm_sysfs_connector_add] adding "DP-1" to sysfs Mar 6 17:50:59 biceps kernel: [drm:drm_sysfs_hotplug_event] generating hotplug event Mar 6 17:50:59 biceps kernel: [drm:drm_dp_aux_register_devnode] drm_dp_aux_dev: aux [(null)] registered as minor 0 Mar 6 17:50:59 biceps kernel: [drm] Connector HDMI-A-1: get mode from tunables: Mar 6 17:50:59 biceps kernel: [drm] - kern.vt.fb.modes.HDMI-A-1 Mar 6 17:50:59 biceps kernel: [drm] - kern.vt.fb.default_mode Mar 6 17:50:59 biceps kernel: [drm:drm_sysfs_connector_add] adding "HDMI-A-1" to sysfs Mar 6 17:50:59 biceps kernel: [drm:drm_sysfs_hotplug_event] generating hotplug event Mar 6 17:50:59 biceps kernel: [drm] Connector DVI-I-1: get mode from tunables: Mar 6 17:50:59 biceps kernel: [drm] - kern.vt.fb.modes.DVI-I-1 Mar 6 17:50:59 biceps kernel: [drm] - kern.vt.fb.default_mode Mar 6 17:50:59 biceps kernel: [drm:drm_sysfs_connector_add] adding "DVI-I-1" to sysfs Mar 6 17:50:59 biceps kernel: [drm:drm_sysfs_hotplug_event] generating hotplug event Mar 6 17:50:59 biceps kernel: [drm] AMDGPU Display Connectors Mar 6 17:50:59 biceps kernel: [drm] Connector 0: Mar 6 17:50:59 biceps kernel: [drm] DP-1 Mar 6 17:50:59 biceps kernel: [drm] HPD4 Mar 6 17:50:59 biceps kernel: [drm] DDC: 0x1950 0x1950 0x1951 0x1951 0x1952 0x1952 0x1953 0x1953 Mar 6 17:50:59 biceps kernel: [drm] Encoders: Mar 6 17:50:59 biceps kernel: [drm] DFP1: INTERNAL_UNIPHY2 Mar 6 17:50:59 biceps kernel: [drm] Connector 1: Mar 6 17:50:59 biceps kernel: [drm] HDMI-A-1 Mar 6 17:50:59 biceps kernel: [drm] HPD1 Mar 6 17:50:59 biceps kernel: [drm] DDC: 0x195c 0x195c 0x195d 0x195d 0x195e 0x195e 0x195f 0x195f Mar 6 17:50:59 biceps kernel: [drm] Encoders: Mar 6 17:50:59 biceps kernel: [drm] DFP2: INTERNAL_UNIPHY2 Mar 6 17:50:59 biceps kernel: [drm] Connector 2: Mar 6 17:50:59 biceps kernel: [drm] DVI-I-1 Mar 6 17:50:59 biceps kernel: [drm] HPD2 Mar 6 17:50:59 biceps kernel: [drm] DDC: 0x1958 0x1958 0x1959 0x1959 0x195a 0x195a 0x195b 0x195b Mar 6 17:50:59 biceps kernel: [drm] Encoders: Mar 6 17:50:59 biceps kernel: [drm] DFP3: INTERNAL_UNIPHY Mar 6 17:50:59 biceps kernel: [drm] CRT1: INTERNAL_KLDSCP_DAC1 Mar 6 17:50:59 biceps kernel: [drm:gfx_v6_0_init_microcode] Mar 6 17:50:59 biceps kernel: drmn0: successfully loaded firmware image with name: radeon/verde_pfp.bin Mar 6 17:51:00 biceps kernel: drmn0: successfully loaded firmware image with name: radeon/verde_me.bin Mar 6 17:51:00 biceps kernel: drmn0: successfully loaded firmware image with name: radeon/verde_ce.bin Mar 6 17:52:36 biceps syslogd: kernel boot file is /boot/kernel/kernel --qMm9M+Fa2AknHoGS--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190306170620.GA9356>