Re: [RFC][PATCHv5 07/13] printk: register syscore notifier

2017-08-15 Thread Sergey Senozhatsky
On (08/15/17 13:56), Rafael J. Wysocki wrote: [..] > > +static int printk_syscore_suspend(void) > > +{ > > + printk_emergency_begin(); > > + return 0; > > +} > > Somebody looking at suspend/resume code paths only will be wondering why > you need this, because we should be in the emergency mode

Re: [PATCH 2/2] cpufreq: dt-platdev: Drop few entries from whitelist

2017-08-15 Thread Geert Uytterhoeven
Hi Viresh, On Wed, Aug 16, 2017 at 7:37 AM, Viresh Kumar wrote: > Drop few ARM (32 and 64 bit) platforms from the whitelist which always > use "operating-points-v2" property from their DT. They should continue > to work after this patch. > > Tested on Hikey platform (only the "hisilicon,hi6220" e

Re: [PATCH] i2c: aspeed: Retain delay/setup/hold values when configuring bus frequency

2017-08-15 Thread Joel Stanley
On Tue, Aug 15, 2017 at 4:51 PM, Andrew Jeffery wrote: > In addition to the base, low and high clock configuration, the AC timing > register #1 on the AST2400 houses fields controlling: > > 1. tBUF: Minimum delay between Stop and Start conditions > 2. tHDSTA: Hold time for the Start condition > 3.

[PATCH V2] KVM/x86: Increase max vcpu number to 8192

2017-08-15 Thread Lan Tianyu
For HPC usage case, it will create a huge VM with vcpus number as same as host cpus and this requires more vcpus support in a single VM. This patch is to increase max vcpu number from 288 to 8192 which is current default maximum cpu number for Linux kernel. Signed-off-by: Lan Tianyu --- arch/x86

Re: [PATCH v6 2/5] drm/vc4: Avoid using vrefresh==0 mode in DSI htotal math.

2017-08-15 Thread Andrzej Hajda
On 16.08.2017 01:47, Eric Anholt wrote: > The incoming mode might have a missing vrefresh field if it came from > drmModeSetCrtc(), which the kernel is supposed to calculate using > drm_mode_vrefresh(). We could either use that or the adjusted_mode's > original vrefresh value. > > However, we can

Re: [PATCH v8 00/14] lockdep: Implement crossrelease feature

2017-08-15 Thread Byungchul Park
On Wed, Aug 16, 2017 at 01:40:51PM +0800, Boqun Feng wrote: > > > > Worker A : acquired of wfc.work -> wait for cpu_hotplug_lock to be > > > > released > > > > Task B : acquired of cpu_hotplug_lock -> wait for lock#3 to be > > > > released > > > > Task C : acquired of lock#3 -> wait for compl

Re: [PATCH V3 3/9] cpufreq: Cap the default transition delay value to 10 ms

2017-08-15 Thread Viresh Kumar
On 28-07-17, 10:58, Viresh Kumar wrote: > At this point I really feel that this is a hardware specific problem > and it was working by chance until now. And I am not sure if we > shouldn't be stopping this patch from getting merged just because of > that. > > At least you can teach your distributi

Re: [PATCH] i2c: aspeed: Retain delay/setup/hold values when configuring bus frequency

2017-08-15 Thread Brendan Higgins
On Tue, Aug 15, 2017 at 10:21 AM, Andrew Jeffery wrote: > In addition to the base, low and high clock configuration, the AC timing > register #1 on the AST2400 houses fields controlling: > > 1. tBUF: Minimum delay between Stop and Start conditions > 2. tHDSTA: Hold time for the Start condition > 3

Re: [PATCH 2/2] dmaengine: at_xdmac: Handle return value of clk_prepare_enable.

2017-08-15 Thread Ludovic Desroches
On Mon, Aug 07, 2017 at 01:15:19PM +0530, Arvind Yadav wrote: > clk_prepare_enable() can fail here and we must check its return value. > > Signed-off-by: Arvind Yadav Acked-by: Ludovic Desroches Thanks > --- > drivers/dma/at_xdmac.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) >

Re: [PATCH 1/2] dmaengine: at_xdmac: Fix compilation warning.

2017-08-15 Thread Ludovic Desroches
On Mon, Aug 07, 2017 at 01:15:18PM +0530, Arvind Yadav wrote: > Replace '%d' by '%zu' to fix the compilation warning:- >"format ‘%d’ expects argument of type ‘int’,but argument has type ‘size_t’ > [-Wformat=]" > > Signed-off-by: Arvind Yadav Acked-by: Ludovic Desroches Thanks > --- > driv

[PATCH v2 1/4] usb: mtu3: add generic compatible string

2017-08-15 Thread Chunfeng Yun
The mtu3 driver is a generic driver for MediaTek usb3 DRD IP, add a generic compatible to avoid confusion when support new SoCs but use a compatible with specific SoC's name "mt8173". Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3_plat.c |1 + 1 file changed, 1 insertion(+) diff --gi

Re: [PATCH] gpio: brcmstb: check return value of gpiochip_irqchip_add()

2017-08-15 Thread Gregory Fong
On Wed, Aug 9, 2017 at 3:51 PM, Masahiro Yamada wrote: > Because gpiochip_irqchip_add() may fail, its return value should > be checked. > > Signed-off-by: Masahiro Yamada Acked-by: Gregory Fong

