[PATCH] nvme: Makefile: remove dead build rule

2017-06-28 Thread Valentin Rothberg
Remove dead build rule for drivers/nvme/host/scsi.c which has been removed by commit ("nvme: Remove SCSI translations"). Signed-off-by: Valentin Rothberg --- drivers/nvme/host/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/nvme/host/Makefile b/drivers/nvme/host/Makefile inde

[PATCH] [media]: usb: add const to v4l2_file_operations structures

2017-06-28 Thread Bhumika Goyal
Declare v4l2_file_operations structures as const as they are only stored in the fops field of video_device structures. This field is of type const, so declare v4l2_file_operations structures with similar properties as const. Signed-off-by: Bhumika Goyal --- drivers/media/usb/au0828/au0828-video.

[PATCH 1/1] selftests: gpio: use pkg-config to determine libmount CFLAGS/LDLIBS

2017-06-28 Thread Fathi Boudra
Fix hardcoded and misplaced libmount headers. Use pkg-config instead to figure out CFLAGS/LDLIBS, fixing also their value for cross-compilation. If pkg-config isn't installed, it gives an error (command not found) and gpio test will fail to build because it won't be able to find the headers or lin

Re: [RFC PATCH] char: misc: Init misc->list in a safe way

2017-06-28 Thread Chunyan Zhang
Hi Greg, On 28 June 2017 at 19:21, Greg Kroah-Hartman wrote: > On Wed, Jun 28, 2017 at 12:34:28PM +0200, Arnd Bergmann wrote: >> On Wed, Jun 28, 2017 at 7:18 AM, Greg Kroah-Hartman >> wrote: >> > On Wed, Jun 28, 2017 at 09:54:32AM +0800, Orson Zhai wrote: >> >> We found the device is "fm". We hi

[tip:x86/platform] x86/PCI/mmcfg: Switch to ECAM config mode if possible

2017-06-28 Thread tip-bot for Thomas Gleixner
Commit-ID: b5b0f00c760b6e9673ab79b88ede2f3c7a039f74 Gitweb: http://git.kernel.org/tip/b5b0f00c760b6e9673ab79b88ede2f3c7a039f74 Author: Thomas Gleixner AuthorDate: Thu, 16 Mar 2017 22:50:09 +0100 Committer: Thomas Gleixner CommitDate: Thu, 29 Jun 2017 08:41:54 +0200 x86/PCI/mmcfg: Switc

[PATCH v2 4/4] Staging: rtl8712 : ieee80211.c: fixed camelcase coding style issue

2017-06-28 Thread Jaya Durga
The following variables and struct name are renamed to avoid camelcase issue Configuration to configuration BeaconPeriod to beacon_period DSConfig to ds_config ATIMWindowto atim_window pnic_Config to pnic_config FHConfig to fh_config HopPatternto hop_pattern HopSetto h

Re: [PATCH] locking/atomics: don't alias ____ptr

2017-06-28 Thread Thomas Gleixner
On Wed, 28 Jun 2017, Thomas Gleixner wrote: > On Wed, 28 Jun 2017, Mark Rutland wrote: > > On Wed, Jun 28, 2017 at 05:24:24PM +0200, Thomas Gleixner wrote: > > Given we're gonig to clean things up, we may as well avoid the backwards > > include of , whcih was only there as > > a bodge: > > > > For

linux-next: Tree for Jun 29

2017-06-28 Thread Stephen Rothwell
Hi all, Changes since 20170628: New Tree: nfc-next The sound-asoc tree gained a build failure so I used the version from next-20170628. The block tree lost its build failure. The kvm-arm tree gained a conflict against the iommu tree. The kvms390 tree gained a conflict against the kvm-ppc

Re: [Intel-gfx] [PATCH v9 5/7] vfio: Define vfio based dma-buf operations

2017-06-28 Thread Gerd Hoffmann
Hi, > > Does gvt track the live cycle of all dma-bufs it has handed out? > > The V9 implementation does track the dma-bufs' live cycle. The > original idea was that leaving the dma-bufs' live cycle management to > user mode. That is still the case, user space decides which dma-bufs it'll go ke

[char-misc-next] mei: me: enable asynchronous probing

2017-06-28 Thread Tomas Winkler
From: Alexander Usyskin On some platforms, currently Broxton, Apollo Lake and Kaby Lake, ME FW may be busy with internal bookkeeping and answering late to the start message. As a mitigation, the driver requests for a synchronous probing to prevent stalling of the overall boot process. For example

Re: [PATCH] futex: avoid undefined behaviour when shift exponent is negative

2017-06-28 Thread Thomas Gleixner
On Thu, 29 Jun 2017, zhong jiang wrote: > On 2017/6/29 6:13, Thomas Gleixner wrote: > > That's simply wrong. If oparg is negative and the SHIFT bit is set then the > > result is undefined today and there is no way that this can be used at > > all. > > > > On x86: > > > >1 << -1 = 0x8000 >

Re: [PATCH v2 09/19] media: camms: Add core files

2017-06-28 Thread Sakari Ailus
Hi Todor, On Mon, Jun 19, 2017 at 05:48:29PM +0300, Todor Tomov wrote: > These files implement the platform driver code. > > Signed-off-by: Todor Tomov > --- > drivers/media/platform/qcom/camss-8x16/camss.c | 630 > + > drivers/media/platform/qcom/camss-8x16/camss.h |

[RFC PATCH 1/4] Provide linux/set_memory.h

