From owner-freebsd-x11@freebsd.org Wed Oct 31 21:51:16 2018 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 8A53510EA8E8 for ; Wed, 31 Oct 2018 21:51:16 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 2923D6D4D5; Wed, 31 Oct 2018 21:51:16 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.15.2/8.15.2) with ESMTPS id w9VLpEKq001132 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 31 Oct 2018 14:51:14 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.15.2/8.15.2/Submit) id w9VLpEUM001131; Wed, 31 Oct 2018 14:51:14 -0700 (PDT) (envelope-from sgk) Date: Wed, 31 Oct 2018 14:51:14 -0700 From: Steve Kargl To: Niclas Zeising Cc: Johannes Lundberg , x11-list freebsd Subject: Re: drm2 again Message-ID: <20181031215114.GA1122@troutmask.apl.washington.edu> Reply-To: sgk@troutmask.apl.washington.edu References: <20181031172832.GA28293@troutmask.apl.washington.edu> <20181031194726.GA957@troutmask.apl.washington.edu> <20181031201319.GA896@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) 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, 31 Oct 2018 21:51:16 -0000 On Wed, Oct 31, 2018 at 10:19:14PM +0100, Niclas Zeising wrote: > On 10/31/18 10:11 PM, Johannes Lundberg wrote: > > > > > > error: [drm:pid109:ni_init_microcode] *ERROR* ni_cp: Failed to load > > firmware "radeon/CAICOS_pfp.bin" > > error: [drm:pid109:evergreen_startup] *ERROR* Failed to load firmware! > > drmn0: error: disabling GPU acceleration > > drmn0: warning: 0xfffff800061f8c00 unpin not necessary > > drmn0: warning: 0xfffff800061f8c00 unpin not necessary > > error: [drm:pid109:evergreen_init] *ERROR* radeon: MC ucode required > > for NI+. > > drmn0: error: Fatal error during GPU init > > info: [drm] radeon: finishing device. > > info: [drm] radeon: ttm finalized > > device_attach: drmn0 attach returned 22 > > > > > > I found some more firmware calls that were unpatched. > > Committed to: https://github.com/FreeBSDDesktop/drm-legacy > > > > Port will be updated this evening. > > > > Thanks for your patients.  Fingers crossed this time... This update got the firmware to load! Unfortuantely, when I start Xorg, I get a black screen of death. If I diff the 'dmesg | drm" messages from booting with the in-tree drm2 and drm-legacy I see --- drm2.base.dmesg 2018-09-27 15:20:53.186039000 -0700 +++ drm-legacy.txt 2018-10-31 14:36:33.214879000 -0700 @@ -1,12 +1,4 @@ info: [drm] Initialized drm 1.1.0 20060810 -drmn0: ======================================================= -drmn0: This code is obsolete abandonware. Install the graphics/drm-stable-kmod pkg -drmn0: ======================================================= -drmn0: Deprecated code (to be removed in FreeBSD 13): drm2 drivers -drmn0: ======================================================= -drmn0: This code is obsolete abandonware. Install the graphics/drm-stable-kmod pkg -drmn0: ======================================================= -drmn0: Deprecated code (to be removed in FreeBSD 13): drm2 drivers drmn0: on vgapci0 info: [drm] RADEON_IS_PCIE info: [drm] initializing kernel modesetting (CAICOS 0x1002:0x6779 0x1092:0x6450). @@ -21,7 +13,7 @@ info: [drm] igp_read_bios_from_vram: ===> Try IGP's VRAM... info: [drm] igp_read_bios_from_vram: VRAM base address: 0xc0000000 info: [drm] igp_read_bios_from_vram: Map address: 0xfffff800c0000000 (262144 bytes) -info: [drm] igp_read_bios_from_vram: Incorrect BIOS signature: 0x2070 +info: [drm] igp_read_bios_from_vram: Incorrect BIOS signature: 0x2F07 info: [drm] radeon_read_bios: ===> Try PCI Expansion ROM... info: [drm] radeon_read_bios: Map address: 0xfffff800000c0000 (131072 bytes) info: [drm] ATOM BIOS: C26401 @@ -40,10 +32,14 @@ info: [drm] probing gen 2 caps for device 1002:5a16 = 2/0 info: [drm] enabling PCIE gen 2 link speeds, disable with radeon.pcie_gen2=0 info: [drm] Loading CAICOS Microcode +drmn0: Successfully loaded firmware image with name (mapped name): radeon/CAICOS_pfp.bin (radeon_CAICOS_pfp_bin) +drmn0: Successfully loaded firmware image with name (mapped name): radeon/CAICOS_me.bin (radeon_CAICOS_me_bin) +drmn0: Successfully loaded firmware image with name (mapped name): radeon/BTC_rlc.bin (radeon_BTC_rlc_bin) +drmn0: Successfully loaded firmware image with name (mapped name): radeon/CAICOS_mc.bin (radeon_CAICOS_mc_bin) info: [drm] PCIE GART of 512M enabled (table at 0x0000000000040000). drmn0: info: WB enabled -drmn0: info: fence driver on ring 0 use gpu addr 0x0000000040000c00 and cpu addr 0x0xfffff8005250ec00 -drmn0: info: fence driver on ring 3 use gpu addr 0x0000000040000c0c and cpu addr 0x0xfffff8005250ec0c +drmn0: info: fence driver on ring 0 use gpu addr 0x0000000040000c00 and cpu addr 0x0xfffff800065ffc00 +drmn0: info: fence driver on ring 3 use gpu addr 0x0000000040000c0c and cpu addr 0x0xfffff800065ffc0c info: [drm] ring test on 0 succeeded in 4 usecs info: [drm] ring test on 3 succeeded in 1 usecs info: [drm] ib test on ring 0 succeeded in 0 usecs -- Steve