RE: [EXT] Re: [PATCH v8 net-next 02/15] dts: marvell: add CM3 SRAM memory to cp11x ethernet device tree

2021-02-06 Thread Stefan Chulski
> -- > On Sat, 6 Feb 2021 18:45:48 +0200 stef...@marvell.com wrote: > > From: Konstantin Porotchkin > > > > CM3 SRAM address space would be used for Flow Control configuration. > > > > Signed-off-by: Stefan Chulski > >

[PATCH v2] mtd: convert sysfs sprintf/snprintf family to sysfs_emit

2021-02-06 Thread Jiapeng Chong
Fix the following coccicheck warning: convert sysfs snprintf family to sysfs_emit in 'mtdcore.c'. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- Changes in v2: - Adjust the description of the modified content. drivers/mtd/mtdcore.c | 35 +-- 1 file

[PATCH] bpf/benchs/bench_ringbufs: remove unneeded semicolon

2021-02-06 Thread Yang Li
Eliminate the following coccicheck warning: ./tools/testing/selftests/bpf/benchs/bench_ringbufs.c:322:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- tools/testing/selftests/bpf/benchs/bench_ringbufs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH] jfs: turn diLog(), dataLog() and txLog() into void functions

2021-02-06 Thread kernel test robot
Hi Yang, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on shaggy/jfs-next] [also build test WARNING on v5.11-rc6 next-20210125] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as

[PATCH] selftests/x86/ldt_gdt: remove unneeded semicolon

2021-02-06 Thread Yang Li
Eliminate the following coccicheck warning: ./tools/testing/selftests/x86/ldt_gdt.c:610:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- tools/testing/selftests/x86/ldt_gdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

WARNING in go7007_usb_onboard_write_interrupt/usb_submit_urb

2021-02-06 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:64eaa0fa platform/chrome: cros_ec_typec: Fix call to typec.. git tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing console output: https://syzkaller.appspot.com/x/log.txt?x=12d5c090d0 kernel

Re: [PATCH] staging: emxx_udc: Fix incorrectly defined global

2021-02-06 Thread Kumar Kartikeya Dwivedi
On Sun, Feb 07, 2021 at 12:04:41PM IST, Stephen Rothwell wrote: > > Given that drivers/staging/emxx_udc/emxx_udc.h is only included by > drivers/staging/emxx_udc/emxx_udc.c, shouldn't these variables just be > declared static in emxx_udc.c and removed from emxx_udc.h? > Either would be correct.

Re: [PATCH v19 3/3] scsi: ufs: Prepare HPB read for cached sub-region

2021-02-06 Thread Can Guo
On 2021-02-05 23:08, Bean Huo wrote: On Fri, 2021-02-05 at 14:06 +, Avri Altman wrote: > > > + put_unaligned_be64(ppn, [6]); > > > > You are assuming the HPB entries read out by "HPB Read Buffer" > > cmd > > are > > in Little > > Endian, which is why you are using put_unaligned_be64

Re: [PATCH v2 2/2] perf script: Support filtering by hex address

2021-02-06 Thread Jin, Yao
Hi Jiri, On 2/5/2021 5:49 PM, Jiri Olsa wrote: On Fri, Jan 29, 2021 at 03:08:54PM +0800, Jin Yao wrote: SNIP + } + } + if (!ret) al->filtered |= (1 << HIST_FILTER__SYMBOL); } diff --git

[PATCH v2] MIPS: crash_dump.c: Simplify copy_oldmem_page()

2021-02-06 Thread Youling Tang
Replace kmap_atomic_pfn() with kmap_local_pfn() which is preemptible and can take page faults. Remove the indirection of the dump page and the related cruft which is not longer required. Remove unused or redundant header files. Reported-by: kernel test robot Signed-off-by: Youling Tang ---

[PATCH] psi: Add PSI_CPU_FULL state

2021-02-06 Thread Chengming Zhou
The FULL state doesn't exist for the CPU resource at the system level, but exist at the cgroup level, means all non-idle tasks in a cgroup are delayed on the CPU resource which used by others outside of the cgroup. Co-developed-by: Muchun Song Signed-off-by: Muchun Song Signed-off-by: Chengming

memory leak in __ieee80211_beacon_get

2021-02-06 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:3aaf0a27 Merge tag 'clang-format-for-linux-v5.11-rc7' of g.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=10f79330d0 kernel config: https://syzkaller.appspot.com/x/.config?x=b7edd79f26f7c0c3

[PATCH] m68k: Drop -fno-strength-reduce from KBUILD_CFLAGS

2021-02-06 Thread Finn Thain
This workaround became redundant either when the driver in question was removed (in Linux v2.6.23) or when the compiler flag became a no-op (in GCC v4.2). Linux has required GCC v4.6 or later since v4.19. Link:

[PATCH] ALSA: pci: Assign boolean values to a bool variable

2021-02-06 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./sound/pci/azt3328.c:2451:2-16: WARNING: Assignment of 0/1 to bool variable. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- sound/pci/azt3328.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/azt3328.c

[PATCH v2 1/3] iio: Add relative sensitivity support

2021-02-06 Thread Ye Xiang
Some hid sensors may use relative sensitivity such as als sensor. This patch adds relative sensitivity checking for all hid sensors. Signed-off-by: Ye Xiang --- .../hid-sensors/hid-sensor-attributes.c | 74 ++- drivers/iio/industrialio-core.c | 1 +

