Re: [patch 6/6] posix-cpu-timers: Make PID=0 and PID=self handling consistent

2019-09-23 Thread Frederic Weisbecker
On Thu, Sep 05, 2019 at 02:03:45PM +0200, Thomas Gleixner wrote: > If the PID encoded into the clock id is 0 then the target is either the > calling thread itself or the process to which it belongs. > > If the current thread encodes its own PID on a process wide clock then > there is no reason

Re: [PATCH v3 3/5] leds: lm3692x: Handle failure to probe the regulator

2019-09-23 Thread Dan Murphy
Guido Thanks for the update Reviewed-by: Dan Murphy On 9/21/19 4:12 PM, Guido Günther wrote: Instead use devm_regulator_get_optional since the regulator is optional and check for errors. Signed-off-by: Guido Günther Acked-by: Pavel Machek --- drivers/leds/leds-lm3692x.c | 13

Re: [PATCH v3 2/5] leds: lm3692x: Don't overwrite return value in error path

2019-09-23 Thread Dan Murphy
Guido Thanks for the update Reviewed-by: Dan Murphy On 9/21/19 4:12 PM, Guido Günther wrote: The driver currently reports successful initialization on every failure as long as it's able to power off the regulator. Don't check the return value of regulator_disable to avoid that.

Re: [PATCH] futex: robust futex maybe never be awaked, on rare situation.

2019-09-23 Thread Thomas Gleixner
On Mon, 23 Sep 2019, Peter Zijlstra wrote: > On Mon, Sep 23, 2019 at 11:18:20AM +0800, Yunfeng Cui wrote: > > I use model checker find a issue of robust and pi futex. On below > > situation, the owner can't find something in pi_state_list, while > > the requester will be blocked, never be awaked.

Re: [patch 5/6] posix-cpu-timers: Sanitize thread clock permissions

2019-09-23 Thread Frederic Weisbecker
On Thu, Sep 05, 2019 at 02:03:44PM +0200, Thomas Gleixner wrote: > The thread clock permissions are restricted to tasks of the same thread > group, but that also prevents a ptracer from reading them. This is > inconsistent vs. the process restrictions and unnecessary strict. > > Relax it to

Re: [PATCH v2] perf record: fix priv level with branch sampling for paranoid=2

2019-09-23 Thread Arnaldo Carvalho de Melo
Em Fri, Sep 20, 2019 at 04:03:56PM -0700, Stephane Eranian escreveu: > Now that the default perf_events paranoid level is set to 2, a regular user > cannot monitor kernel level activity anymore. As such, with the following > cmdline: > > $ perf record -e cycles date > > The perf tool first tries

[PATCH] MAINTAINERS: Add logicpd-som-lv and logicpd-torpedo to OMAP TREE

2019-09-23 Thread Adam Ford
The OMAP DEVICE TREE SUPPORT lists a bunch of device tree files with wildcard names using am3*, am4*, am5*, dra7*, and *omap*. Unfortunately, the LogicPD boards do not follow this convention so changes to these boards don't get automatically flagged to route to the omap mailing list. After

[PATCH] MAINTAINERS: Add logicpd-som-lv and logicpd-torpedo to OMAP TREE

2019-09-23 Thread Adam Ford
The OMAP DEVICE TREE SUPPORT lists a bunch of device tree files with wildcard names using am3*, am4*, am5*, dra7*, and *omap*. Unfortunately, the LogicPD boards do not follow this convention so changes to these boards don't get automatically flagged to route to the omap mailing list. After

[PATCH] MAINTAINERS: Add logicpd-som-lv and logicpd-torpedo to OMAP TREE

2019-09-23 Thread Adam Ford
The OMAP DEVICE TREE SUPPORT lists a bunch of device tree files with wildcard names using am3*, am4*, am5*, dra7*, and *omap*. Unfortunately, the LogicPD boards do not follow this convention so changes to these boards don't get automatically flagged to route to the omap mailing list. After

[PATCH v4] serial: imx: adapt rx buffer and dma periods

2019-09-23 Thread Philipp Puschmann
Using only 4 DMA periods for UART RX is very few if we have a high frequency of small transfers - like in our case using Bluetooth with many small packets via UART - causing many dma transfers but in each only filling a fraction of a single buffer. Such a case may lead to the situation that DMA RX

Re: [PATCH 2/3] dt-bindings: gpio: Add binding document for xylon logicvc-gpio

2019-09-23 Thread Paul Kocialkowski
Hi, On Thu 12 Sep 19, 10:19, Linus Walleij wrote: > On Tue, Sep 10, 2019 at 4:29 PM Paul Kocialkowski > wrote: > > > The Xylon LogiCVC display controller exports some GPIOs, which are > > exposed as a dedicated driver. > > > > This introduces the associated device-tree bindings documentation. >

[PATCH v4 2/3] dt-bindings: arm: amlogic: Add support for the Ugoos AM6

2019-09-23 Thread Christian Hewitt
The Ugoos AM6 is based on the Amlogic W400 (G12B) reference design using the S922X chipset. Acked-by: Rob Herring Signed-off-by: Christian Hewitt --- Documentation/devicetree/bindings/arm/amlogic.yaml | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v4 1/3] dt-bindings: Add vendor prefix for Ugoos

