Re: [PATCH] usb: typec: include linux/device.h in ucsi.h

2017-07-03 Thread Heikki Krogerus
On Fri, Jun 30, 2017 at 05:46:16PM +0200, Arnd Bergmann wrote: > The new driver causes a build failure in some configurations: > > In file included from /git/arm-soc/drivers/usb/typec/ucsi/trace.h:9:0, > from /git/arm-soc/drivers/usb/typec/ucsi/trace.c:2: > drivers/usb/typec/ucsi/

Re: [PATCH 5/7] serial: imx: umap sg buffers when DMA channel is released

2017-07-03 Thread Uwe Kleine-König
$Subject ~= s/umap/unmap/ On Fri, Jun 30, 2017 at 02:04:44PM +0200, Romain Perier wrote: > From: Nandor Han > > This commits unmaps sg buffers when the DMA channel is released > > Signed-off-by: Nandor Han > Signed-off-by: Romain Perier > --- > drivers/tty/serial/imx.c | 12 > 1

[GIT PULL] objtool changes for v4.13

2017-07-03 Thread Ingo Molnar
Linus, Please pull the latest core-objtool-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core-objtool-for-linus # HEAD: 2513cbf9d622d85268655bfd787d4f004342cfc9 objtool: Silence warnings for functions which use IRET This is an extensive rewrite of th

Re: [PATCH 6/7] serial: imx: update the stop rx,tx procedures

2017-07-03 Thread Uwe Kleine-König
On Fri, Jun 30, 2017 at 02:04:45PM +0200, Romain Perier wrote: > From: Nandor Han > > According to "Documentation/serial/driver" both procedures should stop > receiving or sending data. Based on this the procedures should stop the > activity regardless if DMA is enabled or not. > > This commit u

Re: [PATCH 7/7] serial: imx: Fix imx_shutdown procedure

2017-07-03 Thread Uwe Kleine-König
On Fri, Jun 30, 2017 at 02:04:46PM +0200, Romain Perier wrote: > From: Nandor Han > > In some cases, It looks that interrupts can happen after the dma was s/It/it/ > disabled and port was not yet shutdown. This will result in interrupts > handled by imx_rxint. > > This commits updates the shutd

[GIT PULL] RCU changes for v4.13

2017-07-03 Thread Ingo Molnar
Linus, Please pull the latest core-rcu-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core-rcu-for-linus # HEAD: 567b64aaefc4ef9ae3af124ae0b13dc13a6804a8 Merge branch 'for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu into co

Re: [PATCH v5 10/12] x86/xen: Bypass intr mode setup in enlighten_pv system

2017-07-03 Thread Dou Liyang
Hi Thomas, At 07/03/2017 02:56 PM, Thomas Gleixner wrote: On Mon, 3 Jul 2017, Dou Liyang wrote: At 07/03/2017 03:18 AM, Thomas Gleixner wrote: On Fri, 30 Jun 2017, Dou Liyang wrote: xen_smp_ops overwrites smp_prepare_cpus to xen_pv_smp_prepare_cpus which initializes interrupt itself. Touchi

Re: [PATCH] drm: radeon: constify drm_prop_enum_list structures.

2017-07-03 Thread Christian König
Am 01.07.2017 um 11:47 schrieb Arvind Yadav: drm_prop_enum_lists are not supposed to change at runtime. All functions working with drm_prop_enum_list provided by work with const drm_prop_enum_list. So mark the non-const structs as const. File size before: text data bss dec

Re: [PATCH] drm: radeon: radeon_ttm: constify ttm_place structures.

2017-07-03 Thread Christian König
Am 02.07.2017 um 11:06 schrieb Arvind Yadav: ttm_place are not supposed to change at runtime. All functions working with ttm_place provided by work with const ttm_place. So mark the non-const structs as const. File size before: text data bss dec hex filename 9235

Re: [PATCH] zram: constify attribute_group structures.

2017-07-03 Thread Arvind Yadav
Hi, On Monday 03 July 2017 11:57 AM, Minchan Kim wrote: Hello, On Mon, Jul 03, 2017 at 11:43:13AM +0530, Arvind Yadav wrote: attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by work with const attribute_group. So mark the non-const

Re: [lkp-robot] [ALSA] fcc88d91cd: WARNING:at_sound/hda/hdac_i915.c:#snd_hdac_i915_init[snd_hda_core]

2017-07-03 Thread Takashi Iwai
On Mon, 03 Jul 2017 04:41:02 +0200, kernel test robot wrote: > > > FYI, we noticed the following commit: > > commit: fcc88d91cd36d1343a0ccc09444b21f6b0dad2d8 ("ALSA: hda - Bind with i915 > component before codec binding") > https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master

Re: [PATCH] drm: amd: amdgpu: constify ttm_place structures.

