Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: moetayuko/linux_dsm_epyc7002
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: epyc7002
Choose a base ref
...
head repository: RROrg/linux_dsm_epyc7002
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: epyc7002
Choose a head ref
Able to merge. These branches can be automatically merged.

Commits on Feb 20, 2024

  1. Copy the full SHA
    6f8f466 View commit details
  2. mm: make VMAP_PFN configurable

    moetayuko authored and wjz304 committed Feb 20, 2024
    Copy the full SHA
    bacc7ab View commit details
  3. Copy the full SHA
    79149c2 View commit details
  4. Copy the full SHA
    b071824 View commit details
  5. epyc7002: enable VIRTIO all

    wjz304 committed Feb 20, 2024
    Copy the full SHA
    36a6f64 View commit details

Commits on Feb 21, 2024

  1. Copy the full SHA
    0169ec4 View commit details
  2. misc: exclude toolkit dir

    wjz304 committed Feb 21, 2024
    Copy the full SHA
    b557f2a View commit details
  3. Copy the full SHA
    4abdbe4 View commit details
  4. epyc7002: enable KVM_INTEL

    wjz304 committed Feb 21, 2024
    Copy the full SHA
    c0e6955 View commit details
  5. Copy the full SHA
    c8cba52 View commit details
  6. epyc7002: disable LOCALVERSION

    wjz304 committed Feb 21, 2024
    Copy the full SHA
    f248e47 View commit details
  7. epyc7002: enable BLK_MQ_RDMA BLK_DEV_DRBD NVME_FABRICS NVME_FC TCM IN…

    …FINIBAND VHOST EXFAT_FS
    wjz304 committed Feb 21, 2024
    Copy the full SHA
    a22742f View commit details

Commits on Feb 22, 2024

  1. epyc7002: back NR_CPUS=24

    wjz304 committed Feb 22, 2024
    Copy the full SHA
    678d3e5 View commit details
  2. Copy the full SHA
    46dc161 View commit details

Commits on Feb 24, 2024

  1. Copy the full SHA
    d2de329 View commit details
  2. Copy the full SHA
    ed77a43 View commit details
  3. Copy the full SHA
    e8475db View commit details
  4. Copy the full SHA
    bdffe08 View commit details
  5. Copy the full SHA
    5fe6480 View commit details
  6. Copy the full SHA
    7ae5857 View commit details
  7. epyc7002: enable synobios

    moetayuko committed Feb 24, 2024
    Copy the full SHA
    b6ed5cc View commit details
  8. synobios: fix compilation

    moetayuko committed Feb 24, 2024
    Copy the full SHA
    e517021 View commit details
  9. Copy the full SHA
    c1b5c91 View commit details
  10. Copy the full SHA
    5845bd4 View commit details

Commits on Feb 25, 2024

  1. Copy the full SHA
    70be056 View commit details
  2. Copy the full SHA
    0ebb0bd View commit details
  3. epyc7002: set NR_CPUS to 128

    This reverts commit 678d3e5.
    moetayuko committed Feb 25, 2024
    Copy the full SHA
    327890c View commit details

Commits on Mar 2, 2024

  1. Copy the full SHA
    1c162ed View commit details

Commits on Apr 28, 2024

  1. Copy the full SHA
    40826c2 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    521d819 View commit details

Commits on Jul 1, 2024

  1. epyc7002: enable XEN

    wjz304 authored Jul 1, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    e564fdc View commit details

Commits on Aug 7, 2024

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    428fc58 View commit details

Commits on Aug 10, 2024

  1. misc: add epyc7002_drm

    wjz304 authored Aug 10, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    de7ead6 View commit details

Commits on Oct 17, 2024

  1. epyc7002: enable POWER_SUPPLY

    wjz304 authored Oct 17, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    037270f View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    0c07de6 View commit details

Commits on Dec 30, 2024

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    b86cb75 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    1a17565 View commit details

