From owner-freebsd-x11@freebsd.org Thu Mar 7 00:36:16 2019 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1A196152CA7E for ; Thu, 7 Mar 2019 00:36:16 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 557D180F51 for ; Thu, 7 Mar 2019 00:36:15 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: by mailman.ysv.freebsd.org (Postfix) id E2073152CA7D; Thu, 7 Mar 2019 00:36:14 +0000 (UTC) Delivered-To: x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BDC4F152CA7C for ; Thu, 7 Mar 2019 00:36:14 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: from out.migadu.com (out.migadu.com [91.121.223.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.migadu.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2996280F50 for ; Thu, 7 Mar 2019 00:36:13 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: (Migadu outbound); Thu, 07 Mar 2019 00:35:00 +0000 Received: from [192.168.1.141] ([62.122.208.146]) by out.migadu.com (Haraka/2.8.16) with ESMTPSA id 79BDE2EC-896E-422E-A2B7-3132884291FA.1 envelope-from (authenticated bits=0) (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 verify=FAIL); Thu, 07 Mar 2019 00:35:00 +0000 Date: Thu, 07 Mar 2019 03:35:00 +0300 From: Greg V Subject: Re: system freezes when loading amdgpu To: Pierre DAVID Cc: x11@freebsd.org Message-Id: <1551918900.21563.0@unrelenting.technology> In-Reply-To: <20190306170620.GA9356@vagabond> References: <20190225195558.GA1603@vagabond> <20190304094406.GB17710@vagabond> <6d097479-4678-7550-b90b-91fd2b88cf20@gmail.com> <20190305060754.GB1375@vagabond> <1cc99583-3096-3077-c13a-9c8143f254be@gmail.com> <20190306170620.GA9356@vagabond> X-Mailer: geary/master~g224ccb18 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed DKIM-Signature: v=1; a=rsa-sha256; bh=ZXP0herfJq4EDITw9BCDfheD2KXIK49YxJ3byNhTmX4=; c=relaxed/simple; d=unrelenting.technology; h=from:subject:date:to; s=default; b=aVEKxYUbOjJc2tFb1n4N1DU8Vf+eeTmrqqsf9Bf/slW1jxfiS12OXe38rvA1xdzYsnojPw1ts623Isgqzoyl5Ys/qGNy+9MtEluICZ6uFC78oseSkazlHyJHkQW4niK7Xh89xVgHvqt7cou3X5H1A45vWVT0mqTmv4RBdEPLz0c= X-Rspamd-Queue-Id: 2996280F50 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[]; NEURAL_HAM_SHORT(-0.99)[-0.990,0] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Mar 2019 00:36:16 -0000 On Wed, Mar 6, 2019 at 8:06 PM, Pierre DAVID wrote: > 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. hm, do lkpi drivers even respect dev.drm.skip_ddb? I didn't even know that one, I used debug.debugger_on_panic=0 And keep in mind that you need a non-encrypted swap partition