Commit Graph

52 Commits

Author SHA1 Message Date
Yuehong Wu e045502bce config: enable CONFIG_MEMORY_HOTPLUG in aarch64
Signed-off-by: YueHong Wu <yuehongwu@tencent.com>
2022-10-18 11:35:45 +08:00
Yushan Zhou f27728205d Fix the kernel perf package
Signed-off-by: Haisu Wang <haisuwang@tencent.com>
Signed-off-by: Yushan Zhou <katrinzhou@tencent.com>
2022-09-29 19:25:52 +08:00
Haisu Wang c04cc75c65 package: compat perf build on tmanager
libperf-jvmti.so doesn't build in tmanager.
Add a dummy libperf-jvmti.so in perf to compat two system.

Signed-off-by: Haisu Wang <haisuwang@tencent.com>
2022-09-28 16:14:02 +08:00
Haisu Wang 3f527002c7 package: remove the duplicate file included by perf
Remove the duplicate files from kernel-tools/bpftools but
included by perf.

Keep the python2, python-perf name and libraries location
for backward compatibility.

Signed-off-by: Haisu Wang <haisuwang@tencent.com>
2022-09-27 16:34:21 +08:00
Honglin Li ba0ddf48bc package: fix a warning/error in spec for x86/arm
Add %{_mandir}/man7/bpf-helpers.7.gz to solve
the bug with kernel.

Signed-off-by: Honglin Li <honglinli@tencent.com>
Reviewed-by: Haisu Wang <haisuwang@tencent.com>
2022-09-23 17:40:56 +08:00
Honglin Li 73238e1f39 package/arm: enable build bpftool with kernel for arm
Build and deliver kernel builtin bpftool

Signed-off-by: Honglin Li <honglinli@tencent.com>
Reviewed-by: Haisu Wang <haisuwang@tencent.com>
2022-09-23 17:34:49 +08:00
Yushan Zhou 27a914a699 package: support tag startswith x86
Tmanager generates tag to build kernel when branch specified.
The tag starts with x86, which leads to the build process failing
to parse the tag.
Modify the generate-rpms.sh to support building with "x86-*" tags.

Signed-off-by: Yushan Zhou <katrinzhou@tencent.com>
2022-09-23 15:31:01 +08:00
Yushan Zhou 32b6274570 generate-rpm.sh: unify package script
Modify generate-rpm.sh so that x86/arm can use the same tag.

Signed-off-by: Yushan Zhou <katrinzhou@tencent.com>
2022-09-22 16:16:11 +08:00
sclaibin 2005afdc6c
Merge pull request #270 from nick-wang/tk4-master
package: support repackage bpftool for tl2
2022-09-21 11:03:34 +08:00
Haisu Wang 6a9ae87797 package: support repackage bpftool for tl2
tl2 release system using repackage trick instead of full tl2
env to build kernel and other packages from scratch.

Update the perf tools spec to support build bpftool with
perf and kernel tools.

Signed-off-by: Haisu Wang <haisuwang@tencent.com>
2022-09-19 14:16:50 +08:00
Yushan Zhou c65aab2a4a perf spec: remove perf obj default
The bash script mkmakefile generates Makefile which includes itself.
It leads to dead cycle when build rpm packages.

Signed-off-by: Yushan Zhou <katrinzhou@tencent.com>
2022-09-19 10:13:51 +08:00
Bin Lai 691db8a9b0 config: enable CONFIG_ZRAM
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>
2022-08-24 16:58:06 +08:00
Haisu Wang 01a8184389 config: enable BTF for BPF CO-RE application in aarch64
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>
2022-08-02 10:51:48 +08:00
frankjpliu e6490a8196
Merge pull request #239 from chenmengc/tk4/open_config
arm64/config: open CONFIG_NETFILTER_XT_MATCH_SOCKET / CONFIG_NETFILTE…
2022-07-05 19:12:03 +08:00
bauerchen 46b0ba7171 arm64/config: open CONFIG_NETFILTER_XT_MATCH_SOCKET / CONFIG_NETFILTER_XT_TARGET_TPROXY
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.
2022-07-05 19:06:26 +08:00
kidzhang 5310c252dd config: auto generate kasan config
generate-rpms.sh add parse parameters 'k' for build config of type.
usage: generate-rpms.sh -k config_type
config type is 'kasan' or 'nosign'.

