Re: KASAN: out-of-bounds Write in tls_push_record

2019-02-26 Thread Eric Biggers
On Sat, Jul 07, 2018 at 06:29:03PM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:526674536360 Add linux-next specific files for 20180706 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=17e6396840 > kernel co

Re: [PATCH v2 23/26] userfaultfd: wp: don't wake up when doing write protect

2019-02-26 Thread Mike Rapoport
On Tue, Feb 12, 2019 at 10:56:29AM +0800, Peter Xu wrote: > It does not make sense to try to wake up any waiting thread when we're > write-protecting a memory region. Only wake up when resolving a write > protected page fault. > > Signed-off-by: Peter Xu Reviewed-by: Mike Rapoport > --- > fs

Re: [PATCH v2 23/26] userfaultfd: wp: don't wake up when doing write protect

2019-02-26 Thread Mike Rapoport
On Tue, Feb 26, 2019 at 03:41:17PM +0800, Peter Xu wrote: > On Tue, Feb 26, 2019 at 09:29:33AM +0200, Mike Rapoport wrote: > > On Tue, Feb 26, 2019 at 02:24:52PM +0800, Peter Xu wrote: > > > On Mon, Feb 25, 2019 at 11:09:35PM +0200, Mike Rapoport wrote: > > > > On Tue, Feb 12, 2019 at 10:56:29AM +0

Re: [PATCH] Remove deductively redundant NULL pointer checks

2019-02-26 Thread kbuild test robot
/0day-ci/linux/commits/Shaobo-He/Remove-deductively-redundant-NULL-pointer-checks/20190226-133616 base: git://linuxtv.org/media_tree.git master config: xtensa-allyesconfig (attached as .config) compiler: xtensa-linux-gcc (GCC) 8.2.0 reproduce: wget https://raw.githubusercontent.com/intel

Re: [PATCH] can: mark expected switch fall-throughs

2019-02-26 Thread Marc Kleine-Budde
On 1/29/19 7:06 PM, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > This patch fixes the following warnings: > > drivers/net/can/peak_canfd/peak_pciefd_main.c:668:3: warning: this statement > may fall

linux-next: Tree for Feb 26

2019-02-26 Thread Stephen Rothwell
Hi all, Changes since 20190225: The mmc-fixes tree gained a build failure for which I reverted a commit. The hwmon-staging tree gained a build failure for which I reverted a commit. The tip tree gained a conflict against the kbuild tree. The slave-dma tree gained a conflict against Linus' tree

[PATCH] drm/panel: simple: Fix panel_simple_dsi_probe

2019-02-26 Thread Peter Ujfalusi
In case mipi_dsi_attach() fails remove the registered panel to avoid added panel without corresponding device. Signed-off-by: Peter Ujfalusi --- drivers/gpu/drm/panel/panel-simple.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-simple.c

[PATCH] net: phy: Micrel KSZ8061: link failure after cable connect

2019-02-26 Thread Rajasingh Thavamani
With Micrel KSZ8061 PHY, the link may occasionally not come up after Ethernet cable connect. The vendor's (Microchip, former Micrel) errata sheet 8688A.pdf descripes the problem and possible workarounds in detail, see below. The batch implements workaround 1, which permanently fixes the issue.

Re: linux-next: build failure after merge of the akpm tree

2019-02-26 Thread Mike Rapoport
On Tue, Feb 26, 2019 at 06:39:15PM +1100, Stephen Rothwell wrote: > Hi Andrew, > > After merging the akpm tree, today's linux-next build (powerpc > allnoconfig) failed like this: > > /home/sfr/next/next/arch/powerpc/kernel/setup_32.c:176:21: error: > redefinition of 'alloc_stack' > static void

[PATCH] media: venus: core: fix max load for msm8996 and sdm845

2019-02-26 Thread Alexandre Courbot
Patch commit de5a0bafcfc4 ("media: venus: core: correct maximum hardware load for sdm845") meant to increase the maximum hardware load for sdm845, but ended up changing the one for msm8996 instead. Fixes: de5a0bafcfc4 ("media: venus: core: correct maximum hardware load for sdm845") Signed-off-by

[PATCH 3/3] ASoC: eukrea-tlv320: fix a leaked reference by adding missing of_node_put

2019-02-26 Thread Wen Yang
The call to of_parse_phandle returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. Detected by coccinelle with the following warnings: ./sound/soc/fsl/eukrea-tlv320.c:121:3-9: ERROR: missing of_node_put; acquired a node pointer with refcount

[PATCH 2/3] ASoC: fsl_utils: fix a leaked reference by adding missing of_node_put

2019-02-26 Thread Wen Yang
The call to of_parse_phandle returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. Detected by coccinelle with the following warnings: ./sound/soc/fsl/fsl_utils.c:74:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incr

[PATCH 1/3] ASoC: wcd9335: fix a leaked reference by adding missing of_node_put

2019-02-26 Thread Wen Yang
The call to of_parse_phandle returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. Detected by coccinelle with the following warnings: ./sound/soc/codecs/wcd9335.c:5193:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount i

Re: [PATCH v3] Drivers: hv: vmbus: Expose monitor data when channel uses monitor pages

2019-02-26 Thread Greg KH
On Tue, Feb 26, 2019 at 12:35:30AM -0500, Kimberly Brown wrote: > There are two methods for signaling the host: the monitor page mechanism > and hypercalls. The monitor page mechanism is used by performance > critical channels (storage, networking, etc.) because it provides > improved throughput. H

