Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic:  Cgroup HugeTLB in kernel 5.16  (Read 2207 times)

Offline sunu

  • Newbie
  • Posts: 4
Cgroup HugeTLB in kernel 5.16
« on: 2022/02/01, 13:21:35 »
Is there any reason you disabled cgroup hugetlb support in 5.16 kernels?
# CONFIG_CGROUP_HUGETLB is not set
You had it enabled in previous kernels.

Also can you enable tpm support?

Thanks

Online towo

  • Administrator
  • User
  • *****
  • Posts: 2.938
Re: Cgroup HugeTLB in kernel 5.16
« Reply #1 on: 2022/02/01, 15:04:12 »
1st, tpm support is enabled as module, proof it yourself with grep -i tpm /boot/config-$(uname -r)
2nd, with the next kernel CONFIG_CGROUP_HUGETLB is enabled again.
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

Offline sunu

  • Newbie
  • Posts: 4
Re: Cgroup HugeTLB in kernel 5.16
« Reply #2 on: 2022/02/02, 04:17:00 »
1st, tpm support is enabled as module, proof it yourself with grep -i tpm /boot/config-$(uname -r)

Doesn´t seem to be enough:
systemd[1]: dev-tpm0.device: Job dev-tpm0.device/start timed out.
systemd[1]: Timed out waiting for device /dev/tpm0.

Code: [Select]
lsmod | grep tpm
tpm_tis                16384  0
tpm_tis_core           24576  1 tpm_tis
tpm                    69632  2 tpm_tis,tpm_tis_core
rng_core               16384  1 tpm


slh´s aptosid kernel picks it up:
systemd[1]: Found device /dev/tpm0.
systemd[1]: Starting TPM2 Access Broker and Resource Management Daemon...

lsmod | grep tpm shows nothing
Digging deeper it seems that it uses tpm_crb driver


grep -i "tcg\|tpm" siduction
CONFIG_TCG_TPM=m
CONFIG_HW_RANDOM_TPM=y
CONFIG_TCG_TIS_CORE=m
CONFIG_TCG_TIS=m
# CONFIG_TCG_TIS_SPI is not set
CONFIG_TCG_TIS_I2C_CR50=m
# CONFIG_TCG_TIS_I2C_ATMEL is not set
# CONFIG_TCG_TIS_I2C_INFINEON is not set
# CONFIG_TCG_TIS_I2C_NUVOTON is not set
CONFIG_TCG_NSC=m
CONFIG_TCG_ATMEL=m
CONFIG_TCG_INFINEON=m
# CONFIG_TCG_CRB is not set
# CONFIG_TCG_VTPM_PROXY is not set
# CONFIG_TCG_TIS_ST33ZP24_I2C is not set
# CONFIG_TCG_TIS_ST33ZP24_SPI is not set
CONFIG_DTPM=y
CONFIG_DTPM_CPU=y


grep -i "tcg\|tpm" aptosid
CONFIG_TCG_TPM=y
CONFIG_TCG_TIS_CORE=y
CONFIG_TCG_TIS=y
CONFIG_TCG_TIS_I2C_CR50=m
CONFIG_TCG_TIS_I2C_ATMEL=m
CONFIG_TCG_TIS_I2C_INFINEON=m
CONFIG_TCG_TIS_I2C_NUVOTON=m
CONFIG_TCG_NSC=m
CONFIG_TCG_ATMEL=m
CONFIG_TCG_INFINEON=m
CONFIG_TCG_XEN=m
CONFIG_TCG_CRB=y
# CONFIG_TCG_VTPM_PROXY is not set
CONFIG_TCG_TIS_ST33ZP24=m
CONFIG_TCG_TIS_ST33ZP24_I2C=m
CONFIG_DTPM=y
CONFIG_DTPM_CPU=y
CONFIG_ASYMMETRIC_TPM_KEY_SUBTYPE=m
CONFIG_TPM_KEY_PARSER=m





Online towo

  • Administrator
  • User
  • *****
  • Posts: 2.938
Re: Cgroup HugeTLB in kernel 5.16
« Reply #3 on: 2022/02/02, 18:07:52 »
I could enable it, but why to hell you want the evil TPM?
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

Offline sunu

  • Newbie
  • Posts: 4
Re: Cgroup HugeTLB in kernel 5.16
« Reply #4 on: 2022/02/03, 05:51:06 »
Nothing of immediate use, personally. But I see it can be used in encryption if anyone is inclined to, for example https://wiki.archlinux.org/title/Trusted_Platform_Module