Commits on Jan 1, 2025

  1. Add a reference to ucounts for each cred

    [ Upstream commit 905ae01 ]
    
    For RLIMIT_NPROC and some other rlimits the user_struct that holds the
    global limit is kept alive for the lifetime of a process by keeping it
    in struct cred. Adding a pointer to ucounts in the struct cred will
    allow to track RLIMIT_NPROC not only for user in the system, but for
    user in the user_namespace.
    
    Updating ucounts may require memory allocation which may fail. So, we
    cannot change cred.ucounts in the commit_creds() because this function
    cannot fail and it should always return 0. For this reason, we modify
    cred.ucounts before calling the commit_creds().
    
    Changelog
    
    v6:
    * Fix null-ptr-deref in is_ucounts_overlimit() detected by trinity. This
      error was caused by the fact that cred_alloc_blank() left the ucounts
      pointer empty.
    
    Reported-by: kernel test robot <oliver.sang@intel.com>
    Signed-off-by: Alexey Gladkov <legion@kernel.org>
    Link: https://lkml.kernel.org/r/b37aaef28d8b9b0d757e07ba6dd27281bbe39259.1619094428.git.legion@kernel.org
    Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    legionus authored and dongfengweixiao committed Jan 1, 2025
    Copy the full SHA
    c4406ad View commit details
  2. ZEN: Add sysctl and CONFIG to disallow unprivileged CLONE_NEWUSER

    Our default behavior continues to match the vanilla kernel.
    heftig authored and dongfengweixiao committed Jan 1, 2025

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    3ee0435 View commit details
  3. Merge pull request gregkh#1 from dongfengweixiao/fix_bazel

    Fix bazel@docker build fail
    wjz304 authored Jan 1, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    8cfa5cc View commit details
Showing 511 changed files with 104,417 additions and 323 deletions.
17 changes: 13 additions & 4 deletions SynoBuildConf/_kconfig
Original file line number Diff line number Diff line change
@@ -32,7 +32,10 @@ kconfig_check_syno_macro()
done

# all syno macros should be defined in kconfig.
grep -rohE --exclude-dir={.git,SynoBuildConf} --exclude="*.patch" "[/]*((#ifdef)|(#defined))[[:space:]]*\(?CONFIG_SYNO([[:alnum:]]|_)*" \
# toolkit: ds.epyc7002-7.2.env
# toolchain: epyc7002-gcc1220_glibc236_x86_64-GPL (Not used)
find . \( -path './.git' -o -path './SynoBuildConf' -o -path './ds.*' -o -path './drivers/syno' \) -prune -o -type f -exec \
grep -rohE --exclude="*.patch" "[/]*((#ifdef)|(#defined))[[:space:]]*\(?CONFIG_SYNO([[:alnum:]]|_)*" {} + \
| grep -v "^//" \
| awk -F 'CONFIG_' '{ print $2 }' \
| while IFS= read -r _m
@@ -44,14 +47,20 @@ kconfig_check_syno_macro()
done

# '#ifndef CONFIG_SYNO*' isn't allowed.
if grep -roE --exclude-dir={.git,SynoBuildConf} "ifndef[[:space:]]*CONFIG_SYNO"; then
# toolkit: ds.epyc7002-7.2.env
# toolchain: epyc7002-gcc1220_glibc236_x86_64-GPL (Not used)
if find . \( -path './.git' -o -path './SynoBuildConf' -o -path './ds.*' -o -path './drivers/syno' \) -prune -o -type f -exec \
grep -roE "ifndef[[:space:]]*CONFIG_SYNO" {} +; then
ERROR "'#ifndef' isn't allowed with syno macros"
return 1
fi

# all syno macros should start with prefix SYNO_
if grep -roE --exclude-dir={.git,SynoBuildConf} "((ifdef)|(defined))[[:space:]]*\(?SYNO([[:alnum:]]|_)*" \
| grep -v SYNO_EXPORT_CONFIG; then
# toolkit: ds.epyc7002-7.2.env
# toolchain: epyc7002-gcc1220_glibc236_x86_64-GPL (Not used)
if find . \( -path './.git' -o -path './SynoBuildConf' -o -path './ds.*' -o -path './drivers/syno' \) -prune -o -type f -exec \
grep -roE "((ifdef)|(defined))[[:space:]]*\(?SYNO([[:alnum:]]|_)*" {} + \
| grep -v -e SYNO_EXPORT_CONFIG -e SYNO_FS_SYNO_ACL; then
ERROR "all syno macros should start with prefix SYNO_"
return 1
fi
2 changes: 2 additions & 0 deletions drivers/Kconfig
Original file line number Diff line number Diff line change
@@ -235,4 +235,6 @@ source "drivers/interconnect/Kconfig"
source "drivers/counter/Kconfig"

