Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Mar 2019 16:47:44 -0800
From:      Pete Wright <pete@nomadlogic.org>
To:        Greg V <greg@unrelenting.technology>, Pierre DAVID <pdagog@gmail.com>
Cc:        x11@freebsd.org
Subject:   Re: system freezes when loading amdgpu
Message-ID:  <ae3a5a0b-4b3a-bdb5-ab3a-a509f471bedf@nomadlogic.org>
In-Reply-To: <1551918900.21563.0@unrelenting.technology>
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> <1551918900.21563.0@unrelenting.technology>

next in thread | previous in thread | raw e-mail | index | archive | help


On 3/6/19 4:35 PM, Greg V wrote:
>
>
> On Wed, Mar 6, 2019 at 8:06 PM, Pierre DAVID <pdagog@gmail.com> 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?
>
it used to when mmacy and i were first testing the drm-next code (and it 
was quite handy iirc), it may have been removed since then though.  if 
anyone can report that it no longer works i'll be sure to update the 
wiki accordingly.

cheers,
-pete

-- 
Pete Wright
pete@nomadlogic.org
@nomadlogicLA




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ae3a5a0b-4b3a-bdb5-ab3a-a509f471bedf>