Re: Confused about i915kms on 12.1

2019-10-13 Thread Chuck Tuffli
On Sun, Oct 13, 2019 at 5:08 PM John Kennedy  wrote:
...
>   In 23.2.3.2 ("Upgrading Packages After a Major Version Upgrade") they say
> to do this (among other things):
>
> pkg-static upgrade -f

FWIW, I went back and did this but still seem to get the older kmod

>   In any case, I'm glad we got you up and running.

Again, many thanks for your help.

--chuck
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Confused about i915kms on 12.1

2019-10-13 Thread John Kennedy
On Sun, Oct 13, 2019 at 02:42:46PM -0700, Chuck Tuffli wrote:
> Many thanks to Pete and John. See inline below
> ...
> I upgraded the box per the release announcement:
>freebsd-update upgrade -r 12.1-RC1
>freebsd-update install
> with the prescribed reboots and installs. Afterwards, I did a pkg
> update and pkg upgrade. Note, I don't install anything from ports.

  The FreeBSD handbook might have the extra bits you were missing:


https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-freebsdupdate.html

  Bonus note: the 2nd "freebsd-update install" after the reboot to delete some 
now-obsolete files.

  The announcement really doesn't talk about upgrading ports.

  In 23.2.3.2 ("Upgrading Packages After a Major Version Upgrade") they say
to do this (among other things):

pkg-static upgrade -f

  So pkg-static (vs pkg) in case you have shared-library problems with the
dynamically-linked pkg, and then -f to "force" the upgrade.  That may be
the missing piece here in getting rid of your previous-kernel packages
even if they might otherwise run just fine.

> $ pkg info drm-fbsd12.0-kmod-4.16.g20190814 | grep -i version
> Version: 4.16.g20190814
> FreeBSD_version: 1200086
> This version is for FreeBSD 12.0.

  Clearly the old 12.0-* kernel.

> The advice I received was 'you need to build drm-kmod from ports'. I
> don't typically have a ports tree, so I did:
> # portsnap fetch
> # portsnap extract
> # cd /usr/ports/graphics/drm-kmod
> # make && make install
> After doing the makes, my immediate thought was 'that finished too fast'.

  That is apparently a meta-port that doesn't behave like you'd expect.  I
had to do a similar thing for myself.  But I think the "-f" might have
fixed it for you above, if the packages were built on the repo (below).

> If, instead, I follow Pete's advice and run make package in
> /usr/ports/graphics/drm-fbsd12.0-kmod, a) make appears to do something
> and b) the resulting package allows my laptop to boot to a graphical
> desktop. And the FreeBSD_version looks correct:
> $ pkg info drm-fbsd12.0-kmod-4.16.g20190814 | grep -i version
> Version: 4.16.g20190814
> FreeBSD_version: 1201000
> This version is for FreeBSD 12.0.
> 
> I did go back and verify that a pkg install drm-kmod appears to
> install the same (older) i915kms.ko as pkg install drm-fbsd12.0-kmod.
> Out of curiosity, is the new world order that I'll always need to
> compile drm-kmod from ports, or did I hit a window where packages
> hadn't quite caught up to ports?

  I don't know.  Finding out which package your .ko file came from would
tell us a bit there.  I've just got in the habit of build all my packages
myself because I can get into the bleeding-edge area and run into problems
like that.

  I suspect that the official answer would be "hell no" and this is the
type of experience that the FreeBSD folks like to see for the purposes
off adding things to UPDATING and such.  But I know that it is going to
take a while for their poudraire to grid through all the ports

  In any case, I'm glad we got you up and running.
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Confused about i915kms on 12.1

2019-10-13 Thread Chuck Tuffli
Many thanks to Pete and John. See inline below

On Sun, Oct 13, 2019 at 1:13 PM John Kennedy  wrote:
>
> On Sun, Oct 13, 2019 at 12:35:41PM -0700, Chuck Tuffli wrote:
> > I've been running 12.0-REL on my X1 Carbon 3rd Gen happily with xorg,
> > but after installing 12.1-RC1, the laptop reboots when loading the
> > i915kms driver. If I comment out the line in /etc/rc.conf:
> >
> > kld_list="/boot/modules/i915kms.ko"
> >
> > the laptop boots, albeit without graphics. The above comes from the
> > 12.0R release notes, and I didn't see any updates to this in the 12.1
> > release notes. I've tried drm-kmod from both ports and packages with
> > the same result. Did something change with 12.1? What should I check?
> > TIA
>
>   Not sure how your upgraded your box, but make sure that the driver is
> compiled for the new kernel.  KBI breakage can easily behave like that.

I upgraded the box per the release announcement:
   freebsd-update upgrade -r 12.1-RC1
   freebsd-update install
with the prescribed reboots and installs. Afterwards, I did a pkg
update and pkg upgrade. Note, I don't install anything from ports.

