Re: [PATCH] usb: dwc3: gadget: fix miss isoc issue introduced by IRQ latency

2018-12-17 Thread Thinh Nguyen
Hi Zengtao, On 12/16/2018 5:45 PM, Zengtao (B) wrote: >> If it's a busy system, some times when we start an isoc transfer, >> the framenumber get from the event buffer may be already elasped, >> in this case, we will get all the packets dropped due to miss isoc. >> And we turn into

Re: [PATCH v17 18/23] platform/x86: Intel SGX driver

2018-12-17 Thread Dave Hansen
On 12/17/18 12:10 PM, Andy Lutomirski wrote: >> There's no 'struct page' for enclave memory as it stands. That means no >> page cache, and that means there's no 'struct address_space *mapping' in >> the first place. >> >> Basically, the choice was made a long time ago to have SGX's memory >> manag

[PATCH v4 0/9] Use vm_insert_range

2018-12-17 Thread Souptick Joarder
Previouly drivers have their own way of mapping range of kernel pages/memory into user vma and this was done by invoking vm_insert_page() within a loop. As this pattern is common across different drivers, it can be generalized by creating a new function and use it across the drivers. vm_insert_ra

[PATCH] Drivers: hv: vmbus: Check for ring when getting debug info

2018-12-17 Thread Dexuan Cui
fc96df16a1ce is good and can already fix the "return stack garbage" issue, but let's also improve hv_ringbuffer_get_debuginfo(), which would silently return stack garbage, if people forget to check channel->state or ring_info->ring_buffer, when using the function in the future. Having an error c

[PATCH v4 1/9] mm: Introduce new vm_insert_range API

2018-12-17 Thread Souptick Joarder
Previouly drivers have their own way of mapping range of kernel pages/memory into user vma and this was done by invoking vm_insert_page() within a loop. As this pattern is common across different drivers, it can be generalized by creating a new function and use it across the drivers. vm_insert_ra

[PATCH v4 2/9] arch/arm/mm/dma-mapping.c: Convert to use vm_insert_range

2018-12-17 Thread Souptick Joarder
Convert to use vm_insert_range() to map range of kernel memory to user vma. Signed-off-by: Souptick Joarder --- arch/arm/mm/dma-mapping.c | 21 +++-- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index 661fe48

[PATCH v4 3/9] drivers/firewire/core-iso.c: Convert to use vm_insert_range

2018-12-17 Thread Souptick Joarder
Convert to use vm_insert_range to map range of kernel memory to user vma. Signed-off-by: Souptick Joarder Reviewed-by: Matthew Wilcox --- drivers/firewire/core-iso.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/drivers/firewire/core-iso.c b/drivers/firewi

[PATCH v4 4/9] drm/rockchip/rockchip_drm_gem.c: Convert to use vm_insert_range

2018-12-17 Thread Souptick Joarder
Convert to use vm_insert_range() to map range of kernel memory to user vma. Signed-off-by: Souptick Joarder Tested-by: Heiko Stuebner Acked-by: Heiko Stuebner --- drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 19 ++- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git

[PATCH v4 5/9] drm/xen/xen_drm_front_gem.c: Convert to use vm_insert_range

2018-12-17 Thread Souptick Joarder
Convert to use vm_insert_range() to map range of kernel memory to user vma. Signed-off-by: Souptick Joarder Reviewed-by: Matthew Wilcox Reviewed-by: Oleksandr Andrushchenko --- drivers/gpu/drm/xen/xen_drm_front_gem.c | 20 ++-- 1 file changed, 6 insertions(+), 14 deletions(-)

[PATCH v4 6/9] iommu/dma-iommu.c: Convert to use vm_insert_range

2018-12-17 Thread Souptick Joarder
Convert to use vm_insert_range() to map range of kernel memory to user vma. Signed-off-by: Souptick Joarder Reviewed-by: Matthew Wilcox --- drivers/iommu/dma-iommu.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/iommu/dma-iommu.c b/drivers/iommu/dma-

Re: [PATCH RESEND] KEYS: fix parsing invalid pkey info string

2018-12-17 Thread Mimi Zohar
On Mon, 2018-12-17 at 11:06 -0800, Linus Torvalds wrote: > On Mon, Dec 17, 2018 at 10:49 AM Linus Torvalds > wrote: > > > > So the *simplest* fix would seem to be to literally remove all those > > "= -1" for the Opt_err initialization. Making the code smaller, > > simpler, and fixing the bug in t

Re: [PATCH v3 03/10] phy: Add MIPI D-PHY configuration options

