ZRAM is a memory compression method that used for anon swap out/in,
it could help system reclaim more free memory when the applications
have consumed too much memory. So we introduce the ZRAM by kernel
modules, user could insmod it as needed.
Signed-off-by: Bin Lai <robinlai@tencent.com>
Reviewed-by: Bauerchen <bauerchen@tencent.com>
BPF CO-RE applications like libbpf are need kernel
headers with all types, so it require BTF type
information built-in.
CONFIG_DEBUG_INFO_BTF have already enabled in x86_64,
enable in aarch64 to align.
Signed-off-by: Haisu Wang <haisuwang@tencent.com>
Httpchaos need both CONFIG_NETFILTER_XT_MATCH_SOCKET and
CONFIG_NETFILTER_XT_TARGET_TPROXY, these config were aleady opened in x86, but
not on arm64, so just open it.
csig need enable support for block device writeback throttling,
so open CONFIG_BLK_WBT and CONFIG_BLK_WBT_MQ.
To sync the config to the same with x86's config, we open:
CONFIG_RT_GROUP_SCHED, CONFIG_SLUB_MEMCG_SYSFS_ON, CONFIG_BLK_CGROUP_IOLATENCY,
CONFIG_BLK_RQ_ALLOC_TIME, CONFIG_BLK_CGROUP_IOCOST, CONFIG_NET_CLS_CGROUP;
To sync the config to the same with x86's config, we close:
CONFIG_NUMA_BALANCING_DEFAULT_ENABLED, CONFIG_SLAB_MERGE_DEFAULT,
CONFIG_CMDLINE_PARTITION
Signed-off-by: Jianping Liu <frankjpliu@tencent.com>
SLI is used for cgroup performance monitoring, but it is not
necessary for some cases(such as running the linux without
cgroups on the embedded device). Therefor we add this
configuration to decide whether package SLI into kernel or not.
Signed-off-by: Bin Lai <robinlai@tencent.com>
CONFIG_CGROUP_BPF CONFIG_DEBUG_MEMORY_INIT CONFIG_PANIC_ON_OOPS CONFIG_DEBUG_LIST CONFIG_DEBUG_SECTION_MISMATCH CONFIG_DEBUG_SHIRQ
centos aarch64 has enabled these configs , and tencent os x86_64 has also enabled these configs.
The number of nodes will exceed 16(2^4) for arm64 server(such as
phytium cpu), so we should change the max number of nodes to adapt
these equipment. There is something wrong with IOMMU compatibility
of phytium CPU, so we have to set IOMMU as default passthrough mode
to avoid this isssue. And we can change the IOMMU mode by cmdline
on other arm64 hardware.
Signed-off-by: Bin Lai <robinlai@tencent.com>
CONFIG_UEFI_CPER and CONFIG_UEFI_CPER_ARM are auto opened because:
Symbol: UEFI_CPER [=y]
Type : bool
Defined at drivers/firmware/efi/Kconfig:199
Selected by [y]:
- ACPI_APEI [=y] && ACPI [=y] && HAVE_ACPI_APEI [=y]
Selected by [n]:
- ACPI_EXTLOG [=n] && ACPI [=y] && X86_MCE && X86_LOCAL_APIC && EDAC [=n]
Symbol: UEFI_CPER_ARM [=y]
Type : bool
Defined at drivers/firmware/efi/Kconfig:202
Depends on: UEFI_CPER [=y] && (ARM || ARM64 [=y])
CONFIG_CC_HAS_WARN_MAYBE_UNINITIALIZED is closed because:
there is no definition about CC_HAS_WARN_MAYBE_UNINITIALIZED in Kconfig*
CONFIG_ALTRA_ERRATUM_82288 is auto opened because:
the default value of ALTRA_ERRATUM_82288 is y, and it should be y as a matter of experience
CONFIG_NET_REDIRECT is auto opened because:
Symbol: NET_REDIRECT [=y]
Type : bool
Defined at net/Kconfig:55
Depends on: NET [=y]
Selected by [m]:
- IFB [=m] && NETDEVICES [=y] && NET_CORE [=y] && NET_CLS_ACT [=y]
CONFIG_NET_DEVLINK is auto opened because:
NET_DEVLINK is selected by others
CONFIG_ARM_GIC_PHYTIUM_2500 is auto opened because:
ARM_GIC_PHYTIUM_2500 is selected by ARCH_PHYTIUM, which has already been opened
CONFIG_CHECK_SIGNATURE is auto opened because:
CHECK_SIGNATURE is selected by others
CONFIG_BLK_DEV_RAM=y will create /dev/ram* by default which is unneeded,
just make it a module, ram block devices can still be created with
modprobe.
Signed-off-by: Kairui Song <kasong@tencent.com>
Add Altra LED driver to control NVME LED.
This driver support control LED via SPCI interface on Altra system.
Currently, it is 2-LEDs system(Activity LED, Status LED). Activity
LED is completely controlled by hardware. Status LED is controlled
by this driver.
There are 4 stages of Status LED:
- ON
- OFF
- Locate(blink at 1Hz)
- Rebuild(blink at 4Hz)
Example:
To On, Off the LED on slot 9:
1. Write the seg:bus_number corresponding to LED on slot 9 to
altra:led
echo 000b:03 > /sys/class/leds/altra:led/address
2. Write 1 to brightness attr to ON, 0 to brightness attr to OFF
echo 1 > /sys/class/leds/altra:led/brightness
echo 0 > /sys/class/leds/altra:led/brightness
To blink the LED on slot 9:
1. Write the seg:bus_number corresponding to LED on slot 9 to
altra:led
echo 000b:03 > /sys/class/leds/altra:led/address
2. Write 1 to blink attr to select Locate(blink 1Hz), or 4 to
blink attr to select Rebuild(blink 4Hz)
echo 1 > /sys/class/leds/altra:led/blink
echo 4 > /sys/class/leds/altra:led/blink
3. Write 1 to shot attr to execute blink
echo 1 > /sys/class/leds/altra:led/shot
cherry-pick from: AmpereComputing/ampere-centos-kernel@28c026a
Signed-off-by: Dung Cao <dcao@amperecomputing.com>
Add Ampere Altra HW monitor driver to support per core energy
and SoC temperature reporting.
cherry-pick from: f2e6dee522
Signed-off-by: lho <loc.ho@os.amperecomputing.com>
Signed-off-by: lho <hoan@os.amperecomputing.com>
Enable CONFIG_SENSORS_XGENE, CONFIG_I2C_XGENE_SLIMPRO,
CONFIG_IPMI_SSIF
Build CONFIG_SERIO_I8042 as module
Signed-off-by: Yi Li <adam.li@amperecomputing.com>