Re: [PATCH v1 3/4] arm: dts: mt7623: add display related nodes

2017-09-21 Thread Ryder Lee
On Wed, 2017-09-20 at 09:11 +0800, CK Hu wrote: > Hi, Ryder: > > Mode comment inline. > > On Tue, 2017-09-19 at 14:27 +0800, Ryder Lee wrote: > > > + smi_common: smi@1000c000 { > > + compatible = "mediatek,mt7623-smi-common", > > +"mediatek,mt2701-smi-common

Re: [PATCH 1/2] powerpc/pseries: fix "OF: ERROR: Bad of_node_put() on /cpus" during DLPAR

2017-09-21 Thread Michael Ellerman
Hi Tyrel, Thanks for jumping on this. Tyrel Datwyler writes: > Commit 215ee763f8cb ("powerpc: pseries: remove dlpar_attach_node dependency on > full path") reworked dlpar_attach_node() to no longer look up the parent > node "/cpus", but instead to have the parent node passed by the caller in the

Re: [PATCH] lightnvm: pblk: fix error path in pblk_lines_alloc_metadata

2017-09-21 Thread Javier González
> On 20 Sep 2017, at 21.50, Rakesh Pandit wrote: > > Use appropriate memory free calls based on allocation type used and > also fix number of times free is called if kmalloc fails. > > Signed-off-by: Rakesh Pandit > --- > drivers/lightnvm/pblk-init.c | 8 ++-- > 1 file changed, 6 insertions(

Re: [mainline][DLPAR][Oops] OF: ERROR: Bad of_node_put() on /cpus

2017-09-21 Thread Michael Ellerman
Tyrel Datwyler writes: > On 09/20/2017 04:39 AM, Michael Ellerman wrote: >> Rob Herring writes: >>> On Fri, Sep 15, 2017 at 6:04 AM, abdul wrote: Mainline kernel panics during DLPAR CPU add/remove operation. Machine Type: Power8 PowerVM LPAR kernel 4.13.0 >>> >>> Did 4.1

Re: [PATCH V8 12/14] mmc: block: Add CQE and blk-mq support

2017-09-21 Thread Ulf Hansson
On 13 September 2017 at 13:40, Adrian Hunter wrote: > Add CQE support to the block driver, including: > - optionally using DCMD for flush requests > - "manually" issuing discard requests > - issuing read / write requests to the CQE > - supporting block-layer timeouts > - handli

Re: [RESEND RFC PATCH 0/7] sun8i H3 HDMI glue driver for DW HDMI

2017-09-21 Thread Hans Verkuil
On 09/21/17 11:39, Jose Abreu wrote: > Hi Jernej, > > On 20-09-2017 21:01, Jernej Skrabec wrote: >> [added media mailing list due to CEC question] >> >> This patch series adds a HDMI glue driver for Allwinner H3 SoC. For now, only >> video and CEC functionality is supported. Audio needs more tweak

Re: [RFC PATCH 1/7] sound: Replace timespec with timespec64

2017-09-21 Thread Arnd Bergmann
On Thu, Sep 21, 2017 at 8:18 AM, Baolin Wang wrote: > Since timespec is not year 2038 safe on 32bit system, and we need to > convert all timespec variables to timespec64 type for sound subsystem. > > This patch is used to do preparation for following patches, that will > convert all structures def

[ANNOUNCE] util-linux stable v2.30.2

2017-09-21 Thread Karel Zak
The util-linux stable maintenance release v2.30.2 is available at http://www.kernel.org/pub/linux/utils/util-linux/v2.30/ Feedback and bug reports, as always, are welcomed. util-linux 2.30.2 Release Notes === blockdev: - document --setro more properly [Kar

Re: [PATCH RFC 2/3] pipe: protect pipe_max_size access with a mutex

2017-09-21 Thread Mikulas Patocka
On Tue, 19 Sep 2017, Joe Lawrence wrote: > On 09/19/2017 03:53 AM, Mikulas Patocka wrote: > > On Fri, 15 Sep 2017, Joe Lawrence wrote: > > [ ... snip ... ] > >> Hi Mikulas, > >> > >> I'm not strong when it comes to memory barriers, but one of the > >> side-effects of using the mutex is that pipe

Re: [PATCH v2 0/2] Support SDHCI on 8974pro devices

2017-09-21 Thread Jeremy McNicoll
On Fri, Sep 15, 2017 at 04:35:22PM -0700, Bjorn Andersson wrote: > The calibration clocks for the delay circut should be enabled, as done in the > downstream kernel, in order for reset of the SDHCI not to fail on some > Qualcomm > platforms (e.g. 8974pro). These patches makes it possible to refere

Re: [PATCH v3] Make initramfs honor CONFIG_DEVTMPFS_MOUNT

2017-09-21 Thread Michael Ellerman
Rob Landley writes: > On 09/14/2017 04:17 AM, Christophe LEROY wrote: >> Le 14/09/2017 à 01:51, Rob Landley a écrit : >>> From: Rob Landley >>> >>> Make initramfs honor CONFIG_DEVTMPFS_MOUNT, and move >>> /dev/console open after devtmpfs mount. >>> >>> Add workaround for Debian bug that was copi

Re: [PATCH] lightnvm: pblk: fix error path in pblk_lines_alloc_metadata

2017-09-21 Thread Rakesh Pandit
On Thu, Sep 21, 2017 at 11:56:46AM +0200, Javier González wrote: > > On 20 Sep 2017, at 21.50, Rakesh Pandit wrote: > > > > Use appropriate memory free calls based on allocation type used and > > also fix number of times free is called if kmalloc fails. > > > > Signed-off-by: Rakesh Pandit > >

[PATCH] iommu/of: Remove PCI host bridge node check

2017-09-21 Thread Robin Murphy
of_pci_iommu_init() tries to be clever and stop its alias walk at the device represented by master_np, in case of weird PCI topologies where the bridge to the IOMMU and the rest of the system is not at the root. It turns out this is a bit short-sighted, since there are plenty of other callers of pc

Re: [PATCH 0/3] EDAC: Handle return value of kasprintf

2017-09-21 Thread Borislav Petkov
On Thu, Sep 21, 2017 at 01:23:10PM +0530, Arvind Yadav wrote: > kasprintf() can fail here and we must check its return value. > > Arvind Yadav (3): > [PATCH 1/3] EDAC: i7core: Handle return value of kasprintf > [PATCH 2/3] EDAC: sb_edac: Handle return value of kasprintf > [PATCH 3/3] EDAC: s

[PATCH v2] iommu/of: Remove PCI host bridge node check

2017-09-21 Thread Robin Murphy
of_pci_iommu_init() tries to be clever and stop its alias walk at the device represented by master_np, in case of weird PCI topologies where the bridge to the IOMMU and the rest of the system is not at the root. It turns out this is a bit short-sighted, since there are plenty of other callers of pc

Re: [PATCH] staging:rtl8188eu Remove unnecessary {} braces in

2017-09-21 Thread Joe Perches
On Thu, 2017-09-21 at 10:15 +0300, Dan Carpenter wrote: > On Thu, Sep 21, 2017 at 12:18:04PM +0530, Janani Sankara Babu wrote: > > --- a/drivers/staging/rtl8188eu/hal/phy.c > > +++ b/drivers/staging/rtl8188eu/hal/phy.c > > @@ -728,9 +728,9 @@ static void patha_fill_iqk(struct adapter *adapt, bool

[PATCH RESEND 1/2] phy: phy-mtk-tphy: fix NULL point of chip bank

2017-09-21 Thread Chunfeng Yun
Chip bank of version-1 is initialized as NULL, but it's used by pcie_phy_instance_power_on/off(), so assign it a right address. Signed-off-by: Chunfeng Yun --- drivers/phy/mediatek/phy-mtk-tphy.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/phy/mediatek/phy-mt

[PATCH RESEND 2/2] phy: phy-mtk-tphy: add set_mode callback

2017-09-21 Thread Chunfeng Yun
This is used to force PHY with USB OTG function to enter a specific mode, and override OTG IDPIN(or IDDIG) signal. Signed-off-by: Chunfeng Yun --- drivers/phy/mediatek/phy-mtk-tphy.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/drivers/phy/mediatek/p

Re: [PATCH v2 26/31] staging/comedi/das16: Make timer initialization unconditional

2017-09-21 Thread Ian Abbott
On 21/09/17 00:27, Kees Cook wrote: With timer initialization made unconditional, there is no reason to make del_timer_sync() calls conditionally, there by removing the test of the .data field. Cc: Ian Abbott Cc: H Hartley Sweeten Cc: Greg Kroah-Hartman Cc: de...@driverdev.osuosl.org Signed-o

[PATCH 1/1] drivers:gpu: Use vma_pages()

2017-09-21 Thread Allen Pais
Replace explicit computation of vma page count by a call to vma_pages() Signed-off-by: Allen Pais --- drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_gem.c b/drivers/gpu/drm/rockchip/rockchip

Re: [PATCH v2 0/4] phy: rockchip-typec: Set "flip" properly; some cleanups; fix swing

2017-09-21 Thread Kishon Vijay Abraham I
Hi Douglas, On Wednesday 20 September 2017 01:26 AM, Douglas Anderson wrote: > When connecting to certain DP monitors it was observed that only one > of the two orientations of the type C to DP cable would work. > Debugging showed that the problem was that we needed to set the type C > "flip" stat

Re: [PATCH 1/2] sched: Introduce new flags to sched_setaffinity to support soft affinity.

2017-09-21 Thread kbuild test robot
Hi Rohit, [auto build test WARNING on tip/sched/core] [also build test WARNING on v4.14-rc1 next-20170921] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Rohit-Jain/sched-Introduce-new-flags-to

Re: [PATCH v5 0/6] Add HiSilicon SoC uncore Performance Monitoring Unit driver

2017-09-21 Thread Zhangshaokun
Hi Mark/Will, Appreciate any comments from you. Thanks, Shaokun On 2017/8/22 16:07, Shaokun Zhang wrote: > This patchset adds support for HiSilicon SoC uncore PMUs driver. It > includes L3C, Hydra Home Agent (HHA) and DDRC. > > Changes in v5: > * remove unnecessary name/num_events member in his

Re: [PATCH 1/1] drivers:gpu: Use vma_pages()

2017-09-21 Thread Allen
> Replace explicit computation of vma page count by a call to > vma_pages() > > Signed-off-by: Allen Pais > --- > drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_gem.c > b/drivers/gpu/drm

Re: [PATCH] reset: Restrict RESET_HSDK_V1 to ARC_SOC_HSDK or COMPILE_TEST

2017-09-21 Thread Philipp Zabel
Hi Geert, On Mon, 2017-09-11 at 14:22 +0200, Geert Uytterhoeven wrote: > The HSDK reset driver is only useful when building for an ARC HSDK > platform. > > While at it, drop the "default n", as that is the default. > > Fixes: e0be864f14240cb1 ("ARC: reset: introduce HSDKv1 reset driver") > Signe

Re: [PATCH V6 1/3] dma-mapping: Introduce device_is_coherent() as a helper

2017-09-21 Thread Robin Murphy
On 19/09/17 09:52, Huacai Chen wrote: > We will use device_is_coherent() as a helper function, which will be > used in the next patch. > > There is a MIPS-specific plat_device_is_coherent(), but we need a more > generic solution, so add and use a new function pointer in dma_map_ops. I think we're

Re: [PATCH 1/1] userfaultfd: non-cooperative: fix fork use after free

2017-09-21 Thread Mark Rutland
On Wed, Sep 20, 2017 at 08:04:13PM +0200, Andrea Arcangeli wrote: > When reading the event from the uffd, we put it on a temporary > fork_event list to detect if we can still access it after releasing > and retaking the event_wqh.lock. > > If fork aborts and removes the event from the fork_event a

Re: [PATCH RESEND 1/2] phy: phy-mtk-tphy: fix NULL point of chip bank

2017-09-21 Thread Kishon Vijay Abraham I
On Thursday 21 September 2017 04:01 PM, Chunfeng Yun wrote: > Chip bank of version-1 is initialized as NULL, but it's used > by pcie_phy_instance_power_on/off(), so assign it a right > address. merged. How was this not noticed before? Thanks Kishon > > Signed-off-by: Chunfeng Yun > --- > dri

Re: [PATCH] seccomp: fix the usage of get/put_seccomp_filter() in seccomp_get_filter()

2017-09-21 Thread Oleg Nesterov
On 09/20, Kees Cook wrote: > > On Wed, Sep 20, 2017 at 5:56 AM, Oleg Nesterov wrote: > > @@ -908,13 +912,13 @@ long seccomp_get_filter(struct task_struct *task, > > unsigned long filter_off, > > if (!data) > > goto out; > > > > - get_seccomp_filter(task); > > +

[PATCH 1/1] net:nfc: use setup_timer

2017-09-21 Thread Allen Pais
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- net/nfc/core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/net/nfc/core.c b/net/nfc/core.c index 5cf33df..e5e23c2 100644 --- a/net/nfc/core

Re: linux-4.14-rc1/arch/powerpc/perf/hv-24x7.c:541: bad condition ?

2017-09-21 Thread Michael Ellerman
[ + Cody in case he's still interested] Michael Ellerman writes: > David Binderman writes: > >> Hello there, >> >> linux-4.14-rc1/arch/powerpc/perf/hv-24x7.c:543]: (warning) Identical >> condition 's1> >> Source code is >> >> if (s1 < s2) >> return 1; >> if (s2 > s1) >>

Re: [PATCH v2] iommu/of: Remove PCI host bridge node check

2017-09-21 Thread Jean-Philippe Brucker
On 21/09/17 11:20, Robin Murphy wrote: > of_pci_iommu_init() tries to be clever and stop its alias walk at the > device represented by master_np, in case of weird PCI topologies where > the bridge to the IOMMU and the rest of the system is not at the root. > It turns out this is a bit short-sighted

Re: [LOCKDEP SPLAT 4.14-rc1] Conflict between smpboot thread create completions and get_online_cpus

2017-09-21 Thread Peter Zijlstra
On Mon, Sep 18, 2017 at 03:24:59PM -0400, Steven Rostedt wrote: > And adding some debugging where the lockdep splat happened: > > watchdog-27 3 764857us : cpus_read_lock+0x5/0xc0: lock cpu > watchdog-27 3 764858us : > => x86_release_hardware+0x8f/0xa0 > => hw_perf_event_de

[PATCH 1/1] drivers:video: use setup_timer

2017-09-21 Thread Allen Pais
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- drivers/video/fbdev/pxa3xx-gcu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/fbdev/pxa3xx-gcu.c b/drivers/video/fbdev/pxa3xx-gc

Re: Worker threads in D state since c5a94a618e7ac86 (workqueue: Use TASK_IDLE)

2017-09-21 Thread Markus Trippelsdorf
On 2017.09.11 at 16:21 +0200, Markus Trippelsdorf wrote: > On 2017.09.11 at 06:11 -0700, Tejun Heo wrote: > > Hello, > > > > On Sun, Sep 10, 2017 at 09:36:53AM +0200, Markus Trippelsdorf wrote: > > > Since: > > > > > > commit c5a94a618e7ac86b20f53d947f68d7cee6a4c6bc > > > Author: Peter Zijlstra

Re: [PATCH] firmware: tegra: add BPMP debugfs support

2017-09-21 Thread Jon Hunter
Hi Timo, On 22/08/17 15:04, Timo Alho wrote: > Tegra power management firmware running on co-processor (BPMP) > implements a simple pseudo file system akin to debugfs. The file > system can be used for debugging purposes to examine and change the > status of selected resources controlled by the fi

Re: [PATCH] dt-bindings: nand: denali: reduce the register space in the example

2017-09-21 Thread Masahiro Yamada
2017-09-21 15:09 GMT+09:00 Oleksij Rempel : > Hi, > > On 21.09.2017 07:26, Masahiro Yamada wrote: >> >> Hi. > > > .. > >>> Hm.. according to >>> >>> https://www.altera.com/en_US/pdfs/literature/hb/cyclone-v/cyclone5_handbook.pdf >>> Table 13-18: NAND Controller Module Data Space Address Range >

Re: [PATCH 2/4] numa, iommu/io-pgtable-arm: Use NUMA aware memory allocation for smmu translation tables

2017-09-21 Thread Robin Murphy
On 21/09/17 09:59, Ganapatrao Kulkarni wrote: > function __arm_lpae_alloc_pages is used to allcoated memory for smmu > translation tables. updating function to allocate memory/pages > from the proximity domain of SMMU device. AFAICS, data->pgd_size always works out to a power-of-two number of page

Re: [PATCH 1/3] ASoC: davinci-mcasp: Handle return value of devm_kasprintf

2017-09-21 Thread Peter Ujfalusi
 Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki On 2017-09-20 13:06, Arvind Yadav wrote: > devm_kasprintf() can fail here and we must check its return value. Acked-by: Peter Ujfalusi > Signed-off-by: Arvind Yadav

Re: [PATCH V2] lightnvm: prevent bd removal if busy

2017-09-21 Thread Matias Bjørling
On 09/12/2017 03:22 PM, Javier González wrote: On 10 Sep 2017, at 21.07, Rakesh Pandit wrote: When a virtual block device is formatted and mounted after creating with "nvme lnvm create... -t pblk", a removal from "nvm lnvm remove" would result in this: 446416.309757] bdi-block not registered [

Re: [PATCH] lightnvm: remove already calculated nr_chnls

2017-09-21 Thread Matias Bjørling
On 09/18/2017 12:56 PM, Matias Bjørling wrote: Den 18. sep. 2017 09.56 skrev "Javier González" >: > On 17 Sep 2017, at 23.04, Rakesh Pandit mailto:rak...@tuxera.com>> wrote: > > Remove repeated calculation for number of channels while creating a >

Re: [PATCH V2] lightnvm: protect target type list with correct locks

2017-09-21 Thread Matias Bjørling
On 09/18/2017 09:53 AM, Javier González wrote: On 16 Sep 2017, at 20.39, Rakesh Pandit wrote: nvm_tgt_types list was protected by wrong lock for NVM_INFO ioctl call and can race with addition or removal of target types. Also unregistering target type was not protected correctly. Fixes: 5cd907

Re: [PATCH] lightnvm: pblk: fix error path in pblk_lines_alloc_metadata

2017-09-21 Thread Matias Bjørling
On 09/21/2017 12:15 PM, Rakesh Pandit wrote: On Thu, Sep 21, 2017 at 11:56:46AM +0200, Javier González wrote: On 20 Sep 2017, at 21.50, Rakesh Pandit wrote: Use appropriate memory free calls based on allocation type used and also fix number of times free is called if kmalloc fails. Signed-off

Re: [PATCH 1/4] firmware: tegra: propagate error code to caller

2017-09-21 Thread Jon Hunter
On 07/09/17 10:31, Timo Alho wrote: > Response messages from Tegra BPMP firmware contain an error return > code as the first word of payload. The error code is used to indicate > incorrectly formatted request message or use of non-existing resource > (clk, reset, powergate) identifier. Current imp

[PATCH] Asus WMI : Add lightbar led support

2017-09-21 Thread Maxime Bellengé
Some asus laptops (ROG series for example) are provided with a lightbar behind the monitor. This patch make posible to switch it on and off. This lightbar works exactly as any other led. Signed-off-by: Maxime Bellengé --- drivers/platform/x86/asus-wmi.c | 63 +++

[PATCH net-next 09/10] net: hns3: Setting for fc_mode and dcb enable flag in TM module

2017-09-21 Thread Yunsheng Lin
After the DCB feature is supported, fc_mode and dcb enable flag must be set according to the DCB parameter. Signed-off-by: Yunsheng Lin --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c | 34 +++--- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/drivers/net/e

[PATCH net-next 05/10] net: hns3: Add tc-based TM support for sriov enabled port

2017-09-21 Thread Yunsheng Lin
When sriov is enabled and TM is in tc-based mode, vf's TM parameters is not set in TM initialization process. This patch add the tc_based TM support for sriov enabled using the information in vport struct. Signed-off-by: Yunsheng Lin --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c | 49 ++

[PATCH net-next 08/10] net: hns3: Add dcb netlink interface for the support of DCB feature

2017-09-21 Thread Yunsheng Lin
This patch add dcb netlink interface by calling the interface from hclge_dcb module. This patch also update Makefile in order to build hns3_dcbnl module. Signed-off-by: Yunsheng Lin --- .../net/ethernet/hisilicon/hns3/hns3pf/Makefile| 2 + .../ethernet/hisilicon/hns3/hns3pf/hns3_dcbnl.c

[PATCH net-next 10/10] net: hns3: Add mqprio support when interacting with network stack

2017-09-21 Thread Yunsheng Lin
When using tc qdisc to configure DCB parameter, dcb_ops->setup_tc is used to tell hclge_dcb module to do the setup. When using lldptool to configure DCB parameter, hclge_dcb module call the client_ops->setup_tc to tell network stack which queue and priority is using for specific tc. Signed-off-by:

Re: [media] s2255drv: Adjust 13 checks for null pointers

2017-09-21 Thread SF Markus Elfring
>> Would you like to clarify corresponding concerns any more? >> > > Look at the `git log` I did this also for a moment. > and it just copies those lines: The Git software preserves these three message fields (when special characters were used in the commit message). Can you accept such softw

Re: [PATCH 2/4] clk: tegra: check BPMP response return code

2017-09-21 Thread Jon Hunter
On 07/09/17 10:31, Timo Alho wrote: > Check return code in BPMP response message(s). The typical error case > is when clock operation is attempted with invalid clock identifier. > > Also remove error print from call to clk_get_info() as the > implementation loops through range of all possible id

Re: [PATCH V8 12/14] mmc: block: Add CQE and blk-mq support

2017-09-21 Thread Adrian Hunter
On 21/09/17 12:59, Ulf Hansson wrote: > On 13 September 2017 at 13:40, Adrian Hunter wrote: >> Add CQE support to the block driver, including: >> - optionally using DCMD for flush requests >> - "manually" issuing discard requests >> - issuing read / write requests to the CQE >> - s

[PATCH net-next 04/10] net: hns3: Add support for port shaper setting in TM module

2017-09-21 Thread Yunsheng Lin
This patch add a tm_port_shaper cmd and set port shaper to HCLGE_ETHER_MAX_RATE on TM initialization process. Signed-off-by: Yunsheng Lin --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c | 33 ++ .../net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.h | 4 +++ 2 files chang

[PATCH 1/1] driver:garmin gps: use setup_timer

2017-09-21 Thread Allen Pais
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- drivers/usb/serial/garmin_gps.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/usb/serial/garmin_gps.c b/drivers/usb/serial/garmin_gps

Re: [PATCH 2/2] drm: Release memory obtained by kasprintf

2017-09-21 Thread Ville Syrjälä
On Wed, Sep 20, 2017 at 12:55:08PM +0530, Arvind Yadav wrote: > Free memory region, if drm_crtc_init_with_planes is not successful. > > Signed-off-by: Arvind Yadav > --- > drivers/gpu/drm/drm_crtc.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gp

[PATCH 1/6] lightnvm: pblk: reuse pblk_gc_should_kick

2017-09-21 Thread Rakesh Pandit
This is a trivial change which reuses pblk_gc_should_kick instead of repeating it again in pblk_rl_free_lines_inc. Signed-off-by: Rakesh Pandit --- drivers/lightnvm/pblk-core.c | 1 + drivers/lightnvm/pblk-rl.c | 9 - 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/driver

[PATCH net-next 07/10] net: hns3: Add hclge_dcb module for the support of DCB feature

2017-09-21 Thread Yunsheng Lin
The hclge_dcb module calls the interface from hclge_main/tm and provide interface for the dcb netlink interface. This patch also update Makefiles required to build the DCB supported code in HNS3 Ethernet driver and update the existing Kconfig file in the hisilicon folder. Signed-off-by: Yunsheng

[PATCH net-next 06/10] net: hns3: Add some interface for the support of DCB feature

2017-09-21 Thread Yunsheng Lin
This patch add some interface and export some interface from hclge_tm and hclgc_main to support the upcoming DCB feature. Signed-off-by: Yunsheng Lin --- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 3 +- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.h| 3 ++ .../net/ethernet/hisil

[PATCH 0/6] misc patches mostly for pblk

2017-09-21 Thread Rakesh Pandit
These are trivial changes up for review. Most of them I made while skimming through the code base. They are mostly cleanups and they are at random places. Rakesh Pandit (6): lightnvm: pblk: reuse pblk_gc_should_kick lightnvm: pblk: protect line bitmap while submitting meta io lightnvm: pbl

[PATCH net-next 01/10] net: hns3: Support for dynamically assigning tx buffer to TC

2017-09-21 Thread Yunsheng Lin
This patch add support of dynamically assigning tx buffer to TC when the TC is enabled. It will save buffer for rx direction to avoid packet loss. Signed-off-by: Yunsheng Lin --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 1 + .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c| 69 ++

[PATCH 2/6] lightnvm: pblk: protect line bitmap while submitting meta io

2017-09-21 Thread Rakesh Pandit
It seems pblk_dealloc_page would race against pblk_alloc_pages for line bitmap for sector allocation. The chances are very low but might as well protect the bitmap properly. It's not even in fast path. Signed-off-by: Rakesh Pandit --- drivers/lightnvm/pblk-core.c | 2 ++ 1 file changed, 2 inse

[PATCH net-next 02/10] net: hns3: Add support for dynamically buffer reallocation

2017-09-21 Thread Yunsheng Lin
Current buffer allocation can only happen at init, when doing buffer reallocation after init, care must be taken care of memory which priv_buf points to. This patch fixes it by using a dynamic allocated temporary memory. Because we only do buffer reallocation at init or when setting up the DCB para

Re: [PATCH 1/2] drm: tegra: dc: Handle return value of kasprintf

2017-09-21 Thread Ville Syrjälä
On Wed, Sep 20, 2017 at 12:55:07PM +0530, Arvind Yadav wrote: > kasprintf() can fail here and we must check its return value. > > Signed-off-by: Arvind Yadav > --- > drivers/gpu/drm/tegra/dc.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/dr

[PATCH 3/6] lightnvm: pblk: fix message if L2P MAP is in device

2017-09-21 Thread Rakesh Pandit
This usually happens if we are developing with qemu and ll2pmode has default value. Even in that case message seems wrong. Signed-off-by: Rakesh Pandit --- drivers/lightnvm/pblk-init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/lightnvm/pblk-init.c b/drivers/lig

[PATCH 4/6] lightnvm: pblk: improve error message if down_timeout fails

2017-09-21 Thread Rakesh Pandit
The two pr_err messages are useless as they don't even differentiate error code. Signed-off-by: Rakesh Pandit --- drivers/lightnvm/pblk-core.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/lightnvm/pblk-core.c b/drivers/lightnvm/pblk-core.c index b92ea

[PATCH] net: phy: Fix truncation of large IRQ numbers in phy_attached_print()

2017-09-21 Thread Geert Uytterhoeven
Given NR_IRQS is 2048 on sparc64, and even 32784 on alpha, 3 digits is not enough to represent interrupt numbers on all architectures. Hence PHY interrupt numbers may be truncated during printing. Increase the buffer size from 4 to 8 bytes to fix this. Fixes: 5e369aefdce4818c ("net: stmmac: Dele

[PATCH net-next 03/10] net: hns3: Add support for PFC setting in TM module

2017-09-21 Thread Yunsheng Lin
This patch add a pfc_pause_en cmd, and use it to configure PFC option according to fc_mode in hdev->tm_info. Signed-off-by: Yunsheng Lin --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c | 68 -- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.h | 5 ++ 2 files changed

[PATCH 1/1] drivers:usb: use setup_timer

2017-09-21 Thread Allen Pais
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- drivers/usb/gadget/udc/omap_udc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/gadget/udc/omap_udc.c b/drivers/usb/gadget/udc/oma

Re: [PATCH v4 2/4] dmaengine: Add STM32 DMAMUX driver

2017-09-21 Thread Peter Ujfalusi
 Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki On 2017-09-07 14:52, Pierre-Yves MORDRET wrote: > This patch implements the STM32 DMAMUX driver. > > The DMAMUX request multiplexer allows routing a DMA request line b

[PATCH 6/6] lightnvm: include NVM Express driver if OCSSD is selected for build

2017-09-21 Thread Rakesh Pandit
Because NVM needs BLK_DEV_NVME, select it automatically if we mark NVM in config file before building kernel. Signed-off-by: Rakesh Pandit --- drivers/lightnvm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/lightnvm/Kconfig b/drivers/lightnvm/Kconfig index ead61a9..b3c00cb 1

[PATCH 5/6] lightnvm: pblk: print incompatible line version correctly

2017-09-21 Thread Rakesh Pandit
Correct it by coverting little endian to cpu endian and also define a macro for line version so that maintenance is easy. Signed-off-by: Rakesh Pandit --- drivers/lightnvm/pblk-core.c | 2 +- drivers/lightnvm/pblk-recovery.c | 4 ++-- drivers/lightnvm/pblk.h | 1 + 3 files changed,

[PATCH] staging: ccree: Convert to platform_{get,set}_drvdata()

2017-09-21 Thread sunil . m
struct platform_device. dev_set_drvdata() is redundant and therefore removed. The driver core clears the driver data to NULL after device_release or on probe failure. Signed-off-by: Suniel Mahesh --- Note: - Patch was tested and built(ARCH=arm) on next-20170921. No build issues reported, however it was not

[PATCH net-next 00/10] Add support for DCB feature in hns3 driver

2017-09-21 Thread Yunsheng Lin
The patchset contains some enhancement related to DCB before adding support for DCB feature. This patchset depends on the following patchset: https://patchwork.ozlabs.org/cover/815646/ https://patchwork.ozlabs.org/cover/816145/ High Level Architecture: [ tc qdisc ][ lldpad ]

Re: [PATCH] gpio: thunderx: remove unused .map() hook from irq_domain_ops

2017-09-21 Thread Linus Walleij
On Thu, Sep 14, 2017 at 4:37 AM, Masahiro Yamada wrote: > This driver implements .alloc() hook, so .map() is not used. > > Signed-off-by: Masahiro Yamada Waiting for David to test this patch before applying. Yours, Linus Walleij

Re: [PATCH] seccomp: fix the usage of get/put_seccomp_filter() in seccomp_get_filter()

2017-09-21 Thread Oleg Nesterov
On 09/20, Kees Cook wrote: > > I like doing these sanity checks -- this isn't fast-path at all. Yes, but see another "introduce get_nth_filter()" cleanup I sent, it is similar but more suitable for Tycho's "retrieving seccomp flags" patch. > > + for (filter = orig; count > 1; filter = filte

Re: [PATCH 6/6] lightnvm: include NVM Express driver if OCSSD is selected for build

2017-09-21 Thread Matias Bjørling
On 09/21/2017 01:28 PM, Rakesh Pandit wrote: Because NVM needs BLK_DEV_NVME, select it automatically if we mark NVM in config file before building kernel. Signed-off-by: Rakesh Pandit --- drivers/lightnvm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/lightnvm/Kconfig b/

Re: [PATCH v5 1/3] irqdomain: export of_phandle_args_to_fwspec

2017-09-21 Thread Linus Walleij
On Wed, Sep 13, 2017 at 10:56 AM, Masahiro Yamada wrote: > This helper will be useful for irqchip drivers that need to convert > DT binding into IRQ fwspec. > > Signed-off-by: Masahiro Yamada I'm waiting for the irqchip maintainers to have a look at this. I can carry it in the GPIO tree, but T

[PATCH] dmaengine: ti-dma-crossbar: Fix possible race condition with dma_inuse

2017-09-21 Thread Peter Ujfalusi
When looking for unused xbar_out lane we should also protect the set_bit() call with the same mutex to protect against concurrent threads picking the same ID. Fixes: ec9bfa1e1a796 ("dmaengine: ti-dma-crossbar: dra7: Use bitops instead of idr") Signed-off-by: Peter Ujfalusi Cc: sta...@vger.kerne

[PATCH] media: staging: greybus: Release memory obtained by kasprintf

2017-09-21 Thread Arvind Yadav
Free memory region, if gb_lights_channel_config is not successful. Signed-off-by: Arvind Yadav --- drivers/staging/greybus/light.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/staging/greybus/light.c b/drivers/staging/greybus/light.c index 3f4148c..b00d47c

Re: [PATCH][pinctrl-next] pinctrl/amd: make functions amd_gpio_suspend and amd_gpio_resume static

2017-09-21 Thread Linus Walleij
On Wed, Sep 13, 2017 at 6:15 PM, Colin King wrote: > From: Colin Ian King > > The functions amd_gpio_suspend and amd_gpio_resume are local to the > source and do not need to be in global scope, so make them static. > > Cleans up sparse warnings: > symbol 'amd_gpio_suspend' was not declared. Shou

Re: [PATCH 01/12] mmc: dt-bindings: update Mediatek MMC bindings

2017-09-21 Thread Linus Walleij
On Thu, Sep 14, 2017 at 4:10 AM, Chaotian Jing wrote: > On Wed, 2017-09-13 at 09:10 -0500, Rob Herring wrote: >> On Tue, Sep 12, 2017 at 05:07:41PM +0800, Chaotian Jing wrote: >> > +- mediatek,latch-ck: Some projects do not support enhance_rx, need set >> > correct latch-ck to avoid data crc >>

Re: [PATCH 4/4] iommu/dma, numa: Use NUMA aware memory allocations in __iommu_dma_alloc_pages

2017-09-21 Thread Robin Murphy
On 21/09/17 09:59, Ganapatrao Kulkarni wrote: > Change function __iommu_dma_alloc_pages to allocate memory/pages > for dma from respective device numa node. > > Signed-off-by: Ganapatrao Kulkarni > --- > drivers/iommu/dma-iommu.c | 17 ++--- > 1 file changed, 10 insertions(+), 7 dele

Re: [RFT PATCH v2] gpiolib: allow gpio irqchip to map irqs dynamically

2017-09-21 Thread Linus Walleij
On Fri, Sep 15, 2017 at 10:26 AM, Jerome Brunet wrote: > I initially planned to do some refcounting in the gpio layer but that would > make > no sense, as you pointed out, the irq could be shared. This refcounting would > only make sense at the irq level. > > On a more general note, I wonder whe

Re: [PATCH] clocksource: integrator: fix section mismatch warning

2017-09-21 Thread Linus Walleij
On Fri, Sep 15, 2017 at 9:42 PM, Arnd Bergmann wrote: > gcc-4.6 and older fail to inline integrator_clocksource_init, so they > end up showing a harmless warning: > > WARNING: vmlinux.o(.text+0x4aa94c): Section mismatch in reference from the > function integrator_clocksource_init() to the functi

[patch 0/3] KVM KVM_HC_RT_PRIO hypercall support

2017-09-21 Thread Marcelo Tosatti
When executing guest vcpu-0 with FIFO:1 priority, which is necessary to deal with the following situation: VCPU-0 (housekeeping VCPU) VCPU-1 (realtime VCPU) raw_spin_lock(A) interrupted, schedule task T-1 raw_spin_lock(A) (spin) raw_spin_unlock(A) Certain operations must i

[PATCH 1/1] drivers:scsi: use setup_timer

2017-09-21 Thread Allen Pais
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- drivers/scsi/sym53c8xx_2/sym_glue.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/scsi/sym53c8xx_2/sym_glue.c b/drivers/scsi/sym53c8xx

[patch 3/3] x86: kvm guest side support for KVM_HC_RT_PRIO hypercall

2017-09-21 Thread Marcelo Tosatti
Add hypercalls to spinlock/unlock to set/unset FIFO priority for the vcpu, protected by a static branch to avoid performance increase in the normal kernels. Enable option by "kvmfifohc" kernel command line parameter (disabled by default). Signed-off-by: Marcelo Tosatti --- arch/x86/kernel/kvm.

[patch 2/3] KVM: x86: KVM_HC_RT_PRIO hypercall (host-side)

2017-09-21 Thread Marcelo Tosatti
When executing guest vcpu-0 with FIFO:1 priority, which is necessary to deal with the following situation: VCPU-0 (housekeeping VCPU) VCPU-1 (realtime VCPU) raw_spin_lock(A) interrupted, schedule task T-1 raw_spin_lock(A) (spin) raw_spin_unlock(A) Certain operations must

[patch 1/3] KVM: x86: add per-vcpu option to set guest vcpu -RT priority

2017-09-21 Thread Marcelo Tosatti
In preparation to the patch which adds a hypercall for the guest vcpu to change states between: -> SCHED_FIFO. -> SCHED_NORMAL. Add controls to: 1) Allow control to which priority SCHED_FIFO state will be in place (in the host). 2) Enable/disable abi

[PATCH 1/1] scsi: bnx: use setup_timer

2017-09-21 Thread Allen Pais
Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2

Re: [PATCH] staging:vme Fix use BIT macro

2017-09-21 Thread Martyn Welch
On 21 September 2017 at 06:52, Janani Sankara Babu wrote: > This patch is created to solve the following warning shown by the checkpatch > script Warning: Replace all occurences of (1< > Signed-off-by: Janani Sankara Babu > --- > drivers/staging/vme/devices/vme_pio2.h | 6 +++--- > 1 file change

Re: [PATCH v4] mm: introduce validity check on vm dirtiness settings

2017-09-21 Thread Jan Kara
On Thu 21-09-17 21:59:52, Yafang Shao wrote: > we can find the logic in domain_dirty_limits() that > when dirty bg_thresh is bigger than dirty thresh, > bg_thresh will be set as thresh * 1 / 2. > if (bg_thresh >= thresh) > bg_thresh = thresh / 2; > > But actually we can set vm

Re: [PATCH 2/2] sched: Actual changes after adding SCHED_SOFT_AFFINITY to make it work with the scheduler

2017-09-21 Thread Peter Zijlstra
On Tue, Sep 19, 2017 at 03:37:12PM -0700, Rohit Jain wrote: > @@ -6019,7 +6040,8 @@ void __update_idle_core(struct rq *rq) > static int select_idle_core(struct task_struct *p, struct sched_domain *sd, > int target) > { > struct cpumask *cpus = this_cpu_cpumask_var_ptr(select_idle_mask); >

Re: [PATCH 2/2] x86/asm: Fix inline asm call constraints for clang

2017-09-21 Thread Brian Gerst
On Thu, Sep 21, 2017 at 4:12 AM, Dmitry Vyukov wrote: > On Wed, Sep 20, 2017 at 11:19 PM, Andy Lutomirski wrote: On Wed, Sep 20, 2017 at 08:01:02PM +0200, Dmitry Vyukov wrote: > On Wed, Sep 20, 2017 at 7:46 PM, H. Peter Anvin wrote: >> On 09/20/17 10:38, Dmitry Vyukov wrote: >>

Re: [PATCH v2 04/11] usb: xhci: Add Intel cherrytrail extended cap / otg phy mux handling

2017-09-21 Thread Hans de Goede
Hi, On 19-09-17 14:40, Mathias Nyman wrote: Hi, sorry about the long delay On 07.09.2017 18:49, Hans de Goede wrote: Hi, On 07-09-17 15:14, Mathias Nyman wrote: On 05.09.2017 19:42, Hans de Goede wrote: The Intel cherrytrail xhci controller has an extended cap mmio-range which contains reg

Re: [PATCH 3/4] iommu/arm-smmu-v3: Use NUMA memory allocations for stream tables and comamnd queues

2017-09-21 Thread Robin Murphy
[+Christoph and Marek] On 21/09/17 09:59, Ganapatrao Kulkarni wrote: > Introduce smmu_alloc_coherent and smmu_free_coherent functions to > allocate/free dma coherent memory from NUMA node associated with SMMU. > Replace all calls of dmam_alloc_coherent with smmu_alloc_coherent > for SMMU stream ta

Re: [PATCH] gpio: omap: omap_gpio_show_rev is not __init

2017-09-21 Thread Linus Walleij
On Sat, Sep 16, 2017 at 10:42 PM, Arnd Bergmann wrote: > The probe function calls omap_gpio_show_rev(), which on most > compilers is inlined, but on the old gcc-4.6 is not, causing > a valid warning about the incorrect __init annotation: > > WARNING: vmlinux.o(.text+0x40f614): Section mismatch in

Re: [PATCH v5 1/3] irqdomain: export of_phandle_args_to_fwspec

2017-09-21 Thread Masahiro Yamada
Hi Linus, 2017-09-21 20:34 GMT+09:00 Linus Walleij : > On Wed, Sep 13, 2017 at 10:56 AM, Masahiro Yamada > wrote: > >> This helper will be useful for irqchip drivers that need to convert >> DT binding into IRQ fwspec. >> >> Signed-off-by: Masahiro Yamada > > I'm waiting for the irqchip maintaine

Re: [PATCH 00/16] gpio: Tight IRQ chip integration and banked infrastructure

2017-09-21 Thread Linus Walleij
On Fri, Sep 15, 2017 at 6:57 PM, Tony Lindgren wrote: > On omaps, each bank is a separate driver instance with it's own > interrupt. Maybe really all we need to do is get rid of the "bank" > naming, I think that's left over from 15 years ago when we did not > have separate driver instances. It se

Re: [PATCH v2 03/11] mux: core: Add usb.h header with MUX_USB_* and and MUX_TYPEC_* state constants

2017-09-21 Thread Hans de Goede
Hi, On 10-09-17 23:36, Peter Rosin wrote: On 2017-09-08 19:07, Hans de Goede wrote: Hi, On 08-09-17 17:47, Peter Rosin wrote: On 2017-09-05 18:42, Hans de Goede wrote: Add MUX_USB_* and MUX_TYPEC_* state constant defines, which can be used by USB device/host, resp. Type-C polarity/role/altmo

<    1   2   3   4   5   6   7   8   9   >