[PATCH v2 06/12] mm/hugetlb: make hugetlb migration target allocation APIs CMA aware

2020-05-26 Thread js1304
From: Joonsoo Kim There is a user who do not want to use CMA memory for migration. Until now, it is implemented by caller side but it's not optimal since there is limited information on caller. This patch implements it on callee side to get better result. Acked-by: Mike Kravetz Signed-off-by: J

[PATCH v2 00/12] clean-up the migration target allocation functions

2020-05-26 Thread js1304
e patchset is based on next-20200526. The patchset is available on: https://github.com/JoonsooKim/linux/tree/cleanup-migration-target-allocation-v2.00-next-20200526 Thanks. Joonsoo Kim (12): mm/page_isolation: prefer the node of the source page mm/migrate: move migration helper from .h

[PATCH v2 03/12] mm/hugetlb: introduce alloc_control structure to simplify migration target allocation APIs

2020-05-26 Thread js1304
From: Joonsoo Kim Currently, page allocation functions for migration requires some arguments. More worse, in the following patch, more argument will be needed to unify the similar functions. To simplify them, in this patch, unified data structure that controls allocation behaviour is introduced.

[PATCH v2 08/12] mm/migrate: change the interface of the migration target alloc/free functions

2020-05-26 Thread js1304
From: Joonsoo Kim To prepare unifying duplicated functions in following patches, this patch changes the interface of the migration target alloc/free functions. Functions now use struct alloc_control as an argument. There is no functional change. Signed-off-by: Joonsoo Kim --- include/linux/mi

[PATCH v2 02/12] mm/migrate: move migration helper from .h to .c

2020-05-26 Thread js1304
From: Joonsoo Kim It's not performance sensitive function. Move it to .c. This is a preparation step for future change. Acked-by: Mike Kravetz Signed-off-by: Joonsoo Kim --- include/linux/migrate.h | 33 + mm/migrate.c| 29 ++

[PATCH v2 09/12] mm/migrate: make standard migration target allocation functions

2020-05-26 Thread js1304
From: Joonsoo Kim There are some similar functions for migration target allocation. Since there is no fundamental difference, it's better to keep just one rather than keeping all variants. This patch implements base migration target allocation function. In the following patches, variants will be

[PATCH v2 05/12] mm/hugetlb: unify hugetlb migration callback function

2020-05-26 Thread js1304
From: Joonsoo Kim There is no difference between two migration callback functions, alloc_huge_page_node() and alloc_huge_page_nodemask(), except __GFP_THISNODE handling. This patch moves this handling to alloc_huge_page_nodemask() and function caller. Then, remove alloc_huge_page_node(). Signed-

[PATCH v2 04/12] mm/hugetlb: use provided ac->gfp_mask for allocation

2020-05-26 Thread js1304
From: Joonsoo Kim gfp_mask handling on alloc_huge_page_(node|nodemask) is slightly changed, from ASSIGN to OR. It's safe since caller of these functions doesn't pass extra gfp_mask except htlb_alloc_mask(). This is a preparation step for following patches. Signed-off-by: Joonsoo Kim --- mm/hu

[PATCH v2 07/12] mm/hugetlb: do not modify user provided gfp_mask

2020-05-26 Thread js1304
From: Joonsoo Kim It's not good practice to modify user input. Instead of using it to build correct gfp_mask for APIs, this patch introduces another gfp_mask field, __gfp_mask, for internal usage. Signed-off-by: Joonsoo Kim --- mm/hugetlb.c | 19 ++- mm/internal.h | 2 ++ 2 f

[PATCH v2 10/12] mm/gup: use standard migration target allocation function

2020-05-26 Thread js1304
From: Joonsoo Kim There is no reason to implement it's own function for migration target allocation. Use standard one. Signed-off-by: Joonsoo Kim --- mm/gup.c | 61 ++--- 1 file changed, 10 insertions(+), 51 deletions(-) diff --git a/mm/

[PATCH v2 11/12] mm/mempolicy: use standard migration target allocation function

2020-05-26 Thread js1304
From: Joonsoo Kim There is no reason to implement it's own function for migration target allocation. Use standard one. Signed-off-by: Joonsoo Kim --- mm/internal.h | 3 --- mm/mempolicy.c | 32 +++- mm/migrate.c | 3 ++- 3 files changed, 5 insertions(+), 33 del

[PATCH v2 12/12] mm/page_alloc: use standard migration target allocation function directly

2020-05-26 Thread js1304
From: Joonsoo Kim There is no need to make a function in order to call standard migration target allocation function. Use standard one directly. Signed-off-by: Joonsoo Kim --- include/linux/page-isolation.h | 2 -- mm/page_alloc.c| 9 +++-- mm/page_isolation.c

Re: [v3,1/1] hwmon:(nct7904) Set default timeout

2020-05-26 Thread Guenter Roeck
On Wed, May 27, 2020 at 06:16:59AM +, yuechao.z...@advantech.com.cn wrote: > From: Yuechao Zhao > > The timeout module parameter should not be used for setting the default > timeout. Because, if you set the timeout = 0, the default timeout will > be meaningless. And the timeout module paramet

Re: [PATCH v2 06/91] clk: bcm: rpi: Statically init clk_init_data

2020-05-26 Thread Stephen Boyd
Quoting Maxime Ripard (2020-04-24 08:33:47) > Instead of declaring the clk_init_data and then calling memset on it, just > initialise properly. > > Cc: Michael Turquette > Cc: Stephen Boyd > Cc: linux-...@vger.kernel.org > Acked-by: Nicolas Saenz Julienne > Signed-off-by: Maxime Ripard > ---

