linux-next: Tree for Feb 22

2019-02-21 Thread Stephen Rothwell
Hi all, Changes since 20190221: New tree: devfreq The powerpc tree gained conflicts against the dma-mapping tree and a build failure for which I reverted a commit. The nfs-anna tree gained a conflict against the nfs tree. The swiotlb tree gained a conflict against the powerpc tree. The rpmsg

[PATCH] kbuild: move -gsplit-dwarf, -gdwarf-4 option tests to Kconfig

2019-02-21 Thread Masahiro Yamada
CONFIG_DEBUG_INFO_SPLIT and CONFIG_DEBUG_INFO_DWARF4 enable extra dwarf options if supported. You never know if they are really enabled since Makefile may silently turn them off. The actual behavior will match to the kernel configuration by testing those compiler flags in the Kconfig stage.

Re: [PATCH V5 5/8] clk: mediatek: add MUX_GATE_FLAGS_2

2019-02-21 Thread Stephen Boyd
Quoting mtk14994 (2019-02-20 18:34:11) > Dear Stephen, > > + unsigned char mux_flags; > > > > Why isn't it an unsigned long? Isn't this supposed to match the > > frameworks version of the clk flags? > > > it is unsigned char mux_flags ,becasuse struct clk_mux { > > > > u8

Re: [PATCH v4 1/2] media: uapi: Add H264 low-level decoder API compound controls.

2019-02-21 Thread Tomasz Figa
Hi Maxime, On Wed, Feb 20, 2019 at 11:17 PM Maxime Ripard wrote: > > From: Pawel Osciak > > Stateless video codecs will require both the H264 metadata and slices in > order to be able to decode frames. > > This introduces the definitions for a new pixel format for H264 slices that > have been

Re: [PATCH v4 00/12] Mediatek MT8183 clock and scpsys support

2019-02-21 Thread Stephen Boyd
Quoting Matthias Brugger (2019-02-21 00:36:24) > > > On 20/02/2019 20:18, Stephen Boyd wrote: > > > > What's the merge plan here? Do you want me to apply these patches to clk > > tree? Will someone be sending me a pull request for mediatek clk changes > > this cycle? It's getting pretty late

Re: [PATCH] iommu/vt-d: Handle hotplug devices' default identity mapping setting

2019-02-21 Thread Lu Baolu
Hi James, On 2/22/19 2:38 PM, James Dong wrote: Tried this patch, and the same DMAR fault message came out. Guess it is because of the iommu code path for hotplug devices. If a hotplug device is rescanned after removal, iommu_bus_notifier will be called as part of the notifier chains to

Re: [PATCH v2] iwlwifi: mvm: Use div_s64 instead of do_div in iwl_mvm_debug_range_resp

2019-02-21 Thread Luciano Coelho
On Thu, 2019-02-21 at 16:13 -0800, Nick Desaulniers wrote: > On Thu, Feb 21, 2019 at 12:08 AM Nathan Chancellor > wrote: > > Clang warns: > > > > drivers/net/wireless/intel/iwlwifi/mvm/ftm-initiator.c:465:2: > > warning: > > comparison of distinct pointer types ('typeof ((rtt_avg)) *' (aka > >

Re: [PATCH -next] habanalabs: use GFP_ATOMIC under spin lock

2019-02-21 Thread Greg Kroah-Hartman
On Fri, Feb 22, 2019 at 09:11:17AM +0200, Oded Gabbay wrote: > On Fri, Feb 22, 2019 at 9:04 AM Greg Kroah-Hartman > wrote: > > > > On Fri, Feb 22, 2019 at 05:46:01AM +, Wei Yongjun wrote: > > > A spin lock is taken here so we should use GFP_ATOMIC. > > > > > > Fixes: 0feaf86d4e69

[PATCH v2 4/6] kbuild: simplify single target rules

2019-02-21 Thread Masahiro Yamada
The dependency will be checked anyway after Kbuild descends into a sub-directory. Skip object/source dependency checks in top Makefile. VPATH can be simpler since the top Makefile no longer checks the presence of the source file, which is located in in the external module directory. One good

[PATCH v2 2/6] kbuild: make -r/-R effective in top Makefile for old Make versions

2019-02-21 Thread Masahiro Yamada
Adding -rR to MAKEFLAGS is important because we do not want to be bothered by built-in implicit rules or variables. One problem that used to exist in older GNU Make versions is MAKEFLAGS += -rR ... does not become effective in the current Makefile. When you are building with O= option, it

[PATCH v2 1/6] kbuild: move tools_silent to a more relevant place

2019-02-21 Thread Masahiro Yamada
This would disturb the change the sub-make part. Move it near the tools/ target. Signed-off-by: Masahiro Yamada --- Changes in v2: None Makefile | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bf4e77b..82091b8 100644 --- a/Makefile +++

[PATCH v2 3/6] kbuild: remove empty rules for makefiles

2019-02-21 Thread Masahiro Yamada
The previous commit made 'MAKEFLAGS += -rR' effective in the top Makefile regardless of O= option, GNU Make versions. The top Makefile does not need to cancel implicit rules for makefiles. There is still one place where an empty rule is useful. Since -rR is effective only after sub-make, GNU

[PATCH v2 6/6] kbuild: move ".config not found!" message from Kconfig to Makefile

2019-02-21 Thread Masahiro Yamada
If you run "make" in a pristine source tree, currently Kbuild will start to build Kconfig to let it show the error message. It would be more straightforward to check it in Makefile and let it fail immediately. Signed-off-by: Masahiro Yamada --- Changes in v2: - New patch Makefile

[PATCH] net: nfc: Fix NULL dereference on nfc_llcp_build_tlv fails

2019-02-21 Thread Yue Haibing
From: YueHaibing KASAN report this: BUG: KASAN: null-ptr-deref in nfc_llcp_build_gb+0x37f/0x540 [nfc] Read of size 3 at addr by task syz-executor.0/5401 CPU: 0 PID: 5401 Comm: syz-executor.0 Not tainted 5.0.0-rc7+ #45 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS

[PATCH v2 5/6] kbuild: invoke syncconfig if include/config/auto.conf.cmd is missing

2019-02-21 Thread Masahiro Yamada
If include/config/auto.conf.cmd is lost for some reasons, it is not self-healing, so the top Makefile misses to run syncconfig. Move include/config/auto.conf.cmd to the target side. I used a pattern rule instead of a normal rule here although it is a bit gross. If the rule were written with a

RE: [PATCH] iommu/vt-d: Handle hotplug devices' default identity mapping setting

2019-02-21 Thread James Dong
Baolu: Sorry that my last reply email seems not text format. Resend it now. Thanks for your comments and your patch. Please find below our responses to each of your comments: > What does "I/O operation won't work" exactly mean here? Do you see any > IOMMU fault message? Or, something doesn't

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

2019-02-21 Thread Christophe Leroy
Le 22/02/2019 à 08:14, Stephen Rothwell a écrit : Hi all, After merging the powerpc tree, today's linux-next build (powerpc allyesconfig) failed like this: make[4]: *** No rule to make target 'arch/powerpc/mm/ptdump/core.o', needed by 'arch/powerpc/mm/ptdump/built-in.a'. Caused by commit

Re: [PATCH v2 08/10] hikey960: Support usb functionality of Hikey960

2019-02-21 Thread Chunfeng Yun
On Tue, 2019-02-19 at 11:20 +0800, Chen Yu wrote: > Hi, > > On 2019/2/19 10:50, Chunfeng Yun wrote: > >> + if (ret) > >> + hisi_hikey_usb->typec_vbus_enable_val = 1; > >> + > >> + hisi_hikey_usb->typec_vbus = devm_gpiod_get(dev, "typec-vbus", > >> +

Re: [PATCH v2 12/26] userfaultfd: wp: apply _PAGE_UFFD_WP bit

2019-02-21 Thread Peter Xu
On Thu, Feb 21, 2019 at 12:44:02PM -0500, Jerome Glisse wrote: > On Tue, Feb 12, 2019 at 10:56:18AM +0800, Peter Xu wrote: > > Firstly, introduce two new flags MM_CP_UFFD_WP[_RESOLVE] for > > change_protection() when used with uffd-wp and make sure the two new > > flags are exclusively used.

Re: [PATCH] x86, retpolines: raise limit for generating indirect calls from switch-case

2019-02-21 Thread Jesper Dangaard Brouer
On Thu, 21 Feb 2019 23:19:41 +0100 Daniel Borkmann wrote: > Recent work on XDP from Björn and Magnus additionally found that > manually transforming the XDP return code switch statement with > more than 5 cases into if-else combination would result in a > considerable speedup in XDP layer due to

Re: Collaboration

2019-02-21 Thread Robert Borg
Good Morning! I write to request your co-operation in my desire to find a foreign partner who will assist me in the relocation and Transfer of some amount of money which I have made available for investment purpose abroad in other to secure the future of my children after retirement. This fund

Re: [PATCH 2/2] test_firmware: silence underflow warning in test_dev_config_update_u8()

2019-02-21 Thread Dan Carpenter
I've looked at this some more and I don't think it's a good idea to change the type of U8_MAX. Right now INT_MAX is int and USHRT_MAX is unsigned short etc. That's the only intuitive thing for them to be. regards, dan carpenter

[PATCH v2] perf record: Add support for limit perf output file size

2019-02-21 Thread Jiwei Sun
The patch adds a new option to limit the output file size, then based on it, we can create a wrapper of the perf command that uses the option to avoid exhausting the disk space by the unconscious user. Signed-off-by: Jiwei Sun --- v2 changes: - make patch based on latest Arnaldo's perf/core,

[PATCH 5/5] net: dsa: fix a leaked reference by adding missing of_node_put

2019-02-21 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: ./net/dsa/port.c:294:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented

[PATCH 2/5] net: mscc: ocelot: fix a leaked reference by adding a missing of_node_put

2019-02-21 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: ./drivers/net/ethernet/mscc/ocelot_board.c:293:3-9: ERROR: missing of_node_put; acquired a node pointer

[PATCH 1/5] net: dsa: fix a leaked reference by adding a missing of_node_put

2019-02-21 Thread Wen Yang
The call to of_get_child_by_name returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. Detected by coccinelle with the following warnings: ./drivers/net/dsa/rtl8366rb.c:510:2-8: ERROR: missing of_node_put; acquired a node pointer with

Re: [PATCH v2 3/5] soc: qcom: socinfo: Expose custom attributes

2019-02-21 Thread Greg KH
On Fri, Feb 22, 2019 at 12:13:59AM +0200, Laurent Pinchart wrote: > Hi Bjorn, > > On Thu, Feb 21, 2019 at 07:57:42AM -0800, Bjorn Andersson wrote: > > On Thu 21 Feb 04:18 PST 2019, Laurent Pinchart wrote: > > > > > Hi Vaishali, > > > > > > Thank you for the patch. > > > > > > On Wed, Feb 20,

[PATCH v4 2/2] drm/qxl: remove conflicting framebuffers earlier

2019-02-21 Thread Gerd Hoffmann
Add error checking while being at it. Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_drv.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/qxl/qxl_drv.c b/drivers/gpu/drm/qxl/qxl_drv.c index bb81e310eb6d..578d867a81d5 100644 ---

[PATCH 4/5] net: xilinx: fix a leaked reference by adding missing of_node_put

2019-02-21 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 warning: ./drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1624:1-7: ERROR: missing of_node_put; acquired a node

[PATCH 3/5] mt76: fix a leaked reference by adding a missing of_node_put

2019-02-21 Thread Wen Yang
The call to of_find_node_by_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: ./drivers/net/wireless/mediatek/mt76/eeprom.c:58:2-8: ERROR: missing of_node_put; acquired a node

linux-next: build failure after merge of the powerpc tree

2019-02-21 Thread Stephen Rothwell
Hi all, After merging the powerpc tree, today's linux-next build (powerpc allyesconfig) failed like this: make[4]: *** No rule to make target 'arch/powerpc/mm/ptdump/core.o', needed by 'arch/powerpc/mm/ptdump/built-in.a'. Caused by commit 5df1cfa43394 ("powerpc: Move page table dump files

Re: [PATCH v2 2/2] drm/qxl: kick out vgacon

2019-02-21 Thread Gerd Hoffmann
Hi, > PCI_COMMAND_MEM and PCI_COMMAND_IO. There doesn't seem to be any > separate bits really. That's at least what I've gleaned from vgaarb.c. > The magic legacy vga decode bits only seem to exist on bridges, maybe > we can extract that logic from vgaarb.c (yes this is all a bit > spiralling

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

2019-02-21 Thread Peter Xu
On Thu, Feb 21, 2019 at 12:29:19PM -0500, Jerome Glisse 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. > > > > Signed-off-by: Andrea Arcangeli > > Signed-off-by: Peter Xu > > Minor

Re: [PATCH -next] habanalabs: use GFP_ATOMIC under spin lock

2019-02-21 Thread Oded Gabbay
On Fri, Feb 22, 2019 at 9:04 AM Greg Kroah-Hartman wrote: > > On Fri, Feb 22, 2019 at 05:46:01AM +, Wei Yongjun wrote: > > A spin lock is taken here so we should use GFP_ATOMIC. > > > > Fixes: 0feaf86d4e69 ("habanalabs: add virtual memory and MMU modules") > > Signed-off-by: Wei Yongjun > >

Re: [PATCH] mm, oom: OOM killer use rss size without shmem

2019-02-21 Thread Michal Hocko
On Fri 22-02-19 13:37:33, Junil Lee wrote: > The oom killer use get_mm_rss() function to estimate how free memory > will be reclaimed when the oom killer select victim task. > > However, the returned rss size by get_mm_rss() function was changed from > "mm, shmem: add internal shmem resident

Re: [PATCH -next] habanalabs: use GFP_ATOMIC under spin lock

2019-02-21 Thread Greg Kroah-Hartman
On Fri, Feb 22, 2019 at 05:46:01AM +, Wei Yongjun wrote: > A spin lock is taken here so we should use GFP_ATOMIC. > > Fixes: 0feaf86d4e69 ("habanalabs: add virtual memory and MMU modules") > Signed-off-by: Wei Yongjun > --- > drivers/misc/habanalabs/memory.c | 2 +- > 1 file changed, 1

Re: [PATCH 2/4] misc: hpilo: Exclude unsupported device via blacklist

2019-02-21 Thread Greg KH
On Thu, Feb 21, 2019 at 09:35:07PM -0700, Jerry Hoemann wrote: > On Thu, Feb 21, 2019 at 09:33:55AM +0100, Greg KH wrote: > > On Thu, Feb 21, 2019 at 04:04:40PM +0800, Matt Hsiao wrote: > > > > +static const struct pci_device_id ilo_blacklist[] = { > > > + /* auxiliary iLO */ > > > +

Re: [PATCH 4/4] misc: hpilo: Update driver version

2019-02-21 Thread Greg KH
On Thu, Feb 21, 2019 at 09:11:11PM -0700, Jerry Hoemann wrote: > On Thu, Feb 21, 2019 at 09:32:56AM +0100, Greg KH wrote: > ... > > > > > > -MODULE_VERSION("1.5.0"); > > > +MODULE_VERSION("1.5.1"); > > > > This line means nothing, it should just be removed entirely. The > > "version" of the

Re: [PATCH 4.14 00/23] 4.14.103-stable review

2019-02-21 Thread Naresh Kamboju
On Thu, 21 Feb 2019 at 20:10, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.14.103 release. > There are 23 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: BUG: optimized kprobes illegal instructions in v4.19 stable kernels

2019-02-21 Thread Greg Kroah-Hartman
On Thu, Feb 21, 2019 at 07:17:11PM -0500, Mathieu Desnoyers wrote: > - On Feb 21, 2019, at 7:10 PM, Russell King, ARM Linux > li...@armlinux.org.uk wrote: > > > On Thu, Feb 21, 2019 at 03:02:57PM -0500, Mathieu Desnoyers wrote: > >> Hi Arnd, Russell, Linus, > >> > >> Can we ensure the arm32

[PATCH net-next] kcm: Remove unnecessary SLAB_PANIC for kmem_cache_create() in kcm_init

2019-02-21 Thread Yue Haibing
From: YueHaibing There has check NULL on kmem_cache_create on failure in kcm_init, no need use SLAB_PANIC to panic the system. Signed-off-by: YueHaibing --- net/kcm/kcmsock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/kcm/kcmsock.c b/net/kcm/kcmsock.c index

Re: [PATCH] mm/hugetlb: Fix unsigned overflow in __nr_hugepages_store_common()

2019-02-21 Thread Jing Xiangfeng
On 2019/2/20 7:45, Mike Kravetz wrote: > On 2/18/19 1:27 AM, Michal Hocko wrote: >> On Sat 16-02-19 21:31:12, Jingxiangfeng wrote: >>> From: Jing Xiangfeng >>> >>> We can use the following command to dynamically allocate huge pages: >>> echo NR_HUGEPAGES > /proc/sys/vm/nr_hugepages >>> The

Synaptics RMI4 - accessing /dev/v4l-touch0 breaks everything

2019-02-21 Thread Mantas Mikulėnas
Hello, I have a laptop with a Synaptics touchpad via RMI4/i2c-hid. I noticed that it is also exposed as a "/dev/v4l-touch0" device (/sys/devices/rmi4-00/rmi4-00.fn54/video4linux/v4l-touch0). Because it has "v4l" in its name, I was stupid enough to run the `mpv` video player on it. Now I have a

Re: [PATCH v5] panic: Avoid the extra noise dmesg

2019-02-21 Thread Feng Tang
One small cleanup of unneeded change in last post: >From 4ecbdfe1b398aa2285a696392eddeffb109d5463 Mon Sep 17 00:00:00 2001 From: Feng Tang Date: Thu, 21 Feb 2019 16:23:32 +0800 Subject: [PATCH v5] panic: Avoid the extra noise dmesg When kernel panic happens, it will first print the panic call

Re: [PATCH] i2c: mediatek: modify threshold passed to i2c_get_dma_safe_msg_buf()

2019-02-21 Thread Hsin-Yi Wang
Thanks for the solution. Previously we were testing if the driver can handle zero-length transfer, but it turns out it will timeout. (Also checked this from mtk's datasheet) Adding original owner qii.wang to verify that. We'll apply this after verification. On Sat, Feb 16, 2019 at 12:36 AM

[PATCH v5] panic: Avoid the extra noise dmesg

2019-02-21 Thread Feng Tang
When kernel panic happens, it will first print the panic call stack, then the ending msg like: [ 35.743249] ---[ end Kernel panic - not syncing: Fatal exception [ 35.749975] [ cut here ] The above message are very useful for debugging. But if system is configured to

Re: [PATCH v2] cfi: fix deadloop in cfi_cmdset_0002.c do_write_buffer

2019-02-21 Thread Vignesh R
On 20/02/19 2:17 AM, Liu Jian wrote: > In function do_write_buffer(), in the for loop, there is a case > chip_ready() returns 1 while chip_good() returns 0, so it never > break the loop. > To fix this, chip_good() is enough and it should timeout if it stay > bad for a while. > > Fixes:

Re: [PATCH] nvmet: disable direct I/O when unavailable

2019-02-21 Thread Johannes Thumshirn
On 22/02/2019 01:41, Chaitanya Kulkarni wrote: [...] > > As per specified in the patch, this is only useful for testing, then we > should modify the test scripts so that on creation of the ctrl we switch > to the buffered I/O before running fio. Or on any other file-system that does not

Re: [PATCH] bpfilter: re-add header search paths to tools include to fix build error

2019-02-21 Thread Guenter Roeck
On 2/21/19 7:23 PM, Masahiro Yamada wrote: I thought header search paths to tools/include(/uapi) were unneeded, but it looks like a build error occurs depending on the compiler. Commit 303a339f30a9 ("bpfilter: remove extra header search paths for bpfilter_umh") reintroduced the build error

Re: [PATCH] [V2]r8152: Add support for MAC address pass through on RTL8153-BD

2019-02-21 Thread David Chen
Hi Jiri, Thanks for your comments. BND_MASK and BD_MASK are defined separately, and I have tested RTL8153-BD and RTL8153-BND devices, both work as expected. Thanks and Regards, -David > Jiri Slaby 於 2019年2月18日 下午10:22 寫道: > >> On 18. 02. 19, 15:00, David Chen wrote: >> From: David Chen >>

Re: [PATCH] proc: update i_atime when reading files

2019-02-21 Thread Alexey Dobriyan
On Thu, Feb 21, 2019 at 11:37:14AM -0500, Jeremy Cline wrote: > Prior to commit 1da4d377f943 ("proc: revalidate misc dentries"), the > access, modify, and change times of files in /proc were just the current > time. Ehh, actually no. Doing $(which sleep) infinity Now the mtime and ctime

Re: [PATCH] drm/bochs: Fix the ID mismatch error

2019-02-21 Thread kra...@redhat.com
On Thu, Feb 21, 2019 at 10:44:06AM -0800, Alistair Francis wrote: > On Thu, Feb 21, 2019 at 3:52 AM kra...@redhat.com wrote: > > > > On Thu, Feb 21, 2019 at 12:33:03AM +, Alistair Francis wrote: > > > When running RISC-V QEMU with the Bochs device attached via PCIe the > > > probe of the

Re: [PATCH] iommu/vt-d: Handle hotplug devices' default identity mapping setting

2019-02-21 Thread Lu Baolu
Hi On 2/22/19 1:06 PM, Lu Baolu wrote: Do you mind checking this? diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index 6ecdcf8fc8c0..f62f30bc1339 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c @@ -2632,6 +2632,9 @@ static struct dmar_domain

[PATCH -next] habanalabs: use GFP_ATOMIC under spin lock

2019-02-21 Thread Wei Yongjun
A spin lock is taken here so we should use GFP_ATOMIC. Fixes: 0feaf86d4e69 ("habanalabs: add virtual memory and MMU modules") Signed-off-by: Wei Yongjun --- drivers/misc/habanalabs/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/habanalabs/memory.c

Re: [PATCH net-next] rocker: Add missing break for PRE_BRIDGE_FLAGS

2019-02-21 Thread David Miller
From: Florian Fainelli Date: Thu, 21 Feb 2019 18:26:46 -0800 > A missing break keyword should have been added after adding support for > PRE_BRIDGE_FLAGS. > > Reported-by: Stephen Rothwell > Fixes: 93700458ff63 ("rocker: Check Handle PORT_PRE_BRIDGE_FLAGS") > Signed-off-by: Florian Fainelli

linux-next: build failure after merge of the rpmsg tree

2019-02-21 Thread Stephen Rothwell
Hi Bjorn, After merging the rpmsg tree, today's linux-next build (arm multi_v7_defconfig) failed like this: drivers/remoteproc/remoteproc_virtio.c: In function 'rproc_add_virtio_dev': drivers/remoteproc/remoteproc_virtio.c:374:11: error: 'DMA_MEMORY_EXCLUSIVE' undeclared (first use in this

Re: [PATCH] iommu/vt-d: Handle hotplug devices' default identity mapping setting

2019-02-21 Thread Lu Baolu
Hi, On 2/22/19 10:44 AM, James Dong wrote: With specific Linux command line option such as "iommu=pt", some types of hotplug devices will be assigned to the static 1:1 iommu domain by default during kernel init. If such a hotplug device is rescanned after being removed, for example, with

[PATCH] mm, oom: OOM killer use rss size without shmem

2019-02-21 Thread Junil Lee
The oom killer use get_mm_rss() function to estimate how free memory will be reclaimed when the oom killer select victim task. However, the returned rss size by get_mm_rss() function was changed from "mm, shmem: add internal shmem resident memory accounting" commit. This commit makes the

Re: [PATCH v1 0/2] PCI/ASPM: Fix LTR issues

2019-02-21 Thread Bjorn Helgaas
On Mon, Feb 11, 2019 at 04:55:33PM -0600, Bjorn Helgaas wrote: > These are to fix a couple LTR-related issues found while investigating > https://bugzilla.kernel.org/show_bug.cgi?id=201469 > > I don't claim that these fix the whole problem of that bugzilla, but I > think it's pretty clear that

Re: [PATCH v2 05/26] mm: gup: allow VM_FAULT_RETRY for multiple times

2019-02-21 Thread Peter Xu
On Thu, Feb 21, 2019 at 11:06:55AM -0500, Jerome Glisse wrote: > On Tue, Feb 12, 2019 at 10:56:11AM +0800, Peter Xu wrote: > > This is the gup counterpart of the change that allows the VM_FAULT_RETRY > > to happen for more than once. > > > > Signed-off-by: Peter Xu > > Reviewed-by: Jérôme

Re: [PATCH] crypto: ccp: introduce SEV_GET_ID2 command

2019-02-21 Thread Herbert Xu
On Thu, Feb 14, 2019 at 07:33:29PM +, Singh, Brijesh wrote: > > > On 2/14/19 10:57 AM, Nathaniel McCallum wrote: > > I'm a little concerned that this immediately disables SEV_GET_ID. > > IMHO, we should continue to support both for a period of time. One > > justification for immediate

Re: [RESEND PATCH 1/1] headers_install.sh: Support __aligned(x) for uAPI headers

2019-02-21 Thread Masahiro Yamada
On Thu, Feb 21, 2019 at 10:29 PM Sakari Ailus wrote: > > The headers-install.sh already supports __packed conversion to > __attribute__((packed)) for uAPI headers but it does not support similar > __aligned(x) conversion. > > Add support for __aligned(x). I am not a big fan of sed scripting in

Re: [PATCH 2/4] misc: hpilo: Exclude unsupported device via blacklist

2019-02-21 Thread Jerry Hoemann
On Thu, Feb 21, 2019 at 09:33:55AM +0100, Greg KH wrote: > On Thu, Feb 21, 2019 at 04:04:40PM +0800, Matt Hsiao wrote: > > +static const struct pci_device_id ilo_blacklist[] = { > > + /* auxiliary iLO */ > > + {PCI_DEVICE_SUB(PCI_VENDOR_ID_HP, 0x3307, PCI_VENDOR_ID_HP, 0x1979)}, > > + {} >

[PATCH] Makefile INSTALL_HDR_PATH overriden

2019-02-21 Thread Justin Capella
gpg: Signature made Thu 21 Feb 2019 08:02:55 PM PST gpg:using RSA key F6CC1F4DF325EACBBE2532481F299543498470BA gpg:issuer "justincape...@gmail.com" gpg: Good signature from "Justin Capella " [ultimate] Author: Justin Capella Date: Thu Feb 21 20:02:55 2019 -0800

Re: [PATCH v2.1 04/26] mm: allow VM_FAULT_RETRY for multiple times

2019-02-21 Thread Peter Xu
On Thu, Feb 21, 2019 at 10:53:11AM -0500, Jerome Glisse wrote: > On Thu, Feb 21, 2019 at 04:56:56PM +0800, Peter Xu wrote: > > The idea comes from a discussion between Linus and Andrea [1]. > > > > Before this patch we only allow a page fault to retry once. We > > achieved this by clearing the

Re: [PATCH 4/4] misc: hpilo: Update driver version

2019-02-21 Thread Jerry Hoemann
On Thu, Feb 21, 2019 at 09:32:56AM +0100, Greg KH wrote: ... > > > > -MODULE_VERSION("1.5.0"); > > +MODULE_VERSION("1.5.1"); > > This line means nothing, it should just be removed entirely. The > "version" of the driver is the kernel version itself. Hi Greg, This doesn't hold when we do

[PATCH net-next 3/4] e1000e: Fix -Wformat-truncation warnings

2019-02-21 Thread Florian Fainelli
Provide precision hints to snprintf() since we know the destination buffer size of the RX/TX ring names are IFNAMSIZ + 5 - 1. This fixes the following warnings: drivers/net/ethernet/intel/e1000e/netdev.c: In function 'e1000_request_msix': drivers/net/ethernet/intel/e1000e/netdev.c:2109:13:

[PATCH net-next 4/4] veth: Fix -Wformat-truncation

2019-02-21 Thread Florian Fainelli
Provide a precision hint to snprintf() in order to eliminate a -Wformat-truncation warning provided below. A maximum of 11 characters is allowed to reach a maximum of 32 - 1 characters given a possible maximum value of queues using up to UINT_MAX which occupies 10 characters. Incidentally 11 is

[PATCH net-next 1/4] mlxsw: spectrum: Avoid -Wformat-truncation warnings

2019-02-21 Thread Florian Fainelli
Give precision identifiers to the two snprintf() formatting the priority and TC strings to avoid producing these two warnings: drivers/net/ethernet/mellanox/mlxsw/spectrum.c: In function 'mlxsw_sp_port_get_prio_strings': drivers/net/ethernet/mellanox/mlxsw/spectrum.c:2132:37: warning: '%d'

[PATCH net-next 2/4] net: dsa: mv88e6xxx: Fix -Wformat-security warnings

2019-02-21 Thread Florian Fainelli
We are not specifying an explicit format argument but instead passing a string litteral which causes these two warnings to show up: drivers/net/dsa/mv88e6xxx/chip.c: In function 'mv88e6xxx_irq_poll_setup': drivers/net/dsa/mv88e6xxx/chip.c:483:2: warning: format not a string literal and no format

Re: [PATCH 3/4] misc: hpilo: Do not claim unsupported hardware

2019-02-21 Thread Jerry Hoemann
On Thu, Feb 21, 2019 at 09:35:15AM +0100, Greg KH wrote: > On Thu, Feb 21, 2019 at 04:04:41PM +0800, Matt Hsiao wrote: > > Do not claim when SSID 0x0289 as the iLO features > > are not enabled/validated by the firmware. > > Can you put more information here, like _what_ hardware is not being >

Re: [PATCH 7/7] libnvdimm/pfn: Fix 'start_pad' implementation

2019-02-21 Thread Dan Williams
[ add linux-mm ] On Thu, Feb 21, 2019 at 3:47 PM Jeff Moyer wrote: > > Hi, Dan, > > Thanks for the comprehensive write-up. Comments below. > > Dan Williams writes: > > > In the beginning the pmem driver simply passed the persistent memory > > resource range to memremap and was done. With the

Re: [PATCH v2 02/26] mm: userfault: return VM_FAULT_RETRY on signals

2019-02-21 Thread Peter Xu
On Thu, Feb 21, 2019 at 10:29:56AM -0500, Jerome Glisse wrote: > On Tue, Feb 12, 2019 at 10:56:08AM +0800, Peter Xu wrote: > > The idea comes from the upstream discussion between Linus and Andrea: > > > > https://lkml.org/lkml/2017/10/30/560 > > > > A summary to the issue: there was a special

Re: [PATCH v1 0/2] rsnd: dts: change to use extended audio dmac register

2019-02-21 Thread jiada
Hi Geert On 2019/02/20 17:10, Kuninori Morimoto wrote: Hi Geert According to user reference manual for R-CAR H3 and M3-W SoCs, in order to access busif4 ~ busif7, extended audio dmac registers (PDMASAREn, PDMADAREn, PDMACHCREn) need to be used, rather than basic audio dmac registers

[PATCH v2 2/2] Drivers: hv: vmbus: Add a channel ring buffer mutex lock

2019-02-21 Thread Kimberly Brown
The "_show" functions that access channel ring buffer data are vulnerable to a race condition that can result in a NULL pointer dereference. This problem was discussed here: https://lkml.org/lkml/2018/10/18/779 To prevent this from occurring, add a new mutex lock, "ring_buffer_mutex", to the

[PATCH v2 1/2] Drivers: hv: vmbus: Refactor chan->state if statement

2019-02-21 Thread Kimberly Brown
The chan->state "if statement" was introduced in commit 6712cc9c2211 ("vmbus: don't return values for uninitalized channels"). That commit states that the purpose of the chan->state "if statement" is to prevent returning garbage or causing a kernel OOPS when the channel ring buffer is not

[PATCH v2 0/2] Fix a race condition vulnerability in "_show" functions

2019-02-21 Thread Kimberly Brown
This patchset fixes a race condition vulnerability in the "_show" functions that access a channel ring buffer. Changes in v2: - In v1, I proposed using “vmbus_connection.channel_mutex” in the “_show” functions to prevent the race condition. However, using this mutex could result in a

Re: linux-next: manual merge of the powerpc tree with the dma-mapping tree

2019-02-21 Thread Michael Ellerman
Stephen Rothwell writes: > Hi all, > > Today's linux-next merge of the powerpc tree got a conflict in: > > arch/powerpc/kernel/dma-swiotlb.c > > between commit: > > cfced786969c ("dma-mapping: remove the default map_resource implementation") > > from the dma-mapping tree and commit: > >

Re: [PATCH v3 0/5] ICL support and other enhancements for PMC Core

2019-02-21 Thread Bhardwaj, Rajneesh
On 21-Feb-19 7:55 PM, Andy Shevchenko wrote: On Thu, Feb 14, 2019 at 1:56 PM Rajneesh Bhardwaj wrote: Changes in v3: * Dropped reference to coreboot project as suggested by Thomas and Boris. * Rebased onto "for-next" branch of pdx86 tree and dropped previously accepted five patches

Re: [PATCH v2 01/26] mm: gup: rename "nonblocking" to "locked" where proper

2019-02-21 Thread Peter Xu
On Thu, Feb 21, 2019 at 10:17:42AM -0500, Jerome Glisse wrote: > On Tue, Feb 12, 2019 at 10:56:07AM +0800, Peter Xu wrote: > > There's plenty of places around __get_user_pages() that has a parameter > > "nonblocking" which does not really mean that "it won't block" (because > > it can really

Re: [PATCH] platform/x86: intel_pmc_core: Avoid a u32 overflow

2019-02-21 Thread Bhardwaj, Rajneesh
On 16-Feb-19 5:49 AM, Rajat Jain wrote: The register (SLP_S0_RES) at offset slp_s0_offset is a 32 bit register. The pmc_core_adjust_slp_s0_step() could overflow the u32 value while returning it after adjusting the step. Thus change to u64, this is already accounted for in debugfs attribute

[PATCH] scsi: qedi: Fix global-out-of-bounds bug in qedi dbg function

2019-02-21 Thread Yue Haibing
From: YueHaibing KASAN report this: BUG: KASAN: global-out-of-bounds in qedi_dbg_err+0xda/0x330 [qedi] Read of size 31 at addr c12b0ae0 by task syz-executor.0/2429 CPU: 0 PID: 2429 Comm: syz-executor.0 Not tainted 5.0.0-rc7+ #45 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996),

Re: [PATCH-tip v2 02/10] locking/rwsem: Move owner setting code from rwsem.c to rwsem.h

2019-02-21 Thread Waiman Long
On 02/21/2019 09:15 AM, Will Deacon wrote: > Hi Waiman, > > On Fri, Feb 15, 2019 at 03:50:02PM -0500, Waiman Long wrote: >> Moves all the owner setting code closer to the rwsem-xadd fast paths >> directly within rwsem.h file. >> >> For __down_read() and __down_read_killable(), it is assumed that

Re: [PATCH v4 3/3] locking/rwsem: Optimize down_read_trylock()

2019-02-21 Thread Waiman Long
On 02/21/2019 09:14 AM, Will Deacon wrote: > On Wed, Feb 13, 2019 at 05:00:17PM -0500, Waiman Long wrote: >> Modify __down_read_trylock() to optimize for an unlocked rwsem and make >> it generate slightly better code. >> >> Before this patch, down_read_trylock: >> >>0x <+0>:

Re: [f2fs-dev] [PATCH] f2fs: don't clear CP_QUOTA_NEED_FSCK_FLAG

2019-02-21 Thread Chao Yu
On 2019/2/22 10:40, Jaegeuk Kim wrote: > On 02/20, Chao Yu wrote: >> On 2019/2/20 15:25, Chao Yu wrote: >>> On 2019/2/20 15:08, Jaegeuk Kim wrote: On 02/18, Chao Yu wrote: > On 2019/2/16 12:55, Jaegeuk Kim wrote: >> On 02/13, Chao Yu wrote: >>> On 2019/2/12 10:33, Jaegeuk Kim

[PATCH] bpfilter: re-add header search paths to tools include to fix build error

2019-02-21 Thread Masahiro Yamada
I thought header search paths to tools/include(/uapi) were unneeded, but it looks like a build error occurs depending on the compiler. Commit 303a339f30a9 ("bpfilter: remove extra header search paths for bpfilter_umh") reintroduced the build error fixed by commit ae40832e53c3 ("bpfilter: fix a

Re: linux-next: manual merge of the swiotlb tree with the powerpc tree

2019-02-21 Thread Michael Ellerman
Stephen Rothwell writes: > Hi all, > > Today's linux-next merge of the swiotlb tree got a conflict in: > > kernel/dma/swiotlb.c > > between commit: > > feee96440c9c ("swiotlb: remove swiotlb_dma_supported") > > from the powerpc tree and commit: > > 71602fe6d4e9 ("swiotlb: add debugfs to

Re: [PATCH net] net: socket: set sock->sk to NULL after calling proto_ops::release()

2019-02-21 Thread Al Viro
On Thu, Feb 21, 2019 at 02:13:56PM -0800, Eric Biggers wrote: > Rather than fixing all these and relying on every socket type to get > this right forever, just make __sock_release() set sock->sk to NULL > itself after calling proto_ops::release(). Is there any case when we would want

[PATCH] iommu/vt-d: Handle hotplug devices' default identity mapping setting

2019-02-21 Thread James Dong
With specific Linux command line option such as "iommu=pt", some types of hotplug devices will be assigned to the static 1:1 iommu domain by default during kernel init. If such a hotplug device is rescanned after being removed, for example, with following sample commands: echo 1 >

Re: [f2fs-dev] [PATCH] f2fs: don't clear CP_QUOTA_NEED_FSCK_FLAG

2019-02-21 Thread Jaegeuk Kim
On 02/20, Chao Yu wrote: > On 2019/2/20 15:25, Chao Yu wrote: > > On 2019/2/20 15:08, Jaegeuk Kim wrote: > >> On 02/18, Chao Yu wrote: > >>> On 2019/2/16 12:55, Jaegeuk Kim wrote: > On 02/13, Chao Yu wrote: > > On 2019/2/12 10:33, Jaegeuk Kim wrote: > >> If we met this once, let

Re: [PATCH 4.4 00/20] 4.4.176-stable review

2019-02-21 Thread Naresh Kamboju
wn-checker-test * install-android-platform-tools-r2600 * kselftest-vsyscall-mode-native * kselftest-vsyscall-mode-none Summary kernel: 4.4.176-rc1 git repo: https://git.linaro.org/lkft/arm64-s

Re: [PATCH] perf record: Add support for limit perf output file size

2019-02-21 Thread Jiwei Sun
Hi Jirka, On 02/21/2019 05:56 PM, Jiri Olsa wrote: > On Thu, Feb 21, 2019 at 02:44:19PM +0800, Jiwei Sun wrote: >> The patch adds a new option to limit the output file size, then based >> on it, we can create a wrapper of the perf command that uses the option >> to avoid exhausting the disk space

Re: [PATCH 4.9 00/20] 4.9.160-stable review

2019-02-21 Thread Naresh Kamboju
On Thu, 21 Feb 2019 at 20:09, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.9.160 release. > There are 20 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. > >

[PATCH] soc: qcom: qmi: Change txn wait to non-interruptible

2019-02-21 Thread Chris Lew
Current QMI clients are not userspace facing, if their threads are signaled, they do not do any signal checking or propagate the ERESTARTSYS return code up. Remove the interruptible option so clients can finish their QMI transactions even if the thread is signaled. Signed-off-by: Chris Lew ---

RE: [PATCH V4 2/2] clk: imx: scu: add cpu frequency scaling support

2019-02-21 Thread Anson Huang
Hi, Stephen Best Regards! Anson Huang > -Original Message- > From: Stephen Boyd [mailto:sb...@kernel.org] > Sent: 2019年2月22日 4:48 > To: devicet...@vger.kernel.org; feste...@gmail.com; > ker...@pengutronix.de; linux-arm-ker...@lists.infradead.org; linux- > c...@vger.kernel.org;

[PATCH RESEND V6 1/2] arm64: dts: freescale: imx8qxp: add cpu opp table

2019-02-21 Thread Anson Huang
Add i.MX8QXP CPU opp table to support cpufreq. Signed-off-by: Anson Huang Acked-by: Viresh Kumar --- No changes. --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi

[PATCH RESEND V6 2/2] clk: imx: scu: add cpu frequency scaling support

2019-02-21 Thread Anson Huang
On NXP's i.MX SoCs with system controller inside, CPU frequency scaling can ONLY be done by system controller firmware, and it can ONLY be requested from secure mode, so Linux kernel has to call ARM SMC to trap to ARM-Trusted-Firmware to request system controller firmware to do CPU frequency

[PATCH net-next] rocker: Add missing break for PRE_BRIDGE_FLAGS

2019-02-21 Thread Florian Fainelli
A missing break keyword should have been added after adding support for PRE_BRIDGE_FLAGS. Reported-by: Stephen Rothwell Fixes: 93700458ff63 ("rocker: Check Handle PORT_PRE_BRIDGE_FLAGS") Signed-off-by: Florian Fainelli --- drivers/net/ethernet/rocker/rocker_main.c | 1 + 1 file changed, 1

[PATCH v7 9/9] vfio/type1: Handle different mdev isolation type

2019-02-21 Thread Lu Baolu
This adds the support to determine the isolation type of a mediated device group by checking whether it has an iommu device. If an iommu device exists, an iommu domain will be allocated and then attached to the iommu device. Otherwise, keep the same behavior as it is. Cc: Ashok Raj Cc: Jacob Pan

[PATCH v7 4/9] iommu/vt-d: Move common code out of iommu_attch_device()

2019-02-21 Thread Lu Baolu
This part of code could be used by both normal and aux domain specific attach entries. Hence move them into a common function to avoid duplication. Cc: Ashok Raj Cc: Jacob Pan Cc: Kevin Tian Signed-off-by: Lu Baolu --- drivers/iommu/intel-iommu.c | 60 ++--- 1

  1   2   3   4   5   6   7   8   9   10   >