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

From: Yasuhiro Kimura <yasu_at_utahime.org>
Date: Sat, 16 Jan 2021 10:27:19 +0900 (JST)
From: Mark Millard <marklmi_at_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

> 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.)

Following files are the source of this warning messages.

yasu_at_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 */
yasu_at_rolling-vm-freebsd1[1010]%

---
Yasuhiro Kimura
Received on Sat Jan 16 2021 - 00:27:50 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:26 UTC