[PATCH v2 4/4] dt-bindings: mt8173-xhci: add generic compatible and rename file

2017-08-15 Thread Chunfeng Yun
The mt8173-xhci.txt actually holds the bindings for all mediatek SoCs with xHCI controller, so add a generic compatible and change the name to mediatek,mtk-xhci.txt to reflect that. Signed-off-by: Chunfeng Yun --- .../usb/{mt8173-xhci.txt => mediatek,mtk-xhci.txt} | 14 +++--- .../devi

[PATCH] tools: fix compile error of freq-step.c

2017-08-15 Thread Thomas Richter
The compilation of the file freq-step.c in directory tools/testing/selftests/timers fails with this error message: [root@s8360046 timers]# make gcc -O3 -Wl,-no-as-needed -Wall -DKTEST -lrt -lpthread -lm freq-step.c -o freq-step freq-step.c: In function ‘init_test’: freq-step.c:234:3: e

[PATCH v2 2/4] usb: xhci-mtk: add generic compatible string

2017-08-15 Thread Chunfeng Yun
The xhci-mtk driver is a generic driver for MediaTek xHCI IP, add a generic compatible to avoid confusion when support new SoCs but use a compatible with specific SoC's name "mt8173". Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk.c |1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH v5 3/3] drm/rockchip: Add support for Rockchip Soc LVDS

2017-08-15 Thread Sandy Huang
在 2017/8/15 17:08, Wadim Egorov 写道: Am 15.08.2017 um 05:49 schrieb Sandy Huang: This adds support for Rockchip soc lvds found on rk3288 Based on the patches from Mark yao and Heiko Stuebner Signed-off-by: Sandy Huang Signed-off-by: Mark Yao Signed-off-by: Heiko Stuebner --- drivers/gpu

[PATCH v2 3/4] dt-bindings: mt8173-mtu3: add generic compatible and rename file

2017-08-15 Thread Chunfeng Yun
The mt8173-mtu3.txt actually holds the bindings for all mediatek SoCs with usb3 DRD IP, so add a generic compatible and change the name to mediatek,mtu3.txt. Signed-off-by: Chunfeng Yun --- .../usb/{mt8173-mtu3.txt => mediatek,mtu3.txt} |6 +- 1 file changed, 5 insertions(+), 1 delet

[PATCH v2] pinctrl: qcom: General Purpose clocks for apq8064

2017-08-15 Thread Vinay Simha BN
Add support for general purpose (GP) clocks for apq8064 DT binding documentation updated for qcom,apq8064-pinctrl general purpose (GP) clocks. Acked-by: Bjorn Andersson Signed-off-by: Vinay Simha BN --- v1: * only gp_clk_1b tested in nexus7 anx7808 slimport. v2: * bjorn review comments incorp

Re: [PATCH v4 19/20] mtd: nand: qcom: support for IPQ4019 QPIC NAND controller

2017-08-15 Thread Archit Taneja
On 08/11/2017 05:09 PM, Abhishek Sahu wrote: Add the compatible string for IPQ4019 QPIC NAND controller version 1.4.0 which uses BAM DMA. Reviewed-by: Archit Taneja Thanks, Archit Signed-off-by: Abhishek Sahu --- drivers/mtd/nand/qcom_nandc.c | 10 ++ 1 file changed, 10 inse

Re: [PATCH v4 20/20] mtd: nand: qcom: support for IPQ8074 QPIC NAND controller

2017-08-15 Thread Archit Taneja
On 08/11/2017 05:09 PM, Abhishek Sahu wrote: Add the compatible string for IPQ8074 QPIC NAND controller version 1.5.0 which uses BAM DMA and its FLASH_DEV_CMD registers starting offset is 0x7000. Reviewed-by: Archit Taneja Thanks, Archit Signed-off-by: Abhishek Sahu --- drivers/mtd/na

Re: [PATCH v4 15/20] mtd: nand: qcom: support for command descriptor formation

2017-08-15 Thread Archit Taneja
On 08/11/2017 05:09 PM, Abhishek Sahu wrote: 1. Add the function for command descriptor preparation which will be used only by BAM DMA and it will form the DMA descriptors containing command elements 2. DMA_PREP_CMD flag should be used for forming command DMA descriptors Reviewe

Re: [PATCH v3] Fix missing PCI ID; Necessary for Lenovo Yoga 720-15 Touchpad.

2017-08-15 Thread Andrew Donnellan
Hi Florian, As Daniel said, good work on figuring out how to get this far! There's a couple of minor issues with the formatting of this patch. Firstly, as Lee said in response to the last version, you should change the summary line of the commit to indicate the contents of the patch more accu

Re: [PATCH v8 00/14] lockdep: Implement crossrelease feature

2017-08-15 Thread Boqun Feng
On Wed, Aug 16, 2017 at 02:05:06PM +0900, Byungchul Park wrote: > On Wed, Aug 16, 2017 at 12:05:31PM +0800, Boqun Feng wrote: > > > I see... > > > > > > Worker A : acquired of wfc.work -> wait for cpu_hotplug_lock to be > > > released > > > Task B : acquired of cpu_hotplug_lock -> wait for lock

Re: [virtio-dev] [PATCH v13 0/5] Virtio-balloon Enhancement