[PATCH v2 3/3] iio: Add relative hysteresis in ABI documentation

2021-02-06 Thread Ye Xiang
Add relative hysteresis in ABI documentation for als sensor. Signed-off-by: Ye Xiang --- Documentation/ABI/testing/sysfs-bus-iio | 9 + 1 file changed, 9 insertions(+) diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio index

[PATCH v2 2/3] iio: hid-sensor-als: Add relative hysteresis support

2021-02-06 Thread Ye Xiang
Hid sensor als use relative hysteresis, this patch adds the support. Signed-off-by: Ye Xiang --- drivers/iio/light/hid-sensor-als.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/iio/light/hid-sensor-als.c b/drivers/iio/light/hid-sensor-als.c index

[PATCH v2 0/3] Add relative hysteresis support for hid sensors

2021-02-06 Thread Ye Xiang
Currently, hid sensor als are using the relative hysteresis. This patch series add the relative hysteresis for hid sensors. --- v2: - (1/3) fix the formatting issue in hid_sensor_read_raw_hyst_rel_value. - (3/3) add documentation just for light sensor. Ye Xiang (3): iio: Add relative

[PATCH RFC 5/7] kvm: x86: Revise CPUID.D.1.EBX for alignment rule

2021-02-06 Thread Jing Liu
CPUID.0xD.1.EBX[1] is set if, when the compacted format of an XSAVE area is used, this extended state component located on the next 64-byte boundary following the preceding state component (otherwise, it is located immediately following the preceding state component). AMX tileconfig and tiledata

[PATCH] scsi: qla4xxx: turn qla4xxx_copy_from_fwddb_param() into void

2021-02-06 Thread Yang Li
This function always return '0' and no callers use the return value. So make it a void function. This eliminates the following coccicheck warning: ./drivers/scsi/qla4xxx/ql4_os.c:3642:5-7: Unneeded variable: "rc". Return "0" on line 3741 Reported-by: Abaci Robot Signed-off-by: Yang Li ---

[PATCH RFC 7/7] kvm: x86: AMX XCR0 support for guest

2021-02-06 Thread Jing Liu
Two XCR0 bits are defined for AMX to support XSAVE mechanism. Bit 17 is for tilecfg and bit 18 is for tiledata. Signed-off-by: Jing Liu --- arch/x86/kvm/x86.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index

[PATCH RFC 4/7] kvm: x86: Add new ioctls for XSAVE extension

2021-02-06 Thread Jing Liu
The static xstate buffer kvm_xsave contains the extended register states, but it is not enough for dynamic features with large state. Introduce a new capability called KVM_CAP_X86_XSAVE_EXTENSION to detect if hardware has XSAVE extension (XFD). Meanwhile, add two new ioctl interfaces to get/set

[PATCH RFC 6/7] kvm: x86: Add AMX_TILE, AMX_INT8 and AMX_BF16 support

2021-02-06 Thread Jing Liu
Intel introduces AMX architecture in SPR platform, which includes AMX_TILE, AMX_INT8 and AMX_BF16 support. Exposes these features to KVM guest. Signed-off-by: Jing Liu --- arch/x86/kvm/cpuid.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git

[PATCH RFC 1/7] kvm: x86: Expose XFD CPUID to guest

2021-02-06 Thread Jing Liu
Intel's Extended Feature Disable (XFD) feature is an extension to the XSAVE feature that allows an operating system to enable a feature while preventing specific user threads from using the feature. A processor that supports XFD enumerates CPUID.(EAX=0DH,ECX=1):EAX[4] as 1. Signed-off-by: Jing

[PATCH RFC 3/7] kvm: x86: XSAVE state and XFD MSRs context switch

2021-02-06 Thread Jing Liu
XFD allows the kernel to enable a feature state in XCR0 and to receive a #NM trap when a task uses instructions accessing that state. Kernel defines "struct fpu.state_mask" to indicate the saved xstate and interact with the XFD hardware when needed via a simple conversion. Once a dynamic feature

[PATCH RFC 2/7] kvm: x86: Introduce XFD MSRs as passthrough to guest

2021-02-06 Thread Jing Liu
XFD feature introduces two new MSRs: IA32_XFD and IA32_XFD_ERR. Each of the MSRs contains a state-component bitmap. XFD is enabled for state component i if XCR0[i] = IA32_XFD[i] = 1. When XFD is enabled for a state component, any instruction that would access that state component does not execute

[PATCH RFC 0/7] Introduce support for guest AMX feature

2021-02-06 Thread Jing Liu
Intel introduces Advanced Matrix Extensions (AMX) [1] feature that will be shipping soon. AMX consists of configurable two-dimensional "TILE" registers and new accelerator instructions that operate on them. TMUL (Tile matrix MULtiply) is the first accelerator instruction set to use the new

[PATCH] powerpc/xive: Assign boolean values to a bool variable

2021-02-06 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./arch/powerpc/kvm/book3s_xive.c:1856:2-17: WARNING: Assignment of 0/1 to bool variable. ./arch/powerpc/kvm/book3s_xive.c:1854:2-17: WARNING: Assignment of 0/1 to bool variable. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong ---