>   I won't be in front of a box with that setup until Monday, but from
> memory, graphics/drm-kmod pulls in graphics/drm-fbsd12.0-kmod (at
> least on my system with it's build-in Intel video card).
>
>   If you do something like this, but substitute your .ko file for m4
> below, you should be able to validate the package it came from and the
> kernel version it was targeted at:
>
> $ pkg which /usr/local/bin/*m4
> /usr/local/bin/gm4 was installed by package m4-1.4.18_1,1
>
> $ pkg info m4 | grep -i version
> Version: 1.4.18_1,1
> FreeBSD_version: 1201000
>
>   That 1201000 means that it was compiled for 12.1 in my case.
$ pkg info drm-fbsd12.0-kmod-4.16.g20190814 | grep -i version
Version: 4.16.g20190814
FreeBSD_version: 1200086
This version is for FreeBSD 12.0.

>   Have you overridden the default package location, leaving it aimed at 12.0?

Nope

>   What do you mean by trying it from "ports"?  How did you refresh that?

The advice I received was 'you need to build drm-kmod from ports'. I
don't typically have a ports tree, so I did:
# portsnap fetch
# portsnap extract
# cd /usr/ports/graphics/drm-kmod
# make && make install
After doing the makes, my immediate thought was 'that finished too fast'.
If, instead, I follow Pete's advice and run make package in
/usr/ports/graphics/drm-fbsd12.0-kmod, a) make appears to do something
and b) the resulting package allows my laptop to boot to a graphical
desktop. And the FreeBSD_version looks correct:
$ pkg info drm-fbsd12.0-kmod-4.16.g20190814 | grep -i version
Version: 4.16.g20190814
FreeBSD_version: 1201000
This version is for FreeBSD 12.0.

I did go back and verify that a pkg install drm-kmod appears to
install the same (older) i915kms.ko as pkg install drm-fbsd12.0-kmod.
Out of curiosity, is the new world order that I'll always need to
compile drm-kmod from ports, or did I hit a window where packages
hadn't quite caught up to ports?

--chuck
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Confused about i915kms on 12.1

2019-10-13 Thread John Kennedy
On Sun, Oct 13, 2019 at 12:35:41PM -0700, Chuck Tuffli wrote:
> I've been running 12.0-REL on my X1 Carbon 3rd Gen happily with xorg,
> but after installing 12.1-RC1, the laptop reboots when loading the
> i915kms driver. If I comment out the line in /etc/rc.conf:
> 
> kld_list="/boot/modules/i915kms.ko"
> 
> the laptop boots, albeit without graphics. The above comes from the
> 12.0R release notes, and I didn't see any updates to this in the 12.1
> release notes. I've tried drm-kmod from both ports and packages with
> the same result. Did something change with 12.1? What should I check?
> TIA

  Not sure how your upgraded your box, but make sure that the driver is
compiled for the new kernel.  KBI breakage can easily behave like that.

  I won't be in front of a box with that setup until Monday, but from
memory, graphics/drm-kmod pulls in graphics/drm-fbsd12.0-kmod (at
least on my system with it's build-in Intel video card).

  If you do something like this, but substitute your .ko file for m4
below, you should be able to validate the package it came from and the
kernel version it was targeted at:

$ pkg which /usr/local/bin/*m4
/usr/local/bin/gm4 was installed by package m4-1.4.18_1,1

$ pkg info m4 | grep -i version
Version: 1.4.18_1,1
FreeBSD_version: 1201000

  That 1201000 means that it was compiled for 12.1 in my case.

  Have you overridden the default package location, leaving it aimed at 12.0?

  What do you mean by trying it from "ports"?  How did you refresh that?

  (I'm just fishing for something that would have survived the upgrade
   process and been locked onto 12.0 vs 12.1 and stopping you from
   getting a good, recompiled version installed.)
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Confused about i915kms on 12.1

2019-10-13 Thread Pete Wright



On 10/13/19 12:35 PM, Chuck Tuffli wrote:

I've been running 12.0-REL on my X1 Carbon 3rd Gen happily with xorg,
but after installing 12.1-RC1, the laptop reboots when loading the
i915kms driver. If I comment out the line in /etc/rc.conf:

kld_list="/boot/modules/i915kms.ko"

the laptop boots, albeit without graphics. The above comes from the
12.0R release notes, and I didn't see any updates to this in the 12.1
release notes. I've tried drm-kmod from both ports and packages with
the same result. Did something change with 12.1? What should I check?
TIA
Best thing to do is rebuild the drm-fbsd12.0-kmod package from the ports 
tree.  i have had this issue as well while testing the BETA and RC 
builds for 12.1, and there is some breakage in the upstream packages 
causing this behavior.  removing the package, then doing a "make 
package" in the graphics/drm-fbsd12.0-kmod directory, then installing 
the resulting package in the work/pkg directory gets everything working 
again.


-pete

--
Pete Wright
p...@nomadlogic.org
@nomadlogicLA

___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Confused about i915kms on 12.1

2019-10-13 Thread Chuck Tuffli
I've been running 12.0-REL on my X1 Carbon 3rd Gen happily with xorg,
but after installing 12.1-RC1, the laptop reboots when loading the
i915kms driver. If I comment out the line in /etc/rc.conf:

kld_list="/boot/modules/i915kms.ko"

the laptop boots, albeit without graphics. The above comes from the
12.0R release notes, and I didn't see any updates to this in the 12.1
release notes. I've tried drm-kmod from both ports and packages with
the same result. Did something change with 12.1? What should I check?
TIA

--chuck
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"