Re: [PATCH RFCv2 9/9] arm64: Support async page fault

2020-05-26 Thread Paolo Bonzini
Hi Gavin, I definitely appreciate the work, but this is repeating most of the mistakes done in the x86 implementation. In particular: - the page ready signal can be done as an interrupt, rather than an exception. This is because "page ready" can be handled asynchronously, in contrast to "page n

Re: [PATCH v9] mfd: mt6360: add pmic mt6360 driver

2020-05-26 Thread Lee Jones
On Thu, 23 Apr 2020, Gene Chen wrote: > Add mfd driver for mt6360 pmic chip include > Battery Charger/USB_PD/Flash LED/RGB LED/LDO/Buck I changed the subject line and commit log a bit. > Signed-off-by: Gene Chen > Acked-for-MFD-by: Lee Jones > --- > drivers/mfd/Kconfig| 12 ++ > driv

Re: [PATCH v2 09/91] clk: bcm: rpi: Make sure pllb_arm is removed

2020-05-26 Thread Stephen Boyd
Quoting Maxime Ripard (2020-04-24 08:33:50) > The pllb_arm clock was created at probe time, but was never removed if > something went wrong later in probe, or if the driver was ever removed from > the system. > > Now that we are using clk_hw_register, we can just use its managed variant clk_hw_re

Re: [PATCH v2 08/91] clk: bcm: rpi: Remove global pllb_arm clock pointer

2020-05-26 Thread Stephen Boyd
Quoting Maxime Ripard (2020-04-24 08:33:49) > The pllb_arm clk_hw pointer in the raspberry_clk structure isn't used > anywhere but in the raspberrypi_register_pllb_arm. > > Let's remove it, this will make our lives easier in future patches. > > Cc: Michael Turquette > Cc: Stephen Boyd > Cc: lin

Re: [PATCH v2 15/91] clk: bcm: rpi: Pass the clocks data to the firmware function

2020-05-26 Thread Stephen Boyd
Quoting Maxime Ripard (2020-04-24 08:33:56) > The raspberry_clock_property only takes the clock ID as an argument, but > now that we have a clock data structure it makes more sense to just pass > that structure instead. > > Cc: Michael Turquette > Cc: Stephen Boyd > Cc: linux-...@vger.kernel.org

Re: [PATCH v3 03/16] mfd: mfd-core: match device tree node against reg property

2020-05-26 Thread Lee Jones
On Tue, 26 May 2020, Andy Shevchenko wrote: > On Tue, May 26, 2020 at 05:54:38PM +0200, Michael Walle wrote: > > Am 2020-05-26 09:24, schrieb Lee Jones: > > ... > > > Like I said, in the long term I would like to have support for > > different versions of the board management controller > > > w

Re: [PATCH v2 1/1] userfaultfd/sysctl: add vm.unprivileged_userfaultfd

2020-05-26 Thread Xiaoming Ni
On Tue, Mar 19, 2019 at 11:07:22AM +0800, Peter Xu wrote: > Add a global sysctl knob "vm.unprivileged_userfaultfd" to control > whether userfaultfd is allowed by unprivileged users. When this is > set to zero, only privileged users (root user, or users with the > CAP_SYS_PTRACE capability) will

Re: [PATCH v13 00/11] Convert PWM period and duty cycle to u64

2020-05-26 Thread Lee Jones
On Fri, 22 May 2020, Thierry Reding wrote: > On Fri, May 22, 2020 at 12:31:47PM +0100, Lee Jones wrote: > > On Fri, 22 May 2020, Thierry Reding wrote: > > > > > On Thu, May 21, 2020 at 08:15:05AM +0100, Lee Jones wrote: > > > > On Wed, 20 May 2020, Guru Das Srinagesh wrote: > > > > > > > > > On

Re: linux-next: manual merge of the devicetree tree with the watchdog tree

2020-05-26 Thread Geert Uytterhoeven
Hi Stephen, On Tue, May 26, 2020 at 7:20 AM Stephen Rothwell wrote: > Today's linux-next merge of the devicetree tree got a conflict in: > > Documentation/devicetree/bindings/watchdog/renesas,wdt.txt > > between commit: > > ff1ee6fb276c ("dt-bindings: watchdog: renesas,wdt: Document r8a7742

Re: [PATCH 2/5] seccomp: Introduce addfd ioctl to seccomp user notifier

2020-05-26 Thread Sargun Dhillon
On Mon, May 25, 2020 at 6:50 AM Christian Brauner wrote: > > On Sun, May 24, 2020 at 04:39:39PM -0700, Sargun Dhillon wrote: > > This adds a seccomp notifier ioctl which allows for the listener to "add" > > file descriptors to a process which originated a seccomp user > > notification. This allows

Re: [PATCH v13 09/11] backlight: pwm_bl: Use 64-bit division function

2020-05-26 Thread Lee Jones
On Tue, 21 Apr 2020, Guru Das Srinagesh wrote: > Since the PWM framework is switching struct pwm_state.period's datatype > to u64, prepare for this transition by using div_u64 to handle a 64-bit > dividend instead of a straight division operation. > > Cc: Lee Jones > Cc: Daniel Thompson > Cc: J

Re: [PATCH v5 00/38] DRM: fix struct sg_table nents vs. orig_nents misuse