2017-08-15 Thread Adam Tao
On Thu, Aug 03, 2017 at 02:38:14PM +0800, Wei Wang wrote: > This patch series enhances the existing virtio-balloon with the following > new features: > 1) fast ballooning: transfer ballooned pages between the guest and host in > chunks using sgs, instead of one by one; and > 2) free_page_vq: a new

Re: [PATCHv3] perf bpf: Fix endianness problem when loading parameters in prologue

2017-08-15 Thread Thomas-Mich Richter
On 08/15/2017 05:25 PM, Arnaldo Carvalho de Melo wrote: > Em Tue, Aug 15, 2017 at 11:21:59AM +0200, Thomas Richter escreveu: > > Ok, I'm applying this, the only missing bit was the following line, > right at the start of the patch message body; > > From: Wang Nan > > To state that the patch was

Re: [PATCH v4 14/20] mtd: nand: qcom: add command elements in BAM transaction

2017-08-15 Thread Archit Taneja
On 08/11/2017 05:09 PM, Abhishek Sahu wrote: All the QPIC register read/write through BAM DMA requires command descriptor which contains the array of command elements. Reviewed-by: Archit Taneja Thanks, Archit Signed-off-by: Abhishek Sahu --- drivers/mtd/nand/qcom_nandc.c | 19 +++

Re: [PATCH v4 13/20] mtd: nand: qcom: support for different DEV_CMD register offsets

2017-08-15 Thread Archit Taneja
On 08/11/2017 05:09 PM, Abhishek Sahu wrote: The FLASH_DEV_CMD registers starting offset is not same in different QPIC NAND controller versions. This patch adds the starting offset in NAND controller properties and uses the same for calculating the actual offset of these registers. Signed-off-

linux-next: Tree for Aug 16

2017-08-15 Thread Stephen Rothwell
Hi all, There will be no linux-next releases this coming Friday or Monday. Changes since 20170815: The pci tree gained a conflict against the net tree. The net-next tree still had its build failure for which I reverted a commit. The akpm-current tree gained a build failure due to an

[PATCH] Input: i8042: constify pnp_device_id

2017-08-15 Thread Arvind Yadav
pnp_device_id are not supposed to change at runtime. All functions working with pnp_device_id provided by work with const pnp_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/input/serio/i8042-x86ia64io.h | 4 ++-- 1 file changed, 2 insertions(+), 2 del

Re: [PATCH v4 12/20] mtd: nand: qcom: QPIC data descriptors handling

2017-08-15 Thread Archit Taneja
On 08/11/2017 05:09 PM, Abhishek Sahu wrote: 1. Add the data descriptor preparation function which will be used only by BAM DMA for forming the data SGL’s 2. Add clear BAM transaction and call it before every new request 3. Check DMA mode for ADM or BAM and call the appropriate descript

[PATCH] sg: protect against races between mmap() and SG_SET_RESERVED_SIZE

2017-08-15 Thread Todd Poynor
Take f_mutex around mmap() processing to protect against races with the SG_SET_RESERVED_SIZE ioctl. Ensure the reserve buffer length remains consistent during the mapping operation, and set the "mmap called" flag to prevent further changes to the reserved buffer size as an atomic operation with th

Re: [PATCH v8 00/14] lockdep: Implement crossrelease feature

2017-08-15 Thread Boqun Feng
On Wed, Aug 16, 2017 at 01:37:46PM +0900, Byungchul Park wrote: > On Wed, Aug 16, 2017 at 12:05:31PM +0800, Boqun Feng wrote: > > On Wed, Aug 16, 2017 at 09:16:37AM +0900, Byungchul Park wrote: > > > On Tue, Aug 15, 2017 at 10:20:20AM +0200, Ingo Molnar wrote: > > > > > > > > So with the latest fi

[PATCH 1/2] cpufreq: dt-platdev: Automatically create cpufreq device with OPP v2

2017-08-15 Thread Viresh Kumar
The initial idea of creating the cpufreq-dt-platdev.c file was to keep a list of platforms that use the "operating-points" (V1) bindings and create cpufreq device for them only, as we weren't sure which platforms would want the device to get created automatically as some had their own cpufreq drive

[PATCH 2/2] cpufreq: dt-platdev: Drop few entries from whitelist

2017-08-15 Thread Viresh Kumar
Drop few ARM (32 and 64 bit) platforms from the whitelist which always use "operating-points-v2" property from their DT. They should continue to work after this patch. Tested on Hikey platform (only the "hisilicon,hi6220" entry). Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq-dt-platde

Re: [PATCH] scsi: cxlflash: Fix an error handling path in 'cxlflash_disk_attach()'

2017-08-15 Thread Andrew Donnellan
On 16/08/17 06:18, Christophe JAILLET wrote: 'rc' is known to be 0 at this point. If 'create_context()' fails, returns -ENOMEM instead of 0 which means success. Signed-off-by: Christophe JAILLET ENOMEM seems right here. Reviewed-by: Andrew Donnellan --- drivers/scsi/cxlflash/superpipe.c

[PATCH] sata: ahci-da850: Fix some error handling paths in 'ahci_da850_probe()'

2017-08-15 Thread Christophe JAILLET
'rc' is known to be 0 at this point. If 'platform_get_resource()' or 'devm_ioremap()' fail, return -ENOMEM instead of 0 which means success. Signed-off-by: Christophe JAILLET --- drivers/ata/ahci_da850.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/ata/ahci

[PATCH] [media] radio: constify pnp_device_id

