From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.7 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37D81C04EB8 for ; Mon, 10 Dec 2018 16:50:30 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BEEE220672 for ; Mon, 10 Dec 2018 16:50:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=thesparktree-com.20150623.gappssmtp.com header.i=@thesparktree-com.20150623.gappssmtp.com header.b="cXUO3RjE" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BEEE220672 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=thesparktree.com Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.91) (envelope-from ) id 1gWOku-00020c-Ht; Mon, 10 Dec 2018 11:50:04 -0500 Received: from mail-vs1-xe33.google.com ([2607:f8b0:4864:20::e33]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gWOks-00020H-4j for kernelnewbies@kernelnewbies.org; Mon, 10 Dec 2018 11:50:02 -0500 Received: by mail-vs1-xe33.google.com with SMTP id y27so7068933vsi.1 for ; Mon, 10 Dec 2018 08:50:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thesparktree-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=fRAcT+Dhh+zwWewFJDFITme1Poz2F8Q3vC80NyTjPMw=; b=cXUO3RjERijNVC/itElcgsSyIMmV+QpKnFvS8Mei+pkDIfzbktj95BFPmEgX1eXPP+ EYIHyZmRS3xwor32nnwvBtY3O3b6Ur54Lr3ZhlzEjbEmmQsgMX1tNTyXBIOO/UF9PLan Tp+Rzom8kCIwcs+emIJMFqxx0nY7PCuAqrhQCfx7/zmDWRmWR0g1t748n47+VX2WMott uQz587jOVUKKphKWCW7/sSbnSUM6GWJwc+1Lj2aDj42CiszToTzLGS2tVdO8Pzj6x2IW xacnXQNrttVG5/IeVJGMCcGCouCfMBepwjhAguX1o0sXM9Y/kv62KS5CeeTK45Z89pXs gsyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=fRAcT+Dhh+zwWewFJDFITme1Poz2F8Q3vC80NyTjPMw=; b=BsMefAfU4W7T6oiCTsWnE8GP4SNDVay0DxkEY+fCSBF0ZMRdMQUSxs3j+36lj4cwWF R5mChgFNNH43TZ+8M7UWfrK24vWptCVIWN9SprWLMoXyIHM6nd6r2JyNrHaQd0rOaKjl /mYc74FVzLwWlw+q+hRVudp3HcExCvg0oD2zmUqjcX6YIY317h3p57PzNTESx0UFZ/89 LR+OB06Idwao08k//0fcXKUolTH1Es5U5dHU87Xw6XqAjTO9vV5Fcs1xQJwYnstdeER1 k+WiIHBV8+Eb4sJpKTmJxW0dhTDMisrZldngANC120YO/xirJveWdAzrC3Qurracj+9i rLEw== X-Gm-Message-State: AA+aEWa8YJshr6W1iGUGIUq6tADIHlmc2/zircsWTt9LCEuaZyeHmPIy S1J6jGGku0vSrzGbCxINeLTqZG4cFkkNR0k7XJk5+kR3H64= X-Google-Smtp-Source: AFSGD/V8ectaUKyuUhFRETeDmg04YTevKj8og/VrYfU8iWUs4EvPVbHQ7vFi68pdaFBzQ1QGOsMUQ5K8jAli6iFye2M= X-Received: by 2002:a67:f793:: with SMTP id j19mr5128577vso.196.1544460598761; Mon, 10 Dec 2018 08:49:58 -0800 (PST) MIME-Version: 1.0 From: Jason Kulatunga Date: Mon, 10 Dec 2018 09:49:47 -0700 Message-ID: Subject: Cannot compile i915 kernel driver as a module on CoreOS To: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============6139784943330556115==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============6139784943330556115== Content-Type: multipart/alternative; boundary="0000000000005bdd5f057cadc19b" --0000000000005bdd5f057cadc19b Content-Type: text/plain; charset="UTF-8" Hey, I'm working on a project to enable the i915 kernel driver in CoreOS so that I can do Hardware Transcoding inside containers. I want to package this kernel driver as a module, rather than rebuilding the whole kernel because CoreOS does automatic kernel updates, which would eventually override my changes. I've been able to determine the kernel config options necessary to enable the i915 driver, specifically I needed to enable: - Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) - Intel 8xx/9xx/G3x/G4x/HD Graphics However after configuring both as modules, and compiling I get the following "Unknown Symbol" errors when I attempt to modprobe the .ko modules [ 4411.274987] drm: Unknown symbol hdmi_vendor_infoframe_init (err 0) [ 4411.275703] drm: Unknown symbol dma_fence_add_callback (err 0) [ 4411.276399] drm: Unknown symbol dma_buf_attach (err 0) [ 4411.277241] drm: Unknown symbol dma_fence_default_wait (err 0) [ 4411.277955] drm: Unknown symbol dma_buf_export (err 0) [ 4411.278617] drm: Unknown symbol dma_buf_map_attachment (err 0) [ 4411.279285] drm: Unknown symbol dma_fence_remove_callback (err 0) [ 4411.280108] drm: Unknown symbol dma_buf_unmap_attachment (err 0) [ 4411.280813] drm: Unknown symbol dma_fence_context_alloc (err 0) [ 4411.281467] drm: Unknown symbol dma_fence_signal (err 0) [ 4411.282152] drm: Unknown symbol dma_buf_get (err 0) [ 4411.282811] drm: Unknown symbol dma_buf_put (err 0) [ 4411.283376] drm: Unknown symbol dma_buf_fd (err 0) [ 4411.284019] drm: Unknown symbol dma_fence_init (err 0) [ 4411.284745] drm: Unknown symbol hdmi_avi_infoframe_init (err 0) [ 4411.285634] drm: Unknown symbol dma_fence_enable_sw_signaling (err 0) [ 4411.286390] drm: Unknown symbol dma_buf_detach (err 0) [ 4411.287144] drm: Unknown symbol dma_fence_release (err 0) [ 4411.287922] drm: Unknown symbol sync_file_get_fence (err 0) [ 4411.288665] drm: Unknown symbol sync_file_create (err 0) >From what I've been able to figure out, neither the required HDMI (CONFIG_HDMI) or DMA kernel options can be built as modules. eg. when I look at the drivers/video Module.symvers file I dont see hdmi_vendor_infoframe_init even though the drivers/video/hdmi.c file exports it. hdmi.c is behind a boolean (not tristate) config option CONFIG_HDMI.a Am I SOL? Should I go back to trying to build the whole CoreOS kernel with built-ins rather than as kernel modules? I'm still really new to all this kernel stuff, I'm hoping theres something simple I'm missing FYI, the kernel version I'm building is 4.14.81 (specifically 4.14.81-coreos from https://github.com/coreos/linux/tree/v4.14.81-coreos if that helps). This issue does not seem to be CoreOS specific, other than the fact that their base kernel does not include the HDMI or DMA options enabled. Thanks for all your help! --0000000000005bdd5f057cadc19b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hey,

I'm working on a project= to enable the i915 kernel driver in CoreOS so that I can do Hardware Trans= coding inside containers.
I want to package this kernel driver as a mod= ule, rather than rebuilding the whole kernel because CoreOS does automatic = kernel updates, which would eventually override my changes.

I'v= e been able to determine the kernel config options necessary to enable the = i915 driver, specifically I needed to enable:
  • Direct Rendering = Manager (XFree86 4.1.0 and higher DRI support)=C2=A0
  • Intel 8xx/= 9xx/G3x/G4x/HD Graphics
However after configuring both as modules,= and compiling I get the following "Unknown Symbol" errors when I= attempt to modprobe the .ko modules

[ 4411.274987] =
drm: Unknown symbol hdmi_vendor_infoframe_init (err 0)
[ 4411.275703] drm: Unknown symbol dma_fence_add_callback (err 0)
[ 4411.276399] drm: Unknown symbol dma_buf_attach (err 0)
[ 4411.277241] drm: Unknown symbol dma_fence_default_wait (err 0)
[ 4411.277955] drm: Unknown symbol dma_buf_export (err 0)
[ 4411.278617] drm: Unknown symbol dma_buf_map_attachment (err 0)
[ 4411.279285] drm: Unknown symbol dma_fence_remove_callback (err 0)
[ 4411.280108] drm: Unknown symbol dma_buf_unmap_attachment (err 0)
[ 4411.280813] drm: Unknown symbol dma_fence_context_alloc (err 0)
[ 4411.281467] drm: Unknown symbol dma_fence_signal (err 0)
[ 4411.282152] drm: Unknown symbol dma_buf_get (err 0)
[ 4411.282811] drm: Unknown symbol dma_buf_put (err 0)
[ 4411.283376] drm: Unknown symbol dma_buf_fd (err 0)
[ 4411.284019] drm: Unknown symbol dma_fence_init (err 0)
[ 4411.284745] drm: Unknown symbol hdmi_avi_infoframe_init (err 0)
[ 4411.285634] drm: Unknown symbol dma_fence_enable_sw_signaling (err 0)
[ 4411.286390] drm: Unknown symbol dma_buf_detach (err 0)
[ 4411.287144] drm: Unknown symbol dma_fence_release (err 0)
[ 4411.287922] drm: Unknown symbol sync_file_get_fence (err 0)
[ 4411.288665] drm: Unknown symbol sync_file_create (err 0)

= >From what I've been able to figure out, neither the required HDMI (CONF= IG_HDMI) or DMA kernel options can be built as modules.

eg. when I = look at the drivers/video Module.symvers file I dont see hdmi_vendor_infofr= ame_init even though the drivers/video/hdmi.c file exports it.
hdmi.c i= s behind a boolean (not tristate) config option CONFIG_HDMI.a

Am I = SOL? Should I go back to trying to build the whole CoreOS kernel with built= -ins rather than as kernel modules?

I'm still really new to all= this kernel stuff, I'm hoping theres something simple I'm missing =

FYI, the kernel version I'm building is 4.14.81 (specifically 4= .14.81-coreos from=C2=A0https://github.com/coreos/linux/tree/v4.14.81-coreos if t= hat helps). This issue does not seem to be CoreOS specific, other than the = fact that their base kernel does not include the HDMI or DMA options enable= d.=C2=A0=C2=A0

Thanks for all your help!
--0000000000005bdd5f057cadc19b-- --===============6139784943330556115== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============6139784943330556115==--