Re: [PATCH] mmc: spi: Fix card detection during probe

2019-02-26 Thread Ulf Hansson
On Sun, 10 Feb 2019 at 18:31, Jonathan Neuschäfer wrote: > > When using the mmc_spi driver with a card-detect pin, I noticed that the > card was not detected immediately after probe, but only after it was > unplugged and plugged back in (and the CD IRQ fired). > > The call tree looks something lik

Re: [PATCH v2 1/2] mmc: core: do not retry CMD6 in __mmc_switch()

2019-02-26 Thread Ulf Hansson
On Fri, 15 Feb 2019 at 06:59, Chaotian Jing wrote: > > the response type of CMD6 is R1B, when the first CMD6 gets response > CRC error, do retry may get timeout error due to card may still in > busy state, which cause this retry make no sense. > > Signed-off-by: Chaotian Jing Applied for next, t

Re: [PATCH v3 2/2] drivers: mux: Add Generic regmap bitfield-based multiplexer in mmio-mux

2019-02-26 Thread Peter Rosin
On 2019-02-26 07:08, Pankaj Bansal wrote: >>> + if (IS_ERR_OR_NULL(regmap)) { >>> + ret = PTR_ERR_OR_ZERO(regmap) ? PTR_ERR(regmap) : - >> ENODEV; >> >> The above is not correct, this should be better (untested): >> >> ret = PTR_ERR(regmap) ?: -ENODEV; > > Omitting the sec

Re: [PATCH v5 0/3] UFS on APQ8098/MSM8998t

2019-02-26 Thread Lee Jones
On Mon, 25 Feb 2019, Marc Gonzalez wrote: > Hello, > > This series adds support for the UFS host controller on APQ8098/MSM8998-based > boards. > > This should be the final rev ;-) > > Differences between v4 and v5: > - Drop patches that have already been accepted or spun off > > Differences b

Re: [LKP] [page cache] eb797a8ee0: vm-scalability.throughput -16.5% regression

2019-02-26 Thread Huang, Ying
Matthew Wilcox writes: > On Wed, Nov 14, 2018 at 05:22:42PM +0800, kernel test robot wrote: >> FYI, we noticed a -16.5% regression of vm-scalability.throughput due to >> commit: >> commit: eb797a8ee0ab4cd03df556980ce7bf167cadaa50 ("page cache: Rearrange >> address_space") >> >> in testcase: vm

Re: [PATCH V2] staging: wilc1000: fix incorrent type assignment

2019-02-26 Thread Ajay.Kathat
Thanks. On 2/26/2019 12:55 PM, Bo YU wrote: > Fix sparse warning: > > drivers/staging/wilc1000/host_interface.c:450:30: warning: incorrect type in > assignment (different base types) > drivers/staging/wilc1000/host_interface.c:450:30:expected restricted > __le16 [usertype] beacon_period > d

[PATCH v2] ARM: tegra: enforce PM requirement

2019-02-26 Thread Sameer Pujar
The requirement for this came while adding runtime PM support for HDA driver. There were concerns about driver explicitly handling !PM case. In general, drivers need to handle !PM case with work arounds for managing clocks and power explicitly, which is not really necessary when PM support on tegra

Re: [RFC][PATCH 00/16] sched: Core scheduling

2019-02-26 Thread Aubrey Li
On Sat, Feb 23, 2019 at 3:27 AM Tim Chen wrote: > > On 2/22/19 6:20 AM, Peter Zijlstra wrote: > > On Fri, Feb 22, 2019 at 01:17:01PM +0100, Paolo Bonzini wrote: > >> On 18/02/19 21:40, Peter Zijlstra wrote: > >>> On Mon, Feb 18, 2019 at 09:49:10AM -0800, Linus Torvalds wrote: > On Mon, Feb 18

Re: [PATCH v2 10/26] userfaultfd: wp: add UFFDIO_COPY_MODE_WP

2019-02-26 Thread Mike Rapoport
On Tue, Feb 26, 2019 at 01:09:42PM +0800, Peter Xu wrote: > On Mon, Feb 25, 2019 at 05:58:37PM +0200, Mike Rapoport wrote: > > On Tue, Feb 12, 2019 at 10:56:16AM +0800, Peter Xu wrote: > > > From: Andrea Arcangeli > > > > > > This allows UFFDIO_COPY to map pages wrprotected. > >

Re: huge fsync latencies for a small file on ext4

2019-02-26 Thread Jan Kara
On Mon 25-02-19 10:40:07, Sahitya Tummala wrote: > On Tue, Feb 19, 2019 at 02:53:02PM +0100, Jan Kara wrote: > > One has to be really careful when using i_size like this. By the time the > > transaction is committing, i_size could have been reduced from the value at > > the time page writeback was

Re: [PATCH 4.9 00/63] 4.9.161-stable review

2019-02-26 Thread Naresh Kamboju
On Tue, 26 Feb 2019 at 02:43, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.9.161 release. > There are 63 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Res

[PATCH 2/4] soc/fsl/guts: Add definition for LX2160A

2019-02-26 Thread Vabhav Sharma
Adding compatible string "lx2160a-dcfg" to initialize guts driver for lx2160 and SoC die attribute definition for LX2160A Signed-off-by: Vabhav Sharma Signed-off-by: Yinbo Zhu Acked-by: Li Yang --- drivers/soc/fsl/guts.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/soc/fsl