2017-08-15 Thread Arvind Yadav
pnp_device_id are not supposed to change at runtime. All functions working with pnp_device_id provided by work with const pnp_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/media/radio/radio-cadet.c| 2 +- drivers/media/radio/radio-gemtek.c | 2

[PATCH v2 4/4] staging: pi433: Remove camel case variable names

2017-08-15 Thread Rishabh Hardas
Remove Camel casing by renaming variables. Signed-off-by: Rishabh Hardas --- drivers/staging/pi433/pi433_if.c | 4 ++-- drivers/staging/pi433/pi433_if.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c

[PATCH v2 3/4] staging: pi433: Renaming Enums

2017-08-15 Thread Rishabh Hardas
Remove camel casing by renaming enums. Signed-off-by: Rishabh Hardas --- drivers/staging/pi433/pi433_if.h | 36 drivers/staging/pi433/rf69.c | 26 +- drivers/staging/pi433/rf69.h | 26 +- drivers/stag

[PATCH v2 2/4] staging: pi433: Change Comments

2017-08-15 Thread Rishabh Hardas
Shorten long comments and format them in kernel style comments. Signed-off-by: Rishabh Hardas --- drivers/staging/pi433/pi433_if.h | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/staging/pi433/pi433_if.h b/drivers/staging/pi433/pi433_if.h index 91e4a0

[PATCH v2 1/4] staging: pi433: Style fix - Correct long lines

2017-08-15 Thread Rishabh Hardas
Correct lines above 80 characters in pi433_if.h Signed-off-by: Rishabh Hardas --- drivers/staging/pi433/pi433_if.h | 28 +++- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/drivers/staging/pi433/pi433_if.h b/drivers/staging/pi433/pi433_if.h index e6ed3cd.

[PATCH v2 0/4] staging: pi433: Rename camel case and other style issues

2017-08-15 Thread Rishabh Hardas
Hi, This series pf patches solves some of the coding style issues. I have corrected long lines, changed comment style, renamed enums and variables that were in camel case. Tried to get zero erros and warnings on the pi433_if.h file. Regards, Rishabh Hardas Rishabh Hardas (4): staging: pi433:

Re: [PATCH 2/3] libnvdimm, pfn, dax: show supported dax/pfn region alignments in sysfs

