From owner-freebsd-x11@freebsd.org Wed Mar 6 08:49:17 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 980771508AC4 for ; Wed, 6 Mar 2019 08:49:17 +0000 (UTC) (envelope-from johalun0@gmail.com) 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 E8006832CC for ; Wed, 6 Mar 2019 08:49:16 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id A84B21508AB2; Wed, 6 Mar 2019 08:49:16 +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 85C881508AAF for ; Wed, 6 Mar 2019 08:49:16 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6177F832CB for ; Wed, 6 Mar 2019 08:49:15 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: by mail-oi1-x230.google.com with SMTP id t82so9210699oie.12 for ; Wed, 06 Mar 2019 00:49:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=1E7zWD8lj74uugxNzk4oJaL1Uq8FqA3qaqrq2nQYQ38=; b=C7dbfo1FfcZlZ9PcUUeEDU99b2sdncxdNwkq00529rYUbN3EH7dyQhDnQqkS/CKK6T PbObUANiDbYMM7T8+trMUqZtI9Z7Cle8MH67lwxGvI/TTt166V9kLJKT5tv3qNm9oE9Y Avehs64WVzq03lRjgTL2nm9RQnXCWY4+WGhY3huXkLx4HPS40i8qLosfmvwd8wDsqDha eaOnCm/m/keYLeMv+TIUm7lRRooA7JydZW7Rj9gfU0xUgSMRTgcr4BIVlg5EH9irOpIr 4kd1sKqzWGWxcbbEgrnY0hGYY1knnBC9SCFzR7xGDSUPrnp/IZDRILzJwBFqspM8G/+p K2hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language; bh=1E7zWD8lj74uugxNzk4oJaL1Uq8FqA3qaqrq2nQYQ38=; b=lJQZmaUIdK7BUHfIyR0UwJaGD7DiQkqACQ/k8WexRCfny9hLdtyBoih6GAf18Nq2ij JOqqxd7cOkRxFu2fN+i82RpMQUdwfkXdZLjIaqpIpejrCLTb4DHYKmIygbmJxdWNUICa 97YXwGY6JXkcdh6m+TiHPXuh3ny2+epX+zco4VWCvCPsxrLhch1VJjb/U158LS3WktyX qn7q8+hZFY580ov80rGSw87y0trs5sYrhyerXl9J0uoey+9L0Yl5ynmJW/aeyZmyesOD 1UKcmJ1ah9QLYSirV50WRW78TN2knxMOK/BZIXGyIGQ1s/vOpM0WPwERTT8V+iRfH8pG wAmg== X-Gm-Message-State: APjAAAWUgkA8w8EJVKXAv1EP2xROqyPXEBkD6gNhdgEHwrhU4looq8dE wO1RTNpsNlayiizoNNMf5Q3QO/EE X-Google-Smtp-Source: APXvYqynzNOwPos/AbpXpNM3nh7wT1VXEHSMWXJp33oMYhxt9PZ/5EZBt0YzaTTmTfkg/+KsnbIAJw== X-Received: by 2002:aca:de84:: with SMTP id v126mr1039830oig.5.1551862153918; Wed, 06 Mar 2019 00:49:13 -0800 (PST) Received: from [192.168.1.33] ([81.174.250.12]) by smtp.gmail.com with ESMTPSA id q6sm438060oia.4.2019.03.06.00.49.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Mar 2019 00:49:13 -0800 (PST) Subject: Re: system freezes when loading amdgpu To: Pierre DAVID , x11@freebsd.org References: <20190225195558.GA1603@vagabond> <20190304094406.GB17710@vagabond> <6d097479-4678-7550-b90b-91fd2b88cf20@gmail.com> <20190305060754.GB1375@vagabond> From: Johannes Lundberg Openpgp: preference=signencrypt Autocrypt: addr=johalun0@gmail.com; keydata= mQINBFxFmoIBEADoFO5jY+Fmsg44KiZjufEmpEf4kt7nCOfxNG9SruWpoXUaq0B296F+fIZC hNZqv1v7lGTsfoWRusxJmLd5CQgHHxEyruZbbPpNsQ/JKoDY3GGmrmWfN/SX3y0t0kdB9HsW mJcvZhK7we52f4gxddIVBS9nQoVoONX+hzXf8zwOAa0ik0EPgEwpIKS4j9lLq4bU+mqVKdRR bPeDujEA/qbsCKhaFJkPzXZtzEe6srq4RK1doEztwnKz02b+8gs642TRkWDQeTRZputrAaoN Un4R76A1QpXWyrFG1dQu48IGHi3KbkrvNyq6R1aUBIA0+CG1npIbxmc2mtSjoyvdipmDRbBD +mhECIxmYfBT6818zuj91XjrfOyfVdV2BryBvqFkJLkS3N3QElBIiVdDgdrqiNFWiOlDMxNI tdP16oQBNo8IB27/0YHpnQEw1MafZv5gG5DO0zLtLy88ASAfL7BYf90JP19rT4JIwnxsXxyv kEJnzhsXf0QVObEiAu1MqeFyWfZ8PpunmvEmJ0VChOL+v/kIx1E9cxhhzMZhqiMXfyM4zx2+ BF1FwAwJYPuJLu2B3L0uVBu+M1YvSOmKAbXPDP8PsqPjgSBTYI51MUjuuxN6jSsHDuK6G5k4 pUWR8axa+wafhd6Vz8zVwdTJZ9LdxgLLVg0kprBgccPHhPAZVQARAQABtCZKb2hhbm5lcyBM dW5kYmVyZyA8am9oYWx1bjBAZ21haWwuY29tPokCV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8z34wrP66oz8oPKtS5CFV0m/384hEg0lmi3W wo2Hno7rA1etTPJX0dI6/GLlQDtNTHvKQ077HQdWVOMQVWC9j7YH7Zr9NjtOvxcNVRX3fxpJ 6CE= X-Tagtoolbar-Keys: D20190306084910370 Message-ID: <1cc99583-3096-3077-c13a-9c8143f254be@gmail.com> Date: Wed, 6 Mar 2019 08:49:10 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190305060754.GB1375@vagabond> Content-Language: en-US X-Rspamd-Queue-Id: 6177F832CB X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=C7dbfo1F; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of johalun0@gmail.com designates 2607:f8b0:4864:20::230 as permitted sender) smtp.mailfrom=johalun0@gmail.com X-Spamd-Result: default: False [-5.37 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; URI_COUNT_ODD(1.00)[5]; RCVD_COUNT_THREE(0.00)[3]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.70)[-0.702,0]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[x11@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[0.3.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(-2.66)[ip: (-8.49), ipnet: 2607:f8b0::/32(-2.70), asn: 15169(-2.03), country: US(-0.07)] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Wed, 06 Mar 2019 08:49:17 -0000 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 i= n >> 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.=C2=A0 Hmm :( Did you set all the sysctls as described in the "debugging tips" section in https://wiki.freebsd.org/Graphics? dev.drm.skip_ddb=3D"1" debug.debugger_on_panic=3D0 dev.drm.drm_debug_persist=3D"1" dev.drm.drm_debug=3D-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? > > Pierre > _______________________________________________ > freebsd-x11@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-x11 > To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org"