Re: [PATCH net v4] net: mvpp2: fix the phylink mode validation

2018-12-19 Thread David Miller
From: Antoine Tenart Date: Wed, 19 Dec 2018 18:00:12 +0100 > The mvpp2_phylink_validate() sets all modes that are supported by a > given PPv2 port. An mistake made the 1baseT_Full mode being > advertised in some cases when a port wasn't configured to perform at > 10G. This patch fixes this.

Taking a break - time to look back

2018-12-19 Thread Thomas Gleixner
Folks, I'm about to vanish for a truly needed break until Jan 7th. Time to look back to an interesting year. Almost exactly a year ago, all hell broke loose and quite some people were forced to cancel their Christmas and New Year vacation and instead of spending quality time with family and

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

2018-12-19 Thread Andrey Smirnov
On Tue, Dec 18, 2018 at 1:10 PM Rob Herring wrote: > > On Tue, Dec 18, 2018 at 12:09 PM Leonard Crestez > wrote: > > > > On 12/18/2018 5:15 PM, Rob Herring wrote: > > > On Mon, Dec 17, 2018 at 08:07:02PM -0800, Andrey Smirnov wrote: > > >> Add code needed to support i.MX8MQ variant. > > >> > >

Re: [PATCH v5 2/2] phy: qualcomm: Add Synopsys High-Speed USB PHY driver

2018-12-19 Thread Shawn Guo
On Wed, Dec 19, 2018 at 10:49:38AM -0800, Jack Pham wrote: > Hi Shawn, Kishon, > > On Wed, Dec 19, 2018 at 09:07:36AM +0800, Shawn Guo wrote: > > On Tue, Dec 18, 2018 at 07:46:13PM +0530, Kishon Vijay Abraham I wrote: > > > > > > > > > On 17/12/18 6:04 AM, Shawn Guo wrote: > > > > On Tue, Dec

Re: [PATCH v5 2/2] phy: qualcomm: Add Synopsys High-Speed USB PHY driver

2018-12-19 Thread Shawn Guo
On Wed, Dec 19, 2018 at 12:01:07PM -0800, Jack Pham wrote: > Hi Shawn, > > On Tue, Nov 27, 2018 at 06:07:22PM +0800, Shawn Guo wrote: > > It adds Synopsys 28nm Femto High-Speed USB PHY driver support, which > > is usually paired with Synopsys DWC3 USB controllers on Qualcomm SoCs. > > > >

Re: [RFC PATCH] x86/speculation: Don't inherit TIF_SSBD on execve()

2018-12-19 Thread Andi Kleen
> You can always force disable SSB. In that case, all the child processes > will have SSBD on. Okay that sounds reasonable, given the below. Thanks. -Andi > > > > > Do you have a real use case where this behavior is a problem? > > > > -Andi > > Yes, we have an enterprise application partner

[PATCH v6 1/2] dt-bindings: phy: Add Qualcomm Synopsys High-Speed USB PHY binding

2018-12-19 Thread Shawn Guo
From: Sriharsha Allenki It adds bindings for Synopsys 28nm femto phy controller that supports LS/FS/HS usb connectivity on Qualcomm chipsets. Signed-off-by: Sriharsha Allenki Signed-off-by: Anu Ramanathan Signed-off-by: Bjorn Andersson Reviewed-by: Rob Herring Signed-off-by: Shawn Guo ---

[PATCH v6 0/2] Add Synopsys High-Speed USB PHY driver for Qualcomm SoCs

2018-12-19 Thread Shawn Guo
It's based on a downstream driver from Sriharsha Allenki that uses USB phy framework, and gets rewrote to adpot generic phy framework together with quite some cleanups. Changes for v6: - Fix the typo of "snsp" in driver file name. (Thanks Jack) Changes for v5: - Drop mb() call from function

[PATCH v6 2/2] phy: qualcomm: Add Synopsys High-Speed USB PHY driver

2018-12-19 Thread Shawn Guo
It adds Synopsys 28nm Femto High-Speed USB PHY driver support, which is usually paired with Synopsys DWC3 USB controllers on Qualcomm SoCs. Signed-off-by: Shawn Guo --- drivers/phy/qualcomm/Kconfig | 10 + drivers/phy/qualcomm/Makefile | 1 +

Re: [RFC PATCH 1/2] mm: swap: check if swap backing device is congested or not

2018-12-19 Thread Tim Chen
On 12/19/18 3:48 PM, Yang Shi wrote: > > > On 12/19/18 11:00 AM, Tim Chen wrote: >> On 12/19/18 10:40 AM, Yang Shi wrote: >>> >> I don't think your dereference inode = si->swap_file->f_mapping->host >> is always safe.  You should do it only when (si->flags & SWP_FS) is true. > Do you

[PATCH v4 0/3] Reset controller support for i.MX8MQ

2018-12-19 Thread Andrey Smirnov
Everyone: This patch contains changes I made in order to add support for i.MX8MQ to reset-imx7.c in order to enable support of PCIE IP block on i.MX8MQ SoCs. Feedback is welcome! Thanks, Andrey Smirnov Changes since [v3] - Kconfig entry is converted to use ARCH_MXC - Collected Reviewed-by

[PATCH v4 1/3] reset: imx7: Add plubming to support multiple IP variants

