Re: [PATCH v6 2/2] dt-bindings: mtd: Document Macronix raw NAND controller bindings

2019-07-31 Thread Boris Brezillon
On Thu, 1 Aug 2019 11:55:10 +0800 Mason Yang wrote: > Document the bindings used by the Macronix raw NAND controller. > > Signed-off-by: Mason Yang > --- > Documentation/devicetree/bindings/mtd/mxic-nand.txt | 19 +++ > 1 file changed, 19 insertions(+) > create mode 100644

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

2019-07-31 Thread Stephen Rothwell
Hi Miles, On Wed, 31 Jul 2019 14:28:04 +0800 Miles Chen wrote: > > On Wed, 2019-07-31 at 16:11 +1000, Stephen Rothwell wrote: > > > > After merging the akpm-current tree, today's linux-next build (powerpc > > ppc64_defconfig) produced this warning: > > > > mm/memcontrol.c: In function

Re: [PATCH v3 2/3] mtd: spi-nor: Move m25p80 code in spi-nor.c

2019-07-31 Thread Boris Brezillon
On Thu, 1 Aug 2019 10:00:51 +0530 Vignesh Raghavendra wrote: > From: Boris Brezillon > > The m25p80 driver is actually a generic wrapper around the spi-mem > layer. Not only the driver name is misleading, but we'd expect such a > common logic to be directly available in the core. Another

Re: [PATCH] fork: Improve error message for corrupted page tables

2019-07-31 Thread Anshuman Khandual
On 07/31/2019 03:48 AM, Sai Praneeth Prakhya wrote: > When a user process exits, the kernel cleans up the mm_struct of the user > process and during cleanup, check_mm() checks the page tables of the user > process for corruption (E.g: unexpected page flags set/cleared). For > corrupted page

Re: [PATCH v3 1/3] mtd: spi-nor: always use bounce buffer for register read/writes

2019-07-31 Thread Boris Brezillon
On Thu, 1 Aug 2019 10:00:50 +0530 Vignesh Raghavendra wrote: > spi-mem layer expects all buffers passed to it to be DMA'able. But > spi-nor layer mostly allocates buffers on stack for reading/writing to > registers and therefore are not DMA'able. Introduce bounce buffer to be > used to

Re: [PATCH 0/3] ARM: dts: aspeed: Deprecate g[45]-style compatibles

2019-07-31 Thread Andrew Jeffery
On Tue, 30 Jul 2019, at 10:27, Andrew Jeffery wrote: > > > On Tue, 30 Jul 2019, at 07:23, Linus Walleij wrote: > > On Wed, Jul 24, 2019 at 10:13 AM Andrew Jeffery wrote: > > > > > It's probably best if we push the three patches all through one tree > > > rather > > > than fragmenting. Is

Re: [PATCH 7/9] media: hantro: Add core bits to support H264 decoding

2019-07-31 Thread Boris Brezillon
On Thu, 1 Aug 2019 13:06:10 +0900 Tomasz Figa wrote: > Hi Boris, > > On Wed, Jun 19, 2019 at 9:15 PM Boris Brezillon > wrote: > [snip] > > @@ -533,10 +535,21 @@ hantro_queue_setup(struct vb2_queue *vq, unsigned int > > *num_buffers, > > return -EINVAL; > > } > > > > +

Re: [PATCH v7 11/20] cpufreq: tegra124: Add suspend and resume support

2019-07-31 Thread Viresh Kumar
On 31-07-19, 14:10, Sowjanya Komatineni wrote: > This patch adds suspend and resume pm ops for cpufreq driver. > > PLLP is the safe clock source for CPU during system suspend and > resume as PLLP rate is below the CPU Fmax at Vmin. > > CPUFreq driver suspend switches the CPU clock source to PLLP

Re: [PATCHv5 25/37] x86/vdso: Switch image on setns()/clone()

2019-07-31 Thread Andy Lutomirski
On Mon, Jul 29, 2019 at 2:58 PM Dmitry Safonov wrote: > > As it has been discussed on timens RFC, adding a new conditional branch > `if (inside_time_ns)` on VDSO for all processes is undesirable. > It will add a penalty for everybody as branch predictor may mispredict > the jump. Also there are

Re: [PATCH v3 3/4] arm64: Make debug exception handlers visible from RCU

2019-07-31 Thread Masami Hiramatsu
Hi Will, On Wed, 31 Jul 2019 18:26:03 +0100 Will Deacon wrote: > On Thu, Jul 25, 2019 at 05:16:15PM +0900, Masami Hiramatsu wrote: > > Make debug exceptions visible from RCU so that synchronize_rcu() > > correctly track the debug exception handler. > > > > This also introduces sanity checks

Re: [linux-sunxi] Re: [PATCH v4 6/9] ASoC: sun4i-i2s: Add multi-lane functionality

2019-07-31 Thread Jernej Škrabec
Dne sreda, 31. julij 2019 ob 14:29:53 CEST je Maxime Ripard napisal(a): > On Tue, Jul 30, 2019 at 07:57:10PM +0200, Jernej Škrabec wrote: > > Dne torek, 04. junij 2019 ob 11:38:44 CEST je Code Kipper napisal(a): > > > On Tue, 4 Jun 2019 at 11:02, Christopher Obbard wrote: > > > > On Tue, 4 Jun

Re: [PATCHv5 01/37] ns: Introduce Time Namespace

