From owner-freebsd-x11@freebsd.org Wed Sep 26 21:32:37 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 2EFFC10B7063 for ; Wed, 26 Sep 2018 21:32:37 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 977748F5FB for ; Wed, 26 Sep 2018 21:32:36 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: by mail-wr1-x42d.google.com with SMTP id b11-v6so380226wru.9 for ; Wed, 26 Sep 2018 14:32:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=p66r3vuH6NGz19+/kDnBIoA/EfujSjcKCSueZ8czaWA=; b=TC1IfzZHHhymU7oS56jE7lKECKFiSQ9UXzY76ZacoqbPHf5/Be+re5/TXzH63tnLD4 ULPRu8OClYzbvmTv1CYoEACKmbWrWw8LNYJF9ihkJeoaFD4EMmpb9Xk0OLmcGV3yWMP/ KhtWwrJgOlnJSjL6YXhK3ed28a9KUNTupNIqPwdJTtV3tNkp0Z3fNllRh3dTRkLS+TDg 1uBPegYsEIk6fV365rv0c0PF9HlpsnqkbK4LB476slkPL1HKCz8AYkbOnScvofXOVlPf pcNRHPmXIDXjvd692SUY2sMoYwNEITst74VZoQEmVdV+AnP2tT+aigtan5nT2lZuYEHF iqGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=p66r3vuH6NGz19+/kDnBIoA/EfujSjcKCSueZ8czaWA=; b=Opob9VhGUWSK3+u9At3LFx68FHx2dUR4cXTx2g+oVlC8sh8tUMBdqxdX2PxDtaYDu4 XcgUiJz+uAIzE7Mbya93OB2FRJP5rBtJs/Cl3MS7rt4QJUz8YBuHjhBizZIKIaFfcntI cJe3c1fDrzg/EYzNZZG+vl6t2orA+x9JsZsPPXD1aNBT/5BnCdtkxxCXg/EhWvxT9pXy IIYF7CglyXdmEo0gMzqF72/buHtBmSNZUHtdfj2URfPiG17tOU43E1uFhpFrKdXh9zs9 K9E4wkrl5UV1D59Moq/dUOClxbFXH81u+FYGXnRjq7JNmTF+nqRCkFyoR7E5W2w2n6Qh G8Kg== X-Gm-Message-State: ABuFfohm1A9JNaYEE7xBq+WYLgPh6b/asW6ulxnjlnFDe/1qbZOtt77r 2ErfEwdrH+m5eAi6EueJVddb7jz5TETm03cohDeVdA== X-Google-Smtp-Source: ACcGV60JACsbQg/fGGE7xK7I/aNHSaBWaOyDKZr7Fpymlwq44D5lx6c1TIyP9HAcWEDuzGesk2Z/ryGzZOcKmaoKleg= X-Received: by 2002:adf:9e06:: with SMTP id u6-v6mr6335139wre.51.1537997555139; Wed, 26 Sep 2018 14:32:35 -0700 (PDT) MIME-Version: 1.0 References: <20180926170105.GA8906@troutmask.apl.washington.edu> In-Reply-To: <20180926170105.GA8906@troutmask.apl.washington.edu> From: Johannes Lundberg Date: Wed, 26 Sep 2018 14:32:24 -0700 Message-ID: Subject: Re: fence_wait returned with error -512 To: sgk@troutmask.apl.washington.edu Cc: freebsd-x11@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.27 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, 26 Sep 2018 21:32:37 -0000 On Wed, Sep 26, 2018 at 10:01 Steve Kargl wrote: > Because drm2 in the base system is going away, I install > drm-stable-kmod. In doing so, I also removed the old drm2 > modules under /boot/kernel to ensure that I picked up the > modules from /boot/modules. To /etc/rc.conf, I added the > line 'kld_list=3D/bootmodules/radeonkms.ko'. Upon reboot, > I see > > troutmask:kargl[203] kldstat > Id Refs Address Size Name > 1 68 0xffffffff80200000 10033d8 kernel > 2 1 0xffffffff813af000 1e1c8 geom_eli.ko > 3 2 0xffffffff813ce000 4ec40 crypto.ko > 4 2 0xffffffff8141d000 f718 zlib.ko > 5 1 0xffffffff8142d000 531e8 linux.ko > 6 3 0xffffffff81481000 8ed8 linux_common.ko > 7 1 0xffffffff8148a000 f800 tmpfs.ko > 8 1 0xffffffff81619000 471c linprocfs.ko > 9 1 0xffffffff8161e000 158658 radeonkms.ko > 10 1 0xffffffff81777000 70fb0 drm.ko > 11 2 0xffffffff817e8000 b008 agp.ko > 12 3 0xffffffff817f4000 d220 linuxkpi_gplv2.ko > 13 2 0xffffffff81802000 6c0 debugfs.ko > 14 1 0xffffffff81803000 12f7 radeon_CAICOS_pfp_bin.ko > 15 1 0xffffffff81805000 16f5 radeon_CAICOS_me_bin.ko > 16 1 0xffffffff81807000 d71 radeon_BTC_rlc_bin.ko > 17 1 0xffffffff81808000 5f95 radeon_CAICOS_mc_bin.ko > 18 1 0xffffffff8180e000 6137 radeon_CAICOS_smc_bin.ko > 19 1 0xffffffff81815000 32293 radeon_SUMO_uvd_bin.ko > 20 1 0xffffffff81848000 df0 cpuctl.ko > 21 1 0xffffffff81849000 23f8 intpm.ko > > and 'dmesg | grep drm' reveals > > [drm] Initialized > [drm] radeon kernel modesetting enabled. > drmn0: on vgapci0 > vgapci0: child drmn0 requested pci_enable_io > vgapci0: child drmn0 requested pci_enable_io > [drm] initializing kernel modesetting (CAICOS 0x1002:0x6779 0x1092:0x6450 > 0x00). > [drm] register mmio base: 0xFEA20000 > [drm] register mmio size: 131072 > [drm:radeon_device_init] Unable to find PCI I/O BAR > [drm:radeon_atombios_init] Unable to find PCI I/O BAR; using MMIO for ATO= M > IIO > drmn0: VRAM: 1024M 0x0000000000000000 - 0x000000003FFFFFFF (1024M used) > drmn0: GTT: 1024M 0x0000000040000000 - 0x000000007FFFFFFF > [drm] Detected VRAM RAM=3D1024M, BAR=3D256M > [drm] RAM width 64bits DDR > [drm] radeon: 1024M of VRAM memory ready > [drm] radeon: 1024M of GTT memory ready. > [drm] Loading CAICOS Microcode > [drm] Internal thermal controller with fan control > [drm] radeon: dpm initialized > [drm] GART: num cpu pages 262144, num gpu pages 262144 > [drm] enabling PCIE gen 2 link speeds, disable with radeon.pcie_gen2=3D0 > [drm] PCIE GART of 1024M enabled (table at 0x0000000000162000). > drmn0: WB enabled > drmn0: fence driver on ring 0 use gpu addr 0x0000000040000c00 and cpu add= r > 0x0xfffff8000789fc00 > drmn0: fence driver on ring 3 use gpu addr 0x0000000040000c0c and cpu add= r > 0x0xfffff8000789fc0c > drmn0: fence driver on ring 5 use gpu addr 0x0000000000072118 and cpu add= r > 0x0xfffff800c0072118 > [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). > [drm] Driver supports precise vblank timestamp query. > drmn0: radeon: MSI limited to 32-bit > [drm] radeon: irq initialized. > [drm] ring test on 0 succeeded in 4 usecs > [drm] ring test on 3 succeeded in 6 usecs > [drm] ring test on 5 succeeded in 3 usecs > [drm] UVD initialized successfully. > [drm] ib test on ring 0 succeeded in 0 usecs > [drm] ib test on ring 3 succeeded in 0 usecs > [drm] ib test on ring 5 succeeded > [drm] hw_i2c forced on, you may experience display detection problems! > [drm] Connector HDMI-A-1: get mode from tunables: > [drm] - kern.vt.fb.modes.HDMI-A-1 > [drm] - kern.vt.fb.default_mode > [drm] Connector DVI-I-1: get mode from tunables: > [drm] - kern.vt.fb.modes.DVI-I-1 > [drm] - kern.vt.fb.default_mode > [drm] Connector VGA-1: get mode from tunables: > [drm] - kern.vt.fb.modes.VGA-1 > [drm] - kern.vt.fb.default_mode > [drm] Radeon Display Connectors > [drm] Connector 0: > [drm] HDMI-A-1 > [drm] HPD2 > [drm] DDC: 0x6460 0x6460 0x6464 0x6464 0x6468 0x6468 0x646c 0x646c > [drm] Encoders: > [drm] DFP1: INTERNAL_UNIPHY1 > [drm] Connector 1: > [drm] DVI-I-1 > [drm] HPD4 > [drm] DDC: 0x6450 0x6450 0x6454 0x6454 0x6458 0x6458 0x645c 0x645c > [drm] Encoders: > [drm] DFP2: INTERNAL_UNIPHY > [drm] Connector 2: > [drm] VGA-1 > [drm] DDC: 0x6430 0x6430 0x6434 0x6434 0x6438 0x6438 0x643c 0x643c > [drm] Encoders: > [drm] CRT1: INTERNAL_KLDSCP_DAC1 > [drm] fb mappable at 0xC0363000 > [drm] vram apper at 0xC0000000 > [drm] size 8294400 > [drm] fb depth is 24 > [drm] pitch is 7680 > name=3Ddrmn0 flags=3D0x0 stride=3D7680 bpp=3D32 > drmn0: fb0: radeondrmfb frame buffer device > [drm] Initialized radeon 2.48.0 20080528 for drmn on minor 0 > > My console and /var/log/messages now contains a slew of > > fence_wait returned with error -512 > > This message is coming from /boot/modules/drm.ko > > % strings /boot/modules/drm.ko | grep fence_wait > fence_wait returned with error %d > > Why? Hi >From what I found on Wikipedia your hardware seem to be from 2010. The new drm based on linuxkpi is not guaranteed to work with that old hardware. If drm2 worked for you before it=E2=80=99s best to use the pkg drm-legacy-kmod= (which is the same as drm2 in base). Firmware loading is broken but an update is on its way to fix this. /Johannes > > -- > Steve > _______________________________________________ > 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" >