2018-12-17 Thread sakari . ailus
Hi Maxime, On Mon, Dec 17, 2018 at 04:49:21PM +0100, Maxime Ripard wrote: > Hi Sakari, > > Thanks for your feedback. > > On Thu, Dec 13, 2018 at 10:49:28PM +0200, sakari.ai...@iki.fi wrote: > > > + /** > > > + * @lanes: > > > + * > > > + * Number of active data lanes used for the transmission

[PATCH v4 7/9] videobuf2/videobuf2-dma-sg.c: Convert to use vm_insert_range

2018-12-17 Thread Souptick Joarder
Convert to use vm_insert_range to map range of kernel memory to user vma. Signed-off-by: Souptick Joarder Reviewed-by: Matthew Wilcox Acked-by: Marek Szyprowski Acked-by: Mauro Carvalho Chehab --- drivers/media/common/videobuf2/videobuf2-dma-sg.c | 23 +++ 1 file changed,

Re: [PATCH v17 18/23] platform/x86: Intel SGX driver

2018-12-17 Thread Jarkko Sakkinen
On Mon, Dec 17, 2018 at 09:33:22PM +0200, Jarkko Sakkinen wrote: > On Mon, Dec 17, 2018 at 10:48:58AM -0800, Sean Christopherson wrote: > > On Mon, Dec 17, 2018 at 08:43:33PM +0200, Jarkko Sakkinen wrote: > > > On Mon, Dec 17, 2018 at 10:36:13AM -0800, Sean Christopherson wrote: > > > > I'm pretty

[PATCH v4 9/9] xen/privcmd-buf.c: Convert to use vm_insert_range

2018-12-17 Thread Souptick Joarder
Convert to use vm_insert_range() to map range of kernel memory to user vma. Signed-off-by: Souptick Joarder Reviewed-by: Matthew Wilcox Reviewed-by: Boris Ostrovsky --- drivers/xen/privcmd-buf.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/xen/privcmd-buf

[PATCH v4 8/9] xen/gntdev.c: Convert to use vm_insert_range

2018-12-17 Thread Souptick Joarder
Convert to use vm_insert_range() to map range of kernel memory to user vma. Signed-off-by: Souptick Joarder Reviewed-by: Matthew Wilcox Reviewed-by: Boris Ostrovsky --- drivers/xen/gntdev.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/xen/gntdev.c b/d

Re: [WIP PATCH 02/15] drm/dp_mst: Refactor drm_dp_update_payload_part1()

2018-12-17 Thread Wentland, Harry
On 2018-12-14 3:47 a.m., Daniel Vetter wrote: > On Thu, Dec 13, 2018 at 08:25:31PM -0500, Lyude Paul wrote: >> There should be no functional changes here > > Would be good to explain what you did refactor here, instead of me trying > to reconstruct it from the patch. Especially pre-coffee that hel

Re: [PATCH RESEND] KEYS: fix parsing invalid pkey info string

2018-12-17 Thread Mimi Zohar
On Mon, 2018-12-17 at 12:02 -0800, Linus Torvalds wrote: > Talking about the conflicting ones: Opt_hash checks that > Opt_policydigest isn't set. But Opt_policydigest doesn't check that > Opt_hash isn't set, so you can mix the two if you just do it in the > right order. > > But that's a separate b

Re: [PATCH RESEND] KEYS: fix parsing invalid pkey info string

2018-12-17 Thread Linus Torvalds
On Mon, Dec 17, 2018 at 12:21 PM Mimi Zohar wrote: > > It's being used for parsing and displaying the policy, which do need > to be in sync. Yes, but it needs a comment somewhere. Also, the way you use those enums as array indices also implies that for your case, Opt_err should definitely not be

Re: [PATCH] PCI/ASPM: Remove unused lists from struct pcie_link_state

2018-12-17 Thread Bjorn Helgaas
On Sun, Dec 09, 2018 at 04:45:50PM -0600, Frederick Lawler wrote: > ASPM does not make use of the children or link LIST_HEADs declared in > struct pcie_link_state and defined in alloc_pcie_link_state(). Therefore, > remove these lists. > > No functional change intended. > > Signed-off-by: Frederi

[PATCH 01/18] mfd: aat2870-core: Make it explicitly non-modular

2018-12-17 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_AAT2870_CORE drivers/mfd/Kconfig:bool "AnalogicTech AAT2870" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so that

[PATCH 02/18] mfd: adp5520: Make it explicitly non-modular

2018-12-17 Thread Paul Gortmaker
The Makefile/Kconfig currently controlling compilation of this code is: drivers/mfd/Makefile:obj-$(CONFIG_PMIC_ADP5520) += adp5520.o drivers/mfd/Kconfig:config PMIC_ADP5520 drivers/mfd/Kconfig:bool "Analog Devices ADP5520/01 MFD PMIC Core Support" ...meaning that it currently is not being bui

[PATCH 05/18] mfd: htc-i2cpld: Make it explicitly non-modular

2018-12-17 Thread Paul Gortmaker
The Kconfig for this option is currently: config HTC_I2CPLD bool "HTC I2C PLD chip support" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so that when reading the driver there is no doubt it is builtin-onl

[PATCH 04/18] mfd: db8500-prcmu: drop unused MODULE_ tags from non-modular code

2018-12-17 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_DB8500_PRCMU drivers/mfd/Kconfig:bool "ST-Ericsson DB8500 Power Reset Control Management Unit" ...meaning that it currently is not being built as a module by anyone. Lets remove the couple traces o

Re: [PATCH v8 4/4] clk: meson: add sub MMC clock controller driver

2018-12-17 Thread kbuild test robot
Hi Yixun, Thank you for the patch! Yet something to improve: [auto build test ERROR on clk/clk-next] [also build test ERROR on next-20181217] [cannot apply to v4.20-rc7] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https

[PATCH 07/18] mfd: rc5t583: Make it explicitly non-modular

2018-12-17 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_RC5T583 drivers/mfd/Kconfig:bool "Ricoh RC5T583 Power Management system device" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentiall

[PATCH 03/18] mfd: as3711: Make it explicitly non-modular

2018-12-17 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_AS3711 drivers/mfd/Kconfig:bool "AMS AS3711" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so that when reading th

[PATCH 08/18] mfd: sta2x11: drop unused MODULE_ tags from non-modular code

2018-12-17 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_STA2X11 drivers/mfd/Kconfig:bool "STMicroelectronics STA2X11" ...meaning that it currently is not being built as a module by anyone. Lets remove the couple traces of modular infrastructure use, so t

[PATCH 06/18] mfd: max8925-core: drop unused MODULE_ tags from non-modular code

2018-12-17 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_MAX8925 drivers/mfd/Kconfig:bool "Maxim Semiconductor MAX8925 PMIC Support" ...meaning that it currently is not being built as a module by anyone. Lets remove the couple traces of modular infrastruc

[PATCH 10/18] mfd: tps65090: Make it explicitly non-modular

2018-12-17 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_TPS65090 drivers/mfd/Kconfig:bool "TI TPS65090 Power Management chips" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphane

Re: [PATCH] Drivers: hv: vmbus: Return -EINVAL for the sys files for unopened channels

2018-12-17 Thread Stephen Hemminger
On Mon, 17 Dec 2018 18:44:12 + Dexuan Cui wrote: > > From: devel On Behalf Of > > Dexuan Cui > > Sent: Monday, December 17, 2018 10:31 AM > > > From: Stephen Hemminger > > > > > > The old code was risky because it would silently return stack garbage. > > > Having an error check in get_deb

[PATCH 09/18] mfd: syscon: Make it explicitly non-modular

2018-12-17 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_SYSCON drivers/mfd/Kconfig:bool "System Controller Register R/W Based on Regmap" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essential

[PATCH 13/18] mfd: wm831x-spi: Make it explicitly non-modular

2018-12-17 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_WM831X_SPI drivers/mfd/Kconfig:bool "Wolfson Microelectronics WM831x/2x PMICs with SPI" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is es

[PATCH 14/18] mfd: wm831x-i2c: Make it explicitly non-modular

2018-12-17 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_WM831X_I2C drivers/mfd/Kconfig:bool "Wolfson Microelectronics WM831x/2x PMICs with I2C" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is es

[PATCH 12/18] mfd: tps80031: Make it explicitly non-modular

2018-12-17 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_TPS80031 drivers/mfd/Kconfig:bool "TI TPS80031/TPS80032 Power Management chips" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentiall

[PATCH 11/18] mfd: tps65910: Make it explicitly non-modular

2018-12-17 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_TPS65910 drivers/mfd/Kconfig-bool "TI TPS65910 Power Management chip" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned

[PATCH 15/18] mfd: wm831x-core: drop unused module infrastructure from non-modular code

2018-12-17 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_WM831X drivers/mfd/Kconfig:bool ...meaning that it currently is not being built as a module by anyone. Lets remove the couple traces of modular infrastructure use, so that when reading the driver th

[PATCH v4 00/18] mfd: demodularization of non-modular drivers

2018-12-17 Thread Paul Gortmaker
[v3 --> v4: delete now unused exit fcn from wm835x core; add more acks now all in chrono order, re-test.] [v2 --> v3: drop diasemi commits as they will be modularized; delete now unused exit fcn from wm831x core; add more acks; re-test.] [v1 --> v2: add some more commits as requested by Lee (MF

[PATCH] iio: chemical: sps30: add support for self cleaning

2018-12-17 Thread Tomasz Duszynski
Self cleaning is especially useful in cases where sensor undergoes frequent power on/off cycles. In such scenarios it is recommended to turn self cleaning at least once per week in order to maintain reliable measurements. Self cleaning is activated by writing 1 to a dedicated attribute. Internal f

[PATCH 17/18] mfd: wm8350-core: drop unused module infrastructure from non-modular code

2018-12-17 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_WM8350 drivers/mfd/Kconfig:bool ...meaning that it currently is not being built as a module by anyone. Lets remove the couple traces of modular infrastructure use, so that when reading the driver th

[PATCH 18/18] mfd: wm8400-core: Make it explicitly non-modular

2018-12-17 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_WM8400 drivers/mfd/Kconfig:bool "Wolfson Microelectronics WM8400" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so

[PATCH 16/18] mfd: wm8350-i2c: Make it explicitly non-modular

2018-12-17 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/mfd/Kconfig:config MFD_WM8350_I2C drivers/mfd/Kconfig:bool "Wolfson Microelectronics WM8350 with I2C" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially

Re: [PATCH v13 19/25] kasan: add hooks implementation for tag-based mode

2018-12-17 Thread Andrew Morton
On Mon, 17 Dec 2018 20:33:42 +0100 Andrey Konovalov wrote: > > Curiosity, did you try your patches with SLUB red zoning enabled? > > Since the area used for the Redzone is just after the payload, aligning the > > object_size independently from the allocator could have side effects, at > > least

Re: linux-next: Signed-off-by missing for commit in the v4l-dvb-next tree

2018-12-17 Thread Mauro Carvalho Chehab
Em Sun, 16 Dec 2018 17:23:39 +1100 Stephen Rothwell escreveu: > Hi Mauro, > > Commit > > 7ab9b77a9410 ("media: staging/intel-ipu3: Add dual pipe support") > > is missing a Signed-off-by from its author. The original author sent his SOB. I rebased the topic branch in order to contain it. Th

Re: [PATCH v13 1/2] dt-bindings: cpufreq: Introduce QCOM CPUFREQ Firmware bindings

2018-12-17 Thread Rob Herring
On Thu, Dec 13, 2018 at 09:32:59PM -0800, Stephen Boyd wrote: > Quoting Taniya Das (2018-12-13 20:10:23) > > Add QCOM cpufreq firmware device bindings for Qualcomm Technology Inc's > > SoCs. This is required for managing the cpu frequency transitions which are > > controlled by the hardware engine.

Re: [PATCH v13 1/2] dt-bindings: cpufreq: Introduce QCOM CPUFREQ Firmware bindings

2018-12-17 Thread Rob Herring
On Fri, 14 Dec 2018 09:40:23 +0530, Taniya Das wrote: > Add QCOM cpufreq firmware device bindings for Qualcomm Technology Inc's > SoCs. This is required for managing the cpu frequency transitions which are > controlled by the hardware engine. > > Signed-off-by: Taniya Das > --- > .../bindings/cp

Re: [PATCH 6/7] sctp: Convert to genradix

2018-12-17 Thread Andrew Morton
On Mon, 17 Dec 2018 08:19:28 -0500 Kent Overstreet wrote: > @@ -535,9 +470,6 @@ int sctp_send_add_streams(struct sctp_association *asoc, > goto out; > } > > - stream->incnt = incnt; > - stream->outcnt = outcnt; > - > asoc->strreset_outstanding = !!out + !!in;

Re: [RFC] locking/rwsem: Avoid issuing wakeup before setting the reader waiter to nil

2018-12-17 Thread Davidlohr Bueso
On Mon, 17 Dec 2018, Peter Zijlstra wrote: I've put some patches here: git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/core Could you have a look? So how about the following to reduce some of the performance penalty (at the cost of more complexity)? Thanks, Davidlohr

Re: [PATCH 4.4 00/88] 4.4.168-stable review

2018-12-17 Thread Greg Kroah-Hartman
On Mon, Dec 17, 2018 at 12:12:09PM -0800, Guenter Roeck wrote: > On Mon, Dec 17, 2018 at 08:08:34PM +0100, Greg Kroah-Hartman wrote: > > > > > > v4.4.167-89-g9c558d7fe359 seemed to be happy. v4.4.167-89-g50a0280f2f7e > > > replaced it and will take a while. > > > > If I read your site right, it p

Re: [PATCH 1/2] mm: introduce put_user_page*(), placeholder versions

2018-12-17 Thread Jerome Glisse
On Mon, Dec 17, 2018 at 11:59:22AM -0800, Matthew Wilcox wrote: > On Mon, Dec 17, 2018 at 02:54:08PM -0500, Jerome Glisse wrote: > > On Mon, Dec 17, 2018 at 11:51:51AM -0800, Matthew Wilcox wrote: > > > On Mon, Dec 17, 2018 at 02:48:00PM -0500, Jerome Glisse wrote: > > > > On Mon, Dec 17, 2018 at 1

Re: objtool warnings for kernel/trace/trace_selftest_dynamic.o

2018-12-17 Thread Andi Kleen
On Mon, Dec 17, 2018 at 08:29:38PM +0100, Peter Zijlstra wrote: > On Mon, Dec 17, 2018 at 12:16:38PM -0600, Josh Poimboeuf wrote: > > > > Yes LTO causes the to be treated like static functions. > > > > > > I guess noclone is unlikely to be really needed here because these > > > functions are unli

Re: [PATCH 6/7] sctp: Convert to genradix

2018-12-17 Thread Marcelo Ricardo Leitner
On Mon, Dec 17, 2018 at 12:50:01PM -0800, Andrew Morton wrote: > On Mon, 17 Dec 2018 08:19:28 -0500 Kent Overstreet > wrote: > > > @@ -535,9 +470,6 @@ int sctp_send_add_streams(struct sctp_association *asoc, > > goto out; > > } > > > > - stream->incnt = incnt; > > - stream-

Re: [PATCH 6/7] sctp: Convert to genradix

2018-12-17 Thread Kent Overstreet
On Mon, Dec 17, 2018 at 12:50:01PM -0800, Andrew Morton wrote: > On Mon, 17 Dec 2018 08:19:28 -0500 Kent Overstreet > wrote: > > > @@ -535,9 +470,6 @@ int sctp_send_add_streams(struct sctp_association *asoc, > > goto out; > > } > > > > - stream->incnt = incnt; > > - stream-

[PATCH] media: uvcvideo: Fix 'type' check leading to overflow

2018-12-17 Thread Alistair Strachan
When initially testing the Camera Terminal Descriptor wTerminalType field (buffer[4]), no mask is used. Later in the function, the MSB is overloaded to store the descriptor subtype, and so a mask of 0x7fff is used to check the type. If a descriptor is specially crafted to set this overloaded bit i

Re: [PATCH] bpf: promote bpf_perf_event.h to mandatory UAPI header

2018-12-17 Thread Daniel Borkmann
On 12/16/2018 04:04 PM, Masahiro Yamada wrote: > Since commit c895f6f703ad ("bpf: correct broken uapi for > BPF_PROG_TYPE_PERF_EVENT program type"), all architectures > (except um) are required to have bpf_perf_event.h in uapi/asm. > > Add it to mandatory-y so "make headers_install" can check it.

Re: objtool warnings for kernel/trace/trace_selftest_dynamic.o

2018-12-17 Thread Andi Kleen
> > That seems weird. > > > > Are you sure it's not just because they are empty? AFAIK > > gcc doesn't necessarily generate frame pointers for empty functions. > > I suspected that it was because they're empty, however I didn't see this > warning for other leaf functions. The sancov plugin is p

Re: [PATCH 1/2] mm: introduce put_user_page*(), placeholder versions

2018-12-17 Thread Matthew Wilcox
On Mon, Dec 17, 2018 at 03:55:01PM -0500, Jerome Glisse wrote: > On Mon, Dec 17, 2018 at 11:59:22AM -0800, Matthew Wilcox wrote: > > On Mon, Dec 17, 2018 at 02:54:08PM -0500, Jerome Glisse wrote: > > > On Mon, Dec 17, 2018 at 11:51:51AM -0800, Matthew Wilcox wrote: > > > > On Mon, Dec 17, 2018 at 0

Re: [PATCH] printk: Add caller information to printk() output.

2018-12-17 Thread Tetsuo Handa
On 2018/12/17 23:54, Petr Mladek wrote: > On Thu 2018-12-13 21:42:55, Sergey Senozhatsky wrote: >> On (12/13/18 13:18), Petr Mladek wrote: Sometimes we want to print a series of printk() messages to consoles without being disturbed by concurrent printk() from interrupts and/or other

Re: [PATCH v8 03/26] dt-bindings: Add doc for the Ingenic TCU drivers

2018-12-17 Thread Rob Herring
On Wed, Dec 12, 2018 at 11:08:58PM +0100, Paul Cercueil wrote: > Add documentation about how to properly use the Ingenic TCU > (Timer/Counter Unit) drivers from devicetree. > > Signed-off-by: Paul Cercueil > --- > > Notes: > v4: New patch in this series. Corresponds to V2 patches 3-4-5 with

Re: [PATCH 0/1] RFC: Revamp admin-guide/tainted-kernels.rst to make it more comprehensible

2018-12-17 Thread Randy Dunlap
On 12/17/18 10:24 AM, Jonathan Corbet wrote: > Here's an idea if you feel like improving this: rather than putting an > inscrutable program inline, add a taint_status script to scripts/ that > prints out the status in fully human-readable form, with the explanation > for every set bit. And some p

Linux 4.4.168

2018-12-17 Thread Greg KH
I'm announcing the release of the 4.4.168 kernel. All users of the 4.4 kernel series must upgrade. The updated 4.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.4.y and can be browsed at the normal kernel.org git web browser:

Re: [PATCH v7 02/10] dt-bindings: power: Add qcom rpm power domain driver bindings

2018-12-17 Thread Rob Herring
On Wed, Dec 12, 2018 at 02:51:23PM +0530, Rajendra Nayak wrote: > Add DT bindings to describe the rpm/rpmh power domains found on Qualcomm > Technologies, Inc. SoCs. These power domains communicate a performance > state to RPM/RPMh, which then translates it into corresponding voltage on a > PMIC ra

Re: [PATCH] scripts/tags: Add more declarations

2018-12-17 Thread Matthew Wilcox
On Mon, Dec 17, 2018 at 03:41:46PM +0300, Kirill Tkhai wrote: > - '/\ + > '/\ '/\

Re: [PATCH 1/1] docs: Revamp tainted-kernels.rst to make it more comprehensible

2018-12-17 Thread Randy Dunlap
On 12/17/18 7:20 AM, Thorsten Leemhuis wrote: > > Signed-off-by: Thorsten Leemhuis > --- > Documentation/admin-guide/tainted-kernels.rst | 105 -- > 1 file changed, 96 insertions(+), 9 deletions(-) > > diff --git a/Documentation/admin-guide/tainted-kernels.rst > b/Documentation

Re: [PATCH 1/2] mm: introduce put_user_page*(), placeholder versions

2018-12-17 Thread Jerome Glisse
On Mon, Dec 17, 2018 at 01:03:58PM -0800, Matthew Wilcox wrote: > On Mon, Dec 17, 2018 at 03:55:01PM -0500, Jerome Glisse wrote: > > On Mon, Dec 17, 2018 at 11:59:22AM -0800, Matthew Wilcox wrote: > > > On Mon, Dec 17, 2018 at 02:54:08PM -0500, Jerome Glisse wrote: > > > > On Mon, Dec 17, 2018 at 1

Re: [RFC v2 1/2] pwm: sifive: Add DT documentation for SiFive PWM Controller

2018-12-17 Thread Uwe Kleine-König
On Fri, Dec 14, 2018 at 11:50:41AM +0530, Yash Shah wrote: > DT documentation for PWM controller added with updated compatible > string. > > Signed-off-by: Wesley W. Terpstra > [Atish: Compatible string update] > Signed-off-by: Atish Patra > Signed-off-by: Yash Shah > --- > .../devicetree/bind

<<>

2018-12-17 Thread Mr Owen Peter
Good Day, Hope you are doing great Today.I have a proposed BUSINESS DEAL that will benefit both parties. This is legitimate,legal and your personality will not be compromised.Please Reply to me ONLY if you are interested and consider your self capable for details. Sincerely, Peter OWEN

[PATCH] ima: define ima_create_tmpfile() hook and add missing call

2018-12-17 Thread Mimi Zohar
If tmpfiles can be made persistent, then newly created tmpfiles need to be treated like any other new files in policy. This patch indicates which newly created tmpfiles are in policy, causing the file hash to be calculated on __fput(). Reported-by: Ignaz Forster Signed-off-by: Mimi Zohar --- f

Re: linux-next: manual merge of the net-next tree with the net tree

2018-12-17 Thread Saeed Mahameed
On Sun, Dec 16, 2018 at 4:25 PM Stephen Rothwell wrote: > > Hi all, > > Today's linux-next merge of the net-next tree got a conflict in: > > drivers/net/ethernet/mellanox/mlx5/core/en_tc.c > > between commit: > > 154e62abe9cd ("net/mlx5e: Properly initialize flow attributes for slow path > es

Re: [PATCH 4/4] arm64: dts: exynos: Add Bluetooth chip to TM2(e) boards

2018-12-17 Thread Krzysztof Kozlowski
On Fri, Dec 14, 2018 at 12:34:10PM +0100, Marek Szyprowski wrote: > TM2(e) boards have a Broadcom Bluetooth chip connected to 3rd UART port. > Add a device tree node describing it and its resources (control GPIO lines > and clock). > > Signed-off-by: Marek Szyprowski > --- > .../boot/dts/exynos/

Re: linux-next: manual merge of the rdma tree with the net tree

2018-12-17 Thread Saeed Mahameed
On Sun, Dec 16, 2018 at 4:08 PM Stephen Rothwell wrote: > > Hi all, > > Today's linux-next merge of the rdma tree got a conflict in: > > include/linux/mlx5/mlx5_ifc.h > > between commit: > > 663f146f2ecf ("net/mlx5: E-Switch, Fix fdb cap bits swap") > > from the net tree and commit: > > c74d

Re: [PATCH v4 1/3] dt-bindings: mtd: stm32_fmc2: add STM32 FMC2 NAND controller documentation

2018-12-17 Thread Rob Herring
On Fri, Dec 14, 2018 at 10:58:06AM +0100, Christophe Kerello wrote: > This patch adds the documentation of the device tree bindings for the STM32 > FMC2 NAND controller. > > Signed-off-by: Christophe Kerello > --- > .../devicetree/bindings/mtd/stm32-fmc2-nand.txt| 61 > +

Re: [PATCH v3] block: fix blk-iolatency accounting underflow

2018-12-17 Thread Dennis Zhou
On Mon, Dec 17, 2018 at 11:42:28AM -0800, Liu Bo wrote: > On Mon, Dec 17, 2018 at 8:04 AM Dennis Zhou wrote: > > > > The blk-iolatency controller measures the time from rq_qos_throttle() to > > rq_qos_done_bio() and attributes this time to the first bio that needs > > to create the request. This m

[PATCH v5 00/15] locking/lockdep: Add support for dynamic keys

2018-12-17 Thread Bart Van Assche
Hi Peter and Ingo, A known shortcoming of the current lockdep implementation is that it requires lock keys to be allocated statically. This forces certain unrelated synchronization objects to share keys and this key sharing can cause false positive deadlock reports. This patch series adds support

[PATCH v5 02/15] locking/lockdep: Make zap_class() remove all matching lock order entries

2018-12-17 Thread Bart Van Assche
Make sure that all lock order entries that refer to a class are removed from the list_entries[] array when a kernel module is unloaded. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- include/linux/lockdep.h | 1 + kernel/locking/lockdep.c | 19 ++

[PATCH v5 03/15] locking/lockdep: Reorder struct lock_class members

2018-12-17 Thread Bart Van Assche
This patch does not change any functionality but makes the patch that frees lock classes that are no longer in use easier to read. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- include/linux/lockdep.h | 14 +++--- 1 file changed, 7 insertions(

[PATCH v5 12/15] locking/lockdep: Verify whether lock objects are small enough to be used as class keys

2018-12-17 Thread Bart Van Assche
Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c index d411660572e1..1eb03a29f2c2 100644 --- a/kernel/locking/loc

[PATCH v5 14/15] kernel/workqueue: Use dynamic lockdep keys for workqueues

2018-12-17 Thread Bart Van Assche
Commit 87915adc3f0a ("workqueue: re-add lockdep dependencies for flushing") improved deadlock checking in the workqueue implementation. Unfortunately that patch also introduced a few false positive lockdep complaints. This patch suppresses these false positives by allocating the workqueue mutex loc

[PATCH v5 04/15] locking/lockdep: Initialize the locks_before and locks_after lists earlier

2018-12-17 Thread Bart Van Assche
This patch does not change any functionality. A later patch will reuse lock classes that have been freed. In combination with that patch this patch wil have the effect of initializing lock class order lists once instead of every time a lock class structure is reinitialized. Cc: Peter Zijlstra Cc:

Re: objtool warnings for kernel/trace/trace_selftest_dynamic.o

2018-12-17 Thread Josh Poimboeuf
On Mon, Dec 17, 2018 at 08:29:38PM +0100, Peter Zijlstra wrote: > On Mon, Dec 17, 2018 at 12:16:38PM -0600, Josh Poimboeuf wrote: > > > > Yes LTO causes the to be treated like static functions. > > > > > > I guess noclone is unlikely to be really needed here because these > > > functions are unli

[PATCH v5 13/15] locking/lockdep: Add support for dynamic keys

2018-12-17 Thread Bart Van Assche
A shortcoming of the current lockdep implementation is that it requires lock keys to be allocated statically. That forces certain lock objects to share lock keys. Since lock dependency analysis groups lock objects per key sharing lock keys can cause false positive lockdep reports. Make it possible

[PATCH v5 08/15] locking/lockdep: Reuse list entries that are no longer in use

2018-12-17 Thread Bart Van Assche
Instead of abandoning elements of list_entries[] that are no longer in use, make alloc_list_entry() reuse array elements that have been freed. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 33 +++-

[PATCH v5 05/15] locking/lockdep: Split lockdep_free_key_range() and lockdep_reset_lock()

2018-12-17 Thread Bart Van Assche
This patch does not change the behavior of these functions but makes the patch that frees unused lock classes easier to read. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 74 +--- 1 file

[PATCH v5 10/15] locking/lockdep: Reuse lock chains that have been freed

2018-12-17 Thread Bart Van Assche
A previous patch introduced a lock chain leak. Fix that leak by reusing lock chains that have been freed. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 61 ++-- 1 file changed, 33 insertio

[PATCH v5 11/15] locking/lockdep: Check data structure consistency

2018-12-17 Thread Bart Van Assche
Debugging lockdep data structure inconsistencies is challenging. Add disabled code that verifies data structure consistency at runtime. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 183 ++

[PATCH v5 06/15] locking/lockdep: Make it easy to detect whether or not inside a selftest

2018-12-17 Thread Bart Van Assche
The patch that frees unused lock classes will modify the behavior of lockdep_free_key_range() and lockdep_reset_lock() depending on whether or not these functions are called from the context of the lockdep selftests. Hence make it easy to detect whether or not lockdep code is called from the contex

Re: [PATCH 03/11] staging: iio: adt7316: fix dac_bits assignment

2018-12-17 Thread Jeremy Fertic
On Sun, Dec 16, 2018 at 11:37:56AM +, Jonathan Cameron wrote: > On Tue, 11 Dec 2018 17:54:55 -0700 > Jeremy Fertic wrote: > > > The only assignment to dac_bits is in adt7316_store_da_high_resolution(). > > This function enables or disables 10 bit dac resolution for the adt7316/7 > > and adt75

[PATCH v5 15/15] lockdep tests: Test dynamic key registration

2018-12-17 Thread Bart Van Assche
Make sure that the lockdep_register_key() and lockdep_unregister_key() code is tested when running the lockdep tests. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- tools/lib/lockdep/include/liblockdep/common.h | 2 ++ tools/lib/lockdep/include/libloc

[PATCH v5 01/15] locking/lockdep: Fix required memory size reported if CONFIG_PROVE_LOCKING=n

2018-12-17 Thread Bart Van Assche
Lock chains are only tracked with CONFIG_PROVE_LOCKING=y. Do not report the memory required for the lock chain array if CONFIG_PROVE_LOCKING=n. Fixes: ca58abcb4a6d ("lockdep: sanitise CONFIG_PROVE_LOCKING") # v2.6.23 Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van A

[PATCH v5 09/15] locking/lockdep: Introduce lockdep_next_lockchain() and lock_chain_count()

2018-12-17 Thread Bart Van Assche
This patch does not change any functionality but makes the next patch in this series easier to read. Cc: Peter Zijlstra Cc: Waiman Long Cc: Johannes Berg Signed-off-by: Bart Van Assche --- kernel/locking/lockdep.c | 16 +++- kernel/locking/lockdep_internals.h | 3 ++- k

Re: [PATCH v5 1/2] dt-bindings: panel: Add Sitronix ST7701 panel documentation

2018-12-17 Thread Rob Herring
On Tue, 11 Dec 2018 21:13:57 +0530, Jagan Teki wrote: > Techstar TS8550B MIPI DSI panel is 480x854, 2-lane MIPI DSI LCD panel > with inbuilt ST7701 chip. > > The default regulator names in ST7701 chip is renamed in Techstar TS8550B > so, add specific binding names for them. > > Signed-off-by: Jag

[PATCH v5 07/15] locking/lockdep: Free lock classes that are no longer in use

2018-12-17 Thread Bart Van Assche
Instead of leaving lock classes that are no longer in use in the lock_classes array, reuse entries from that array that are no longer in use. Maintain a linked list of free lock classes with list head 'free_lock_class'. Initialize that list from inside register_lock_class() instead of from inside l

Re: [PATCH v2 03/12] PCI: aardvark: Add PHY support

2018-12-17 Thread Marek Behun
Miquel, I tried the patches and they are working, with the exception of Compex WLE900X card, but we know that this card is problematic. I am interesting if there is a known way to turn of the comphy on A3720, or at least change the SGMII mode from 1Gbps to 2.5Gbps and back. Marvell documentation d

Re: [PATCH -next] drm/shmob: Fix return value check in shmob_drm_probe

2018-12-17 Thread Laurent Pinchart
Hi Yue, Thank you for the patch. On Monday, 17 December 2018 11:18:30 EET YueHaibing wrote: > In case of error, the function devm_ioremap_resource() returns ERR_PTR() > and never returns NULL. The NULL test in the return value check should > be replaced with IS_ERR(). > > Fixes: 8f1597c8f1a5 ("d

Re: [PATCH] scripts: add a tool to produce a compile_commands.json file

2018-12-17 Thread Tom Roeder
On Sat, Dec 15, 2018 at 06:37:49PM +0900, Masahiro Yamada wrote: > On Fri, Dec 7, 2018 at 7:24 AM Tom Roeder wrote: > > > > The LLVM/Clang project provides many tools for analyzing C source code. > > Many of these tools are based on LibTooling > > (https://clang.llvm.org/docs/LibTooling.html), whi

Re: [-next] strace tests fail because of "y2038: socket: Add compat_sys_recvmmsg_time64"

2018-12-17 Thread Arnd Bergmann
On Mon, Dec 17, 2018 at 2:06 PM Heiko Carstens wrote: > > Hi Arnd, > > in linux-next as of today 16 strace self tests fail on s390. I could > bisect this to b136972b063b ("y2038: socket: Add compat_sys_recvmmsg_time64"). > > The following tests fail: Hi Heiko, Thanks for the report and sorry I b

[PATCH] lib/rhashtable: Fix work initialization in rhashtable_init()

2018-12-17 Thread Bart Van Assche
The test_insert_dup() function from lib/test_rhashtable.c passes a pointer to a stack object to rhltable_init(). Avoid that the following is reported with object debugging enabled while running the selftest from lib/test_rhashtable.c: ODEBUG: object (ptrval) is on stack (ptrval), but NOT annotated

Re: [PATCH V5 1/2] dt-bindings: iio: accel: mma8452: add power supplies property

2018-12-17 Thread Rob Herring
On Mon, 17 Dec 2018 05:22:49 +, Anson Huang wrote: > The accelerometer's power supplies could be controllable on some > platforms, add property "vdd/vddio" power supply to let device tree > to pass phandles to the regulators to driver. > > Signed-off-by: Anson Huang > --- > Documentation/dev

Re: A weird problem of Realtek r8168 after resume from S3

2018-12-17 Thread Heiner Kallweit
On 17.12.2018 14:25, Chris Chiu wrote: > On Fri, Dec 14, 2018 at 3:37 PM Heiner Kallweit wrote: >> >> On 14.12.2018 04:33, Chris Chiu wrote: >>> On Thu, Dec 13, 2018 at 10:20 AM Chris Chiu wrote: Hi, We got an acer laptop which has a problem with ethernet networking after

Re: [PATCH v4 1/2] dt-bindings: arm: atmel: describe SECUMOD usage as a GPIO controller

2018-12-17 Thread Rob Herring
On Wed, 12 Dec 2018 11:57:11 +, wrote: > This patch describes the Security Module's usage as a GPIO > controller for its PIOBU pins. These pins have the special > property of maintaining their voltage during suspend-to-mem. > > Signed-off-by: Andrei Stefanescu > --- > Documentation/devicetr

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