2017-07-03 Thread Christian König
Am 02.07.2017 um 11:13 schrieb Arvind Yadav: ttm_place are not supposed to change at runtime. All functions working with ttm_place provided by work with const ttm_place. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Reviewed-by: Christian König --- drivers/gpu/drm/

[GIT pull] timer updates for 4.13

2017-07-03 Thread Thomas Gleixner
Linus, please pull the latest timers-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers-core-for-linus A rather large update for timers/timekeeping: - compat syscall consolidation (Al Viro) - Posix timer consolidation (Christoph Helwig / Thom

Re: [PATCH] [net-next] net/mlx5: include wq.o in non-ethernet build for FPGA

2017-07-03 Thread Arnd Bergmann
On Sun, Jul 2, 2017 at 10:45 AM, Saeed Mahameed wrote: > On Fri, Jun 30, 2017 at 10:25 PM, Arnd Bergmann wrote: >> On Fri, Jun 30, 2017 at 8:58 PM, Ilan Tayari wrote: >> diff --git a/drivers/net/ethernet/mellanox/mlx5/core/Makefile b/drivers/net/ethernet/mellanox/mlx5/core/Makefile >>>

[PULL] serial/gpio: exar: Fixes and support for IOT2000

2017-07-03 Thread Jan Kiszka
The following changes since commit 85bb4646f8908eb786dfa19a6bb2ff1423dc8aa4: gpio: rcar: Add R8A7743 (RZ/G1M) support (2017-06-29 14:22:38 +0200) are available in the git repository at: git://git.kiszka.org/linux.git queues/gpio-iot2000 for you to fetch changes up to 413058df4331ce29f9934a5

[PATCH] block: loop: constify attribute_group structures.

2017-07-03 Thread Arvind Yadav
attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by work with const attribute_group. So mark the non-const structs as const. File size before: textdata bss dec hex filename 15816 865 88 167694181 drive

Re: [RFC][PATCH] sched: attach extra runtime to the right avg

2017-07-03 Thread Vincent Guittot
Hi Josef, On 30 June 2017 at 03:56, wrote: > From: Josef Bacik > > We only track the load avg of a se in 1024 ns chunks, so in order to > make up for the loss of the < 1024 ns part of a run/sleep delta we only > add the time we processed to the se->avg.last_update_time. The problem > is there

Re: [PATCH 4.4 34/46] drm/ast: Fixed system hanged if disable P2A

2017-07-03 Thread Greg Kroah-Hartman
On Thu, Jun 29, 2017 at 02:45:45PM +0100, Ben Hutchings wrote: > On Thu, 2017-06-15 at 19:52 +0200, Greg Kroah-Hartman wrote: > > 4.4-stable review patch. If anyone has any objections, please let me know. > > > > -- > > > > From: "Y.C. Chen" > > > > > > [ Upstream commit 6c971

[git pull] m68k updates for 4.13

2017-07-03 Thread Geert Uytterhoeven
Hi Linus, The following changes since commit 2ea659a9ef488125eb46da6eb571de5eae5c43f6: Linux 4.12-rc1 (2017-05-13 13:19:49 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k.git tags/m68k-for-v4.13-tag1 for you to fetch ch

Re: [PATCH 4.4 24/30] swap: cond_resched in swap_cgroup_prepare()

2017-07-03 Thread Greg Kroah-Hartman
On Thu, Jun 29, 2017 at 06:23:43PM +0100, Ben Hutchings wrote: > On Mon, 2017-06-19 at 23:20 +0800, Greg Kroah-Hartman wrote: > > 4.4-stable review patch. If anyone has any objections, please let me know. > > > > -- > > > > From: Yu Zhao > > > > commit ef70762948dde012146926720

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

2017-07-03 Thread Paolo Bonzini
On 02/07/2017 03:56, Wanpeng Li wrote: >>> - if (!apic_lvtt_period(apic) && atomic_read(&ktimer->pending)) >>> + if (!apic_lvtt_period(apic) && (r || >>> atomic_read(&ktimer->pending))) { >>> + if (r) >>> + apic_timer_expired(apic); >>>

[PATCH] bus: arm-ccn: constify attribute_group structures.

2017-07-03 Thread Arvind Yadav
attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by work with const attribute_group. So mark the non-const structs as const. File size before: textdata bss dec hex filename 90745592 416 150823aea drive

Re: [PATCH 4.4 16/30] [media] pvrusb2: reduce stack usage pvr2_eeprom_analyze()

2017-07-03 Thread Greg Kroah-Hartman
On Thu, Jun 29, 2017 at 05:15:17PM +0100, Ben Hutchings wrote: > On Mon, 2017-06-19 at 23:20 +0800, Greg Kroah-Hartman wrote: > > 4.4-stable review patch. If anyone has any objections, please let me know. > > > > -- > > > > From: Arnd Bergmann > > > > commit 6830733d53a4517588e

BUG: workqueue lockup (after powerdown)

2017-07-03 Thread Meelis Roos
Today I tested 4.12 release on my RP3440 (HP parisc). It worked fine, then on shutdown I got this strange message from kernel after shutdown: reboot: Power down System shut down completed. Please power this system off now. BUG: workqueue lockup - pool cpus=0 node=0 flags=0x0 nice=0 stuck for 40s!

[PATCH v2 0/2] IPQ4019 dts fixes

2017-07-03 Thread Varadarajan Narayanan
v2: * Incorporate Stephen Boyd's comment as a separate patch v1: * Moved the xo and timer nodes to SoC dts file from board dts file. Varadarajan Narayanan (2): dts: ipq4019: Fix pinctrl node name Subject: [PATCH] dts: ipq4019: Move xo and timer nodes to SoC dtsi arch/arm/boot/dts/qcom-i

[PATCH v2 1/2] dts: ipq4019: Fix pinctrl node name

2017-07-03 Thread Varadarajan Narayanan
Signed-off-by: Varadarajan Narayanan --- arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi | 13 + arch/arm/boot/dts/qcom-ipq4019.dtsi | 2 +- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi b/arch/arm/boot/dts/qcom

[PATCH v2 2/2] Subject: [PATCH] dts: ipq4019: Move xo and timer nodes to SoC dtsi

2017-07-03 Thread Varadarajan Narayanan
The node for xo and timer belong to the SoC DTS file. Else, new board DT files may not inherit these nodes. Signed-off-by: Varadarajan Narayanan --- arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi | 8 arch/arm/boot/dts/qcom-ipq4019.dtsi | 15 +++ 2 files changed, 1

Re: [PATCH V1 7/9] clk: sprd: add adjustable pll support

2017-07-03 Thread Chunyan Zhang
On 1 July 2017 at 03:22, Stephen Boyd wrote: > On 06/30, Chunyan Zhang wrote: >> Hi Stephen, >> >> On 30 June 2017 at 09:44, Stephen Boyd wrote: >> > On 06/22, Chunyan Zhang wrote: >> >> On 20 June 2017 at 09:37, Stephen Boyd wrote: >> >> > On 06/18, Chunyan Zhang wrote: >> >> >> + pll->fact

[GIT pull] irq updates for 4.13

2017-07-03 Thread Thomas Gleixner
Linus, please pull the latest irq-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-core-for-linus The irq department delivers: - Expand the generic infrastructure handling the irq migration on CPU hotplug and convert X86 over to it. (Thoma

Re: [PATCH v3 3/3] hwmon: ltc2990: support all measurement modes

2017-07-03 Thread Mike Looijmans
Applied, and tested on my board, so you have my Tested-By: mike.looijm...@topic.nl Probably the maintainers will like to see a patch header mail with a "v3" summary for what you've changed ("git send-email --cover-letter" or something similar to that) On 03-07-17 06:29, Tom Levens wrote: U

[PATCH] bus: arm-cci: constify attribute_group structures.

2017-07-03 Thread Arvind Yadav
attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/bus/arm-cci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions

Re: [PATCH 4.4 16/30] [media] pvrusb2: reduce stack usage pvr2_eeprom_analyze()

2017-07-03 Thread Arnd Bergmann
On Mon, Jul 3, 2017 at 9:31 AM, Greg Kroah-Hartman wrote: > On Thu, Jun 29, 2017 at 05:15:17PM +0100, Ben Hutchings wrote: >> On Mon, 2017-06-19 at 23:20 +0800, Greg Kroah-Hartman wrote: >> > 4.4-stable review patch. If anyone has any objections, please let me know. >> > >> > From: Arnd Bergmann

[PATCH v3 0/2] IPQ4019 dts fixes

2017-07-03 Thread Varadarajan Narayanan
v3: * Fix commit subject for dts: ipq4019: Move xo and timer nodes to SoC dtsi v2: * Incorporate Stephen Boyd's comment as a separate patch (i.e. fix pinctrl node name) v1: * Moved the xo and timer nodes to SoC dts file from board dts file. Varadarajan Narayanan (2): dts: ipq

[PATCH v3 1/2] dts: ipq4019: Fix pinctrl node name

2017-07-03 Thread Varadarajan Narayanan
Signed-off-by: Varadarajan Narayanan --- arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi | 2 +- arch/arm/boot/dts/qcom-ipq4019.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi b/arch/arm/boot/dts/qcom-ipq4019-ap.dk

[PATCH v3 2/2] dts: ipq4019: Move xo and timer nodes to SoC dtsi

2017-07-03 Thread Varadarajan Narayanan
The node for xo and timer belong to the SoC DTS file. Else, new board DT files may not inherit these nodes. Signed-off-by: Varadarajan Narayanan --- arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi | 19 --- arch/arm/boot/dts/qcom-ipq4019.dtsi | 15 +++ 2 files

Re: [PATCH mm] introduce reverse buddy concept to reduce buddy fragment

2017-07-03 Thread Michal Hocko
On Fri 30-06-17 19:25:41, zhouxianr...@huawei.com wrote: > From: zhouxianrong > > when buddy is under fragment i find that still there are some pages > just like AFFA mode. A is allocated, F is free, AF is buddy pair for > oder n, FA is buddy pair for oder n as well. Could you quantify how of

Re: [PATCH v4] arm64: kvm: inject SError with user space specified syndrome

2017-07-03 Thread Christoffer Dall
Hi Dongjiu, It seems you sent this patch twice, once on its own and then part of a series? Also, please use a cover letter when sending patch series. Thanks, -Christoffer On Mon, Jun 26, 2017 at 07:39:15PM +0800, Dongjiu Geng wrote: > when SError happen, kvm notifies user space to record the CP

[GIT pull] x86/PCI updates for 4.13

2017-07-03 Thread Thomas Gleixner
Linus, please pull the latest x86-platform-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-platform-for-linus This update provides: The seperation of x86 PCI accessors from the global PCI lock in the generic PCI config space accessors. The reaso

[PATCH] mwifiex: uninit wakeup info when failed to add card

2017-07-03 Thread Jeffy Chen
We inited wakeup info at the beginning of mwifiex_add_card, so we need to uninit it in the error handling. It's much the same as what we did in: 36908c4 mwifiex: uninit wakeup info when removing device Signed-off-by: Jeffy Chen --- drivers/net/wireless/marvell/mwifiex/main.c | 2 ++ 1 file ch

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

2017-07-03 Thread Daniel Borkmann
On 07/03/2017 03:37 AM, Stephen Rothwell wrote: Hi all, Today's linux-next merge of the net-next tree got a conflict in: arch/arm64/net/bpf_jit_comp.c between commit: 425e1ed73e65 ("arm64: fix endianness annotation for 'struct jit_ctx' and friends") from the arm64 tree and commit:

Re: [PATCH V2 2/2] perf tools: always set no branch for dummy event in PT

2017-07-03 Thread Jiri Olsa
On Fri, Jun 30, 2017 at 10:16:56AM -0400, kan.li...@intel.com wrote: > From: Kan Liang > > An earlier kernel patch allowed enabling PT and LBR at the same time on > Goldmont. > > commit ccbebba4c6bf ("perf/x86/intel/pt: Bypass PT vs. LBR exclusivity > if the core supports it") > > However, user

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

2017-07-03 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] cpufreq: cpufreq_stats: constify attribute_group structures.

2017-07-03 Thread Arvind Yadav
attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by work with const attribute_group. So mark the non-const structs as const. File size before: textdata bss dec hex filename 1655 256 41915 77b drive

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

2017-07-03 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 v7 4/6] g_NCR5380: Use unambiguous terminology for PDMA send and receive

2017-07-03 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

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

2017-07-03 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: linux-next: manual merge of the net-next tree with the net tree

2017-07-03 Thread Saeed Mahameed
On Mon, Jul 3, 2017 at 4:43 AM, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the net-next tree got conflicts in: > > drivers/net/ethernet/mellanox/mlx5/core/health.c > include/linux/mlx5/driver.h > > between commit: > > 2a0165a034ac ("net/mlx5: Cancel delayed recovery wo

[PATCH v7 6/6] g_NCR5380: Two DTC436 PDMA workarounds

2017-07-03 Thread Finn Thain
From: Ondrej Zary Limit PDMA send to 512 B to avoid data corruption on DTC3181E. 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 f

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

2017-07-03 Thread Finn Thain
From: Ondrej Zary The polling loops in pread() and pwrite() can easily become infinite loops and hang the machine. Merge the IRQ check into host buffer wait loop and add polling limit. Also place a limit on polling for 53C80 registers accessibility. [Use NCR5380_poll_politely2() for register p

[PATCH v3 2/2] thermal: core: introduce thermal zone device mode control

2017-07-03 Thread Enric Balletbo i Serra
From: Zhang Rui Thermal "mode" sysfs attribute is introduced to enable/disable a thermal zone, and .get_mode()/.set_mode() callback is introduced for platform thermal driver to enable/disable the hardware thermal control logic. And thermal core takes no action upon thermal zone enable/disable. A

[GIT PULL] EFI changes for v4.13

2017-07-03 Thread Ingo Molnar
Linus, Please pull the latest efi-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git efi-core-for-linus # HEAD: 6c64447ec58b0bac612732303f7ab04562124587 x86/xen/efi: Initialize only the EFI struct members used by Xen The main changes in this cycle wer

[PATCH v3 1/2] acpi: thermal: initialize tz_enabled to 1

2017-07-03 Thread Enric Balletbo i Serra
From: Sameer Nanda In the acpi_thermal_add path, acpi_thermal_get_info gets called before acpi_thermal_register_thermal_zone. Since tz_enabled was getting set to 1 only in acpi_thermal_register_thermal_zone, acpi_thermal_get_info ended up disabling thermal polling. Moved setting of tz_enabled t

[PATCH BUGFIX] block, bfq: fix bug causing crashes

2017-07-03 Thread Paolo Valente
Hi Jens, I'm writing this short cover letter to hopefully help you decide what to do with this patch, in this late phase of the development cycle. This patch fixes a bug causing kernel crashes for at least one year. Crashes apparently affect only a minority of users, but are systematic for them (a

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

2017-07-03 Thread Finn Thain
On Sun, 2 Jul 2017, Ondrej Zary wrote: > On Sunday 02 July 2017 05:11:27 Finn Thain wrote: > > On Sat, 1 Jul 2017, Ondrej Zary wrote: > > > The write corruption is still present - "start" must be rolled back > > > in both IRQ and timeout cases. > > > > Your original algorithm aborts the transfer

[PATCH BUGFIX] block, bfq: don't change ioprio class for a bfq_queue on a service tree

2017-07-03 Thread Paolo Valente
On each deactivation or re-scheduling (after being served) of a bfq_queue, BFQ invokes the function __bfq_entity_update_weight_prio(), to perform pending updates of ioprio, weight and ioprio class for the bfq_queue. BFQ also invokes this function on I/O-request dispatches, to raise or lower weights

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

2017-07-03 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

Re: [PATCH] KVM: arm/arm64: Handle hva aging while destroying the vm

2017-07-03 Thread Christoffer Dall
Hi Alex, On Fri, Jun 23, 2017 at 05:21:59PM +0200, Alexander Graf wrote: > If we want to age an HVA while the VM is getting destroyed, we have a > tiny race window during which we may end up dereferencing an invalid > kvm->arch.pgd value. > >CPU0 CPU1 > >kvm_age_hva() >

[GIT PULL] locking changes for v4.13

2017-07-03 Thread Ingo Molnar
Linus, Please pull the latest locking-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking-core-for-linus # HEAD: 5d6dec6fba38c3e2d408df108bb92ef4ac201f18 locking/refcount: Remove the half-implemented refcount_sub() API The main changes in this

Re: [PATCH] drm/udl: dma-buf: Constify dma_buf_ops structures.

2017-07-03 Thread Daniel Vetter
On Sat, Jul 01, 2017 at 06:06:46PM +0530, Arvind Yadav wrote: > dma_buf_ops are not supposed to change at runtime. All functions > working with dma_buf_ops provided by work with > const dma_buf_ops. So mark the non-const structs as const. > > File size before: >text data bss

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

2017-07-03 Thread Wanpeng Li
2017-07-03 15:30 GMT+08:00 Paolo Bonzini : > > > On 02/07/2017 03:56, Wanpeng Li wrote: - if (!apic_lvtt_period(apic) && atomic_read(&ktimer->pending)) + if (!apic_lvtt_period(apic) && (r || atomic_read(&ktimer->pending))) { + if (r) +

Re: [PULL] serial/gpio: exar: Fixes and support for IOT2000

2017-07-03 Thread Linus Walleij
On Mon, Jul 3, 2017 at 9:21 AM, Jan Kiszka wrote: > The following changes since commit 85bb4646f8908eb786dfa19a6bb2ff1423dc8aa4: > > gpio: rcar: Add R8A7743 (RZ/G1M) support (2017-06-29 14:22:38 +0200) > > are available in the git repository at: > > git://git.kiszka.org/linux.git queues/gpio-

[PATCH] cpufreq: intel_pstate: constify attribute_group structures.

2017-07-03 Thread Arvind Yadav
attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by work with const attribute_group. So mark the non-const structs as const. File size before: textdata bss dec hex filename 151972552 40 17789457d drive

Re: [PATCH] drm/bochs: switch fb_ops over to use drm_fb_helper_cfb helpers

2017-07-03 Thread Daniel Vetter
On Sun, Jul 02, 2017 at 10:52:43PM +0100, Mark Cave-Ayland wrote: > The current drm_fb_helper_sys helpers referenced in fb_ops assume that the > video memory is in system RAM. This is not the case for sparc which uses > direct > physical memory accesses for IO memory and causes the bochs_drm modul

[PATCH v2] staging: sm750fb: fixed a assignment typo

2017-07-03 Thread Lynn Lei
fixed a typo issue in get_mxclk_freq(). the original code using PLL_CTRL_M_SHIFT for shifting to set N flag. which is not right, it should be PLL_CTRL_N_SHIFT. both PLL_CTRL_M_SHIFT and PLL_CTRL_N_SHIFT defined in drivers/staging/sm750fb/ddk750_reg.h Signed-off-by: Lynn Lei --- drivers/stagi

RE: RE: [PATCH v4 20/28] ARM: owl: Implement CPU enable-method for S500

2017-07-03 Thread 刘炜
Hi, Andreas Actually the owl_v7_invalidate_l1 is not needed, and the headsmp-owl.S file can be removed if pen release staff is not used. The CPUx can jump to secondary_startup directly by setting OWL_CPUx_ADDR register. Because S900 is aarch64 architecture, it cannot boot CPUx simply by setting

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

2017-07-03 Thread Stephen Rothwell
Hi all, On Fri, 30 Jun 2017 16:32:41 +1000 Stephen Rothwell wrote: > > After merging the akpm tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > In file included from include/linux/bitmap.h:8:0, > from include/linux/cpumask.h:11, > fro

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

2017-07-03 Thread Paolo Bonzini
On 03/07/2017 10:08, Wanpeng Li wrote: >> Yeah, I'm not entirely satisfied with it but it's working: start_sw >> timer will see ktimer->pending and do nothing. >> >> But thinking more about it, maybe the "if (r)" can be omitted >> completely? We need to benchmark it but it can be done. > "if (r)

Re: [PATCH v1 0/6] Add support of OV9655 camera

2017-07-03 Thread Hugues FRUCHET
Hi Nikolaus, Could you enable V4L2 UAPI traces ? Something like: echo 0xFF > /sys/devices/platform/soc/./video4linux/video2/dev_debug you will see then in kernel dmesg the V4L2 calls and their parameters/return values. BR, Hugues. On 07/01/2017 11:00 PM, H. Nikolaus Schaller wrote: > Hi, > >

[GIT PULL] perf changes for v4.13

2017-07-03 Thread Ingo Molnar
Linus, Please pull the latest perf-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-core-for-linus # HEAD: 23acd3e1a0a377cf3730ccb753aa1fdc50378396 Merge tag 'perf-core-for-mingo-4.13-20170630' of git://git.kernel.org/pub/scm/linux/kernel/git/a

[GIT pull] x86/timers updates for 4.13

2017-07-03 Thread Thomas Gleixner
Linus, please pull the latest x86-timers-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-timers-for-linus This update contains: - The final solution for the TSC deadline timer borkage, which is caused by a hardware problem in the TSC_ADJUST/TSC

Re: [PATCH v4 1/3] arm64: kvm: support user space to detect RAS extension feature

2017-07-03 Thread Christoffer Dall
On Mon, Jun 26, 2017 at 08:45:43PM +0800, Dongjiu Geng wrote: > Handle userspace's detection for RAS extension, because sometimes > the userspace needs to know the CPU's capacity Why? Can you please provide some more rationale. > > Signed-off-by: Dongjiu Geng > --- > arch/arm64/kvm/reset.c

Re: [PATCH 05/14] qcom: mtd: nand: allocate bam transaction

2017-07-03 Thread Sricharan R
Hi Abhishek, <..> > +/* Allocates and Initializes the BAM transaction */ > +static struct bam_transaction * > +alloc_bam_transaction(struct qcom_nand_controller *nandc, unsigned int > num_cw) > +{ > + struct bam_transaction *bam_txn; > + > + bam_txn = devm_kzalloc(nandc->dev, sizeof(*bam

Re: [PATCH] arm:lpae: build TTB control register value from scratch in v7_ttb_setup

2017-07-03 Thread Hoeun Ryu
Hello, Russell King. Do you have a plan to include this patch in your tree ? Thank you. On Mon, 2017-06-12 at 10:47 +0900, Hoeun Ryu wrote: >  Reading TTBCR in early boot stage might return the value of the > previous > kernel's configuration, especially in case of kexec. For example, if > norma

Re: [PATCH v4 2/3] arm64: kvm: route synchronous external abort exceptions to el2

2017-07-03 Thread Christoffer Dall
On Tue, Jun 27, 2017 at 08:15:49PM +0800, gengdongjiu wrote: > correct the commit message: > > In the firmware-first RAS solution, OS receives an synchronous > external abort, then trapped to EL3 by SCR_EL3.EA. Firmware inspects > the HCR_EL2.TEA and chooses the target to send APEI's SEA notifi

Re: [PATCH 0/5] Make PDF builds work again

2017-07-03 Thread Daniel Vetter
On Sun, Jun 18, 2017 at 05:46:25PM -0600, Jonathan Corbet wrote: > I've just spent rather more time than I would like figuring out why the PDF > builds fail and what was needed to fix it. The result is the following > patch series. It's a combination of little mistakes and fragility in the > whol

Build regressions/improvements in v4.12

2017-07-03 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v4.12[1] compared to v4.11[2]. Summarized: - build errors: +/-3 - build warnings: +27694/-776 JFYI, when comparing v4.12[1] to v4.12-rc7[3], the summaries are: - build errors: +/-1 - build warnings: +846/-942 Note that

Re: Question regarding MAX_ARG_STRLEN with execve()

2017-07-03 Thread Anshuman Khandual
On 06/30/2017 07:52 PM, Michal Hocko wrote: > On Fri 30-06-17 11:59:37, Anshuman Khandual wrote: >> Hello, >> >> execve() system call should support argument length of >> MAX_ARG_STRLEN (PAGE_SIZE * 32). On 64K page size systems, we >> are not able to pass 32 * PAGE_SIZE arguments into the execve()

Re: [PATCH v2] staging: sm750fb: fixed a assignment typo

2017-07-03 Thread Greg KH
On Mon, Jul 03, 2017 at 04:13:15PM +0800, Lynn Lei wrote: > fixed a typo issue in get_mxclk_freq(). > > the original code using PLL_CTRL_M_SHIFT for shifting to set N flag. > which is not right, it should be PLL_CTRL_N_SHIFT. > > both PLL_CTRL_M_SHIFT and PLL_CTRL_N_SHIFT > defined in drivers/s

[GIT pull] smp/hotplug updates for 4.13

2017-07-03 Thread Thomas Gleixner
Linus, please pull the latest smp-hotplug-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git smp-hotplug-for-linus This update is primarily a cleanup of the CPU hotplug locking code. The hotplug locking mechanism is an open coded RWSEM, which allows recur

Re: [PATCH] drm/bochs: switch fb_ops over to use drm_fb_helper_cfb helpers

2017-07-03 Thread Mark Cave-Ayland
On 03/07/17 09:11, Daniel Vetter wrote: > On Sun, Jul 02, 2017 at 10:52:43PM +0100, Mark Cave-Ayland wrote: >> The current drm_fb_helper_sys helpers referenced in fb_ops assume that the >> video memory is in system RAM. This is not the case for sparc which uses >> direct >> physical memory access

[GIT pull] RAS updates for 4.13

2017-07-03 Thread Thomas Gleixner
Linus, please pull the latest ras-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git ras-core-for-linus The RAS updates for the 4.13 merge window: - Cleanup of the MCE injection facility (Borsilav Petkov) - Rework of the AMD/SMCA handling (Yazen Ghan

Re: [PATCH v4 3/3] arm64: kvm: inject SError with user space specified syndrome

2017-07-03 Thread Christoffer Dall
Hi Dongjiu, On Mon, Jun 26, 2017 at 08:46:39PM +0800, Dongjiu Geng wrote: > when SError happen, kvm notifies user space to record the CPER, > user space specifies and passes the contents of ESR_EL1 on taking > a virtual SError interrupt to KVM, KVM enables virtual system > error or asynchronous ab

[GIT PULL] scheduler changes for v4.13

2017-07-03 Thread Ingo Molnar
Linus, Please pull the latest sched-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched-core-for-linus # HEAD: 72298e5c92c50edd8cb7cfda4519483ce65fa166 sched/cputime: Refactor the cputime_adjust() code The main changes in this cycle were: - Ad

[PATCHv5 2/6] dt-bindings: mfd: da9052: support TSI as ADC

2017-07-03 Thread Sebastian Reichel
DA9052 allows using the touchscreen input pins as general purpose analogue input pin by wiring analogue inputs to X+, X-, Y+ and Y- and providing a reference voltage at TSIREF pin. Signed-off-by: Sebastian Reichel --- Documentation/devicetree/bindings/mfd/da9052-i2c.txt | 8 1 file chan

[PATCHv5 6/6] hwmon: da9052: add support for TSI channel

2017-07-03 Thread Sebastian Reichel
TSI channel has a 4 channel mux connected to it and is normally used for touchscreen support. The hardware may alternatively use it as general purpose adc. Signed-off-by: Sebastian Reichel --- drivers/hwmon/da9052-hwmon.c | 249 ++- 1 file changed, 245 ins

[PATCHv5 1/6] mfd: da9052: fix manual ADC read after timed out read

2017-07-03 Thread Sebastian Reichel
It is possible that under heavy system load, the counter in the completion struct, used for waiting for end of AD conversion, gets incremented twice. To make sure the driver recovers from this situation, the completion struct should be reinitialized. Signed-off-by: Sebastian Reichel --- drivers/

[PATCHv5 3/6] mfd: da9052: add register details for TSI

2017-07-03 Thread Sebastian Reichel
Add register details an channels definition for using the TSI registers in the hwmon driver. Signed-off-by: Sebastian Reichel --- include/linux/mfd/da9052/da9052.h | 6 ++ include/linux/mfd/da9052/reg.h| 11 ++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/incl

[PATCHv5 0/6] DA9052 hardware monitoring improvements

2017-07-03 Thread Sebastian Reichel
Hi, GE Healthcare's PPD [0] uses DA9053's touchscreen pins for hardware monitoring purposes. This adds support for the feature and fixes a bug, which came up during stress-testing of the driver. [0] https://patchwork.kernel.org/patch/9809681/ Changes since PATCHv4: - split mfd changes from main

[PATCHv5 4/6] mfd: da9052: make touchscreen registration optional

2017-07-03 Thread Sebastian Reichel
If the touchscreen pins are used as general purpose analogue input, the touchscreen driver should not be used. The pins will be handled by the existing hwmon driver instead. Signed-off-by: Sebastian Reichel --- drivers/mfd/da9052-core.c | 28 +--- 1 file changed, 25 inser

[PATCHv5 5/6] hwmon: da9052: replace S_IRUGO with 0444

2017-07-03 Thread Sebastian Reichel
Fix checkpatch warnings about S_IRUGO being less readable than providing the permissions octal as '0444'. Signed-off-by: Sebastian Reichel --- drivers/hwmon/da9052-hwmon.c | 36 ++-- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/hwmon/da9

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

2017-07-03 Thread Wanpeng Li
2017-07-03 16:16 GMT+08:00 Paolo Bonzini : > > > On 03/07/2017 10:08, Wanpeng Li wrote: >>> Yeah, I'm not entirely satisfied with it but it's working: start_sw >>> timer will see ktimer->pending and do nothing. >>> >>> But thinking more about it, maybe the "if (r)" can be omitted >>> completely? W

[GIT PULL] nohz changes for v4.13

2017-07-03 Thread Ingo Molnar
Linus, Please pull the latest timers-nohz-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers-nohz-for-linus # HEAD: d4af6d933ccffd24286528f04d5c39e702c8580f nohz: Fix spurious warning when hrtimer and clockevent get out of sync The main changes in

[GIT PULL] x86/apic changes for v4.13

2017-07-03 Thread Ingo Molnar
Linus, Please pull the latest x86-apic-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-apic-for-linus # HEAD: 538ac46c64a6bc61e71982091fc1eef0026f322e x86/apic: Make arch_init_msi/htirq_domain __init Janitorial changes: removal of an unused function

Re: [PATCH] KVM: arm/arm64: Handle hva aging while destroying the vm

2017-07-03 Thread Alexander Graf
On 07/03/2017 10:03 AM, Christoffer Dall wrote: Hi Alex, On Fri, Jun 23, 2017 at 05:21:59PM +0200, Alexander Graf wrote: If we want to age an HVA while the VM is getting destroyed, we have a tiny race window during which we may end up dereferencing an invalid kvm->arch.pgd value. CPU0

[PATCH] parisc: DMA API: return error instead of BUG_ON for dma ops on non dma devs

2017-07-03 Thread Thomas Bogendoerfer
Enabling parport pc driver on a B2600 (and probably other 64bit PARISC systems) produced following BUG: CPU: 0 PID: 1 Comm: swapper Not tainted 4.12.0-rc5-30198-g1132d5e #156 task: 9e05 task.stack: 9e04c000 YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI PSW: 1110000

Re: [PATCH 0/2] Follow-up on "ARM: Fix dma_alloc_coherent() and friends for NOMMU"

2017-07-03 Thread Vladimir Murzin
On 28/06/17 14:52, Christoph Hellwig wrote: > Thanks Vlad, > > these look fine to me. I'll wait another day or two for comments > (especially if other nommu archs actually want this code), and > if nothing shows up will apply them. > Gentle remainder to make sure this follow-up is not lost ;)

[GIT PULL] x86/asm changes for v4.13

2017-07-03 Thread Ingo Molnar
Linus, Please pull the latest x86-asm-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-asm-for-linus # HEAD: 236222d39347e0e486010f10c1493e83dbbdfba8 x86/uaccess: Optimize copy_user_enhanced_fast_string() for short strings A single commit micro-optim

Re: [PATCH V2 1/1] net: cdc_ncm: Reduce memory use when kernel memory low

2017-07-03 Thread David Miller
From: Jim Baxter Date: Wed, 28 Jun 2017 21:35:29 +0100 > The CDC-NCM driver can require large amounts of memory to create > skb's and this can be a problem when the memory becomes fragmented. > > This especially affects embedded systems that have constrained > resources but wish to maximise the

Re: [PATCH 0/2] Follow-up on "ARM: Fix dma_alloc_coherent() and friends for NOMMU"

2017-07-03 Thread Vladimir Murzin
On 03/07/17 09:49, Vladimir Murzin wrote: > On 28/06/17 14:52, Christoph Hellwig wrote: >> Thanks Vlad, >> >> these look fine to me. I'll wait another day or two for comments >> (especially if other nommu archs actually want this code), and >> if nothing shows up will apply them. >> > > Gentle re

[GIT PULL] x86/boot changes for v4.13

2017-07-03 Thread Ingo Molnar
Linus, Please pull the latest x86-boot-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-boot-for-linus # HEAD: fe2d48b805d01e14ddb8144de01de43171eb516f x86/debug: Extend the lower bound of crash kernel low reservations The main changes in this cycle

  1   2   3   4   5   6   7   8   9   10   >