From owner-freebsd-x11@freebsd.org Thu Nov 26 09:40:59 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 E7B82A393FC for ; Thu, 26 Nov 2015 09:40:59 +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 0AAE41EBD; Thu, 26 Nov 2015 09:40:58 +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 LAA19820; Thu, 26 Nov 2015 11:40:57 +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 1a1t2u-000GXm-NR; Thu, 26 Nov 2015 11:40:56 +0200 To: freebsd-x11 Cc: =?UTF-8?Q?Jean-S=c3=a9bastien_P=c3=a9dron?= From: Andriy Gapon Subject: problem with discrete video card X-Enigmail-Draft-Status: N1110 Message-ID: <5656D370.1090008@FreeBSD.org> Date: Thu, 26 Nov 2015 11:40:00 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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, 26 Nov 2015 09:41:00 -0000 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: memset(rbo->kptr, 0x0, radeon_bo_size(rbo)); It seems like this could be the very first write to the video memory, but I am not sure. I suspect that the problem could be a hardware one. But maybe this could be a software or configuration problem? I've collected kernel messages from the driver: https://people.freebsd.org/~avg/radeon6850.txt (Please note that I've moved the memset line after the code that reports fb properties to see if they are sane) -- Andriy Gapon