Skip to content

Commit

Permalink
Merge pull request #2 from Codecity001/release-test
Browse files Browse the repository at this point in the history
V2.0
  • Loading branch information
Codecity001 authored Aug 17, 2022
2 parents 1f767b7 + 1a54a34 commit ba0981f
Show file tree
Hide file tree
Showing 115 changed files with 5,304 additions and 962 deletions.
24 changes: 24 additions & 0 deletions Documentation/ABI/testing/sysfs-fs-f2fs
Original file line number Diff line number Diff line change
Expand Up @@ -561,3 +561,27 @@ Date: January 2022
Contact: "Jaegeuk Kim" <[email protected]>
Description: Controls max # of node block writes to be used for roll forward
recovery. This can limit the roll forward recovery time.

What: /sys/fs/f2fs/<disk>/current_atomic_write
Date: July 2022
Contact: "Daeho Jeong" <[email protected]>
Description: Show the total current atomic write block count, which is not committed yet.
This is a read-only entry.

What: /sys/fs/f2fs/<disk>/peak_atomic_write
Date: July 2022
Contact: "Daeho Jeong" <[email protected]>
Description: Show the peak value of total current atomic write block count after boot.
If you write "0" here, you can initialize to "0".

What: /sys/fs/f2fs/<disk>/committed_atomic_block
Date: July 2022
Contact: "Daeho Jeong" <[email protected]>
Description: Show the accumulated total committed atomic write block count after boot.
If you write "0" here, you can initialize to "0".

What: /sys/fs/f2fs/<disk>/revoked_atomic_block
Date: July 2022
Contact: "Daeho Jeong" <[email protected]>
Description: Show the accumulated total revoked atomic write block count after boot.
If you write "0" here, you can initialize to "0".
5 changes: 5 additions & 0 deletions Documentation/filesystems/f2fs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,11 @@ discard_unit=%s Control discard unit, the argument can be "block", "segment"
default, it is helpful for large sized SMR or ZNS devices to
reduce memory cost by getting rid of fs metadata supports small
discard.
memory=%s Control memory mode. This supports "normal" and "low" modes.
"low" mode is introduced to support low memory devices.
Because of the nature of low memory devices, in this mode, f2fs
will try to save memory sometimes by sacrificing performance.
"normal" mode is the default mode and same as before.
======================== ============================================================

Debugfs Entries
Expand Down
2 changes: 1 addition & 1 deletion Documentation/ia64/xen.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Getting and Building Xen and Dom0

5. make initrd for Dom0/DomU
# make -C linux-2.6.18-xen.hg ARCH=ia64 modules_install \
O=$(/bin/pwd)/build-linux-2.6.18-xen_ia64
O=$(pwd)/build-linux-2.6.18-xen_ia64
# mkinitrd -f /boot/efi/efi/redhat/initrd-2.6.18.8-xen.img \
2.6.18.8-xen --builtin mptspi --builtin mptbase \
--builtin mptscsih --builtin uhci-hcd --builtin ohci-hcd \
Expand Down
7 changes: 4 additions & 3 deletions Documentation/thermal/sysfs-api.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ temperature) and throttle appropriate devices.
1. thermal sysfs driver interface functions