[PATCH 1/4] dt-bindings: arm64: add compatible for LX2160A

2019-02-26 Thread Vabhav Sharma
Add compatible for LX2160A SoC,QDS and RDB board Add lx2160a compatible for clockgen and dcfg Signed-off-by: Vabhav Sharma Reviewed-by: Rob Herring --- .../bindings/arm/freescale/fsl,layerscape-dcfg.txt | 2 +- Documentation/devicetree/bindings/arm/fsl.txt| 12 +++

[PATCH 3/4] clk: qoriq: increase array size of cmux_to_group

2019-02-26 Thread Vabhav Sharma
From: Yogesh Gaur Increase size of cmux_to_group array, to accomdate entry of -1 termination. Added -1, terminated, entry for 4080_cmux_grpX. Signed-off-by: Yogesh Gaur Signed-off-by: Vabhav Sharma Acked-by: Stephen Boyd --- drivers/clk/clk-qoriq.c | 4 ++-- 1 file changed, 2 insertions(+),

[PATCH 0/4] arm64: dts: NXP: add basic dts file for LX2160A SoC

2019-02-26 Thread Vabhav Sharma
These patches were reviewed and acked but dropped during merge window. Patchwork link was https://lore.kernel.org/patchwork/cover/1004155/ Vabhav Sharma (2): dt-bindings: arm64: add compatible for LX2160A soc/fsl/guts: Add definition for LX2160A Yogesh Gaur (2): clk: qoriq: increase array

[PATCH 4/4] clk: qoriq: Add clockgen support for lx2160a

2019-02-26 Thread Vabhav Sharma
From: Yogesh Gaur Add clockgen support for lx2160a. Added entry for compat 'fsl,lx2160a-clockgen'. Signed-off-by: Tang Yuantian Signed-off-by: Yogesh Gaur Signed-off-by: Vabhav Sharma Acked-by: Stephen Boyd Acked-by: Viresh Kumar --- drivers/clk/clk-qoriq.c | 12 drive

Re: [PATCH] mm: migrate: add missing flush_dcache_page for non-mapped page migrate

2019-02-26 Thread Lars Persson
On 2/25/19 4:07 PM, Vlastimil Babka wrote: On 2/19/19 1:32 PM, Lars Persson wrote: Our MIPS 1004Kc SoCs were seeing random userspace crashes with SIGILL and SIGSEGV that could not be traced back to a userspace code bug. They had all the magic signs of an I/D cache coherency issue. Now recentl

[PATCH v2] ls1021aqds: enable esdhc controller

2019-02-26 Thread Yinbo Zhu
From: Yinbo Zhu This patch is to enable esdhc controller in ls1021aqds Signed-off-by: Yinbo Zhu --- Change in v2: Add patch code after &enet2 to keep them sort alphabetically. arch/arm/boot/dts/ls1021a-qds.dts |4 1 files changed, 4 insertions(+), 0 deletions(-) diff

[PATCH] tcp: fix __tcp_transmit_skb's comment text

2019-02-26 Thread Geliang Tang
The function name tcp_do_sendmsg has been renamed. But it still appears in __tcp_transmit_skb's comment text. This patch changes it to tcp_sendmsg_locked. Signed-off-by: Geliang Tang --- net/ipv4/tcp_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/tcp_output

[LKP] [drm/ttm] 30f33126fe: kobject(#):tried_to_init_an_initialized_object,something_is_seriously_wrong

2019-02-26 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-4.9): commit: 30f33126feca0fe16df9e9302ffc28a953e2eb37 ("drm/ttm: Fix bo_global and mem_global kfree error") https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master in testcase: boot on test machine: qemu-system-x86_64 -enable-

Re: [PATCH 4.14 00/71] 4.14.104-stable review

2019-02-26 Thread Naresh Kamboju
On Tue, 26 Feb 2019 at 02:47, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.14.104 release. > There are 71 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Re

Re: [RFC PATCH v1 13/25] printk: track seq per console