2020-05-26 Thread Marek Szyprowski
Hi On 13.05.2020 15:47, Christoph Hellwig wrote: > I've pushed out a branch with the first three patches here: > > git://git.infradead.org/users/hch/dma-mapping.git dma-sg_table-helper > > Gitweb: > > > http://git.infradead.org/users/hch/dma-mapping.git/shortlog/refs/heads/dma-sg_table-he

Re: [PATCHv3 0/2] Add support for replicators which loses context on clock removal

2020-05-26 Thread Sai Prakash Ranjan
Hi Mathieu, On 2020-05-25 21:45, Mathieu Poirier wrote: Hi Sai, On Sat, May 23, 2020 at 12:06:50AM +0530, Sai Prakash Ranjan wrote: This series is mainly to add support for replicators which lose context on removing AMBA clock like on SC7180 SoC where replicator in AOSS domain loses context.

[RFC PATCH v4 00/13] riscv: Add vector ISA support

2020-05-26 Thread Greentime Hu
This patchset is based on Guo Ren's v3 patchset to add dynamic vlen vector support for all different kinds of vector length in riscv. To make this happened we defined a new __riscv_v_state in sigcontext to save the vector related registers. The datap pointer will be allocated dynamically in kernel

[RFC PATCH v4 02/13] riscv: Separate patch for cflags and aflags

2020-05-26 Thread Greentime Hu
From: Guo Ren From: Guo Ren Use "subst fd" in Makefile is a hack way and it's not convenient to add new ISA feature. Just separate them into riscv-march-cflags and riscv-march-aflags. Signed-off-by: Guo Ren --- arch/riscv/Makefile | 18 -- 1 file changed, 12 insertions(+), 6

[RFC PATCH v4 01/13] ptrace: Use regset_size() for dynamic regset size.

2020-05-26 Thread Greentime Hu
It uses regset_size() instead of using regset->n and regset->size directly. In this case, it will call the get_size() ported by arch dynamically to support dynamic regset size case. Signed-off-by: Greentime Hu --- kernel/ptrace.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-)

[RFC PATCH v4 06/13] riscv: Add vector feature to compile

2020-05-26 Thread Greentime Hu
From: Guo Ren This patch adds a new config option which could enable assembler's vector feature. Signed-off-by: Guo Ren --- arch/riscv/Kconfig | 9 + arch/riscv/Makefile | 1 + 2 files changed, 10 insertions(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 74f82cf4f781..

[RFC PATCH v4 04/13] riscv: Extending cpufeature.c to detect V-extension

2020-05-26 Thread Greentime Hu
From: Guo Ren From: Guo Ren Current cpufeature.c doesn't support detecting V-extension, because "rv64" also contain a 'v' letter and we need to skip it. Signed-off-by: Guo Ren Reviewed-by: Anup Patel --- arch/riscv/include/uapi/asm/hwcap.h | 1 + arch/riscv/kernel/cpufeature.c | 4 +++-

[RFC PATCH v4 07/13] riscv: Add has_vector/riscv_vsize to save vector features.

2020-05-26 Thread Greentime Hu
From: Guo Ren This patch is used to detect vector support status of CPU and use riscv_vsize to save the size of all the vector registers. It assumes all harts has the same capabilities in SMP system. [greentime...@sifive.com: add support for dynamic vlen] Signed-off-by: Greentime Hu Signed-off-

[RFC PATCH v4 10/13] riscv: Add task switch support for vector