1.1 thermal zone device interface
1.1.1 struct thermal_zone_device *thermal_zone_device_register(char *type,
1.1.1 struct thermal_zone_device *thermal_zone_device_register(const char *type,
int trips, int mask, void *devdata,
struct thermal_zone_device_ops *ops,
const struct thermal_zone_params *tzp,
Expand Down Expand Up @@ -160,8 +160,9 @@ temperature) and throttle appropriate devices.
drivers for temperature calculations.

1.2 thermal cooling device interface
1.2.1 struct thermal_cooling_device *thermal_cooling_device_register(char *name,
void *devdata, struct thermal_cooling_device_ops *)
1.2.1 struct thermal_cooling_device *thermal_cooling_device_register(
const char *name, void *devdata,
struct thermal_cooling_device_ops *ops)

This interface function adds a new thermal cooling device (fan/processor/...)
to /sys/class/thermal/ folder as cooling_device[0-*]. It tries to bind itself
Expand Down
2 changes: 0 additions & 2 deletions Kbuild
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ targets := kernel/bounds.s

# We use internal kbuild rules to avoid the "is up to date" message from make
kernel/bounds.s: kernel/bounds.c FORCE
$(Q)mkdir -p $(dir $@)
$(call if_changed_dep,cc_s_c)

$(obj)/$(bounds-file): kernel/bounds.s FORCE
Expand Down Expand Up @@ -54,7 +53,6 @@ targets += arch/$(SRCARCH)/kernel/asm-offsets.s
# We use internal kbuild rules to avoid the "is up to date" message from make
arch/$(SRCARCH)/kernel/asm-offsets.s: arch/$(SRCARCH)/kernel/asm-offsets.c \
$(obj)/$(timeconst-file) $(obj)/$(bounds-file) FORCE
$(Q)mkdir -p $(dir $@)
$(call if_changed_dep,cc_s_c)

$(obj)/$(offsets-file): arch/$(SRCARCH)/kernel/asm-offsets.s FORCE
Expand Down
41 changes: 22 additions & 19 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ ifneq ($(KBUILD_OUTPUT),)
# check that the output directory actually exists
saved-output := $(KBUILD_OUTPUT)
KBUILD_OUTPUT := $(shell mkdir -p $(KBUILD_OUTPUT) && cd $(KBUILD_OUTPUT) \
&& /bin/pwd)
&& pwd)
$(if $(KBUILD_OUTPUT),, \
$(error failed to create output directory "$(saved-output)"))

Expand Down Expand Up @@ -363,9 +363,9 @@ HOST_LFS_LIBS := $(shell getconf LFS_LIBS 2>/dev/null)

HOSTCC = gcc
HOSTCXX = g++
HOSTCFLAGS := -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 \
HOSTCFLAGS := -Wall -Wmissing-prototypes -Wstrict-prototypes -O3 \
-fomit-frame-pointer -std=gnu89 $(HOST_LFS_CFLAGS)
HOSTCXXFLAGS := -O2 $(HOST_LFS_CFLAGS)
HOSTCXXFLAGS := -O3 $(HOST_LFS_CFLAGS)
HOSTLDFLAGS := $(HOST_LFS_LDFLAGS)
HOST_LOADLIBES := $(HOST_LFS_LIBS)

Expand Down Expand Up @@ -398,7 +398,7 @@ CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \
NOSTDINC_FLAGS =
CFLAGS_MODULE =
AFLAGS_MODULE =
LDFLAGS_MODULE =
LDFLAGS_MODULE = --strip-debug
CFLAGS_KERNEL =
AFLAGS_KERNEL =
LDFLAGS_vmlinux =
Expand Down Expand Up @@ -434,12 +434,15 @@ ifeq ($(CONFIG_EARLY_INIT),true)
KBUILD_CFLAGS += -DCONFIG_EARLY_SERVICES
endif

KBUILD_CFLAGS += -Werror=vla

KBUILD_CPPFLAGS := -D__KERNEL__
KBUILD_AFLAGS_KERNEL :=
KBUILD_CFLAGS_KERNEL :=
KBUILD_AFLAGS_MODULE := -DMODULE
KBUILD_CFLAGS_MODULE := -DMODULE
KBUILD_LDFLAGS_MODULE := -T $(srctree)/scripts/module-common.lds
LDFLAGS :=
GCC_PLUGINS_CFLAGS :=
CLANG_FLAGS :=