2018-12-19 Thread Andrey Smirnov
In order to enable supporting i.MX8MQ with this driver, convert it to expect variant specific bits to be passed via driver data. Cc: p.za...@pengutronix.de Cc: Fabio Estevam Cc: cphe...@gmail.com Cc: l.st...@pengutronix.de Cc: Leonard Crestez Cc: "A.s. Dong" Cc: Richard Zhu Cc: Rob Herring

[PATCH v4 2/3] dt-bindings: reset: imx7: Document usage on i.MX8MQ SoCs

2018-12-19 Thread Andrey Smirnov
The driver now supports i.MX8MQ, so update bindings accordingly. Cc: p.za...@pengutronix.de Cc: Fabio Estevam Cc: cphe...@gmail.com Cc: l.st...@pengutronix.de Cc: Leonard Crestez Cc: "A.s. Dong" Cc: Richard Zhu Cc: linux-...@nxp.com Cc: linux-arm-ker...@lists.infradead.org Cc:

[PATCH v4 3/3] reset: imx7: Add support for i.MX8MQ IP block variant

2018-12-19 Thread Andrey Smirnov
Add bits and pieces needed to support IP block variant found on i.MX8MQ SoCs. Cc: p.za...@pengutronix.de Cc: Fabio Estevam Cc: cphe...@gmail.com Cc: l.st...@pengutronix.de Cc: Leonard Crestez Cc: "A.s. Dong" Cc: Richard Zhu Cc: Rob Herring Cc: devicet...@vger.kernel.org Cc: linux-...@nxp.com

RE: [PATCHv2 01/12] acpi: Create subtable parsing infrastructure

2018-12-19 Thread Schmauss, Erik
> -Original Message- > From: linux-acpi-ow...@vger.kernel.org [mailto:linux-acpi- > ow...@vger.kernel.org] On Behalf Of Dan Williams > Sent: Wednesday, December 19, 2018 4:00 PM > To: Schmauss, Erik > Cc: Rafael J. Wysocki ; Busch, Keith > ; Moore, Robert ; > Linux Kernel Mailing List ;

Re: [PATCH 1/2] ARC: show_regs: avoid page allocator

2018-12-19 Thread Vineet Gupta
On 12/19/18 9:04 AM, Eugeniy Paltsev wrote: > As I can see x86 use print_vma_addr() in their show_signal_msg() > function which allocate page with __get_free_page(GFP_NOWAIT); Indeed with that the __get_free_page() lockdep splat is gone. There's a different one now hence my other patch. |

[PATCH kernel v6.1 20/20 REPOST] vfio_pci: Add NVIDIA GV100GL [Tesla V100 SXM2] subdriver

2018-12-19 Thread Alexey Kardashevskiy
POWER9 Witherspoon machines come with 4 or 6 V100 GPUs which are not pluggable PCIe devices but still have PCIe links which are used for config space and MMIO. In addition to that the GPUs have 6 NVLinks which are connected to other GPUs and the POWER9 CPU. POWER9 chips have a special unit on a

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

2018-12-19 Thread Trent Piepho
On Wed, 2018-12-19 at 16:47 -0800, Andrey Smirnov wrote: > > > > This series initially added explicit offsets but I suggested a single > > > "controller-id" because: > > > * There are multiple bit and byte offsets > > > * Other imx8 SOCs also have 2x pcie with other bit/byte offsets > > > >

Re: [PATCH 2/2] leds: lp5024: Add the LP5024/18 RGB LED driver

2018-12-19 Thread Dan Murphy
Pavel Thanks for trimming. On 12/19/2018 04:27 PM, Pavel Machek wrote: > Hi! > > [cc list trimmed] > > I don't think a user needs nor would want to have 24 different LED nodes > with 24 different brightness files. > Or with the LP5036 that would have 36 LED nodes. > >

Re: [PATCH v1 01/12] dt-bindings: usb: add support for dwc3 controller on HiSilicon SoCs

2018-12-19 Thread Chen Yu
Hi, On 2018/12/19 22:09, Rob Herring wrote: > On Mon, Dec 03, 2018 at 05:28:56PM +0800, Chen Yu wrote: >> Hi, >> >> On 2018/12/3 16:59, Sergei Shtylyov wrote: >>> On 03.12.2018 11:51, Chen Yu wrote: >>> >> This patch adds binding descriptions to support the dwc3 controller >> on HiSilicon

RE: [PATCH] staging: android: ion: add buffer flag update ioctl

2018-12-19 Thread Zengtao (B)
Hi laura: >-Original Message- >From: Laura Abbott [mailto:labb...@redhat.com] >Sent: Thursday, December 20, 2018 2:10 AM >To: Zengtao (B) ; sumit.sem...@linaro.org >Cc: Greg Kroah-Hartman ; Arve Hjønnevåg >; Todd Kjos ; Martijn Coenen >; Joel Fernandes ; >de...@driverdev.osuosl.org;

Re: [PATCH V2 1/1] device-dax: check for vma range while dax_mmap.

2018-12-19 Thread Dan Williams
On Wed, Dec 12, 2018 at 10:12 PM Yi Zhang wrote: > > On 2018-12-10 at 16:10:31 -0800, Dan Williams wrote: > > On Tue, Aug 21, 2018 at 12:38 AM Yi Zhang > > wrote: > > > > > > On 2018-08-20 at 12:50:31 -0700, Dave Jiang wrote: > > > > > > > > > > > > On 08/20/2018 10:53 AM, Verma, Vishal L

