NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/49049: recent amd64 GENERIC kernels fail in i915_driver_load on Lenovo X61



On Thu, Aug 14, 2014 at 04:50:01PM +0000, NONAKA Kimihiro wrote:
> The following reply was made to PR kern/49049; it has been noted by GNATS.
> 
> From: NONAKA Kimihiro <nonakap%gmail.com@localhost>
> To: "gnats-bugs%netbsd.org@localhost" <gnats-bugs%netbsd.org@localhost>
> Cc: kern-bug-people%netbsd.org@localhost, 
>       "gnats-admin%netbsd.org@localhost" <gnats-admin%netbsd.org@localhost>, 
> "netbsd-bugs%netbsd.org@localhost" <netbsd-bugs%netbsd.org@localhost>
> Subject: Re: kern/49049: recent amd64 GENERIC kernels fail in i915_driver_load
>  on Lenovo X61
> Date: Fri, 15 Aug 2014 01:45:20 +0900
> 
...
>  Please try the following patch.
>  
>  -----
>  Index: sys/dev/pci/agp_i810.c
>  ===================================================================
>  RCS file: /cvsroot/src/sys/dev/pci/agp_i810.c,v
>  retrieving revision 1.112
>  diff -u -r1.112 agp_i810.c
>  --- sys/dev/pci/agp_i810.c    25 Jul 2014 23:05:54 -0000    1.112
>  +++ sys/dev/pci/agp_i810.c    14 Aug 2014 16:38:38 -0000
>  @@ -450,6 +450,7 @@
>           error = ENXIO;
>           goto fail1;
>       }
>  +    isc->size = mmadr_size;
>       isc->bst = isc->vga_pa.pa_memt;
>       error = bus_space_map(isc->bst, mmadr, isc->size, mmadr_flags,
>           &isc->bsh);
>  -----

  Wow, so simple, yet so effective.  Both the GENERIC and DRMKMS kernels boot
multiuser.  With GENERIC, I can't get X to start ("no devices detected"), at
least without a config file.  With DRMKMS, X starts and looks pretty normal,
though I haven't tried to do anything substantial with it.  I noticed that the
seconds part of the xclock (digital) display is mostly missing, though it seems
to show up one digit some of the time.  And the year field sometimes goes off
and on with the ticks.

  This is a huge improvement---thanks!


Home | Main Index | Thread Index | Old Index