Expand Down Expand Up @@ -506,14 +509,13 @@ endif
ifneq ($(GCC_TOOLCHAIN),)
CLANG_FLAGS += --gcc-toolchain=$(GCC_TOOLCHAIN)
endif
CLANG_FLAGS += -no-integrated-as
CLANG_FLAGS += -Werror=unknown-warning-option
CLANG_FLAGS += $(call cc-option, -Wno-misleading-indentation)
CLANG_FLAGS += $(call cc-option, -Wno-bool-operation)
CLANG_FLAGS += $(call cc-option, -Wno-unsequenced)
CLANG_FLAGS += $(call cc-option, -opaque-pointers)
KBUILD_CFLAGS += $(CLANG_FLAGS)
KBUILD_AFLAGS += $(CLANG_FLAGS)
KBUILD_AFLAGS += $(CLANG_FLAGS) -no-integrated-as
export CLANG_FLAGS
ifeq ($(ld-name),lld)
KBUILD_CFLAGS += -fuse-ld=lld
Expand Down Expand Up @@ -683,6 +685,10 @@ endif
LLVM_AR := llvm-ar
LLVM_NM := llvm-nm
export LLVM_AR LLVM_NM
# Set O3 optimization level for LTO with most linkers
LDFLAGS += -O3
LDFLAGS += --plugin-opt=O3
LDFLAGS += --plugin-opt=-import-instr-limit=5
endif

# The arch Makefile can set ARCH_{CPP,A,C}FLAGS to override the default
Expand All @@ -709,8 +715,10 @@ KBUILD_CFLAGS += -mcpu=cortex-a76.cortex-a55 -mtune=cortex-a76.cortex-a55
endif
ifeq ($(cc-name),clang)
KBUILD_CFLAGS += -O3
KBUILD_CFLAGS += -mcpu=cortex-a55 -mtune=cortex-a55

KBUILD_CFLAGS += -mcpu=cortex-a76 -mtune=cortex-a76
ifdef CONFIG_LTO_CLANG
KBUILD_CFLAG += -fwhole-program-vtables
endif
ifdef CONFIG_LLVM_POLLY
KBUILD_CFLAGS += -mllvm -polly \
-mllvm -polly-run-dce \
Expand Down Expand Up @@ -739,7 +747,7 @@ KBUILD_CFLAGS += $(call cc-option,--param=allow-store-data-races=0)
KBUILD_CFLAGS += $(call cc-option,-fno-allow-store-data-races)

# check for 'asm goto'
ifeq ($(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y)
ifeq ($(call shell-cached,$(CONFIG_SHELL) $(srctree)/scripts/gcc-goto.sh $(CC) $(KBUILD_CFLAGS)), y)
KBUILD_CFLAGS += -DCC_HAVE_ASM_GOTO
KBUILD_AFLAGS += -DCC_HAVE_ASM_GOTO
endif
Expand Down Expand Up @@ -787,7 +795,6 @@ ifeq ($(cc-name),clang)
KBUILD_CFLAGS += $(call cc-disable-warning, format-invalid-specifier)
KBUILD_CFLAGS += $(call cc-disable-warning, gnu)
KBUILD_CFLAGS += $(call cc-disable-warning, duplicate-decl-specifier)
KBUILD_CFLAGS += -fno-builtin
KBUILD_CFLAGS += $(call cc-option, -Wno-undefined-optimized)
KBUILD_CFLAGS += $(call cc-option, -Wno-tautological-constant-out-of-range-compare)
KBUILD_CFLAGS += $(call cc-option, -mllvm -disable-struct-const-merge)
Expand All @@ -808,10 +815,6 @@ KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,)
# Use make W=1 to enable them (see scripts/Makefile.extrawarn)
KBUILD_CFLAGS += $(call cc-disable-warning, unused-but-set-variable)

ifeq ($(ld-name),lld)
LDFLAGS += -O2
endif

KBUILD_CFLAGS += $(call cc-disable-warning, unused-const-variable)
ifdef CONFIG_FRAME_POINTER
KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
Expand Down Expand Up @@ -904,6 +907,8 @@ lto-clang-flags += -fvisibility=default $(call cc-option, -fsplit-lto-unit)

