From owner-freebsd-current@FreeBSD.ORG Sun May 6 10:10:23 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DBCF41065670 for ; Sun, 6 May 2012 10:10:23 +0000 (UTC) (envelope-from tuchinsky@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4425C8FC15 for ; Sun, 6 May 2012 10:10:23 +0000 (UTC) Received: by obcni5 with SMTP id ni5so8803598obc.13 for ; Sun, 06 May 2012 03:10:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=DQBHrGNE4aL1r64RlAzmJCwBQWK1AFuwpl4GO33lORg=; b=dy5SEVt/NQGqQEZP6NnYH2mOKI5SA14IKxwTs47JxnJuP7rYePLUZ9W/11eZ8bTiZS xCWVTgH3P1DB2DUmeI+DWiAGBwFEGO7z84F2qKVWjqGlTWFyOe5Zu3Hcsee6c9AnthpT oFfgzoeTLw7LuYlkZA6PMhQtUVDEAKqWJS7/xLV2qjICUApC2X5IfHGbUwNTW9V5I3Tv J4q7eyLDaeaUmR/YavcApqElU666U8OdQD9eIRQKelreN2XLH8MTk1v+8zsGZoFZ8R5F CojSAgZCNFJ/3pX72mx7egCYWGo2PLkuDOfXy9/QJyKMVKdAqexyVdYo7QZPqoAjQrey ipRA== MIME-Version: 1.0 Received: by 10.182.46.36 with SMTP id s4mr6109994obm.58.1336299022939; Sun, 06 May 2012 03:10:22 -0700 (PDT) Received: by 10.60.64.69 with HTTP; Sun, 6 May 2012 03:10:22 -0700 (PDT) In-Reply-To: <201205060703.42274.erichfreebsdlist@ovitrap.com> References: <201205041029.24565.erichfreebsdlist@ovitrap.com> <4FA44CE2.3070005@gmail.com> <201205060703.42274.erichfreebsdlist@ovitrap.com> Date: Sun, 6 May 2012 14:10:22 +0400 Message-ID: From: Artem Tuchinsky To: Erich Dollansky Content-Type: text/plain; charset=UTF-8 Cc: matt , freebsd-current@freebsd.org Subject: Re: X220 and all.14.5.patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 May 2012 10:10:23 -0000 very strange, I have never had these errors. Here is my steps: 1) remove old source tree and obj - "rm -rf /usr/src && rm -rf /usr/obj" 2) checkout clean source - "csup -L 2 -g /etc/current-supfile" 3) edit /usr/src/sys/dev/drm/i915_suspend.c according to the FAQ, this line should look like - "__FBSDID("$FreeBSD$");" 4) apply patch - "patch -p1 -i" 5) I get a reject in i915_mem.c. I del this file, i915_mem.c.rej and i915_mem.c.orig too 6) build kernel Kernel compiles successfully, but i have some problems with Xorg - it consumes 100% cpu 2012/5/6 Erich Dollansky : > I downloaded a new source tree into an empty directory, applied the patch and get this now: > > drm_drv.o:(.data+0x100): undefined reference to `drm_gem_close_ioctl' > drm_drv.o:(.data+0x118): undefined reference to `drm_gem_flink_ioctl' > drm_drv.o:(.data+0x130): undefined reference to `drm_gem_open_ioctl' > drm_drv.o:(.data+0x2f8): undefined reference to `drm_setmaster_ioctl' > drm_drv.o:(.data+0x310): undefined reference to `drm_dropmaster_ioctl' > drm_drv.o:(.data+0xf28): undefined reference to `drm_mode_getresources' > drm_drv.o:(.data+0xf40): undefined reference to `drm_mode_getcrtc' > drm_drv.o:(.data+0xf58): undefined reference to `drm_mode_setcrtc' > drm_drv.o:(.data+0xf70): undefined reference to `drm_mode_cursor_ioctl' > drm_drv.o:(.data+0xf88): undefined reference to `drm_mode_gamma_get_ioctl' > drm_drv.o:(.data+0xfa0): undefined reference to `drm_mode_gamma_set_ioctl' > drm_drv.o:(.data+0xfb8): undefined reference to `drm_mode_getencoder' > drm_drv.o:(.data+0xfd0): undefined reference to `drm_mode_getconnector' > drm_drv.o:(.data+0xfe8): undefined reference to `drm_mode_attachmode_ioctl' > drm_drv.o:(.data+0x1000): undefined reference to `drm_mode_detachmode_ioctl' > drm_drv.o:(.data+0x1018): undefined reference to `drm_mode_getproperty_ioctl' > drm_drv.o:(.data+0x1030): undefined reference to `drm_mode_connector_property_set_ioctl' > drm_drv.o:(.data+0x1048): undefined reference to `drm_mode_getblob_ioctl' > drm_drv.o:(.data+0x1060): undefined reference to `drm_mode_getfb' > drm_drv.o:(.data+0x1078): undefined reference to `drm_mode_addfb' > drm_drv.o:(.data+0x1090): undefined reference to `drm_mode_rmfb' > drm_drv.o:(.data+0x10a8): undefined reference to `drm_mode_page_flip_ioctl' > drm_drv.o:(.data+0x10c0): undefined reference to `drm_mode_dirtyfb_ioctl' > drm_drv.o:(.data+0x10d8): undefined reference to `drm_mode_create_dumb_ioctl' > drm_drv.o:(.data+0x10f0): undefined reference to `drm_mode_mmap_dumb_ioctl' > drm_drv.o:(.data+0x1108): undefined reference to `drm_mode_destroy_dumb_ioctl' > drm_drv.o:(.data+0x1120): undefined reference to `drm_mode_getplane_res' > drm_drv.o:(.data+0x1138): undefined reference to `drm_mode_getplane' > drm_drv.o:(.data+0x1150): undefined reference to `drm_mode_setplane' > drm_drv.o:(.data+0x1168): undefined reference to `drm_mode_addfb2' > drm_drv.o:(.data+0x1890): undefined reference to `drm_gem_mmap_single' > > and many more errors like this. > > I also did this > > I get a reject in i915_mem.c. > Remove this file, also remove i915_mem.c.rej, i915_mem.c.orig. > > as stated in the Wiki but then make complains about not finding i915_mem.c. After a touch i915_mem.c, it compiles but does not link. > > I will investigate further now. > > Erich -- wBR, Artem Tuchinsky