Re: [PATCH 1/4] userfaultfd.2: Add UFFD_FEATURE_THREAD_ID docs

2021-03-04 Thread Peter Xu
On Thu, Mar 04, 2021 at 10:22:18AM +0100, Alejandro Colomar (man-pages) wrote: > Hello Peter, Hi, Alex, > > On 3/4/21 2:59 AM, Peter Xu wrote: > > UFFD_FEATURE_THREAD_ID is supported since Linux 4.14. > > > > Signed-off-by: Peter Xu > > --- > > man2/userfaultfd.2 | 12 > > 1 fi

Re: [PATCH v2 1/2] mm/memcg: rename mem_cgroup_split_huge_fixup to split_page_memcg

2021-03-04 Thread Johannes Weiner
On Thu, Mar 04, 2021 at 07:40:52AM +, Zhou Guanghui wrote: > Rename mem_cgroup_split_huge_fixup to split_page_memcg and explicitly > pass in page number argument. > > In this way, the interface name is more common and can be used by > potential users. In addition, the complete info(memcg and f

Re: [PATCH v2 2/2] mm/memcg: set memcg when split page

2021-03-04 Thread Johannes Weiner
On Thu, Mar 04, 2021 at 07:40:53AM +, Zhou Guanghui wrote: > As described in the split_page function comment, for the non-compound > high order page, the sub-pages must be freed individually. If the > memcg of the fisrt page is valid, the tail pages cannot be uncharged > when be freed. > > For

Re: [PATCH 00/49] Add Alder Lake support for perf

2021-03-04 Thread Liang, Kan
Hi Peter, Could you please take a look at the perf kernel patches (3-25)? By now, we have got some comments regarding the generic hybrid feature enumeration code and perf tool patches. I would appreciate it very much if you could comment on the perf kernel patches. Thanks, Kan On 2/8/2021 1

hi

2021-03-04 Thread sgtannkisner
Hello Good morning, I am sgt Ann kisner from united states of America, Please i have Something very important thing to share with you,Please contact me on my email; ( sgtannkis...@gmail.com ). thanks Yours Miss SgtAnn

Re: [PATCH] pinctrl/sunxi: adding input-debounce-ns property

2021-03-04 Thread Maxime Ripard
On Fri, Feb 26, 2021 at 01:53:00PM +0100, Marjan Pascolo wrote: > Hi Maxime, > > Il 17/02/2021 12:03, Maxime Ripard ha scritto: > > Hi, > > > > On Wed, Feb 10, 2021 at 05:22:37PM +0100, Marjan Pascolo wrote: > > > On Allwinner SoC interrupt debounce can be controlled by two oscillator > > > (32KH

[PATCH] ata: ahci: ceva: Updated code by using dev_err_probe()

2021-03-04 Thread Piyush Mehta
Updated code with already prepared dev_err_probe(). It reduces code size and simplifies EPROBE_DEFER handling. Also, unify message format for similar error cases. Signed-off-by: Piyush Mehta --- This patch is based on ahci-ceva patches: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux

Re: [PATCH v1 4/4] gpiolib: Reuse device's fwnode to create IRQ domain

2021-03-04 Thread Rafael J. Wysocki
On Thu, Mar 4, 2021 at 4:40 PM Andy Shevchenko wrote: > > On Thu, Mar 04, 2021 at 02:41:24PM +0100, Rafael J. Wysocki wrote: > > On Thu, Mar 4, 2021 at 1:25 PM Andy Shevchenko > > wrote: > > > > > > On Thu, Mar 04, 2021 at 09:06:08AM +0100, Linus Walleij wrote: > > > > On Wed, Mar 3, 2021 at 10:3

[PATCH] ata: ahci: ceva: Updated code by using dev_err_probe()

2021-03-04 Thread Piyush Mehta
Updated code with already prepared dev_err_probe(). It reduces code size and simplifies EPROBE_DEFER handling. Also, unify message format for similar error cases. Signed-off-by: Piyush Mehta --- This patch is based on ahci-ceva patches: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux

Re: [PATCH 1/2] mm: disable LRU pagevec during the migration temporarily

2021-03-04 Thread Minchan Kim
On Thu, Mar 04, 2021 at 09:07:28AM +0100, David Hildenbrand wrote: > On 03.03.21 21:23, Minchan Kim wrote: > > On Wed, Mar 03, 2021 at 01:49:36PM +0100, Michal Hocko wrote: > > > On Tue 02-03-21 13:09:48, Minchan Kim wrote: > > > > LRU pagevec holds refcount of pages until the pagevec are drained.

Re: [PATCH 1/4] userfaultfd.2: Add UFFD_FEATURE_THREAD_ID docs

2021-03-04 Thread Peter Xu
On Thu, Mar 04, 2021 at 08:38:09AM +0200, Mike Rapoport wrote: > On Wed, Mar 03, 2021 at 08:59:44PM -0500, Peter Xu wrote: > > UFFD_FEATURE_THREAD_ID is supported since Linux 4.14. > > > > Signed-off-by: Peter Xu > > --- > > man2/userfaultfd.2 | 12 > > 1 file changed, 12 insertions

[PATCH] reset: whitespace fixes

2021-03-04 Thread Philipp Zabel
Fixes checkpatch issues: CHECK: Alignment should match open parenthesis #87: FILE: drivers/reset/core.c:87: +static int of_reset_simple_xlate(struct reset_controller_dev *rcdev, + const struct of_phandle_args *reset_spec) CHECK: Lines should not end with a '(' #5

[PATCH] reset: berlin: replace unsigned with unsigned int

2021-03-04 Thread Philipp Zabel
Fixes a checkpatch warning: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' #55: FILE: drivers/reset/reset-berlin.c:55: + unsigned offset, bit; Signed-off-by: Philipp Zabel --- drivers/reset/reset-berlin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dr

[PATCH] reset: zynqmp: replace spaces with tabs

2021-03-04 Thread Philipp Zabel
Fixes checkpatch issues: ERROR: code indent should use tabs where possible #86: FILE: drivers/reset/reset-zynqmp.c:86: +.reset_id = 0,$ WARNING: please, no spaces at the start of a line #86: FILE: drivers/reset/reset-zynqmp.c:86: +.reset_id = 0,$ ERROR: code indent

[PATCH] reset: sti/syscfg: replace comma with semicolon

2021-03-04 Thread Philipp Zabel
Fixes a checkpatch warning: WARNING: Possible comma where semicolon could be used #156: FILE: drivers/reset/sti/reset-syscfg.c:156: + rc->rst.ops = &syscfg_reset_ops, + rc->rst.of_node = dev->of_node; Signed-off-by: Philipp Zabel --- drivers/reset/sti/reset-syscfg.c | 2 +- 1 fi

Re: [PATCH 3/3] PCI: Convert rtw88 power cycle quirk to shutdown quirk

2021-03-04 Thread Bjorn Helgaas
[+cc Rafael, linux-pm] On Thu, Mar 04, 2021 at 02:07:18PM +0800, Kai-Heng Feng wrote: > On Sat, Feb 27, 2021 at 2:17 AM Bjorn Helgaas wrote: > > On Fri, Feb 26, 2021 at 02:31:31PM +0100, Heiner Kallweit wrote: > > > On 26.02.2021 13:18, Kai-Heng Feng wrote: > > > > On Fri, Feb 26, 2021 at 8:10 PM

Re: [PATCH] mm: be more verbose for alloc_contig_range faliures

2021-03-04 Thread Minchan Kim
On Tue, Mar 02, 2021 at 09:23:49AM -0800, Minchan Kim wrote: > On Fri, Feb 19, 2021 at 10:28:12AM +0100, Michal Hocko wrote: > > On Thu 18-02-21 08:19:50, Minchan Kim wrote: > > > On Thu, Feb 18, 2021 at 10:43:21AM +0100, David Hildenbrand wrote: > > > > On 18.02.21 10:35, Michal Hocko wrote: > > >

[PATCH] reset: uniphier: enclose UNIPHIER_RESET_ID_END value in parentheses

2021-03-04 Thread Philipp Zabel
Fixes a checkpatch error: ERROR: Macros with complex values should be enclosed in parentheses #23: FILE: drivers/reset/reset-uniphier.c:23: +#define UNIPHIER_RESET_ID_END(unsigned int)(-1) Signed-off-by: Philipp Zabel --- drivers/reset/reset-uniphier.c | 2 +- 1 file chang

Re: [PATCH 2/4] userfaultfd.2: Add write-protect mode

2021-03-04 Thread Peter Xu
On Thu, Mar 04, 2021 at 08:46:59AM +0200, Mike Rapoport wrote: > On Wed, Mar 03, 2021 at 08:59:45PM -0500, Peter Xu wrote: > > Write-protect mode is supported starting from Linux 5.7. > > > > Signed-off-by: Peter Xu > > --- > > man2/userfaultfd.2 | 88

[PATCH] reset: ti-syscon: fix to_ti_syscon_reset_data macro

2021-03-04 Thread Philipp Zabel
The to_ti_syscon_reset_data macro currently only works if the parameter passed into it is called 'rcdev'. Fixes a checkpatch --strict issue: CHECK: Macro argument reuse 'rcdev' - possible side-effects? #53: FILE: drivers/reset/reset-ti-syscon.c:53: +#define to_ti_syscon_reset_data(rcdev)

[PATCH] reset: oxnas: replace file name with short description

2021-03-04 Thread Philipp Zabel
Fixes a checkpatch warning: WARNING: It's generally not useful to have the filename in the file #3: FILE: drivers/reset/reset-oxnas.c:3: + * drivers/reset/reset-oxnas.c Signed-off-by: Philipp Zabel --- drivers/reset/reset-oxnas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH] reset: zynqmp: replace spaces with tabs

2021-03-04 Thread Michal Simek
On 3/4/21 5:00 PM, Philipp Zabel wrote: > Fixes checkpatch issues: > > ERROR: code indent should use tabs where possible > #86: FILE: drivers/reset/reset-zynqmp.c:86: > +.reset_id = 0,$ > > WARNING: please, no spaces at the start of a line > #86: FILE: drivers/reset/reset-zyn

[RESEND PATCH v3 2/2] phy: stm32: register usbphyc as clock provider of ck_usbo_48m clock

2021-03-04 Thread Amelie Delaunay
ck_usbo_48m is generated by usbphyc PLL and used by OTG controller for Full-Speed use cases with dedicated Full-Speed transceiver. ck_usbo_48m is available as soon as the PLL is enabled. Signed-off-by: Amelie Delaunay --- No changes in v3. Changes in v2: - fix COMMON_CLK dependency issue reporte

[PATCH] media: v4l docs: move some cross-reference identifiers

2021-03-04 Thread Mauro Carvalho Chehab
Sphinx doesn't allow placing those cross-reference identifies everywhere. Misplacing them cause those warnings: Documentation/userspace-api/media/v4l/hist-v4l2.rst:818: WARNING: undefined label: control-flags (if the link has no caption the label must precede a section header) Documentation/

[RESEND PATCH v3 1/2] dt-bindings: phy: phy-stm32-usbphyc: add #clock-cells property

2021-03-04 Thread Amelie Delaunay
usbphyc provides a unique clock called ck_usbo_48m. STM32 USB OTG needs a 48Mhz clock (utmifs_clk48) for Full-Speed operation. ck_usbo_48m is a possible parent clock for USB OTG 48Mhz clock. ck_usbo_48m is available as soon as the PLL is enabled. Signed-off-by: Amelie Delaunay Acked-by: Rob Herr

[PATCH] reset: axs10x: Replace GPLv2 boilerplate/reference with SPDX

2021-03-04 Thread Philipp Zabel
reset-axs10x is GPL-2.0-only, add a SPDX-License-Identifier. Signed-off-by: Philipp Zabel --- drivers/reset/reset-axs10x.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/reset/reset-axs10x.c b/drivers/reset/reset-axs10x.c index a854ef41364d..ca78b859936c 100644 -

[RESEND PATCH v3 0/2] STM32 USBPHYC ck_usbo_48m clock provider

2021-03-04 Thread Amelie Delaunay
STM32 USBPHYC provides clocks to STM32 RCC pour STM32 USB controllers. Specifically, ck_usbo_48m is a possible clock parent for USB OTG clock, during OTG Full-Speed operation. This series registers the usbphyc as clock provider of this ck_usbo_48m clock. --- Changes in v3: - remove #clock-cells f

Re: [PATCH v3 1/2] pwm: sunxi: Add Allwinner SoC PWM controller driver

2021-03-04 Thread Maxime Ripard
Hi, On Tue, Mar 02, 2021 at 08:37:37PM +0800, Ban Tao wrote: > From: Ban Tao > > The Allwinner R818, A133, R329, V536 and V833 has a new PWM controller > IP compared to the older Allwinner SoCs. > > Signed-off-by: Ban Tao Thanks for sending an update. Like I said in the previous version thou

Re: [PATCH v3 2/2] pwm: sun8i-v536: document device tree bindings

2021-03-04 Thread Maxime Ripard
Hi, On Tue, Mar 02, 2021 at 08:40:23PM +0800, Ban Tao wrote: > From: Ban Tao > > This adds binding documentation for sun8i-v536 SoC PWM driver. > > Signed-off-by: Ban Tao > --- > .../bindings/pwm/pwm-sun8i-v536.txt | 24 +++ Bindings should be done using the YAML for

Re: [PATCH] mm: be more verbose for alloc_contig_range faliures

2021-03-04 Thread David Hildenbrand
On 04.03.21 17:01, Minchan Kim wrote: On Tue, Mar 02, 2021 at 09:23:49AM -0800, Minchan Kim wrote: On Fri, Feb 19, 2021 at 10:28:12AM +0100, Michal Hocko wrote: On Thu 18-02-21 08:19:50, Minchan Kim wrote: On Thu, Feb 18, 2021 at 10:43:21AM +0100, David Hildenbrand wrote: On 18.02.21 10:35, M

Re: XDP socket rings, and LKMM litmus tests

2021-03-04 Thread Alan Stern
On Thu, Mar 04, 2021 at 02:33:32PM +0800, Boqun Feng wrote: > Right, I was thinking about something unrelated.. but how about the > following case: > > local_v = &y; > r1 = READ_ONCE(*x); // f > > if (r1 == 1) { > local_v = &y; // e > } else { >

Re: [PATCH v3 5/9] KVM: vmx/pmu: Add MSR_ARCH_LBR_DEPTH emulation for Arch LBR

2021-03-04 Thread Sean Christopherson
On Thu, Mar 04, 2021, Xu, Like wrote: > Hi Sean, > > Thanks for your detailed review on the patch set. > > On 2021/3/4 0:58, Sean Christopherson wrote: > > On Wed, Mar 03, 2021, Like Xu wrote: > > > @@ -348,10 +352,26 @@ static bool intel_pmu_handle_lbr_msrs_access(struct > > > kvm_vcpu *vcpu, >

Re: [PATCH 4/4] ioctl_userfaultfd.2: Add write-protect mode docs

2021-03-04 Thread Peter Xu
On Wed, Mar 03, 2021 at 08:59:47PM -0500, Peter Xu wrote: > Userfaultfd write-protect mode is supported starting from Linux 5.7. > > Signed-off-by: Peter Xu > --- > man2/ioctl_userfaultfd.2 | 74 +--- > 1 file changed, 70 insertions(+), 4 deletions(-) > > dif

[PATCH v4] mm: cma: support sysfs

2021-03-04 Thread Minchan Kim
Since CMA is getting used more widely, it's more important to keep monitoring CMA statistics for system health since it's directly related to user experience. This patch introduces sysfs statistics for CMA, in order to provide some basic monitoring of the CMA allocator. * the number of CMA page

Re: regression with TTY changes in v5.12-rc1

2021-03-04 Thread Greg Kroah-Hartman
On Thu, Mar 04, 2021 at 08:37:44AM -0600, Pierre-Louis Bossart wrote: > Hi, > Our SOF/audio CI shows an across-the-board regression when we try v5.12-rc1, > specifically on pause/resume tests with an interactive terminal running > 'aplay -i' commands managed by expect to simulate the user pressing

Re: [PATCH v2 1/2] mm/memcg: rename mem_cgroup_split_huge_fixup to split_page_memcg

2021-03-04 Thread Zi Yan
On 4 Mar 2021, at 2:40, Zhou Guanghui wrote: > Rename mem_cgroup_split_huge_fixup to split_page_memcg and explicitly > pass in page number argument. > > In this way, the interface name is more common and can be used by > potential users. In addition, the complete info(memcg and flag) of > the memc

Possible regression due to 269a535ca931 "modpost: generate vmlinux.symvers and reuse it for the second modpost"

2021-03-04 Thread Vladimir Murzin
Hi, Recently, I had to dig awkward build issue for external module (originally with ARCH=arm) like MODPOST module/path/Module.symvers ERROR: modpost: "__put_user_1" [module/path/name.ko] undefined! ERROR: modpost: "__aeabi_unwind_cpp_pr0" [/module/path/name.ko] undefined! and it looks like it i

Re: [PATCH] perf stat: improve readability of shadow stats

2021-03-04 Thread Changbin Du
On Mon, Mar 01, 2021 at 08:19:20PM +0100, Jiri Olsa wrote: > On Tue, Mar 02, 2021 at 01:24:02AM +0800, Changbin Du wrote: > > This does follow two changes: > > 1) Select appropriate unit between K/M/G. > > 2) Use 'cpu-sec' instead of 'sec' to state this is not the wall-time. > > > > $ sudo ./p

Re: [PATCH v2 2/2] mm/memcg: set memcg when split page

2021-03-04 Thread Zi Yan
On 4 Mar 2021, at 2:40, Zhou Guanghui wrote: > As described in the split_page function comment, for the non-compound > high order page, the sub-pages must be freed individually. If the > memcg of the fisrt page is valid, the tail pages cannot be uncharged s/fisrt/first/ > when be freed. > > For

[PATCH v2 04/13] serial: stm32: fix TX and RX FIFO thresholds

2021-03-04 Thread Erwan Le Ray
TX and RX FIFO thresholds may be cleared after suspend/resume, depending on the low power mode. Those configurations (done in startup) are not effective for UART console, as: - the reference manual indicates that FIFOEN bit can only be written when the USART is disabled (UE=0) - a set_termios (w

[PATCH v2 01/13] serial: stm32: fix probe and remove order for dma

2021-03-04 Thread Erwan Le Ray
The probe and remove orders are wrong as the uart_port is registered before saving device data in the probe, and unregistered after DMA resource deallocation in the remove. uart_port registering should be done at the end of probe and unregistering should be done at the begin of remove to avoid reso

[PATCH v2 07/13] serial: stm32: fix a deadlock in set_termios

2021-03-04 Thread Erwan Le Ray
CTS/RTS GPIOs support that has been added recently to STM32 UART driver has introduced scheduled code in a set_termios part protected by a spin lock. This generates a potential deadlock scenario: Chain exists of: &irq_desc_lock_class --> console_owner --> &port_lock_key Possible unsafe locking sc

[PATCH v2 00/13] stm32 usart various fixes

2021-03-04 Thread Erwan Le Ray
Changes in v2: Rebase on latest 5.12-rc1 requested by maintainer because of merge conflict. Erwan Le Ray (13): serial: stm32: fix probe and remove order for dma serial: stm32: fix startup by enabling usart for reception serial: stm32: fix incorrect characters on console serial: stm32: fix

[PATCH v2 06/13] serial: stm32: fix wake-up flag handling

2021-03-04 Thread Erwan Le Ray
This patch fixes several issue with wake-up handling: - the WUF irq is handled several times at wake-up - the USART is disabled / enabled at suspend to set wake-up flag. It can cause glitches during RX. This patch fix those issues: - clear wake-up flag and disable wake-up irq in WUF irq handling -

[PATCH v2 11/13] serial: stm32: add FIFO flush when port is closed

2021-03-04 Thread Erwan Le Ray
Transmission complete error is sent when ISR_TC is not set. If port closure is requested despite data in TDR / TX FIFO has not been sent (because of flow control), ISR_TC is not set and error message is sent on port closure but also when a new port is opened. Flush the data when port is closed, so

[PATCH v2 05/13] serial: stm32: fix a deadlock condition with wakeup event

2021-03-04 Thread Erwan Le Ray
Deadlock issue is seen when enabling CONFIG_PROVE_LOCKING=Y, and uart console as wakeup source. Deadlock occurs when resuming from low power mode if system is waked up via usart console. The deadlock is triggered 100% when also disabling console suspend prior to go to suspend. Simplified call stac

Re: [PATCH] ata: ahci: ceva: Updated code by using dev_err_probe()

2021-03-04 Thread Michal Simek
On 3/4/21 4:53 PM, Piyush Mehta wrote: > Updated code with already prepared dev_err_probe(). It reduces code size > and simplifies EPROBE_DEFER handling. > > Also, unify message format for similar error cases. > > Signed-off-by: Piyush Mehta > --- > This patch is based on ahci-ceva patches: >

[PATCH v2 03/13] serial: stm32: fix incorrect characters on console

2021-03-04 Thread Erwan Le Ray
Incorrect characters are observed on console during boot. This issue occurs when init/main.c is modifying termios settings to open /dev/console on the rootfs. This patch adds a waiting loop in set_termios to wait for TX shift register empty (and TX FIFO if any) before stopping serial port. Fixes:

[PATCH v2 12/13] serial: stm32: fix tx_empty condition

2021-03-04 Thread Erwan Le Ray
In "tx_empty", we should poll TC bit in both DMA and PIO modes (instead of TXE) to check transmission data register has been transmitted independently of the FIFO mode. TC indicates that both transmit register and shift register are empty. When shift register is empty, tx_empty should return TIOCSE

[PATCH v2 10/13] serial: stm32: fix FIFO flush in startup and set_termios

2021-03-04 Thread Erwan Le Ray
Fifo flush set USART_RQR register by calling stm32_usart_set_bits routine (Read/Modify/Write). USART_RQR register is a write only register. So, read before write isn't correct / relevant to flush the FIFOs. Replace stm32_usart_set_bits call by writel_relaxed. Fixes: 84872dc448fe ("serial: stm32: a

Re: [PATCH] mm: be more verbose for alloc_contig_range faliures

2021-03-04 Thread Minchan Kim
On Thu, Mar 04, 2021 at 05:10:52PM +0100, David Hildenbrand wrote: > On 04.03.21 17:01, Minchan Kim wrote: > > On Tue, Mar 02, 2021 at 09:23:49AM -0800, Minchan Kim wrote: > > > On Fri, Feb 19, 2021 at 10:28:12AM +0100, Michal Hocko wrote: > > > > On Thu 18-02-21 08:19:50, Minchan Kim wrote: > > >

Re: [PATCH v3 1/1] s390/vfio-ap: fix circular lockdep when setting/clearing crypto masks

2021-03-04 Thread Tony Krowiak
On 3/3/21 2:42 PM, Halil Pasic wrote: On Wed, 3 Mar 2021 11:41:22 -0500 Tony Krowiak wrote: How do you exect userspace to react to this -ENODEV? The VFIO_DEVICE_RESET ioctl expects a return code. The vfio_ap_mdev_reset_queues() function can return -EIO or -EBUSY, so I would expect userspac

Re: [PATCH v3 6/9] KVM: vmx/pmu: Add MSR_ARCH_LBR_CTL emulation for Arch LBR

2021-03-04 Thread Sean Christopherson
On Thu, Mar 04, 2021, Xu, Like wrote: > On 2021/3/4 1:19, Sean Christopherson wrote: > > > @@ -4463,6 +4470,8 @@ static void vmx_vcpu_reset(struct kvm_vcpu *vcpu, > > > bool init_event) > > > vmcs_writel(GUEST_SYSENTER_ESP, 0); > > > vmcs_writel(GUEST_SYSENTER_E

[PATCH v2 09/13] serial: stm32: call stm32_transmit_chars locked

2021-03-04 Thread Erwan Le Ray
stm32_transmit_chars should be called under lock also in tx DMA callback. Fixes: 3489187204eb ("serial: stm32: adding dma support") Signed-off-by: Erwan Le Ray Signed-off-by: Fabrice Gasnier diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index 74046ae3a412..2bd

[PATCH v2 08/13] serial: stm32: fix tx dma completion, release channel

2021-03-04 Thread Erwan Le Ray
This patch add a proper release of dma channels when completing dma tx. Fixes: 3489187204eb ("serial: stm32: adding dma support") Signed-off-by: Erwan Le Ray diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index a381ee52168a..74046ae3a412 100644 --- a/drivers/tty

[PATCH v2 02/13] serial: stm32: fix startup by enabling usart for reception

2021-03-04 Thread Erwan Le Ray
RX is configured, but usart is not enabled in startup function. Kernel documentation specifies that startup should enable the port for reception. Fix the startup by enabling usart for reception. Fixes: 84872dc448fe ("serial: stm32: add RX and TX FIFO flush") Signed-off-by: Erwan Le Ray diff --gi

[PATCH v2 13/13] serial: stm32: add support for "flush_buffer" ops

2021-03-04 Thread Erwan Le Ray
Add the support for "flush_buffer" ops in order to flush any write buffers, reset any DMA state and stop any ongoing DMA transfers when the port->state->xmit circular buffer is cleared. Signed-off-by: Erwan Le Ray diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c i

Re: [PATCH] mm: be more verbose for alloc_contig_range faliures

2021-03-04 Thread David Hildenbrand
On 04.03.21 17:23, Minchan Kim wrote: On Thu, Mar 04, 2021 at 05:10:52PM +0100, David Hildenbrand wrote: On 04.03.21 17:01, Minchan Kim wrote: On Tue, Mar 02, 2021 at 09:23:49AM -0800, Minchan Kim wrote: On Fri, Feb 19, 2021 at 10:28:12AM +0100, Michal Hocko wrote: On Thu 18-02-21 08:19:50, M

Re: [PATCH STABLE 5.10 5.11] swap: fix swapfile page to sector mapping

2021-03-04 Thread Anthony Iliopoulos
On Thu, Mar 04, 2021 at 04:16:26PM +0100, Greg Kroah-Hartman wrote: > On Thu, Mar 04, 2021 at 04:08:24PM +0100, Anthony Iliopoulos wrote: > > commit caf6912f3f4af7232340d500a4a2008f81b93f14 upstream. > > No, this does not look like that commit. > > Why can I not just take caf6912f3f4a ("swap: fix

Re: [PATCH v3 9/9] KVM: x86: Add XSAVE Support for Architectural LBRs

2021-03-04 Thread Sean Christopherson
On Thu, Mar 04, 2021, Like Xu wrote: > On 2021/3/4 2:03, Sean Christopherson wrote: > > if (vmx_umip_emulated()) > > kvm_cpu_cap_set(X86_FEATURE_UMIP); > > > > /* CPUID 0xD.1 */ > > - supported_xss = 0; > > if (!cpu_has_vmx_xsaves()) > >

Re: [PATCH v4 1/4] hugetlb: Pass vma into huge_pte_alloc() and huge_pmd_share()

2021-03-04 Thread kernel test robot
Hi Peter, Thank you for the patch! Yet something to improve: [auto build test ERROR on arm64/for-next/core] [also build test ERROR on linux/master linus/master v5.12-rc1 next-20210304] [cannot apply to hnaz-linux-mm/master] [If your patch is applied to the wrong git tree, kindly drop us a note

[PATCH v2 0/4] man2: udpate mm/userfaultfd manpages to latest

2021-03-04 Thread Peter Xu
v2 changes: - Fix wordings as suggested [MikeR] - convert ".BR" to ".B" where proper for the patchset [Alex] - rearrange a few lines in the last two patches where they got messed up - document more things, e.g. UFFDIO_COPY_MODE_WP; and also on how to resolve a wr-protect page fault. There're two

[PATCH v2 2/4] userfaultfd.2: Add write-protect mode

2021-03-04 Thread Peter Xu
Write-protect mode is supported starting from Linux 5.7. Signed-off-by: Peter Xu --- man2/userfaultfd.2 | 98 +- 1 file changed, 96 insertions(+), 2 deletions(-) diff --git a/man2/userfaultfd.2 b/man2/userfaultfd.2 index 0cd426a8a..426307bcf 100644 --

[PATCH v2 4/4] ioctl_userfaultfd.2: Add write-protect mode docs

2021-03-04 Thread Peter Xu
Userfaultfd write-protect mode is supported starting from Linux 5.7. Signed-off-by: Peter Xu --- man2/ioctl_userfaultfd.2 | 76 ++-- 1 file changed, 73 insertions(+), 3 deletions(-) diff --git a/man2/ioctl_userfaultfd.2 b/man2/ioctl_userfaultfd.2 index b58983

[PATCH v2 1/4] userfaultfd.2: Add UFFD_FEATURE_THREAD_ID docs

2021-03-04 Thread Peter Xu
UFFD_FEATURE_THREAD_ID is supported since Linux 4.14. Signed-off-by: Peter Xu --- man2/userfaultfd.2 | 13 + 1 file changed, 13 insertions(+) diff --git a/man2/userfaultfd.2 b/man2/userfaultfd.2 index e7dc9f813..0cd426a8a 100644 --- a/man2/userfaultfd.2 +++ b/man2/userfaultfd.2 @@ -

[PATCH RESEND WITH CCs v3 3/4] perf tools: enable dwarf_callchain_users on aarch64

2021-03-04 Thread Alexandre Truong
On arm64, enable dwarf_callchain_users which will be needed to do a dwarf unwind in order to get the caller of the leaf frame. Signed-off-by: Alexandre Truong Cc: John Garry Cc: Will Deacon Cc: Mathieu Poirier Cc: Leo Yan Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc:

[PATCH RESEND WITH CCs v3 1/4] perf tools: record aarch64 registers automatically

2021-03-04 Thread Alexandre Truong
On arm64, automatically record all the registers if the frame pointer mode is on. They will be used to do a dwarf unwind to find the caller of the leaf frame if the frame pointer was omitted. Signed-off-by: Alexandre Truong Cc: John Garry Cc: Will Deacon Cc: Mathieu Poirier Cc: Leo Yan Cc: Pe

[PATCH RESEND WITH CCs v3 4/4] perf tools: determine if LR is the return address

2021-03-04 Thread Alexandre Truong
On arm64 and frame pointer mode (e.g: perf record --callgraph fp), use dwarf unwind info to check if the link register is the return address in order to inject it to the frame pointer stack. Write the following application: int a = 10; void f2(void) { for

Re: [PATCH v4 02/15] gpio: regmap: set gpio_chip of_node

2021-03-04 Thread Andy Shevchenko
On Thu, Mar 4, 2021 at 5:44 PM Álvaro Fernández Rojas wrote: > > El 4 mar 2021, a las 16:28, Andy Shevchenko > > escribió: > > On Thu, Mar 4, 2021 at 5:24 PM Álvaro Fernández Rojas > > wrote: > >>> El 4 mar 2021, a las 16:17, Andy Shevchenko > >>> escribió: > >>> On Thu, Mar 4, 2021 at 5:06

Re: [PATCH] perf stat: improve readability of shadow stats

2021-03-04 Thread Changbin Du
On Tue, Mar 02, 2021 at 09:25:24AM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Mar 02, 2021 at 11:08:40AM +0900, Namhyung Kim escreveu: > > On Tue, Mar 2, 2021 at 4:19 AM Jiri Olsa wrote: > > > > > > On Tue, Mar 02, 2021 at 01:24:02AM +0800, Changbin Du wrote: > > > > This does follow two cha

[PATCH v2 3/4] ioctl_userfaultfd.2: Add UFFD_FEATURE_THREAD_ID docs

2021-03-04 Thread Peter Xu
UFFD_FEATURE_THREAD_ID is supported in Linux 4.14. Signed-off-by: Peter Xu --- man2/ioctl_userfaultfd.2 | 5 + 1 file changed, 5 insertions(+) diff --git a/man2/ioctl_userfaultfd.2 b/man2/ioctl_userfaultfd.2 index 47ae5f473..b58983fe7 100644 --- a/man2/ioctl_userfaultfd.2 +++ b/man2/ioctl_u

[PATCH RESEND WITH CCs v3 2/4] perf tools: add a mechanism to inject stack frames

2021-03-04 Thread Alexandre Truong
Add a mechanism for platforms to inject stack frames for the leaf frame caller if there is enough information to determine a frame is missing from dwarf or other post processing mechanisms. Signed-off-by: Alexandre Truong Cc: John Garry Cc: Will Deacon Cc: Mathieu Poirier Cc: Leo Yan Cc: Pete

Re: [RFC PATCH 1/5] tracing: Define new ftrace event "func_repeats"

2021-03-04 Thread Steven Rostedt
On Thu, 4 Mar 2021 11:01:37 +0200 "Yordan Karadzhov (VMware)" wrote: Thanks Yordan for doing this! I have some comments below. > diff --git a/kernel/trace/trace_entries.h b/kernel/trace/trace_entries.h > index 4547ac59da61..8007f9b6417f 100644 > --- a/kernel/trace/trace_entries.h > +++ b/kerne

Re: [PATCH v5] media: vimc: get pixformat info from v4l2_format_info

2021-03-04 Thread Carlos Eduardo Climaco Barbosa
Hi! After a long while, I'm working in the patch again. In regard to Dafna's suggestion, I'd have to rename and change the returning types of vimc pix map related functions. Would it be better if I just send a patch with the proposed changes or should we talk about it here? Regards, Carlos On W

Re: [PATCH 2/2] quota: wire up quotactl_path

2021-03-04 Thread kernel test robot
the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Sascha-Hauer/quota-Add-mountpath-based-quota-support/20210304-204157 bas

[PATCH v2] perf stat: improve readability of shadow stats

2021-03-04 Thread Changbin Du
This adds function convert_unit_double() and selects appropriate unit for shadow stats between K/M/G. $ sudo ./perf stat -a -- sleep 1 Before: Unit 'M' is selected even the number is very small. Performance counter stats for 'system wide': 4,003.06 msec cpu-clock #

Re: [PATCH v4 02/15] gpio: regmap: set gpio_chip of_node

2021-03-04 Thread Andy Shevchenko
On Thu, Mar 4, 2021 at 6:33 PM Andy Shevchenko wrote: > On Thu, Mar 4, 2021 at 5:44 PM Álvaro Fernández Rojas > wrote: Let me summarize what we can do this independently on any of my patches and be okay with. In the regmap GPIO configuration you supply struct fwnode_handle *fwnode. You can you

Re: [PATCH v4 1/4] hugetlb: Pass vma into huge_pte_alloc() and huge_pmd_share()

2021-03-04 Thread Peter Xu
On Fri, Mar 05, 2021 at 12:31:00AM +0800, kernel test robot wrote: > Hi Peter, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on arm64/for-next/core] > [also build test ERROR on linux/master linus/master v5.12-rc1 next-20210304] > [cannot a

Re: [PATCH v3 1/3] KVM: nVMX: Sync L2 guest CET states between L1/L2

2021-03-04 Thread Sean Christopherson
On Thu, Mar 04, 2021, Yang Weijiang wrote: > @@ -3375,6 +3391,12 @@ enum nvmx_vmentry_status > nested_vmx_enter_non_root_mode(struct kvm_vcpu *vcpu, > if (kvm_mpx_supported() && > !(vmcs12->vm_entry_controls & VM_ENTRY_LOAD_BNDCFGS)) > vmx->nested.vmcs01_guest_bnd

Re: [PATCH v4 05/10] coresight: syscfg: Add API to activate and enable configurations

2021-03-04 Thread Suzuki K Poulose
On 1/28/21 5:09 PM, Mike Leach wrote: Configurations are first activated, then when any coresight device is enabled, the active configurations are checked and any matching one is enabled. This patch provides the activation / enable API. Signed-off-by: Mike Leach --- .../hwtracing/coresight/c

Re: [PATCH v4 06/10] coresight: etm-perf: Update to activate selected configuration

2021-03-04 Thread Suzuki K Poulose
On 1/28/21 5:09 PM, Mike Leach wrote: Add calls to activate the selected configuration as perf starts and stops the tracing session. Signed-off-by: Mike Leach Reviewed-by: Suzuki K Poulose

Re: [PATCH 5.11 000/773] 5.11.3-rc3 review

2021-03-04 Thread Guenter Roeck
On Thu, Mar 04, 2021 at 12:23:15PM +0100, Greg Kroah-Hartman wrote: > On Wed, Mar 03, 2021 at 02:02:20PM +0530, Naresh Kamboju wrote: > > On Wed, 3 Mar 2021 at 00:59, Greg Kroah-Hartman > > wrote: > > > > > > This is the start of the stable review cycle for the 5.11.3 release. > > > There are 773

Re: [PATCH] devfreq: Register devfreq as a cooling device

2021-03-04 Thread Daniel Lezcano
Hi Lukasz, thanks for commenting this patch, On 04/03/2021 14:47, Lukasz Luba wrote: > Hi Daniel, > > On 3/4/21 12:50 PM, Daniel Lezcano wrote: >> Currently the default behavior is to manually having the devfreq >> backend to register themselves as a devfreq cooling device. >> >> There are no

Re: [PATCH] devfreq: Register devfreq as a cooling device

2021-03-04 Thread Daniel Lezcano
On 04/03/2021 16:06, Chanwoo Choi wrote: > Hi Daniel, > > As Lukasz's comment, actually some devfreq devices like memory bus > might not affect the thermal critically. In the mainline, > there are four types devfreq as following: > 1. GPU > 2. UFS Storage > 3. DMC (Memory Controller) > 4. Memory b

[PATCH] arm64: dts: renesas: falcon: Add GP LEDs

2021-03-04 Thread Kieran Bingham
Three general purpose LEDs are provided on the Falcon CPU board. Connect GP_LED1, GP_LED2, and GP_LED3 to the gpio-leds frameworks. These LEDs are arranged in a block of four LEDs on the board itself, but the fourth LED is as yet unidentified. Signed-off-by: Kieran Bingham --- arch/arm64/boot/d

Re: [Intel-gfx] [WARNING] v5.12-rc1 in intel_pipe_disable tracepoint

2021-03-04 Thread Ville Syrjälä
On Mon, Mar 01, 2021 at 07:20:59PM +0200, Ville Syrjälä wrote: > On Mon, Mar 01, 2021 at 11:59:46AM -0500, Steven Rostedt wrote: > > > > On my test box with latest v5.12-rc1, running with all trace events > > enabled, I consistently trigger this warning. > > > > It appears to get triggered by the

RE: [PATCH] Enable ACPI_ADR_SPACE_PCI_CONFIG in acpi_gbl_default_address_spaces only when ACPI_PCI_CONFIGURED is defined

2021-03-04 Thread Moore, Robert
Well, I don't like the fact that PCI_CONFIGURED would have to be defined by each current host: > +#ifdef ACPI_PCI_CONFIGURED I would rather the logic be reversed: > +#ifdef ACPI_PCI_NOT_CONFIGURED -Original Message- From: Kaneda, Erik Sent: Wednesday, March 03, 2021 10:29 AM To: Weid

RE: A note on the 5.12-rc1 tag

2021-03-04 Thread David Laight
> On Thu, Mar 4, 2021 at 1:59 PM Linus Torvalds > wrote: > > And, as far as I know, all the normal distributions set things up with > > swap partitions, not files, because honestly, swapfiles tend to be > > slower and have various other complexity issues. > > Looks like this has changed in at lea

Re: [PATCH STABLE 5.10 5.11] swap: fix swapfile page to sector mapping

2021-03-04 Thread Greg Kroah-Hartman
On Thu, Mar 04, 2021 at 05:30:00PM +0100, Anthony Iliopoulos wrote: > On Thu, Mar 04, 2021 at 04:16:26PM +0100, Greg Kroah-Hartman wrote: > > On Thu, Mar 04, 2021 at 04:08:24PM +0100, Anthony Iliopoulos wrote: > > > commit caf6912f3f4af7232340d500a4a2008f81b93f14 upstream. > > > > No, this does no

Re: [PATCH v1] powerpc: Include running function as first entry in save_stack_trace() and friends

2021-03-04 Thread Mark Rutland
On Thu, Mar 04, 2021 at 04:30:34PM +0100, Marco Elver wrote: > On Thu, 4 Mar 2021 at 15:57, Mark Rutland wrote: > > [adding Mark Brown] > > > > The bigger problem here is that skipping is dodgy to begin with, and > > this is still liable to break in some cases. One big concern is that > > (especia

[PATCH] selftests/x86: Add a missing .note.GNU-stack section to thunks_32.S

2021-03-04 Thread Andy Lutomirski
test_syscall_vdso_32 ended up with an executable stacks because the asm was missing the annotation that says that it is modern and doesn't need an executable stack. Add the annotation. This was missed in commit aeaaf005da1d ("selftests/x86: Add missing .note.GNU-stack sections"). Signed-off-by:

RE: [bisected] 5.12-rc1 hpsa regression: "scsi: hpsa: Correct dev cmds outstanding for retried cmds" breaks hpsa P600

2021-03-04 Thread Don.Brace
-Original Message- From: Sergei Trofimovich [mailto:sly...@gmail.com] Sent: Wednesday, March 3, 2021 4:04 PM To: Don Brace - C33706 Cc: glaub...@physik.fu-berlin.de; storagedev ; linux-s...@vger.kernel.org; linux-i...@vger.kernel.org; linux-kernel@vger.kernel.org; jszcz...@redhat.com; S

Re: [PATCH 5.11 000/773] 5.11.3-rc3 review

2021-03-04 Thread Greg Kroah-Hartman
On Thu, Mar 04, 2021 at 08:52:47AM -0800, Guenter Roeck wrote: > On Thu, Mar 04, 2021 at 12:23:15PM +0100, Greg Kroah-Hartman wrote: > > On Wed, Mar 03, 2021 at 02:02:20PM +0530, Naresh Kamboju wrote: > > > On Wed, 3 Mar 2021 at 00:59, Greg Kroah-Hartman > > > wrote: > > > > > > > > This is the st

Re: [PATCH 5/7] printk: Make %pS and friends print module build ID

2021-03-04 Thread Matthew Wilcox
On Mon, Mar 01, 2021 at 09:47:47AM -0800, Stephen Boyd wrote: > Example: > > WARNING: CPU: 4 PID: 3255 at drivers/misc/lkdtm/bugs.c:83 > lkdtm_WARNING+0x28/0x30 [lkdtm] (ed5019fdf5e53be37cb1ba7899292d7e143b259e) Would the first 12 characters instead of all 40 make it more palatable without redu

Re: [PATCH v3 1/2] pwm: sunxi: Add Allwinner SoC PWM controller driver

2021-03-04 Thread Uwe Kleine-König
Hello, the Subject should mention sun8i-v536. On Tue, Mar 02, 2021 at 08:37:37PM +0800, Ban Tao wrote: > The Allwinner R818, A133, R329, V536 and V833 has a new PWM controller > IP compared to the older Allwinner SoCs. > > Signed-off-by: Ban Tao > > --- > v1->v2: > 1.delete unnecessary code. >

Re: [PATCH] perf report: Fix -F for branch & mem modes

2021-03-04 Thread Arnaldo Carvalho de Melo
Em Thu, Mar 04, 2021 at 12:15:58PM +0530, Athira Rajeev escreveu: > > On 04-Mar-2021, at 11:59 AM, Ravi Bangoria > > wrote: > > > > perf report fails to add valid additional fields with -F when > > used with branch or mem modes. Fix it. > > > > Before patch: > > > > $ ./perf record -b > > $

Re: [PATCH] Enable ACPI_ADR_SPACE_PCI_CONFIG in acpi_gbl_default_address_spaces only when ACPI_PCI_CONFIGURED is defined

2021-03-04 Thread Weidong Cui
> Well, I don't like the fact that PCI_CONFIGURED would have to be defined by > each current host: > > > +#ifdef ACPI_PCI_CONFIGURED > > I would rather the logic be reversed: > > > +#ifdef ACPI_PCI_NOT_CONFIGURED Thank you for the comments, Erik and Bob! ACPI_PCI_CONFIGURED is defined in aclinux

Re: [V1,1/1] platform/x86: add support for Advantech software defined button

2021-03-04 Thread Hans de Goede
Hi Andrea, On 3/2/21 7:44 AM, andrea...@advantech.com.tw wrote: > From: "Andrea.Ho" > > Advantech sw_button is a ACPI event trigger button. > > With this driver, we can report KEY_EVENT on the > Advantech Tabletop Network Appliances products and it has been > tested in FWA1112VC. > > Add the s

Re: [PATCH 2/2] quota: wire up quotactl_path

2021-03-04 Thread kernel test robot
the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Sascha-Hauer/quota-Add-mountpath-based-quota-support/20210304-204157 bas

Re: [PATCH v5 0/5] mm/hugetlb: Early cow on fork, and a few cleanups

2021-03-04 Thread Jason Gunthorpe
On Tue, Mar 02, 2021 at 06:45:49PM -0800, Linus Torvalds wrote: > On Tue, Mar 2, 2021 at 5:47 PM Peter Xu wrote: > > > > As Jason and Wei pointed out, I think some userspace still got corrupted > > data > > without this series when using hugetlb backend. I don't think it'll suite > > for > > a

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