Re: ANNOUNCE: pahole v1.20 (gcc11 DWARF5's default, lots of ELF sections, BTF)

2021-02-06 Thread Andrii Nakryiko
On Fri, Feb 5, 2021 at 3:55 PM Arnaldo Carvalho de Melo wrote: > > Em Fri, Feb 05, 2021 at 02:11:44PM -0800, Andrii Nakryiko escreveu: > > On Fri, Feb 5, 2021 at 8:25 AM Arnaldo Carvalho de Melo > > wrote: > > > > > > Em Fri, Feb 05, 2021 at 06:33:43AM -0300, Arnaldo Carvalho de Melo > > >

[PATCH] jfs: turn diLog(), dataLog() and txLog() into void functions

2021-02-06 Thread Yang Li
These functions always return '0' and no callers use the return value. So make it a void function. This eliminates the following coccicheck warning: ./fs/jfs/jfs_txnmgr.c:1365:5-7: Unneeded variable: "rc". Return "0" on line 1414 ./fs/jfs/jfs_txnmgr.c:1422:5-7: Unneeded variable: "rc". Return "0"

Re: [PATCH] staging: emxx_udc: Fix incorrectly defined global

2021-02-06 Thread Stephen Rothwell
Hi Kumar, On Sun, 7 Feb 2021 05:30:31 +0530 Kumar Kartikeya Dwivedi wrote: > > The global gpio_desc pointer and int were defined in the header, > instead put the definitions in the translation unit and add an extern > declaration for consumers of the header (currently only one, which is >

[PATCH] usb: gadget: Assign boolean values to a bool variable

2021-02-06 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./drivers/usb/gadget/udc/udc-xilinx.c:846:1-17: WARNING: Assignment of 0/1 to bool variable. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/usb/gadget/udc/udc-xilinx.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff

[PATCH v4 3/3] arm64: dts: mt8192: add mt6315 regulator nodes

2021-02-06 Thread Hsin-Hsiung Wang
Add MT6315 regulator nodes to MT8192 evaluation board. Signed-off-by: Hsin-Hsiung Wang --- changes since v3: - update the dts node. --- arch/arm64/boot/dts/mediatek/mt8192-evb.dts | 46 + 1 file changed, 46 insertions(+) diff --git

[PATCH v4 0/3] Add support for MT6315 regulator

2021-02-06 Thread Hsin-Hsiung Wang
This patch series adds support for MediaTek PMIC MT6315 regulator driver, which adds MT6315 related buck voltage data to the driver. This series is based on below patch[1]. [1] https://patchwork.kernel.org/project/linux-mediatek/list/?series=429385 changes since v3: - fix the error of binding

[PATCH v4 2/3] regulator: mt6315: Add support for MT6315 regulator

2021-02-06 Thread Hsin-Hsiung Wang
The MT6315 is a regulator found on boards based on MediaTek MT8192 and probably other SoCs. It connects as a slave to SoC using SPMI. Signed-off-by: Hsin-Hsiung Wang --- changes since v3: - refine the mt6315 regulator for better code quality. - remove unused registers. ---

[PATCH v4 1/3] dt-bindings: regulator: document binding for MT6315 regulator

2021-02-06 Thread Hsin-Hsiung Wang
Add device tree binding information for MT6315 regulator driver. Example bindings for MT6315 are added. Signed-off-by: Hsin-Hsiung Wang --- changes since v3: - correct the yaml file name. - remove unused description. - update the example. --- .../bindings/regulator/mt6315-regulator.yaml | 69

[PATCH v6 2/4] dt-bindings: spmi: document binding for the Mediatek SPMI controller

2021-02-06 Thread Hsin-Hsiung Wang
This adds documentation for the SPMI controller found on Mediatek SoCs. Signed-off-by: Hsin-Hsiung Wang Reviewed-by: Rob Herring --- changes since v5: no changes --- .../bindings/spmi/mtk,spmi-mtk-pmif.yaml | 74 +++ 1 file changed, 74 insertions(+) create mode 100644

[PATCH v6 3/4] spmi: mediatek: Add support for MT6873/8192

2021-02-06 Thread Hsin-Hsiung Wang
Add spmi support for MT6873/8192. Signed-off-by: Hsin-Hsiung Wang --- changes since v5: - add a newline at end of Makefile. - refine the spmi-mtk-pmif driver for better code quality. --- drivers/spmi/Kconfig | 9 + drivers/spmi/Makefile| 2 + drivers/spmi/spmi-mtk-pmif.c |

[PATCH v6 4/4] arm64: dts: mt8192: add spmi node

2021-02-06 Thread Hsin-Hsiung Wang
Add spmi node to SOC MT8192. Signed-off-by: Hsin-Hsiung Wang --- changes since v5: - fix the build error of MT8192.dtsi. --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi

[PATCH v6 1/4] dt-bindings: spmi: modify the constraint 'maxItems' to 'minItems'

2021-02-06 Thread Hsin-Hsiung Wang
The constraint of 'maxItem: 1' might be larger than 1, so we modify it to 'minItem: 1'. Signed-off-by: Hsin-Hsiung Wang --- changes since v5: - update the constraint of minItem to 1. --- Documentation/devicetree/bindings/spmi/spmi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v6 0/4] Add SPMI support for Mediatek MT6873/8192 SoC IC

2021-02-06 Thread Hsin-Hsiung Wang
This series adds support for new SoC MT6873/8192 to the spmi driver. This series is based on Weiyi's patches[1]. [1] https://patchwork.kernel.org/project/linux-mediatek/patch/1608642587-15634-7-git-send-email-weiyi...@mediatek.com/ changes since v5: - fix the yaml error. - refine the

Re: [PATCH] drm/msm/dp: Add a missing semi-colon

2021-02-06 Thread Joe Perches
On Sat, 2021-02-06 at 20:18 -0800, Stephen Boyd wrote: > A missing semicolon here causes my external display to stop working. > Indeed, missing the semicolon on the return statement leads to > dp_panel_update_tu_timings() not existing because the compiler thinks > it's part of the return statement

[PATCH v2] KVM: x86/MMU: Do not check unsync status for root SP.

2021-02-06 Thread Yu Zhang
In shadow page table, only leaf SPs may be marked as unsync. And for non-leaf SPs, we use unsync_children to keep the number of the unsynced children. In kvm_mmu_sync_root(), sp->unsync shall always be zero for the root SP, , hence no need to check it. Instead, a warning inside mmu_sync_children()

Re: [PATCH] printk: Userspace format enumeration support

2021-02-06 Thread Joe Perches
On Sat, 2021-02-06 at 21:21 +, Chris Down wrote: > Joe Perches writes: > > On Fri, 2021-02-05 at 22:25 +, Chris Down wrote: > > > Petr Mladek writes: > > > >   + is already optinaly added by pr_fmt() to the printed > > > > strings > > > > as: pr_fmt(): ... > > > > > > pr_fmts are

[PATCH v2 net-next] net: socket: use BIT() for MSG_*

2021-02-06 Thread menglong8 . dong
From: Menglong Dong The bit mask for MSG_* seems a little confused here. Replace it with BIT() to make it clear to understand. Changes since v1: - use BIT() instead of BIT_MASK() Signed-off-by: Menglong Dong --- include/linux/socket.h | 71 ++ 1 file

Re: [PATCH 2/5] lib/test_bitmap.c: Add for_each_set_clump test cases

2021-02-06 Thread Syed Nayyar Waris
On Thu, Feb 4, 2021 at 2:25 PM Syed Nayyar Waris wrote: > > On Sat, Dec 26, 2020 at 8:15 PM Andy Shevchenko > wrote: > > > > > > > > On Saturday, December 26, 2020, Syed Nayyar Waris > > wrote: > >> > >> The introduction of the generic for_each_set_clump macro need test > >> cases to verify

[PATCH] drm/msm/dp: Add a missing semi-colon

2021-02-06 Thread Stephen Boyd
A missing semicolon here causes my external display to stop working. Indeed, missing the semicolon on the return statement leads to dp_panel_update_tu_timings() not existing because the compiler thinks it's part of the return statement of a void function, so it must not be important. $

Re: [PATCH v28 06/12] fs,security: Add sb_delete hook

2021-02-06 Thread Serge E. Hallyn
On Fri, Feb 05, 2021 at 03:57:37PM +0100, Mickaël Salaün wrote: > > On 05/02/2021 15:21, Serge E. Hallyn wrote: > > On Tue, Feb 02, 2021 at 05:27:04PM +0100, Mickaël Salaün wrote: > >> From: Mickaël Salaün > >> > >> The sb_delete security hook is called when shutting down a superblock, > >>

[PATCH] Input: synaptic - reverting dcb00fc799dc03fd320e123e4c81b3278c763ea5 because it breaks the touchpad for one guy on Reddit.

2021-02-06 Thread Colton Booth
I can't test myself since I don't have the correct hardware, BUT this change seems to work for him. I'm thinking he has an early version of the X1E which may use slightly different trackpad revision. Signed-off-by: Colton Booth --- drivers/input/mouse/synaptics.c | 2 -- 1 file changed, 2

Re: [PATCH v2 2/2] drivers/clocksource: Fixup csky,mptimer compile error with CPU_CK610

2021-02-06 Thread Guo Ren
The same way in IRQ chip: Link: https://lore.kernel.org/lkml/161245410060.1472442.13488057609914274236.b4...@kernel.org/ On Sun, Feb 7, 2021 at 11:31 AM Guo Ren wrote: > > Hi Daniel, > > On Thu, Feb 4, 2021 at 4:48 PM Daniel Lezcano > wrote: > > > > On 04/02/2021 08:46, guo...@kernel.org

Re: [PATCH v2 2/2] drivers/clocksource: Fixup csky,mptimer compile error with CPU_CK610

2021-02-06 Thread Guo Ren
Hi Daniel, On Thu, Feb 4, 2021 at 4:48 PM Daniel Lezcano wrote: > > On 04/02/2021 08:46, guo...@kernel.org wrote: > > From: Guo Ren > > > > The timer-mp-csky.c only could support CPU_CK860 and it will > > compile error with CPU_CK610. > > > > It has been selected in arch/csky/Kconfig. > > It

Re: [PATCH net-next] net: socket: use BIT_MASK for MSG_*

2021-02-06 Thread Menglong Dong
Hello! On Sat, Feb 6, 2021 at 4:20 PM Andy Shevchenko wrote: > > > > On Saturday, February 6, 2021, wrote: >> >> From: Menglong Dong >> >> The bit mask for MSG_* seems a little confused here. Replace it >> with BIT_MASK to make it clear to understand. > > > It makes it more confusing if you

Re: [PATCH v4 3/3] iio: proximity: Add a ChromeOS EC MKBP proximity driver

2021-02-06 Thread Stephen Boyd
Quoting Jonathan Cameron (2021-02-06 08:17:11) > On Tue, 2 Feb 2021 10:44:34 -0800 > Stephen Boyd wrote: > > > +static struct platform_driver cros_ec_mkbp_proximity_driver = { > > + .driver = { > > + .name = "cros-ec-mkbp-proximity", > > + .of_match_table = > >

Re: [PATCH] mips: kernel: setup: fix crash kernel resource allocation

2021-02-06 Thread Jinyang He
On 02/06/2021 08:59 PM, Ivan Khoronzhuk wrote: In order to avoid crash kernel corruption, its memory is reserved early in memblock and as result, in time when resources are inited it's not present in memblock.memory, so crash kernel memory is out of ranges listed with for_each_mem_range(). To

[PATCH v2 net-next] net: socket: use BIT() for MSG_*

2021-02-06 Thread menglong8 . dong
From: Menglong Dong The bit mask for MSG_* seems a little confused here. Replace it with BIT() to make it clear to understand. Changes since v1: - use BIT() instead of BIT_MASK() Signed-off-by: Menglong Dong --- include/linux/socket.h | 71 ++ 1 file

[PATCH v9 13/18] virt: acrn: Introduce interfaces to query C-states and P-states allowed by hypervisor

2021-02-06 Thread shuo . a . liu
From: Shuo Liu The C-states and P-states data are used to support CPU power management. The hypervisor controls C-states and P-states for a User VM. ACRN userspace need to query the data from the hypervisor to build ACPI tables for a User VM. HSM provides ioctls for ACRN userspace to query

[PATCH v9 18/18] sample/acrn: Introduce a sample of HSM ioctl interface usage

2021-02-06 Thread shuo . a . liu
From: Shuo Liu Launch a simple guest (with several instructions as payload) on ACRN with demonstration ioctl usage. Signed-off-by: Shuo Liu --- samples/acrn/Makefile| 12 samples/acrn/guest.ld| 9 +++ samples/acrn/payload.ld | 9 +++ samples/acrn/vm-sample.c | 136

[PATCH v9 17/18] virt: acrn: Introduce an interface for Service VM to control vCPU

2021-02-06 Thread shuo . a . liu
From: Shuo Liu ACRN supports partition mode to achieve real-time requirements. In partition mode, a CPU core can be dedicated to a vCPU of User VM. The local APIC of the dedicated CPU core can be passthrough to the User VM. The Service VM controls the assignment of the CPU cores. Introduce an

[PATCH v9 16/18] virt: acrn: Introduce irqfd

2021-02-06 Thread shuo . a . liu
From: Shuo Liu irqfd is a mechanism to inject a specific interrupt to a User VM using a decoupled eventfd mechanism. Vhost is a kernel-level virtio server which uses eventfd for interrupt injection. To support vhost on ACRN, irqfd is introduced in HSM. HSM provides ioctls to associate a

[PATCH v9 14/18] virt: acrn: Introduce I/O ranges operation interfaces

2021-02-06 Thread shuo . a . liu
From: Shuo Liu An I/O request of a User VM, which is constructed by hypervisor, is distributed by the ACRN Hypervisor Service Module to an I/O client corresponding to the address range of the I/O request. I/O client maintains a list of address ranges. Introduce acrn_ioreq_range_{add,del}() to

[PATCH v9 11/18] virt: acrn: Introduce interfaces for PCI device passthrough

2021-02-06 Thread shuo . a . liu
From: Shuo Liu PCI device passthrough enables an OS in a virtual machine to directly access a PCI device in the host. It promises almost the native performance, which is required in performance-critical scenarios of ACRN. HSM provides the following ioctls: - Assign - ACRN_IOCTL_ASSIGN_PCIDEV

[PATCH v9 10/18] virt: acrn: Introduce PCI configuration space PIO accesses combiner

2021-02-06 Thread shuo . a . liu
From: Shuo Liu A User VM can access its virtual PCI configuration spaces via port IO approach, which has two following steps: 1) writes address into port 0xCF8 2) put/get data in/from port 0xCFC To distribute a complete PCI configuration space access one time, HSM need to combine such two

[PATCH v9 15/18] virt: acrn: Introduce ioeventfd

2021-02-06 Thread shuo . a . liu
From: Shuo Liu ioeventfd is a mechanism to register PIO/MMIO regions to trigger an eventfd signal when written to by a User VM. ACRN userspace can register any arbitrary I/O address with a corresponding eventfd and then pass the eventfd to a specific end-point of interest for handling. Vhost is

[PATCH v9 09/18] virt: acrn: Introduce I/O request management

2021-02-06 Thread shuo . a . liu
From: Shuo Liu An I/O request of a User VM, which is constructed by the hypervisor, is distributed by the ACRN Hypervisor Service Module to an I/O client corresponding to the address range of the I/O request. For each User VM, there is a shared 4-KByte memory region used for I/O requests

[PATCH v9 12/18] virt: acrn: Introduce interrupt injection interfaces

2021-02-06 Thread shuo . a . liu
From: Shuo Liu ACRN userspace need to inject virtual interrupts into a User VM in devices emulation. HSM needs provide interfaces to do so. Introduce following interrupt injection interfaces: ioctl ACRN_IOCTL_SET_IRQLINE: Pass data from userspace to the hypervisor, and inform the hypervisor

[PATCH v9 07/18] virt: acrn: Introduce an ioctl to set vCPU registers state

2021-02-06 Thread shuo . a . liu
From: Shuo Liu A virtual CPU of User VM has different context due to the different registers state. ACRN userspace needs to set the virtual CPU registers state (e.g. giving a initial registers state to a virtual BSP of a User VM). HSM provides an ioctl ACRN_IOCTL_SET_VCPU_REGS to do the virtual

[PATCH v9 08/18] virt: acrn: Introduce EPT mapping management

2021-02-06 Thread shuo . a . liu
From: Shuo Liu The HSM provides hypervisor services to the ACRN userspace. While launching a User VM, ACRN userspace needs to allocate memory and request the ACRN Hypervisor to set up the EPT mapping for the VM. A mapping cache is introduced for accelerating the translation between the Service

[PATCH v9 04/18] x86/acrn: Introduce hypercall interfaces

2021-02-06 Thread shuo . a . liu
From: Shuo Liu The Service VM communicates with the hypervisor via conventional hypercalls. VMCALL instruction is used to make the hypercalls. ACRN hypercall ABI: * Hypercall number is in R8 register. * Up to 2 parameters are in RDI and RSI registers. * Return value is in RAX register.

[PATCH v9 05/18] virt: acrn: Introduce ACRN HSM basic driver

2021-02-06 Thread shuo . a . liu
From: Shuo Liu ACRN Hypervisor Service Module (HSM) is a kernel module in Service VM which communicates with ACRN userspace through ioctls and talks to ACRN Hypervisor through hypercalls. Add a basic HSM driver which allows Service VM userspace to communicate with ACRN. The following patches

[PATCH v9 06/18] virt: acrn: Introduce VM management interfaces

2021-02-06 Thread shuo . a . liu
From: Shuo Liu The VM management interfaces expose several VM operations to ACRN userspace via ioctls. For example, creating VM, starting VM, destroying VM and so on. The ACRN Hypervisor needs to exchange data with the ACRN userspace during the VM operations. HSM provides VM operation ioctls to

[PATCH v9 02/18] x86/acrn: Introduce acrn_{setup, remove}_intr_handler()

2021-02-06 Thread shuo . a . liu
From: Shuo Liu The ACRN Hypervisor builds an I/O request when a trapped I/O access happens in User VM. Then, ACRN Hypervisor issues an upcall by sending a notification interrupt to the Service VM. HSM in the Service VM needs to hook the notification interrupt to handle I/O requests.

[PATCH v9 03/18] x86/acrn: Introduce acrn_cpuid_base() and hypervisor feature bits

2021-02-06 Thread shuo . a . liu
From: Yin Fengwei ACRN Hypervisor reports hypervisor features via CPUID leaf 0x4001 which is similar to KVM. A VM can check if it's the privileged VM using the feature bits. The Service VM is the only privileged VM by design. Signed-off-by: Yin Fengwei Signed-off-by: Shuo Liu Reviewed-by:

[PATCH v9 01/18] docs: acrn: Introduce ACRN

2021-02-06 Thread shuo . a . liu
From: Shuo Liu Add documentation on the following aspects of ACRN: 1) A brief introduction on the architecture of ACRN. 2) I/O request handling in ACRN. 3) CPUID functions of ACRN. To learn more about ACRN, please go to ACRN project website https://projectacrn.org, or the documentation