KBUILD_LDFLAGS_MODULE += -T scripts/module-lto.lds

KBUILD_LDS_MODULE += $(srctree)/scripts/module-lto.lds

# allow disabling only clang LTO where needed
DISABLE_LTO_CLANG := -fno-lto
export DISABLE_LTO_CLANG
Expand Down Expand Up @@ -955,7 +960,7 @@ export CC_FLAGS_SCS
endif

# arch Makefile may override CC so keep this after arch Makefile is included
NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
NOSTDINC_FLAGS += -nostdinc -isystem $(call shell-cached,$(CC) -print-file-name=include)
CHECKFLAGS += $(NOSTDINC_FLAGS)

# warn about C99 declaration after statement
Expand Down Expand Up @@ -1466,7 +1471,6 @@ all: modules

PHONY += modules
modules: $(vmlinux-dirs) $(if $(KBUILD_BUILTIN),vmlinux) modules.builtin
$(Q)$(AWK) '!x[$$0]++' $(vmlinux-dirs:%=$(objtree)/%/modules.order) > $(objtree)/modules.order
@$(kecho) ' Building modules, stage 2.';
$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost

Expand Down Expand Up @@ -1495,7 +1499,6 @@ _modinst_:
rm -f $(MODLIB)/build ; \
ln -s $(CURDIR) $(MODLIB)/build ; \
fi
@cp -f $(objtree)/modules.order $(MODLIB)/
@cp -f $(objtree)/modules.builtin $(MODLIB)/
$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modinst

Expand Down Expand Up @@ -1811,6 +1814,7 @@ clean: $(clean-dirs)
-o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \
-o -name '*.symtypes' -o -name 'modules.order' \
-o -name modules.builtin -o -name '.tmp_*.o.*' \
-o -name .cache.mk \
-o -name '*.c.[012]*.*' \
-o -name '*.ll' \
-o -name '*.gcno' \
Expand Down Expand Up @@ -1955,8 +1959,7 @@ cmd_crmodverdir = $(Q)mkdir -p $(MODVERDIR) \

# read all saved command lines

targets := $(wildcard $(sort $(targets)))
cmd_files := $(wildcard .*.cmd $(foreach f,$(targets),$(dir $(f)).$(notdir $(f)).cmd))
cmd_files := $(wildcard .*.cmd $(foreach f,$(sort $(targets)),$(dir $(f)).$(notdir $(f)).cmd))

ifneq ($(cmd_files),)
$(cmd_files): ; # Do not try to update included dependency files
Expand Down
8 changes: 8 additions & 0 deletions arch/arm64/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ ifeq ($(CONFIG_RELOCATABLE), y)
# with the relocation offsets always being zero.
LDFLAGS_vmlinux += -pie -Bsymbolic -z notext \
$(call ld-option, --no-apply-dynamic-relocs)

# Pass -shared for bfd and -pie for lld to minimize Image size on both
ifeq ($(ld-name),bfd)
LDFLAGS_vmlinux += -shared
endif
ifeq ($(ld-name),lld)
LDFLAGS_vmlinux += -pie
endif
endif

ifeq ($(CONFIG_ARM64_ERRATUM_843419),y)
Expand Down
30 changes: 0 additions & 30 deletions arch/arm64/boot/dts/qcom/sm8150-gpu.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -151,36 +151,6 @@
cache-slice-names = "gpu", "gpuhtw";
cache-slices = <&llcc 12>, <&llcc 11>;


