Add Framework 13 11th gen

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2024-06-03 11:26:11 -07:00
parent 9cc1f925d6
commit 1372fb01dd
No known key found for this signature in database
GPG Key ID: 555C902A34EC968F
9 changed files with 4475 additions and 7 deletions

View File

@ -3,7 +3,7 @@
This is my attempt at making a common kernel module blacklist that can be used across different systems.
The goal is to be as strict as possible with this blacklist while not breaking common functionality and applications.
The idea here is that we collect the list of kernel modules available and the list of kernel modules actively used on production systems. Unused kernel modules will be added to the blacklist. For a bit of convienience and reliability, we will also not blacklist the modules listed `kmod-filter-start` and `kmod-filter-all`.
The idea here is that we collect the list of kernel modules available and the list of kernel modules actively used on production systems. Unused kernel modules will be added to the blacklist. For a bit of convienience and reliability, we will also not blacklist the modules listed `kmod-whitelist-start` and `kmod-whitelist-all`.
## Required data
@ -37,7 +37,7 @@ Niche systems will be added to the `sample-data-not-used` directory. Old systems
- Follow the instructions above get the list of availble and necessary kernel modules on each of your system.
- Put your data in the appropriate directories in `sample-data`.
- Adjust the filter list in `kmod-filter-start` and `kmod-filter-all`. Kernel modules with a name starting with a string inside `kmod-filter-start` will be removed from the blacklist. Likewise, kernel modules with a name containing the a string inside `kmod-filter-all` will also be removed from the blacklist.
- Adjust whitelist list in `kmod-whitelist-start` and `kmod-whitelist-all`. Kernel modules with a name starting with a string inside `kmod-whitelist-start` will be removed from the blacklist. Likewise, kernel modules with a name containing the a string inside `kmod-whitelist-all` will also be removed from the blacklist.
- Run `generate-kmod-blacklist-aggregate`. The generated blacklist will be put in `etc/modprobe.d`.
Alternatively, if you only want to generate a blacklist for 1 specific running system, you can use `generate-kmod-blacklist`. Note that this will not apply the whitelist in `kmod-filter-start` and `kmod-filter-all`.
Alternatively, if you only want to generate a blacklist for 1 specific running system, you can use `generate-kmod-blacklist`. Note that this will not apply the whitelist in `kmod-whitelist-start` and `kmod-whitelist-all`.

View File

@ -45,20 +45,30 @@ sort -u sample-data/"${dataset}"/available/* > blacklist.txt
# Combine all sample data for necessary
sort -u sample-data/vps/necessary/* > necessary.txt
# Remove blacklisted modules from the necessary list
while read -r KMOD; do
sed -i "s/^${KMOD}.*//gm" necessary.txt
done < kmod-blacklist-start
while read -r KMOD; do
sed -i "s/.*${KMOD}.*//gm" necessary.txt
done < kmod-blacklist-all
# Create the list to blacklist
while read -r KMOD; do
sed -i "s/^${KMOD}$//gm" blacklist.txt
done < necessary.txt
# Module filtering
# Remove whitelisted modules from the blacklist
while read -r KMOD; do
sed -i "s/^${KMOD}.*//gm" blacklist.txt
done < kmod-filter-start
done < kmod-whitelist-start
while read -r KMOD; do
sed -i "s/.*${KMOD}.*//gm" blacklist.txt
done < kmod-filter-all
done < kmod-whitelist-all
# Delete empty lines
sed -i '/^$/d' blacklist.txt

1
kmod-blacklist-all Normal file
View File

@ -0,0 +1 @@
thunderbolt

1
kmod-blacklist-start Normal file
View File

@ -0,0 +1 @@
firewire

View File

@ -22,3 +22,4 @@ xen-
xt_
xfs
zram
zstd

View File

