From owner-freebsd-x11@freebsd.org Thu Sep 27 20:35:40 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 295D510B9776 for ; Thu, 27 Sep 2018 20:35:40 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) (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 B0E61768E3 for ; Thu, 27 Sep 2018 20:35:39 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: by mail-wm1-x335.google.com with SMTP id z16-v6so120467wmi.3 for ; Thu, 27 Sep 2018 13:35:39 -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=pvX2qHgUHBuAAm2vexLzRHEYCQRcrYU2ZwuG9Z7KLUU=; b=MBBVCXxjk6VFvoKtx9O4CwNpuHY+lsh0zvM22xZh9d7fGECR1lc6RxM8+dLrHQBOYN bHT7RBo6U1JwuDDjDgR8WMp0CZWvlh0Y+XdRk21PBo37ZYoDxGfhsTfpL/HWjDB+wLXY pGZ/nmm6SFnQf6K/Z1OgEmlgGPYKvF+zFEu98B4+/LHLQCi/Gx8U1e0SneiHFEwaCrgb +kJLVlr5HkgwLeRcU5MjUB4GOR/t+J+PpMPqHeoedZzHJjHVXA920c2bu2PZIHf2P9yJ iUkjKuOiYXaWYMSfQ9MZE0VhkBXYZJgGTKBjb7DuNn+li7lAU2lWeE1/ux4Yr62DUQSp hZTQ== 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=pvX2qHgUHBuAAm2vexLzRHEYCQRcrYU2ZwuG9Z7KLUU=; b=Sxkk/O2KSgYV+9eUCTrLdIewc1rQBnranQXiT4jtit5kff48hTfL+TCelsbMwKKj9p 3UAyihYOEyJZyeaSRoc5E+onCKqgBkt0vp0C8MsgixtUp/iAMqDWGkO6gHykbej6qAHB 6iX8sL1jPhCNCJcpf2mj9wWkiapI8PmjKBho923LhWlRyriGXatDqVcjhY2/uK8C90o8 dj/pT2asdGITrxpRXN7mcuKKoj9NwjOV0HWwPto8t0Nck3x+tpyCrPjj2txMM7tN/285 mW6AU0sxHbyz8WihWbhyUBaYvAh6OqvguJvuNHqX2lZM72AKuu+TkwAOp38Bxr+GyosN pV6A== X-Gm-Message-State: ABuFfogMMowBH0tfE0lf69AIzUGEE9qeXDIByG1A5y4qqFUzWmEp39mf 4Dl5mP1K2za8gAawntiWlJl5oboamARkzbdIuhyr6Hdn X-Google-Smtp-Source: ACcGV605pyJ7UmmYO2M/Mh/jd8IfaAq4v0jHQUN8qFDU65hRXFrgKwJysdowsOfb7C4LrbEybBQsdyK1Z/NoS7zSbzc= X-Received: by 2002:a1c:a795:: with SMTP id q143-v6mr150975wme.65.1538080538228; Thu, 27 Sep 2018 13:35:38 -0700 (PDT) MIME-Version: 1.0 References: <20180926170105.GA8906@troutmask.apl.washington.edu> <20180926232051.GA13774@troutmask.apl.washington.edu> <20180927014128.GA14820@troutmask.apl.washington.edu> <20180927190409.GA27756@troutmask.apl.washington.edu> <20180927201928.GA86166@troutmask.apl.washington.edu> In-Reply-To: From: Johannes Lundberg Date: Thu, 27 Sep 2018 13:35:01 -0700 Message-ID: Subject: Re: fence_wait returned with error -512 To: Niclas Zeising Cc: Steve Kargl , x11-list freebsd 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: Thu, 27 Sep 2018 20:35:40 -0000 Change here https://github.com/FreeBSDDesktop/freebsd-base/commit/8efc2b3f05053bd7c6d2c= 0b6e0fbde9ffc58bbe5 We need to patch drm-devel and drm-legacy. drm-{stable,next} does not use these macros so they don't need change. I don't want to add more conditions in the code so devel and legacy is >=3D 338948. I'll do the patch today. Let's continue this on gitter. On Thu, Sep 27, 2018 at 1:25 PM Niclas Zeising wrote: > On 9/27/18 10:19 PM, Steve Kargl wrote: > > On Thu, Sep 27, 2018 at 10:17:02PM +0200, Niclas Zeising wrote: > >> On 9/27/18 9:04 PM, Steve Kargl wrote: > >>> On Thu, Sep 27, 2018 at 09:13:46AM +0200, Niclas Zeising wrote: > >>>> On 9/27/18 3:41 AM, Steve Kargl wrote: > >>>>> On Wed, Sep 26, 2018 at 04:45:10PM -0700, Johannes Lundberg wrote: > >>>>>> > >>>>>> I=E2=80=99ve attached what I think is the correct ports patch for = this if > you want > >>>>>> to build yourself. I don=E2=80=99t know when the package will be u= pdated > but it > >>>>>> will definitely be before 12 is released. > >>>>>> > >>>>>> You can also always clone the git repo and build from there for > latest > >>>>>> version. > >>>>>> github.com/freebsddesktop/drm-legacy > >>>>>> > >>>>>> I don=E2=80=99t have the hardware to test myself so I=E2=80=99d be= grateful if you > can give > >>>>>> the patch a try and see if firmware loading works. > >>>>>> > >>>>> > >>>>> I'll see if I can pull the source tomorrow. > >>>>> > >>>> > >>>> Hi! > >>>> The port has been updated with the latest version of > drm-legacy-kmod. I > >>>> don't exactly know when packages are updated, but you can build it > from > >>>> ports in the meantime. > >>>> Regards > >>> > >>> Ugh. Seems I have to build a new world. :( > >>> > >>> > >>> --- i915_drv.o --- > >>> > /usr/ports/graphics/drm-legacy-kmod/work/drm-legacy-226834b/src/dev/drm2/= i915/i915_drv.c:1240:26: > error: too few arguments provided to function-like macro invocation > >>> nitems(pciidlist) - 1); > >>> ^ > >>> /usr/src/sys/sys/module.h:181:9: note: macro 'MODULE_PNP_INFO' define= d > here > >>> #define MODULE_PNP_INFO(d, b, unique, t, l, n) > \ > >>> ^ > >>> > /usr/ports/graphics/drm-legacy-kmod/work/drm-legacy-226834b/src/dev/drm2/= i915/i915_drv.c:1239:1: > error: type specifier missing, defaults to 'int' [-Werror,-Wimplicit-int] > >>> MODULE_PNP_INFO("U32:vendor;U32:device;P:#;D:#", vgapci, i915, > pciidlist, > >>> ^ > >>> 2 errors generated. > >>> *** [i915_drv.o] Error code 1 > >>> > >> > >> Or someone broke something inadvertently. Which revision are you > >> currently on? > > > > % uname -a > > FreeBSD troutmask.apl.washington.edu 12.0-ALPHA7 FreeBSD 12.0-ALPHA7 > r338862 HPC amd64 > > > > You probably need to move past r338948, I'm afraid. I'm not sure that > drm-legacy-kmod can be changed to work both on the before and after > version. > Regards > -- > Niclas >