Re: [RFC][PATCH] string.h: Add strncmp_prefix() helper macro

2018-12-19 Thread Steven Rostedt
[ Sending now as myself and not my daughter :-p ] On Wed, Dec 19, 2018 at 01:54:57PM -0800, Joe Perches wrote: > On Wed, 2018-12-19 at 16:32 -0500, Bryana Rostedt wrote: > > > > +/* > > + * A common way to test a prefix of a string is to do: > > + * strncmp(str, prefix, sizeof(prefix) - 1) > >

Re: [RFC][PATCH] string.h: Add strncmp_prefix() helper macro

2018-12-19 Thread Steven Rostedt
[ Another email not as my daughter. ] On Wed, Dec 19, 2018 at 02:05:32PM -0800, Joe Perches wrote: > On Wed, 2018-12-19 at 16:32 -0500, Bryana Rostedt wrote: > > a quick grep in the kernel tree found several > > (thousands!) of cases that use this construct. A quick grep also > > revealed that

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

2018-12-19 Thread He Zhe
On 2018/12/19 23:30, Sebastian Andrzej Siewior wrote: > On 2018-12-18 15:07:45 [+], Catalin Marinas wrote: > … >> It may be worth running some performance/latency tests during kmemleak >> scanning (echo scan > /sys/kernel/debug/kmemleak) but at a quick look, >> I don't think we'd see any

Re: [PATCH v1 02/12] dt-bindings: phy: Add support for HiSilicon's hi3660 USB PHY

2018-12-19 Thread Chen Yu
Hi, On 2018/12/19 22:14, Rob Herring wrote: > On Mon, Dec 03, 2018 at 11:45:05AM +0800, Yu Chen wrote: >> This patch adds binding documentation for supporting the hi3660 usb >> phy on boards like the HiKey960. >> >> Cc: Rob Herring >> Cc: Mark Rutland >> Cc: John Stultz >> Cc: Binghui Wang >>

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

2018-12-19 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: drivers/net/vxlan.c between commits: 6db924687139 ("vxlan: Fix error path in __vxlan_dev_create()") ce5e098f7a10 ("vxlan: changelink: Fix handling of default remotes") from the net tree and commit: 0e6160f3f5a9

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

2018-12-19 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: tools/testing/selftests/net/Makefile between commit: 55cbe0794294 ("selftests: net: Add test_vxlan_fdb_changelink.sh") from the net tree and commit: e87f53b4fab7 ("selftests: add some benchmark for UDP GRO") (

Re: [PATCH] kbuild: fix false positive warning/error about missing libelf

2018-12-19 Thread Masahiro Yamada
On Tue, Dec 18, 2018 at 11:35 PM Qian Cai wrote: > > On Tue, 2018-12-18 at 14:25 +0900, Masahiro Yamada wrote: > > For the same reason as commit 25896d073d8a ("x86/build: Fix compiler > > support check for CONFIG_RETPOLINE"), you cannot put this $(error ...) > > into the parse stage of the top

Re: [PATCH v1 03/12] dt-bindings: misc: Add bindings for HiSilicon usb hub and data role switch functionality on HiKey960

2018-12-19 Thread Chen Yu
On 2018/12/19 22:21, Rob Herring wrote: > On Mon, Dec 03, 2018 at 11:45:06AM +0800, Yu Chen wrote: >> This patch adds binding documentation to support usb hub and usb >> data role switch of Hisilicon HiKey Board. >> >> Cc: Sergei Shtylyov >> Cc: Rob Herring >> Cc: Mark Rutland >> Cc: John

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

2018-12-19 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: drivers/net/ethernet/mellanox/mlx5/core/en_rep.c between commit: 8956f0014ea5 ("net/mlx5e: Fix default amount of channels for VF representors") from the net tree and commit: d9ee0491c2ff ("net/mlx5e: Use dedicated

Re: remove exofs, the T10 OSD code and block/scsi bidi support V3

2018-12-19 Thread Douglas Gilbert
On 2018-12-19 9:43 a.m., Christoph Hellwig wrote: On Mon, Nov 26, 2018 at 07:11:10PM +0200, Boaz Harrosh wrote: On 11/11/18 15:32, Christoph Hellwig wrote: The only real user of the T10 OSD protocol, the pNFS object layout driver never went to the point of having shipping products, and we

linux-next: a short break

2018-12-19 Thread Stephen Rothwell
Hi all, There will be no linux-next releases between Dec 22 and Jan 1 inclusive. I hope you all have a great break. -- Cheers, Stephen Rothwell pgpE4BpuPmhXl.pgp Description: OpenPGP digital signature

[RFC][PATCH v2] string.h: Add strncmp_prefix() helper macro

2018-12-19 Thread Steven Rostedt
A discussion came up in the trace triggers thread about converting a bunch of: strncmp(str, "const", sizeof("const") - 1) use cases into a helper macro. It started with: #define strncmp_const(str, const) \ strncmp(str, const, sizeof(const) - 1) But then Joe Perches mentioned that if a

Re: [LKP] [xarray] 4e99d4e957: BUG:soft_lockup-CPU##stuck_for#s

2018-12-19 Thread Rong Chen
On 12/19/2018 05:54 PM, Rong Chen wrote: On 12/11/2018 10:29 PM, Matthew Wilcox wrote: On Tue, Dec 11, 2018 at 05:54:41PM +0800, kernel test robot wrote: # To reproduce, # 1) save job-script and this script (both are attached in 0day report email) # 2) run this script with your compiled

Re: [PATCH] scsi: qla2xxx: deadlock by configfs_depend_item

2018-12-19 Thread Martin K. Petersen
Anatoliy, > The intent of invoking configfs_depend_item in commit 7474f52a82d51 > ("tcm_qla2xxx: Perform configfs depend/undepend for base_tpg") was to > prevent a physical Fibre Channel port removal when virtual (NPIV) > ports announced through that physical port are active. The change > does

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

2018-12-19 Thread Stephen Rothwell
Hi all, After merging the net-next tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/net/vxlan.c: In function 'vxlan_changelink': drivers/net/vxlan.c:3763:10: error: too few arguments to function 'vxlan_fdb_update' err = vxlan_fdb_update(vxlan, all_zeros_mac,

[PATCH -next] powerpc/eeh: Fix debugfs_simple_attr.cocci warnings

2018-12-19 Thread YueHaibing
Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIMPLE_ATTRIBUTE for debugfs files. Semantic patch information: Rationale: DEFINE_SIMPLE_ATTRIBUTE + debugfs_create_file() imposes some significant overhead as compared to DEFINE_DEBUGFS_ATTRIBUTE + debugfs_create_file_unsafe(). Generated by:

Re: dt-bindings: watchdog: renesas-wdt: Document r8a774c0 support

2018-12-19 Thread Guenter Roeck
On Thu, Dec 13, 2018 at 08:18:53PM +, Fabrizio Castro wrote: > RZ/G2E (R8A774C0) watchdog implementation is compatible with R-Car > Gen3, therefore add relevant documentation. > > Signed-off-by: Fabrizio Castro > Reviewed-by: Geert Uytterhoeven > Reviewed-by: Simon Horman Reviewed-by:

Re: [PATCH -next] powerpc/eeh: Fix debugfs_simple_attr.cocci warnings

2018-12-19 Thread Russell Currey
On Thu, 2018-12-20 at 02:42 +, YueHaibing wrote: > Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIMPLE_ATTRIBUTE > for debugfs files. > > Semantic patch information: > Rationale: DEFINE_SIMPLE_ATTRIBUTE + debugfs_create_file() > imposes some significant overhead as compared to >

Re: [PATCH v6 3/4] thermal: tegra: parse sensor id before sensor register

2018-12-19 Thread Wei Ni
On 19/12/2018 10:57 PM, Eduardo Valentin wrote: > On Wed, Dec 19, 2018 at 11:00:10AM +0800, Wei Ni wrote: >> >> >> On 19/12/2018 9:24 AM, Eduardo Valentin wrote: >>> On Fri, Dec 14, 2018 at 05:49:52PM +0800, Wei Ni wrote: Since different platforms may not support all 4 sensors, so the

Re: [PULL] virtio fix

2018-12-19 Thread pr-tracker-bot
The pull request you sent on Wed, 19 Dec 2018 18:29:58 -0500: > git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git tags/for_linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/ab63e725b49c80f941446327d79ba5b68593bf5a Thank you! -- Deet-doot-dot, I am a

Re: [GIT PULL] KVM fixes for 4.20-rc8 (or final)

2018-12-19 Thread pr-tracker-bot
The pull request you sent on Wed, 19 Dec 2018 15:45:13 +0100: > https://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/fe112793600bb14cfd519ed148ca2f252d7b14bc Thank you! -- Deet-doot-dot, I am a bot.

Re: [GIT PULL] Please pull NFS client bugfixes

2018-12-19 Thread pr-tracker-bot
The pull request you sent on Wed, 19 Dec 2018 16:49:11 +: > git://git.linux-nfs.org/projects/trondmy/linux-nfs.git tags/nfs-for-4.20-6 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/8c9dff1ebd721a3b19a002d1a901d4dc31b18ebb Thank you! -- Deet-doot-dot, I am a

Re: [GIT PULL] dma-mapping fix for 4.20

2018-12-19 Thread pr-tracker-bot
The pull request you sent on Wed, 19 Dec 2018 15:24:19 +0100: > git://git.infradead.org/users/hch/dma-mapping.git tags/dma-mapping-4.20-4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/2dd516ff7d852c2cda8c5b883d6625d1c812714e Thank you! -- Deet-doot-dot, I am a

Re: [PATCH 1/1] scsi: storvsc: Always use blk-mq

2018-12-19 Thread Martin K. Petersen
Michael, > With high IOPS storage being increasingly prevalent for guests > on Hyper-V and in Azure, make blk-mq the default so that the > full performance of the storage can be realized without having > to tweak other configuration settings. The legacy I/O path will be gone in 4.21 so this

[PATCH] zram: avoid calling bio_endio() before io complete

2018-12-19 Thread Huijin Park
When the bio is given as parameter, zram calls the bio_endio() with given bio after zram io finished. However in the case of partial writing, the __zram_bvec_read() calls the bio_endio() with the given bio regardless of the write operation. In other words, the bio_endio() may be called at an

Re: [PATCH] scsi: 3w-xxx: fix indentation issue, add missing tab

2018-12-19 Thread Martin K. Petersen
Colin, > There is a tab missing on a return statement, add the missing tab. Applied to 4.21/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: bfa: clean up a couple of indentation issues

2018-12-19 Thread Martin K. Petersen
Colin, > There is a break statement with an extra space that needs removed and > a call to bfa_trc that is indented one level too much. Fix these. Applied to 4.21/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: x86/sgx: uapi change proposal

2018-12-19 Thread Andy Lutomirski
> On Dec 19, 2018, at 6:45 AM, Sean Christopherson > wrote: > >> On Wed, Dec 19, 2018 at 09:36:16AM +, Jethro Beekman wrote: > I agree with Jethro, passing the enclave_fd as a param is obnoxious. > And it means the user needs to open /dev/sgx to do anything with an > enclave fd, e.g. the

[RFC][PATCH v2][RESEND] string.h: Add strncmp_prefix() helper macro

2018-12-19 Thread Steven Rostedt
[ Resending because I missed adding Joe to the Cc list ] A discussion came up in the trace triggers thread about converting a bunch of: strncmp(str, "const", sizeof("const") - 1) use cases into a helper macro. It started with: #define strncmp_const(str, const) \ strncmp(str, const,

RE: [PATCH] arm64: dts: nxp: ls208xa: add more thermal zone support

2018-12-19 Thread Andy Tang
> -Original Message- > From: Shawn Guo > Sent: 2018年12月19日 12:08 > To: Andy Tang > Cc: mark.rutl...@arm.com; devicet...@vger.kernel.org; > daniel.lezc...@linaro.org; linux-kernel@vger.kernel.org; Leo Li > ; robh...@kernel.org; rui.zh...@intel.com; > linux-arm-ker...@lists.infradead.org

[PATCH net-next 2/9] net: hns3: change default tc state to close

2018-12-19 Thread Peng Li
From: Jian Shen In original codes, default tc value is set to the max tc. It's more reasonable to close tc by changing default tc value to 1. Users can enable it with lldp tool when they want to use tc. Signed-off-by: Jian Shen Signed-off-by: Peng Li ---

[PATCH net-next 8/9] net: hns3: fix the descriptor index when get rss type

2018-12-19 Thread Peng Li
Driver gets rss information from the last descriptor of the packet. When driver handle the rss type, ring->next_to_clean indicates the first descriptor of next packet. This patch fix the descriptor index with "ring->next_to_clean - 1". Fixes: 232fc64b6e62 ("net: hns3: Add HW RSS hash information

[PATCH net-next 7/9] net: hns3: don't restore rules when flow director is disabled

2018-12-19 Thread Peng Li
From: Jian Shen When user disables flow director, all the rules will be disabled. But when reset happens, it will restore all the rules again. It's not reasonable. This patch fixes it by add flow director status check before restore fules. Fixes: 6871af29b3ab ("net: hns3: Add reset handle for

[PATCH -next] scsi: qla4xxx: check return code of qla4xxx_copy_from_fwddb_param

2018-12-19 Thread YueHaibing
The return code should be check while qla4xxx_copy_from_fwddb_param fails. Signed-off-by: YueHaibing --- drivers/scsi/qla4xxx/ql4_os.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c index 949e186..1bc4db6 100644 ---

[PATCH net-next 9/9] net: hns3: remove redundant variable initialization

2018-12-19 Thread Peng Li
This patch removes the redundant variable initialization, as driver will devm_kzalloc to set value to hdev soon. Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

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

2018-12-19 Thread Peng Li
This patchset includes bugfixes and code optimizations for the HNS3 ethernet controller driver Huazhong Tan (1): net: hns3: reset tqp while doing DOWN operation Jian Shen (5): net: hns3: refine the handle for hns3_nic_net_open/stop() net: hns3: change default tc state to close net: hns3:

[PATCH net-next 6/9] net: hns3: fix vf id check issue when add flow director rule

2018-12-19 Thread Peng Li
From: Jian Shen When add flow director fule for vf, the vf id is used as array subscript before valid checking, which may cause memory overflow. Fixes: dd74f815dd41 ("net: hns3: Add support for rule add/delete for flow director") Signed-off-by: Jian Shen Signed-off-by: Peng Li ---

[PATCH net-next 4/9] net: hns3: add max vector number check for pf

2018-12-19 Thread Peng Li
From: Jian Shen Each pf supports max 64 vectors and 128 tqps. For 2p/4p core scenario, there may be more than 64 cpus online. So the result of min_t(u16, num_Online_cpus(), tqp_num) may be more than 64. This patch adds check for the vector number. Fixes: dd38c72604dc ("net: hns3: fix for

[PATCH net-next 1/9] net: hns3: refine the handle for hns3_nic_net_open/stop()

2018-12-19 Thread Peng Li
From: Jian Shen When triggering nic down, there is a time window between bringing down the protocol stack and stopping the work task. If the net is up in the time window, it may bring up the protocol stack again. This patch fixes it by stop the work task at the beginning of hns3_nic_net_stop().

[PATCH net-next 5/9] net: hns3: reset tqp while doing DOWN operation

2018-12-19 Thread Peng Li
From: Huazhong Tan While doing DOWN operation, the driver will reclaim the memory which has already used for TX. If the hardware is processing this memory, it will cause a RCB error to the hardware. According the hardware's description, the driver should reset the tqp before reclaim the memory

[PATCH net-next 3/9] net: hns3: fix a bug caused by udelay

2018-12-19 Thread Peng Li
udelay() in driver may always occupancy processor. If there is only one cpu in system, the VF driver may initialize fail when insmod PF and VF driver in the same system. This patch use msleep() to free cpu when VF wait PF message. Signed-off-by: Peng Li ---

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

2018-12-19 Thread Tomasz Figa
On Wed, Dec 19, 2018 at 11:51 PM Christoph Hellwig wrote: > > On Wed, Dec 19, 2018 at 05:18:35PM +0900, Tomasz Figa wrote: > > The existing code that deals with dma_alloc_attrs() without > > DMA_ATTR_NON_CONSISTENT would just call dma_get_sgtable_attrs() like > > here: > > I know. And

Re: [PATCH] ARC: adjust memblock_reserve of kernel memory

2018-12-19 Thread Vineet Gupta
On 12/19/18 8:16 AM, Eugeniy Paltsev wrote: > In setup_arch_memory we reserve the memory area wherein the kernel > is located. Current implementation may reserve more memory than > it actually required in case of CONFIG_LINUX_LINK_BASE is not > equal to CONFIG_LINUX_RAM_BASE. This happens because

[PATCH] brcm80211: remove set but not used variables 'phybw40, maxtargetpwr'

2018-12-19 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c:1202:5: warning: variable 'phybw40' set but not used [-Wunused-but-set-variable] drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c:4625:5: warning: variable 'phybw40' set

Re: [PATCH] ARC: adjust memblock_reserve of kernel memory

2018-12-19 Thread Vineet Gupta
On 12/19/18 8:16 AM, Eugeniy Paltsev wrote: > In setup_arch_memory we reserve the memory area wherein the kernel > is located. Current implementation may reserve more memory than > it actually required in case of CONFIG_LINUX_LINK_BASE is not > equal to CONFIG_LINUX_RAM_BASE. This happens because

Re: [PATCH v6 2/2] phy: qualcomm: Add Synopsys High-Speed USB PHY driver

2018-12-19 Thread mgautam
Hi Shawn, On 2018-12-20 06:31, Shawn Guo wrote: It adds Synopsys 28nm Femto High-Speed USB PHY driver support, which is usually paired with Synopsys DWC3 USB controllers on Qualcomm SoCs. Signed-off-by: Shawn Guo --- + +/* PHY register and bit definitions */ +#define PHY_CTRL_COMMON0