2017-06-28 Thread Michael Ellerman
Currently code that wants to use set_memory_ro() etc, needs to include asm/set_memory.h, which doesn't exist on all arches. Some code knows it only builds on arches which have the header, other code guards the inclusion with an #ifdef, neither is ideal. So create linux/set_memory.h. This always ex

[RFC PATCH 3/4] module: Use linux/set_memory.h

2017-06-28 Thread Michael Ellerman
This header always exists, so doesn't require an ifdef around its inclusion. When CONFIG_ARCH_HAS_SET_MEMORY=y it includes the asm header, otherwise it provides empty versions of the set_memory_xx() routines. The usages of set_memory_xx() are still guarded by CONFIG_STRICT_MODULE_RWX. Signed-off-

[RFC PATCH 4/4] bpf: Use linux/set_memory.h

2017-06-28 Thread Michael Ellerman
This header always exists, so doesn't require an ifdef around its inclusion. When CONFIG_ARCH_HAS_SET_MEMORY=y it includes the asm header, otherwise it provides empty versions of the set_memory_xx() routines. Signed-off-by: Michael Ellerman --- include/linux/filter.h | 5 + 1 file changed, 1

[RFC PATCH 2/4] PM / hibernate: Use linux/set_memory.h

2017-06-28 Thread Michael Ellerman
This header always exists, so doesn't require an ifdef around its inclusion. When CONFIG_ARCH_HAS_SET_MEMORY=y it includes the asm header, otherwise it provides empty versions of the set_memory_xx() routines. Signed-off-by: Michael Ellerman --- kernel/power/snapshot.c | 4 +--- 1 file changed, 1

Re: [RFC][PATCHv3 2/5] printk: introduce printing kernel thread

2017-06-28 Thread Andreas Mohr
On Wed, Jun 28, 2017 at 02:19:25PM +0200, Petr Mladek wrote: > On Wed 2017-05-31 16:22:33, Sergey Senozhatsky wrote: > > so I try to minimize the negative impact of RT prio here. printk_kthread > > is not special any more. it's an auxiliary kthread that we sometimes > > wake_up. the thing is that p

Re: [PATCH] cma: fix calculation of aligned offset

2017-06-28 Thread Gregory Fong
On Wed, Jun 28, 2017 at 10:07 AM, Doug Berger wrote: > The align_offset parameter is used by bitmap_find_next_zero_area_off() > to represent the offset of map's base from the previous alignment > boundary; the function ensures that the returned index, plus the > align_offset, honors the specified

KVM: BUG during OOM on host

2017-06-28 Thread Wanpeng Li
Hi all, When the OOM-Killer kills the guest which is running memory hog processes, there is tons of splatting as below: the page count reaches 0 before drop_spte. The splatting will disappear when disables THP on host. [ cut here ] WARNING: CPU: 4 PID: 28317 at arch/x86/k

[PATCH v7 4/4] arm64: defconfig: Enable qcom ipq8074 clock and pinctrl

2017-06-28 Thread Varadarajan Narayanan
From: Abhishek Sahu These configs are required for booting kernel in qcom ipq8074 boards. Acked-by: Bjorn Andersson Signed-off-by: Abhishek Sahu Signed-off-by: Varadarajan Narayanan --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defc

[PATCH v7 0/4] Add minimal boot support for IPQ8074

2017-06-28 Thread Varadarajan Narayanan
v7: Remove the following clk related patches (Stephen Boyd has picked them) Incorporate Bjorn's comment in arm64: dts: Add ipq8074 SoC and HK01 board support Included Bjorn's and Rob's Ack for rest of the patches. v6: * Include Rob's Ack to the first patch. v5: * Removed

[PATCH v7 1/4] pinctrl: qcom: Add ipq8074 pinctrl driver

2017-06-28 Thread Varadarajan Narayanan
Add initial pinctrl driver to support pin configuration with pinctrl framework for ipq8074. Acked-by: Rob Herring (bindings) Acked-by: Bjorn Andersson Signed-off-by: Manoharan Vijaya Raghavan Signed-off-by: Varadarajan Narayanan --- .../bindings/pinctrl/qcom,ipq8074-pinctrl.txt | 172 ++

[PATCH v7 3/4] arm64: dts: Add ipq8074 SoC and HK01 board support

2017-06-28 Thread Varadarajan Narayanan
Add initial device tree support for the Qualcomm IPQ8074 SoC and HK01 evaluation board. Acked-by: Bjorn Andersson Signed-off-by: Manoharan Vijaya Raghavan Signed-off-by: Abhishek Sahu Signed-off-by: Varadarajan Narayanan --- arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/d

[PATCH v7 2/4] dt-bindings: qcom: Add ipq8074 bindings

2017-06-28 Thread Varadarajan Narayanan
Acked-by: Rob Herring Signed-off-by: Varadarajan Narayanan --- Documentation/devicetree/bindings/arm/qcom.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.txt b/Documentation/devicetree/bindings/arm/qcom.txt index 028d16e..0ed4d39 100644 --- a

[PATCH v4 4/4] net: macb: Add hardware PTP support

2017-06-28 Thread Rafal Ozieblo
This patch is based on original Harini's patch and Andrei's patch, implemented in a separate file to ease the review/maintanance and integration with other platforms. This driver supports GEM-GXL: - Register ptp clock framework - Initialize PTP related registers - HW time stamp on the PTP Ethernet

[PATCH v4 2/4] net: macb: Add tsu_clk to device tree

2017-06-28 Thread Rafal Ozieblo
Signed-off-by: Rafal Ozieblo Acked-by: Rob Herring --- Documentation/devicetree/bindings/net/macb.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/net/macb.txt b/Documentation/devicetree/bindings/net/macb.txt index 1506e94..27966ae 100644 --- a/Documenta

