Discussion:
WARNING: Device "kbd" is Giant locked and may be deleted before FreeBSD 13.0.
(too old to reply)
Hartmann, O.
2021-01-15 20:02:50 UTC
Permalink
Running FreeBSD CURRENT on a USB only platform with a customised kernel, I see this
message all the time I reboot or log console messages:

[...]
WARNING: Device "kbd" is Giant locked and may be deleted before FreeBSD 13.0.

Where does this message come from and what is causing the warning? I tried to identify
and eliminate this message, but it seems to be stuck with the USB device/keyboard
attached to the system.

Any hint?

Many thanks in advance,

oh
Warner Losh
2021-01-16 00:22:38 UTC
Permalink
Post by Hartmann, O.
Running FreeBSD CURRENT on a USB only platform with a customised kernel, I see this
[...]
WARNING: Device "kbd" is Giant locked and may be deleted before FreeBSD 13.0.
Where does this message come from and what is causing the warning? I tried to identify
and eliminate this message, but it seems to be stuck with the USB device/keyboard
attached to the system.
Any hint?
to eliminate the message, kbd needs to be rewritten to not use giant.

It will not be deleted before 13. I'll change the message to 14.

Warner
_______________________________________________
freebsd-***@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-***@freebsd.org"

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Mark Millard
2021-01-16 00:54:26 UTC
Permalink
Warner Losh imp at bsdimp.com wrote on
On Fri, Jan 15, 2021 at 1:03 PM Hartmann, O. <o.hartmann at walstatt.org>
Post by Hartmann, O.
Running FreeBSD CURRENT on a USB only platform with a customised kernel, I
see this
[...]
WARNING: Device "kbd" is Giant locked and may be deleted before FreeBSD
13.0.
Where does this message come from and what is causing the warning? I tried
to identify
and eliminate this message, but it seems to be stuck with the USB
device/keyboard
attached to the system.
Any hint?
to eliminate the message, kbd needs to be rewritten to not use giant.
It will not be deleted before 13. I'll change the message to 14.
Other examples for the general type of question . . .


For example, various aarch64, armv7, and powerpc*:

WARNING: Device "openfirm" is Giant locked and may be deleted before
FreeBSD 13.0.


RPi4B and RPi3B:

WARNING: Device "fb" is Giant locked and may be deleted before FreeBSD 13.0.


powerpc (old PowerMac G4):

WARNING: Device "agp" is Giant locked and may be deleted before FreeBSD
13.0.

WARNING: Device "consolectl" is Giant locked and may be deleted before
FreeBSD 13.0.


Note: FreeBSD has boot problems for various powerpc64 and 32-bit
powerpc PowerMacs, so some material is from somewhat older vintages
of 13. (I've not looked at the old PowerMac G3 at all for this.)

===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)

_______________________________________________
freebsd-***@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-***@freebsd.org"

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Yasuhiro Kimura
2021-01-16 01:27:19 UTC
Permalink
From: Mark Millard <***@yahoo.com>
Subject: Re: WARNING: Device "kbd" is Giant locked and may be deleted before FreeBSD 13.0.
Date: Fri, 15 Jan 2021 16:54:26 -0800
Post by Mark Millard
Other examples for the general type of question . . .
WARNING: Device "openfirm" is Giant locked and may be deleted before
FreeBSD 13.0.
WARNING: Device "fb" is Giant locked and may be deleted before FreeBSD 13.0.
WARNING: Device "agp" is Giant locked and may be deleted before FreeBSD
13.0.
WARNING: Device "consolectl" is Giant locked and may be deleted before
FreeBSD 13.0.
Note: FreeBSD has boot problems for various powerpc64 and 32-bit
powerpc PowerMacs, so some material is from somewhat older vintages
of 13. (I've not looked at the old PowerMac G3 at all for this.)
Following files are the source of this warning messages.

***@rolling-vm-freebsd1[1009]% git grep -F D_NEEDGIANT
sys/cam/scsi/scsi_target.c: .d_flags = D_NEEDGIANT,
sys/contrib/ipfilter/netinet/mlfk_ipl.c: .d_flags = 0, /* D_NEEDGIANT - Should be SMP safe */
sys/dev/adlink/adlink.c: .d_flags = D_NEEDGIANT,
sys/dev/agp/agp.c: .d_flags = D_NEEDGIANT,
sys/dev/amr/amr.c: .d_flags = D_NEEDGIANT,
sys/dev/atkbdc/psm.c: .d_flags = D_NEEDGIANT,
sys/dev/ce/if_ce.c: .d_flags = D_NEEDGIANT,
sys/dev/fb/fb.c: .d_flags = D_NEEDGIANT,
sys/dev/fb/fbd.c: .d_flags = D_NEEDGIANT,
sys/dev/kbd/kbd.c: .d_flags = D_NEEDGIANT,
sys/dev/ofw/openfirmio.c: .d_flags = D_NEEDGIANT,
sys/dev/ofw/openpromio.c: .d_flags = D_NEEDGIANT,
sys/dev/pbio/pbio.c: .d_flags = D_NEEDGIANT,
sys/dev/speaker/spkr.c: .d_flags = D_NEEDGIANT,
sys/dev/syscons/syscons.c: .d_flags = D_NEEDGIANT | D_TRACKCLOSE,
sys/dev/tdfx/tdfx_pci.c: .d_flags = D_NEEDGIANT,
sys/dev/tpm/tpm.c: .d_flags = D_NEEDGIANT,
sys/dev/vkbd/vkbd.c: .d_flags = D_NEEDGIANT | D_NEEDMINOR,
sys/i386/bios/smapi.c: .d_flags = D_NEEDGIANT,
sys/i386/i386/elan-mmcr.c: .d_flags = D_NEEDGIANT,
sys/i386/i386/perfmon.c: .d_flags = D_NEEDGIANT,
sys/isa/vga_isa.c: .d_flags = D_NEEDGIANT,
sys/kern/kern_conf.c: if (devsw->d_flags & D_NEEDGIANT) {
sys/kern/kern_conf.c: if (devsw->d_flags & D_NEEDGIANT) {
sys/kern/kern_conf.c: } else if (devsw->d_flags & D_NEEDGIANT) \
sys/sys/conf.h:#define D_NEEDGIANT 0x00400000 /* driver want Giant */
***@rolling-vm-freebsd1[1010]%

---
Yasuhiro Kimura
_______________________________________________
freebsd-***@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-***@freebsd.org"

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...