Re: [PATCH 31/41] scsi: mpt3sas: mpt3sas_scsih: Mark expected switch fall-through

2018-12-19 Thread Suganath Prabu Subramani
Hi Gustavo, This patch may not apply smoothly over 4.21/scsi-queue. Our previous patch for Aero had some changes in this switch case. Can you resend this patch with latest code base ? Thanks, Suganath prabu On Thu, Dec 20, 2018 at 5:37 AM Gustavo A. R. Silva wrote: > > Hi, > > Friendly ping:

Re: [PATCH V5 1/3] mm: Add get_user_pages_cma_migrate

2018-12-19 Thread Alexey Kardashevskiy
On 19/12/2018 14:40, Aneesh Kumar K.V wrote: > This helper does a get_user_pages_fast and if it find pages in the CMA area > it will try to migrate them before taking page reference. This makes sure that > we don't keep non-movable pages (due to page reference count) in the CMA area. > Not able

Re: [PATCH V5 1/3] mm: Add get_user_pages_cma_migrate

2018-12-19 Thread Alexey Kardashevskiy
On 19/12/2018 14:40, Aneesh Kumar K.V wrote: > This helper does a get_user_pages_fast and if it find pages in the CMA area > it will try to migrate them before taking page reference. This makes sure that > we don't keep non-movable pages (due to page reference count) in the CMA area. > Not able