[PATCH 0/3] spi: add set_cs_timing support for HW/SW CS mode

2021-02-06 Thread Leilk Liu
Some controllers only have one HW CS, if support multiple devices, other devices need to use SW CS. This patch adds the support of both HW and SW CS via cs_gpio. leilk.liu (3): spi: add power control when set_cs_timing spi: support CS timing for HW & SW mode spi: mediatek: add

[PATCH v9 00/18] HSM driver for ACRN hypervisor

2021-02-06 Thread shuo . a . liu
From: Shuo Liu ACRN is a Type 1 reference hypervisor stack, running directly on the bare-metal hardware, and is suitable for a variety of IoT and embedded device solutions. ACRN implements a hybrid VMM architecture, using a privileged Service VM. The Service VM manages the system resources

Re: [PATCH 2/3] kbuild: clamp SUBLEVEL to 255

2021-02-06 Thread Masahiro Yamada
On Sat, Feb 6, 2021 at 12:50 PM Sasha Levin wrote: > > Right now if SUBLEVEL becomes larger than 255 it will overflow into the > territory of PATCHLEVEL, causing havoc in userspace that tests for > specific kernel version. > > While userspace code tests for MAJOR and PATCHLEVEL, it doesn't test >

Re: [PATCH v3 3/3] scsi: ufs: Fix wrong Task Tag used in task management request UPIUs

