Bug 193857 - dmesg :interface ahci.1 already present in the KLD 'kernel' but kldstat show nothing about ahci.ko
Summary: dmesg :interface ahci.1 already present in the KLD 'kernel' but kldstat show ...
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 10.0-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
Depends on:
Reported: 2014-09-23 06:30 UTC by Jov
Modified: 2019-01-31 11:31 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Jov 2014-09-23 06:30:28 UTC
dmesg | grep ahci
ahci0: <ATI IXP700 AHCI SATA controller> port 0x4010-0x4017,0x4020-0x4023,0x4018-0x401f,0x4024-0x4027,0x4000-0x400f mem 0xf7f04000-0xf7f043ff irq 19 at device 17.0 on pci0
ahci0: AHCI v1.20 with 6 6Gbps ports, Port Multiplier supported
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich1: <AHCI channel> at channel 1 on ahci0
ahcich2: <AHCI channel> at channel 2 on ahci0
ahcich3: <AHCI channel> at channel 3 on ahci0
ahcich4: <AHCI channel> at channel 4 on ahci0
ahcich5: <AHCI channel> at channel 5 on ahci0
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
interface ahci.1 already present in the KLD 'kernel'!

cat /boot/loader.conf 



#for PG




Id Refs Address            Size     Name
 1   37 0xffffffff80200000 15f0430  kernel
 2    1 0xffffffff817f1000 3f38     amdtemp.ko
 3    1 0xffffffff817f5000 2408     dtraceall.ko
 4    2 0xffffffff817f8000 6e80     profile.ko
 5   14 0xffffffff817ff000 6648     opensolaris.ko
 6    4 0xffffffff81806000 4508     cyclic.ko
 7   12 0xffffffff8180b000 50968    dtrace.ko
 8    2 0xffffffff8185c000 1d100    systrace_freebsd32.ko
 9    2 0xffffffff8187a000 1d8c8    systrace.ko
10    2 0xffffffff81898000 6da8     sdt.ko
11    2 0xffffffff8189f000 64d8     lockstat.ko
12    2 0xffffffff818a6000 12020    fasttrap.ko
13    2 0xffffffff818b9000 94d0     fbt.ko
14    2 0xffffffff818c3000 5e88     dtnfscl.ko
15    2 0xffffffff818c9000 5ef0     dtmalloc.ko
16    2 0xffffffff818cf000 2b78     dtio.ko
17    1 0xffffffff81a12000 a196     tmpfs.ko
18    1 0xffffffff81a1d000 5209     fdescfs.ko
Comment 1 Oliver Pinter freebsd_committer 2014-09-23 07:16:17 UTC
Try kldstat -v. The ahci driver already compiled in to the kernel
image, and not needed to load it as module.

reference: https://github.com/freebsd/freebsd/blob/releng/10.0/sys/amd64/conf/GENERIC#L94
Comment 2 Jov 2014-09-23 07:45:56 UTC
Yes,I see it.Thank you!
kldstat -v | grep ahci
		84 atapci/ata_ahci_ata
		83 pci/ata_ahci
		62 ahci/ahciem
		61 ahci/ahcich
		60 atapci/ahci
		59 pci/ahci

But what the ahci.ko file is used for? If the static kernel already contained it,I think the file should be removed.It takes up 90KB disk space.
Comment 3 Andriy Voskoboinyk freebsd_committer 2019-01-31 11:31:06 UTC
Yes, you can remove it - by default, all kernel modules are built; see https://www.freebsd.org/doc/handbook/kernelconfig-building.html for details.