Recent VFS/LSM patches cause Kernel panic - not syncing: Can't create rootfs

2018-12-19 Thread Dexuan Cui
Hi, We started to see a "Can't create rootfs" panic with linux-next's next-20181218 and next-20181219. Note: next-20181217 is good. Our test team found the first bad commit by git-bisect: 013c7af575e5 ("vfs: Implement a filesystem superblock creation/configuration context")

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

2018-12-19 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 RESEND V5 2/3] misc/pvpanic : add pci interface for pvpanic

2018-12-19 Thread Peng Hao
Support pvpanic as a pci device in guest kernel. Suggested-by: Andy Shevchenko [Use pcim_* API. - Andy] Signed-off-by: Peng Hao --- drivers/misc/pvpanic.c | 72 -- 1 file changed, 70 insertions(+), 2 deletions(-) diff --git

linux-next: manual merge of the tip tree with the kbuild tree

2018-12-19 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: Makefile between commits: 65bba0423ecf ("kbuild: fix UML build error with CONFIG_GCC_PLUGINS") 059bc9fc375e ("kbuild: make 'archprepare' depend on 'scripts'") ce2fd53a10c7 ("kbuild: descend into scripts/gcc-plugins/

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

2018-12-19 Thread Peng Hao
Return 0 for empty body register function normally. Signed-off-by: Peng Hao --- v4 --> v5 : resolve kbuild issue: handle all typo "drvier/driver" in funtion name. v3 --> v4 : use pcim* function instead of pci* function. handle typo "drvier/driver" in funtion name. v2

[PATCH v7 3/3] Documentation/filesystems/proc.txt: add AVX512_elapsed_ms

2018-12-19 Thread Aubrey Li
Added AVX512_elapsed_ms in /proc//status. Report it in Documentation/filesystems/proc.txt Signed-off-by: Aubrey Li Cc: Peter Zijlstra Cc: Andi Kleen Cc: Tim Chen Cc: Dave Hansen Cc: Arjan van de Ven --- Documentation/filesystems/proc.txt | 4 +++- 1 file changed, 3 insertions(+), 1

[PATCH v7 2/3] proc: add AVX-512 usage elapsed time to /proc/pid/status

2018-12-19 Thread Aubrey Li
AVX-512 components use could cause core turbo frequency drop. So it's useful to expose AVX-512 usage elapsed time as a heuristic hint for the user space job scheduler to cluster the AVX-512 using tasks together. Example: $ cat /proc/pid/status | grep AVX512_elapsed_ms AVX512_elapsed_ms: 1020

[PATCH v7 1/3] x86/fpu: track AVX-512 usage of tasks

2018-12-19 Thread Aubrey Li
User space tools which do automated task placement need information about AVX-512 usage of tasks, because AVX-512 usage could cause core turbo frequency drop and impact the running task on the sibling CPU. The XSAVE hardware structure has bits that indicate when valid state is present in

[GIT] Networking

2018-12-19 Thread David Miller
This should be the last networking pull request before the next merge window. 1) Off by one in netlink parsing of mac802154_hwsim, from Alexander Aring. 2) nf_tables RCU usage fix from Taehee Yoo. 3) Flow dissector needs nhoff and thoff clamping, from Stanislav Fomichev. 4) Missing

