Commit Graph

95 Commits

Author SHA1 Message Date
caelli 4e8cbad728 enable CONFIG_DRM_CIRRUS_QEMU
Enable cirrus vga driver to support qemu cirrus better.

Signed-off-by: caelli <caelli@tencent.com>
2022-11-08 20:37:19 +08:00
Kairui Song b805977331 configs: enabled several DRM/FB drivers for VMs
Enable commonly used DRM/FB drivers for VMs. We may need to enable more
DRM drivers later but for now, just enabled these VM drivers.

Also update changelog. Latest OC public iso is already using OC 5.4
kernel as default kernel.

Signed-off-by: Kairui Song <kasong@tencent.com>
2022-11-08 20:37:06 +08:00
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 854a58783a package: include cpupower file to kernel-tools
After fixed the wide cast of perf package.
Move the cpupower files to kernel-tools.

Signed-off-by: Haisu Wang <haisuwang@tencent.com>
2022-09-27 16:54:03 +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
sclaibin e88965af0f
Merge pull request #280 from Tencent/tk4/katrinzhou-fixpack
package: support tag startswith x86
2022-09-23 16:06:09 +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
Bin Lai d60e770a8d config: enable hyperv configurations for x86 platform
Hyperv is a native hypervisor that can create virtual machine on x86-64
platform. Enable all hyperv configurations for linux, then it can run
on windows hyperv.

Signed-off-by: Bin Lai <robinlai@tencent.com>
2022-09-23 15:16:12 +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
sclaibin 96aa2400b1
Merge pull request #265 from Tencent/haisu/tk4-public-bpftool
package: enable build bpftool with kernel
2022-09-16 15:01:20 +08:00
Haisu Wang 0a38cbfb23 package: support bpftool in tlinux2
In tlinux2, use python2-docutils instead of python3-docutils.

Signed-off-by: Haisu Wang <haisuwang@tencent.com>
2022-09-06 16:25:43 +08:00
Haisu Wang b68ab35a8d package: enable build bpftool with kernel
Build and deliver kernel builtin bpftool

Signed-off-by: Haisu Wang <haisuwang@tencent.com>
2022-09-06 09:48:49 +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
frankjpliu 42d6bf3ee2
Merge pull request #241 from minfree123/tk4/master
add iptables target WH and DNATLB
2022-08-08 15:08:10 +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
bobpeng 19d0e8960e add iptables target WH and DNATLB
target WH: add target ip:port into tcp option, eg:
iptables -t mangle -A OUTPUT -p tcp --dst 10.1.0.0/255.255.255.0 -j WH ;
target DNATLB: support dnat to mutiple destination,each destination with weight specified,
eg: iptables -t nat -A OUTPUT -p tcp --dst 10.1.0.0/255.255.255.0 --dport 4001 -j DNATLB
--to-destination 192.168.0.1:4001:10  --to-destination 192.168.0.2:4001:20
2022-07-14 09:32:50 +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 433bcdb25b default/config: enable CONFIG_DEBUG_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.

Signed-off-by: Jianping Liu <frankjpliu@tencent.com>
2022-06-07 11:09:41 +08:00
Jianping Liu b2d1e6a757 default/config: update x86 config by make menuconfig, without manual change
Signed-off-by: Jianping Liu <frankjpliu@tencent.com>
2022-06-07 11:07:23 +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
Jianping Liu ca3bfc2781 open CONFIG_JUMP_LABEL to optimize very unlikely/likely branches
This option enables a transparent branch optimization that
makes certain almost-always-true or almost-always-false branch
conditions even cheaper to execute within the kernel.
2022-05-18 20:09:51 +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 a76d2f8cda configs: enable CONFIG_BPF_KPROBE_OVERRIDE=y
Signed-off-by: katrinzhou <katrinzhou@tencent.com>
2022-04-01 10:58:59 +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
Kairui Song be440c7a91 config: enable VMMOUSE
Signed-off-by: Kairui Song <kasong@tencent.com>
2022-03-24 14:21:47 +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
Honglin Li faa1dadcbc config: set CONFIG_ENA_ETHERNET=m for x86
Signed-off-by: Honglin Li <honglinli@tencent.com>
2022-02-24 10:24:01 +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
Mungerjiang e065537049 config: enable CONFIG_NUMA_AWARE_SPINLOCKS default
Signed-off-by: Munger Jiang <mungerjiang@tencent.com>
2021-12-20 11:43:06 +08:00
Hongbo Li e98c4900fc config: open CONFIG_NETFILTER_XT_TARGET_TPROXY
Signed-off-by: Hongbo Li <herberthbli@tencent.com>
2021-12-14 10:26:05 +08:00