2021-02-06 Thread Bart Van Assche
On 2/4/21 10:09 PM, Can Guo wrote: > That code is wrong. The Task Tag in Dword_0 should be the real tag we > allocated for TMR. The transfer request Task Tag which we are trying to > abort is given in Dword_5, which is the Input Parameter 3 of the TMR UPIU. > I am not sure why the author gave

Re: [PATCH 3/3] ia64: remove generated/nr-irqs.h generation to fix build warning

2021-02-06 Thread Masahiro Yamada
On Sat, Aug 29, 2020 at 2:15 PM Masahiro Yamada wrote: > > Randy reports the following warning when building ARCH=ia64 with > CONFIG_IA64_PALINFO=m: > > ../scripts/Makefile.build:68: 'arch/ia64/kernel/palinfo.ko' will not be built > even though obj-m is specified. > ../scripts/Makefile.build:69:

Re: [PATCH 3/3] crypto: hisilicon/sec - fixes shash test error

2021-02-06 Thread liulongfang
On 2021/2/5 19:44, Herbert Xu write: > On Fri, Feb 05, 2021 at 06:10:57PM +0800, Longfang Liu wrote: >> If this configuration item is not turned on, >> the allocation of crypto_tfm will fail when >> the shash algorithm calculates the hash >> through the software. >> >> Signed-off-by: Longfang Liu

