[PATCH 07/37] perf intel-pt: Ensure never to set 'last_ip' when packet 'count' is zero

2017-05-19 Thread Adrian Hunter
Intel PT uses IP compression based on the last IP. For decoding purposes, 'last IP' is not updated when a branch target has been suppressed, which is indicated by IPBytes == 0. IPBytes is stored in the packet 'count', so ensure never to set 'last_ip' when packet 'count' is zero. Signed-off-by:

[PATCH 03/37] perf intel-pt: Add documentation for new config terms

2017-05-19 Thread Adrian Hunter
Add documentation for new config terms. Signed-off-by: Adrian Hunter --- tools/perf/Documentation/intel-pt.txt | 36 +++ 1 file changed, 36 insertions(+) diff --git a/tools/perf/Documentation/intel-pt.txt b/tools/perf/Documentation/intel-pt.txt index

[PATCH 11/37] perf intel-pt: Add decoder support for ptwrite and power event packets

2017-05-19 Thread Adrian Hunter
Add decoder support for PTWRITE, MWAIT, PWRE, PWRX and EXSTOP packets. This patch only affects the decoder, so the tools still do not select or consume the new information. That is added in subsequent patches. Signed-off-by: Adrian Hunter --- .../perf/util/intel-pt-decoder/intel-pt-decoder.c |

[PATCH 09/37] perf intel-pt: Add missing __fallthrough

2017-05-19 Thread Adrian Hunter
perf tools uses __fallthrough. Add missing __fallthrough to a switch statement. Signed-off-by: Adrian Hunter --- tools/perf/util/intel-pt-decoder/intel-pt-decoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/intel-pt-decoder/intel-pt-decoder.c

[PATCH 08/37] perf intel-pt: Use FUP always when scanning for an IP

2017-05-19 Thread Adrian Hunter
The decoder will try to use branch packets to find an IP to start decoding or to recover from errors. Currently the FUP packet is used only in the case of an overflow, however there is no reason for that to be a special case. So just use FUP always when scanning for an IP. Signed-off-by: Adrian

[PATCH 05/37] perf intel-pt: Ensure IP is zero when state is INTEL_PT_STATE_NO_IP

2017-05-19 Thread Adrian Hunter
A value of zero is used to indicate that there is no IP. Ensure the value is zero when the state is INTEL_PT_STATE_NO_IP. Signed-off-by: Adrian Hunter --- tools/perf/util/intel-pt-decoder/intel-pt-decoder.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 02/37] perf intel-pt: Add default config for pass-through branch enable

2017-05-19 Thread Adrian Hunter
Branch tracing is enabled by default, so a fake config bit called 'pt' (pass-through) was added to allow the 'branch enable' bit to have affect. Add default config 'pt,branch' which will allow users to disable branch tracing using 'branch=0' instead of having to specify 'pt,branch=0'.

Re: [PATCH] lockdep: do not count lock class operations without CONFIG_DEBUG_LOCKDEP

2017-05-19 Thread Peter Zijlstra
On Fri, May 19, 2017 at 10:06:01AM +0300, Konstantin Khlebnikov wrote: > Currently this counter shown in /proc/lockdep if CONFIG_DEBUG_LOCKDEP=y > This patch disables it completely if this option is disabled. > > This counter might be useful for debugging lockdep itself, but for normal >

[PATCH 04/37] perf intel-pt: Fix missing stack clear

2017-05-19 Thread Adrian Hunter
The return compression stack must be cleared whenever there is a PSB. Fix one case where that was not happening. Signed-off-by: Adrian Hunter --- tools/perf/util/intel-pt-decoder/intel-pt-decoder.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 01/37] perf intel-pt: Allow decoding with branch tracing disabled

2017-05-19 Thread Adrian Hunter
The kernel now supports the disabling of branch tracing, however the decoder assumes branch tracing is always enabled. Pass through a parameter to indicate whether branch tracing is enabled and use it to avoid cases when the decoder is expecting branch packets. There are 2 such cases. First, FUP

[PATCH 06/37] perf intel-pt: Fix last_ip usage

2017-05-19 Thread Adrian Hunter
Intel PT uses IP compression based on the last IP. For decoding purposes, 'last IP' is considered to be reset to zero whenever there is a synchronization packet (PSB). The decoder wasn't doing that, and was treating the zero value to mean that there was no last IP, whereas compression can be done

Re: [PATCH v2 8/9] crypto: mediatek - Use IPAD/OPAD constant

2017-05-19 Thread Matthias Brugger
On 19/05/17 08:53, Corentin Labbe wrote: This patch simply replace all occurrence of HMAC IPAD/OPAD value by their define. Signed-off-by: Corentin Labbe --- Reviewed-by: Matthias Brugger drivers/crypto/mediatek/mtk-sha.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)

Re: [PATCH] powerpc/sequoia: fix NAND partitions not to overlap