Signed-off-by: kidzhang <kidzhang@tencent.com>
2022-06-29 15:30:41 +08:00
Jianping Liu 69c0091822 arm64/config: open CONFIG_BLK_WBT and CONFIG_BLK_WBT_MQ
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>
2022-06-22 17:44:58 +08:00
Bin Lai 13f2b1a994 sli: add the CONFIG_CGROUP_SLI configuration for SLI
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>
2022-06-21 10:39:08 +08:00
Jianping Liu b03383f2cc arm64/config: open CONFIG_IOSCHED_BFQ and CONFIG_BFQ_GROUP_IOSCHED 2022-06-10 17:13:42 +08:00
Jianping Liu 78f9fa0722 to improve the efficiency of debug, open some debug configs as below:
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.
2022-05-31 14:56:50 +08:00
Jianping Liu a82738cd31 set CONFIG_PCIEAER_INJECT to m, for easy to test 2022-05-31 09:13:32 +08:00
Jianping Liu fbd7a26def enable CONFIG_EDAC CONFIG_EDAC_GHES to detect and correct hardware error,
centos8 have also enable these configs.
2022-05-31 09:11:16 +08:00
Jianping Liu f64be00bef enable CONFIG_MEMORY_FAILURE CONFIG_ACPI_APEI_MEMORY_FAILURE CONFIG_ACPI_APEI_GHES CONFIG_ACPI_APEI_PCIEAER to detect hardware error,
centos8 have also enable these configs.
2022-05-31 09:05:59 +08:00
Jianping Liu 522c1026b8 enable the ability of kmemleak , to debug kernel memory leak
When running kmemleak , it will cost much CPU. So, disable the auto scan of kmemleak, trigger kmemleak scan by manual if needed.
2022-05-31 08:27:08 +08:00
Jianping Liu 0f472ae888 update package/arm/config.default by make ARCH=arm64 menuconfig, without manual change 2022-05-31 08:23:35 +08:00
katrinzhou d02bb084f2 arm64/config: enable CONFIG_GENEVE=m
Signed-off-by: katrinzhou <katrinzhou@tencent.com>
2022-04-27 17:01:21 +08:00
Bin Lai 71911859ab arm64/config: change the max number of nodes and set default IOMMU passthrough
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>
2022-04-08 10:09:19 +08:00
katrinzhou d998845acd configs: enable CONFIG_SOFTLOCKUP_DETECTOR=y
Signed-off-by: katrinzhou <katrinzhou@tencent.com>
2022-03-31 18:48:28 +08:00
Jianping Liu 6ffcede96e according our customer langchao(inspur company)'s requirement, open configs as below CONFIG_CPU_IDLE_MULTIPLE_DRIVERS, CONFIG_DT_IDLE_STATES, CONFIG_ARM_CPUIDLE, CONFIG_ACPI_APEI, CONFIG_ACPI_APEI_EINJ, CONFIG_ARM_SMMU_V3_PMU
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])
2022-03-22 10:19:41 +08:00
Jianping Liu fd47ffbf63 update package/arm/config.default by make ARCH=arm64 menuconfig without manual change
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
2022-03-22 10:19:41 +08:00
Kairui Song 012a28263c config: enable PPP related configs for arm
Signed-off-by: Kairui Song <kasong@tencent.com>
2022-03-04 16:38:06 +08:00
Kairui Song ebc7ecb844 config: set CONFIG_BLK_DEV_RAM=m
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>
2021-12-30 14:33:07 +08:00
katrinzhou e19b22eded config: enable CONFIG_IFB as a module 2021-12-14 09:53:57 +08:00
Fuhai Wang cdbc9c0b3f arm/config: set CONFIG_SCSI_MPT3SAS as module
Signed-off-by: Fuhai Wang <fuhaiwang@tencent.com>
2021-10-19 07:18:46 +00:00
Kaixu Xia 5b20794a4a config/arm: enable CONFIG_SCSI_SMARTPQI
Open CONFIG_SCSI_SMARTPQI as module.
2021-07-16 12:26:49 +08:00
Fuhai Wang 0484b57289 arm64/cpufreq: enable ACPI_CPPC_CPUFREQ config on arm64
Signed-off-by: Fuhai Wang <fuhaiwang@tencent.com>
2021-07-12 08:57:22 +00:00
Fuhai Wang 4429c58555 arm64: enable CONFIG_ARM64_LSE_ATOMICS
Signed-off-by: Fuhai Wang <fuhaiwang@tencent.com>
2021-07-12 08:57:22 +00:00
Fuhai Wang 1e236c7732 ampere/led: Add Altra LED driver
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>
2021-07-12 08:57:22 +00:00
Fuhai Wang 81930c4bec kabi: arm version kabi check support
add -c option to enable kabi check in generate script(arm version)
  add kabi Modver for arch aarch64 in gcc 8.3.1 version

Signed-off-by: Denise Cheng <denisecheng@tencent.com>
Signed-off-by: Fuhai Wang <Fuhaiwang@tencent.com>
2021-06-23 07:24:18 +00:00
Kaixu Xia 96e329f55b package: use the correct description and packager
Use the correct description and packager.
2021-06-17 10:40:20 +08:00
Fuhai Wang 805b626a9a net: open CONFIG_XFRM_OFFLOAD for x86 public
Signed-off-by: Hongbo Li <herberthbli@tencent.com>
2021-05-18 07:22:15 +00:00
Fuhai Wang bef033fd4f config: enable pci acpi hotplug
Signed-off-by: Fuhai Wang <fuhaiwang@tencent.com>
2021-05-18 07:22:15 +00:00
Hongbo Li 0ccaa935ab net: add mellanox arm driver
add mellanox arm driver MLNX_OFED_LINUX-5.1-2.5.8.0.46-rhel8.3-aarch64.

Signed-off-by: Hongbo Li <herberthbli@tencent.com>
2021-04-15 08:35:28 +00:00
Honglin Li 2f000a7457 generate-rpms: modify the name of the kernel tag for x86 and arm64
Signed-off-by: Honglin Li <honglinli@tencent.com>
2021-04-07 06:53:59 +00:00
honglinli 3218a487da net: update bnxt_en driver
Signed-off-by: honglinli <honglinli@tencent.com>
2021-03-16 16:44:00 +08:00
honglinli 29e5f3c105 config: open CONFIG_SCSI_HPSA for arm64 public
Signed-off-by: honglinli <honglinli@tencent.com>
2021-03-16 16:44:00 +08:00
Fuhai Wang 754aa27eb6 config: open CONFIG_ARM64_VHE and fix ampere config
Signed-off-by: Fuhai Wang <fuhaiwang@tencent.com>
2021-03-16 16:44:00 +08:00
lho 345aa07d5b hwmon: Add Ampere Altra HW monitor driver
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>
2021-03-16 16:43:59 +08:00
Yi Li bf32b9cff3 Ampere: Add default kernel configure for Altra
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>
2021-03-16 16:43:59 +08:00
Fuhai Wang 8572885eb0 config: change default config
Signed-off-by: Fuhai Wang <fuhaiwang@tencent.com>
2021-03-16 16:43:57 +08:00