Re: [PATCH] USB: pl2303: add ids for Hewlett-Packard HP POS pole displays

2018-12-18 Thread Johan Hovold
On Thu, Dec 13, 2018 at 06:01:47AM -0500, Scott Chen wrote: > Add device ids to pl2303 for the HP POS pole displays: > LM920: 03f0:026b > TD620: 03f0:0956 > LD960TA: 03f0:4439 > LD220TA: 03f0:4349 > LM940: 03f0:5039 > > Signed-off-by: Scott Chen Applied for -next, thanks. Johan

Re: [PATCH v2] lzo: fix ip overrun during compress.

2018-12-18 Thread Yueyi Li
Hi Markus & Kees, On 2018/12/17 0:56, Markus F.X.J. Oberhumer wrote: > Yueyi, > > if ASLR does indeed exclude the last page (like it should), how do > you get the invalid (0xf000, 4096) mapping then? Regarding following code, seems ASLR is align to ARM64_MEMSTART_ALIGN,I don`t think

[PATCH V4 2/3] misc/pvpanic : add pci interface for pvpanic

2018-12-18 Thread Peng Hao
Support pvpanic as a pci device in guest kernel. Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 72 -- 1 file changed, 70 insertions(+), 2 deletions(-) diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c index f84ed30..c30bf62

[PATCH V4 1/3] misc/pvpanic: return 0 for empty body register function

2018-12-18 Thread Peng Hao
Return 0 for empty body register function normally. Signed-off-by: Peng Hao --- QEMU community requires additional PCI devices to simulate PVPANIC devices so that some architectures can not occupy precious less than 4G of memory space. drivers/misc/pvpanic.c | 2 +- 1 file changed, 1

[PATCH V4 3/3] misc/pvpanic : add pci dependency in Kconfig

2018-12-18 Thread Peng Hao
Add PCI dependency for pvpanic in Kconfig. Signed-off-by: Peng Hao --- drivers/misc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index f417b06..5ff8ca4 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig @@

[PATCH] mm: do not report isolation failures for CMA pages

2018-12-18 Thread Michal Hocko
From: Michal Hocko Heiko has complained that his log is swamped by warnings from has_unmovable_pages [ 20.536664] page dumped because: has_unmovable_pages [ 20.536792] page:03d081ff4080 count:1 mapcount:0 mapping:8ff88600 index:0x0 compound_mapcount: 0 [ 20.536794] flags:

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

2018-12-18 Thread Miroslav Benes
On Mon, 17 Dec 2018, Josh Poimboeuf wrote: > On Mon, Dec 17, 2018 at 04:06:18PM -0800, Andi Kleen wrote: > > On Mon, Dec 17, 2018 at 05:36:44PM -0500, Steven Rostedt wrote: > > > On Mon, 17 Dec 2018 15:31:26 -0600 > > > Josh Poimboeuf wrote: > > > > > > > On Mon, Dec 17, 2018 at 08:29:38PM

Re: linux-next: Tree for Dec 17 (regulator/mcp16502.c)

2018-12-18 Thread Andrei.Stefanescu
Hi Randy, Thank you for the email. The error should be fixed with this patch [1]. Best regards, Andrei [1] - http://lists.infradead.org/pipermail/linux-arm-kernel/2018-December/621292.html On 17.12.2018 18:03, Randy Dunlap wrote: > On 12/17/18 3:09 AM, Stephen Rothwell wrote: >> Hi all, >> >>

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

2018-12-18 Thread Jan Kara
On Mon 17-12-18 10:34:43, Matthew Wilcox wrote: > On Mon, Dec 17, 2018 at 01:11:50PM -0500, Jerome Glisse wrote: > > On Mon, Dec 17, 2018 at 08:58:19AM +1100, Dave Chinner wrote: > > > Sure, that's a possibility, but that doesn't close off any race > > > conditions because there can be DMA into

Re: [patch] futex: Cure exit race

2018-12-18 Thread Thomas Gleixner
On Wed, 12 Dec 2018, Peter Zijlstra wrote: > On Mon, Dec 10, 2018 at 06:43:51PM +0100, Thomas Gleixner wrote: > @@ -806,6 +806,8 @@ void __noreturn do_exit(long code) >* task into the wait for ever nirwana as well. >*/ > tsk->flags |= PF_EXITPIDONE; >

Re: [PATCH v2 1/1] xen/blkback: rework connect_ring() to avoid inconsistent xenstore 'ring-page-order' set by malicious blkfront

2018-12-18 Thread Roger Pau Monné
On Tue, Dec 18, 2018 at 08:55:38AM +0800, Dongli Zhang wrote: > The xenstore 'ring-page-order' is used globally for each blkback queue and > therefore should be read from xenstore only once. However, it is obtained > in read_per_ring_refs() which might be called multiple times during the >

Re: [PATCH v2 3/3] sched/fair: fix unnecessary increase of balance interval

2018-12-18 Thread Vincent Guittot
Hi Valentin, On Mon, 17 Dec 2018 at 17:56, Valentin Schneider wrote: > > Hi Vincent, > > About time I had a look at this one... > > On 14/12/2018 16:01, Vincent Guittot wrote: > > In case of active balance, we increase the balance interval to cover > > pinned tasks cases not covered by

Re: [GIT PULL] cpupower update for Linux 4.21-rc1

2018-12-18 Thread Rafael J. Wysocki
Hi Shuah, On Mon, Dec 17, 2018 at 6:42 PM shuah wrote: > > Hi Rafael, > > Please pull the following cpupower update for Linux 4.21-rc1. > > This cpupower update Linux 4.21 adds support for auto-completion for > cpupower tool from Abhishek Goel. > > diff is attached. Pulled, thank you!

Re: Question: pause mode disabled for marvell 88e151x phy

2018-12-18 Thread Yunsheng Lin
On 2018/12/17 22:36, Russell King - ARM Linux wrote: > On Mon, Dec 17, 2018 at 05:42:20PM +0800, Yunsheng Lin wrote: >> On 2018/12/15 18:37, Russell King - ARM Linux wrote: >>> On Sat, Dec 15, 2018 at 04:07:42PM +0800, Yunsheng Lin wrote: There seems to be some problem with pause subsequent

Re: [PATCH v3 3/3] PCI: imx6: Add support for i.MX8MQ

2018-12-18 Thread Leonard Crestez
On Mon, 2018-12-17 at 20:07 -0800, Andrey Smirnov wrote: > Add code needed to support i.MX8MQ variant. > static void imx6_pcie_init_phy(struct imx6_pcie *imx6_pcie) > { > + > + Remove empty lines? > + unsigned int mask, val, offset; > + > + mask = IMX6Q_GPR12_DEVICE_TYPE; > + val

Re: [PATCH][resend] drm: dw-hdmi-i2s: convert to SPDX identifiers

2018-12-18 Thread Daniel Vetter
On Tue, Dec 18, 2018 at 7:47 AM Laurent Pinchart wrote: > > Hi Morimoto-san, > > Thank you for the patch. > > On Tuesday, 18 December 2018 08:00:24 EET Kuninori Morimoto wrote: > > From: Kuninori Morimoto > > > > This patch updates license to use SPDX-License-Identifier > > instead of verbose

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

2018-12-18 Thread Russell King - ARM Linux
On Tue, Dec 18, 2018 at 01:52:09AM +0530, Souptick Joarder wrote: > 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(-)

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

2018-12-18 Thread Laurent Pinchart
Hi Alistair, Thank you for the patch. On Monday, 17 December 2018 23:02:22 EET Alistair Strachan wrote: > 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

Re: [Xen-devel] [PATCH v2 1/1] xen/blkback: rework connect_ring() to avoid inconsistent xenstore 'ring-page-order' set by malicious blkfront

2018-12-18 Thread Roger Pau Monné
On Tue, Dec 18, 2018 at 10:33:00AM +0100, Roger Pau Monné wrote: > On Tue, Dec 18, 2018 at 08:55:38AM +0800, Dongli Zhang wrote: > > + for (i = 0; i < nr_grefs; i++) { > > + char ring_ref_name[RINGREF_NAME_LEN]; > > + > > + snprintf(ring_ref_name, RINGREF_NAME_LEN,

Re: [PATCH v5 2/2] media: usb: pwc: Don't use coherent DMA buffers for ISO transfer

2018-12-18 Thread Tomasz Figa
On Tue, Dec 18, 2018 at 4:38 PM Christoph Hellwig wrote: > > On Tue, Dec 18, 2018 at 04:22:43PM +0900, Tomasz Figa wrote: > > It kind of limits the usability of this API, since it enforces > > contiguous allocations even for big sizes even for devices behind > > IOMMU (contrary to the case when

Re: [RFT][PATCH 0/2] ACPI / PM: Avoid spurious wakeups from non-wakeup GPEs in suspend-to-idle

2018-12-18 Thread Rafael J. Wysocki
On Mon, Dec 17, 2018 at 5:50 PM Mika Westerberg wrote: > > On Mon, Dec 17, 2018 at 12:19:27PM +0100, Rafael J. Wysocki wrote: > > Hi All, > > Hi Rafael, > > > It turns out that on some systems non-wakeup GPEs cause trouble (see the > > changelog of patch [1/2]), so they better should be disabled

Re: [PATCH] Fix mm->owner point to a tsk that has been free

2018-12-18 Thread Michal Hocko
On Tue 18-12-18 13:24:44, gchen.guo...@gmail.com wrote: > From: guomin chen > > When mm->owner is modified by exit_mm, if the new owner directly calls > unuse_mm to exit, it will cause Use-After-Free. Due to the unuse_mm() > directly sets tsk->mm=NULL. > > Under normal circumstances,When

Re: [PATCH][resend] drm: dw-hdmi-i2s: convert to SPDX identifiers

2018-12-18 Thread Laurent Pinchart
Hi Daniel, On Tuesday, 18 December 2018 11:37:14 EET Daniel Vetter wrote: > On Tue, Dec 18, 2018 at 7:47 AM Laurent Pinchart wrote: > > On Tuesday, 18 December 2018 08:00:24 EET Kuninori Morimoto wrote: > >> From: Kuninori Morimoto > >> > >> This patch updates license to use

Re: [PATCH 06/14] mm, migrate: Immediately fail migration of a page with no migration handler

2018-12-18 Thread Mel Gorman
On Tue, Dec 18, 2018 at 10:06:31AM +0100, Vlastimil Babka wrote: > On 12/15/18 12:03 AM, Mel Gorman wrote: > > Pages with no migration handler use a fallback hander which sometimes > > works and sometimes persistently fails such as blockdev pages. Migration > > will retry a number of times on

Re: [PATCH 08/14] mm, compaction: Use the page allocator bulk-free helper for lists of pages

2018-12-18 Thread Vlastimil Babka
On 12/15/18 12:03 AM, Mel Gorman wrote: > release_pages() is a simpler version of free_unref_page_list() but it > tracks the highest PFN for caching the restart point of the compaction > free scanner. This patch optionally tracks the highest PFN in the core > helper and converts compaction to use

Re: [PATCH v2 3/3] drm/i915: Move to new PM core fields

2018-12-18 Thread Rafael J. Wysocki
On Mon, Dec 17, 2018 at 3:22 PM Vincent Guittot wrote: > > On Fri, 14 Dec 2018 at 15:36, Ulf Hansson wrote: > > > > On Fri, 14 Dec 2018 at 15:22, Vincent Guittot > > wrote: > > > > > > With jiffies been replaced by raw ns in PM core accounting, 915 driver is > > > updated to use this new time

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

2018-12-18 Thread Russell King - ARM Linux
On Tue, Dec 18, 2018 at 01:53:34AM +0530, Souptick Joarder wrote: > 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

Re: [PATCH v2 3/3] drm/i915: Move to new PM core fields

2018-12-18 Thread Vincent Guittot
On Tue, 18 Dec 2018 at 10:57, Rafael J. Wysocki wrote: > > On Mon, Dec 17, 2018 at 3:22 PM Vincent Guittot > wrote: > > > > On Fri, 14 Dec 2018 at 15:36, Ulf Hansson wrote: > > > > > > On Fri, 14 Dec 2018 at 15:22, Vincent Guittot > > > wrote: > > > > > > > > With jiffies been replaced by raw

[PATCH v2 1/1] MAINTAINERS: update list of qcom drivers

2018-12-18 Thread Amit Kucheria
Several drivers didn't have a specific maintainer (other than the subsystem maintainer). Add all drivers referring to qcom or msm to the list of supported drivers. Signed-off-by: Amit Kucheria --- MAINTAINERS | 49 + 1 file changed, 45

[PATCH] r8a66597: Fix a possible concurrency use-after-free bug in r8a66597_endpoint_disable()

2018-12-18 Thread Jia-Ju Bai
The function r8a66597_endpoint_disable() and r8a66597_urb_enqueue() may be concurrently executed. The two functions both access a possible shared variable "hep->hcpriv". This shared variable is freed by r8a66597_endpoint_disable() via the call path: r8a66597_endpoint_disable kfree(hep->hcpriv)

Re: [PATCH 0/7] ARM: hacks for link-time optimization

2018-12-18 Thread Peter Zijlstra
On Tue, Dec 18, 2018 at 10:18:24AM +0100, Peter Zijlstra wrote: > In particular turning an address-dependency into a control-dependency, > which is something allowed by the C language, since it doesn't recognise > these concepts as such. > > The 'optimization' is allowed currently, but LTO will

Re: [PATCH v1 1/1] MAINTAINERS: update list of qcom drivers

2018-12-18 Thread Amit Kucheria
On Tue, Dec 18, 2018 at 1:12 PM Kalle Valo wrote: > > Amit Kucheria writes: > > > Several drivers didn't have a specific maintainer (other than the > > subsystem maintainer). Switch to using the 'qcom' and 'msm' regex > > patterns to capture all of them and add exceptions to the couple of > >

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

2018-12-18 Thread Petr Mladek
On Tue 2018-12-18 17:55:24, Sergey Senozhatsky wrote: > On (12/18/18 06:05), Tetsuo Handa wrote: > > +#ifdef CONFIG_PRINTK_CALLER > > +static size_t print_caller(u32 id, char *buf) > > +{ > > + char from[12]; > > + > > + snprintf(from, sizeof(from), "%c%u", > > +id & 0x8000 ?

Re: [PATCH v2 3/3] drm/i915: Move to new PM core fields

2018-12-18 Thread Rafael J. Wysocki
On Tue, Dec 18, 2018 at 10:58 AM Vincent Guittot wrote: > > On Tue, 18 Dec 2018 at 10:57, Rafael J. Wysocki wrote: > > > > On Mon, Dec 17, 2018 at 3:22 PM Vincent Guittot > > wrote: > > > > > > On Fri, 14 Dec 2018 at 15:36, Ulf Hansson wrote: > > > > > > > > On Fri, 14 Dec 2018 at 15:22,

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

2018-12-18 Thread Laxman Dewangan
On Tuesday 18 December 2018 02:01 AM, Paul Gortmaker wrote: 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

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

2018-12-18 Thread Laxman Dewangan
On Tuesday 18 December 2018 02:01 AM, Paul Gortmaker wrote: 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

Re: [PATCH v2 3/3] drm/i915: Move to new PM core fields

2018-12-18 Thread Vincent Guittot
On Tue, 18 Dec 2018 at 11:03, Rafael J. Wysocki wrote: > > On Tue, Dec 18, 2018 at 10:58 AM Vincent Guittot > wrote: > > > > On Tue, 18 Dec 2018 at 10:57, Rafael J. Wysocki wrote: > > > > > > On Mon, Dec 17, 2018 at 3:22 PM Vincent Guittot > > > wrote: > > > > > > > > On Fri, 14 Dec 2018 at

Re: Question: pause mode disabled for marvell 88e151x phy

2018-12-18 Thread Russell King - ARM Linux
On Tue, Dec 18, 2018 at 05:34:27PM +0800, Yunsheng Lin wrote: > On 2018/12/17 22:36, Russell King - ARM Linux wrote: > > As I've previously stated, the behaviour I've seen is _both_ pause bits > > clear: > > > > If I set bit 10 (pause), and read back to confirm: > > > > MII PHY #0 transceiver

Re: [PATCH v1 1/1] MAINTAINERS: update list of qcom drivers

2018-12-18 Thread Kalle Valo
Marc Gonzalez writes: > On 18/12/2018 08:42, Kalle Valo wrote: > >> Amit Kucheria wrote: >> >>> --- a/MAINTAINERS >>> +++ b/MAINTAINERS >>> @@ -1929,20 +1929,14 @@ M: Andy Gross >>> M: David Brown >>> L: linux-arm-...@vger.kernel.org >>> S: Maintained >>> -F:

Re: [PATCH] dmaengine: ti: omap-dma: Configure LCH_TYPE for OMAP1

2018-12-18 Thread Peter Ujfalusi
On 17/12/2018 21.16, Aaro Koskinen wrote: > On Thu, Nov 22, 2018 at 03:12:36PM +, Russell King - ARM Linux wrote: >> Also we can't deal with the omap_set_dma_dest_burst_mode() setting - >> DMAengine always uses a 64 byte burst, but udc wants a smaller burst >> setting. Does this matter? >

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

2018-12-18 Thread Sergey Senozhatsky
On (12/18/18 11:01), Petr Mladek wrote: > I have updated the patch in printk.git, for-4.22 branch. Thanks. > PS: I think that I have rushed the patch probably too much. > I did too much nitpicking in the past and am trying to find > a better balance now. It's all good. -ss

[PATCH v5 2/8] lib/test_bitmap.c: Add for_each_set_clump8 test cases

2018-12-18 Thread William Breathitt Gray
The introduction of the for_each_set_clump8 macro warrants test cases to verify the implementation. This patch adds test case checks for whether an out-of-bounds clump index is returned, a zero clump is returned, or the returned clump value differs from the expected clump value. Cc: Andy

[PATCH V3 0/2] Replace all open encodings for NUMA_NO_NODE

2018-12-18 Thread Anshuman Khandual
Changes in V3: - Dropped all references to NUMA_NO_NODE as per Lubomir Rinetl - Split the patch into two creating a new one specifically for tools - Folded Stephen's linux-next build fix into the second patch Changes in V2: (https://patchwork.kernel.org/patch/10698089/) - Added inclusion of

Re: [PATCH 6/7] HID: logitech-hidpp: support the G700 over wireless

2018-12-18 Thread Benjamin Tissoires
Hi Harry, [now that the series has been reverted and re-inserted, I am starting to have a look at this again] On Fri, Sep 7, 2018 at 7:33 PM Harry Cutts wrote: > > Hi Benjamin, > > On Fri, 7 Sep 2018 at 03:35, Benjamin Tissoires > wrote: > > > > The G700 is using a non unifying receiver, so

[PATCH v5 1/8] bitops: Introduce the for_each_set_clump8 macro

2018-12-18 Thread William Breathitt Gray
This macro iterates for each 8-bit group of bits (clump) with set bits, within a bitmap memory region. For each iteration, "start" is set to the bit offset of the found clump, while the respective clump value is stored to the location pointed by "clump". Additionally, the bitmap_get_value8 and

[PATCH v5 0/8] Introduce the for_each_set_clump8 macro

2018-12-18 Thread William Breathitt Gray
Changes in v5: - Restrict the function of the for_each_set_clump macro to handle only 8-bit clumps (i.e. for_each_set_clump8) - Introduce the bitmap_get_value8 and bitmap_set_value8 functions to get and set 8-bit values respectively - Reimplement the for_each_set_clump macro to

Re: [PATCH 0/9] RZ/G2E basic device tree

2018-12-18 Thread Simon Horman
On Fri, Dec 14, 2018 at 09:10:04AM +, Fabrizio Castro wrote: > Dear All, > > this series adds a basic dtsi for the RZ/G2E (a.k.a. r8a774c0). Series applied for v4.22. Thanks!

[PATCH v5 5/8] gpio: gpio-mm: Utilize for_each_set_clump8 macro

2018-12-18 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump8 macro to simplify code and improve clarity. Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-gpio-mm.c | 71 +++-- 1 file changed, 20 insertions(+), 51

[PATCH v5 3/8] gpio: 104-dio-48e: Utilize for_each_set_clump8 macro

2018-12-18 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump8 macro to simplify code and improve clarity. Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-104-dio-48e.c | 71 ++--- 1 file changed, 20 insertions(+), 51

[PATCH v5 6/8] gpio: ws16c48: Utilize for_each_set_clump8 macro

2018-12-18 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump8 macro to simplify code and improve clarity. Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-ws16c48.c | 71 ++--- 1 file changed, 19 insertions(+), 52

[PATCH V3 1/2] mm: Replace all open encodings for NUMA_NO_NODE

2018-12-18 Thread Anshuman Khandual
At present there are multiple places where invalid node number is encoded as -1. Even though implicitly understood it is always better to have macros in there. Replace these open encodings for an invalid node number with the global macro NUMA_NO_NODE. This helps remove NUMA related assumptions

[PATCH v5 4/8] gpio: 104-idi-48: Utilize for_each_set_clump8 macro

2018-12-18 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump8 macro to simplify code and improve clarity. Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-104-idi-48.c | 36 +++--- 1 file changed, 7 insertions(+), 29

[PATCH V3 2/2] Tools: Replace open encodings for NUMA_NO_NODE

2018-12-18 Thread Anshuman Khandual
From: Stephen Rothwell This replaces all open encodings in tools with NUMA_NO_NODE. Also linux/numa.h is now needed for the perf build. Signed-off-by: Anshuman Khandual Signed-off-by: Stephen Rothwell --- tools/include/linux/numa.h | 16 tools/perf/bench/numa.c| 6

[PATCH v5 8/8] gpio: pcie-idio-24: Utilize for_each_set_clump8 macro

2018-12-18 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump8 macro to simplify code and improve clarity. Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-pcie-idio-24.c | 109 --- 1 file changed, 40 insertions(+), 69

[PATCH v5 7/8] gpio: pci-idio-16: Utilize for_each_set_clump8 macro

2018-12-18 Thread William Breathitt Gray
Replace verbose implementation in get_multiple/set_multiple callbacks with for_each_set_clump8 macro to simplify code and improve clarity. Signed-off-by: William Breathitt Gray --- drivers/gpio/gpio-pci-idio-16.c | 73 - 1 file changed, 26 insertions(+), 47

Re: [PATCH 4/6] psi: introduce state_mask to represent stalled psi states

2018-12-18 Thread Peter Zijlstra
On Mon, Dec 17, 2018 at 05:14:53PM -0800, Suren Baghdasaryan wrote: > On Mon, Dec 17, 2018 at 7:55 AM Peter Zijlstra wrote: > > > + if (state_mask & (1 << s)) > > > > We have the BIT() macro, but I'm honestly not sure that will improve > > things. > > I was mimicking the rest of the

Re: [PATCH] mm: do not report isolation failures for CMA pages

2018-12-18 Thread Oscar Salvador
On Tue, Dec 18, 2018 at 10:28:02AM +0100, Michal Hocko wrote: > From: Michal Hocko > > Heiko has complained that his log is swamped by warnings from > has_unmovable_pages > [ 20.536664] page dumped because: has_unmovable_pages > [ 20.536792] page:03d081ff4080 count:1 mapcount:0 >

Re: [RFC PATCH 2/2] PCI/portdrv Hisilicon PCIe transport layer Port PMU driver.

2018-12-18 Thread Jonathan Cameron
On Mon, 17 Dec 2018 12:19:15 -0600 Bjorn Helgaas wrote: > [+cc Logan for incidental Switchtec question below] > > On Mon, Dec 17, 2018 at 11:09:06AM +, Jonathan Cameron wrote: > > On Fri, 14 Dec 2018 17:55:05 -0600 > > Bjorn Helgaas wrote: > > > On Fri, Dec 14, 2018 at 09:10:55PM +0800,

Re: [PATCH] clk: imx: add CLK_GET_RATE_NOCACHE flag for i.MX8M composite clock

2018-12-18 Thread Fabio Estevam
Hi Anson, On Tue, Dec 18, 2018 at 12:56 AM Anson Huang wrote: > > On i.MX8M, some of the bus clocks' rate could be changed in TF-A, Do you mean ATF (ARM Trusted Firmware) instead?

Re: [PATCH V4 1/3] misc/pvpanic: return 0 for empty body register function

2018-12-18 Thread Greg KH
On Tue, Dec 18, 2018 at 05:46:41PM +0800, Peng Hao wrote: > Return 0 for empty body register function normally. > > Signed-off-by: Peng Hao > --- > QEMU community requires additional PCI devices to simulate PVPANIC devices > so that some architectures can not occupy precious less than 4G of

Re: [PATCH v2] f2fs: fix sbi->extent_list corruption issue

2018-12-18 Thread Chao Yu
On 2018/12/14 22:25, Jaegeuk Kim wrote: > On 12/14, Sahitya Tummala wrote: >> On Wed, Dec 12, 2018 at 11:36:08AM +0800, Chao Yu wrote: >>> On 2018/12/12 11:17, Sahitya Tummala wrote: On Fri, Dec 07, 2018 at 05:47:31PM +0800, Chao Yu wrote: > On 2018/12/1 4:33, Jaegeuk Kim wrote: >> On

Re: [PATCH v3 6/6] irqchip: sifive-plic: Implement irq_set_affinity() for SMP host

2018-12-18 Thread Anup Patel
On Tue, Dec 18, 2018 at 12:02 AM Christoph Hellwig wrote: > > On Fri, Nov 30, 2018 at 01:32:07PM +0530, Anup Patel wrote: > > This patch provides irq_set_affinity() implementation for PLIC driver. > > It also updates irq_enable() such that PLIC interrupts are only enabled > > for one of CPUs

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

2018-12-18 Thread Jan Kara
On Mon 17-12-18 08:58:19, Dave Chinner wrote: > On Fri, Dec 14, 2018 at 04:43:21PM +0100, Jan Kara wrote: > > Hi! > > > > On Thu 13-12-18 08:46:41, Dave Chinner wrote: > > > On Wed, Dec 12, 2018 at 10:03:20AM -0500, Jerome Glisse wrote: > > > > On Mon, Dec 10, 2018 at 11:28:46AM +0100, Jan Kara

Re: [f2fs-dev] [PATCH] f2fs: fix missing unlock(sbi->gc_mutex)

2018-12-18 Thread Chao Yu
On 2018/12/18 10:15, Jaegeuk Kim wrote: > This fixes missing unlock call. > > Cc: > Signed-off-by: Jaegeuk Kim > --- > fs/f2fs/super.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c > index b79677639108..2689a2cb56cc 100644 > ---

[PATCH] perf/x86/intel: Avoid unnecessary reallocations of memory allocated in cpu hotplug prepare state

2018-12-18 Thread zhe.he
From: He Zhe The memory of shared_regs excl_cntrs and constraint_list in struct cpu_hw_events is currently allocated in hotplug prepare state and freed in dying state. The memory can actually be reused across multiple cpu pluggings. Besides, in preempt-rt full mode, the freeing can happen in

Re: [PATCH] f2fs: fix block address for __check_sit_bitmap

2018-12-18 Thread Chao Yu
On 2018/12/18 17:32, sunqiuyang wrote: > From: Qiuyang Sun > > Should use lstart (logical start address) instead of start (in dev) here. > This fixes a bug in multi-device scenarios. Good catch! > > Signed-off-by: Qiuyang Sun Reviewed-by: Chao Yu Thanks,

Re: [PATCH v10 01/27] PM / Domains: Add generic data pointer to genpd_power_state struct

2018-12-18 Thread Daniel Lezcano
On 29/11/2018 18:46, Ulf Hansson wrote: > Let's add a data pointer to the genpd_power_state struct, to allow a genpd > backend driver to store per state specific data. In order to introduce the > pointer, we also need to adopt how genpd frees the allocated data for the > default genpd_power_state

Re: [PATCH] clk: imx: add CLK_GET_RATE_NOCACHE flag for i.MX8M composite clock

2018-12-18 Thread Lucas Stach
Am Dienstag, den 18.12.2018, 08:24 -0200 schrieb Fabio Estevam: > Hi Anson, > > On Tue, Dec 18, 2018 at 12:56 AM Anson Huang > wrote: > > > > On i.MX8M, some of the bus clocks' rate could be changed in TF-A, > > Do you mean ATF (ARM Trusted Firmware) instead? TF-A is the name of the day for

Re: kernel BUG at fs/inode.c:LINE!

2018-12-18 Thread Tetsuo Handa
time. The solution, CONFIG_PRINTK_FROM option (which will be renamed to CONFIG_PRINTK_CALLER option tomorrow), just arrived at linux-next-20181218. We can try it... But currently syzbot cannot boot using linux-next-20181218 due to "Kernel panic - not syncing: Can't create rootfs" presumabl

Re: [PATCH -next] x86/xen: Fix read buffer overflow

2018-12-18 Thread YueHaibing
On 2018/12/18 16:31, Juergen Gross wrote: > On 18/12/2018 09:19, YueHaibing wrote: >> Fix smatch warning: >> >> arch/x86/xen/enlighten_pv.c:649 get_trap_addr() error: >> buffer overflow 'early_idt_handler_array' 32 <= 32 >> >> Fixes: 42b3a4cb5609 ("x86/xen: Support early interrupts in xen pv

Re: kernel BUG at fs/inode.c:LINE!

2018-12-18 Thread Ian Kent
On Mon, 2018-12-17 at 07:21 +, Al Viro wrote: > On Sun, Dec 16, 2018 at 10:11:04PM -0800, syzbot wrote: > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:d14b746c6c1c Add linux-next specific files for 20181214 > > git tree: linux-next > > console output:

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

2018-12-18 Thread Russell King - ARM Linux
On Tue, Dec 18, 2018 at 01:52:46AM +0530, Souptick Joarder wrote: > 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

Re: [PATCH v5 0/5] mm: Randomize free memory

2018-12-18 Thread Rafael J. Wysocki
On Monday, December 17, 2018 5:32:10 PM CET Dan Williams wrote: > On Mon, Dec 17, 2018 at 2:12 AM Rafael J. Wysocki wrote: > > > > On Saturday, December 15, 2018 2:48:30 AM CET Dan Williams wrote: > > > Changes since v4: [1] > > > * Default the randomization to off and enable it dynamically based

Re: [PATCH 6/6] psi: introduce psi monitor

2018-12-18 Thread Peter Zijlstra
On Mon, Dec 17, 2018 at 05:21:05PM -0800, Suren Baghdasaryan wrote: > On Mon, Dec 17, 2018 at 8:22 AM Peter Zijlstra wrote: > > How well has this thing been fuzzed? Custom string parser, yay! > > Honestly, not much. Normal cases and some obvious corner cases. Will > check if I can use some

Re: [RFC][PATCH] printk: increase devkmsg write() ratelimit

2018-12-18 Thread Peter Zijlstra
On Tue, Dec 18, 2018 at 06:18:42PM +0900, Sergey Senozhatsky wrote: > Hello, > > RFC > > A painful subject: > > I just noticed that stock systemd (no systemd debugging enabled) on my > x86 box write()-s during shutdown to devkmsg more than before, so old > devkmsg ratelimits

Re: [PATCH v2] kmemleak: Turn kmemleak_lock to raw spinlock on RT

2018-12-18 Thread He Zhe
On 2018/12/6 03:14, Sebastian Andrzej Siewior wrote: > On 2018-12-05 21:53:37 [+0800], He Zhe wrote: >> For call trace 1: > … >> Since kmemleak would most likely be used to debug in environments where >> we would not expect as great performance as without it, and kfree() has raw >> locks >> in

Re: [PATCH v4 1/5] Bluetooth: hci_qca: use wait_until_sent() for power pulses

2018-12-18 Thread Balakrishna Godavarthi
Hi Johan, On 2018-12-18 14:43, Johan Hovold wrote: On Mon, Dec 17, 2018 at 07:43:26PM +0530, Balakrishna Godavarthi wrote: wcn3990 requires a power pulse to turn ON/OFF along with regulators. Sometimes we are observing the power pulses are sent out with some time delay, due to queuing these

Re: [PATCH 05/12] PCI: aardvark: add suspend to RAM support

2018-12-18 Thread Rafael J. Wysocki
On Monday, December 17, 2018 3:54:26 PM CET Miquel Raynal wrote: > Hi Rafael, > > "Rafael J. Wysocki" wrote on Thu, 13 Dec 2018 > 22:50:51 +0100: > > > On Thursday, December 13, 2018 3:30:00 PM CET Miquel Raynal wrote: > > > Hi Lorenzo, > > > > > > > > If that's really the case, then I can

[PATCH] regmap: regmap-irq: Remove default irq type setting from core

2018-12-18 Thread Matti Vaittinen
The common code should not set IRQ type. Read HW defaults to the cache at startup instead of forcing type to EDGE_BOTH. If default setting is needed this should be done via normal mechanisms or by chip specific code if normal mechanisms are not suitable for some reason. Common regmap-irq code

Re: kernel BUG at fs/inode.c:LINE!

2018-12-18 Thread Amir Goldstein
On Tue, Dec 18, 2018 at 12:43 PM Ian Kent wrote: > > On Mon, 2018-12-17 at 07:21 +, Al Viro wrote: > > On Sun, Dec 16, 2018 at 10:11:04PM -0800, syzbot wrote: > > > Hello, > > > > > > syzbot found the following crash on: > > > > > > HEAD commit:d14b746c6c1c Add linux-next specific files

[PATCH net-next 07/12] net: hns3: update coalesce param per second

2018-12-18 Thread Peng Li
coalesce param updates every 100 napi times, it may update a little late if ping test after a high rate flow, may over napi poll is called 100 times as ping test sends packets every second. This patch updates coalesce param every second, instead with every 100 napi times. It can not update the

[PATCH net-next 12/12] net: hns3: fix a SSU buffer checking bug

2018-12-18 Thread Peng Li
From: Yunsheng Lin When caculating the SSU buffer, it first allocate tx and rx private buffer, then the remaining buffer is for rx shared buffer. The remaining buffer size should be at least bigger than or equal to the shared_std, which is the minimum shared buffer size required by the driver,

[PATCH net-next 09/12] net: hns3: synchronize speed and duplex from phy when phy link up

2018-12-18 Thread Peng Li
Driver calls phy_connect_direct and registers hclge_mac_adjust_link to synchronize mac speed and duplex from phy. It is better to synchronize mac speed and duplex from phy when phy link up. Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c | 4 1 file

[PATCH net-next 06/12] net: hns3: fix incomplete uninitialization of IRQ in the hns3_nic_uninit_vector_data()

2018-12-18 Thread Peng Li
From: Huazhong Tan In the hns3_nic_uninit_vector_data(), the procedure of uninitializing the tqp_vector's IRQ has not set affinity_notify to NULL and changes its init flag. This patch fixes it. And for simplificaton, local variable tqp_vector is used instead of priv->tqp_vector[i]. Fixes:

[PATCH net-next 03/12] net: hns3: fix napi_disable not return problem

2018-12-18 Thread Peng Li
From: Huazhong Tan While doing DOWN, the calling of napi_disable() may not return, since the napi_complete() in the hns3_nic_common_poll() will never be called when HNS3_NIC_STATE_DOWN is set. So we need to call napi_complete() before checking HNS3_NIC_STETE_DOWN. Fixes: ff0699e04b97 ("net:

[PATCH net-next 01/12] net: hns3: fix error handling int the hns3_get_vector_ring_chain

2018-12-18 Thread Peng Li
From: Huazhong Tan When hns3_get_vector_ring_chain() failed in the hns3_nic_init_vector_data(), it should do the error handling instead of return directly. Also, cur_chain should be freed instead of chain and head->next should be set to NULL in error handling of hns3_get_vector_ring_chain.

Re: [PATCH] perf/x86/intel: Avoid unnecessary reallocations of memory allocated in cpu hotplug prepare state

2018-12-18 Thread Peter Zijlstra
On Tue, Dec 18, 2018 at 06:30:33PM +0800, zhe...@windriver.com wrote: > Besides, in preempt-rt full mode, the freeing can happen in atomic context and > thus cause the following BUG. Hurm, I though we fixed all those long ago.. And no, the patch is horrible; that's what we have things like

[PATCH net-next 04/12] net: hns3: update some variables while hclge_reset()/hclgevf_reset() done

2018-12-18 Thread Peng Li
From: Huazhong Tan When hclge_reset() completes successfully, it should update the last_reset_time, set reset_fail_cnt to 0, and set reset_type of hnae3_ae_dev to HNAE3_NONE_RESET. Also when hclgevf_reset() completes successfully, it should update the last_reset_time, and set reset_type of

[PATCH net-next 00/12] net: hns3: code optimizations & bugfixes for HNS3 driver

2018-12-18 Thread Peng Li
This patchset includes bugfixes and code optimizations for the HNS3 ethernet controller driver Fuyun Liang (1): net: hns3: remove 1000M/half support of phy Huazhong Tan (6): net: hns3: fix error handling int the hns3_get_vector_ring_chain net: hns3: uninitialize pci in the hclgevf_uninit

[PATCH net-next 10/12] net: hns3: getting tx and dv buffer size through firmware

2018-12-18 Thread Peng Li
From: Yunsheng Lin This patch adds support of getting tx and dv buffer size through firmware, because different version of hardware requires different size of tx and dv buffer. This patch also add dv_buf_size to tc' private buffer size even if pfc is not enable for the tc. Signed-off-by:

[PATCH net-next 11/12] net: hns3: aligning buffer size in SSU to 256 bytes

2018-12-18 Thread Peng Li
From: Yunsheng Lin The hardware expects the buffer size set to SSU is aligned to 256 bytes, this patch aligns the buffer size to 256 byte using roundup or rounddown function. Signed-off-by: Yunsheng Lin Signed-off-by: Peng Li --- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 43

[PATCH net-next 08/12] net: hns3: remove 1000M/half support of phy

2018-12-18 Thread Peng Li
From: Fuyun Liang Our phy does not support 1000M/half, this patch removes 1000M/half from PHY_SUPPORTED_FEATURES. Signed-off-by: Fuyun Liang Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH net-next 05/12] net: hns3: remove unnecessary configuration recapture while resetting

2018-12-18 Thread Peng Li
From: Huazhong Tan When doing reset, it is unnecessary to get the hardware's default configuration again, otherwise, the user's configuration will be overwritten. Fixes: 4ed340ab8f49 ("net: hns3: Add reset process in hclge_main") Signed-off-by: Huazhong Tan Signed-off-by: Peng Li ---

[PATCH net-next 02/12] net: hns3: uninitialize pci in the hclgevf_uninit

2018-12-18 Thread Peng Li
From: Huazhong Tan In the hclgevf_pci_reset(), it only uninitialize and initialize the msi, so if the initialization fails, hclgevf_uninit_hdev() does not need to uninitialize the msi, but needs to uninitialize the pci, otherwise it will cause pci resource not free. Fixes: 862d969a3a4d ("net:

[PATCH v3] f2fs: fix sbi->extent_list corruption issue

2018-12-18 Thread Sahitya Tummala
When there is a failure in f2fs_fill_super() after/during the recovery of fsync'd nodes, it frees the current sbi and retries again. This time the mount is successful, but the files that got recovered before retry, still holds the extent tree, whose extent nodes list is corrupted since sbi and

[PATCH] cpuidle: New timer events oriented governor for tickless systems

2018-12-18 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The venerable menu governor does some thigns that are quite questionable in my view. First, it includes timer wakeups in the pattern detection data and mixes them up with wakeups from other sources which in some cases causes it to expect what essentially would be a timer

Re: [PATCH v3 1/3] staging: greybus: gpio: switch GPIO portions to use GPIOLIB_IRQCHIP

2018-12-18 Thread Johan Hovold
On Thu, Nov 22, 2018 at 10:37:16PM +0530, Nishad Kamdar wrote: > Convert the GPIO driver to use the GPIO irqchip library > GPIOLIB_IRQCHIP instead of reimplementing the same. > > Signed-off-by: Nishad Kamdar > --- > Changes in v2: > - Retained irq.h and irqdomain.h headers. > - Dropped

Re: [PATCH] r8a66597: Fix a possible concurrency use-after-free bug in r8a66597_endpoint_disable()

2018-12-18 Thread Greg KH
On Tue, Dec 18, 2018 at 06:00:20PM +0800, Jia-Ju Bai wrote: > The function r8a66597_endpoint_disable() and r8a66597_urb_enqueue() may > be concurrently executed. > The two functions both access a possible shared variable "hep->hcpriv". > > This shared variable is freed by

Re: [PATCH] perf/x86/intel: Avoid unnecessary reallocations of memory allocated in cpu hotplug prepare state

2018-12-18 Thread Sebastian Andrzej Siewior
On 2018-12-18 18:30:33 [+0800], zhe...@windriver.com wrote: > --- a/arch/x86/events/intel/core.c > +++ b/arch/x86/events/intel/core.c > @@ -3398,13 +3398,16 @@ ssize_t intel_event_sysfs_show(char *page, u64 config) > return x86_event_sysfs_show(page, config, event); > } > > -struct

Re: [RFC][PATCH] printk: increase devkmsg write() ratelimit

2018-12-18 Thread Sergey Senozhatsky
On (12/18/18 11:48), Peter Zijlstra wrote: > > I know that there is a "kernel.printk_devkmsg" interface; do we > > expect every systemd-enabled distro to find that out and to tweak > > kernel.printk_devkmsg or shall we change the default devkmsg > > ratelimit instead? > > How about we complain to

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