qcom,gpu-coresights {
#address-cells = <1>;
#size-cells = <0>;
compatible = "qcom,gpu-coresight";

qcom,gpu-coresight@0 {
reg = <0>;
coresight-name = "coresight-gfx";
coresight-atid = <50>;
port {
gfx_out_funnel_gfx: endpoint {
remote-endpoint =
<&funnel_gfx_in_gfx>;
};
};
};
qcom,gpu-coresight@1 {
reg = <1>;
coresight-name = "coresight-gfx-cx";
coresight-atid = <51>;
port {
gfx_cx_out_funnel_gfx: endpoint {
remote-endpoint =
<&funnel_gfx_in_gfx_cx>;
};
};
};
};

qcom,l3-pwrlevels {
#address-cells = <1>;
#size-cells = <0>;
Expand Down
4 changes: 0 additions & 4 deletions arch/arm64/boot/dts/qcom/sm8150-v2.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@
};
};

&tmc_etr {
/delete-property/ qcom,smmu-s1-bypass;
};

&mdss_dsi0_pll {
compatible = "qcom,mdss_dsi_pll_7nm_v2";
};
Expand Down
9 changes: 8 additions & 1 deletion arch/arm64/boot/dts/qcom/sm8150.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,7 @@
clock-names = "core_clk";

qcom,coresight-jtagmm-cpu = <&CPU0>;
status = "disabled";
};

jtag_mm1: jtagmm@7140000 {
Expand All @@ -846,6 +847,7 @@
clock-names = "core_clk";

qcom,coresight-jtagmm-cpu = <&CPU1>;
status = "disabled";
};

jtag_mm2: jtagmm@7240000 {
Expand All @@ -857,6 +859,7 @@
clock-names = "core_clk";

qcom,coresight-jtagmm-cpu = <&CPU2>;
status = "disabled";
};

jtag_mm3: jtagmm@7340000 {
Expand All @@ -868,6 +871,7 @@
clock-names = "core_clk";

qcom,coresight-jtagmm-cpu = <&CPU3>;
status = "disabled";
};

jtag_mm4: jtagmm@7440000 {
Expand All @@ -879,6 +883,7 @@
clock-names = "core_clk";

qcom,coresight-jtagmm-cpu = <&CPU4>;
status = "disabled";
};

jtag_mm5: jtagmm@7540000 {
Expand All @@ -890,6 +895,7 @@
clock-names = "core_clk";

qcom,coresight-jtagmm-cpu = <&CPU5>;
status = "disabled";
};

jtag_mm6: jtagmm@7640000 {
Expand All @@ -901,6 +907,7 @@
clock-names = "core_clk";

qcom,coresight-jtagmm-cpu = <&CPU6>;
status = "disabled";
};

jtag_mm7: jtagmm@7740000 {
Expand All @@ -912,6 +919,7 @@
clock-names = "core_clk";

qcom,coresight-jtagmm-cpu = <&CPU7>;
status = "disabled";
};

intc: interrupt-controller@17a00000 {
Expand Down Expand Up @@ -4289,7 +4297,6 @@
#include "sm8150-bus.dtsi"
#include "sm8150-pcie.dtsi"
#include "sm8150-smp2p.dtsi"
#include "sm8150-coresight.dtsi"
#include "msm-arm-smmu-sm8150.dtsi"
#include "sm8150-qupv3.dtsi"
#include "sm8150-npu.dtsi"
Expand Down
3 changes: 3 additions & 0 deletions arch/arm64/configs/neptune_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,9 @@ CONFIG_SPECULATIVE_PAGE_FAULT=y
# CONFIG_HAVE_LOW_MEMORY_KILLER is not set
# CONFIG_PROCESS_RECLAIM is not set
# CONFIG_FORCE_ALLOC_FROM_DMA_ZONE is not set
CONFIG_LRU_GEN=y
CONFIG_LRU_GEN_ENABLED=y
# CONFIG_LRU_GEN_STATS is not set
CONFIG_OPLUS_MM_HACKS=y
CONFIG_VMSTAT_INTERVAL=20
CONFIG_MULTIPLE_KSWAPD=y
Expand Down
Loading

0 comments on commit ba0981f

Please sign in to comment.