linux-next: please clean up the clockevents tree

2018-12-19 Thread Stephen Rothwell
Hi Daniel, It looks like all the changes in the clockevents tree appear as other commits in other tree(s). Could you please reset your tree to somewhere in your upstream tree as it is beginning to produce conflicts. -- Cheers, Stephen Rothwell pgpBNGIoL6Ql8.pgp Description: OpenPGP digital

RE: [v4] PCI: imx: make msi work without CONFIG_PCIEPORTBUS=y

2018-12-19 Thread Richard Zhu
Hi Bjorn: > -Original Message- > From: Lucas Stach [mailto:l.st...@pengutronix.de] > Sent: 2018年12月19日 23:52 > To: Bjorn Helgaas ; Richard Zhu > > Cc: Lorenzo Pieralisi ; Andrew Smirnov > ; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infradead.org;

Re: [PATCH V5 2/3] powerpc/mm/iommu: Allow migration of cma allocated pages during mm_iommu_get

2018-12-19 Thread Alexey Kardashevskiy
On 19/12/2018 14:40, Aneesh Kumar K.V wrote: > Current code doesn't do page migration if the page allocated is a compound > page. > With HugeTLB migration support, we can end up allocating hugetlb pages from > CMA region. Also THP pages can be allocated from CMA region. This patch > updates >