[GIT PULL] Kbuild fixes for v5.11-rc7

2021-02-06 Thread Masahiro Yamada
Hi Linus, Please pull some Kbuild fixes. Thanks. The following changes since commit 19c329f6808995b142b3966301f217c831e7cf31: Linux 5.11-rc4 (2021-01-17 16:37:05 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git

Re: [PATCH] arm64: Make CPU_BIG_ENDIAN depend on !LD_IS_LLD

2021-02-06 Thread Nathan Chancellor
On Mon, Feb 01, 2021 at 07:24:42PM -0700, Nathan Chancellor wrote: > Similar to commit 28187dc8ebd9 ("ARM: 9025/1: Kconfig: CPU_BIG_ENDIAN > depends on !LD_IS_LLD"), ld.lld does not support aarch64 big endian, > leading to the following build error when CONFIG_CPU_BIG_ENDIAN is > selected: > >

Re: [RFC PATCH v2 2/3] usb: xhci-mtk: modify the SOF/ITP interval for mt8195

2021-02-06 Thread Chunfeng Yun
Hi Mathias, On Wed, 2021-02-03 at 18:26 +0800, Chunfeng Yun wrote: > There are 4 USB controllers on MT8195, the controllers (IP1~IP3, > exclude IP0) have a wrong default SOF/ITP interval which is > calculated from the frame counter clock 24Mhz by default, but > in fact, the frame counter clock is

Re: [RFC PATCH v1 1/2] block: bsg: resume scsi device before accessing

2021-02-06 Thread Bart Van Assche
On 1/26/21 8:00 PM, Asutosh Das wrote: > Resumes the scsi device before accessing it. > > Change-Id: I2929af60f2a92c89704a582fcdb285d35b429fde > Signed-off-by: Asutosh Das > Signed-off-by: Can Guo > Signed-off-by: Bao D. Nguyen No Change-Id tags in upstream patches please. Thanks, Bart.

Re: [PATCH] mm/hugetlb: use helper huge_page_size() to simplify the hugetlb_vm_op_pagesize()

2021-02-06 Thread Miaohe Lin
On 2021/2/6 0:12, David Hildenbrand wrote: > On 05.02.21 10:22, Miaohe Lin wrote: >> We can use helper huge_page_size() to get the size of the pages allocated >> when backing a VMA directly to make the code more simplified. >> >> Signed-off-by: Miaohe Lin >> --- >>   mm/hugetlb.c | 4 +--- >>   1

Re: [RFC PATCH 01/11] iommu/arm-smmu-v3: Add feature detection for HTTU

2021-02-06 Thread Keqian Zhu
Hi Robin, On 2021/2/5 19:48, Robin Murphy wrote: > On 2021-02-05 09:13, Keqian Zhu wrote: >> Hi Robin and Jean, >> >> On 2021/2/5 3:50, Robin Murphy wrote: >>> On 2021-01-28 15:17, Keqian Zhu wrote: From: jiangkunkun The SMMU which supports HTTU (Hardware Translation Table Update)

drivers/media/i2c/ccs-pll.c:386:5: warning: stack frame size of 2976 bytes in function 'ccs_pll_calculate'

2021-02-06 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 61556703b610a104de324e4f061dc6cf7b218b46 commit: 9e05bbac43ebfc2fd1ff95e072730ceed807d149 media: smiapp-pll: Rename as ccs-pll date: 9 weeks ago config: powerpc64-randconfig-r025-20210205 (attached as

Re: [RFC PATCH v2 1/3] dt-bindings: usb: mtk-xhci: add compatible for mt8195

2021-02-06 Thread Chunfeng Yun
On Wed, 2021-02-03 at 11:31 +0100, Greg Kroah-Hartman wrote: > On Wed, Feb 03, 2021 at 06:26:40PM +0800, Chunfeng Yun wrote: > > There are 4 USB controllers on MT8195, the controllers (IP1~IP3, > > exclude IP0) have a wrong default SOF/ITP interval which is > > calculated from the frame counter

Re: [RFC PATCH 01/11] iommu/arm-smmu-v3: Add feature detection for HTTU

2021-02-06 Thread Keqian Zhu
Hi Robin, On 2021/2/6 0:11, Robin Murphy wrote: > On 2021-02-05 11:48, Robin Murphy wrote: >> On 2021-02-05 09:13, Keqian Zhu wrote: >>> Hi Robin and Jean, >>> >>> On 2021/2/5 3:50, Robin Murphy wrote: On 2021-01-28 15:17, Keqian Zhu wrote: > From: jiangkunkun > > The SMMU which

Re: [fuse-devel] [PATCH] fuse: avoid deadlock when write fuse inode

2021-02-06 Thread Huang Jianan
friendly ping ...  On 2021/2/2 12:11, Huang Jianan via fuse-devel wrote: Hi all, This patch works well in our product, but I am not sure this is the correct way to solve this problem. I think that the inode->i_count shouldn't be zero after iput is executed in dentry_unlink_inode, then

Re: [PATCH 1/4] mm/highmem: Lift memcpy_[to|from]_page to core

2021-02-06 Thread Chaitanya Kulkarni
On 2/5/21 18:35, ira.we...@intel.com wrote: > +static inline void memmove_page(struct page *dst_page, size_t dst_off, > +struct page *src_page, size_t src_off, > +size_t len) > +{ > + char *dst = kmap_local_page(dst_page); > + char

Re: [PATCH v2 1/1] kernel/crash_core: Add crashkernel=auto for vmcore creation

2021-02-06 Thread Dave Young
Hi Saeed, On 02/03/21 at 04:43pm, Saeed Mirzamohammadi wrote: > This adds crashkernel=auto feature to configure reserved memory for > vmcore creation. CONFIG_CRASH_AUTO_STR is defined to be set for > different kernel distributions and different archs based on their > needs. > > Signed-off-by:

Re: [PATCH] iommu/mediatek: Fix error code in probe()

2021-02-06 Thread Yong Wu
On Fri, 2021-02-05 at 15:46 +0300, Dan Carpenter wrote: > This error path is supposed to return -EINVAL. It used to return > directly but we added some clean up and accidentally removed the > error code. Also I fixed a typo in the error message. > > Fixes: c0b57581b73b ("iommu/mediatek: Add

Re: [RFC PATCH 01/11] iommu/arm-smmu-v3: Add feature detection for HTTU

2021-02-06 Thread Keqian Zhu
Hi Jean, On 2021/2/5 17:51, Jean-Philippe Brucker wrote: > Hi Keqian, > > On Fri, Feb 05, 2021 at 05:13:50PM +0800, Keqian Zhu wrote: >>> We need to accommodate the firmware override as well if we need this to be >>> meaningful. Jean-Philippe is already carrying a suitable patch in the SVA >>>

Re: [PATCH 04/24] perf daemon: Add server socket support

2021-02-06 Thread Namhyung Kim
On Sun, Feb 7, 2021 at 4:04 AM Jiri Olsa wrote: > > On Fri, Feb 05, 2021 at 08:30:10PM +0900, Namhyung Kim wrote: > > On Sun, Jan 31, 2021 at 8:49 AM Jiri Olsa wrote: > > > > > > Add support to create server socket that listens for client > > > commands and process them. > > > > > > This patch

Re: [PATCH 06/24] perf daemon: Add config file support

2021-02-06 Thread Namhyung Kim
On Sun, Feb 7, 2021 at 7:35 AM Jiri Olsa wrote: > > On Sat, Feb 06, 2021 at 05:05:04PM +0900, Namhyung Kim wrote: > > On Fri, Feb 5, 2021 at 9:56 PM Jiri Olsa wrote: > > > > > > On Fri, Feb 05, 2021 at 09:14:54PM +0900, Namhyung Kim wrote: > > > > On Sun, Jan 31, 2021 at 8:49 AM Jiri Olsa

Re: [RESEND v4 1/6] misc: Add Synopsys DesignWare xData IP driver

2021-02-06 Thread Krzysztof Wilczyński
Hi Gustavo, Thank you for all the work here! A few suggestions. [...] > +static void dw_xdata_stop(struct dw_xdata *dw) > +{ > + u32 burst = readl(&(__dw_xdara_regs(dw)->burst_cnt)); > + > + if (burst & BIT(31)) { > + burst &= ~(u32)BIT(31); > + writel(burst,

Re: [PATCH v2 4/4] KVM: x86: Expose Architectural LBR CPUID and its XSAVES bit

2021-02-06 Thread Xu, Like
On 2021/2/5 19:00, Paolo Bonzini wrote: On 05/02/21 09:16, Xu, Like wrote: Hi Paolo, I am wondering if it is acceptable for you to review the minor Architecture LBR patch set without XSAVES for v5.12 ? As far as I know, the guest Arch LBR  can still work without XSAVES support. I dopn't

Re: [PATCH net-next] net/packet: Improve the comment about LL header visibility criteria

2021-02-06 Thread Jakub Kicinski
On Fri, 5 Feb 2021 21:51:36 -0500 Willem de Bruijn wrote: > On Fri, Feb 5, 2021 at 5:42 PM Xie He wrote: > > > > The "dev_has_header" function, recently added in > > commit d549699048b4 ("net/packet: fix packet receive on L3 devices > > without visible hard header"), > > is more accurate as

Re: [PATCH] perf record: Fix continue profiling after draining the buffer

2021-02-06 Thread Yang Jihong
Hello, On 2021/2/5 18:46, Jiri Olsa wrote: On Fri, Feb 05, 2021 at 07:35:22PM +0900, Namhyung Kim wrote: Hello, On Fri, Feb 5, 2021 at 3:50 PM Yang Jihong wrote: commit da231338ec9c098707c8a1e4d8a50e2400e2fe17 uses eventfd to solve rare race where the setting and checking of 'done' which

net/xfrm/xfrm_output.c:506:5: warning: stack frame size of 2128 bytes in function 'xfrm_output_resume'

2021-02-06 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 61556703b610a104de324e4f061dc6cf7b218b46 commit: 010b430d5df556d5d232e3751ac691ba9e88c041 mptcp: MPTCP_IPV6 should depend on IPV6 instead of selecting it date: 4 months ago config:

  1   2   3   4   >