@ -0,0 +1,80 @@
Linux version 6.8.11-300.fc40.x86_64 (mockbuild@f09cc32e12c24ed6a1a66c2a2e9f1728) (gcc (GCC) 14.1.1 20240522 (Red Hat 14.1.1-4), GNU ld version 2.41-37.fc40) #1 SMP PREEMPT_DYNAMIC Mon May 27 14:53:33 UTC 2024
Bus info Device Class Description
============================================================
system Laptop (FRANBMCP0A)
bus FRANBMCP0A
memory 128KiB BIOS
cpu@0 processor 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
memory 128KiB L1 cache
memory 5MiB L2 cache
memory 8MiB L3 cache
memory 192KiB L1 cache
memory 16GiB System Memory
memory 16GiB SODIMM DDR4 Synchronous 3200 MHz (0,3 ns)
memory [empty]
pci@0000:00:00.0 bridge 11th Gen Core Processor Host Bridge/DRAM Registers
pci@0000:00:02.0 display TigerLake-LP GT2 [Iris Xe Graphics]
pci@0000:00:04.0 generic TigerLake-LP Dynamic Tuning Processor Participant
pci@0000:00:06.0 bridge 11th Gen Core Processor PCIe Controller
pci@0000:01:00.0 /dev/nvme0 storage WDS500G1X0E-00AFY0
hwmon2 disk NVMe disk
/dev/ng0n1 disk NVMe disk
nvme@0:1 /dev/nvme0n1 disk 500GB NVMe disk
nvme@0:1,1 volume 599MiB Windows FAT volume
nvme@0:1,2 /dev/nvme0n1p2 volume 1GiB EXT4 volume
nvme@0:1,3 /dev/nvme0n1p3 volume 464GiB EFI partition
pci@0000:00:07.0 bridge Tiger Lake-LP Thunderbolt 4 PCI Express Root Port #0
pci@0000:00:07.1 bridge Tiger Lake-LP Thunderbolt 4 PCI Express Root Port #1
pci@0000:00:07.2 bridge Tiger Lake-LP Thunderbolt 4 PCI Express Root Port #2
pci@0000:00:07.3 bridge Tiger Lake-LP Thunderbolt 4 PCI Express Root Port #3
pci@0000:80:00.0 bridge JHL7540 Thunderbolt 3 Bridge [Titan Ridge DD 2018]
pci@0000:81:02.0 bridge JHL7540 Thunderbolt 3 Bridge [Titan Ridge DD 2018]
pci@0000:82:00.0 bus JHL7540 Thunderbolt 3 USB Controller [Titan Ridge 4C 2018]
pci@0000:81:04.0 bridge JHL7540 Thunderbolt 3 Bridge [Titan Ridge DD 2018]
pci@0000:00:08.0 generic GNA Scoring Accelerator module
pci@0000:00:0a.0 generic Tigerlake Telemetry Aggregator Driver
pci@0000:00:0d.0 bus Tiger Lake-LP Thunderbolt 4 USB Controller
pci@0000:00:0d.2 bus Tiger Lake-LP Thunderbolt 4 NHI #0
pci@0000:00:0d.3 bus Tiger Lake-LP Thunderbolt 4 NHI #1
pci@0000:00:12.0 communication Tiger Lake-LP Integrated Sensor Hub
pci@0000:00:14.0 bus Tiger Lake-LP USB 3.2 Gen 2x1 xHCI Host Controller
pci@0000:00:14.2 memory RAM memory
pci@0000:00:15.0 bus Tiger Lake-LP Serial IO I2C Controller #0
pci@0000:00:15.1 bus Tiger Lake-LP Serial IO I2C Controller #1
pci@0000:00:15.3 bus Tiger Lake-LP Serial IO I2C Controller #3
pci@0000:00:16.0 communication Tiger Lake-LP Management Engine Interface
pci@0000:00:1d.0 bridge Tiger Lake-LP PCI Express Root Port #10
pci@0000:aa:00.0 wlp170s0 network Wi-Fi 6E(802.11ax) AX210/AX1675* 2x2 [Typhoon Peak]
pci@0000:00:1f.0 bridge Tiger Lake-LP LPC Controller
input PnP device PNP0303
input PnP device PNP0f03
system PnP device PNP0c02
system PnP device PNP0c02
system PnP device PNP0c02
system PnP device PNP0c02
pci@0000:00:1f.3 card0 multimedia Tiger Lake-LP Smart Sound Technology Audio Controller
input12 input HDA Intel PCH Mic
input13 input HDA Intel PCH Headphone
input14 input HDA Intel PCH HDMI/DP,pcm=3
input15 input HDA Intel PCH HDMI/DP,pcm=7
input16 input HDA Intel PCH HDMI/DP,pcm=8
input17 input HDA Intel PCH HDMI/DP,pcm=9
pci@0000:00:1f.4 bus Tiger Lake-LP SMBus Controller
pci@0000:00:1f.5 bus Tiger Lake-LP SPI Controller
power FRANBBAT
power OEM Define 5
card1 multimedia Headset
input0 input Lid Switch
input1 input Power Button
input10 input PIXA3854:00 093A:0274 Touchpad
input11 input Video Bus
input18 input Generic USB Audio Consumer Control
input19 input Generic USB Audio
input2 input AT Translated Set 2 keyboard
input4 input ImExPS/2 Generic Explorer Mouse
input5 input FRMW0001:00 32AC:0006 Wireless Radio Control
input6 input FRMW0001:00 32AC:0006 Consumer Control
input9 input PIXA3854:00 093A:0274 Mouse
usb@6:1.3.3 enp130s0u1u3u3 network Ethernet interface

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,178 @@
r8153_ecm
cdc_ether
usbnet
r8152
mii
snd_usb_audio
snd_usbmidi_lib
snd_ump
snd_rawmidi
mc
rfcomm
snd_seq_dummy
snd_hrtimer
nls_utf8
cifs
cifs_arc4
nls_ucs2_utils
cifs_md4
dns_resolver
netfs
bnep
snd_sof_pci_intel_tgl
snd_sof_intel_hda_common
soundwire_intel
snd_sof_intel_hda_mlink
soundwire_cadence
iwlmvm
snd_sof_intel_hda
snd_sof_pci
snd_sof_xtensa_dsp
snd_sof
snd_sof_utils
snd_soc_hdac_hda
snd_hda_ext_core
snd_soc_acpi_intel_match
cros_usbpd_charger
vfat
snd_soc_acpi
soundwire_generic_allocation
snd_hda_codec_hdmi
cros_usbpd_notify
fat
cros_usbpd_logger
soundwire_bus
intel_uncore_frequency
cros_ec_sysfs
cros_ec_chardev
intel_uncore_frequency_common
mac80211
cros_ec_dev
spi_nor
snd_soc_core
snd_hda_codec_idt
x86_pkg_temp_thermal
mei_pxp
snd_hda_codec_generic
intel_powerclamp
snd_compress
ac97_bus
mei_hdcp
coretemp
snd_pcm_dmaengine
libarc4
mtd
snd_hda_intel
intel_rapl_msr
ee1004
kvm_intel
cros_ec_lpcs
iTCO_wdt
cros_ec
intel_pmc_bxt
iTCO_vendor_support
snd_intel_dspcfg
kvm
snd_intel_sdw_acpi
snd_hda_codec
btusb
iwlwifi
snd_hda_core
irqbypass
btrtl
snd_hwdep
rapl
btintel
snd_seq
processor_thermal_device_pci_legacy
intel_cstate
intel_uncore
btbcm
processor_thermal_device
spi_intel_pci
snd_seq_device
processor_thermal_wt_hint
btmtk
wmi_bmof
bluetooth
snd_pcm
cfg80211
hid_sensor_als
spi_intel
processor_thermal_rfim
processor_thermal_rapl
intel_rapl_common
mei_me
hid_sensor_trigger
hid_sensor_iio_common
processor_thermal_wt_req
snd_timer
i2c_i801
mei
i2c_smbus
industrialio_triggered_buffer
kfifo_buf
snd
industrialio
thunderbolt
soundcore
rfkill
processor_thermal_power_floor
idma64
processor_thermal_mbox
igen6_edac
intel_soc_dts_iosf
int3403_thermal
int340x_thermal_zone
intel_pmc_core
int3400_thermal
intel_vsec
pmt_telemetry
acpi_pad
acpi_thermal_rel
pmt_class
joydev
fuse
loop
nfnetlink
zstd
zram
dm_crypt
xe
drm_ttm_helper
gpu_sched
drm_suballoc_helper
drm_gpuvm
drm_exec
hid_sensor_hub
intel_ishtp_hid
i915
i2c_algo_bit
crct10dif_pclmul
nvme
drm_buddy
crc32_pclmul
ttm
crc32c_intel
polyval_clmulni
polyval_generic
nvme_core
drm_display_helper
ghash_clmulni_intel
hid_multitouch
sha512_ssse3
video
intel_ish_ipc
sha256_ssse3
sha1_ssse3
ucsi_acpi
intel_ishtp
typec_ucsi
i2c_hid_acpi
nvme_auth
cec
typec
i2c_hid
wmi
pinctrl_tigerlake
serio_raw