2020-05-26 Thread Greentime Hu
From: Guo Ren This patch adds task switch support for vector. It supports lazy save and restore mechanism. It also supports all lengths of vlen. [greentime...@sifive.com: add support for dynamic vlen, fix __vstate_clean() and lazy save/restore bug] [nick.kni...@sifive.com: Rewrite vector.S to su

[RFC PATCH v4 09/13] riscv: Add vector struct and assembler definitions

2020-05-26 Thread Greentime Hu
From: Guo Ren Add vector state context struct in struct thread and asm-offsets.c definitions. The vector registers will be saved in datap pointer of __riscv_v_state. It will be dynamically allocated in kernel space. It will be put right after the __riscv_v_state data structure in user space. [g

[RFC PATCH v4 12/13] riscv: Add sigcontext save/restore for vector

2020-05-26 Thread Greentime Hu
From: Guo Ren This patch adds sigcontext save/restore for vector. The vector registers will be saved in datap pointer. The datap pointer will be allocaed dynamically when the task needs in kernel space. The datap pointer will be set right after the __riscv_v_state data structure to save all the v

[RFC PATCH v4 08/13] riscv: Reset vector register

2020-05-26 Thread Greentime Hu
From: Guo Ren Reset vector registers at boot-time and disable vector instructions execution for kernel mode. Signed-off-by: Guo Ren --- arch/riscv/kernel/entry.S | 2 +- arch/riscv/kernel/head.S | 49 +-- 2 files changed, 48 insertions(+), 3 deletions(-)

[RFC PATCH v4 03/13] riscv: Rename __switch_to_aux -> fpu

2020-05-26 Thread Greentime Hu
From: Guo Ren From: Guo Ren The name of __switch_to_aux is not clear and rename it with the determine function: __switch_to_fpu. Next we could add other regs' switch. Signed-off-by: Guo Ren Reviewed-by: Anup Patel --- arch/riscv/include/asm/switch_to.h | 6 +++--- 1 file changed, 3 insertio

[RFC PATCH v4 11/13] riscv: Add ptrace vector support

2020-05-26 Thread Greentime Hu
From: Guo Ren This patch adds ptrace support for riscv vector. The vector registers will be saved in datap pointer of __riscv_v_state. This pointer will be set right after the __riscv_v_state data structure then it will be put in ubuf for ptrace system call to get or set. It will check if the dat

[RFC PATCH v4 05/13] riscv: Add new csr defines related to vector extension

2020-05-26 Thread Greentime Hu
From: Guo Ren Follow the riscv vector spec to add new csr number. [greentime...@sifive.com: update the defined value based on new spec and remove unused ones] Signed-off-by: Greentime Hu Signed-off-by: Guo Ren --- arch/riscv/include/asm/csr.h | 16 ++-- 1 file changed, 14 insertio

Re: [RFC PATCH 0/3] METADATA design using V4l2 Request API

2020-05-26 Thread Hans Verkuil
On 26/05/2020 08:31, diksh...@codeaurora.org wrote: > Hi, > > A gentle reminder for the review. It's on my TODO list. I hope to get to it this week or next week at the latest. Regards, Hans > > On 2020-05-08 11:51, Dikshita Agarwal wrote: >> There are many commercialized video use cas

[RFC PATCH v4 13/13] riscv: signal: Report signal frame size to userspace via auxv

2020-05-26 Thread Greentime Hu
From: Vincent Chen The vector register belongs to the signal context. They need to be stored and restored as entering and leaving the signal handler. According to the V-extension specification, the maximum length of the vector registers can be 2^(XLEN-1). Hence, if userspace refers to the MINSIGS

Re: [PATCH] ALSA: usb: mixer: volume quirk for ESS Technology Asus USB DAC

2020-05-26 Thread Takashi Iwai
On Tue, 26 May 2020 08:26:13 +0200, Chris Chiu wrote: > > The Asus USB DAC is a USB type-C audio dongle for connecting to > the headset and headphone. The volume minimum value -23040 which > is 0xa600 in hexadecimal with the resolution value 1 indicates > this should be endianness issue caused by

Re: [PATCH v2 1/2] crypto: virtio: Fix src/dst scatterlist calculation in __virtio_crypto_skcipher_do_req()

2020-05-26 Thread Markus Elfring
> Fix it by sg_next() on calculation of src/dst scatterlist. Wording adjustment: … by calling the function “sg_next” … … > +++ b/drivers/crypto/virtio/virtio_crypto_algs.c > @@ -350,13 +350,18 @@ __virtio_crypto_skcipher_do_req(struct > virtio_crypto_sym_request *vc_sym_req, … > src_nents

Re: [PATCH] bitops: use the same mechanism for get_count_order[_long]

2020-05-26 Thread Andy Shevchenko
On Mon, May 25, 2020 at 09:59:58PM +, Wei Yang wrote: > These two functions share the same logic. So, same comment. Please, add test first, make sure it works on current kernel, then after your patch applied, and send it as a series, thanks! P.S. W/o test code looks good, but based on my expe

Re: [PATCH 1/2] hwmon: pwm-fan: Add profile support and add remove module support

2020-05-26 Thread Uwe Kleine-König
On Tue, May 26, 2020 at 10:36:04AM +0530, Sandipan Patra wrote: > This change has 2 parts: > 1. Add support for profiles mode settings. > This allows different fan settings for trip point temp/hyst/pwm. > T194 has multiple fan-profiles support. > > 2. Add pwm-fan remove support. This is es

Re: [PATCH] serial: 8250: probe all 16550A variants by default

2020-05-26 Thread Maxim Kochetkov
This change breaks all my devices: OMAP-L138 (davinci based), LS1021A, T1040, Marvell (kirkwood2 based). Only enabling VARIANTS on all my devices fix the issue. 25.05.2020 20:28, Josh Triplett wrote: On Mon, May 25, 2020 at 04:02:38PM +0300, Vladimir Oltean wrote: On NXP T1040, the UART is ty

[PATCH v1] driver core: Update device link status correctly for SYNC_STATE_ONLY links

2020-05-26 Thread Saravana Kannan
When SYNC_STATE_ONLY support was added in commit 05ef983e0d65 ("driver core: Add device link support for SYNC_STATE_ONLY flag"), SYNC_STATE_ONLY links were treated similar to STATELESS links in terms of not blocking consumer probe if the supplier hasn't probed yet. That caused a SYNC_STATE_ONLY de

[PATCH] mm, memory_failure: only send BUS_MCEERR_AO to early-kill process

2020-05-26 Thread Wetp Zhang
From: Zhang Yi If a process don't need early-kill, it may not care the BUS_MCEERR_AO. Let the process to be killed when it really access the corrupted memory. Signed-off-by: Zhang Yi --- mm/memory-failure.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mm/memory-fa

Re: [PATCHv3/RESEND 1/3] soc: qcom: rpmh-rsc: Remove tcs_is_free() API

2020-05-26 Thread Maulik Shah
Hi, Reviewed-by: Maulik Shah Thanks, Maulik On 5/21/2020 11:34 AM, Stephen Boyd wrote: This API does very little. Let's replace all the callsites with the normal operations that would be done on top of the bitmap that tcs_in_use is. This simplifies and reduces the code size. Cc: Maulik Shah

Re: [PATCH v1] driver core: Update device link status correctly for SYNC_STATE_ONLY links

2020-05-26 Thread Saravana Kannan
On Tue, May 26, 2020 at 12:05 AM Saravana Kannan wrote: > > When SYNC_STATE_ONLY support was added in commit 05ef983e0d65 ("driver > core: Add device link support for SYNC_STATE_ONLY flag"), > SYNC_STATE_ONLY links were treated similar to STATELESS links in terms > of not blocking consumer probe i

Re: [PATCH] iommu/dma: limit iova free size to unmmaped iova

2020-05-26 Thread guptap
On 2020-05-22 14:54, Robin Murphy wrote: On 2020-05-22 07:25, gup...@codeaurora.org wrote: On 2020-05-22 01:46, Robin Murphy wrote: On 2020-05-21 12:30, Prakash Gupta wrote: I agree, we shouldn't be freeing the partial iova. Instead just making sure if unmap was successful should be sufficient

Re: [PATCH v2 2/2] crypto: virtio: Fix use-after-free in virtio_crypto_skcipher_finalize_req()

2020-05-26 Thread Markus Elfring
> The system'll crash when the users insmod crypto/tcrypto.ko with mode=155 > ( testing "authenc(hmac(sha1),cbc(aes))" ). It's caused by reuse the memory > of request structure. Wording adjustments: * … system will crash … * … It is caused by reusing the … > when these memory will be used again.

Re: [PATCH v2] regmap: fix alignment issues

2020-05-26 Thread Jens Thoms Toerring
On Tue, May 26, 2020 at 01:42:36AM +0300, Andy Shevchenko wrote: > On Tuesday, May 26, 2020, Jens Thoms Toerring wrote: > > > The assembly and disassembly of data to be sent to or received from a > > device invoke functions (regmap_format_XXX() and regmap_parse_XXX()) > > that extract or insert d

Re: [PATCH v2 1/2] crypto: virtio: Fix src/dst scatterlist calculation in __virtio_crypto_skcipher_do_req()

2020-05-26 Thread Longpeng (Mike, Cloud Infrastructure Service Product Dept.)
Hi Markus, On 2020/5/26 15:03, Markus Elfring wrote: >> Fix it by sg_next() on calculation of src/dst scatterlist. > > Wording adjustment: > … by calling the function “sg_next” … > OK, thanks. > > … >> +++ b/drivers/crypto/virtio/virtio_crypto_algs.c >> @@ -350,13 +350,18 @@ __virtio_crypto_sk

Re: [PATCH] MIPS: Fix IRQ tracing when call handle_fpe()

2020-05-26 Thread yuanjunqing
在 2020/5/25 下午4:42, Thomas Bogendoerfer 写道: > On Mon, May 25, 2020 at 11:31:23AM +0800, YuanJunQing wrote: >> Register "a1" is unsaved in this function, >> when CONFIG_TRACE_IRQFLAGS is enabled, >> the TRACE_IRQS_OFF macro will call trace_hardirqs_off(), >> and this may change register "a1".

RE: [PATCH 3/4] exfat: add boot region verification

2020-05-26 Thread Namjae Jeon
[snip] > +static int exfat_verify_boot_region(struct super_block *sb) { > + struct buffer_head *bh = NULL; > + u32 chksum = 0, *p_sig, *p_chksum; > + int sn, i; > + > + /* read boot sector sub-regions */ > + for (sn = 0; sn < 11; sn++) { > + bh = sb_bread(sb, sn); >

Re: [PATCH v3 03/16] mfd: mfd-core: match device tree node against reg property

2020-05-26 Thread Lee Jones
On Mon, 25 May 2020, Michael Walle wrote: > Am 2020-05-15 12:28, schrieb Lee Jones: > > On Thu, 30 Apr 2020, Michael Walle wrote: > > > > > Hi Lee, > > > > > > Am 2020-04-23 19:45, schrieb Michael Walle: > > > > There might be multiple children with the device tree compatible, for > > > > exampl

Re: [PATCH 0/3] STMFX power related fixes

2020-05-26 Thread Lee Jones
On Mon, 25 May 2020, Amelie DELAUNAY wrote: > Hi, > > Gentle reminder regarding this series sent one month ago. Apologies Amelie, this fell through the gaps. If this happens in the future just submit a [RESEND]. I'll take a look at this, this time however. > On 4/22/20 11:08 AM, Amelie Delaun

Re: [PATCH V3 1/2] powerpc/perf: Add support for outputting extended regs in perf intr_regs

2020-05-26 Thread Madhavan Srinivasan
On 5/20/20 3:15 PM, Athira Rajeev wrote: From: Anju T Sudhakar Add support for perf extended register capability in powerpc. The capability flag PERF_PMU_CAP_EXTENDED_REGS, is used to indicate the PMU which support extended registers. The generic code define the mask of extended registers as

Re: [PATCH V3 2/2] tools/perf: Add perf tools support for extended register capability in powerpc

2020-05-26 Thread Madhavan Srinivasan
On 5/20/20 3:15 PM, Athira Rajeev wrote: From: Anju T Sudhakar Add extended regs to sample_reg_mask in the tool side to use with `-I?` option. Perf tools side uses extended mask to display the platform supported register names (with -I? option) to the user and also send this mask to the kern

Re: [PATCH 1/2] KVM: SVM: fix svn_pin_memory()'s use of get_user_pages_fast()

2020-05-26 Thread Vitaly Kuznetsov
John Hubbard writes: > There are two problems in svn_pin_memory(): > > 1) The return value of get_user_pages_fast() is stored in an > unsigned long, although the declared return value is of type int. > This will not cause any symptoms, but it is misleading. > Fix this by changing the type of npin

RE: [PATCH 4/4] exfat: standardize checksum calculation

2020-05-26 Thread Namjae Jeon
> To clarify that it is a 16-bit checksum, the parts related to the 16-bit > checksum are renamed and > change type to u16. > Furthermore, replace checksum calculation in exfat_load_upcase_table() with > exfat_calc_checksum32(). > > Signed-off-by: Tetsuhiro Kohada I can not apply this patch to

Re: [PATCH v2 2/2] crypto: virtio: Fix use-after-free in virtio_crypto_skcipher_finalize_req()

2020-05-26 Thread Longpeng (Mike, Cloud Infrastructure Service Product Dept.)
Hi Markus, On 2020/5/26 15:19, Markus Elfring wrote: >> The system'll crash when the users insmod crypto/tcrypto.ko with mode=155 >> ( testing "authenc(hmac(sha1),cbc(aes))" ). It's caused by reuse the memory >> of request structure. > > Wording adjustments: > * … system will crash … > * … It is

Re: [PATCH 12/12] io_uring: support true async buffered reads, if file provides it

2020-05-26 Thread Pavel Begunkov
On 23/05/2020 21:57, Jens Axboe wrote: > If the file is flagged with FMODE_BUF_RASYNC, then we don't have to punt > the buffered read to an io-wq worker. Instead we can rely on page > unlocking callbacks to support retry based async IO. This is a lot more > efficient than doing async thread offload

Re: [patch V9-1 13/39] x86/entry: Switch XEN/PV hypercall entry to IDTENTRY

2020-05-26 Thread Jürgen Groß
On 22.05.20 20:32, Thomas Gleixner wrote: Convert the XEN/PV hypercall to IDTENTRY: - Emit the ASM stub with DECLARE_IDTENTRY - Remove the ASM idtentry in 64bit - Remove the open coded ASM entry code in 32bit - Remove the old prototypes The handler stubs need to stay in ASM code as

Re: [PATCH 12/12] io_uring: support true async buffered reads, if file provides it

2020-05-26 Thread Pavel Begunkov
On 25/05/2020 22:59, Jens Axboe wrote: > On 5/25/20 1:29 AM, Pavel Begunkov wrote: >> On 23/05/2020 21:57, Jens Axboe wrote: >>> If the file is flagged with FMODE_BUF_RASYNC, then we don't have to punt >>> the buffered read to an io-wq worker. Instead we can rely on page >>> unlocking callbacks to

Re: [PATCH v5 6/8] drm/panel: Add ilitek ili9341 panel driver

2020-05-26 Thread Andy Shevchenko
On Mon, May 25, 2020 at 6:46 AM wrote: > > From: dillon min > > This driver combine tiny/ili9341.c mipi_dbi_interface driver > with mipi_dpi_interface driver, can support ili9341 with serial > mode or parallel rgb interface mode by register configuration. Noralf told once that this d

Re: [RFC] kdb: Switch kdb_printf to use safer console poll APIs

2020-05-26 Thread Sumit Garg
On Fri, 22 May 2020 at 21:33, Daniel Thompson wrote: > > On Fri, May 22, 2020 at 08:04:31PM +0530, Sumit Garg wrote: > > In kgdb NMI context, polling driver APIs are more safer to use instead > > of console APIs since the polling drivers know they will execute from > > all sorts of crazy places. A

Re: [PATCH 2/2] iommu/sun50i: Constify sun50i_iommu_ops

2020-05-26 Thread Maxime Ripard
On Mon, May 25, 2020 at 11:49:58PM +0200, Rikard Falkeborn wrote: > The struct sun50i_iommu_ops is not modified and can be made const to > allow the compiler to put it in read-only memory. > > Before: >textdata bss dec hex filename > 143582501 64 16923421b driv

Re: [PATCH 1/4] ARM: dts: r8a7742-iwg21d-q7: Enable scifb2 node

2020-05-26 Thread Geert Uytterhoeven
On Mon, May 25, 2020 at 5:23 PM Lad Prabhakar wrote: > Enable scifb2 interface on iWave RZ/G1H carrier board. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Marian-Cristian Rotariu > Reviewed-by: Geert Uytterhoeven i.e. will queue in renesas-devel for v5.9. Gr{oetje,eeting}s,

Re: [PATCH] ipc/msg.c: wake up senders until there is a queue empty capacity

2020-05-26 Thread Artur Barsegyan
Hello, Manfred! Thank you, for your review. I've reviewed your patch. I forgot about the case with different message types. At now with your patch, a sender will force message consuming if that doesn't hold own capacity. I have measured queue throughput and have pushed the results to: https://gi

Re: [PATCH v2] kdb: Make kdb_printf robust to run in NMI context

2020-05-26 Thread Sumit Garg
On Fri, 22 May 2020 at 22:05, Daniel Thompson wrote: > > On Fri, May 22, 2020 at 08:03:47PM +0530, Sumit Garg wrote: > > While rounding up CPUs via NMIs, its possible that a rounded up CPU > > maybe holding a console port lock leading to kgdb master CPU stuck in > > a deadlock during invocation of

Re: [PATCH 1/3] mfd: stmfx: reset chip on resume as supply was disabled

2020-05-26 Thread Lee Jones
On Wed, 22 Apr 2020, Amelie Delaunay wrote: > STMFX supply is disabled during suspend. To avoid a too early access to > the STMFX firmware on resume, reset the chip and wait for its firmware to > be loaded. > > Fixes: 06252ade9156 ("mfd: Add ST Multi-Function eXpander (STMFX) core > driver") > S

Re: [PATCH v1] x86: Pin cr4 FSGSBASE

2020-05-26 Thread Peter Zijlstra
On Tue, May 26, 2020 at 08:56:18AM +0200, Greg KH wrote: > On Mon, May 25, 2020 at 10:28:48PM -0700, Andi Kleen wrote: > > From: Andi Kleen > > > > Since there seem to be kernel modules floating around that set > > FSGSBASE incorrectly, prevent this in the CR4 pinning. Currently > > CR4 pinning j

Re: [PATCH 3/4] ARM: dts: r8a7742-iwg21d-q7: Enable Ethernet avb

2020-05-26 Thread Geert Uytterhoeven
On Mon, May 25, 2020 at 5:23 PM Lad Prabhakar wrote: > Enable ethernet avb on iWave RZ/G1H carrier board. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Marian-Cristian Rotariu > Reviewed-by: Geert Uytterhoeven i.e. will queue in renesas-devel for v5.9. Gr{oetje,eeting}s,

Re: [PATCH 2/3] mfd: stmfx: fix stmfx_irq_init error path

2020-05-26 Thread Lee Jones
On Wed, 22 Apr 2020, Amelie Delaunay wrote: > In case the interrupt signal can't be configured, IRQ domain needs to be > removed. > > Fixes: 06252ade9156 ("mfd: Add ST Multi-Function eXpander (STMFX) core > driver") > Signed-off-by: Amelie Delaunay > --- > drivers/mfd/stmfx.c | 9 +++-- >

Re: [PATCH 2/4] ARM: dts: r8a7742-iwg21d-q7: Enable SDHI2 controller

2020-05-26 Thread Geert Uytterhoeven
Hi Prabhakar, On Mon, May 25, 2020 at 5:23 PM Lad Prabhakar wrote: > Enable the SDHI2 controller on iWave RZ/G1H carrier board. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Marian-Cristian Rotariu > Reviewed-by: Geert Uytterhoeven i.e. will queue in renesas-devel for v5.9. BTW, perhaps y

[RFC v9 0/8] Implement Data Access Monitoring-based Memory Operation Schemes

2020-05-26 Thread SeongJae Park
From: SeongJae Park DAMON[1] can be used as a primitive for data access awared memory management optimizations. For that, users who want such optimizations should run DAMON, read the monitoring results, analyze it, plan a new memory management scheme, and apply the new scheme by themselves. Suc

Re: [PATCH 4/4] ARM: dts: r8a7742-iwg21d-q7: Add RWDT support

2020-05-26 Thread Geert Uytterhoeven
On Mon, May 25, 2020 at 5:23 PM Lad Prabhakar wrote: > Enable RWDT and use 60 seconds as default timeout. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Marian-Cristian Rotariu > Reviewed-by: Geert Uytterhoeven i.e. will queue in renesas-devel for v5.9. Gr{oetje,eeting}s,

Re: [PATCH 3/3] mfd: stmfx: disable irq in suspend to avoid spurious interrupt

2020-05-26 Thread Lee Jones
On Wed, 22 Apr 2020, Amelie Delaunay wrote: > When STMFX supply is stopped, spurious interrupt can occur. To avoid that, > disable the interrupt in suspend before disabling the regulator and > re-enable it at the end of resume. > > Fixes: 06252ade9156 ("mfd: Add ST Multi-Function eXpander (STMFX)

Re: [linux-next PATCH] mm/gup.c: Convert to use get_user_{page|pages}_fast_only()

2020-05-26 Thread Paul Mackerras
On Mon, May 25, 2020 at 02:23:32PM +0530, Souptick Joarder wrote: > API __get_user_pages_fast() renamed to get_user_pages_fast_only() > to align with pin_user_pages_fast_only(). > > As part of this we will get rid of write parameter. > Instead caller will pass FOLL_WRITE to get_user_pages_fast_onl

[RFC v9 1/8] mm/madvise: Export do_madvise() to external GPL modules

2020-05-26 Thread SeongJae Park
From: SeongJae Park This commit exports 'do_madvise()' to external GPL modules, so that other modules including DAMON could use the function. Signed-off-by: SeongJae Park --- mm/madvise.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/madvise.c b/mm/madvise.c index 80f8a1839f70..151aaf

[RFC v9 2/8] mm/damon: Account age of target regions

2020-05-26 Thread SeongJae Park
From: SeongJae Park DAMON can be used as a primitive for data access pattern aware memory management optimizations. However, users who want such optimizations should run DAMON, read the monitoring results, analyze it, plan a new memory management scheme, and apply the new scheme by themselves.

[PATCH] NTB: correct ntb_peer_spad_addr and ntb_peer_spad_read comment typos

2020-05-26 Thread Wesley Sheng
The comment for ntb_peer_spad_addr and ntb_peer_spad_read incorrectly referred to peer doorbell register and local scratchpad register. Signed-off-by: Wesley Sheng --- include/linux/ntb.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/ntb.h b/include/linux/

[RFC v9 3/8] mm/damon: Implement data access monitoring-based operation schemes

2020-05-26 Thread SeongJae Park
From: SeongJae Park In many cases, users might use DAMON for simple data access aware memory management optimizations such as applying an operation scheme to a memory region of a specific size having a specific access frequency for a specific time. For example, "page out a memory region larger t

[RFC v9 4/8] mm/damon/schemes: Implement a debugfs interface

2020-05-26 Thread SeongJae Park
From: SeongJae Park This commit implements a debugfs interface for the data access monitoring oriented memory management schemes. It is supposed to be used by administrators and/or privileged user space programs. Users can read and update the rules using ``/damon/schemes`` file. The format is:

[RFC PATCH v1 0/3] ethernet: amd: Convert to generic power management

2020-05-26 Thread Vaibhav Gupta
Linux Kernel Mentee: Remove Legacy Power Management. The purpose of this patch series is to remove legacy power management callbacks from amd ethernet drivers. The callbacks performing suspend() and resume() operations are still calling pci_save_state(), pci_set_power_state(), etc. and handling t

Re: [RFC PATCH] gpio: uapi: v2 proposal

2020-05-26 Thread Andy Shevchenko
+Cc: Ville Ville, this is a v2 of the GPIO ABI we discussed with some time ago. If you have time to briefly look at it and perhaps comment if it's right way to go. On Sat, May 16, 2020 at 9:50 AM Kent Gibson wrote: > > Add a new version of the uAPI to address existing 32/64bit alignment > issues

[RFC PATCH v1 2/3] amd8111e: Convert to generic power mangement

2020-05-26 Thread Vaibhav Gupta
compile-tested only Drivers should not save device registers and/or change the power state of the device. As per the generic PM approach, these are handled by PCI core. The driver should support dev_pm_ops callbacks and bind them to pci_driver. Signed-off-by: Vaibhav Gupta --- drivers/net/ethe

[RFC PATCH v1 3/3] amd-xgbe: Convert to generic power management

2020-05-26 Thread Vaibhav Gupta
compile-tested only Use dev_pm_ops structure to call generic suspend() and resume() callbacks. Drivers should avoid saving device register and/or change power states using PCI helper functions. With generic approach, all these are handled by PCI core. Signed-off-by: Vaibhav Gupta --- drivers/n

[RFC v9 5/8] mm/damon/schemes: Implement statistics feature

2020-05-26 Thread SeongJae Park
From: SeongJae Park To tune the DAMON-based operation schemes, knowing how many and how large regions are affected by each of the schemes will be helful. Those stats could be used for not only the tuning, but also monitoring of the working set size and the number of regions, if the scheme does n

[RFC PATCH v1 1/3] pcnet32: Convert to generic power management

2020-05-26 Thread Vaibhav Gupta
compile-tested only Remove legacy PM callbacks and use generic operations. With legacy code, drivers were responsible for handling PCI PM operations like "pci_save_state()". In generic code, all these handled by PCI core. The generic "suspend()" and "resume()" are called at the same point the leg

[RFC v9 6/8] mm/damon/selftests: Add 'schemes' debugfs tests

2020-05-26 Thread SeongJae Park
From: SeongJae Park This commit adds simple selftets for 'schemes' debugfs file of DAMON. Signed-off-by: SeongJae Park --- .../testing/selftests/damon/debugfs_attrs.sh | 29 +++ 1 file changed, 29 insertions(+) diff --git a/tools/testing/selftests/damon/debugfs_attrs.sh b/to

Re: [PATCH v2 16/18] nitro_enclaves: Add sample for ioctl interface usage

2020-05-26 Thread Paraschiv, Andra-Irina
On 26/05/2020 09:41, Greg KH wrote: On Mon, May 25, 2020 at 11:57:26PM +0300, Paraschiv, Andra-Irina wrote: On 22/05/2020 10:08, Greg KH wrote: On Fri, May 22, 2020 at 09:29:44AM +0300, Andra Paraschiv wrote: Signed-off-by: Alexandru Vasile Signed-off-by: Andra Paraschiv I know I don't t

[RFC v9 7/8] damon/tools: Support more human friendly 'schemes' control

2020-05-26 Thread SeongJae Park
From: SeongJae Park This commit implements 'schemes' subcommand of the damon userspace tool. It can be used to describe and apply the data access monitoring-based operation schemes in more human friendly fashion. Signed-off-by: SeongJae Park --- tools/damon/_convert_damos.py | 128

[RFC v9 8/8] Documentation/admin-guide/mm: Document DAMON-based operation schemes

2020-05-26 Thread SeongJae Park
From: SeongJae Park This commit documents DAMON-based operation schemes in the DAMON document. Signed-off-by: SeongJae Park --- Documentation/admin-guide/mm/damon/guide.rst | 35 ++ Documentation/admin-guide/mm/damon/usage.rst | 126 +-- 2 files changed, 151 insertions(+),

RE: Re: [PATCH v12 00/18] Enable FSGSBASE instructions

2020-05-26 Thread David Laight
From: Richard Weinberger > Sent: 25 May 2020 08:55 ... > P: Sadly too. Mostly because customer has custom module and forgot to set it > GPL You want us to lie that custom modules are GPL? David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registra

[PATCH] mm/gup: correct pin_user_pages.rst location

2020-05-26 Thread Vitaly Kuznetsov
pin_user_pages.rst lives in Documentation/core-api/, not Documentation/vm/, adjust all links accordingly. Fixes: 3faa52c03f44 ("mm/gup: track FOLL_PIN pages") Fixes: eddb1c228f79 ("mm/gup: introduce pin_user_pages*() and FOLL_PIN") Signed-off-by: Vitaly Kuznetsov --- include/linux/mm.h | 4 ++--

Re: [patch V9 02/39] rcu: Abstract out rcu_irq_enter_check_tick() from rcu_nmi_enter()

2020-05-26 Thread Ingo Molnar
* Paul E. McKenney wrote: > > + if (!tick_nohz_full_cpu(rdp->cpu) || > > + !READ_ONCE(rdp->rcu_urgent_qs) || > > + READ_ONCE(rdp->rcu_forced_tick)) { > > + // RCU doesn't need nohz_full help from this CPU, or it is > > + // already getting that help. > > +

<    1   2   3   4   5   6   7   8   9   10   >