1. 12 3月, 2021 3 次提交
    • S
      park: Reserve park mem before kexec reserved · 1b059882
      Sang Yan 提交于
      hulk inclusion
      category: feature
      bugzilla: 48159
      CVE: N/A
      
      ------------------------------
      
      reserve_crashkernel or reserve_quick_kexec may find one sutiable
      memory region and reserves it, which address of the region is
      not fixed.
      
      As a result, cpu park reserves memory could be failed while
      specified address used by crashkernel or quickkexec.
      
      So, move reserve_park_mem before reserve_crashkernel and
      reserve_quick_kexec.
      
      Signed-off-by: Sang Yan <sangyan(a)huawei.com>
      Reviewed-by: Jing Xiangfeng <jingxiangfeng(a)huawei.com>
      Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
      1b059882
    • Z
      pmem: Enable legacy pmem on openEuler · 22d02cc6
      ZhuLing 提交于
      hulk inclusion
      category: feature
      bugzilla: 48159
      CVE: NA
      
      ------------------------------
      
      Enable legacy pmem on openEuler defconfig both
      arm64 and x86
      
      Signed-off-by: ZhuLing <zhuling8(a)huawei.com>
      Signed-off-by: Sang Yan <sangyan(a)huawei.com>
      Acked-by: Hanjun Guo <guohanjun(a)huawei.com>
      Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
      22d02cc6
    • Z
      arm64: Add memmap parameter and register pmem · 0b88c13e
      ZhuLing 提交于
      hulk inclusion
      category: feature
      bugzilla: 48159
      CVE: NA
      
      ------------------------------
      
      Register pmem in arm64:
      Use memmap(memmap=nn[KMG]!ss[KMG]) reserve memory and
      e820(driver/nvdimm/e820.c) function to register persistent
      memory in arm64. when the kernel restart or update, the data
      in PMEM will not be lost and can be loaded faster. this is a
      general features.
      
      driver/nvdimm/e820.c:
      The function of this file is scan "iomem_resource" and take
      advantage of nvdimm resource discovery mechanism by registering
      a resource named "Persistent Memory (legacy)", this function
      doesn't depend on architecture.
      
      We will push the feature to linux kernel community and discuss to
      modify the file name. because people have a mistaken notion that
      the e820.c is depend on x86.
      
      If you want use this features, you need do as follows:
      1.Reserve memory: add memmap to reserve memory in grub.cfg
        memmap=nn[KMG]!ss[KMG] exp:memmap=100K!0x1a0000000.
      2.Insmod nd_e820.ko: modprobe nd_e820.
      3.Check pmem device in /dev exp: /dev/pmem0
      
      Signed-off-by: ZhuLing <zhuling8(a)huawei.com>
      Signed-off-by: Sang Yan <sangyan(a)huawei.com>
      Acked-by: Hanjun Guo <guohanjun(a)huawei.com>
      Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
      0b88c13e
  2. 11 3月, 2021 2 次提交
  3. 08 3月, 2021 2 次提交
    • X
      arm64: ipi_nmi: fix compile error when CONFIG_KGDB is disabled · 227d5adb
      Xiongfeng Wang 提交于
      hulk inclusion
      category: bugfix
      bugzilla: 50485
      CVE: NA
      
      -------------------------------------------------------------------------
      
      Fix the following compile error.
      
      arch/arm64/kernel/ipi_nmi.c: In function ‘ipi_nmi_handler’:
      arch/arm64/kernel/ipi_nmi.c:54:7: error: implicit declaration of function ‘kgdb_nmicallback’ [-Werror=implicit-function-declaration]
        if (!kgdb_nmicallback(cpu, get_irq_regs()))
             ^~~~~~~~~~~~~~~~
      Signed-off-by: NXiongfeng Wang <wangxiongfeng2@huawei.com>
      Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com>
      Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
      227d5adb
    • F
      kbuild: fix compile error in Makefile.lib · c7245434
      Fang Yafen 提交于
      raspberrypi inclusion
      category: feature
      bugzilla: 50432
      
      ------------------------------
      
      Fix the following compile error when using bcm2711_defconfig (for RPi).
      
      /bin/sh: -c: line 0: syntax error near unexpected token `('
      /bin/sh: -c: line 0: `set -e;
      echo '  DTCO    arch/arm64/boot/dts/overlays/act-led.dtbo';
      mkdir -p arch/arm64/boot/dts/overlays/ ;
      gcc -E -Wp,-MMD,arch/arm64/boot/dts/overlays/.act-led.dtbo.d.pre.tmp
      -nostdinc -I./scripts/dtc/include-prefixes -undef -D__DTS__
      -x assembler-with-cpp
      -o arch/arm64/boot/dts/overlays/.act-led.dtbo.dts.tmp
      arch/arm64/boot/dts/overlays/act-led-overlay.dts ;
      ./scripts/dtc/dtc -@ -H epapr -O dtb
      -o arch/arm64/boot/dts/overlays/act-led.dtbo -b 0
      -i arch/arm64/boot/dts/overlays/ -Wno-interrupt_provider
      -Wno-unit_address_vs_reg -Wno-unit_address_format -Wno-gpios_property
      -Wno-avoid_unnecessary_addr_size -Wno-alias_paths
      -Wno-graph_child_address -Wno-simple_bus_reg
      -Wno-unique_unit_address -Wno-pci_device_reg
      -Wno-interrupts_property ifeq (y,y) -Wno-label_is_string
      -Wno-reg_format -Wno-pci_device_bus_num -Wno-i2c_bus_reg
      -Wno-spi_bus_reg -Wno-avoid_default_addr_size endif
      -d arch/arm64/boot/dts/overlays/.act-led.dtbo.d.dtc.tmp
      arch/arm64/boot/dts/overlays/.act-led.dtbo.dts.tmp ;
      cat ...; rm -f arch/arm64/boot/dts/overlays/.act-led.dtbo.d'
      make[2]: *** [scripts/Makefile.lib;363:
      arch/arm64/boot/dts/overlays/act-led.dtbo] Error 1
      make[2]: *** Waiting for unfinished jobs....
      
      Related patches:
      
      ffa2d13c BCM2708: Add core Device Tree support
      4894352e kbuild: Silence unavoidable dtc overlay warnings
      a4a4d07f kbuild: keep the original function for non-RPi
      
      Signed-off-by: Fang Yafen <yafen(a)iscas.ac.cn>
      Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com>
      Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
      c7245434
  4. 05 3月, 2021 10 次提交
  5. 04 3月, 2021 23 次提交