From owner-freebsd-x11@freebsd.org Thu Dec 3 13:08:33 2015 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3A9D6A3EC94 for ; Thu, 3 Dec 2015 13:08:33 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 825FB1A9C for ; Thu, 3 Dec 2015 13:08:32 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id PAA15986; Thu, 03 Dec 2015 15:08:29 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1a4Tcb-0002Pl-4x; Thu, 03 Dec 2015 15:08:29 +0200 Subject: Re: problem with discrete video card To: =?UTF-8?Q?Jean-S=c3=a9bastien_P=c3=a9dron?= , freebsd-x11@FreeBSD.org References: <5656D370.1090008@FreeBSD.org> <565CD111.4070808@dumbbell.fr> From: Andriy Gapon X-Enigmail-Draft-Status: N1110 Message-ID: <56603E94.3010601@FreeBSD.org> Date: Thu, 3 Dec 2015 15:07:32 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <565CD111.4070808@dumbbell.fr> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.20 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, 03 Dec 2015 13:08:33 -0000 On 01/12/2015 00:43, Jean-Sébastien Pédron wrote: > On 26/11/2015 10:40, Andriy Gapon wrote: >> I've been given a Radeon 6850 based video card that supposedly used to work. >> But for me it works only in the text mode. Any attempt to use it with radeonkms >> driver results in a reboot (no panic or trap). I've done a little bit of >> investigation and I see that the crash happens in radeonfb_create() when the >> following code is executed: > > Hi Andriy! > > Could you please try again with drm.debug=7 in your /boot/loader.conf? I will try this, thank you for the suggestion. > Do you have any local patches beside the moved line? Because here, I get > this: > > info: [drm] fb mappable at 0xD0142000 > info: [drm] vram apper at 0xD0000000 > info: [drm] size 8294400 > info: [drm] fb depth is 24 > info: [drm] pitch is 7680 > > Note the "vram apper at" message. The label in your dmesg is shorter but > the address is longer. Yeah, I wanted to add printing of fb_vbase, but accidentally removed printing of vram apper. I restored that line back, so the output now looks like this: info: [drm] fb mappable at 0xD0142000 info: [drm] vbase at 0xFFFFF800D0142000 info: [drm] vram apper at 0xD0000000 info: [drm] size 8294400 info: [drm] fb depth is 24 info: [drm] pitch is 7680 -- Andriy Gapon