2017-05-19 Thread Pavel Machek
Hi! > > Well... two partitions at same place. If you use one, you will corrupt > > information on the other one. > > > > OTOH this moves partition around (so that they don't overlap) so it is > > probably not stable candidate. > > > > I guess this is not huge issue; people using these boards

RE: [RFC PATCH 6/6] drm/i915/gvt: support QEMU getting the dmabuf

2017-05-19 Thread Chen, Xiaoguang
Hi Gerd, >-Original Message- >From: intel-gvt-dev [mailto:intel-gvt-dev-boun...@lists.freedesktop.org] On >Behalf Of Gerd Hoffmann >Sent: Friday, May 19, 2017 4:57 PM >To: Chen, Xiaoguang >Cc: Tian, Kevin ; linux-kernel@vger.kernel.org; >zhen...@linux.intel.com; Alex Williamson ; Lv,

Re: [PATCH] mm/vmstat: add oom_kill counter

2017-05-19 Thread Konstantin Khlebnikov
On 19.05.2017 12:05, Vlastimil Babka wrote: On 05/19/2017 08:59 AM, Konstantin Khlebnikov wrote: Show count of global oom killer invocations in /proc/vmstat Maybe some more rationale why is that useful? Currently the only way to detect oom kill is grepping kernel logs. This counter makes

Re: [PATCH v3 04/29] x86: assembly, use ENDPROC for functions

2017-05-19 Thread Jiri Slaby
On 05/17/2017, 03:23 PM, Jiri Slaby wrote: >> So the initial CFI state is different between the two types of >> "functions". And there are a lot of other differences. C-type >> functions have to follow frame pointer conventions, for example. So >> your FUNC_START macro (and objtool) would have

Re: [PATCH v2 4/9] crypto: marvell - Use IPAD/OPAD constant

2017-05-19 Thread Boris Brezillon
On Fri, 19 May 2017 08:53:26 +0200 Corentin Labbe wrote: > This patch simply replace all occurrence of HMAC IPAD/OPAD value by their > define. > > Signed-off-by: Corentin Labbe Acked-by: Boris Brezillon > --- > drivers/crypto/marvell/hash.c | 5 +++-- > 1 file changed, 3 insertions(+), 2

[PATCH] dmaengine: ti-dma-crossbar: Correct am335x/am43xx mux value type

2017-05-19 Thread Peter Ujfalusi
The used 0x1f mask is only valid for am335x family of SoC, different family using this type of crossbar might have different number of electable events. In case of am43xx family 0x3f mask should have been used for example. Instead of trying to handle each family's mask, just use u8 type to store

[PATCH] iommu/amd: Ratelimit io-page-faults per device

2017-05-19 Thread Joerg Roedel
From: Joerg Roedel Misbehaving devices can cause an endless chain of io-page-faults, flooding dmesg and making the system-log unusable or even prevent the system from booting. So ratelimit the error messages about io-page-faults in a per-device basis. Signed-off-by: Joerg Roedel ---

RE: [PATCH] nvme/pci: remap BAR0 to cover admin CQ doorbell for large stride

2017-05-19 Thread Xu, Yu A
Thanks for your suggestion, we will try to make it better and resend the patch soon. -Original Message- From: Christoph Hellwig [mailto:h...@lst.de] Sent: Thursday, May 18, 2017 9:44 PM To: Xu, Yu A Cc: linux-n...@lists.infradead.org; linux-kernel@vger.kernel.org; Busch, Keith ;

Re: [PATCH] lockdep: do not count lock class operations without CONFIG_DEBUG_LOCKDEP

2017-05-19 Thread Konstantin Khlebnikov
On 19.05.2017 12:09, Peter Zijlstra wrote: On Fri, May 19, 2017 at 10:06:01AM +0300, Konstantin Khlebnikov wrote: Currently this counter shown in /proc/lockdep if CONFIG_DEBUG_LOCKDEP=y This patch disables it completely if this option is disabled. This counter might be useful for debugging

[PATCH] ACPI: processor: fix LPI when built as module

2017-05-19 Thread Mian Yousaf Kaukab
Low Power Idle(LPI) support added acpi_processor_ffh_lpi_probe() and acpi_processor_ffh_lpi_enter() as __weak functions and arch code is supposed to provide the actual callbacks. This breaks if ACPI_PROCESSOR is configured as a module. Add CONFIG_ARCH_HAS_ACPI_LPI configuration option to fix

Re: [PATCH] perf/x86/intel: Drop kernel samples even though :u is specified

2017-05-19 Thread Peter Zijlstra
On Fri, May 19, 2017 at 06:19:12PM +0800, Jin Yao wrote: > When doing sampling without PEBS > > perf record -e cycles:u ... > > On workloads that do a lot of kernel entry/exits we see kernel > samples, even though :u is specified. This is due to skid existing. > > This is a security issue

[PATCH net-next v2] ibmveth: Support to enable LSO/CSO for Trunk VEA.

2017-05-19 Thread Sivakumar Krishnasamy
Current largesend and checksum offload feature in ibmveth driver, - Source VM sends the TCP packets with ip_summed field set as CHECKSUM_PARTIAL and TCP pseudo header checksum is placed in checksum field - CHECKSUM_PARTIAL flag in SKB will enable ibmveth driver to mark "no checksum" and

[git pull] IOMMU Fixes for Linux v4.12-rc1

2017-05-19 Thread Joerg Roedel
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/joro/iommu.git tags/iommu-fixes-v4.12-rc1 for you to fetch changes up to

Re: [PATCH 2/4] dt-bindings: Document the Raspberry Pi Touchscreen nodes.

2017-05-19 Thread Laurent Pinchart
Hi Archit, On Friday 19 May 2017 14:24:36 Archit Taneja wrote: > On 05/18/2017 08:25 PM, Laurent Pinchart wrote: > > On Thursday 18 May 2017 13:56:19 Archit Taneja wrote: > >> On 05/17/2017 12:16 AM, Eric Anholt wrote: > > > > [snip] > > > >>> In terms of physical connections: > >>>[15-pin

[GIT PULL] Please pull powerpc/linux.git powerpc-4.12-3 tag

2017-05-19 Thread Michael Ellerman
Hi Linus, Please pull some powerpc fixes for 4.12: 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/powerpc/linux.git

[PATCH v3] staging: iio: light: Replace symbolic permissions as per coding style

2017-05-19 Thread surenderpolsani
From: Surender Polsani Fixed the following checkpatch.pl warnings: octal permissions are more preferable than symbolic permissions Replaced DEVICE_ATTR family macros with DEVICE_ATTR_RW family as suggested by Greg K-H. Changed attributes and function names where ever required to satisfy

work queue of scsi fc transports should be serialized

2017-05-19 Thread Dashi DS1 Cao
I ran into a series of crashes within scsi_remove_target in SUSE 12 SP1 (3.12.49-11-default). This will happen very easily if there is a lot of disks with many storage and host FC ports. It occurs when all the ports are timeout at the same time. 50 disks for each rports (the same 50 LUNs), 4

[PATCH 4/7] RAS: Make local function parse_ras_param() static

2017-05-19 Thread Borislav Petkov
From: Wei Yongjun Make parse_ras_param() static as it is used locally only. Signed-off-by: Wei Yongjun Link: http://lkml.kernel.org/r/20170516161034.2973-1-weiyj...@gmail.com Signed-off-by: Borislav Petkov --- drivers/ras/ras.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 5/7] x86/mce: Convert threshold_bank.cpus from atomic_t to refcount_t

2017-05-19 Thread Borislav Petkov
From: Elena Reshetova The refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental refcounter overflows that might lead to use-after-free situations. Suggested-by: Kees Cook Signed-off-by: Elena

[PATCH 6/7] x86/mce/AMD: Redo error logging from APIC LVT interrupt handlers

2017-05-19 Thread Borislav Petkov
From: Yazen Ghannam We have support for the new SMCA MCA_DE{STAT,ADDR} registers in Linux. So we've used these registers in place of MCA_{STATUS,ADDR} on SMCA systems. However, the guidance for current SMCA implementations of is to continue using MCA_{STATUS,ADDR} and to use MCA_DE{STAT,ADDR}

Re: mmc: core: Delete an error message for a failed memory allocation in three functions

2017-05-19 Thread SF Markus Elfring
> It's a nice cleanup. However I found one more occasion in mmc_test.c, > please fix that and re-spin. To which source code place does this feedback refer? Does it mean that another message removal would make sense in the function “__mmc_test_register_dbgfs_file”?

[PATCH 3/7] ACPI/APEI: Handle GSIV and GPIO notification types

2017-05-19 Thread Borislav Petkov
From: Shiju Jose System Controller Interrupts are received by ACPI's error device, which in turn notifies the GHES code. The same is true of APEI's GSIV and GPIO notification types. Add support for GSIV and GPIO sharing the SCI register/unregister/notifier code. Rename the list and notifier to

[PATCH 2/7] acpi, nfit: Fix the memory error check in nfit_handle_mce()

2017-05-19 Thread Borislav Petkov
From: Vishal Verma The check for an MCE being a memory error in the NFIT mce handler was bogus. Use the new mce_is_memory_error() helper to detect the error properly. Reported-by: Tony Luck Cc: Signed-off-by: Vishal Verma Signed-off-by: Borislav Petkov --- drivers/acpi/nfit/mce.c | 2 +- 1

[PATCH 1/7] x86/MCE: Export memory_error()

2017-05-19 Thread Borislav Petkov
From: Borislav Petkov Export the function which checks whether an MCE is a memory error to other users so that we can reuse the logic. Drop the boot_cpu_data use, while at it, as mce.cpuvendor already has the CPU vendor in there. Integrate a piece from a patch from Vishal Verma to export it

[PATCH 7/7] x86/mce/AMD: Carve out SMCA bank configuration

2017-05-19 Thread Borislav Petkov
From: Yazen Ghannam Scalable MCA systems have a new MCA_CONFIG register that we use to configure each bank. We currently use this when we set up thresholding. However, this is logically separate. Group all SMCA-related initialization into a single function. Signed-off-by: Yazen Ghannam Cc:

[PATCH 0/7] RAS pile

2017-05-19 Thread Borislav Petkov
From: Borislav Petkov Hi guys, here's a bunch of assorted RAS fixes. Please queue the first two for urgent as otherwise nfit won't be able to report memory errors properly. Thanks. Borislav Petkov (1): x86/MCE: Export memory_error() Elena Reshetova (1): x86/mce: Convert

Re: [PATCH] perf/x86/intel: Drop kernel samples even though :u is specified

2017-05-19 Thread Will Deacon
On Fri, May 19, 2017 at 11:29:05AM +0200, Peter Zijlstra wrote: > On Fri, May 19, 2017 at 06:19:12PM +0800, Jin Yao wrote: > > +bool skid_kernel_samples(struct perf_event *event, struct pt_regs *regs) > > +{ > > + u64 ip; > > + > > + /* > > +* Without PEBS, we may get kernel samples even

Re: [PATCH v2 1/2] cpufreq: Make iowait boost a policy option

2017-05-19 Thread Peter Zijlstra
On Thu, May 18, 2017 at 11:23:43PM -0700, Joel Fernandes wrote: > Make iowait boost a cpufreq policy option and enable it for intel_pstate > cpufreq driver. Governors like schedutil can use it to determine if > boosting for tasks that wake up with p->in_iowait set is needed. Rather than just flat

[PATCH v2] gpu: drm: gma500: remove dead code

2017-05-19 Thread Gustavo A. R. Silva
Local variable use_gct is assigned to a constant value and it is never updated again. Remove this variable and the dead code it guards. Addresses-Coverity-ID: 145690 Signed-off-by: Gustavo A. R. Silva --- Changes in v2: Remove variables ti and dev_priv, which was causing a compilation warning.

Re: mm, something wring in page_lock_anon_vma_read()?

2017-05-19 Thread Xishi Qiu
On 2017/5/19 16:52, Xishi Qiu wrote: > On 2017/5/18 17:46, Xishi Qiu wrote: > >> Hi, my system triggers this bug, and the vmcore shows the anon_vma seems be >> freed. >> The kernel is RHEL 7.2, and the bug is hard to reproduce, so I don't know if >> it >> exists in mainline, any reply is

[PATCH] KVM: X86: Fix read out-of-bounds vulnerability in kvm pio emulation

2017-05-19 Thread Wanpeng Li
From: Wanpeng Li Huawei folks reported a read out-of-bounds vulnerability in kvm pio emulation. - "inb" instruction to access PIT Mod/Command register (ioport 0x43, write only, a read should be ignored) in guest can get a random number. - "rep insb" instruction to access PIT register port

Re: [PATCH 3/3] EDAC: mv64x60: replace in_le32/out_le32 with ioread32/iowrite32

2017-05-19 Thread Michael Ellerman
Arnd Bergmann writes: > On Thu, May 18, 2017 at 7:36 AM, Michael Ellerman wrote: >> Borislav Petkov writes: >> >>> Top-posting so that the PPC list can see the whole patch below. >>> >>> Since I don't know PPC, let me add PPC ML to CC for a confirmation this >>> change is correct. >>> >>>

RE: [PATCH v2] Added "Preserve Boot Time Support"

2017-05-19 Thread Mirea, Bogdan-Stefan
On Wednesday, May 17, 2017 8:52 PM Sascha Hauer wrote: > On Wed, May 17, 2017 at 02:42:24PM +, Mirea, Bogdan-Stefan wrote: > > Hello Sascha, > > > > On Wednesday, May 17, 2017 2:30 PM Sascha Hauer wrote: > > > As John already said, there's the read_boot_clock64() interface which > > > should

[PATCH v2] drm: mediatek: change the variable type of rdma threshold

2017-05-19 Thread Bibby Hsieh
For some greater resolution, the rdma threshold variable will overflow. Signed-off-by: Bibby Hsieh --- drivers/gpu/drm/mediatek/mtk_disp_rdma.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_disp_rdma.c

Re: [PATCH 4/4] Hyper-V vPCI: use vPCI protocol version 1.2

2017-05-19 Thread Vitaly Kuznetsov
Jork Loeser writes: > From: Jork Loeser > > Update the Hyper-V vPCI driver to use the Server-2016 version > of the vPCI protocol, fixing MSI creation and retargeting issues. > > Signed-off-by: Jork Loeser > --- > arch/x86/include/uapi/asm/hyperv.h |6 + > drivers/pci/host/pci-hyperv.c

Re: mmc: core: Delete an error message for a failed memory allocation in three functions

2017-05-19 Thread Ulf Hansson
On 19 May 2017 at 11:39, SF Markus Elfring wrote: >> It's a nice cleanup. However I found one more occasion in mmc_test.c, >> please fix that and re-spin. > > To which source code place does this feedback refer? > > Does it mean that another message removal would make sense in the > function

Re: [PATCH 4/4] Hyper-V vPCI: use vPCI protocol version 1.2

2017-05-19 Thread Vitaly Kuznetsov
Jork Loeser writes: >> -Original Message- >> From: Stephen Hemminger [mailto:step...@networkplumber.org] >> Sent: Thursday, May 18, 2017 16:59 >> >> > From: Jork Loeser >> > >> > Update the Hyper-V vPCI driver to use the Server-2016 version of the >> > vPCI protocol, fixing MSI

Re: ipsec doesn't route TCP with 4.11 kernel

2017-05-19 Thread Steffen Klassert
On Tue, May 16, 2017 at 03:05:40PM -0400, Don Bowman wrote: > On 3 May 2017 at 04:14, Steffen Klassert wrote: > > On Sat, Apr 29, 2017 at 08:39:34PM -0400, Don Bowman wrote: > >> On 28 April 2017 at 03:13, Steffen Klassert > >> wrote: > >> > On Thu, Apr 27, 2017 at 06:13:38PM -0400, Don Bowman

Re: [PATCH] powerpc/sequoia: fix NAND partitions not to overlap

2017-05-19 Thread Michael Ellerman
Michael Ellerman writes: > Pavel Machek writes: > >> On Wed 2017-05-17 14:37:17, Andrew Morton wrote: >>> On Wed, 17 May 2017 14:06:13 +0200 Pavel Machek wrote: >>> >>> > On Sun 2017-04-02 12:05:36, Pavel Machek wrote: >>> > > Fix overlapping NAND partitions. >>> > > >>> > > Signed-off-by:

Re: [PATCH 10/24] thunderbolt: Read vendor and device name from DROM

2017-05-19 Thread Lukas Wunner
Hi Mika, nice work, by now I've picked up my jaw from the floor and can offer a few comments... On Thu, May 18, 2017 at 05:39:00PM +0300, Mika Westerberg wrote: > The device DROM contains name of the vendor and device among other > things. What exactly are these other things? Apple uses 0x30

Re: [REGRESSION] Failed network caused by: xhci: switch to pci_alloc_irq_vectors

2017-05-19 Thread Steven Rostedt
On Fri, 19 May 2017 07:42:23 +0200 Greg Kroah-Hartman wrote: > On Thu, May 18, 2017 at 11:42:34PM -0400, Steven Rostedt wrote: > > > > One of my the configs I use to test ftrace with (configs that have > > caused failures in the past), has lots of irq issues and fails to > > initialize the

Re: [REGRESSION] Failed network caused by: xhci: switch to pci_alloc_irq_vectors

2017-05-19 Thread Steven Rostedt
On Fri, 19 May 2017 10:20:03 +0200 Christoph Hellwig wrote: > On Thu, May 18, 2017 at 11:42:34PM -0400, Steven Rostedt wrote: > > > > One of my the configs I use to test ftrace with (configs that have > > caused failures in the past), has lots of irq issues and fails to > > initialize the

Re: [PATCH 08/29] rfkill.txt: standardize document format

2017-05-19 Thread Johannes Berg
On Thu, 2017-05-18 at 22:25 -0300, Mauro Carvalho Chehab wrote: > > +.. CONTENTS >   > +  1. Introduction > +  2. Implementation details > +  3. Kernel API > +  4. Userspace support Why not let this be auto-generated? .. contents:: :depth: 1 should work, no? johannes

[PATCH v3] Added "Preserve Boot Time Support"

2017-05-19 Thread Bogdan Mirea
This option enables Boot Time Preservation between Bootloader and Linux Kernel. It is based on the idea that the Bootloader (or any other early firmware) will start the HW Timer and Linux Kernel will count the time starting with the cycles elapsed since timer start. The sched_clock part is

[PATCH 07/41] mmc: host: omap_hsmmc: Allow io voltage switch even for fixed vdd

2017-05-19 Thread Kishon Vijay Abraham I
Now that vmmc regulator is made optional, do not bail out if vmmc regulator is not found. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Sekhar Nori --- drivers/mmc/host/omap_hsmmc.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c

Re: [PATCH v2 1/2] cpufreq: Make iowait boost a policy option

2017-05-19 Thread Peter Zijlstra
On Fri, May 19, 2017 at 11:42:45AM +0200, Peter Zijlstra wrote: > On Thu, May 18, 2017 at 11:23:43PM -0700, Joel Fernandes wrote: > > Make iowait boost a cpufreq policy option and enable it for intel_pstate > > cpufreq driver. Governors like schedutil can use it to determine if > > boosting for

Re: [PATCH 4/4] arch/powerpc/44x/fsp2: wdt tcr update instead of whole rewrite

2017-05-19 Thread Michael Ellerman
Hi Ivan, Ivan Mikhaylov writes: > Prevent a kernel panic caused by unintentionally clearing TCR > watchdog bits. At this point in the kernel boot, the watchdog has > already been enabled by u-boot. The original code's attempt to > write to the TCR register results in an inadvertent clearing of

Re: [PATCH 4.4-only] openvswitch: clear sender cpu before forwarding packets

2017-05-19 Thread Anoob Soman
On 18/05/17 09:11, Greg KH wrote: So backporting that one patch solves the issue here? Can you please verify it, and let me know before I apply it? thanks, greg k-h yes, I can do that.

Re: [PATCH 10/24] thunderbolt: Read vendor and device name from DROM

2017-05-19 Thread Mika Westerberg
On Fri, May 19, 2017 at 12:07:10PM +0200, Lukas Wunner wrote: > Hi Mika, > > nice work, by now I've picked up my jaw from the floor and can > offer a few comments... Thanks! :) > On Thu, May 18, 2017 at 05:39:00PM +0300, Mika Westerberg wrote: > > The device DROM contains name of the vendor and

Re: [PATCH v6 05/15] lockdep: Implement crossrelease feature

2017-05-19 Thread Peter Zijlstra
On Fri, May 19, 2017 at 05:07:08PM +0900, Byungchul Park wrote: > On Tue, Mar 14, 2017 at 05:18:52PM +0900, Byungchul Park wrote: > > Lockdep is a runtime locking correctness validator that detects and > > reports a deadlock or its possibility by checking dependencies between > > locks. It's

Re: [PATCH 4/4] arch/powerpc/44x/fsp2: wdt tcr update instead of whole rewrite

2017-05-19 Thread Benjamin Herrenschmidt
On Mon, 2017-05-15 at 16:07 +0300, Ivan Mikhaylov wrote: > +#ifdef CONFIG_FSP2 > +   /* > +    * Prevent a kernel panic caused by unintentionally clearing TCR > +    * watchdog bits.  At this point in the kernel boot, the watchdog has > +    * already been enabled by u-boot.  The

Re: [PATCH v2 2/3] dt-bindings: add bindings for rk3128 clock controller

2017-05-19 Thread Heiko Stuebner
Hi Elaine, Am Donnerstag, 18. Mai 2017, 10:16:58 CEST schrieb Elaine Zhang: > Add devicetree bindings for Rockchip cru which found on > Rockchip SoCs. > > Signed-off-by: Elaine Zhang > --- > .../bindings/clock/rockchip,rk3128-cru.txt | 56 > ++ > 1 file changed, 56

Re: [PATCH] KVM: X86: Fix read out-of-bounds vulnerability in kvm pio emulation

2017-05-19 Thread Paolo Bonzini
On 19/05/2017 11:46, Wanpeng Li wrote: > From: Wanpeng Li > > Huawei folks reported a read out-of-bounds vulnerability in kvm pio emulation. > > - "inb" instruction to access PIT Mod/Command register (ioport 0x43, write > only, > a read should be ignored) in guest can get a random number.

Re: [PATCH] usb: typec: Defer checking of valid power role swap to low level drivers

2017-05-19 Thread Heikki Krogerus
On Thu, May 18, 2017 at 02:08:53PM -0700, Badhri Jagan Sridharan wrote: > On Thu, May 18, 2017 at 9:51 AM, Guenter Roeck wrote: > > On Thu, May 18, 2017 at 11:13:51AM +0200, Oliver Neukum wrote: > >> Am Mittwoch, den 17.05.2017, 02:36 -0700 schrieb Guenter Roeck: > >> > On 05/17/2017 12:34 AM,

[PATCH v2] clocksource : timer-atmel-pit:- Handle return error in at91sam926x_pit_dt_init

2017-05-19 Thread Arvind Yadav
at91sam926x_pit_dt_init can fail here. We must have released memory and clock. Signed-off-by: Arvind Yadav --- drivers/clocksource/timer-atmel-pit.c | 31 --- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/drivers/clocksource/timer-atmel-pit.c

[RFC v3]mm: ro protection for data allocated dynamically

2017-05-19 Thread Igor Stoppa
Not all the data allocated dynamically needs to be altered frequently. In some cases, it might be written just once, at initialization. This RFC has the goal of improving memory integrity, by explicitly making said data write-protected. A reference implementation is provided. During the

[PATCH 1/1] Sealable memory support

2017-05-19 Thread Igor Stoppa
Dynamically allocated variables can be made read only, after they have been initialized, provided that they reside in memory pages devoid of any RW data. The implementation supplies means to create independent pools of memory, which can be individually created, sealed/unsealed and destroyed. A

Re: [PATCH] usb: typec: Defer checking of valid power role swap to low level drivers

2017-05-19 Thread Oliver Neukum
Am Donnerstag, den 18.05.2017, 14:08 -0700 schrieb Badhri Jagan Sridharan: > > Badhri, would that work for us ? > > Yes Geunter that should work as well. Requesting non-pd role swap either > through > current_power_role or current_data_role is virtually the same. Yes and that is the issue. If

Re: [PATCH 0/5] mmc: cavium: bug fixes for 4.12

2017-05-19 Thread Jan Glauber
On Fri, May 19, 2017 at 10:30:22AM +0200, Ulf Hansson wrote: > On 16 May 2017 at 11:36, Jan Glauber wrote: > > Hi Ulf, > > > > here are some bug fixes for the new mmc driver. The only > > non-trivial fix should be the platform thing in patch #4 and #5. > > > > Tested on OcteonTx and on various

Re: [PATCH] mm: per-cgroup memory reclaim stats

2017-05-19 Thread Michal Hocko
On Thu 11-05-17 20:16:23, Roman Gushchin wrote: > Track the following reclaim counters for every memory cgroup: > PGREFILL, PGSCAN, PGSTEAL, PGACTIVATE, PGDEACTIVATE, PGLAZYFREE and > PGLAZYFREED. > > These values are exposed using the memory.stats interface of cgroup v2. > > The meaning of each

RE: [PATCH 2/9] timers: provide a "modern" variant of timers

2017-05-19 Thread David Laight
From: Christoph Hellwig > Sent: 16 May 2017 12:48 > > The new callback gets a pointer to the timer_list itself, which can > then be used to get the containing structure using container_of > instead of casting from and to unsigned long all the time. What about sensible drivers that put some other

Re: [RFC PATCH 6/6] drm/i915/gvt: support QEMU getting the dmabuf

2017-05-19 Thread Gerd Hoffmann
Hi, > Or more simply just pass the plane id, because even the plane description did > not match the current one we will eventually create a dmabuf based on current > plane. That is the current behavior. Works as long as we return the plane description too, so userspace knows what it

[PATCH v1] PM / devfreq: exynos-nocp : Handle return value of clk_prepare_enable

2017-05-19 Thread Arvind Yadav
clk_prepare_enable() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/devfreq/event/exynos-nocp.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/devfreq/event/exynos-nocp.c b/drivers/devfreq/event/exynos-nocp.c index

Re: [PATCH] kbuild: simplify silent build (-s) detection

2017-05-19 Thread Michal Marek
On 2017-05-19 06:28, Masahiro Yamada wrote: > This allows to detect -s option without checking GNU Make version. > > As commit e36aaea28972 ("kbuild: Fix silent builds with make-4") > pointed out, GNU Make 4.x changed the way/order it presents the > command line options into MAKEFLAGS. > > In

Re: RFC v2: post-init-read-only protection for data allocated dynamically

2017-05-19 Thread Igor Stoppa
Hello, On 10/05/17 18:45, Dave Hansen wrote: > On 05/10/2017 08:19 AM, Igor Stoppa wrote: >> So I'd like to play a little what-if scenario: >> what if I was to support exclusively virtual memory and convert to it >> everything that might need sealing? > > Because of the issues related to

RE: [PATCH v6 05/15] lockdep: Implement crossrelease feature

2017-05-19 Thread Byungchul Park
> -Original Message- > From: Peter Zijlstra [mailto:pet...@infradead.org] > Sent: Friday, May 19, 2017 7:30 PM > To: Byungchul Park > Cc: mi...@kernel.org; t...@linutronix.de; wal...@google.com; > boqun.f...@gmail.com; kir...@shutemov.name; linux-kernel@vger.kernel.org; >

[PATCH v1] PM / devfreq: exynos-ppmu : Handle return value of clk_prepare_enable

2017-05-19 Thread Arvind Yadav
clk_prepare_enable() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/devfreq/event/exynos-ppmu.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/devfreq/event/exynos-ppmu.c b/drivers/devfreq/event/exynos-ppmu.c index

Re: [PATCH 03/23] uuid: remove uuid_be defintions from the uapi header

2017-05-19 Thread David Howells
Christoph Hellwig wrote: > It's not a userspace ABI, so by defintion it does not break an > existing user program. That's an invalid assumption. It is a de facto userspace ABI as it has been exposed in /usr/include/linux/uuid.h for some time. > If someone was using it they should be using

Re: [PATCH resend] smp: avoid sending needless IPI in smp_call_function_many()

2017-05-19 Thread Peter Zijlstra
On Fri, May 19, 2017 at 03:53:31PM +0800, Aaron Lu wrote: > Inter-Processor-Interrupt(IPI) is needed when a page is unmapped and the > process' mm_cpumask() shows the process has ever run on other CPUs. page > migration, page reclaim all need IPIs. The number of IPI needed to send > to different

[PATCH][drm-next] drm/pl111: make structure pl111_display_funcs static

2017-05-19 Thread Colin King
From: Colin Ian King structure pl111_display_funcs can be made static as it does not need to be in global scope. Fixes sparse warning: "warning: symbol 'pl111_display_funcs' was not declared. Should it be static?" Fixes: bed41005e6174d ("drm/pl111: Initial drm/kms driver for pl111")

[PATCH 1/2] Document: DT: Add bindings for Mediatek MT2712 SoC Platform

2017-05-19 Thread YT Shen
This adds dt-binding documentation for Mediatek MT2712. Only include very basic items: cpu, gic and uart. Signed-off-by: YT Shen --- Documentation/devicetree/bindings/arm/mediatek.txt| 4 .../devicetree/bindings/interrupt-controller/mediatek,sysirq.txt | 1 +

Re: [PATCH resend] smp: avoid sending needless IPI in smp_call_function_many()

2017-05-19 Thread Peter Zijlstra
On Fri, May 19, 2017 at 03:53:31PM +0800, Aaron Lu wrote: > @@ -434,6 +442,7 @@ void smp_call_function_many(const struct cpumask *mask, > if (unlikely(!cpumask_weight(cfd->cpumask))) > return; Another thing that occurred to me while staring at that function, is that we could

[PATCH 0/2] Add basic support for Mediatek MT2712 SoC

2017-05-19 Thread YT Shen
MT2712 is a SoC based on 64bit ARMv8 architecture. MT2712 share many HW IP with MT8173. This patchset was tested on MT2712 evaluation board, and boot to shell ok. This series contains document bindings, device tree including interrupt, uart. YT Shen (2): Document: DT: Add bindings for

[PATCH] drm/pl111: make structure mode_config_funcs static

2017-05-19 Thread Colin King
From: Colin Ian King structure mode_config_funcs can be made static as it does not need to be in global scope. Fixes sparse warning: warning: symbol 'mode_config_funcs' was not declared. Should it be static? Fixes: bed41005e6174d ("drm/pl111: Initial drm/kms driver for pl111") Signed-off-by:

[PATCH 2/2] arm64: dts: Add Mediatek SoC MT2712 and evaluation board dts and Makefile

2017-05-19 Thread YT Shen
This adds basic chip support for Mediatek 2712 Signed-off-by: YT Shen --- arch/arm64/boot/dts/mediatek/Makefile | 1 + arch/arm64/boot/dts/mediatek/mt2712-evb.dts | 44 +++ arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 172 3 files changed, 217

Re: [PATCH 08/29] rfkill.txt: standardize document format

2017-05-19 Thread Mauro Carvalho Chehab
Em Fri, 19 May 2017 12:15:01 +0200 Johannes Berg escreveu: > On Thu, 2017-05-18 at 22:25 -0300, Mauro Carvalho Chehab wrote: > > > > +.. CONTENTS > >   > > +  1. Introduction > > +  2. Implementation details > > +  3. Kernel API > > +  4. Userspace support > > Why not let this be

RE: [RFC V1 1/1] net: cdc_ncm: Reduce memory use when kernel memory low

2017-05-19 Thread David Laight
From: linux-usb-ow...@vger.kernel.org [mailto:linux-usb-ow...@vger.kernel.org] On Behalf Of Jim Baxter > Sent: 16 May 2017 18:41 > > 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

Re: [PATCH 08/29] rfkill.txt: standardize document format

2017-05-19 Thread Johannes Berg
On Fri, 2017-05-19 at 08:11 -0300, Mauro Carvalho Chehab wrote: > > Yes, it should work. Actually, you would need to use :depth: 2 to > produce this output: > > > Contents > > . rfkill - RF kill switch support > . Introduction > . Implementation

Re: [PATCH] powerpc/sequoia: fix NAND partitions not to overlap

2017-05-19 Thread Pavel Machek
Hi! > >>> > > Signed-off-by: Pavel Machek > >>> > > >>> > Ping? Two partitions at same place are bad news... > >>> > >>> Please expand on "bad news"? What are the runtime effects of this > >>> change? Decisions about which kernel(s) to patch depend on this info. > >> > >> Well... two

Re: [PATCH v2 1/4] arm: dts: rk322x: add some assigned-clocks

2017-05-19 Thread Heiko Stuebner
Am Mittwoch, 17. Mai 2017, 18:16:14 CEST schrieb Frank Wang: > From: Elaine Zhang > > Add CPLL, GPLL and some other assigned-clocks for rk322x SoC. > > Signed-off-by: Elaine Zhang > Signed-off-by: Frank Wang applied for 4.13 after adapting subject and commit message a bit Thanks Heiko

Re: [PATCH 3/4] Hyper-V vPCI: Add vPCI version protocol negotiation

2017-05-19 Thread Dan Carpenter
On Thu, May 18, 2017 at 12:14:29PM -0700, Jork Loeser wrote: > static int hv_pci_protocol_negotiation(struct hv_device *hdev) > { > + size_t i; Could you just use "int i". I know some static checkers complain but those tools are dumb. I just fixed a couple bugs two days ago where people

[PATCH 0/2] fix premature OOM killer

2017-05-19 Thread Michal Hocko
Hi, this is a follow up for [1]. The first patch is what Tetsuo suggested [2], I've just added a changelog for it. This one should be merged as soon as possible. The second patch is still an RFC. I _believe_ that it is the right thing to do but I haven't checked all the PF paths which return

[PATCH 1/2] mm, oom: make sure that the oom victim uses memory reserves

2017-05-19 Thread Michal Hocko
From: Michal Hocko Roman Gushchin has noticed that we kill two tasks when the memory hog killed from page fault path: [ 25.721494] allocate invoked oom-killer: gfp_mask=0x14280ca(GFP_HIGHUSER_MOVABLE|__GFP_ZERO), nodemask=(null), order=0, oom_score_adj=0 [ 25.725658] allocate cpuset=/

[RFC PATCH 2/2] mm, oom: do not trigger out_of_memory from the #PF

2017-05-19 Thread Michal Hocko
From: Michal Hocko Any allocation failure during the #PF path will return with VM_FAULT_OOM which in turn results in pagefault_out_of_memory. This can happen for 2 different reasons. a) Memcg is out of memory and we rely on mem_cgroup_oom_synchronize to perform the memcg OOM handling or b)

Re: [PATCH v2 2/4] arm: dts: rk322x: add operating-points-v2 property for cpu

2017-05-19 Thread Heiko Stuebner
Am Mittwoch, 17. Mai 2017, 18:16:15 CEST schrieb Frank Wang: > From: Finley Xiao > > This patch adds a new opp table for cpu on rk322x SoC. > > Signed-off-by: Finley Xiao > Signed-off-by: Frank Wang > Acked-by: Viresh Kumar applied for 4.13 after adapting the subject a bit Thanks Heiko

Re: [PATCH v5 32/32] x86/mm: Add support to make use of Secure Memory Encryption

2017-05-19 Thread Borislav Petkov
On Tue, Apr 18, 2017 at 04:22:23PM -0500, Tom Lendacky wrote: > Add support to check if SME has been enabled and if memory encryption > should be activated (checking of command line option based on the > configuration of the default state). If memory encryption is to be > activated, then the

Re: [RFC 1/6] mm, page_alloc: fix more premature OOM due to race with cpuset update

2017-05-19 Thread Vlastimil Babka
On 05/18/2017 07:07 PM, Christoph Lameter wrote: > On Thu, 18 May 2017, Vlastimil Babka wrote: > >>> The race is where? If you expand the node set during the move of the >>> application then you are safe in terms of the legacy apps that did not >>> include static bindings. >> >> No, that

Re: [PATCH 4/4] Hyper-V vPCI: use vPCI protocol version 1.2

2017-05-19 Thread Dan Carpenter
Minor nits only. On Thu, May 18, 2017 at 12:14:30PM -0700, Jork Loeser wrote: > From: Jork Loeser > > Update the Hyper-V vPCI driver to use the Server-2016 version > of the vPCI protocol, fixing MSI creation and retargeting issues. > > Signed-off-by: Jork Loeser > --- >

<    7   8   9   10   11   12   13   14   15   16   >