[PATCH v4 1/4] net: macb: Add support for PTP timestamps in DMA descriptors

2017-06-28 Thread Rafal Ozieblo
This patch adds support for PTP timestamps in DMA buffer descriptors. It checks capability at runtime and uses appropriate buffer descriptor. Signed-off-by: Rafal Ozieblo --- drivers/net/ethernet/cadence/Kconfig | 10 ++- drivers/net/ethernet/cadence/macb.c | 117 ++

[PATCH v4 0/4] PTP support for macb driver

2017-06-28 Thread Rafal Ozieblo
This patch series adds support for PTP synchronization protocol in Cadence GEM driver based on PHC. v2 changes: * removed alarm's support * removed external time stamp support * removed PTP event interrupt handling * removed ptp_hw_support flag * removed all extra sanity checks * removed unnecessa

Re: [linux-next][PATCH] usb: dwc3: omap: remove IRQ_NOAUTOEN used with shared irq

2017-06-28 Thread Tony Lindgren
* Vignesh R [170628 21:21]: > > > On Thursday 29 June 2017 05:01 AM, Strashko, Grygorii wrote: > > IRQ_NOAUTOEN can't be used with shared IRQs and Kernel now will triggers > > warning if it happns, since commit 04c848d39879 ("genirq: Warn when > > IRQ_NOAUTOEN is used with shared interrupts"). A

Re: [PATCH] futex: avoid undefined behaviour when shift exponent is negative

2017-06-28 Thread zhong jiang
On 2017/6/29 12:29, h...@zytor.com wrote: > On June 28, 2017 7:12:04 PM PDT, zhong jiang wrote: >> On 2017/6/29 5:43, h...@zytor.com wrote: >>> On June 27, 2017 9:35:10 PM PDT, zhong jiang >> wrote: Hi, Ingo Thank you for the comment. On 2017/6/22 0:40, Ingo Molnar wrote: >>>

[PATCH] net: freescale: gianfar : constify dev_pm_ops structures.

2017-06-28 Thread Arvind Yadav
dev_pm_ops are not supposed to change at runtime. All functions working with dev_pm_ops provided by work with const dev_pm_ops. So mark the non-const structs as const. File size before: textdata bss dec hex filename 19057 392 0 194494bf9 drivers/net/ethernet/f

Re: [PATCH] thermal/intel_powerclamp: add const to thermal_cooling_device_ops structure

2017-06-28 Thread Bhumika Goyal
On Thu, Jun 29, 2017 at 11:02 AM, Zhang Rui wrote: > On Thu, 2017-06-29 at 10:41 +0530, Bhumika Goyal wrote: >> On Thu, Jun 29, 2017 at 8:30 AM, Zhang Rui >> wrote: >> > >> > On Wed, 2017-06-21 at 12:39 +0530, Bhumika Goyal wrote: >> > > >> > > Declare thermal_cooling_device_ops structure as cons

Re: [PATCH v1] xen/input: add multi-touch support

2017-06-28 Thread Oleksandr Andrushchenko
ping On 06/23/2017 09:09 AM, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko Extend xen_kbdfront to provide multi-touch support to unprivileged domains. Signed-off-by: Oleksandr Andrushchenko --- Changes since initial: - use input_set_capability instead of setting flags direc

[PATCH] net: smc91x: constify dev_pm_ops structures.

2017-06-28 Thread Arvind Yadav
dev_pm_ops are not supposed to change at runtime. All functions working with dev_pm_ops provided by work with const dev_pm_ops. So mark the non-const structs as const. File size before: textdata bss dec hex filename 18709 401 0 191104aa6 drivers/net/ethernet/s

Re: [PATCH v6 0/3] Add new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag

2017-06-28 Thread Ding Tianhong
ping On 2017/6/22 20:15, Ding Tianhong wrote: > Some devices have problems with Transaction Layer Packets with the Relaxed > Ordering Attribute set. This patch set adds a new PCIe Device Flag, > PCI_DEV_FLAGS_NO_RELAXED_ORDERING, a set of PCI Quirks to catch some known > devices with Relaxed Orde

[PATCH] net: ibm: ibmveth: constify dev_pm_ops structures.

2017-06-28 Thread Arvind Yadav
dev_pm_ops are not supposed to change at runtime. All functions working with dev_pm_ops provided by work with const dev_pm_ops. So mark the non-const structs as const. File size before: textdata bss dec hex filename 154261256 0 16682412a drivers/net/ethernet/i

linux-next: build warning after merge of the rtc tree

2017-06-28 Thread Stephen Rothwell
Hi Alexandre, After merging the rtc tree, today's linux-next build (arm multi_v7_defconfig) produced this warning: drivers/rtc/rtc-brcmstb-waketimer.c: In function 'brcmstb_waketmr_settime': drivers/rtc/rtc-brcmstb-waketimer.c:142:6: warning: unused variable 'ret' [-Wunused-variable] int ret;

Re: [PATCH] ib_isert: prevent NULL pointer dereference in isert_login_recv_done()

2017-06-28 Thread Sagi Grimberg
Just tested this patch, I wasn't able to reproduce the NULL pointer dereference or any other bugs, so this fix seems safe enough to me. Tested-by: Andrea Righi Can you test just the one liner fix below? @@ -1452,7 +1452,7 @@ isert_login_recv_done(struct ib_cq *cq, struct ib_wc *wc) {