2019-02-26 Thread John Ogness
On 2019-02-25, Petr Mladek wrote: >> diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c >> index ece54c24ea0d..ebd9aac06323 100644 >> --- a/kernel/printk/printk.c >> +++ b/kernel/printk/printk.c >> @@ -1504,6 +1514,19 @@ static void call_console_drivers(const char >> *ext_text, size_t e

RE: [PATCH] usb: host: xhci-rcar: Add XHCI_TRUST_TX_LENGTH quirk

2019-02-26 Thread Yoshihiro Shimoda
Hi, > From: Spyridon Papageorgiou, Sent: Monday, February 18, 2019 7:27 PM > To: mathias.ny...@intel.com > Cc: gre...@linuxfoundation.org; yas...@jp.adit-jv.com; REE > ero...@de.adit-jv.com ; > linux-...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: [PATCH] usb: host: xhci-rcar: Add XH

[RFC PATCH] soc/fsl/qe: support MPC8309

2019-02-26 Thread Rasmus Villemoes
Currently, when device tree specifies fsl,qe-num-snums = 28 (which a number of in-tree .dts files do, and which is the default when that property is missing), qe_snums_init() ends up using the first 28 elements of the snum_init_46[] array. The situation is quite messy. This patch may break existin

Re: [PATCH][next] Bluetooth: mgmt: Use struct_size() helper

2019-02-26 Thread Marcel Holtmann
Hi Gustavo, > Make use of the struct_size() helper instead of an open-coded version > in order to avoid any potential type mistakes, in particular in the > context in which this code is being used. > > So, change the following form: > > sizeof(*rp) + (sizeof(rp->entry[0]) * count); > > to : >

[PATCHv4 00/11] perf record: Add support to store data in directory

2019-02-26 Thread Jiri Olsa
hi, this patchset adds the --dir option to record command (and all the other record command that overload cmd_record) that allows the data to be stored in directory with multiple data files. It's next step for multiple threads implementation in record. It's now possible to make directory data via

[PATCH 02/11] perf data: Don't store auxtrace index for directory data file

2019-02-26 Thread Jiri Olsa
We can't store auxtrace index when we store to multiple files, because we keep only offset for it, not the file. The auxtrace data will be processed correctly in the 'pipe' mode. Link: http://lkml.kernel.org/n/tip-og11od5s6nfxuf0ftxyu8...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/b

[PATCH 09/11] perf record: Add --dir option to store data in directory

2019-02-26 Thread Jiri Olsa
Adding --dir option to store data in directory. It's next step for multiple threads in record. It's now possible to make directory data via --dir option, like: $ perf record --dir perf bench sched messaging $ ls -l perf.data total 344 -rw---. 1 jolsa jolsa 43864 Jan 20 22:26 data.0 -

[PATCH 01/11] perf data: Add directory support

2019-02-26 Thread Jiri Olsa
Adding support to have directory as perf.data. The caller needs to set 'struct perf_data::is_dir flag and the path will be treated as directory. The 'struct perf_data::file' is initialized and open as 'path/header' file. Adding check to direcory interface functions to check on is_dir flag. Link

[PATCH 03/11] perf data: Add perf_data__update_dir function

2019-02-26 Thread Jiri Olsa
Adding perf_data__update_dir function to update size for every file within the perf.data directory. Link: http://lkml.kernel.org/n/tip-3ii12l48u4tyvrzxo1797...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/data.c | 20 tools/perf/util/data.h | 1 + 2 files cha

[PATCH 07/11] perf session: Add __perf_session__process_dir_events function

2019-02-26 Thread Jiri Olsa
Adding __perf_session__process_dir_events function to process events over the directory data. All directory events are pushed into sessions ordered data and flushed for processing. Link: http://lkml.kernel.org/n/tip-n3zl0wo3z18tatv5x7epm...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf

[PATCH 11/11] perf record: Describe perf.data directory format

2019-02-26 Thread Jiri Olsa
Adding perf.data-directory-format.txt to describe the directory data layout. Link: http://lkml.kernel.org/n/tip-1c8u1thx63v2ldwfdas4x...@git.kernel.org Signed-off-by: Jiri Olsa --- .../perf.data-directory-format.txt| 54 +++ 1 file changed, 54 insertions(+) create mo

[PATCH 08/11] perf session: Add path to reader object

2019-02-26 Thread Jiri Olsa
Adding path to reader object, so we can display file the processing fails for (string in [] brackets). $ perf report --stdio 0x5e0 [perf.data/data.3] [0xa200]: failed to process type: -1577027574 Link: http://lkml.kernel.org/n/tip-4bjnoy4sln7adqtd3505q...@git.kernel.org Signed-off-by: Jiri Ol

[PATCH 05/11] perf header: Add DIR_FORMAT feature to describe directory data

2019-02-26 Thread Jiri Olsa
The data files layout is described by HEADER_DIR_FORMAT feature. Currently it holds only version number (1): uint64_t version; The current version holds only version value (1) means that data files: - follow the 'data.*' name format - contain raw events data in standard perf format as

[PATCH 10/11] perf record: Add --output-dir option to store data in directory

2019-02-26 Thread Jiri Olsa
Adding --output-dir option to mimic -o and --dir options. following commands do the same: $ perf record -o perf.dir.data --dir ... $ perf record --output-dir perf.dir.data ... User cannot use both -o and output-dir together, error is displayed. Link: http://lkml.kernel.org/n/tip-76ldd2ss6vjv

[PATCH 04/11] perf data: Make perf_data__size to work over directory

2019-02-26 Thread Jiri Olsa
Making perf_data__size to return proper size for directory data. Link: http://lkml.kernel.org/n/tip-t4dm8cctat2ginmy2bb08...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/data.c | 17 + tools/perf/util/data.h | 6 +- 2 files changed, 18 insertions(+), 5 deletio

[PATCH 06/11] perf session: Add process callback to reader object

2019-02-26 Thread Jiri Olsa
Adding callback function to reader object so callers can process data in different ways. Link: http://lkml.kernel.org/n/tip-8g1islzz6xkl36tz0z1nk...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/session.c | 23 +++ 1 file changed, 19 insertions(+), 4 deletions(-

Re: [PATCH] Remove deductively redundant NULL pointer checks

2019-02-26 Thread kbuild test robot
/0day-ci/linux/commits/Shaobo-He/Remove-deductively-redundant-NULL-pointer-checks/20190226-133616 base: git://linuxtv.org/media_tree.git master config: x86_64-allyesconfig (attached as .config) compiler: gcc-8 (Debian 8.2.0-20) 8.2.0 reproduce: # save the attached .config to linux build

Re: [PATCH v2 2/2] Input: add Apple SPI keyboard and trackpad driver.

2019-02-26 Thread Andy Shevchenko
On Mon, Feb 25, 2019 at 12:05:29AM -0800, Life is hard, and then you die wrote: > > On Thu, Feb 21, 2019 at 02:56:09AM -0800, Ronald Tschalär wrote: > > The keyboard and trackpad on recent MacBook's (since 8,1) and > > MacBookPro's (13,* and 14,*) are attached to an SPI controller instead > > of U

Re: [PATCH] Bluetooth: hci_bcm: fix double-free irq on removal

2019-02-26 Thread Marcel Holtmann
Hi Andreas, > after rmmod hci_uart a warning about doubly freed > interrupts appears, so do it only once. Instead disable it. > It is already implicitely freed by the devm framework. > > [ 230.782948] [ cut here ] > [ 230.787708] WARNING: CPU: 0 PID: 2715 at kernel/irq/d

RE: question about drivers/phy/renesas/phy-rcar-gen2.c

2019-02-26 Thread Yoshihiro Shimoda
Hello, (Sergei made this code, so I added his email as CC) I'm sorry for the delayed response. > From: Julia Lawall, Sent: Sunday, February 3, 2019 4:03 PM > > Hello, > > I was wondering whether phy-rcar-gen2.c would use dynamically allocated > device nodes? I'm sorry, but what is "dynamically

[PATCH v3 2/4] drm/panel: simple: Add support for OSD101T2045-53TS

2019-02-26 Thread Peter Ujfalusi
Add support for the OSD101T2045-53TS 10.1" 1920x1200 panel from One Stop Displays to the panel-simple driver Signed-off-by: Peter Ujfalusi --- drivers/gpu/drm/panel/panel-simple.c | 34 1 file changed, 34 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple

Re: [PATCH] Bluetooth: hci_ldisc: Postpone HCI_UART_PROTO_READY bit set in hci_uart_set_proto()

2019-02-26 Thread Marcel Holtmann
Hi Kefeng, > task A:task B: > hci_uart_set_proto flush_to_ldisc > - p->open(hu) -> h5_open //alloc h5 - receive_buf > - set_bit HCI_UART_PROTO_READY - tty_port_default_receive_buf > - hci_uart_register_dev - tty_ldisc_re

Re: [PATCH] media: venus: core: fix max load for msm8996 and sdm845

2019-02-26 Thread Stanimir Varbanov
Hi Alex, Thanks for the fix, and I'm sorry for the typo. On 2/26/19 10:17 AM, Alexandre Courbot wrote: > Patch commit de5a0bafcfc4 ("media: venus: core: correct maximum hardware > load for sdm845") meant to increase the maximum hardware load for sdm845, > but ended up changing the one for msm8996

Re: [PATCH v5 0/2] Clean up UFSHC driver

2019-02-26 Thread Lee Jones
On Sat, 23 Feb 2019, Marc Gonzalez wrote: > Martin, > > Could you send this series to -next so that it gets some exposure > and testing during the 5.1 RC cycle? Replying for the purpose of providing some gravitas to this set. These patches are required to support some exciting consumer hardware

RE: question about drivers/phy/renesas/phy-rcar-gen2.c

2019-02-26 Thread Julia Lawall
On Tue, 26 Feb 2019, Yoshihiro Shimoda wrote: > Hello, > (Sergei made this code, so I added his email as CC) > > I'm sorry for the delayed response. > > > From: Julia Lawall, Sent: Sunday, February 3, 2019 4:03 PM > > > > Hello, > > > > I was wondering whether phy-rcar-gen2.c would use dynamica

Re: [PATCH v2 1/3] Bluetooth: btusb: add QCA6174A compatible properties

2019-02-26 Thread Marcel Holtmann
Hi Brian, > We may need to specify a GPIO wake pin for this device, so add a > compatible property for it. > > There are at least to USB PID/VID variations of this chip: one with a > Lite-On ID and one with an Atheros ID. > > Signed-off-by: Brian Norris > Reviewed-by: Matthias Kaehlcke > --- >

Re: [PATCH net-next] mlxsw: spectrum: acl: Use struct_size() in kzalloc()

2019-02-26 Thread Jiri Pirko
Mon, Feb 25, 2019 at 08:01:32PM CET, gust...@embeddedor.com wrote: >One of the more common cases of allocation size calculations is finding >the size of a structure that has a zero-sized array at the end, along >with memory for some number of elements for that array. For example: > >struct foo { >

Re: [bug report][stable] perf probe: failed to add events

2019-02-26 Thread Greg KH
On Tue, Feb 26, 2019 at 03:31:14PM +0800, Joseph Qi wrote: > Hi, > > I'm using kernel v4.19.24 and have found that there is an issue when > using perf probe to define a new dynamic tracepoint. > > $ perf probe -a handle_mm_fault > Failed to write event: Numerical result out of range > Error: Fa

Re: [PATCH 1/3] dt-bindings: imx-ocotp: Add i.MX8MQ compatible

2019-02-26 Thread Abel Vesa
On 19-02-11 17:50:09, Lucas Stach wrote: > Add compatible for i.MX8MQ and add both i.MX7D/S and i.M8MQ > to the description. Hi Lucas, This patchset does not apply on linux-next anymore due to the new additions in the compatible lists (imx6ull/imx6ulz) in imx-ocotp. Can you please resend ? Than

RE: [PATCH v5 1/2] scsi: ufs: Do not disable vccq in UFSHC driver

2019-02-26 Thread Avri Altman
> > Commit 60f0187031c0 ("disable vccq if it's not needed by UFS device") > introduced a small power optimization as a driver quirk: ignore the > vccq load specified in the UFSHC DT node when said host controller > is connected to specific Flash chips (Samsung and Hynix currently). > > Unfortunat

Re: [PATCH v2 4/7] PCI: qcom: Use clk_bulk API for 2.4.0 controllers

2019-02-26 Thread Stanimir Varbanov
Hi Bjorn, Thanks for the patch! On 2/19/19 8:04 AM, Bjorn Andersson wrote: > Before introducing the QCS404 platform, which uses the same PCIe > controller as IPQ4019, migrate this to use the bulk clock API, in order > to make the error paths slighly cleaner. > > Reviewed-by: Niklas Cassel > Sig

RE: [PATCH v5 2/2] scsi: ufs: Remove unused device quirks

2019-02-26 Thread Avri Altman
> > The UFSHC driver defines a few quirks that are not used anywhere: > > UFS_DEVICE_QUIRK_BROKEN_LCC > UFS_DEVICE_NO_VCCQ > UFS_DEVICE_QUIRK_NO_LINK_OFF > UFS_DEVICE_NO_FASTAUTO > > Let's remove them. > > Signed-off-by: Marc Gonzalez Acked-by: Avri Altman

Re: [PATCH] security: keys: add NULL checking for key->type->instantiate

2019-02-26 Thread Geliang Tang
On Wed, Feb 06, 2019 at 10:26:53PM +, David Howells wrote: > Geliang Tang wrote: > > > key->type->instantiate can be NULL, add NULL checking to prevent > > NULL pointer dereference in __key_instantiate_and_link(). > > Do you have an oops report or test case for this? > > David Here is the

Re: [PATCH v4 0/3] Add quirk for reading BD_ADDR from fwnode property

2019-02-26 Thread Marcel Holtmann
Hi Matthias, > On some systems the Bluetooth Device Address (BD_ADDR) isn't stored > on the Bluetooth chip itself. One way to configure the address is > through the device tree (patched in by the bootloader). The btqcomsmd > driver is an example, it can read the address from the DT property > 'loc

Re: [PATCH] security: keys: add NULL checking for key->type->instantiate

2019-02-26 Thread Geliang Tang
On Wed, Feb 06, 2019 at 10:26:53PM +, David Howells wrote: > Geliang Tang wrote: > > > key->type->instantiate can be NULL, add NULL checking to prevent > > NULL pointer dereference in __key_instantiate_and_link(). > > Do you have an oops report or test case for this? > > David Here is the

Re: [PATCH v2] ARM: tegra: enforce PM requirement

2019-02-26 Thread Russell King - ARM Linux admin
On Tue, Feb 26, 2019 at 01:55:37PM +0530, Sameer Pujar wrote: > The requirement for this came while adding runtime PM support for HDA > driver. There were concerns about driver explicitly handling !PM case. > In general, drivers need to handle !PM case with work arounds for > managing clocks and po

[PATCH] mm,mremap: Bail out earlier in mremap_to under map pressure

2019-02-26 Thread Oscar Salvador
When using mremap() syscall in addition to MREMAP_FIXED flag, mremap() calls mremap_to() which does the following: 1) unmaps the destination region where we are going to move the map 2) If the new region is going to be smaller, we unmap the last part of the old region Then, we will eventually