Re: [PATCH V5 1/3] mm: Add get_user_pages_cma_migrate

2018-12-19 Thread Aneesh Kumar K.V
On 12/20/18 9:49 AM, Alexey Kardashevskiy wrote: On 19/12/2018 14:40, Aneesh Kumar K.V wrote: This helper does a get_user_pages_fast and if it find pages in the CMA area it will try to migrate them before taking page reference. This makes sure that we don't keep non-movable pages (due to page

Re: Taking a break - time to look back

2018-12-19 Thread Willy Tarreau
Hi Thomas, [trimmed cc list] On Thu, Dec 20, 2018 at 01:46:24AM +0100, Thomas Gleixner wrote: > 1) Lack of code quality > > This is a problem which I observe increasing over many years. > > The feature driven duct tape engineering mode is progressing > massively. Proper root cause

RE: [PATCH v6 0/7] spi: add support for octal mode

2018-12-19 Thread Yogesh Narayan Gaur
Hi Vignesh, > -Original Message- > From: Vignesh R [mailto:vigne...@ti.com] > Sent: Wednesday, December 19, 2018 6:14 PM > To: Yogesh Narayan Gaur ; linux- > m...@lists.infradead.org; boris.brezil...@bootlin.com; broo...@kernel.org; > marek.va...@gmail.com; linux-...@vger.kernel.org; >

[PATCH 0/2 v4] kdump,vmcoreinfo: Export the value of sme mask to vmcoreinfo

2018-12-19 Thread Lianbo Jiang
This patchset did two things: a. add a new document for vmcoreinfo This document lists some variables that export to vmcoreinfo, and briefly describles what these variables indicate. It should be instructive for many people who do not know the vmcoreinfo, and it also normalizes the exported

[PATCH 2/2 v4] kdump,vmcoreinfo: Export the value of sme mask to vmcoreinfo

2018-12-19 Thread Lianbo Jiang
For AMD machine with SME feature, makedumpfile tools need to know whether the crash kernel was encrypted or not. If SME is enabled in the first kernel, the crash kernel's page table(pgd/pud/pmd/pte) contains the memory encryption mask, so need to remove the sme mask to obtain the true physical

[PATCH 1/2 v4] kdump: add the vmcoreinfo documentation