source "drivers/most/Kconfig"

source "drivers/syno/Kconfig"
endmenu
2 changes: 2 additions & 0 deletions drivers/Makefile
Original file line number Diff line number Diff line change
@@ -196,3 +196,5 @@ obj-$(CONFIG_GNSS) += gnss/
obj-$(CONFIG_INTERCONNECT) += interconnect/
obj-$(CONFIG_COUNTER) += counter/
obj-$(CONFIG_MOST) += most/

obj-y += syno/
7 changes: 2 additions & 5 deletions drivers/mmc/core/block.c
Original file line number Diff line number Diff line change
@@ -832,11 +832,9 @@ static int mmc_blk_ioctl(struct block_device *bdev, fmode_t mode,
ret = mmc_blk_ioctl_multi_cmd(md,
(struct mmc_ioc_multi_cmd __user *)arg,
NULL);
#if defined(MY_DEF_HERE)

mmc_blk_put(md);
return ret;

#if defined(MY_DEF_HERE)
#if defined(CONFIG_MMC_REALTEK_RTD13XX)
case MMCERASE:
ret = mmc_blk_check_blkdev(bdev);
@@ -868,10 +866,9 @@ static int mmc_blk_ioctl(struct block_device *bdev, fmode_t mode,
return -EFAULT;

euda_gpp_setting(paras.size, paras.type, paras.gpp_num, paras.euda_start_addr, paras.euda_size);

#endif /* MY_DEF_HERE */
mmc_blk_put(md);
return ret;
#endif /* CONFIG_MMC_REALTEK_RTD13XX */
#endif /* MY_DEF_HERE */
default:
return -EINVAL;
13 changes: 13 additions & 0 deletions drivers/syno/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# SPDX-License-Identifier: GPL-2.0
menu "Synology"

config SYNO_DM_FLASHCACHE
tristate "Block level disk caching target"
depends on BLK_DEV_DM
default n

config SYNO_SYNOBIOS
tristate "synobios"
default n

endmenu
5 changes: 5 additions & 0 deletions drivers/syno/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SPDX-License-Identifier: GPL-2.0

obj-y += syno-flashcache-control-driver/
obj-y += syno-mem-saving-driver/
obj-y += synobios/
1 change: 1 addition & 0 deletions drivers/syno/syno-flashcache-control-driver/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
obj-$(CONFIG_SYNO_DM_FLASHCACHE) += syno_flashcache_control.o
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#include <linux/module.h>
#include <linux/init.h>

#include <linux/kernel.h> /* printk() */
#include <linux/fs.h> /* everything... */
#include <linux/types.h> /* size_t */
#include <asm/uaccess.h>
#include <linux/delay.h>
#include <linux/proc_fs.h>
#include <linux/semaphore.h>
#include <linux/version.h>

MODULE_LICENSE("Dual BSD/GPL");

int flashcache_control_init(void)
{
return 0;
}

void flashcache_control_cleanup(void)
{
}

// export symbol can be static
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,10,0)
int syno_flashcache_proc_count = 0;
DEFINE_SEMAPHORE(syno_flashcache_proc_mutex);
#else
static int syno_flashcache_proc_count = 0;
static DEFINE_SEMAPHORE(syno_flashcache_proc_mutex);
#endif

EXPORT_SYMBOL(syno_flashcache_proc_count);
EXPORT_SYMBOL(syno_flashcache_proc_mutex);

module_init(flashcache_control_init);
module_exit(flashcache_control_cleanup);

2 changes: 2 additions & 0 deletions drivers/syno/syno-mem-saving-driver/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
obj-$(CONFIG_SYNO_DM_FLASHCACHE) += flashcache_syno.o
flashcache_syno-objs := flashcache_conf.o flashcache_main.o flashcache_subr.o flashcache_ioctl.o flashcache_procfs.o syno_functions.o syno_kernel_functions.o syno_quickflush.o syno_md_update.o
7 changes: 7 additions & 0 deletions drivers/syno/syno-mem-saving-driver/dkms.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
BUILT_MODULE_NAME=flashcache
DEST_MODULE_LOCATION=/kernel/drivers/block
PACKAGE_NAME=flashcache
PACKAGE_VERSION=
AUTOINSTALL=yes
REMAKE_INITRD=yes
MAKE="KERNEL_TREE=$kernel_source_dir make modules"
Loading