2017-08-15 Thread Oliver
On Wed, Aug 16, 2017 at 1:47 AM, Dan Williams wrote: > On Mon, Aug 14, 2017 at 11:46 PM, Oliver wrote: >> On Tue, Aug 15, 2017 at 4:02 PM, kbuild test robot wrote: > [..] >>>114 static const unsigned long *nd_pfn_supported_alignments(void) >>>115 { >>>116 /* >>>117

[rcu:rcu/dev 14/15] kernel/time/tick-sched.c:820: undefined reference to `__divdi3'

2017-08-15 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/dev head: 551164572a4a41968abd020ec24499085cc2adf7 commit: 33103e7b1f89ef432dfe3337d2a6932cdf5c1312 [14/15] EXP: Trace tick return from tick_nohz_stop_sched_tick config: mips-nlm_xlr_defconfig (attached as .config

[PATCH] crypto: cavium/nitrox - Fix an error handling path in 'nitrox_probe()'

2017-08-15 Thread Christophe JAILLET
'err' is known to be 0 at this point. If 'kzalloc()' fails, returns -ENOMEM instead of 0 which means success. Signed-off-by: Christophe JAILLET --- drivers/crypto/cavium/nitrox/nitrox_main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/cavium/nitrox/nitro

[PATCH] bpf: Update sysctl documentation to list all supported architectures

2017-08-15 Thread Michael Ellerman
The sysctl documentation states that the JIT is only available on x86_64, which is no longer correct. Update the list to include all architectures that enable HAVE_CBPF_JIT or HAVE_EBPF_JIT under some configuration. Signed-off-by: Michael Ellerman --- Documentation/sysctl/net.txt | 5 +++-- 1 f

RE: [PATCH v2 19/22] fpga: intel: afu: add header sub feature support

2017-08-15 Thread Wu, Hao
> On Sun, Jun 25, 2017 at 8:52 PM, Wu Hao wrote: > > Hi Hao, > > > The header register set is always present for the Port/AFU, it is mainly > > for capability, control and status of the ports that AFU connected to. > > So just to be clear, the reset function is acting on the Port, not the > AF

RE: [PATCH 0/5] cramfs refresh for embedded usage

2017-08-15 Thread Nicolas Pitre
On Tue, 15 Aug 2017, Chris Brandt wrote: > On Tuesday, August 15, 2017 1, Nicolas Pitre wrote: > > I was able to reproduce. The following patch on top should partially fix > > it. I'm trying to figure out how to split a vma and link it properly in > > the case the vma cannot be mapped entirely. I

Re: Possible race in c4.ko

2017-08-15 Thread Carsten Paeth
Hello Anton, Thanks for reviewing the code. This would be right, if the c4 could rise an interrupt at this moment ... After a reset with c4_reset(), the card will not generate an interrupt, until firmware has been loaded and the SEND_INIT message has been sent. c4_load_firmware() -> c4_send_init

Re: [PATCH v8 00/14] lockdep: Implement crossrelease feature

2017-08-15 Thread Byungchul Park
On Wed, Aug 16, 2017 at 12:05:31PM +0800, Boqun Feng wrote: > > I see... > > > > Worker A : acquired of wfc.work -> wait for cpu_hotplug_lock to be released > > Task B : acquired of cpu_hotplug_lock -> wait for lock#3 to be released > > Task C : acquired of lock#3 -> wait for completion of bar

[PATCH] EDAC, altera: Fix an error handling path in 'altr_edac_device_probe()'

2017-08-15 Thread Christophe JAILLET
'res' is known to be 0 at this point. If 'devm_ioremap()' fails, returns -ENOMEM instead of 0 which means success. Signed-off-by: Christophe JAILLET --- drivers/edac/altera_edac.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/edac/altera_edac.c b/drivers/edac/alt

[PATCH] scsi: aha1542: constify pnp_device_id

2017-08-15 Thread Arvind Yadav
pnp_device_id are not supposed to change at runtime. All functions working with pnp_device_id provided by work with const pnp_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/scsi/aha1542.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

[PATCH] scsi: ncr5380: constify pnp_device_id

2017-08-15 Thread Arvind Yadav
pnp_device_id are not supposed to change at runtime. All functions working with pnp_device_id provided by work with const pnp_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/scsi/g_NCR5380.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -

Re: [PATCH v7 9/9] sparc64: Add support for ADI (Application Data Integrity)

2017-08-15 Thread David Miller
From: Khalid Aziz Date: Wed, 9 Aug 2017 15:26:02 -0600 > +void adi_restore_tags(struct mm_struct *mm, struct vm_area_struct *vma, > + unsigned long addr, pte_t pte) > +{ ... > + tag = tag_start(addr, tag_desc); > + paddr = pte_val(pte) & _PAGE_PADDR_4V; > + for (tm

[PATCH] EDAC, thunderx: Fix an error handling path in 'thunderx_lmc_probe()'

2017-08-15 Thread Christophe JAILLET
'ret' is known to be 0 at this point. If 'ioremap()' fails, returns -ENOMEM instead of 0 which means success. Signed-off-by: Christophe JAILLET --- drivers/edac/thunderx_edac.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/edac/thunderx_edac.c b/drivers/edac/thunderx_edac.c index c

[PATCH] watchdog: sc1200: constify pnp_device_id

2017-08-15 Thread Arvind Yadav
pnp_device_id are not supposed to change at runtime. All functions working with pnp_device_id provided by work with const pnp_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/watchdog/sc1200wdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[PATCH] net: 3c509: constify pnp_device_id

2017-08-15 Thread Arvind Yadav
pnp_device_id are not supposed to change at runtime. All functions working with pnp_device_id provided by work with const pnp_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/net/ethernet/3com/3c509.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-

Re: [PATCH] ASoC: Medfield: Delete an error message for a failed memory allocation in snd_mfld_mc_probe()

2017-08-15 Thread Vinod Koul
On Fri, Aug 11, 2017 at 11:33:56AM +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Fri, 11 Aug 2017 11:25:41 +0200 > > Omit an extra message for a memory allocation failure in this function. > > This issue was detected by using the Coccinelle software. Acked-By: Vinod Koul > >

[PATCH] PNP: ide: constify pnp_device_id

2017-08-15 Thread Arvind Yadav
pnp_device_id are not supposed to change at runtime. All functions working with pnp_device_id provided by work with const pnp_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/ide/ide-pnp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

Re: [PATCH v7 2/9] mm, swap: Add infrastructure for saving page metadata on swap

2017-08-15 Thread David Miller
From: Khalid Aziz Date: Wed, 9 Aug 2017 15:25:55 -0600 > @@ -1399,6 +1399,12 @@ static bool try_to_unmap_one(struct page *page, struct > vm_area_struct *vma, > (flags & TTU_MIGRATION)) { > swp_entry_t entry; > pte_t swp_p

[PATCH v2 0/5] K2G: Add QSPI support

2017-08-15 Thread Vignesh R
This series adds support for Cadence QSPI IP present in TI's 66AK2G SoC. The patches enhance the existing cadence-quadspi driver to support loopback clock circuit, pm_runtime support and tweaks for 66AK2G SoC. Changes in v2: * Drop DT patches. Will be sent as separate series as requested by main

[PATCH v2 2/5] mtd: spi-nor: cadence-quadspi: add a delay in write sequence

2017-08-15 Thread Vignesh R
As per 66AK2G02 TRM[1] SPRUHY8F section 11.15.5.3 Indirect Access Controller programming sequence, a delay equal to couple of QSPI master clock(~5ns) is required after setting CQSPI_REG_INDIRECTWR_START bit and writing data to the flash. Introduce a quirk flag CQSPI_NEEDS_WR_DELAY to handle this an

[PATCH v2 3/5] mtd: spi-nor: cadence-quadspi: Add new binding to enable loop-back circuit

2017-08-15 Thread Vignesh R
Cadence QSPI IP has a adapted loop-back circuit which can be enabled by setting BYPASS field to 0 in READCAPTURE register. It enables use of QSPI return clock to latch the data rather than the internal QSPI reference clock. For high speed operations, adapted loop-back circuit using QSPI return cloc

[PATCH v2 1/5] mtd: spi-nor: cadence-quadspi: Add TI 66AK2G SoC specific compatible

2017-08-15 Thread Vignesh R
Update binding documentation to add a new compatible for TI 66AK2G SoC, to handle TI SoC specific quirks in the driver. Signed-off-by: Vignesh R --- Documentation/devicetree/bindings/mtd/cadence-quadspi.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devi

[PATCH][RFC v2] PM / Hibernate: Disable wathdog when creating snapshot

2017-08-15 Thread Chen Yu
There is a problem that when counting the pages for creating the hibernation snapshot will take significant amount of time, especially on system with large memory. Since the counting job is performed with irq disabled, this might lead to NMI lockup. The following warning were found on a system with

[PATCH v2 5/5] mtd: spi-nor: cadence-quadspi: Add runtime PM support

2017-08-15 Thread Vignesh R
Add pm_runtime* calls to cadence-quadspi driver. This is required to switch on QSPI power domain on TI 66AK2G SoC during probe. Signed-off-by: Vignesh R --- drivers/mtd/spi-nor/cadence-quadspi.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/mtd/spi-nor/cadence-quadspi.

Re: [PATCH][RFC] PM / Hibernate: Feed NMI wathdog when creating snapshot

2017-08-15 Thread Chen Yu
On Tue, Aug 15, 2017 at 02:41:19PM +0200, Michal Hocko wrote: > On Tue 15-08-17 01:19:16, Chen Yu wrote: > [...] > > @@ -2561,8 +2562,10 @@ void mark_free_pages(struct zone *zone) > > unsigned long i; > > > > pfn = page_to_pfn(page); > > -

[PATCH v2 4/5] mtd: spi-nor: cadence-quadspi: Add support to enable loop-back clock circuit

2017-08-15 Thread Vignesh R
Cadence QSPI IP has a adapted loop-back circuit which can be enabled by setting BYPASS field to 0 in READCAPTURE register. It enables use of QSPI return clock to latch the data rather than the internal QSPI reference clock. For high speed operations, adapted loop-back circuit using QSPI return cloc

Re: [PATCH v2] zsmalloc: zs_page_migrate: schedule free_work if zspage is ZS_EMPTY

2017-08-15 Thread Minchan Kim
On Wed, Aug 16, 2017 at 10:49:14AM +0800, Hui Zhu wrote: > Hi Minchan, > > 2017-08-16 10:13 GMT+08:00 Minchan Kim : > > Hi Hui, > > > > On Mon, Aug 14, 2017 at 05:56:30PM +0800, Hui Zhu wrote: > >> After commit e2846124f9a2 ("zsmalloc: zs_page_migrate: skip unnecessary > > > > This patch is not me

Re: [PATCH v4 11/20] mtd: nand: qcom: enable BAM or ADM mode

2017-08-15 Thread Archit Taneja
On 08/11/2017 05:09 PM, Abhishek Sahu wrote: 1. DM_EN is only required for EBI2 NAND controller which uses ADM 2. BAM mode will be disabled after power on reset which needs to be enabled before starting any BAM transfers. Signed-off-by: Abhishek Sahu --- drivers/mtd/nand/qcom_nandc.c |

[PATCH] sg: recheck MMAP_IO request length with lock held

2017-08-15 Thread Todd Poynor
Commit 1bc0eb044615 ("scsi: sg: protect accesses to 'reserved' page array") adds needed concurrency protection for the "reserve" buffer. Some checks that are initially made outside the lock are replicated once the lock is taken to ensure the checks and resulting decisions are made using consistent

Re: [PATCH v1 2/6] fs: use on-stack-bio if backing device has BDI_CAP_SYNC capability

2017-08-15 Thread Minchan Kim
Hi Jens, On Mon, Aug 14, 2017 at 10:17:09AM -0600, Jens Axboe wrote: > On 08/14/2017 09:38 AM, Jens Axboe wrote: > > On 08/14/2017 09:31 AM, Minchan Kim wrote: > >>> Secondly, generally you don't have slow devices and fast devices > >>> intermingled when running workloads. That's the rare case. >

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

2017-08-15 Thread Stephen Rothwell
Hi all, After merging the akpm-current tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/gpu/drm/i915/i915_gem_execbuffer.c: In function 'get_fence_array': drivers/gpu/drm/i915/i915_gem_execbuffer.c:2163:20: error: 'GFP_TEMPORARY' undeclared (first use in this functi

Re: [PATCH v4 10/20] mtd: nand: qcom: erased codeword detection configuration

2017-08-15 Thread Archit Taneja
On 08/11/2017 05:09 PM, Abhishek Sahu wrote: The NAND controller returns ECC failure during read of completely erased codeword. The NAND controller has hardware functionality to detect erased codeword in case of BCH ECC algorithm. The NAND_ERASED_CW_DETECT_CFG register controls the erased codew

[PATCH v3 14/14] [media] cxd2880 : Update MAINTAINERS file for CXD2880 driver

2017-08-15 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi This is MAINTAINERS file update about the driver for the Sony CXD2880 DVB-T2/T tuner + demodulator. [Change list] Changes in V3 MAINTAINERS -no change Signed-off-by: Yasunari Takiguchi Signed-off-by: Masayuki Yamamoto Signed-off-by: Hideki Nozawa Signed-off-

Re: [PATCH] ioctl_tty.2: add TIOCGPTPEER documentation

2017-08-15 Thread Aleksa Sarai
I've applied this patch, and then tweaked the wording a little. Could you please check the following text: TIOCGPTPEERint flags (since Linux 4.13) Given a file descriptor in fd that refers to a pseudoterminal master, open (with the given

[PATCH v3 13/14] [media] cxd2880: Add all Kconfig files for the driver

2017-08-15 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi This is the Kconfig files of driver for the Sony CXD2880 DVB-T2/T tuner + demodulator driver. [Change list] Changes in V3 drivers/media/dvb-frontends/Kconfig -no change drivers/media/dvb-frontends/cxd2880/Kconfig -no change drivers/media/spi/Kconfig

[PATCH v3 12/14] [media] cxd2880: Add all Makefile files for the driver

2017-08-15 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi This is the Makefile files of driver for the Sony CXD2880 DVB-T2/T tuner + demodulator. [Change list] Changes in V3 drivers/media/dvb-frontends/Makefile -no change drivers/media/dvb-frontends/cxd2880/Makefile -removed cxd2880_math.o \ drivers/media/

[PATCH v3 11/14] [media] cxd2880: Add DVB-T2 monitor and integration layer functions

2017-08-15 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi Provide monitor and integration layer functions (DVB-T2) for the Sony CXD2880 DVB-T2/T tuner + demodulator driver. [Change list] Changes in V3 drivers/media/dvb-frontends/cxd2880/cxd2880_integ_dvbt2.c -changed CXD2880_SLEEP to usleep_range -replaced cxd288

[PATCH v3 10/14] [media] cxd2880: Add DVB-T2 control functions for the driver

2017-08-15 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi Provide definitions, interfaces and functions needed for DVB-T2 of the Sony CXD2880 DVB-T2/T tuner + demodulator driver. [Change list] Changes in V3 drivers/media/dvb-frontends/cxd2880/cxd2880_dvbt2.h -changed hexadecimal code to lower case. drivers/media/dv

Re: [PATCH v8 00/14] lockdep: Implement crossrelease feature

2017-08-15 Thread Byungchul Park
On Wed, Aug 16, 2017 at 12:05:31PM +0800, Boqun Feng wrote: > On Wed, Aug 16, 2017 at 09:16:37AM +0900, Byungchul Park wrote: > > On Tue, Aug 15, 2017 at 10:20:20AM +0200, Ingo Molnar wrote: > > > > > > So with the latest fixes there's a new lockdep warning on one of my > > > testboxes: > > > >

[PATCH v3 09/14] [media] cxd2880: Add DVB-T monitor and integration layer functions

2017-08-15 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi Provide monitor and integration layer functions (DVB-T) for the Sony CXD2880 DVB-T2/T tuner + demodulator driver. [Change list] Changes in V3 drivers/media/dvb-frontends/cxd2880/cxd2880_integ_dvbt.c -changed CXD2880_SLEEP to usleep_range -chnaged cxd2880_a

[PATCH v3 08/14] [media] cxd2880: Add DVB-T control functions the driver

2017-08-15 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi Provide definitions, interfaces and functions needed for DVB-T of the Sony CXD2880 DVB-T2/T tuner + demodulator driver. [Change list] Changes in V3 drivers/media/dvb-frontends/cxd2880/cxd2880_dvbt.h -no change drivers/media/dvb-frontends/cxd2880/cxd2880_tnrdm

[PATCH v3 07/14] [media] cxd2880: Add top level of the driver

2017-08-15 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi This provides the main dvb frontend operation functions for the Sony CXD2880 DVB-T2/T tuner + demodulator driver. [Change list] Changes in V3 drivers/media/dvb-frontends/cxd2880/cxd2880_top.c -adjusted indent spaces -modified debugging code -removed

[PATCH v3 06/14] [media] cxd2880: Add integration layer for the driver

2017-08-15 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi These functions monitor the driver and watch for task completion. This is part of the Sony CXD2880 DVB-T2/T tuner + demodulator driver. [Change list] Changes in V3 drivers/media/dvb-frontends/cxd2880/cxd2880_integ.c -changed cxd2880_atomic_read to atomic_read

Re: [PATCH v4 09/20] mtd: nand: qcom: support for read location registers

2017-08-15 Thread Archit Taneja
On 08/11/2017 05:09 PM, Abhishek Sahu wrote: In EBI2, all codeword data will be read in FLASH_BUF_ACC buffer and ADM will copy the data from source (FLASH_BUF_ACC) to destination (memory for data read). In QPIC, there is no FLASH_BUF_ACC and all the codeword data will held in QPIC BAM FIFO buf

[PATCH v3 05/14] [media] cxd2880: Add tuner part of the driver

2017-08-15 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi This part of the driver has the main routines to handle the tuner and demodulator functionality. The tnrdmd_mon.* files have monitor functions for the driver. This is part of the Sony CXD2880 DVB-T2/T tuner + demodulator driver. [Change list] Changes in V3 drivers/me

[PATCH v3 04/14] [media] cxd2880: Add spi device IO routines

2017-08-15 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi Add functions for initializing, reading and writing to the SPI device for the Sony CXD2880 DVB-T2/T tuner + demodulator. [Change list] Changes in V3 drivers/media/dvb-frontends/cxd2880/cxd2880_devio_spi.c -removed unnecessary cast -changed cxd2880_memcpy t

[PATCH v3 03/14] [media] cxd2880: Add common files for the driver

2017-08-15 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi These are common files for the driver for the Sony CXD2880 DVB-T2/T tuner + demodulator. These contains helper functions for the driver. [Change list] Changes in V3 drivers/media/dvb-frontends/cxd2880/cxd2880.h -no change drivers/media/dvb-frontends/cxd2880/c

[PATCH v3 02/14] [media] cxd2880-spi: Add support for CXD2880 SPI interface

2017-08-15 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi This is the SPI adapter part of the driver for the Sony CXD2880 DVB-T2/T tuner + demodulator. [Change list] Changes in V3 drivers/media/spi/cxd2880-spi.c -adjusted of indent spaces -removed unnecessary cast -changed debugging code -changed time

[PATCH v3 01/14] [dt-bindings] [media] Add document file for CXD2880 SPI I/F

2017-08-15 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi This is the document file for Sony CXD2880 DVB-T2/T tuner + demodulator. It contains the description of the SPI adapter binding. No change since version 1. I should have carried the ack forward: Acked-by: Rob Herring Signed-off-by: Yasunari Takiguchi Signed-off-by: Ma

Re: [PATCH v4 08/20] mtd: nand: qcom: support for passing flags in transfer functions

2017-08-15 Thread Archit Taneja
On 08/11/2017 05:09 PM, Abhishek Sahu wrote: The BAM has multiple flags to control the transfer. This patch adds flags parameter in register and data transfer functions and modifies all these functions call with appropriate flags using following rule 1. Read and write can’t go in single comman

Re: linux-next: manual merge of the akpm-current tree with the tip tree

2017-08-15 Thread Minchan Kim
On Mon, Aug 14, 2017 at 09:57:23PM +0200, Peter Zijlstra wrote: > On Mon, Aug 14, 2017 at 05:38:39PM +0900, Minchan Kim wrote: > > memory-barrier.txt always scares me. I have read it for a while > > and IIUC, it seems semantic of spin_unlock(&same_pte) would be > > enough without some memory-barrie

[PATCH v3 00/14] [dt-bindings] [media] Add document file and driver for Sony CXD2880 DVB-T2/T tuner + demodulator

2017-08-15 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi Hi, This is the patch series (version 3) of Sony CXD2880 DVB-T2/T tuner + demodulator driver. The driver supports DVB-API and interfaces through SPI. We have tested the driver on Raspberry Pi 3 and got picture and sound from a media player. The change history of this

Re: [PATCH net-next V2 1/3] tap: use build_skb() for small packet

2017-08-15 Thread Jason Wang
On 2017年08月16日 11:59, Michael S. Tsirkin wrote: On Wed, Aug 16, 2017 at 11:57:51AM +0800, Jason Wang wrote: On 2017年08月16日 11:55, Michael S. Tsirkin wrote: On Tue, Aug 15, 2017 at 08:45:20PM -0700, Eric Dumazet wrote: On Fri, 2017-08-11 at 19:41 +0800, Jason Wang wrote: We use tun_alloc_sk

Re: [PATCH v8 00/14] lockdep: Implement crossrelease feature

2017-08-15 Thread Boqun Feng
On Wed, Aug 16, 2017 at 09:16:37AM +0900, Byungchul Park wrote: > On Tue, Aug 15, 2017 at 10:20:20AM +0200, Ingo Molnar wrote: > > > > So with the latest fixes there's a new lockdep warning on one of my > > testboxes: > > > > [ 11.322487] EXT4-fs (sda2): mounted filesystem with ordered data mo

Re: [PATCH 1/2] x86/idle: add halt poll for halt idle

2017-08-15 Thread Michael S. Tsirkin
On Thu, Jun 22, 2017 at 11:22:13AM +, root wrote: > From: Yang Zhang > > This patch introduce a new mechanism to poll for a while before > entering idle state. > > David has a topic in KVM forum to describe the problem on current KVM VM > when running some message passing workload in KVM for

Re: [PATCH v3] zsmalloc: zs_page_migrate: schedule free_work if zspage is ZS_EMPTY

2017-08-15 Thread Minchan Kim
On Wed, Aug 16, 2017 at 11:19:41AM +0800, Hui Zhu wrote: > After commit [1] zs_page_migrate can handle the ZS_EMPTY zspage. > > But I got some false in zs_page_isolate: > if (get_zspage_inuse(zspage) == 0) { > spin_unlock(&class->lock); > return false; > } >

Re: [PATCH 0/5] Add clk and scpsys support for MT6755

2017-08-15 Thread Mars Cheng
Hi Rob, Stephen, Matthias gentle ping. Thanks. On Tue, 2017-08-08 at 16:13 +0800, Mars Cheng wrote: > Mars Cheng (3): > clk: mediatek: add mt6755 clock ID > clk: mediatek: add clk support for MT6755 > soc: mediatek: add MT6755 scpsys support > > wendell.lin (2): > dt-bindings: mediatek:

Re: [PATCH net-next V2 1/3] tap: use build_skb() for small packet

2017-08-15 Thread Michael S. Tsirkin
On Wed, Aug 16, 2017 at 11:57:51AM +0800, Jason Wang wrote: > > > On 2017年08月16日 11:55, Michael S. Tsirkin wrote: > > On Tue, Aug 15, 2017 at 08:45:20PM -0700, Eric Dumazet wrote: > > > On Fri, 2017-08-11 at 19:41 +0800, Jason Wang wrote: > > > > We use tun_alloc_skb() which calls sock_alloc_send

  1   2   3   4   5   6   7   8   9   >