Re: [PATCH 1/4] dt-bindings: nvmem: Add STM32 factory-programmed romem

2019-02-26 Thread Fabrice Gasnier
On 2/25/19 5:53 PM, Rob Herring wrote: > On Wed, Jan 30, 2019 at 05:38:53PM +0100, Fabrice Gasnier wrote: >> Add documentation for STMicroelectronics STM32 Factory-programmed >> read only memory area. >> >> Signed-off-by: Fabrice Gasnier >> --- >> .../devicetree/bindings/nvmem/st,stm32-romem.txt

Re: [Xen-devel] xen/evtchn and forced threaded irq

2019-02-26 Thread Roger Pau Monné
On Mon, Feb 25, 2019 at 01:55:42PM +, Julien Grall wrote: > Hi Oleksandr, > > On 25/02/2019 13:24, Oleksandr Andrushchenko wrote: > > On 2/22/19 3:33 PM, Julien Grall wrote: > > > Hi, > > > > > > On 22/02/2019 12:38, Oleksandr Andrushchenko wrote: > > > > On 2/20/19 10:46 PM, Julien Grall wro

[PATCH v5 0/3] Add Stratix 10 PCIe Root Port support

2019-02-26 Thread Ley Foon Tan
Add PCIe Root Port support for Stratix 10 device and also update device tree binding documentation. v4 -> v5: - - Add struct altera_pcie_ops - Add count checking in s10_tlp_read_packet() v3 -> v4: - - Separate Kconfig change to a patch - Change cast to mask v2 -> v3: - -

