Date: Fri, 17 Jul 2020 11:05:57 +0200 (CEST) From: Ronald Klop <ronald-lists@klop.ws> To: freebsd-x11@freebsd.org Subject: Re: vboxvideo module does not load Message-ID: <1164188649.16.1594976757897@localhost> In-Reply-To: <20200717103924.1aa1a7849fb925f7504129c4@bidouilliste.com> References: <791556969.17.1594974560193@localhost> <20200717103924.1aa1a7849fb925f7504129c4@bidouilliste.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Thanks for the quick answer. A recompile and kldload gave: Jul 17 11:01:18 sjakie pkg-static[7338]: drm-devel-kmod-5.3.g20200710 deinstalled Jul 17 11:01:19 sjakie pkg-static[7522]: drm-devel-kmod-5.3.g20200710 installed Jul 17 11:02:07 sjakie kernel: link_elf_obj: symbol ttm_bo_dma_acc_size undefined Jul 17 11:02:08 sjakie kernel: linker_load_file: /boot/modules/drm.ko - unsupported file type Jul 17 11:02:08 sjakie kernel: KLD vboxvideo.ko: depends on drmn - not available or version mismatch Jul 17 11:02:08 sjakie kernel: linker_load_file: /boot/modules/vboxvideo.ko - unsupported file type Regards, Ronald. Van: Emmanuel Vadot <manu@bidouilliste.com> Datum: vrijdag, 17 juli 2020 10:39 Aan: Ronald Klop <ronald-lists@klop.ws> CC: freebsd-x11@freebsd.org Onderwerp: Re: vboxvideo module does not load > > On Fri, 17 Jul 2020 10:29:20 +0200 (CEST) > Ronald Klop <ronald-lists@klop.ws> wrote: > > > Hi, > > > > I tried the vboxvideo module of drm-devel-kmod-5.3.g20200710. I get this error when kldload-ing the module. > > > > Jul 16 08:12:15 sjakie kernel: link_elf_obj: symbol drm_gem_vram_pin undefined > > Jul 16 08:12:16 sjakie kernel: linker_load_file: /boot/modules/vboxvideo.ko - unsupported file type > > > > Running on: > > FreeBSD sjakie 13.0-CURRENT FreeBSD 13.0-CURRENT #7 r363210M: Wed Jul 15 16:25:10 CEST 2020 builder@sjakie:/data/src/obj-freebsd-current/data/src/freebsd-current/amd64.amd64/sys/GENERIC-NODEBUG amd64 > > > > I tried the drm-devel-kmod package and also recompiled it with the /usr/src version of my running kernel. > > > > Is this an error on my side or is the undefined symbol something from the drm package? > > > > Regards, > > Ronald. > > No error on your side. > vboxvideo has switch to some vram helper code in drm.ko but I forgot > to add the files. I have no idea if it works as this wasn't tested but > you can patch with : > diff --git a/drm/Makefile b/drm/Makefile > index e9cee30de60c..e56b9343b94f 100644 > --- a/drm/Makefile > +++ b/drm/Makefile > @@ -38,6 +38,7 @@ SRCS= drm_atomic.c \ > drm_framebuffer.c \ > drm_gem.c \ > drm_gem_framebuffer_helper.c \ > + drm_gem_vram_helper.c \ > drm_hashtab.c \ > drm_hdcp.c \ > drm_ioctl.c \ > @@ -68,6 +69,7 @@ SRCS= drm_atomic.c \ > drm_sysfs.c \ > drm_vblank.c \ > drm_vma_manager.c \ > + drm_vram_helper_common.c \ > drm_writeback.c \ > linux_fb.c \ > tainted_linux_fb.c \ > > I'll do test over the weekend or early next week too. > > -- > Emmanuel Vadot <manu@bidouilliste.com> > > > From owner-freebsd-x11@freebsd.org Fri Jul 17 09:12:26 2020 Return-Path: <owner-freebsd-x11@freebsd.org> Delivered-To: freebsd-x11@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5864635E867 for <freebsd-x11@mailman.nyi.freebsd.org>; Fri, 17 Jul 2020 09:12:26 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx.blih.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B7QPP0ms3z3Y27 for <freebsd-x11@freebsd.org>; Fri, 17 Jul 2020 09:12:24 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1594977143; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=w7GYqPviEFfgAo1io1bJegsLKi7egC9xSkvR8+00NAc=; b=FqoVlcpw9G836bLzeDRT3BEwnKf5S6MtXwgLIPua3vp9NokbGjKQDDGN81HYtb9PtsKTNw BZW2jefucpPAq5cwXe1EqSvxToL//36u5yCAZ6vHC/TIKLroDF1COi+VtRBLe5qRGzkyKV QhrHpUZiebjgyHPW0o5bwWJ/CfTaFzs= Received: from skull.home.blih.net (lfbn-idf2-1-686-145.w86-247.abo.wanadoo.fr [86.247.139.145]) by mx.blih.net (OpenSMTPD) with ESMTPSA id 363374c4 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 17 Jul 2020 09:12:23 +0000 (UTC) Date: Fri, 17 Jul 2020 11:12:20 +0200 From: Emmanuel Vadot <manu@bidouilliste.com> To: Ronald Klop <ronald-lists@klop.ws> Cc: freebsd-x11@freebsd.org Subject: Re: vboxvideo module does not load Message-Id: <20200717111220.66edd4428696ce7d45d290d5@bidouilliste.com> In-Reply-To: <1164188649.16.1594976757897@localhost> References: <791556969.17.1594974560193@localhost> <20200717103924.1aa1a7849fb925f7504129c4@bidouilliste.com> <1164188649.16.1594976757897@localhost> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4B7QPP0ms3z3Y27 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=FqoVlcpw; dmarc=pass (policy=none) header.from=bidouilliste.com; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.155.74 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-3.06 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mx]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx:c]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-0.99)[-0.986]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[bidouilliste.com,none]; NEURAL_HAM_SHORT(-0.56)[-0.556]; NEURAL_HAM_MEDIUM(-1.02)[-1.015]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support <freebsd-x11.freebsd.org> List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-x11>, <mailto:freebsd-x11-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-x11/> List-Post: <mailto:freebsd-x11@freebsd.org> List-Help: <mailto:freebsd-x11-request@freebsd.org?subject=help> List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-x11>, <mailto:freebsd-x11-request@freebsd.org?subject=subscribe> X-List-Received-Date: Fri, 17 Jul 2020 09:12:26 -0000 On Fri, 17 Jul 2020 11:05:57 +0200 (CEST) Ronald Klop <ronald-lists@klop.ws> wrote: > Thanks for the quick answer. > > A recompile and kldload gave: > > Jul 17 11:01:18 sjakie pkg-static[7338]: drm-devel-kmod-5.3.g20200710 deinstalled > Jul 17 11:01:19 sjakie pkg-static[7522]: drm-devel-kmod-5.3.g20200710 installed > Jul 17 11:02:07 sjakie kernel: link_elf_obj: symbol ttm_bo_dma_acc_size undefined > Jul 17 11:02:08 sjakie kernel: linker_load_file: /boot/modules/drm.ko - unsupported file type > Jul 17 11:02:08 sjakie kernel: KLD vboxvideo.ko: depends on drmn - not available or version mismatch > Jul 17 11:02:08 sjakie kernel: linker_load_file: /boot/modules/vboxvideo.ko - unsupported file type > > Regards, > Ronald. Yeah I figured that there was other stuff needed, I'll have a look this weekend and let you know. Thanks for the report. > > Van: Emmanuel Vadot <manu@bidouilliste.com> > Datum: vrijdag, 17 juli 2020 10:39 > Aan: Ronald Klop <ronald-lists@klop.ws> > CC: freebsd-x11@freebsd.org > Onderwerp: Re: vboxvideo module does not load > > > > On Fri, 17 Jul 2020 10:29:20 +0200 (CEST) > > Ronald Klop <ronald-lists@klop.ws> wrote: > > > > > Hi, > > > > > > I tried the vboxvideo module of drm-devel-kmod-5.3.g20200710. I get this error when kldload-ing the module. > > > > > > Jul 16 08:12:15 sjakie kernel: link_elf_obj: symbol drm_gem_vram_pin undefined > > > Jul 16 08:12:16 sjakie kernel: linker_load_file: /boot/modules/vboxvideo.ko - unsupported file type > > > > > > Running on: > > > FreeBSD sjakie 13.0-CURRENT FreeBSD 13.0-CURRENT #7 r363210M: Wed Jul 15 16:25:10 CEST 2020 builder@sjakie:/data/src/obj-freebsd-current/data/src/freebsd-current/amd64.amd64/sys/GENERIC-NODEBUG amd64 > > > > > > I tried the drm-devel-kmod package and also recompiled it with the /usr/src version of my running kernel. > > > > > > Is this an error on my side or is the undefined symbol something from the drm package? > > > > > > Regards, > > > Ronald. > > > > No error on your side. > > vboxvideo has switch to some vram helper code in drm.ko but I forgot > > to add the files. I have no idea if it works as this wasn't tested but > > you can patch with : > > diff --git a/drm/Makefile b/drm/Makefile > > index e9cee30de60c..e56b9343b94f 100644 > > --- a/drm/Makefile > > +++ b/drm/Makefile > > @@ -38,6 +38,7 @@ SRCS= drm_atomic.c \ > > drm_framebuffer.c \ > > drm_gem.c \ > > drm_gem_framebuffer_helper.c \ > > + drm_gem_vram_helper.c \ > > drm_hashtab.c \ > > drm_hdcp.c \ > > drm_ioctl.c \ > > @@ -68,6 +69,7 @@ SRCS= drm_atomic.c \ > > drm_sysfs.c \ > > drm_vblank.c \ > > drm_vma_manager.c \ > > + drm_vram_helper_common.c \ > > drm_writeback.c \ > > linux_fb.c \ > > tainted_linux_fb.c \ > > > > I'll do test over the weekend or early next week too. > > > > -- > > Emmanuel Vadot <manu@bidouilliste.com> > > > > > > > _______________________________________________ > 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" -- Emmanuel Vadot <manu@bidouilliste.com> <manu@freebsd.org>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1164188649.16.1594976757897>