2019-09-23 Thread Christian Hewitt
Ugoos Industrial Co., Ltd. are a manufacturer of ARM based TV Boxes/Dongles, Digital Signage and Advertisement Solutions [0]. [0] (https://ugoos.com) Acked-by: Rob Herring Signed-off-by: Christian Hewitt --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2

[PATCH v4 0/3] arm64: meson-g12b: Add support for the Ugoos AM6

2019-09-23 Thread Christian Hewitt
This patchset adds support for the Ugoos AM6, an Android STB based on the Amlogic W400 reference design with the S922X chipset. v2: correction of minor nits v3: address regulator and GPIO corrections from Neil Armstrong (using schematic excerpts from Ugoos) and related v2 comments from Martin

[PATCH v4 3/3] arm64: dts: meson-g12b-ugoos-am6: add initial device-tree

2019-09-23 Thread Christian Hewitt
The Ugoos AM6 is based on the Amlogic W400 (G12B) reference design using the S922X chipset. Hardware specifications: - 2GB LPDDR4 RAM - 16GB eMMC storage - 10/100/1000 Base-T Ethernet using External RGMII PHY - 802.11 a/b/g/b/ac + BT 5.0 sdio wireless (Ampak 6398S) - HDMI 2.0 (4k@60p) video -

[PATCH v3] serial: imx: adapt rx buffer and dma periods

2019-09-23 Thread Philipp Puschmann
Using only 4 DMA periods for UART RX is very few if we have a high frequency of small transfers - like in our case using Bluetooth with many small packets via UART - causing many dma transfers but in each only filling a fraction of a single buffer. Such a case may lead to the situation that DMA RX

[PATCH v5 1/3] dmaengine: imx-sdma: fix buffer ownership

2019-09-23 Thread Philipp Puschmann
BD_DONE flag marks ownership of the buffer. When 1 SDMA owns the buffer, when 0 ARM owns it. When processing the buffers in sdma_update_channel_loop the ownership of the currently processed buffer was set to SDMA again before running the callback function of the buffer and while the sdma script

[PATCH v5 3/3] dmaengine: imx-sdma: drop redundant variable

2019-09-23 Thread Philipp Puschmann
In sdma_prep_dma_cyclic buf is redundant. Drop it. Signed-off-by: Philipp Puschmann Reviewed-by: Lucas Stach --- Changelog v3,v4,v5: - no changes Changelog v2: - add Reviewed-by tag drivers/dma/imx-sdma.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git

[PATCH v5 2/3] dmaengine: imx-sdma: fix dma freezes

2019-09-23 Thread Philipp Puschmann
For some years and since many kernel versions there are reports that the RX UART SDMA channel stops working at some point. The workaround was to disable DMA for RX. This commit fixes the problem itself. Cyclic DMA transfers are used by uart and other drivers and these can fail in at least two

[PATCH v5 0/3] Fix UART DMA freezes for i.MX SOCs

2019-09-23 Thread Philipp Puschmann
For some years and since many kernel versions there are reports that RX UART DMA channel stops working at one point. So far the usual workaround was to disable RX DMA. This patches fix the underlying problem. When a running sdma script does not find any usable destination buffer to put its data

Re: [PATCH V7 5/7] cpufreq: Register notifiers with the PM QoS framework

2019-09-23 Thread Viresh Kumar
On 22-09-19, 23:12, Dmitry Osipenko wrote: > This patch causes use-after-free on a cpufreq driver module reload. Please > take a look, thanks in advance. > > > [ 87.952369] > == > [ 87.953259] BUG: KASAN: use-after-free in

Re: [PATCH 3/5] perf vendor events: minor fixes to the README

2019-09-23 Thread Arnaldo Carvalho de Melo
Em Thu, Sep 19, 2019 at 03:09:28PM -0700, Andi Kleen escreveu: > For all the patches except the last > > Reviewed-by: Andi Kleen Thanks, applying all but the last till we get that further discussed. -- - Arnaldo

[PATCH v2] quota: code cleanup for hash bits calculation

2019-09-23 Thread Chengguang Xu
Code cleanup for hash bits calculation by calling ilog2(). Signed-off-by: Chengguang Xu --- v1->v2: - Calculate hash bits by directly calling ilog2(). fs/quota/dquot.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index

Re: For review: rewritten pivot_root(2) manual page

2019-09-23 Thread Philipp Wendler
Hello Michael, Am 23.09.19 um 14:04 schrieb Michael Kerrisk (man-pages): > I'm considering to rewrite these pieces to exactly > describe what the system call does (which I already > do in the third paragraph) and remove the "may or may not" > pieces in the second paragraph. I'd welcome comments

[PATCH net] Bluetooth: SMP: remove set but not used variable 'smp'

2019-09-23 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: net/bluetooth/smp.c: In function 'smp_irk_matches': net/bluetooth/smp.c:505:18: warning: variable 'smp' set but not used [-Wunused-but-set-variable] net/bluetooth/smp.c: In function 'smp_generate_rpa': net/bluetooth/smp.c:526:18: warning: variable

Waiting for your urgent reply,

2019-09-23 Thread Mr. Nor Hizam Hashim
Dear Sir/ Madam, Please forgive me if my request is not acceptable by your kind person. I am Mr. Nor Hizam Hashim, Working at MAYBANK (Malaysia) as the Independent Non-Executive Director & Audit Committee. During our last banking Audits we discovered an abandoned account belongs to one of our

Re: [PATCH AUTOSEL 5.2 072/185] ALSA: hda: Add codec on bus address table lately

2019-09-23 Thread Takashi Iwai
On Mon, 23 Sep 2019 15:30:25 +0200, Sasha Levin wrote: > > On Sun, Sep 22, 2019 at 09:06:12PM +0200, Takashi Iwai wrote: > >On Sun, 22 Sep 2019 20:47:30 +0200, > >Sasha Levin wrote: > >> > >> From: Takashi Iwai > >> > >> [ Upstream commit ee5f85d9290fe25d460bd320b7fe073075d72d33 ] > >> > >> The

Re: [patch 4/6] posix-cpu-timers: Restrict clock_gettime() permissions

2019-09-23 Thread Frederic Weisbecker
On Thu, Sep 05, 2019 at 02:03:43PM +0200, Thomas Gleixner wrote: > Similar to creating timers on a process there is no restriction at all to > read the Posix CPU clocks of any process in the system. Per thread CPU > clock access is limited to threads in the same thread group. > > The per process

Re: [PATCH v4 1/2] soc/tegra: pmc: Query PCLK clock rate at probe time

2019-09-23 Thread Dmitry Osipenko
23.09.2019 16:31, Dmitry Osipenko пишет: > 23.09.2019 16:01, Jon Hunter пишет: >> >> On 23/09/2019 13:49, Dmitry Osipenko wrote: >>> 23.09.2019 13:56, Jon Hunter пишет: On 04/08/2019 21:29, Dmitry Osipenko wrote: > It is possible to get a lockup if kernel decides to enter LP2

Re: [PATCH v9 07/11] dt-bindings: pwm: pwm-mediatek: add a property "num-pwms"

2019-09-23 Thread Thierry Reding
On Mon, Sep 23, 2019 at 11:20:57AM +0800, Sam Shih wrote: > On Sat, 2019-09-21 at 02:21 +0200, Thierry Reding wrote: > > On Fri, Sep 20, 2019 at 06:49:07AM +0800, Sam Shih wrote: > > > From: Ryder Lee > > > > > > This adds a property "num-pwms" in example so that we could > > > specify the

Re: [PATCH] quota: code cleanup for hash bits calculation

2019-09-23 Thread admin
在 星期一, 2019-09-23 18:02:53 Jan Kara 撰写 > On Sat 21-09-19 09:56:28, Chengguang Xu wrote: > > Code cleanup for hash bits calculation by > > calling rounddown_pow_of_two() and ilog2() > > > > Signed-off-by: Chengguang Xu > > Thanks for the patch! One comment below: > > > diff

Re: [PATCH 30/32] tools lib bpf: Renaming pr_warning to pr_warn

2019-09-23 Thread Daniel Borkmann
On Mon, Sep 23, 2019 at 01:03:06PM +0200, Petr Mladek wrote: > On Mon 2019-09-23 10:20:39, Daniel Borkmann wrote: > > On Sun, Sep 22, 2019 at 02:07:21PM -0700, Andrii Nakryiko wrote: > > > On Fri, Sep 20, 2019 at 10:06 AM Kefeng Wang > > > wrote: > > > > > > > > For kernel logging macro,

Re: [PATCH] rtlwifi: rtl8723ae: Remove unused 'rtstatus' variable

2019-09-23 Thread Austin Kim
Hello, Maintainers... Would you please review above patch if you are available? Thanks, Austin Kim 2019년 9월 17일 (화) 오후 3:50, Austin Kim 님이 작성: > > 'rtstatus' local variable is not used, > so remove it for clean-up. > > Signed-off-by: Austin Kim > --- >

Re: [PATCH AUTOSEL 5.3 084/203] media: omap3isp: Don't set streaming state on random subdevs

2019-09-23 Thread Sasha Levin
On Mon, Sep 23, 2019 at 10:25:03AM +0300, Laurent Pinchart wrote: On Mon, Sep 23, 2019 at 10:19:42AM +0300, Sakari Ailus wrote: Hi Sasha, On Sun, Sep 22, 2019 at 02:41:50PM -0400, Sasha Levin wrote: > From: Sakari Ailus > > [ Upstream commit 7ef57be07ac146e70535747797ef4aee0f06e9f9 ] > > The

Re: [PATCH 1/3] gpio: syscon: Add support for a custom get operation

2019-09-23 Thread Paul Kocialkowski
Hi, On Thu 12 Sep 19, 10:18, Linus Walleij wrote: > On Tue, Sep 10, 2019 at 4:29 PM Paul Kocialkowski > wrote: > > > Some drivers might need a custom get operation to match custom > > behavior implemented in the set operation. > > > > Add plumbing for supporting that. > > > > Signed-off-by:

Re: linux-next: Tree for Sep 18 (objtool)

2019-09-23 Thread Peter Zijlstra
On Mon, Sep 23, 2019 at 07:49:01AM -0500, Josh Poimboeuf wrote: > On Mon, Sep 23, 2019 at 11:20:24AM +0200, Peter Zijlstra wrote: > > On Wed, Sep 18, 2019 at 09:04:21PM -0700, Randy Dunlap wrote: > > > On 9/18/19 3:10 PM, Mark Brown wrote: > > > > Hi all, > > > > > > > > Changes since 20190917: >

Re: [PATCH 3/3] gpio: syscon: Add support for the Xylon LogiCVC GPIOs

2019-09-23 Thread Paul Kocialkowski
Hi, On Thu 12 Sep 19, 10:17, Linus Walleij wrote: > On Tue, Sep 10, 2019 at 4:29 PM Paul Kocialkowski > wrote: > > > The LogiCVC display hardware block comes with GPIO capabilities > > that must be exposed separately from the main driver (as GPIOs) for > > use with regulators and panels. A

Re: [PATCH v7 10/21] RISC-V: KVM: Handle MMIO exits for VCPU

2019-09-23 Thread Paolo Bonzini
On 23/09/19 15:09, Anup Patel wrote: >>> +#ifndef CONFIG_RISCV_ISA_C >>> + "li %[tilen], 4\n" >>> +#else >>> + "li %[tilen], 2\n" >>> +#endif >> >> Can you use an assembler directive to force using a non-compressed >> format for ld and lw? This would get

Re: [PATCH v2 04/11] drm/shmem: drop VM_IO

2019-09-23 Thread Steven Price
On 17/09/2019 10:23, Gerd Hoffmann wrote: > VM_IO is wrong here, shmem uses normal ram not io memory. > > Signed-off-by: Gerd Hoffmann Reviewed-by: Steven Price > --- > drivers/gpu/drm/drm_gem_shmem_helper.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [PATCH v4 1/2] soc/tegra: pmc: Query PCLK clock rate at probe time

2019-09-23 Thread Dmitry Osipenko
23.09.2019 16:01, Jon Hunter пишет: > > On 23/09/2019 13:49, Dmitry Osipenko wrote: >> 23.09.2019 13:56, Jon Hunter пишет: >>> >>> >>> On 04/08/2019 21:29, Dmitry Osipenko wrote: It is possible to get a lockup if kernel decides to enter LP2 cpuidle from some clk-notifier, in that case

Re: [PATCH AUTOSEL 5.2 072/185] ALSA: hda: Add codec on bus address table lately

2019-09-23 Thread Sasha Levin
On Sun, Sep 22, 2019 at 09:06:12PM +0200, Takashi Iwai wrote: On Sun, 22 Sep 2019 20:47:30 +0200, Sasha Levin wrote: From: Takashi Iwai [ Upstream commit ee5f85d9290fe25d460bd320b7fe073075d72d33 ] The call of snd_hdac_bus_add_device() is needed only for registering the codec onto the bus

Re: [RFC] mm: memcg: add priority for soft limit reclaiming

2019-09-23 Thread Michal Hocko
On Mon 23-09-19 21:04:59, Hillf Danton wrote: > > On Thu, 19 Sep 2019 21:32:31 +0800 Michal Hocko wrote: > > > > On Thu 19-09-19 21:13:32, Hillf Danton wrote: > > > > > > Currently memory controler is playing increasingly important role in > > > how memory is used and how pages are reclaimed on

Re: printk() + memory offline deadlock (WAS Re: page_alloc.shuffle=1 + CONFIG_PROVE_LOCKING=y = arm64 hang)

2019-09-23 Thread Qian Cai
On Mon, 2019-09-23 at 14:58 +0200, Petr Mladek wrote: > On Mon 2019-09-23 19:21:00, Sergey Senozhatsky wrote: > > So we have > > > > port->lock -> MM -> zone->lock > > // from pty_write()->__tty_buffer_request_room()->kmalloc() > > > > vs > > > > zone->lock -> printk() -> port->lock > >

RE: [PATCH] platform/x86: dell-laptop: fix phantom kbd backlight on Inspiron 10xx

2019-09-23 Thread Mario.Limonciello
> -Original Message- > From: Pali Rohár > Sent: Sunday, September 22, 2019 8:43 AM > To: Pacien TRAN-GIRARD > Cc: Matthew Garrett; Darren Hart; Andy Shevchenko; platform-driver- > x...@vger.kernel.org; linux-kernel@vger.kernel.org; Limonciello, Mario > Subject: Re: [PATCH] platform/x86:

Re: [PATCH] scsi: core: Log SCSI command age with errors

2019-09-23 Thread Milan P. Gandhi
On 9/23/19 6:32 PM, Laurence Oberman wrote: > On Mon, 2019-09-23 at 11:31 +0530, Milan P. Gandhi wrote: >> Couple of users had requested to print the SCSI command age along >> with command failure errors. This is a small change, but allows >> users to get more important information about the

[PATCH 1/2] intel-speed-select: Display turbo-ratio-limits as a table

2019-09-23 Thread Prarit Bhargava
The output of the Turbo Ratio Limits is 75 lines long (each bucket has 3 lines and the headers). This can be shrunk down into a table that is easier to consume for both scripts and humans. Display Turbo Ratio Limits in a table. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada ---

[PATCH 0/2] intel-speed-select: Convert output to tables

2019-09-23 Thread Prarit Bhargava
The turbo ratio limits and turbo frequencies add a large amount of lines to the output. The output can be truncated into human and machine readable tables to reduce the number of lines of output. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada Prarit Bhargava (2): intel-speed-select:

[PATCH 2/2] intel-speed-select: Display turbo frequencies in a table

2019-09-23 Thread Prarit Bhargava
The output of turbo frequencies is also long (each bucket has 3 lines and the headers). This can be shrunk down into a table that is easier to consume for both scripts and humans. Display the turbo and clip frequencies in a table. Signed-off-by: Prarit Bhargava Cc: Srinivas Pandruvada ---

Re: [PATCH v7 10/21] RISC-V: KVM: Handle MMIO exits for VCPU

2019-09-23 Thread Anup Patel
On Mon, Sep 23, 2019 at 4:42 PM Paolo Bonzini wrote: > > On 04/09/19 18:15, Anup Patel wrote: > > + unsigned long guest_sstatus = > > + vcpu->arch.guest_context.sstatus | SR_MXR; > > + unsigned long guest_hstatus = > > +

Re: printk() + memory offline deadlock (WAS Re: page_alloc.shuffle=1 + CONFIG_PROVE_LOCKING=y = arm64 hang)

2019-09-23 Thread Qian Cai
On Mon, 2019-09-23 at 19:21 +0900, Sergey Senozhatsky wrote: > On (09/18/19 12:10), Qian Cai wrote: > [..] > > > So you have debug objects enabled. Right? This thing does not behave > > > when it comes to printing. debug_objects are slightly problematic. > > > > Yes, but there is an also a

[PATCH v2] uapi, posix-timers: provide clockid-related macros and functions to UAPI

2019-09-23 Thread Eugene Syromiatnikov
As of now, there is no interface exposed for converting pid/fd into clockid and vice versa; linuxptp, for example, has been carrying these definitions in missing.h header for quite some time[1]. [1] https://sourceforge.net/p/linuxptp/code/ci/af380e86/tree/missing.h Signed-off-by: Eugene

[PATCH 4/6] virtio: introduce a mdev based transport

2019-09-23 Thread Jason Wang
This patch introduces a new mdev transport for virtio. This is used to use kernel virtio driver to drive the mediated device that is capable of populating virtqueue directly. A new virtio-mdev driver will be registered to the mdev bus, when a new virtio-mdev device is probed, it will register the

Re: [PATCH] futex: robust futex maybe never be awaked, on rare situation.

2019-09-23 Thread Peter Zijlstra
On Mon, Sep 23, 2019 at 11:18:20AM +0800, Yunfeng Cui wrote: > I use model checker find a issue of robust and pi futex. On below > situation, the owner can't find something in pi_state_list, while > the requester will be blocked, never be awaked. > > CPU0 CPU1 >

Re: [PATCH] scsi: core: Log SCSI command age with errors

2019-09-23 Thread Laurence Oberman
On Mon, 2019-09-23 at 11:31 +0530, Milan P. Gandhi wrote: > Couple of users had requested to print the SCSI command age along > with command failure errors. This is a small change, but allows > users to get more important information about the command that was > failed, it would help the users

Re: [PATCH v4 1/2] soc/tegra: pmc: Query PCLK clock rate at probe time

2019-09-23 Thread Jon Hunter
On 23/09/2019 13:49, Dmitry Osipenko wrote: > 23.09.2019 13:56, Jon Hunter пишет: >> >> >> On 04/08/2019 21:29, Dmitry Osipenko wrote: >>> It is possible to get a lockup if kernel decides to enter LP2 cpuidle >>> from some clk-notifier, in that case CCF's "prepare" mutex is kept locked >>> and

Re: printk() + memory offline deadlock (WAS Re: page_alloc.shuffle=1 + CONFIG_PROVE_LOCKING=y = arm64 hang)

2019-09-23 Thread Petr Mladek
On Mon 2019-09-23 19:21:00, Sergey Senozhatsky wrote: > So we have > > port->lock -> MM -> zone->lock > // from pty_write()->__tty_buffer_request_room()->kmalloc() > > vs > > zone->lock -> printk() -> port->lock > // from __offline_pages()->__offline_isolated_pages()->printk() If I

Re: [PATCH v7 18/21] RISC-V: KVM: Add SBI v0.1 support

2019-09-23 Thread Anup Patel
On Mon, Sep 23, 2019 at 12:31 PM Alexander Graf wrote: > > > > On 04.09.19 18:16, Anup Patel wrote: > > From: Atish Patra > > > > The KVM host kernel running in HS-mode needs to handle SBI calls coming > > from guest kernel running in VS-mode. > > > > This patch adds SBI v0.1 support in KVM

Re: [PATCH] net/mlx5: Remove unneeded variable in mlx5_unload_one

2019-09-23 Thread Saeed Mahameed
On Sun, 2019-09-15 at 19:53 +0100, David Miller wrote: > From: zhong jiang > Date: Fri, 13 Sep 2019 00:59:02 +0800 > > > mlx5_unload_one do not need local variable to store different > value, > > Hence just remove it. > > > > Signed-off-by: zhong jiang > > Saeed, just take this directly via

Re: [PATCH v7 11/21] RISC-V: KVM: Handle WFI exits for VCPU

2019-09-23 Thread Anup Patel
On Mon, Sep 23, 2019 at 12:24 PM Alexander Graf wrote: > > > > On 04.09.19 18:15, Anup Patel wrote: > > We get illegal instruction trap whenever Guest/VM executes WFI > > instruction. > > > > This patch handles WFI trap by blocking the trapped VCPU using > > kvm_vcpu_block() API. The blocked VCPU

Re: [PATCH v4 1/2] soc/tegra: pmc: Query PCLK clock rate at probe time

2019-09-23 Thread Dmitry Osipenko
23.09.2019 13:56, Jon Hunter пишет: > > > On 04/08/2019 21:29, Dmitry Osipenko wrote: >> It is possible to get a lockup if kernel decides to enter LP2 cpuidle >> from some clk-notifier, in that case CCF's "prepare" mutex is kept locked >> and thus clk_get_rate(pclk) blocks on the same mutex with

Re: KASAN: use-after-free Read in usb_anchor_resume_wakeups

2019-09-23 Thread Andrey Konovalov
On Mon, Sep 23, 2019 at 11:42 AM Peter Chen wrote: > > > On Tue, Jul 9, 2019 at 2:27 PM syzbot > > wrote: > > > > > > Hello, > > > > > > syzbot found the following crash on: > > > > > > HEAD commit:7829a896 usb-fuzzer: main usb gadget fuzzer driver > > > git tree:

Re: linux-next: Tree for Sep 18 (objtool)

2019-09-23 Thread Josh Poimboeuf
On Mon, Sep 23, 2019 at 11:20:24AM +0200, Peter Zijlstra wrote: > On Wed, Sep 18, 2019 at 09:04:21PM -0700, Randy Dunlap wrote: > > On 9/18/19 3:10 PM, Mark Brown wrote: > > > Hi all, > > > > > > Changes since 20190917: > > > > > > > on x86_64: > > > >

Re: [PATCH v7 06/21] RISC-V: KVM: Implement VCPU create, init and destroy functions

2019-09-23 Thread Anup Patel
On Mon, Sep 23, 2019 at 12:14 PM Alexander Graf wrote: > > > > On 04.09.19 18:14, Anup Patel wrote: > > This patch implements VCPU create, init and destroy functions > > required by generic KVM module. We don't have much dynamic > > resources in struct kvm_vcpu_arch so thest functions are quite >

Re: [PATCH] PCI: Do not use bus number zero from EA capability

2019-09-23 Thread Andrew Murray
On Mon, Sep 02, 2019 at 09:00:03PM +0530, sundeep.l...@gmail.com wrote: > From: Subbaraya Sundeep > > As per the spec, "Enhanced Allocation (EA) for Memory > and I/O Resources" ECN, approved 23 October 2014, > sec 6.9.1.2, fixed bus numbers of a bridge can be zero s/can/must/ The spec uses the

Re: [PATCH v1 0/3] mm/memory_hotplug: Export generic_online_page()

2019-09-23 Thread David Hildenbrand
On 23.09.19 14:30, Michal Hocko wrote: > On Mon 23-09-19 14:20:05, David Hildenbrand wrote: >> On 23.09.19 14:07, Michal Hocko wrote: >>> On Mon 23-09-19 13:34:18, David Hildenbrand wrote: On 23.09.19 13:15, Michal Hocko wrote: >>> [...] > I am wondering why those pages get onlined when

Re: [PATCH 1/2] mmc: sdhci: Check card status after reset

2019-09-23 Thread Adrian Hunter
On 4/09/19 7:46 PM, Raul E Rangel wrote: > In sdhci_do_reset we call the reset callback which is typically > sdhci_reset. sdhci_reset can wait for up to 100ms waiting for the > controller to reset. If SDHCI_RESET_ALL was passed as the flag, the > controller will clear the IRQ mask. If during that

Re: Kernel Concurrency Sanitizer (KCSAN)

2019-09-23 Thread Boqun Feng
On Mon, Sep 23, 2019 at 01:01:27PM +0200, Marco Elver wrote: > On Mon, 23 Sep 2019 at 10:59, Dmitry Vyukov wrote: > > > > On Mon, Sep 23, 2019 at 10:54 AM Boqun Feng wrote: > > > > > > On Mon, Sep 23, 2019 at 10:21:38AM +0200, Dmitry Vyukov wrote: > > > > On Mon, Sep 23, 2019 at 6:31 AM Boqun

Re: [PATCH v1 0/3] mm/memory_hotplug: Export generic_online_page()

2019-09-23 Thread Michal Hocko
On Mon 23-09-19 14:20:05, David Hildenbrand wrote: > On 23.09.19 14:07, Michal Hocko wrote: > > On Mon 23-09-19 13:34:18, David Hildenbrand wrote: > >> On 23.09.19 13:15, Michal Hocko wrote: > > [...] > >>> I am wondering why those pages get onlined when they are, in fact, > >>> supposed to be

[PATCH v6 2/3] mm, slab: Remove unused kmalloc_size()

2019-09-23 Thread Pengfei Li
The size of kmalloc can be obtained from kmalloc_info[], so remove kmalloc_size() that will not be used anymore. Signed-off-by: Pengfei Li Acked-by: Vlastimil Babka Acked-by: Roman Gushchin Acked-by: David Rientjes --- include/linux/slab.h | 20 mm/slab.c| 5

[PATCH v6 1/3] mm, slab: Make kmalloc_info[] contain all types of names

2019-09-23 Thread Pengfei Li
There are three types of kmalloc, KMALLOC_NORMAL, KMALLOC_RECLAIM and KMALLOC_DMA. The name of KMALLOC_NORMAL is contained in kmalloc_info[].name, but the names of KMALLOC_RECLAIM and KMALLOC_DMA are dynamically generated by kmalloc_cache_name(). This patch predefines the names of all types of

[PATCH v6 3/3] mm, slab_common: Use enum kmalloc_cache_type to iterate over kmalloc caches

2019-09-23 Thread Pengfei Li
The type of local variable *type* of new_kmalloc_cache() should be enum kmalloc_cache_type instead of int, so correct it. Signed-off-by: Pengfei Li Acked-by: Vlastimil Babka Acked-by: Roman Gushchin Acked-by: David Rientjes --- mm/slab_common.c | 5 +++-- 1 file changed, 3 insertions(+), 2

[PATCH v6 0/3] mm, slab: Make kmalloc_info[] contain all types of names

2019-09-23 Thread Pengfei Li
Changes in v6 -- 1. abandon patch 4-7 (Because there is not enough reason to explain that they are beneficial) Changes in v5 -- 1. patch 1/7: - rename SET_KMALLOC_SIZE to INIT_KMALLOC_INFO 2. patch 5/7: - fix build errors (Reported-by: kbuild test robot) - make all_kmalloc_info[]

Re: [PATCH v3 1/2] memory_hotplug: Add a bounds check to check_hotplug_memory_range()

2019-09-23 Thread Michal Hocko
On Tue 17-09-19 11:07:47, Alastair D'Silva wrote: > From: Alastair D'Silva > > On PowerPC, the address ranges allocated to OpenCAPI LPC memory > are allocated from firmware. These address ranges may be higher > than what older kernels permit, as we increased the maximum > permissable address in

Re: [PATCH v1 0/3] mm/memory_hotplug: Export generic_online_page()

2019-09-23 Thread David Hildenbrand
On 23.09.19 14:07, Michal Hocko wrote: > On Mon 23-09-19 13:34:18, David Hildenbrand wrote: >> On 23.09.19 13:15, Michal Hocko wrote: > [...] >>> I am wondering why those pages get onlined when they are, in fact, >>> supposed to be offline. >>> >> >> It's the current way of emulating

Re: [PATCH] - change calculating of position page containing BBM

2019-09-23 Thread Piotr Sroka
Hello The 09/19/2019 13:33, Schrempf Frieder wrote: EXTERNAL MAIL On 19.09.19 15:18, Miquel Raynal wrote: Hello, Schrempf Frieder wrote on Thu, 19 Sep 2019 13:15:08 +: On 19.09.19 14:58, Miquel Raynal wrote: Hi Piotr, Piotr Sroka wrote on Thu, 19 Sep 2019 13:41:35 +0100: Change

Re: [RFC patch 10/15] x86/entry: Move irq tracing to C code

2019-09-23 Thread Peter Zijlstra
On Mon, Sep 23, 2019 at 01:55:51PM +0200, Peter Zijlstra wrote: > On Mon, Sep 23, 2019 at 01:49:20PM +0200, Peter Zijlstra wrote: > > While walking the kids to school I wondered WTH we need to call > > TRACE_IRQS_OFF in the first place. If this is the return from exception > > path, interrupts had

Re: [PATCH v1 0/3] mm/memory_hotplug: Export generic_online_page()

2019-09-23 Thread Michal Hocko
On Mon 23-09-19 13:34:18, David Hildenbrand wrote: > On 23.09.19 13:15, Michal Hocko wrote: [...] > > I am wondering why those pages get onlined when they are, in fact, > > supposed to be offline. > > > > It's the current way of emulating sub-memory-block hotplug on top of the > memory bock

Re: [PATCH V7 2/2] mailbox: introduce ARM SMC based mailbox

2019-09-23 Thread kbuild test robot
the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Peng-Fan/mailbox-arm-introduce-smc-triggered-mailbox/20190923-143902 config: arm-allmodconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (GCC) 7.4.0 reproduce

For review: rewritten pivot_root(2) manual page

2019-09-23 Thread Michael Kerrisk (man-pages)
Hello all, I'm looking for review input for the pivot_root(2) manual page, which I have substantially rewritten. The original page was written 19 years ago, and has seen little revision since that time. It contains a number of errors. Even at the time it was first released, the manual page

Re: linux-next: manual merge of the btrfs-kdave tree with Linus' tree

2019-09-23 Thread David Sterba
On Thu, Sep 19, 2019 at 12:31:06PM +0100, Mark Brown wrote: > Hi all, > > Today's linux-next merge of the btrfs-kdave tree got conflicts in: > > fs/btrfs/block-group.c > fs/btrfs/ctree.h > fs/btrfs/extent-tree.c > fs/btrfs/send.c > fs/btrfs/space-info.c >

Re: [RFC patch 10/15] x86/entry: Move irq tracing to C code

2019-09-23 Thread Peter Zijlstra
On Mon, Sep 23, 2019 at 01:49:20PM +0200, Peter Zijlstra wrote: > While walking the kids to school I wondered WTH we need to call > TRACE_IRQS_OFF in the first place. If this is the return from exception > path, interrupts had better be disabled already (in exception enter). > > For entry_64.S we

RE: [PATCH RFC v4 1/1] random: WARN on large getrandom() waits and introduce getrandom2()

2019-09-23 Thread David Laight
From: Linus Torvalds > Sent: 19 September 2019 21:04 ... > Note small detail above: I changed the ^= to a +=. Addition tends to > be better (due to carry between bits) when there might be bit > commonalities. Particularly with something like a cycle count where > two xors can mostly cancel out

Re: [PATCH] sched: rt: Make RT capacity aware

2019-09-23 Thread Qais Yousef
On 09/20/19 14:52, Dietmar Eggemann wrote: > > 2. The fallback mechanism means we either have to call cpupri_find() > >twice once to find filtered lowest_rq and the other to return the > >none filtered version. > > This is what I have in mind. (Only compile tested! ... and the

Re: [RFC patch 10/15] x86/entry: Move irq tracing to C code

2019-09-23 Thread Peter Zijlstra
On Mon, Sep 23, 2019 at 12:27:47PM +0200, Thomas Gleixner wrote: > On Mon, 23 Sep 2019, Peter Zijlstra wrote: > > > On Thu, Sep 19, 2019 at 05:03:24PM +0200, Thomas Gleixner wrote: > > > To prepare for converting the exit to usermode code to the generic > > > version, > > > move the irqflags

Re: [PATCH v1 0/3] mm/memory_hotplug: Export generic_online_page()

2019-09-23 Thread David Hildenbrand
On 23.09.19 13:34, David Hildenbrand wrote: > On 23.09.19 13:15, Michal Hocko wrote: >> On Mon 23-09-19 11:31:30, David Hildenbrand wrote: >>> On 23.09.19 10:58, Michal Hocko wrote: On Fri 20-09-19 10:17:54, David Hildenbrand wrote: > On 09.09.19 13:48, David Hildenbrand wrote: >>

Re: [PATCH] printk: Fix unnecessary returning broken pipe error from devkmsg_read

2019-09-23 Thread Petr Mladek
On Mon 2019-09-23 18:45:18, He Zhe wrote: > > > On 9/23/19 6:05 PM, Sergey Senozhatsky wrote: > > On (09/18/19 21:31), zhe...@windriver.com wrote: > >> When users read the buffer from start, there is no need to return -EPIPE > >> since the possible overflows will not affect the output. > >> > >

Re: [PATCH 4/5] ocxl: Add functions to map/unmap LPC memory

2019-09-23 Thread Frederic Barrat
diff --git a/drivers/misc/ocxl/link.c b/drivers/misc/ocxl/link.c index 2874811a4398..9e303a5f4d85 100644 --- a/drivers/misc/ocxl/link.c +++ b/drivers/misc/ocxl/link.c @@ -738,7 +738,7 @@ int ocxl_link_add_lpc_mem(void *link_handle, u64 size) } EXPORT_SYMBOL_GPL(ocxl_link_add_lpc_mem);

Re: [PATCH v1 0/3] mm/memory_hotplug: Export generic_online_page()

2019-09-23 Thread David Hildenbrand
On 23.09.19 13:15, Michal Hocko wrote: > On Mon 23-09-19 11:31:30, David Hildenbrand wrote: >> On 23.09.19 10:58, Michal Hocko wrote: >>> On Fri 20-09-19 10:17:54, David Hildenbrand wrote: On 09.09.19 13:48, David Hildenbrand wrote: > Based on linux/next + "[PATCH 0/3] Remove

Re: [PATCH] media: platform: Use devm_platform_ioremap_resource() in two functions

2019-09-23 Thread Niklas Söderlund
Hi Markus, Thanks for your patch. On 2019-09-18 11:30:30 +0200, Markus Elfring wrote: > From: Markus Elfring > Date: Wed, 18 Sep 2019 11:20:48 +0200 > > Simplify these function implementations by using a known wrapper function. > > This issue was detected by using the Coccinelle software. >

Re: For review: pidfd_send_signal(2) manual page

2019-09-23 Thread Daniel Colascione
On Mon, Sep 23, 2019 at 2:12 AM Michael Kerrisk (man-pages) wrote: >The pidfd_send_signal() system call allows the avoidance of race >conditions that occur when using traditional interfaces (such as >kill(2)) to signal a process. The problem is that the traditional >

Re: [PATCH] x86/mm/pti: Handle unaligned addr to PMD-mapped page in pti_clone_pgtable

2019-09-23 Thread Peter Zijlstra
On Wed, Sep 18, 2019 at 10:53:12PM -0700, Song Liu wrote: > To clone page table of PMD-mapped pages, pti_clone_pgtable() requires PMD > aligned start address. [1] adds warning for unaligned addresses. However, > there is still no warning for unaligned address to valid huge pmd [2]. > > Add

Re: For review: pidfd_open(2) manual page

2019-09-23 Thread Daniel Colascione
On Mon, Sep 23, 2019 at 3:53 AM Florian Weimer wrote: > > * Michael Kerrisk: > > > SYNOPSIS > >int pidfd_open(pid_t pid, unsigned int flags); > > Should this mention for pid_t? > > > ERRORS > >EINVAL flags is not 0. > > > >EINVAL pid is not valid. > > > >ESRCH

Re: For review: pidfd_send_signal(2) manual page

2019-09-23 Thread Florian Weimer
* Michael Kerrisk: > SYNOPSIS >int pidfd_send_signal(int pidfd, int sig, siginfo_t info, > unsigned int flags); This probably should reference a header for siginfo_t. >ESRCH The target process does not exist. If the descriptor is valid, does this

Is congestion broken?

2019-09-23 Thread Matthew Wilcox
Ping Jens? On Wed, Sep 18, 2019 at 08:49:49PM -0700, Matthew Wilcox wrote: > On Thu, Sep 19, 2019 at 10:33:10AM +0800, Lin Feng wrote: > > On 9/18/19 20:33, Michal Hocko wrote: > > > I absolutely agree here. From you changelog it is also not clear what is > > > the underlying problem. Both

Re: [PATCH V8 2/2] arm64/mm: Enable memory hot remove

2019-09-23 Thread Matthew Wilcox
On Mon, Sep 23, 2019 at 11:13:45AM +0530, Anshuman Khandual wrote: > +#ifdef CONFIG_MEMORY_HOTPLUG > +static void free_hotplug_page_range(struct page *page, size_t size) > +{ > + WARN_ON(!page || PageReserved(page)); WARN_ON(!page) isn't terribly useful. You're going to crash on the very

Re: [PATCH v1 0/3] mm/memory_hotplug: Export generic_online_page()

2019-09-23 Thread Michal Hocko
On Mon 23-09-19 11:31:30, David Hildenbrand wrote: > On 23.09.19 10:58, Michal Hocko wrote: > > On Fri 20-09-19 10:17:54, David Hildenbrand wrote: > >> On 09.09.19 13:48, David Hildenbrand wrote: > >>> Based on linux/next + "[PATCH 0/3] Remove __online_page_set_limits()" > >>> > >>> Let's replace

Re: [PATCH v7 10/21] RISC-V: KVM: Handle MMIO exits for VCPU

2019-09-23 Thread Paolo Bonzini
On 04/09/19 18:15, Anup Patel wrote: > + unsigned long guest_sstatus = > + vcpu->arch.guest_context.sstatus | SR_MXR; > + unsigned long guest_hstatus = > + vcpu->arch.guest_context.hstatus | HSTATUS_SPRV; > + unsigned long guest_vsstatus,

Re: pivot_root(".", ".") and the fchdir() dance

2019-09-23 Thread Michael Kerrisk (man-pages)
Hello Eric, On 9/15/19 8:17 PM, Eric W. Biederman wrote: > "Michael Kerrisk (man-pages)" writes: > >> Hello Eric, >> >> On 9/11/19 1:06 AM, Eric W. Biederman wrote: >>> "Michael Kerrisk (man-pages)" writes: >>> Hello Christian, >> All: I plan to add the following text to the

Re: [PATCH] usb: hub add filter for device with specific VID

2019-09-23 Thread Greg Kroah-Hartman
On Mon, Sep 23, 2019 at 06:51:02PM +0800, Ran Wang wrote: > USB 2.0 Embedded Host PET Automated Test (CH6) 6.7.23 A-UUT "Unsupported > Device" Message require to stop enumerating device with VID=0x1a0a PID=0x0201 > and pop message to declare this device is not supported. Why is this a

Re: [PATCH] HID: core: clean up indentation issue

2019-09-23 Thread Jiri Kosina
On Sun, 22 Sep 2019, Colin King wrote: > From: Colin Ian King > > There is an if statement that is indented by one extra space, > fix this by removing the extraneous space. > > Signed-off-by: Colin Ian King > --- > drivers/hid/hid-core.c | 4 ++-- > 1 file changed, 2 insertions(+), 2

<    1   2   3   4   5   6   7   8   >