[PATCH v5 1/3] PCI: altera: Add Stratix 10 PCIe support

2019-02-26 Thread Ley Foon Tan
Add PCIe Root Port support for Stratix 10 device. Main differences compare with PCIe Root Port IP on Cyclone V and Arria 10 devices: - HIP interface to access Root Port configuration register. - TLP programming flow: - One REG0 register - Don't need to check alignment Signed-off-by: Ley Foon

[PATCH v5 3/3] dt-bindings: PCI: altera: Add altr,pcie-root-port-2.0

2019-02-26 Thread Ley Foon Tan
Add support for altr,pcie-root-port-2.0. Signed-off-by: Ley Foon Tan Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/pci/altera-pcie.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pci/altera-pcie.txt b/Documentation/d

[PATCH v5 2/3] PCI: altera: Enable driver on ARM64

2019-02-26 Thread Ley Foon Tan
Enable PCIE_ALTERA on ARM64 platform. Signed-off-by: Ley Foon Tan --- drivers/pci/controller/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/Kconfig b/drivers/pci/controller/Kconfig index 6671946dbf66..6012f3059acd 100644 --- a/drivers/pci/contr

Re: [PATCH] iommu/io-pgtable-arm-v7s: only kmemleak_ignore L2 tables

2019-02-26 Thread Joerg Roedel
On Mon, Feb 25, 2019 at 08:21:46AM +0800, Nicolas Boichat wrote: > Joerg: Just to make sure, is this patch in your queue? Thanks. It is now, thanks.