linux-next: manual merge of the kspp tree with the file-locks tree

2017-06-28 Thread Stephen Rothwell
Hi Kees, Today's linux-next merge of the kspp tree got a conflict in: include/linux/fs.h between commit: 1844a66c1c89 ("fs: new infrastructure for writeback error handling and reporting") from the file-locks tree and commit: 3abc2b3fcf5c ("randstruct: Mark various structs for randomiza

Re: [PATCH] thermal/intel_powerclamp: add const to thermal_cooling_device_ops structure

2017-06-28 Thread Zhang Rui
On Thu, 2017-06-29 at 10:41 +0530, Bhumika Goyal wrote: > On Thu, Jun 29, 2017 at 8:30 AM, Zhang Rui > wrote: > > > > On Wed, 2017-06-21 at 12:39 +0530, Bhumika Goyal wrote: > > > > > > Declare thermal_cooling_device_ops structure as const as it is > > > only > > > passed > > > as an argument to

[PATCH] usb: dwc3: pci: constify dev_pm_ops structures.

2017-06-28 Thread Arvind Yadav
dev_pm_ops are not supposed to change at runtime. All functions working with dev_pm_ops provided by work with const dev_pm_ops. So mark the non-const structs as const. File size before: textdata bss dec hex filename 2707 456 03163 c5b drivers/usb/dwc3/dwc3-

[PATCH V2 1/4] cpufreq: schedutil: Process remote callback for shared policies

2017-06-28 Thread Viresh Kumar
This patch updates the schedutil governor to process cpufreq utilization update hooks called for remote CPUs (i.e. For updates to the runqueue of other non-local CPUs). For now, we only support remote callbacks for CPUs which share their cpufreq policy with the local CPU. It may not be worth allow

[PATCH V2 3/4] intel_pstate: Ignore scheduler cpufreq callbacks on remote CPUs

2017-06-28 Thread Viresh Kumar
From: Steve Muckle In preparation for the scheduler cpufreq callback happening on remote CPUs, check for this case in intel_pstate which currently requires the callback run on the local CPU. Such callbacks are ignored for now. Signed-off-by: Steve Muckle Signed-off-by: Viresh Kumar --- driver

[PATCH V2 2/4] cpufreq: governor: Process remote callback for shared policies

2017-06-28 Thread Viresh Kumar
This patch updates the legacy governors (ondemand/conservative) to process cpufreq utilization update hooks to be called for remote CPUs (i.e. For updates to the runqueue of other non-local CPUs). Based on initial work from Steve Muckle. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq_g

[PATCH V2 4/4] sched: cpufreq: Enable remote sched cpufreq callbacks

2017-06-28 Thread Viresh Kumar
Now that all clients properly support (or ignore) remote scheduler cpufreq callbacks, remove the restriction that such callbacks only be made on the local CPU. Also remove cpufreq_update_this_cpu() as all its users are migrated to use cpufreq_update_util() instead. Based on initial work from Stev

[PATCH V2 0/4] sched: cpufreq: Allow remote callbacks

2017-06-28 Thread Viresh Kumar
Hi, Here is the second version of this series. The first [1] version was sent several months back. With Android UI and benchmarks the latency of cpufreq response to certain scheduling events can become very critical. Currently, callbacks into schedutil are only made from the scheduler if the targ

Re: [PATCH v4 0/5] g_NCR5380: PDMA fixes and cleanup

2017-06-28 Thread Finn Thain
On Wed, 28 Jun 2017, Ondrej Zary wrote: > > Now read seems to work on non-DTC chips. Writes continue in PDMA after > disconnect but there's a corruption - one 128 B block missing on > disconnect. > > On DTC, the log is spammed with errors like this: > sd 2:0:1:0: [sdb] tag#0 generic_NCR5380_pr

[PATCH v5 6/6] g_NCR5380: Use unambiguous terminology for PDMA send and receive

2017-06-28 Thread Finn Thain
The word "read" may be used to mean "DMA read operation" or "SCSI READ command", though a READ command implies writing to memory. Signed-off-by: Finn Thain --- drivers/scsi/g_NCR5380.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/scsi/g_NCR5380.c b/d

[linux-next][PATCH] usb: dwc3: core: Call dwc3_core_get_phy() before initializing phys

2017-06-28 Thread Vignesh R
commit f54edb539c116 ("usb: dwc3: core: initialize ULPI before trying to get the PHY") moved call to dwc3_core_get_phy() from dwc3_probe() to dwc3_core_init() after dwc3_core_soft_reset(). But dwc3_core_soft_reset() calls phy_init(), therefore dwc3_core_get_phy() needs to be called before dwc3_core

[PATCH v5 2/6] g_NCR5380: End PDMA transfer correctly on target disconnection

2017-06-28 Thread Finn Thain
From: Ondrej Zary When an IRQ arrives during PDMA transfer, pread() and pwrite() return without waiting for the 53C80 registers to be ready and this ends up messing up the chip state. This was observed with SONY CDU-55S which is slow enough to disconnect during 4096-byte reads. IRQ during PDMA i

[PATCH v5 1/6] g_NCR5380: Fix PDMA transfer size

2017-06-28 Thread Finn Thain
From: Ondrej Zary generic_NCR5380_dma_xfer_len() incorrectly uses cmd->transfersize which causes rescan-scsi-bus and CD-ROM access to hang the system. Use cmd->SCp.this_residual instead, like other NCR5380 drivers. Signed-off-by: Ondrej Zary Signed-off-by: Finn Thain --- drivers/scsi/g_NCR538