2018-12-19 Thread Lianbo Jiang
This document lists some variables that export to vmcoreinfo, and briefly describles what these variables indicate. It should be instructive for many people who do not know the vmcoreinfo, and it also normalizes the exported variables as a convention between kernel and use-space. Suggested-by:

[PATCH] powerpc/8xx: Map a second 8M text page at startup when needed.

2018-12-19 Thread Christophe Leroy
Some debug setup like CONFIG_KASAN generate huge kernels with text size over the 8M limit. This patch maps a second 8M page when _einittext is over 8M. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_8xx.S | 27 +-- arch/powerpc/mm/8xx_mmu.c | 4

Re: [PATCH V5 1/3] mm: Add get_user_pages_cma_migrate

2018-12-19 Thread Alexey Kardashevskiy
On 20/12/2018 16:22, Aneesh Kumar K.V wrote: > On 12/20/18 9:49 AM, Alexey Kardashevskiy wrote: >> >> >> On 19/12/2018 14:40, Aneesh Kumar K.V wrote: >>> This helper does a get_user_pages_fast and if it find pages in the >>> CMA area >>> it will try to migrate them before taking page reference.

Re: [PATCH V5 1/3] mm: Add get_user_pages_cma_migrate

2018-12-19 Thread Aneesh Kumar K.V
On 12/20/18 11:18 AM, Alexey Kardashevskiy wrote: On 20/12/2018 16:22, Aneesh Kumar K.V wrote: On 12/20/18 9:49 AM, Alexey Kardashevskiy wrote: On 19/12/2018 14:40, Aneesh Kumar K.V wrote: This helper does a get_user_pages_fast and if it find pages in the CMA area it will try to migrate

RE: [v4] PCI: imx: make msi work without CONFIG_PCIEPORTBUS=y

2018-12-19 Thread Richard Zhu
Hi Bjorn: > -Original Message- > From: Lucas Stach [mailto:l.st...@pengutronix.de] > Sent: 2018年12月19日 23:52 > To: Bjorn Helgaas ; Richard Zhu > > Cc: Lorenzo Pieralisi ; Andrew Smirnov > ; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infradead.org;

[PATCH] mm/page_owner: fix for deferred struct page init

2018-12-19 Thread Qian Cai
When booting a system with "page_owner=on", start_kernel page_ext_init invoke_init_callbacks init_section_page_ext init_page_owner init_early_allocated_pages init_zones_in_node init_pages_in_zone lookup_page_ext

linux-next: manual merge of the char-misc tree with the net-next tree

2018-12-19 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the char-misc tree got a conflict in: drivers/ptp/ptp_clock.c between commit: aea0a897af9e ("ptp: Fix pass zero to ERR_PTR() in ptp_clock_register") from the net-next tree and commit: b9d93594c767 ("ptp: fix an IS_ERR() vs NULL check") from the

Re: [PATCH] KVM: MMU: Introduce single thread to zap collapsible sptes

2018-12-19 Thread Wanpeng Li
kindly ping, On Fri, 14 Dec 2018 at 15:24, Wanpeng Li wrote: > > ping, > On Thu, 6 Dec 2018 at 15:58, Wanpeng Li wrote: > > > > From: Wanpeng Li > > > > Last year guys from huawei reported that the call of > > memory_global_dirty_log_start/stop() > > takes 13s for 4T memory and cause guest

Re: [PATCH v2] RISC-V: Make BSS section as the last section in vmlinux.lds.S

2018-12-19 Thread Bin Meng
On Wed, Dec 19, 2018 at 8:37 PM Anup Patel wrote: > > The objcopy only emits loadable sections when creating flat kernel > Image. To have minimal possible size of flat kernel Image, we should > have all non-loadable sections after loadable sections. > > Currently, execption table section

Re: [PATCH] staging: wilc1000: fix missing read_write setting when reading data

2018-12-19 Thread Ajay.Kathat
On 12/19/2018 10:00 PM, Colin King wrote: > From: Colin Ian King > > Currently the cmd.read_write setting is not initialized so it contains > garbage from the stack. Fix this by setting it to 0 to indicate a > read is required. > > Detected by CoverityScan, CID#1357925 ("Uninitialized scalar

Re: [PATCH V5 1/3] mm: Add get_user_pages_cma_migrate

2018-12-19 Thread Alexey Kardashevskiy
On 20/12/2018 16:52, Aneesh Kumar K.V wrote: > On 12/20/18 11:18 AM, Alexey Kardashevskiy wrote: >> >> >> On 20/12/2018 16:22, Aneesh Kumar K.V wrote: >>> On 12/20/18 9:49 AM, Alexey Kardashevskiy wrote: On 19/12/2018 14:40, Aneesh Kumar K.V wrote: > This helper does a

Re: [PATCH V5 1/3] mm: Add get_user_pages_cma_migrate

2018-12-19 Thread Aneesh Kumar K.V
On 12/20/18 11:50 AM, Alexey Kardashevskiy wrote: On 20/12/2018 16:52, Aneesh Kumar K.V wrote: On 12/20/18 11:18 AM, Alexey Kardashevskiy wrote: On 20/12/2018 16:22, Aneesh Kumar K.V wrote: On 12/20/18 9:49 AM, Alexey Kardashevskiy wrote: On 19/12/2018 14:40, Aneesh Kumar K.V wrote:

<    4   5   6   7   8   9   10   >