[PATCH] devpts: Use simple_dentry_operations

2019-02-26 Thread Fam Zheng
With this, the pty dentry is dropped once we d_delete it. This makes sense since in devpts_pty_new we always create a new dentry with d_alloc_name(). Previously, without providing a .op_delete, we would end up leaving garbage in dentry_hashtable. As a matter of fact, the d_hash of the garbage are

Re: [PATCH v2] kernel: release ptraced tasks before zap_pid_ns_processes

2019-02-26 Thread Jiri Slaby
On 10. 01. 19, 18:52, Andrei Vagin wrote: > Currently, exit_ptrace() adds all ptraced tasks in a dead list, than > zap_pid_ns_processes() waits all tasks in a current pidns, and only > then tasks from the dead list are released. > > zap_pid_ns_processes() can stuck on waiting tasks from the dead l

Re: [PATCH] fix flush_tlb_all typo

2019-02-26 Thread Joerg Roedel
On Mon, Feb 11, 2019 at 03:50:33PM +, Tom Murphy wrote: > Fix typo, flush_tlb_all should be flush_iotlb_all > > Signed-off-by: Tom Murphy Applied, thanks.

Re: [PATCH v2 2/2] Input: add Apple SPI keyboard and trackpad driver.

2019-02-26 Thread Andy Shevchenko
On Thu, Feb 21, 2019 at 02:56:09AM -0800, Ronald Tschalär wrote: > The keyboard and trackpad on recent MacBook's (since 8,1) and > MacBookPro's (13,* and 14,*) are attached to an SPI controller instead > of USB, as previously. The higher level protocol is not publicly > documented and hence has bee

Re: [RFC PATCH] tools/memory-model: Remove (dep ; rfi) from ppo

2019-02-26 Thread Peter Zijlstra
On Mon, Feb 25, 2019 at 09:55:17AM -0800, Paul E. McKenney wrote: > Again, if you know of any code in the Linux kernel that would have > problems with aggressive optimizations based on pointer provenance, > please let me know! I've no clue what pointer provenance is to begin with.

Re: [PATCH 1/3] net: ethernet: add support for PCS and 2.5G speed

2019-02-26 Thread Nicolas.Ferre
$subject should begin with "net: macb: " Parshuram, Sorry but NACK on the series. David, This patch series seem pretty intrusive, so I would like that you wait for my explicit ACK before applying even next versions of it. More comments below... On 25/02/2019 at 18:21, Florian Fainelli wrote

Re: [PATCH] mm: migrate: add missing flush_dcache_page for non-mapped page migrate

2019-02-26 Thread Anshuman Khandual
On 02/19/2019 06:02 PM, Lars Persson wrote: > Our MIPS 1004Kc SoCs were seeing random userspace crashes with SIGILL > and SIGSEGV that could not be traced back to a userspace code > bug. They had all the magic signs of an I/D cache coherency issue. > > Now recently we noticed that the /proc/sys

[PATCH] habanalabs: return error when failing to read/write i2c

2019-02-26 Thread Oded Gabbay
The driver can't read/write from i2c if the device is in reset or disabled. Therefore, return -EBUSY in those cases instead of 0. This change also fixes a smatch warning about uninitialized variable. Reported-by: Dan Carpenter Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/debugfs.c |

[PATCH] phy: ti-pipe3: Do not overwrite the whole PROGRAMMABILITY register

2019-02-26 Thread Rolf Evers-Fischer
From: Rolf Evers-Fischer Previously, ti_pipe3_calibrate() wrote all bits in the PCIEPHYRX_ANA_PROGRAMMABILITY register, thus overwriting bits, which should not be modified. Fix ti_pipe3_calibrate() so that it only modifies LOSD and INTERFACE bits. Signed-off-by: Rolf Evers-Fischer --- drivers/

Re: [PATCH] phy: ti-pipe3: Do not overwrite the whole PROGRAMMABILITY register

2019-02-26 Thread Kishon Vijay Abraham I
Rolf, On 26/02/19 2:54 PM, Rolf Evers-Fischer wrote: > From: Rolf Evers-Fischer > > Previously, ti_pipe3_calibrate() wrote all bits in the > PCIEPHYRX_ANA_PROGRAMMABILITY register, thus overwriting bits, > which should not be modified. > Fix ti_pipe3_calibrate() so that it only modifies LOSD and