[PATCH v5 3/6] g_NCR5380: Cleanup comments and whitespace

2017-06-28 Thread Finn Thain
Signed-off-by: Finn Thain --- drivers/scsi/g_NCR5380.c | 61 ++-- 1 file changed, 28 insertions(+), 33 deletions(-) diff --git a/drivers/scsi/g_NCR5380.c b/drivers/scsi/g_NCR5380.c index 911a4300ea51..dedaed2d16e4 100644 --- a/drivers/scsi/g_NCR5380.c

[PATCH v5 4/6] g_NCR5380: Limit PDMA send to 512 B to avoid data corruption on DTC3181E

2017-06-28 Thread Finn Thain
From: Ondrej Zary The corruption is always the same: one byte missing at the beginning of a 128 B block. It happens only with slow Quantum LPS 240 drive, not with faster IBM DORS-32160. It's not clear what causes this. Documentation for the DTC436 chip has not been made available. Hence this work

[PATCH v5 5/6] g_NCR5380: Re-work PDMA loops

2017-06-28 Thread Finn Thain
From: Ondrej Zary The polling loops in pread() and pwrite() can easily become infinite loops and hang the machine. On DTC chips, IRQ can arrive late and we miss it because we only check once. Merge the IRQ check into host buffer wait and add polling limit. Also place a limit on polling for 53C8

[PATCH v5 0/6] g_NCR5380: PDMA fixes and cleanup

2017-06-28 Thread Finn Thain
Ondrej, would you please test this new series? Changed since v1: - PDMA transfer residual is calculated earlier. - End of DMA flag check is now polled (if there is any residual). Changed since v2: - Bail out of transfer loops when Gated IRQ gets asserted. - Make udelay conditional on board type.

Re: [PATCH] acpi: thermal: honor "mode" sysfs file setting

2017-06-28 Thread Zhang Rui
On Thu, 2017-06-29 at 00:14 +0200, Rafael J. Wysocki wrote: > On Thursday, June 22, 2017 02:45:42 PM Enric Balletbo i Serra wrote: > > > > From: Sameer Nanda > > > > Under each thermal zone there is a file called "mode". Writing > > enabled > > or disabled to this file allows a given thermal zon

Re: [PATCH 2/2] drm/msm: gpu: call qcom_mdt interfaces only for ARCH_QCOM

2017-06-28 Thread Bjorn Andersson
On Tue 20 Jun 13:16 PDT 2017, Arnd Bergmann wrote: > When compile-testing for something other than ARCH_QCOM, > we run into a link error: > > drivers/gpu/drm/msm/adreno/a5xx_gpu.o: In function `a5xx_hw_init': > a5xx_gpu.c:(.text.a5xx_hw_init+0x600): undefined reference to > `qcom_mdt_get_size' >

[PATCH] ASoC: rsnd: constify dev_pm_ops structures.

2017-06-28 Thread Arvind Yadav
dev_pm_ops are not supposed to change at runtime. All functions working with dev_pm_ops provided by work with const dev_pm_ops. So mark the non-const structs as const. File size before: textdata bss dec hex filename 8172 920 090922384 sound/soc/sh/rcar/core

Re: [PATCH] thermal/intel_powerclamp: add const to thermal_cooling_device_ops structure

2017-06-28 Thread Bhumika Goyal
On Thu, Jun 29, 2017 at 8:30 AM, Zhang Rui wrote: > On Wed, 2017-06-21 at 12:39 +0530, Bhumika Goyal wrote: >> Declare thermal_cooling_device_ops structure as const as it is only >> passed >> as an argument to the function thermal_cooling_device_register and >> this >> argument is of type const. S

Re: linux-next: build warnings after merge of the scsi-mkp tree

2017-06-28 Thread Stephen Rothwell
Hi James, This has now migrated to the scsi tree. On Wed, 28 Jun 2017 15:55:10 +1000 Stephen Rothwell wrote: > > After merging the scsi-mkp tree, today's linux-next build > (powerpc_ppc64_defconfig) produced these warnings: > > In file included from include/linux/byteorder/big_endian.h:4:0, >

Re: [PATCH 1/2] drm/msm: gpu: don't abuse dma_alloc for non-DMA allocations

2017-06-28 Thread Bjorn Andersson
On Tue 20 Jun 13:16 PDT 2017, Arnd Bergmann wrote: > In zap_shader_load_mdt(), we pass a pointer to a phys_addr_t > into dmam_alloc_coherent, which the compiler warns about: > > drivers/gpu/drm/msm/adreno/a5xx_gpu.c: In function 'zap_shader_load_mdt': > drivers/gpu/drm/msm/adreno/a5xx_gpu.c:54:50

Re: [PATCH 6/8] drm: Allow DSI devices to be registered before the host registers.

2017-06-28 Thread Archit Taneja
On 06/28/2017 01:28 AM, Eric Anholt wrote: When a mipi_dsi_host is registered, the DT is walked to find any child nodes with compatible strings. Those get registered as DSI devices, and most DSI panel drivers are mipi_dsi_drivers that attach to those nodes. There is one special case currently

Re: [ANNOUNCE] v4.11.7-rt3