2019-07-31 Thread Andy Lutomirski
On Mon, Jul 29, 2019 at 2:58 PM Dmitry Safonov wrote: > > From: Andrei Vagin > > Time Namespace isolates clock values. > +static int timens_install(struct nsproxy *nsproxy, struct ns_common *new) > +{ > + struct time_namespace *ns = to_time_ns(new); > + > + if

Re: [PATCHv5 21/37] x86/vdso: Restrict splitting VVAR VMA

2019-07-31 Thread Andy Lutomirski
On Mon, Jul 29, 2019 at 2:58 PM Dmitry Safonov wrote: > > Although, time namespace can work with VVAR VMA split, it seems worth > to forbid splitting VVAR resulting in stricter ABI and reducing amount > of corner-cases to consider while working further on VDSO. > > I don't think there is any

Re: [PATCHv5 23/37] x86/vdso: Add offsets page in vvar

2019-07-31 Thread Andy Lutomirski
On Mon, Jul 29, 2019 at 2:58 PM Dmitry Safonov wrote: > > From: Andrei Vagin > > As modern applications fetch time from VDSO without entering the kernel, > it's needed to provide offsets for userspace code inside time namespace. > > A page for timens offsets is allocated on time namespace

Re: [PATCHv5 28/37] x86/vdso: Enable static branches for the timens vdso

2019-07-31 Thread Andy Lutomirski
On Mon, Jul 29, 2019 at 2:58 PM Dmitry Safonov wrote: > > From: Andrei Vagin > > As it has been discussed on timens RFC, adding a new conditional branch > `if (inside_time_ns)` on VDSO for all processes is undesirable. > > Addressing those problems, there are two versions of VDSO's .so: > for

Re: [PATCH net-next 1/2] net: phy: broadcom: set features explicitly for BCM54616S

2019-07-31 Thread Tao Ren
On 7/30/19 11:00 PM, Tao Ren wrote: > On 7/30/19 10:53 PM, Heiner Kallweit wrote: >> On 31.07.2019 02:12, Tao Ren wrote: >>> On 7/29/19 11:00 PM, Heiner Kallweit wrote: On 30.07.2019 07:05, Tao Ren wrote: > On 7/29/19 8:35 PM, Andrew Lunn wrote: >> On Mon, Jul 29, 2019 at 05:25:32PM

[PATCH 3/5] x86: KVM: svm: clear interrupt shadow on all paths in skip_emulated_instruction()

2019-07-31 Thread Vitaly Kuznetsov
Regardless of the way how we skip instruction, interrupt shadow needs to be cleared. Signed-off-by: Vitaly Kuznetsov Reviewed-by: Jim Mattson --- arch/x86/kvm/svm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index

[PATCH 0/5] x86: KVM: svm: get rid of hardcoded instructions lengths

2019-07-31 Thread Vitaly Kuznetsov
Changes since RFC (It's been awhile and I apologize for that): - Dropped ' + 3' from vmrun_interception() as well. - Added xsetbv's implementation to the emulator [Paolo Bonzini] - Added Jim's R-b tags to PATCHes 2 and 3. - Tested with the newly added 'nrips' svm module parameter. Original

[PATCH 4/5] x86: KVM: add xsetbv to the emulator

2019-07-31 Thread Vitaly Kuznetsov
To avoid hardcoding xsetbv length to '3' we need to support decoding it in the emulator. Signed-off-by: Vitaly Kuznetsov --- arch/x86/include/asm/kvm_emulate.h | 3 ++- arch/x86/kvm/emulate.c | 23 ++- arch/x86/kvm/svm.c | 1 +

[PATCH 2/5] x86: KVM: svm: avoid flooding logs when skip_emulated_instruction() fails

2019-07-31 Thread Vitaly Kuznetsov
When we're unable to skip instruction with kvm_emulate_instruction() we will not advance RIP and most likely the guest will get stuck as consequitive attempts to execute the same instruction will likely result in the same behavior. As we're not supposed to see these messages under normal

[PATCH 1/5] x86: KVM: svm: don't pretend to advance RIP in case wrmsr_interception() results in #GP

2019-07-31 Thread Vitaly Kuznetsov
svm->next_rip is only used by skip_emulated_instruction() and in case kvm_set_msr() fails we rightfully don't do that. Move svm->next_rip advancement to 'else' branch to avoid creating false impression that it's always advanced (and make it look like rdmsr_interception()). This is a preparatory

[PATCH 5/5] x86: KVM: svm: remove hardcoded instruction length from intercepts

2019-07-31 Thread Vitaly Kuznetsov
Various intercepts hard-code the respective instruction lengths to optimize skip_emulated_instruction(): when next_rip is pre-set we skip kvm_emulate_instruction(vcpu, EMULTYPE_SKIP). The optimization is, however, incorrect: different (redundant) prefixes could be used to enlarge the instruction.

Re: [PATCH v2] media:dvb-frontends:Remove dvb_pll_devcount and id module parameters.

2019-07-31 Thread Sean Young
On Wed, Jul 24, 2019 at 06:36:35AM +0100, Sean Young wrote: > On Sat, Jul 20, 2019 at 11:43:02AM +0530, Vandana BN wrote: > > Syzbot reported global-out-of-bounds Read in dvb_pll_attach, while > > accessing id[dvb_pll_devcount], because dvb_pll_devcount was 65, > > that is more than size of 'id'

Re: [PATCH net-next 2/2] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-07-31 Thread Tao Ren
On 7/30/19 10:55 PM, Tao Ren wrote: > On 7/30/19 7:34 PM, Andrew Lunn wrote: >>> Hi Andrew, >>> >>> The BCM54616S PHY on my machine is connected to a BCM5396 switch chip over >>> backplane (1000Base-KX). >> >> Ah, that is different. So the board is using it for RGMII to 1000Base-KX? >> >>

linux-next: build warning after merge of the driver-core tree

2019-07-31 Thread Stephen Rothwell
Hi all, After merging the driver-core tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/i2c/i2c-core-acpi.c:347:12: warning: 'i2c_acpi_find_match_adapter' defined but not used [-Wunused-function] static int i2c_acpi_find_match_adapter(struct device *dev, const

Re: [PATCH V2 4/9] vhost: reset invalidate_count in vhost_set_vring_num_addr()

2019-07-31 Thread Jason Wang
On 2019/8/1 上午3:32, Jason Gunthorpe wrote: On Wed, Jul 31, 2019 at 09:29:28PM +0800, Jason Wang wrote: On 2019/7/31 下午8:41, Jason Gunthorpe wrote: On Wed, Jul 31, 2019 at 04:46:50AM -0400, Jason Wang wrote: The vhost_set_vring_num_addr() could be called in the middle of

Re: [PATCH V2 7/9] vhost: do not use RCU to synchronize MMU notifier with worker

2019-07-31 Thread Jason Wang
On 2019/8/1 上午3:30, Jason Gunthorpe wrote: On Wed, Jul 31, 2019 at 09:28:20PM +0800, Jason Wang wrote: On 2019/7/31 下午8:39, Jason Gunthorpe wrote: On Wed, Jul 31, 2019 at 04:46:53AM -0400, Jason Wang wrote: We used to use RCU to synchronize MMU notifier with worker. This leads calling

Re: [PATCH] linux-next 20190731 - aegis128-core.c fails to build

2019-07-31 Thread Ard Biesheuvel
(+ Arnd) On Thu, 1 Aug 2019 at 07:52, Valdis Klētnieks wrote: > > The recent NEON SIMD patches break the build if CONFIG_CRYPTO_AEGIS128_SIMD > isn't set: > > MODPOST 558 modules > ERROR: "crypto_aegis128_decrypt_chunk_simd" [crypto/aegis128.ko] undefined! > ERROR:

RE: [PATCH 5/6] mtd: spi-nor: Add s3an_post_sfdp_fixups()

2019-07-31 Thread Naga Sureshkumar Relli
Hi Tudor, > -Original Message- > From: tudor.amba...@microchip.com > Sent: Wednesday, July 31, 2019 6:37 PM > To: Naga Sureshkumar Relli ; > boris.brezil...@collabora.com; > marek.va...@gmail.com; vigne...@ti.com > Cc: rich...@nod.at; linux-kernel@vger.kernel.org; >

RE: [PATCH 5/6] mtd: spi-nor: Add s3an_post_sfdp_fixups()

2019-07-31 Thread Naga Sureshkumar Relli
> -Original Message- > From: Boris Brezillon > Sent: Wednesday, July 31, 2019 6:08 PM > To: Naga Sureshkumar Relli > Cc: tudor.amba...@microchip.com; marek.va...@gmail.com; vigne...@ti.com; > rich...@nod.at; linux-kernel@vger.kernel.org; linux-...@lists.infradead.org; >

[PATCH v3 1/3] mtd: spi-nor: always use bounce buffer for register read/writes

2019-07-31 Thread Vignesh Raghavendra
spi-mem layer expects all buffers passed to it to be DMA'able. But spi-nor layer mostly allocates buffers on stack for reading/writing to registers and therefore are not DMA'able. Introduce bounce buffer to be used to read/write to registers. This ensures that buffer passed to spi-mem layer during

[PATCH v3 2/3] mtd: spi-nor: Move m25p80 code in spi-nor.c

2019-07-31 Thread Vignesh Raghavendra
From: Boris Brezillon The m25p80 driver is actually a generic wrapper around the spi-mem layer. Not only the driver name is misleading, but we'd expect such a common logic to be directly available in the core. Another reason for moving this code is that SPI NOR controller drivers should

[PATCH v3 3/3] mtd: spi-nor: Rework hwcaps selection for the spi-mem case

2019-07-31 Thread Vignesh Raghavendra
From: Boris Brezillon The spi-mem layer provides a spi_mem_supports_op() function to check whether a specific operation is supported by the controller or not. This is much more accurate than the hwcaps selection logic based on SPI_{RX,TX}_ flags. Rework the hwcaps selection logic to use

[PATCH v3 0/3] Merge m25p80 into spi-nor

2019-07-31 Thread Vignesh Raghavendra
This is repost of patch 6 and 7 split from from Boris Brezillon's X-X-X mode support series[1] Background from cover letter for RFC[1]: m25p80 is just a simple SPI NOR controller driver (a wrapper around the SPI mem API). Not only it shouldn't be named after a specific SPI NOR chip, but it also

Re: [PATCH] fork: Improve error message for corrupted page tables

2019-07-31 Thread Andrew Morton
On Wed, 31 Jul 2019 15:36:49 -0700 Sai Praneeth Prakhya wrote: > > > +static const char * const resident_page_types[NR_MM_COUNTERS] = { > > > + "MM_FILEPAGES", > > > + "MM_ANONPAGES", > > > + "MM_SWAPENTS", > > > + "MM_SHMEMPAGES", > > > +}; > > > > But please let's not put this in a header

Re: [PATCH 2/2] net: gmii2rgmii: Switch priv field in mdio device structure

2019-07-31 Thread Andrew Lunn
On Wed, Jul 31, 2019 at 03:06:19PM +0530, Harini Katakam wrote: > Use the priv field in mdio device structure instead of the one in > phy device structure. The phy device priv field may be used by the > external phy driver and should not be overwritten. Hi Harini I _think_ you could use

Re: [PATCH 7/9] media: hantro: Add core bits to support H264 decoding

2019-07-31 Thread Tomasz Figa
Hi Boris, On Wed, Jun 19, 2019 at 9:15 PM Boris Brezillon wrote: [snip] > @@ -533,10 +535,21 @@ hantro_queue_setup(struct vb2_queue *vq, unsigned int > *num_buffers, > return -EINVAL; > } > > + /* The H264 decoder needs extra size on the output buffer. */ > +

[PATCH net-next 05/12] net: hns3: remove unnecessary variable in hclge_get_mac_vlan_cmd_status()

2019-07-31 Thread Huazhong Tan
From: Jian Shen The local variable return_status in hclge_get_mac_val_cmd_status() is useless. So this patch returns the error code directly, instead of using this variable. Also, replace some '%d' with '%u' in hclge_get_mac_val_cmd_status(). Signed-off-by: Jian Shen Reviewed-by: Peng Li

[PATCH net-next 10/12] net: hns3: fix some reset handshake issue

2019-07-31 Thread Huazhong Tan
Currently, the driver sets handshake status to tell the hardware that the driver have downed the netdev and it can continue with reset process. The driver will clear the handshake status when re-initializing the CMDQ, and does not recover this status when reset fail, which may cause the hardware

[PATCH net-next 00/12] net: hns3: some code optimizations & bugfixes & features

2019-07-31 Thread Huazhong Tan
This patch-set includes code optimizations, bugfixes and features for the HNS3 ethernet controller driver. [patch 01/12] adds support for reporting link change event. [patch 02/12] adds handler for NCSI error. [patch 03/12] fixes bug related to debugfs. [patch 04/12] adds a code optimization

[PATCH net-next 02/12] net: hns3: add handler for NCSI error mailbox

2019-07-31 Thread Huazhong Tan
When NCSI has HW error, the IMP will report this error to the driver by sending a mailbox. After received this message, the driver should assert a global reset to fix this kind of HW error. Signed-off-by: Huazhong Tan Reviewed-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h

[PATCH net-next 01/12] net: hns3: add link change event report

2019-07-31 Thread Huazhong Tan
From: Jian Shen Previously, PF updates link status per second. For some scenario, it requires link down event being reported more quickly. To solve it, firmware pushes the link change event to PF with CMDQ message, and driver updates the link status directly. Signed-off-by: Jian Shen

[PATCH net-next 03/12] net: hns3: do not query unsupported commands in debugfs

2019-07-31 Thread Huazhong Tan
From: Yufeng Mo Some commands are not supported on DCB-unsupported ports. This patch distinguishes these commands and does not query unsupported commands in debugfs. This patch also fix an error in the dump "qos buf cfg" command in debugfs. Fixes: 2849d4e7a1be ("net: hns3: Add "tc config" info

[PATCH net-next 09/12] net: hns3: rename a member in struct hclge_mac_ethertype_idx_rd_cmd

2019-07-31 Thread Huazhong Tan
From: Guojia Liao The member 'mac_add' defined in hclge_mac_ethertype_idx_rd_cmd means MAC address, so 'mac_addr' is a better name for it. Signed-off-by: Guojia Liao Signed-off-by: Guangbin Huang Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 2

[PATCH net-next 07/12] net: hns3: minior error handling change for hclge_tm_schd_info_init

2019-07-31 Thread Huazhong Tan
From: Yunsheng Lin When hclge_tm_schd_info_update calls hclge_tm_schd_info_init to initialize the schedule info, hdev->tm_info.num_pg and hdev->tx_sch_mode is not changed, which makes the checking in hclge_tm_schd_info_init unnecessary. So this patch moves the hdev->tm_info.num_pg and

[PATCH net-next 08/12] net: hns3: simplify hclge_cmd_query_error()

2019-07-31 Thread Huazhong Tan
From: Weihang Li The 4th and 5th parameter of hclge_cmd_query_error is useless, so this patch removes them. Signed-off-by: Weihang Li Reviewed-by: Peng Li Signed-off-by: Huazhong Tan --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c| 19 +-- 1 file changed, 5

[PATCH net-next 06/12] net: hns3: minor cleanup in hns3_clean_rx_ring

2019-07-31 Thread Huazhong Tan
From: Yunsheng Lin The unused_count variable is used to indicate how many RX BD need attaching new buffer in hns3_clean_rx_ring, and the clean_count variable has the similar meaning. This patch removes the clean_count variable and use unused_count to uniformly indicate the RX BD that need

[PATCH net-next 04/12] net: hns3: refine for set ring parameters

2019-07-31 Thread Huazhong Tan
From: Jian Shen Previously, when changing the ring parameters, we free the old ring resources firstly, and then setup the new ring resources. In some case of an memory allocation fail, there will be no resources to use. This patch refines it by setup new ring resources and free the old ring

[PATCH net-next 12/12] net: hns3: activate reset timer when calling reset_event

2019-07-31 Thread Huazhong Tan
When calling hclge_reset_event() within HCLGE_RESET_INTERVAL, it returns directly now. If no one call it again, then the error which needs a reset to fix it can not be fixed. So this patch activates the reset timer for this case, and adds checking in the end of the reset procedure to make this

[PATCH net-next 11/12] net: hns3: clear reset interrupt status in hclge_irq_handle()

2019-07-31 Thread Huazhong Tan
Currently, the reset interrupt is cleared in the reset task, which is too late. Since, when the hardware finish the previous reset, it can begin to do a new global/IMP reset, if this new coming reset type is same as the previous one, the driver will clear them together, then driver can not get

Re: [PATCH net-next v2 4/4] net: ftgmac100: Select ASPEED MDIO driver for the AST2600

2019-07-31 Thread Andrew Lunn
On Wed, Jul 31, 2019 at 03:09:59PM +0930, Andrew Jeffery wrote: > Ensures we can talk to a PHY via MDIO on the AST2600, as the MDIO > controller is now separate from the MAC. > > Signed-off-by: Andrew Jeffery Reviewed-by: Andrew Lunn Andrew

Re: [PATCH net-next v2 3/4] net: ftgmac100: Add support for DT phy-handle property

2019-07-31 Thread Andrew Lunn
On Wed, Jul 31, 2019 at 03:09:58PM +0930, Andrew Jeffery wrote: > phy-handle is necessary for the AST2600 which separates the MDIO > controllers from the MAC. > > I've tried to minimise the intrusion of supporting the AST2600 to the > FTGMAC100 by leaving in place the existing MDIO support for

Re: [PATCH net-next v2 2/4] net: phy: Add mdio-aspeed

2019-07-31 Thread Andrew Lunn
On Wed, Jul 31, 2019 at 03:09:57PM +0930, Andrew Jeffery wrote: > The AST2600 design separates the MDIO controllers from the MAC, which is > where they were placed in the AST2400 and AST2500. Further, the register > interface is reworked again, so now we have three possible different > interface

Re: [PATCH net-next v2 6/6] net: dsa: mv88e6xxx: add PTP support for MV88E6250 family

2019-07-31 Thread Andrew Lunn
On Wed, Jul 31, 2019 at 10:23:51AM +0200, Hubert Feurstein wrote: > This adds PTP support for the MV88E6250 family. > > Signed-off-by: Hubert Feurstein Reviewed-by: Andrew Lunn Andrew

Re: [PATCH net-next v2 5/6] net: dsa: mv88e6xxx: order ptp structs numerically ascending

2019-07-31 Thread Andrew Lunn
On Wed, Jul 31, 2019 at 10:23:50AM +0200, Hubert Feurstein wrote: > As it is done for all the other structs within this driver. > > Signed-off-by: Hubert Feurstein Reviewed-by: Andrew Lunn Andrew

[PATCH v3 06/26] drm: kirin: Remove out_format from ade_crtc

2019-07-31 Thread John Stultz
From: Xu YiPing As part of refactoring the kirin driver to better support different hardware revisions, this patch removes the out_format field in the struct ade_crtc, which was only ever set to LDI_OUT_RGB_888. Thus this patch removes the field and instead directly uses LDI_OUT_RGB_888. Cc:

[PATCH v3 05/26] drm: kirin: Remove uncessary parameter indirection

2019-07-31 Thread John Stultz
From: Xu YiPing In a few functions, we pass in a struct ade_crtc, which we only use to get to the underlying struct ade_hw_ctx. Thus this patch refactors the functions to just take the struct ade_hw_ctx directly. Cc: Rongrong Zou Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel Cc: Sam

Re: [PATCH net-next v2 3/6] net: dsa: mv88e6xxx: introduce invalid_port_mask in mv88e6xxx_info

2019-07-31 Thread Andrew Lunn
On Wed, Jul 31, 2019 at 10:23:48AM +0200, Hubert Feurstein wrote: > With this it is possible to mark certain chip ports as invalid. This is > required for example for the MV88E6220 (which is in general a MV88E6250 > with 7 ports) but the ports 2-4 are not routed to pins. > > If a user configures

[PATCH v3 19/26] drm: kirin: Move drm driver to driver data

2019-07-31 Thread John Stultz
From: Xu YiPing As part of refactoring the kirin driver to better support different hardware revisions, this patch moves the drm_driver structure to be under device specific driver data. This will allow us to more easily add support for kirin960 hardware with later patches. Cc: Rongrong Zou

Re: [PATCH net-next v2 1/6] net: dsa: mv88e6xxx: add support for MV88E6220

2019-07-31 Thread Andrew Lunn
On Wed, Jul 31, 2019 at 10:23:46AM +0200, Hubert Feurstein wrote: > The MV88E6220 is almost the same as MV88E6250 except that the ports 2-4 are > not routed to pins. So the usable ports are 0, 1, 5 and 6. > > Signed-off-by: Hubert Feurstein Reviewed-by: Andrew Lunn Andrew

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

2019-07-31 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/staging/android/vsoc.c: In function 'handle_vsoc_cond_wait': drivers/staging/android/vsoc.c:440:33: error: passing argument 1 of 'hrtimer_init_sleeper_on_stack' from incompatible pointer

Re: [PATCH v2 3/3] KVM: Fix leak vCPU's VMCS value into other pCPU

2019-07-31 Thread Wanpeng Li
On Wed, 31 Jul 2019 at 20:55, Paolo Bonzini wrote: > > On 31/07/19 13:39, Wanpeng Li wrote: > > diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c > > index ed061d8..12f2c91 100644 > > --- a/virt/kvm/kvm_main.c > > +++ b/virt/kvm/kvm_main.c > > @@ -2506,7 +2506,7 @@ void

Re: [PATCH v4 2/2] RISC-V: Implement sparsemem

2019-07-31 Thread Greentime Hu
Hi Logan, Logan Gunthorpe 於 2019年8月1日 週四 上午1:08寫道: > > > > On 2019-07-31 12:30 a.m., Greentime Hu wrote: > > I look this issue more closely. > > I found it always sets each memblock region to node 0. Does this make sense? > > I am not sure if I understand this correctly. Do you have any idea for

[PATCH v6 0/2] Add Macronix raw NAND controller driver

2019-07-31 Thread Mason Yang
Hi, v6 patch including: 1. compatible rename to "mxicy,multi-itfc-v009-nand-morph" 2. remove xxx_clk to xxx in DTS and driver. 3. patch mxic_nfc_data_xfer() v5 patch including: 1. compatible rename to "macronix,nand-controller" 2. handle three clock in one 3. other minor patches v4 patch back

[PATCH v6 1/2] mtd: rawnand: Add Macronix raw NAND controller driver

2019-07-31 Thread Mason Yang
Add a driver for Macronix raw NAND controller. Signed-off-by: Mason Yang --- drivers/mtd/nand/raw/Kconfig | 6 + drivers/mtd/nand/raw/Makefile| 1 + drivers/mtd/nand/raw/mxic_nand.c | 554 +++ 3 files changed, 561 insertions(+) create mode 100644

[PATCH v3 3/3] KVM: Check preempted_in_kernel for involuntary preemption

2019-07-31 Thread Wanpeng Li
From: Wanpeng Li preempted_in_kernel is updated in preempt_notifier when involuntary preemption ocurrs, it can be stale when the voluntarily preempted vCPUs are taken into account by kvm_vcpu_on_spin() loop. This patch lets it just check preempted_in_kernel for involuntary preemption. Cc:

[PATCH v6 2/2] dt-bindings: mtd: Document Macronix raw NAND controller bindings

2019-07-31 Thread Mason Yang
Document the bindings used by the Macronix raw NAND controller. Signed-off-by: Mason Yang --- Documentation/devicetree/bindings/mtd/mxic-nand.txt | 19 +++ 1 file changed, 19 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/mxic-nand.txt diff --git

[PATCH v3 2/3] KVM: LAPIC: Don't need to wakeup vCPU twice afer timer fire

2019-07-31 Thread Wanpeng Li
From: Wanpeng Li kvm_set_pending_timer() will take care to wake up the sleeping vCPU which has pending timer, don't need to check this in apic_timer_expired() again. Cc: Paolo Bonzini Cc: Radim Krčmář Signed-off-by: Wanpeng Li --- arch/x86/kvm/lapic.c | 8 1 file changed, 8

[PATCH v3 1/3] KVM: Fix leak vCPU's VMCS value into other pCPU

2019-07-31 Thread Wanpeng Li
From: Wanpeng Li After commit d73eb57b80b (KVM: Boost vCPUs that are delivering interrupts), a five years old bug is exposed. Running ebizzy benchmark in three 80 vCPUs VMs on one 80 pCPUs Skylake server, a lot of rcu_sched stall warning splatting in the VMs after stress testing: INFO:

[PATCH] perf tools: Fix a typo in Makefile

2019-07-31 Thread Masanari Iida
This patch fix a spelling typo in Makefile. Signed-off-by: Masanari Iida --- tools/perf/Documentation/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/Documentation/Makefile b/tools/perf/Documentation/Makefile index 6d148a40551c..adc5a7e44b98 100644 ---

Re: [PATCH v2 2/2] ARM: dts: aspeed: Add Mihawk BMC platform

2019-07-31 Thread Andrew Jeffery
Hi Ben, Comments inline below. Also apologies for the IBM/IPS mixup in the previous review, I've been corrected :) On Wed, 31 Jul 2019, at 17:17, Ben Pai wrote: > The Mihawk BMC is an ASPEED ast2500 based BMC that is part of an > OpenPower Power9 server. > > Signed-off-by: Ben Pai > --- >

Re: [RFC 1/2] mm/sparsemem: Add vmem_altmap support in vmemmap_populate_basepages()

2019-07-31 Thread Anshuman Khandual
On 07/31/2019 09:40 PM, Will Deacon wrote: > On Fri, Jun 28, 2019 at 10:14:42AM +0530, Anshuman Khandual wrote: >> Generic vmemmap_populate_basepages() is used across platforms for vmemmap >> as standard or as fallback when huge pages mapping fails. On arm64 it is >> used for configs with

[PATCH] tomoyo: Fix incorrect return value from tomoyo_find_next_domain()

2019-07-31 Thread Takeshi Misawa
When filename exceeds PATH_MAX, tomoyo_find_next_domain() retval is not ENAMETOOLONG, but ENOENT. Fix this by retuen kern_path() error. Signed-off-by: Takeshi Misawa --- Dear Tetsuo Handa I found unexpected return value from TOMOYO and try to create a patch. If this is not acceptable for

Re: [RFC 2/2] arm64/mm: Enable device memory allocation and free for vmemmap mapping

2019-07-31 Thread Anshuman Khandual
On 07/31/2019 09:41 PM, Will Deacon wrote: > On Fri, Jun 28, 2019 at 10:14:43AM +0530, Anshuman Khandual wrote: >> This enables vmemmap_populate() and vmemmap_free() functions to incorporate >> struct vmem_altmap based device memory allocation and free requests. With >> this device memory with

Re: [v7 2/2] gpio: aspeed: Add SGPIO driver

2019-07-31 Thread Andrew Jeffery
On Thu, 1 Aug 2019, at 05:32, Hongwei Zhang wrote: > Add SGPIO driver support for Aspeed AST2500 SoC. > > Signed-off-by: Hongwei Zhang > Reviewed-by: Andrew Jeffery Adding my Reviewed-by tag is a bit keen, I only gave it for the bindings on v6. However, having looked over the patch

Re: [PATCH] linux/bits.h: Add compile time sanity check of GENMASK inputs

2019-07-31 Thread Joe Perches
On Thu, 2019-08-01 at 11:50 +0900, Masahiro Yamada wrote: > On Thu, Aug 1, 2019 at 4:04 AM Rikard Falkeborn > wrote: > > GENMASK() and GENMASK_ULL() are supposed to be called with the high bit > > as the first argument and the low bit as the second argument. Mixing > > them will return a mask

Re: [PATCH v3] kbuild: Check for unknown options with cc-option usage in Kconfig and clang

2019-07-31 Thread Masahiro Yamada
On Wed, Jul 31, 2019 at 1:51 AM Masahiro Yamada wrote: > > On Wed, Jul 31, 2019 at 1:50 AM Nathan Chancellor > wrote: > > > > On Tue, Jul 30, 2019 at 09:48:03AM -0700, Stephen Boyd wrote: > > > If the particular version of clang a user has doesn't enable > > > -Werror=unknown-warning-option by

Re: [PATCH] linux/bits.h: Add compile time sanity check of GENMASK inputs

2019-07-31 Thread Masahiro Yamada
On Thu, Aug 1, 2019 at 4:04 AM Rikard Falkeborn wrote: > > GENMASK() and GENMASK_ULL() are supposed to be called with the high bit > as the first argument and the low bit as the second argument. Mixing > them will return a mask with zero bits set. > > Recent commits show getting this wrong is not

linux-next: manual merge of the sound-asoc tree with the sound tree

2019-07-31 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the sound-asoc tree got conflicts in: sound/soc/intel/skylake/skl-nhlt.c sound/soc/intel/skylake/skl.h between commit: 1169cbf6b98e ("ASoC: Intel: Skylake: use common NHLT module") from the sound tree and commit: bcc2a2dc3ba8 ("ASoC: Intel:

Re: [PATCH v6 19/57] iio: Remove dev_err() usage after platform_get_irq()

2019-07-31 Thread Phil Reid
G'day Stephen, One comment below. On 31/07/2019 22:32, Stephen Boyd wrote: Quoting Phil Reid (2019-07-30 23:42:16) G'day Stephen, A comment unrelated to your change. On 31/07/2019 02:15, Stephen Boyd wrote: diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c index

Re: [PATCH] libfdt: reduce the number of headers included from libfdt_env.h

2019-07-31 Thread Masahiro Yamada
On Tue, Jun 18, 2019 at 1:21 AM Masahiro Yamada wrote: > > Currently, libfdt_env.h includes just for INT_MAX. > > pulls in a lots of broat. > > Thanks to commit 54d50897d544 ("linux/kernel.h: split *_MAX and *_MIN > macros into "), can be replaced with > . > > This saves including dozens of

Re: [PATCH 2/2] cnic: Use refcount_t for refcount

2019-07-31 Thread Chuhong Yuan
Michael Chan 于2019年8月1日周四 上午1:58写道: > > On Wed, Jul 31, 2019 at 5:22 AM Chuhong Yuan wrote: > > > static void cnic_ctx_wr(struct cnic_dev *dev, u32 cid_addr, u32 off, u32 > > val) > > @@ -494,7 +494,7 @@ int cnic_register_driver(int ulp_type, struct > > cnic_ulp_ops *ulp_ops) > > } >

Re: [PATCH v4] modpost: check for static EXPORT_SYMBOL* functions

2019-07-31 Thread Masahiro Yamada
On Wed, Jul 31, 2019 at 5:54 PM Masahiro Yamada wrote: > > Hi. > > > > On Wed, Jul 31, 2019 at 3:12 AM Denis Efremov wrote: > > > > This patch adds a check to warn about static EXPORT_SYMBOL* functions > > during the modpost. In most of the cases, a static symbol marked for > > exporting is an

Re: [PATCH RFC] modpost: Support I2C Aliases from OF tables

2019-07-31 Thread Masahiro Yamada
Hi. On Thu, Aug 1, 2019 at 4:44 AM Wolfram Sang wrote: > > Hi Javier, > > thank you for providing the extra information. > > (And Kieran, thanks for the patch!) > > > The other option is to remove i2c_of_match_device() and don't make OF match > > to fallback to i2c_of_match_device_sysfs(). This

[PATCH v2] powerpc: Support CMDLINE_EXTEND

2019-07-31 Thread Chris Packham
Bring powerpc in line with other architectures that support extending or overriding the bootloader provided command line. The current behaviour is most like CMDLINE_FROM_BOOTLOADER where the bootloader command line is preferred but the kernel config can provide a fallback so

[PATCH] asm-generic: Remove redundant arch-specific rules for simd.h

2019-07-31 Thread Herbert Xu
On Thu, Aug 01, 2019 at 11:53:46AM +1000, Stephen Rothwell wrote: > Hi all, > > After merging the crypto tree, today's linux-next build (arm > multi_v7_defconfig) produced this warning: > > scripts/Makefile.asm-generic:25: redundant generic-y found in > arch/arm/include/asm/Kbuild: simd.h > >

linux-next: build warnings after merge of the crypto tree

2019-07-31 Thread Stephen Rothwell
Hi all, After merging the crypto tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: scripts/Makefile.asm-generic:25: redundant generic-y found in arch/arm/include/asm/Kbuild: simd.h Introduced by commit 82cb54856874 ("asm-generic: make simd.h a mandatory

[PATCH -next] staging: rtl8723bs: remove set but not used variable 'bEEPROMCheck'

2019-07-31 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/staging/rtl8723bs//hal/odm_CfoTracking.c: In function 'odm_SetCrystalCap': drivers/staging/rtl8723bs//hal/odm_CfoTracking.c:14:7: warning: variable 'bEEPROMCheck' set but not used [-Wunused-but-set-variable] Reported-by: Hulk Robot

Re: [PATCH RFC 2/2] futex: Implement mechanism to wait on any of several futexes

2019-07-31 Thread Pierre-Loup A. Griffais
On 7/31/19 6:32 PM, Zebediah Figura wrote: On 7/31/19 8:22 PM, Zebediah Figura wrote: On 7/31/19 7:45 PM, Thomas Gleixner wrote: If I assume a maximum of 65 futexes which got mentioned in one of the replies then this will allocate 7280 bytes alone for the futex_q array with a stock debian

Re: [PATCH] ocfs: further debugfs cleanups

2019-07-31 Thread Joseph Qi
On 19/7/31 21:21, Greg Kroah-Hartman wrote: > There is no need to check return value of debugfs_create functions, but > the last sweep through ocfs missed a number of places where this was > happening. There is also no need to save the individual dentries for > the debugfs files, as everything

Re: [linux-sunxi] Re: [PATCH 1/1] nvmem: sunxi_sid: fix A64 SID controller support

2019-07-31 Thread Vasily Khoruzhick
On Wed, Jul 31, 2019 at 1:43 AM Chen-Yu Tsai wrote: > > On Wed, Jul 31, 2019 at 3:15 PM Stefan Mavrodiev wrote: > > > > Like in H3, A64 SID controller doesn't return correct data > > when using direct access. It appears that on A64, SID needs > > 8 bytes of word_size. > > > > Workaround is to

Re: [RFC PATCH 0/7] xfs: add reflink & dedupe support for fsdax.

2019-07-31 Thread Shiyang Ruan
On 8/1/19 4:33 AM, Goldwyn Rodrigues wrote: On 19:49 31/07, Shiyang Ruan wrote: This patchset aims to take care of this issue to make reflink and dedupe work correctly in XFS. It is based on Goldwyn's patchsets: "v4 Btrfs dax support" and "Btrfs iomap". I picked up some patches related and

[PATCH -next] intel_th: msu: Fix possible memory leak in mode_store()

2019-07-31 Thread Wei Yongjun
'mode' is malloced in mode_store() and should be freed before leaving from the error handling cases, otherwise it will cause memory leak. Fixes: 615c164da0eb ("intel_th: msu: Introduce buffer interface") Signed-off-by: Wei Yongjun --- drivers/hwtracing/intel_th/msu.c | 4 +++- 1 file changed, 3

Re: [PATCH v2 08/22] staging: erofs: kill CONFIG_EROFS_FS_IO_MAX_RETRIES

2019-07-31 Thread Chao Yu
On 2019/7/31 23:57, Gao Xiang wrote: > CONFIG_EROFS_FS_IO_MAX_RETRIES seems a runtime setting > and users have no idea about the change in behaviour. > > Let's remove the setting currently and could turn it > into a module parameter if it's really needed. > > Suggested-by: David Sterba >

Re: [PATCH RFC 2/2] futex: Implement mechanism to wait on any of several futexes

2019-07-31 Thread Zebediah Figura
On 7/31/19 8:22 PM, Zebediah Figura wrote: On 7/31/19 7:45 PM, Thomas Gleixner wrote: If I assume a maximum of 65 futexes which got mentioned in one of the replies then this will allocate 7280 bytes alone for the futex_q array with a stock debian config which has no debug options enabled which

[PATCH] enetc: Select PHYLIB while CONFIG_FSL_ENETC_VF is set

2019-07-31 Thread YueHaibing
Like FSL_ENETC, when CONFIG_FSL_ENETC_VF is set, we should select PHYLIB, otherwise building still fails: drivers/net/ethernet/freescale/enetc/enetc.o: In function `enetc_open': enetc.c:(.text+0x2744): undefined reference to `phy_start' enetc.c:(.text+0x282c): undefined reference to

Re: Build regressions/improvements in v5.3-rc2

2019-07-31 Thread Michael Ellerman
Geert Uytterhoeven writes: > Below is the list of build error/warning regressions/improvements in > v5.3-rc2[1] compared to v5.2[2]. > > Summarized: > - build errors: +10/-1 > - build warnings: +136/-133 > > JFYI, when comparing v5.3-rc2[1] to v5.3-rc1[3], the summaries are: > - build

[PATCH] ima: Allow to import the blacklisted cert signed by secondary CA cert

2019-07-31 Thread Jia Zhang
Similar to .ima, the cert imported to .ima_blacklist is able to be authenticated by a secondary CA cert. Signed-off-by: Jia Zhang --- include/keys/system_keyring.h| 6 ++ security/integrity/digsig.c | 6 -- security/integrity/ima/ima_mok.c | 2 +- 3 files changed, 7

Re: [PATCH RFC 2/2] futex: Implement mechanism to wait on any of several futexes

2019-07-31 Thread Zebediah Figura
On 7/31/19 7:45 PM, Thomas Gleixner wrote: If I assume a maximum of 65 futexes which got mentioned in one of the replies then this will allocate 7280 bytes alone for the futex_q array with a stock debian config which has no debug options enabled which would bloat the struct. Adding the

Re: [PATCH -next] iwlwifi: dbg: work around clang bug by marking debug strings static

2019-07-31 Thread Michael Ellerman
Nick Desaulniers writes: > Commit r353569 in prerelease Clang-9 is producing a linkage failure: > > ld: drivers/net/wireless/intel/iwlwifi/fw/dbg.o: > in function `_iwl_fw_dbg_apply_point': > dbg.c:(.text+0x827a): undefined reference to `__compiletime_assert_2387' This breakage is also seen in

  1   2   3   4   5   6   7   8   9   10   >