Re: [Xen-devel] xen/evtchn and forced threaded irq

2019-02-26 Thread Andrew Cooper
On 26/02/2019 09:14, Roger Pau Monné wrote: > On Mon, Feb 25, 2019 at 01:55:42PM +, Julien Grall wrote: >> Hi Oleksandr, >> >> On 25/02/2019 13:24, Oleksandr Andrushchenko wrote: >>> On 2/22/19 3:33 PM, Julien Grall wrote: Hi, On 22/02/2019 12:38, Oleksandr Andrushchenko wrote: >

Re: [RFC PATCH] tools/memory-model: Remove (dep ; rfi) from ppo

2019-02-26 Thread Peter Zijlstra
On Mon, Feb 25, 2019 at 09:55:17AM -0800, Paul E. McKenney wrote: > But if you know of any code in the Linux kernel that needs to compare > pointers, one of which might be in the process of being freed, please > do point me at it. I'm having the utmost difficulty of understanding why that would be

Re: [PATCH v2 00/12] Support using MSI interrupts in ntb_transport

2019-02-26 Thread Joerg Roedel
On Wed, Feb 13, 2019 at 10:54:42AM -0700, Logan Gunthorpe wrote: > iommu/vt-d: Add helper to set an IRTE to verify only the bus number > iommu/vt-d: Allow interrupts from the entire bus for aliased devices Applied these two to the iommu tree, thanks.

[PATCH RFC] mac80211: Use IFF_ECHO to force delivery of tx_status frames

2019-02-26 Thread Julius Niedworok
At Technical University of Munich we use MAC 802.11 TX status frames to perform several measurements in MAC 802.11 setups. With ath based drivers this was possible until commit d94a461d7a7df6 ("ath9k: use ieee80211_tx_status_noskb where possible") as the driver ignored the IEEE80211_TX_CTL_REQ_TX_

Re: [Xen-devel] xen/evtchn and forced threaded irq

2019-02-26 Thread Roger Pau Monné
On Tue, Feb 26, 2019 at 09:30:07AM +, Andrew Cooper wrote: > On 26/02/2019 09:14, Roger Pau Monné wrote: > > On Mon, Feb 25, 2019 at 01:55:42PM +, Julien Grall wrote: > >> Hi Oleksandr, > >> > >> On 25/02/2019 13:24, Oleksandr Andrushchenko wrote: > >>> On 2/22/19 3:33 PM, Julien Grall wrot

Re: [RFC PATCH v1 10/25] printk: redirect emit/store to new ringbuffer

2019-02-26 Thread Petr Mladek
On Mon 2019-02-25 17:41:50, John Ogness wrote: > On 2019-02-25, Petr Mladek wrote: > >> >> vprintk_emit and vprintk_store are the main functions that all printk > >> >> variants eventually go through. Change these to store the message in > >> >> the new printk ring buffer that the printk kthread i

Re: [PATCH] phy: ti-pipe3: Do not overwrite the whole PROGRAMMABILITY register

2019-02-26 Thread Rolf Evers-Fischer
Kishon, On Tue, 26 Feb 2019, Kishon Vijay Abraham I wrote: > Rolf, > > On 26/02/19 2:54 PM, Rolf Evers-Fischer wrote: > > From: Rolf Evers-Fischer > > > > Previously, ti_pipe3_calibrate() wrote all bits in the > > PCIEPHYRX_ANA_PROGRAMMABILITY register, thus overwriting bits, > > which should

RE: [Xen-devel] xen/evtchn and forced threaded irq

2019-02-26 Thread Paul Durrant
> -Original Message- > From: Xen-devel [mailto:xen-devel-boun...@lists.xenproject.org] On Behalf Of > Andrew Cooper > Sent: 26 February 2019 09:30 > To: Roger Pau Monne ; Julien Grall > > Cc: Juergen Gross ; Stefano Stabellini > ; Oleksandr > Andrushchenko ; linux-kernel@vger.kernel.org

Re: [PATCH] mm: migrate: add missing flush_dcache_page for non-mapped page migrate

2019-02-26 Thread Lars Persson
On Tue, Feb 26, 2019 at 10:23 AM Anshuman Khandual wrote: > On 02/19/2019 06:02 PM, Lars Persson wrote: > > Our MIPS 1004Kc SoCs were seeing random userspace crashes with SIGILL > > and SIGSEGV that could not be traced back to a userspace code > > bug. They had all the magic signs of an I/D cache

Re: [PATCH 4.20 161/183] mac80211: Change default tx_sk_pacing_shift to 7

2019-02-26 Thread Toke Høiland-Jørgensen
Greg Kroah-Hartman writes: > 4.20-stable review patch. If anyone has any objections, please let me > know. LGTM. Any chance of getting this into 4.19 as well? It doesn't apply as-is, but I can send an equivalent patch (where?). -Toke

Re: [PATCH v7] PCI: imx6: limit DBI register length

2019-02-26 Thread Stefan Agner
On 25.02.2019 21:19, Bjorn Helgaas wrote: > [+cc Thinh] > > On Mon, Feb 25, 2019 at 10:52 AM Trent Piepho wrote: >> On Mon, 2019-02-25 at 16:15 +, Leonard Crestez wrote: >> > On Mon, 2019-02-25 at 17:02 +0100, Stefan Agner wrote: >> > > Define the length of the DBI registers and limit config

  1   2   3   4   5   6   7   8   9   10   >