2017-06-28 Thread Mike Galbraith
On Thu, 2017-06-29 at 04:55 +0200, Mike Galbraith wrote: > > cpus_allowed became cpus_mask.  Anything (crash.. hohum, yet again) > that rummages around in the kernels gizzard will have to adapt. (wrt crash: nope, it doesn't care for a change)

Re: [PATCH] fs: ext4: inode->i_generation not assigned 0.

2017-06-28 Thread Darrick J. Wong
[add linux-xfs to cc] On Thu, Jun 29, 2017 at 04:37:14AM +, William Koh wrote: > On 6/28/17, 7:32 PM, "Andreas Dilger" wrote: > > On Jun 28, 2017, at 4:06 PM, Kyungchan Koh wrote: > > > > In fs/ext4/super.c, the function ext4_nfs_get_inode takes as input > > "generation" th

[PATCH] staging: lustre: lnet: remove dead code

2017-06-28 Thread Dmitriy Cherkasov
Remove code which was permanently disabled with ifdefs. This also resolves the following checkpatch warning which was triggered by the dead code: WARNING: space prohibited before semicolon Signed-off-by: Dmitriy Cherkasov --- drivers/staging/lustre/lnet/klnds/socklnd/socklnd.h | 6 -- 1 fi

Re: [kernel-sched-cputime] question about probable bug in cputime_adjust()

2017-06-28 Thread Frans Klaver
On 29 June 2017 01:57:19 CEST, "Gustavo A. R. Silva" wrote: --- a/kernel/sched/cputime.c +++ b/kernel/sched/cputime.c @@ -637,9 +637,10 @@ static void cputime_adjust(struct task_cputime >*curr, *= (rtime_i+1 - rtime_i) + utime_i *

linux-next: manual merge of the usb tree with the uuid tree

2017-06-28 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the usb tree got a conflict in: drivers/usb/misc/ucsi.c between commit: 94116f8126de ("ACPI: Switch to use generic guid_t in acpi_evaluate_dsm()") from the uuid tree and commit: 8243edf44152 ("usb: typec: ucsi: Add ACPI driver") from the usb tree.

Re: [linux-sunxi] Re: [PATCH v3 2/3] dt-bindings: input: Add R_LRADC support for A83T

2017-06-28 Thread Ziping Chen
2017-06-28 1:36 GMT+08:00 Maxime Ripard : > Hi, > > On Tue, Jun 27, 2017 at 11:29:10PM +0800, icen...@aosc.io wrote: >> Maxime, here's another problem: if we have already a GP LRADC driver, >> how can we tell the kernel to use it as IIO ADC rather than keys? > > The GPADC IIO driver is not for the

Re: [PATCH v6 5/6] arm64: dts: Add ipq8074 SoC and HK01 board support

2017-06-28 Thread Bjorn Andersson
On Fri 09 Jun 02:41 PDT 2017, Varadarajan Narayanan wrote: > diff --git a/arch/arm64/boot/dts/qcom/ipq8074-hk01.dts > b/arch/arm64/boot/dts/qcom/ipq8074-hk01.dts [..] > + > + chosen { > + bootargs = "root=/dev/ram0 rw init=/init"; As far as I know you can omit both root= and init=

Re: [PATCH] fs: ext4: inode->i_generation not assigned 0.

2017-06-28 Thread William Koh
On 6/28/17, 7:32 PM, "Andreas Dilger" wrote: On Jun 28, 2017, at 4:06 PM, Kyungchan Koh wrote: > > In fs/ext4/super.c, the function ext4_nfs_get_inode takes as input > "generation" that can be used to specify the generation of the inode to > be returned. When 0 is given as i

Re: [PATCH v3 2/3] dt-bindings: input: Add R_LRADC support for A83T

2017-06-28 Thread Ziping Chen
2017-06-28 1:31 GMT+08:00 Maxime Ripard : > On Tue, Jun 27, 2017 at 11:18:17PM +0800, Ziping Chen wrote: >> 2017-06-27 1:15 GMT+08:00 Maxime Ripard : >> > Hi, >> > >> > On Sat, Jun 24, 2017 at 10:45:14AM +0800, Ziping Chen wrote: >> >> From: Ziping Chen >> >> >> >> Allwinner A83T SoC has a low res

Re: [PATCH] futex: avoid undefined behaviour when shift exponent is negative

2017-06-28 Thread hpa
On June 28, 2017 7:12:04 PM PDT, zhong jiang wrote: >On 2017/6/29 5:43, h...@zytor.com wrote: >> On June 27, 2017 9:35:10 PM PDT, zhong jiang >wrote: >>> Hi, Ingo >>> >>> Thank you for the comment. >>> On 2017/6/22 0:40, Ingo Molnar wrote: * zhong jiang wrote: > when shift expomen

Re: [PATCH v6 6/6] arm64: defconfig: Enable qcom ipq8074 clock and pinctrl

2017-06-28 Thread Bjorn Andersson
On Fri 09 Jun 02:41 PDT 2017, Varadarajan Narayanan wrote: > From: Abhishek Sahu > > These configs are required for booting kernel in qcom > ipq8074 boards. > > Signed-off-by: Abhishek Sahu > Signed-off-by: Varadarajan Narayanan Acked-by: Bjorn Andersson Regards, Bjorn

Re: [PATCH v6 1/6] pinctrl: qcom: Add ipq8074 pinctrl driver

2017-06-28 Thread Bjorn Andersson
On Fri 09 Jun 02:41 PDT 2017, Varadarajan Narayanan wrote: > Add initial pinctrl driver to support pin configuration with > pinctrl framework for ipq8074. > > Acked-by: Rob Herring (bindings) > Signed-off-by: Manoharan Vijaya Raghavan > Signed-off-by: Varadarajan Narayanan Sorry for the delay

Re: [PATCH] cpufreq: Find transition latency dynamically

2017-06-28 Thread Viresh Kumar
On 02-06-17, 16:59, Viresh Kumar wrote: > The transition_latency_ns represents the maximum time it can take for > the hardware to switch from/to any frequency for a CPU. > > The transition_latency_ns is used currently for two purposes: > > o To check if the hardware latency is over the maximum al

[PATCH] hashtable: remove repeated phrase from a comment

2017-06-28 Thread Jakub Kicinski
"in a rcu enabled hashtable" is repeated twice in a comment. Signed-off-by: Jakub Kicinski --- I'm not sure who would take this :S include/linux/hashtable.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/hashtable.h b/include/linux/hashtable.h index 661e5c2a8e2a..082dc1bd0801

Re: [linux-next][PATCH] usb: dwc3: omap: remove IRQ_NOAUTOEN used with shared irq

2017-06-28 Thread Vignesh R
On Thursday 29 June 2017 05:01 AM, Strashko, Grygorii wrote: > IRQ_NOAUTOEN can't be used with shared IRQs and Kernel now will triggers > warning if it happns, since commit 04c848d39879 ("genirq: Warn when > IRQ_NOAUTOEN is used with shared interrupts"). And this is the case for > OMAP DWC 3 driv

Re: [kernel-hardening] [PATCH v5 3/3] x86/refcount: Implement fast refcount overflow protection

2017-06-28 Thread Li Kun
Hi Kees, 在 2017/5/31 5:39, Kees Cook 写道: This protection is a modified version of the x86 PAX_REFCOUNT defense from PaX/grsecurity. This speeds up the refcount_t API by duplicating the existing atomic_t implementation with a single instruction added to detect if the refcount has wrapped past IN

[PATCH] aic7xxx: fix firmware build with O=path

2017-06-28 Thread Jakub Kicinski
Building firmware with O=path was apparently broken in aic7 for ever. Message of the previous commit to the Makefile (from 2008) mentions this unfortunate state of affairs already. Fix this, mostly to make randconfig builds more reliable. Signed-off-by: Jakub Kicinski --- drivers/scsi/aic7xxx/M

Re: [RFC 4/5] drivers: boot_constraint: Add debugfs support

2017-06-28 Thread Viresh Kumar
On 28-06-17, 08:46, Randy Dunlap wrote: > On 06/28/2017 03:26 AM, Viresh Kumar wrote: > > This patch adds debugfs support for boot constraints. This is how it > > looks for a "vmmc-supply" constraint for the MMC device. > > > > Hi, > Does this build OK when DEBUG_FS is not enabled in kernel .conf

[PATCH] debugfs: Add dummy implementation of few helpers

2017-06-28 Thread Viresh Kumar
This adds (missing) dummy implementations of debugfs_create_file_unsafe() and debugfs_create_ulong(). Signed-off-by: Viresh Kumar --- include/linux/debugfs.h | 16 1 file changed, 16 insertions(+) diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h index 9174b0d28582

Re: [net] 4f347129ca: kernel_BUG_at_mm/slab_common.c

2017-06-28 Thread Kees Cook
On Wed, Jun 28, 2017 at 8:26 PM, kernel test robot wrote: > > FYI, we noticed the following commit: > > commit: 4f347129caa154c94addbac804879421514096bf ("net: define usercopy > region in struct proto slab cache") > https://git.kernel.org/cgit/linux/kernel/git/kees/linux.git > kspp/usercopy-whit

Re: A udev rule to serve the change event of ACPI container?

2017-06-28 Thread joeyli
Hi YASUAKI, Thanks for your response. On Wed, Jun 28, 2017 at 03:53:16PM -0400, YASUAKI ISHIMATSU wrote: > > On 06/26/2017 02:26 AM, joeyli wrote: > > Hi all, > > > > If ACPI received ejection request for a ACPI container, kernel > > emits KOBJ_CHANGE uevent when it found online children device

Re: [PATCH] dma: fsl_raid: make of_device_ids const.

2017-06-28 Thread Vinod Koul
On Tue, Jun 27, 2017 at 05:38:27PM +0530, Arvind Yadav wrote: > of_device_ids are not supposed to change at runtime. All functions > working with of_device_ids provided by work with const > of_device_ids. So mark the non-const structs as const. Please ensure you use the right subsystem tags for s

Re: [RFC 1/5] drivers: Add boot constraints core

2017-06-28 Thread Viresh Kumar
On 28-06-17, 08:55, Randy Dunlap wrote: > On 06/28/2017 03:26 AM, Viresh Kumar wrote: > > +config BOOT_CONSTRAINTS > > + bool "Boot constraints for devices" > > + default y > > Why default y? > > As Linus just wrote yesterday: > > No. We've tried. The only sensible default (and that I try t

Re: [PATCH v7] drm/sun4i: hdmi: Implement I2C adapter for A10s DDC bus

2017-06-28 Thread Jonathan Liu
Hi Chen-Yu, On 29 June 2017 at 12:47, Chen-Yu Tsai wrote: > Hi, > > On Wed, Jun 28, 2017 at 6:52 PM, Jonathan Liu wrote: >> The documentation for drm_do_get_edid in drivers/gpu/drm/drm_edid.c states: >> "As in the general case the DDC bus is accessible by the kernel at the I2C >> level, drivers

Re: [PATCH v3 net-next 03/12] nfp: change bpf verifier hooks to match new verifier data structures

2017-06-28 Thread Jakub Kicinski
On Tue, 27 Jun 2017 13:57:34 +0100, Edward Cree wrote: > Signed-off-by: Edward Cree Acked-by: Jakub Kicinski Sorry about the delay.

Re: [PATCH] [net-next] net/mlx5e: select CONFIG_MLXFW

2017-06-28 Thread Or Gerlitz
On Wed, Jun 28, 2017 at 11:10 PM, Arnd Bergmann wrote: > With the introduction of mlx5 firmware flash support, we get a link > error with CONFIG_MLXFW=m and CONFIG_MLX5_CORE=y: > > drivers/net/ethernet/mellanox/mlx5/core/fw.o: In function > `mlx5_firmware_flash': > fw.c:(.text+0x9d4): undefined r

Re: [PATCH v3] KVM: LAPIC: Fix lapic timer injection delay

2017-06-28 Thread Wanpeng Li
2017-06-28 22:30 GMT+08:00 Paolo Bonzini : > > > On 28/06/2017 16:27, Wanpeng Li wrote: >> 2017-06-28 20:10 GMT+08:00 Paolo Bonzini : >>> >>> >>> On 28/06/2017 03:29, Wanpeng Li wrote: u64 tscdeadline = apic->lapic_timer.tscdeadline; + int ret = 0; if ((atomic_re

[PATCH v4 2/2] fs/dcache.c: fix spin lockup issue on nlru->lock

2017-06-28 Thread Sahitya Tummala
__list_lru_walk_one() acquires nlru spin lock (nlru->lock) for longer duration if there are more number of items in the lru list. As per the current code, it can hold the spin lock for upto maximum UINT_MAX entries at a time. So if there are more number of items in the lru list, then "BUG: spinlock

[PATCH v4 1/2] mm/list_lru.c: fix list_lru_count_node() to be race free

2017-06-28 Thread Sahitya Tummala
list_lru_count_node() iterates over all memcgs to get the total number of entries on the node but it can race with memcg_drain_all_list_lrus(), which migrates the entries from a dead cgroup to another. This can return incorrect number of entries from list_lru_count_node(). Fix this by keeping trac

linux-next: manual merge of the kvms390 tree with the kvm-ppc tree

2017-06-28 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvms390 tree got a conflict in: include/uapi/linux/kvm.h between commits: 134764ed6e12 ("KVM: PPC: Book3S HV: Add new capability to control MCE behaviour") 2ed4f9dd19c0 ("KVM: PPC: Book3S HV: Add capability to report possible virtual SMT modes")

Re: [PATCH v3 1/2] drivers/watchdog: Add optional ASPEED device tree properties

2017-06-28 Thread Guenter Roeck
On 06/28/2017 05:28 PM, Christopher Bostic wrote: Describe device tree optional properties: * aspeed,arm-reet - ARM CPU reset on signal * aspeed,no-soc-reset - SOC reset on signal * aspeed,no-sys-reset - System reset on signal * aspeed,interrupt - Interrupt CPU on signal * aspeed,

linux-next: manual merge of the kvm-arm tree with the iommu tree

2017-06-28 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm-arm tree got a conflict in: Documentation/arm64/silicon-errata.txt between commits: e5b829de053d ("iommu/arm-smmu-v3: Add workaround for Cavium ThunderX2 erratum #74") f935448acf46 ("iommu/arm-smmu-v3: Add workaround for Cavium ThunderX2 erratu

[PATCH 10/16] switchtec_ntb: initialize hardware for doorbells and messages

2017-06-28 Thread Logan Gunthorpe
This patch sets up some hardware registers and creates interrupt service routines for the doorbells and messages. There are 64 doorbells in the switch that are shared between all partitions. The upper 4 doorbells are also shared with the messages and are there for not used. Thus, this code provide

[PATCH 11/16] switchtec_ntb: add skeleton ntb driver

2017-06-28 Thread Logan Gunthorpe
This patch simply adds a skeleton NTB driver which will be filled out in subsequent patches. Signed-off-by: Logan Gunthorpe Reviewed-by: Stephen Bates Reviewed-by: Kurt Schwemmer --- drivers/ntb/hw/mscc/switchtec_ntb.c | 148 +++- include/linux/ntb.h

[PATCH 07/16] ntb: ntb_test: ensure the link is up before trying to configure the mws

2017-06-28 Thread Logan Gunthorpe
After the link tests, there is a race on one side of the test for the link coming up. It's possible, in some cases, for the test script to write to the peer_trans files before the link has come up. To fix this we simply use the link event file to ensure both sides see the link as up before continu

[PATCH 05/16] ntb: ensure ntb_mw_get_align is only called when the link is up

2017-06-28 Thread Logan Gunthorpe
With switchtec hardware it's impossible to get the alignment parameters for a peer's memory window until the peer's driver has configured it's windows. Strictly speaking, the link doesn't have to be up for this, but the link being up is the only way the client can tell that the otherside has been c

[PATCH 12/16] switchtec_ntb: add link management

2017-06-28 Thread Logan Gunthorpe
switchtec_ntb checks for a link by looking at the shared memory window. If the magic number is correct and the otherside indicates their link is enabled then we take the link to be up. Whenever we change our local link status we send a msg to the otherside to check whether it's up and change their

[PATCH 02/16] switchtec: export class symbol for use in upper layer driver

2017-06-28 Thread Logan Gunthorpe
We export the class pointer symbol and add an extern define in the switchtec header file. Signed-off-by: Logan Gunthorpe Reviewed-by: Stephen Bates Reviewed-by: Kurt Schwemmer --- drivers/pci/switch/switchtec.c | 4 +++- include/linux/switchtec.h | 2 ++ 2 files changed, 5 insertions(+),

  1   2   3   4   5   6   7   8   9   10   >