[PATCH 0/2] staging: lustre: lov: fix sparse errors for fiemap

2017-07-26 Thread James Simmons
The following error was reported by Dan Carpenter lov_object_fiemap() has following static checker warning: drivers/staging/lustre/lustre/lov/lov_object.c:1241 lov_object_fiemap() warn: signed overflow undefined. 'fm_start + fm_length < fm_start' This patch set resolves those issues. Bobi Jam

[PATCH 2/2] staging: lustre: lov: refactor lov_object_fiemap()

2017-07-26 Thread James Simmons
From: Bobi Jam Add fiemap_for_stripe() to get file map extent from each stripe device. Signed-off-by: Bobi Jam Reported-by: Dan Carpenter Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-8773 Reviewed-on: https://review.whamcloud.com/23461 Reviewed-by: James Simmons Reviewed-by: Andreas

Re: [PATCH 1/3] backlight: always select BACKLIGHT_LCD_SUPPORT for BACKLIGHT_CLASS_DEVICE

2017-07-26 Thread Andy Shevchenko
On Wed, Jul 26, 2017 at 4:53 PM, Arnd Bergmann wrote: > randconfig builds occasionally produce this Kconfig warning: > > warning: (DRM_RADEON && DRM_AMDGPU && DRM_NOUVEAU && DRM_I915 && DRM_GMA500 > && DRM_SHMOBILE && DRM_TILCDC && DRM_FSL_DCU && DRM_TINYDRM && > DRM_PARADE_PS8622 &&

[PATCH 1/2] staging: lustre: lov: use u64 instead of loff_t in lov_object_fiemap()

2017-07-26 Thread James Simmons
From: Bobi Jam Change loff_t to u64 in lov_object_fiemap() since loff_t is a signed value type. Otherwise there could be an overflow in drivers/staging/lustre/lustre/lov/lov_object.c:1241 lov_object_fiemap() warn: signed overflow undefined. 'fm_start + fm_length < fm_start' Signed-off-by: Bobi

Re: Support standalone metrics and metric groups for perf

2017-07-26 Thread Andi Kleen
> [jolsa@krava perf]$ git remote -v | grep andi > andigit://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-misc.git > (fetch) > andigit://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-misc.git (push) > [jolsa@krava perf]$ git remote update andi > Fetching andi > [jolsa@krava perf]$

Re: [PATCH tip/core/rcu 4/5] sys_membarrier: Add expedited option

2017-07-26 Thread Paul E. McKenney
On Wed, Jul 26, 2017 at 09:41:28AM +0200, Peter Zijlstra wrote: > On Tue, Jul 25, 2017 at 04:59:36PM -0700, Paul E. McKenney wrote: > > On Tue, Jul 25, 2017 at 11:55:10PM +0200, Peter Zijlstra wrote: > > > > People always do crazy stuff, but what surprised me is that such s patch > > > got merged

Re: [PATCH tip/core/rcu 4/5] sys_membarrier: Add expedited option

2017-07-26 Thread Paul E. McKenney
On Wed, Jul 26, 2017 at 09:46:56AM +0200, Peter Zijlstra wrote: > On Tue, Jul 25, 2017 at 10:50:13PM +, Mathieu Desnoyers wrote: > > This would implement a MEMBARRIER_CMD_PRIVATE_EXPEDITED (or such) flag > > for expedited process-local effect. This differs from the "SHARED" flag, > > since the

Re: [PATCH v2 01/11] ASoC: samsung: s3c2412: Handle return value of clk_prepare_enable.

2017-07-26 Thread Krzysztof Kozlowski
On Wed, Jul 26, 2017 at 11:15:25AM +0530, Arvind Yadav wrote: > clk_prepare_enable() can fail here and we must check its return value. > > Signed-off-by: Arvind Yadav > --- > Chnage in v2 : > Error handling for things done in s3c_i2sv2_probe(). > > sound/soc/samsung/s3c2412-i2s.c

Re: [PATCH v8 1/3] perf: cavium: Support memory controller PMU counters

2017-07-26 Thread Jan Glauber
On Wed, Jul 26, 2017 at 05:35:02PM +0200, Borislav Petkov wrote: > On Wed, Jul 26, 2017 at 05:13:14PM +0200, Jan Glauber wrote: > > I'm also looking for CPU implementor (MIDR), I could check for the model > > too but I still need to detect devices based on PCI IDs as the model > > check is not

Re: Applied "ASoC: samsung: s3c2412: Handle return value of clk_prepare_enable." to the asoc tree

2017-07-26 Thread Krzysztof Kozlowski
On Wed, Jul 26, 2017 at 03:17:12PM +0100, Mark Brown wrote: > The patch > >ASoC: samsung: s3c2412: Handle return value of clk_prepare_enable. > > has been applied to the asoc tree at > >git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git > > All being well this means that

Re: [RFC PATCH v2] ARM: dts: stm32: change pinctrl bindings definition

2017-07-26 Thread Benjamin Gaignard
2017-07-26 13:03 GMT+02:00 Patrice CHOTARD : > Hi Alex > > On 07/21/2017 02:34 PM, Alexandre Torgue wrote: >> Initially each pin was declared in "include/dt-bindings/stm32f429-pinfunc.h" >> and each definition contained SOC names (ex: STM32F429_PA9_FUNC_USART1_TX). >> Since this approach was

Re: [PATCH v8 1/3] perf: cavium: Support memory controller PMU counters

2017-07-26 Thread Jan Glauber
On Wed, Jul 26, 2017 at 04:17:11PM +0100, Suzuki K Poulose wrote: > How about adding a soc specific (wrapper) driver for the memory controller, > which > could use the PCI id and trigger EDAC and PMU drivers (based on what is > selected by configs) ? Sounds good to me. Is there a driver that

Re: [PATCH tip/core/rcu 4/5] sys_membarrier: Add expedited option

2017-07-26 Thread Paul E. McKenney
On Wed, Jul 26, 2017 at 10:36:46AM +0100, Will Deacon wrote: > On Tue, Jul 25, 2017 at 02:19:26PM -0700, Paul E. McKenney wrote: > > Some architectures are less precise than others in tracking which > > CPUs are running a given process due to ASIDs, though this is > > thought to be a non-problem:

Re: [PATCH v1] xen: get rid of paravirt op adjust_exception_frame

2017-07-26 Thread Juergen Gross
On 26/07/17 15:48, Andy Lutomirski wrote: > On Mon, Jul 24, 2017 at 7:28 AM, Juergen Gross wrote: >> When running as Xen pv-guest the exception frame on the stack contains >> %r11 and %rcx additional to the other data pushed by the processor. >> >> Instead of having a paravirt op being called for

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

2017-07-26 Thread Arnd Bergmann
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: error: passing argument 3 of 'dmam_alloc_coherent' from

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

2017-07-26 Thread Arnd Bergmann
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' a5xx_gpu.c:(.text.a5xx_hw_init+0x93c): undefined reference to

Re: [PATCH v8 1/3] perf: cavium: Support memory controller PMU counters

2017-07-26 Thread Borislav Petkov
On Wed, Jul 26, 2017 at 05:45:15PM +0200, Jan Glauber wrote: > The PMU/EDAC devices are all PCI devices do I need the 'struct pci_dev *'. > I'm not aware of other ways to access these devices. Please enlighten > me if I'm missing something. Me enlighten you on Cavium hardware?! You're funny. So

Re: [RFC Part1 PATCH v3 05/17] x86, realmode: Don't decrypt trampoline area under SEV

2017-07-26 Thread Borislav Petkov
Subject: x86/realmode: ... On Mon, Jul 24, 2017 at 02:07:45PM -0500, Brijesh Singh wrote: > From: Tom Lendacky > > When SEV is active the trampoline area will need to be in encrypted > memory so only mark the area decrypted if SME is active. > > Signed-off-by: Tom Lendacky > Signed-off-by:

Re: [PATCH 3/4] ndctl: switch to tools/include/linux/{kernel, list, bitmap}.h

2017-07-26 Thread Dan Williams
On Wed, Jul 26, 2017 at 4:29 AM, Ingo Molnar wrote: > > * Dan Williams wrote: > >> On Tue, Jul 25, 2017 at 4:55 PM, Arnaldo Carvalho de Melo >> wrote: >> > Em Tue, Jul 25, 2017 at 03:36:26PM -0700, Dan Williams escreveu: >> >> Replace the ccan implementation of list primitives, bitmap helpers

Re: Applied "ASoC: samsung: s3c2412: Handle return value of clk_prepare_enable." to the asoc tree

2017-07-26 Thread Mark Brown
On Wed, Jul 26, 2017 at 05:46:42PM +0200, Krzysztof Kozlowski wrote: > Mark, this is the patch still discussed. It does not handle the error > correctly. I think it should be dropped. Ugh, is that the same patch? Sorry, got lost in the big series. Now I've applied it I'd rather do incremental

Re: [PATCH net] Revert "vhost: cache used event for better performance"

2017-07-26 Thread Michael S. Tsirkin
On Wed, Jul 26, 2017 at 09:37:15PM +0800, Jason Wang wrote: > > > On 2017年07月26日 21:18, Jason Wang wrote: > > > > > > On 2017年07月26日 20:57, Michael S. Tsirkin wrote: > > > On Wed, Jul 26, 2017 at 04:03:17PM +0800, Jason Wang wrote: > > > > This reverts commit

[PULL] vhost: fixes, cleanups

2017-07-26 Thread Michael S. Tsirkin
All's quiet here this cycle, just some minor fixes. A block printk message bugfix is still pending for the next pull, didn't want to delay this one as people are getting impatient. The following changes since commit 520eccdfe187591a51ea9ab4c1a024ae4d0f68d9: Linux 4.13-rc2 (2017-07-23 16:15:17

Re: Applied "ASoC: samsung: s3c2412: Handle return value of clk_prepare_enable." to the asoc tree

2017-07-26 Thread Krzysztof Kozlowski
On Wed, Jul 26, 2017 at 05:07:00PM +0100, Mark Brown wrote: > On Wed, Jul 26, 2017 at 05:46:42PM +0200, Krzysztof Kozlowski wrote: > > > Mark, this is the patch still discussed. It does not handle the error > > correctly. I think it should be dropped. > > Ugh, is that the same patch? Sorry, got

Re: [PATCH v8 1/3] perf: cavium: Support memory controller PMU counters

2017-07-26 Thread Greg KH
On Wed, Jul 26, 2017 at 05:55:48PM +0200, Borislav Petkov wrote: > On Wed, Jul 26, 2017 at 05:45:15PM +0200, Jan Glauber wrote: > > The PMU/EDAC devices are all PCI devices do I need the 'struct pci_dev *'. > > I'm not aware of other ways to access these devices. Please enlighten > > me if I'm

Re: [PATCH 4.12 000/196] 4.12.4-stable review

2017-07-26 Thread Greg Kroah-Hartman
On Wed, Jul 26, 2017 at 08:25:28AM -0600, Shuah Khan wrote: > On 07/25/2017 01:19 PM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.12.4 release. > > There are 196 patches in this series, all will be posted as a response > > to this one. If anyone has any

Re: [v3] mm: Add SLUB free list pointer obfuscation

2017-07-26 Thread Kees Cook
On Wed, Jul 26, 2017 at 7:08 AM, Christopher Lameter wrote: > On Tue, 25 Jul 2017, Kees Cook wrote: > >> > @@ -290,6 +290,10 @@ static inline void set_freepointer(struct kmem_cache >> > *s, >> > void *object, void *fp) >> > { >> > unsigned long freeptr_addr = (unsigned long)object +

Re: [PATCH v1 2/3] ASoC: codecs: msm8916-analog: support jack detection

2017-07-26 Thread Mark Brown
On Tue, Jul 25, 2017 at 01:51:25PM -0400, Damien Riegel wrote: > + for (i = 0; i < ARRAY_SIZE(jack_detect_irqs); i++) { > + int irq; > + > + irq = platform_get_irq_byname(pdev, jack_detect_irqs[i].name); > + if (irq < 0) { > +

Re: [PATCH v1 2/3] ASoC: codecs: msm8916-analog: support jack detection

2017-07-26 Thread Mark Brown
On Tue, Jul 25, 2017 at 01:51:25PM -0400, Damien Riegel wrote: > +int pm8916_wcd_analog_jack_detect(struct snd_soc_codec *codec, > + struct snd_soc_jack *jack) > +{ Sorry, also meant to mention: use the set_jack() operation to make it easier to use with generic

Re: [PATCH 1/2] arm: dts: stm32: add cec for stm32f7 familly

2017-07-26 Thread Alexandre Torgue
Hi Benjamin, On 07/18/2017 10:51 AM, Benjamin Gaignard wrote: add cec in devicetree for stm32f7 familly version 1.1: - with correct slew rate Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32f746.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git

Re: [PATCH 2/2] arm: dts: stm32: enable cec for stm32f769 discovery

2017-07-26 Thread Alexandre Torgue
Hi Benjamin, On 07/18/2017 10:22 AM, Benjamin Gaignard wrote: enable cec for stm32f769 discovery board Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32f769-disco.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/stm32f769-disco.dts

Re: [PATCH] spi: document broadcom qspi driver as broken

2017-07-26 Thread Mark Brown
On Tue, Jul 25, 2017 at 05:39:57PM -0400, Kamal Dasu wrote: > Arnd, Cyrille, > > I am working on fixing spi-bcm-qspi.c as per Cyrill's suggestion as > mentioned here : https://patchwork.kernel.org/patch/9624585/. > And remove the use of SPINOR_OP_READ* and there by remove need to > include

Re: [PATCH v8 1/3] perf: cavium: Support memory controller PMU counters

2017-07-26 Thread Jonathan Cameron
On Wed, 26 Jul 2017 17:46:23 +0200 Jan Glauber wrote: > On Wed, Jul 26, 2017 at 04:17:11PM +0100, Suzuki K Poulose wrote: > > How about adding a soc specific (wrapper) driver for the memory controller, > > which > > could use the PCI id and trigger EDAC and PMU drivers (based on what is > >

Re: [RFC][PATCH v3]: documentation,atomic: Add new documents

2017-07-26 Thread Randy Dunlap
nits... On 07/26/2017 04:53 AM, Peter Zijlstra wrote: > --- > Subject: documentation,atomic: Add new documents > From: Peter Zijlstra > Date: Mon Jun 12 14:50:27 CEST 2017 > > Since we've vastly expanded the atomic_t interface in recent years the > existing documentation is woefully out of

Re: [PATCH] mm, oom: allow oom reaper to race with exit_mmap

2017-07-26 Thread Andrea Arcangeli
On Wed, Jul 26, 2017 at 07:45:57AM +0200, Michal Hocko wrote: > On Tue 25-07-17 21:19:52, Andrea Arcangeli wrote: > > On Tue, Jul 25, 2017 at 06:04:00PM +0200, Michal Hocko wrote: > > > - down_write(>mmap_sem); > > > + if (tsk_is_oom_victim(current)) > > > + down_write(>mmap_sem); > > >

Re: [PATCH v1 3/3] ASoC: qcom: apq8016-sbc: enable jack detection

2017-07-26 Thread Srinivas Kandagatla
On 25/07/17 18:51, Damien Riegel wrote: Now that the pm8916 audio codec has support for jack detection, let the sound card driver use it. Signed-off-by: Damien Riegel --- sound/soc/qcom/apq8016_sbc.c | 16 1 file changed, 16 insertions(+) diff --git

Re: [PATCH v8 1/3] perf: cavium: Support memory controller PMU counters

2017-07-26 Thread Borislav Petkov
On Wed, Jul 26, 2017 at 09:19:49AM -0700, Greg KH wrote: > On Wed, Jul 26, 2017 at 05:55:48PM +0200, Borislav Petkov wrote: > > On Wed, Jul 26, 2017 at 05:45:15PM +0200, Jan Glauber wrote: > > > The PMU/EDAC devices are all PCI devices do I need the 'struct pci_dev *'. > > > I'm not aware of other

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

2017-07-26 Thread Jordan Crouse
On Wed, Jul 26, 2017 at 05:52:45PM +0200, 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': >

Re: [PATCH] selftests/nsfs: create kconfig fragments

2017-07-26 Thread Shuah Khan
On 07/05/2017 04:18 PM, Andrei Vagin wrote: > On Thu, Jun 29, 2017 at 02:25:53PM +0530, naresh.kamb...@linaro.org wrote: >> From: Naresh Kamboju >> >> Create a config fragment for nsfs to enable additional config options. >> The config fragments can be used with the help of >>

Re: [PATCH 23/32] tracing: Add 'onmatch' hist trigger action support

2017-07-26 Thread Tom Zanussi
Hi Namhyung, On Wed, 2017-07-26 at 11:40 +0900, Namhyung Kim wrote: > Hi Tom, > > On Mon, Jun 26, 2017 at 05:49:24PM -0500, Tom Zanussi wrote: > > Add an 'onmatch(matching.event).(param list)' > > hist trigger action which is invoked with the set of variables or > > event fields named in the

Re: [PATCH] mm, oom: allow oom reaper to race with exit_mmap

2017-07-26 Thread Andrea Arcangeli
On Wed, Jul 26, 2017 at 07:45:33AM +0200, Michal Hocko wrote: > Yes, exit_aio is the only blocking call I know of currently. But I would > like this to be as robust as possible and so I do not want to rely on > the current implementation. This can change in future and I can > guarantee that nobody

Re: [PATCH 0/4] ACPI: DMA ranges management

2017-07-26 Thread Nate Watterson
On 7/26/2017 11:35 AM, Lorenzo Pieralisi wrote: On Wed, Jul 26, 2017 at 04:05:55PM +0100, Robin Murphy wrote: Hi Nate, On 26/07/17 15:46, Nate Watterson wrote: Hi Lorenzo, On 7/20/2017 10:45 AM, Lorenzo Pieralisi wrote: As reported in:

Re: [PATCH v8 1/3] perf: cavium: Support memory controller PMU counters

2017-07-26 Thread Jan Glauber
On Wed, Jul 26, 2017 at 05:25:15PM +0100, Jonathan Cameron wrote: > On Wed, 26 Jul 2017 17:46:23 +0200 > Jan Glauber wrote: > > > On Wed, Jul 26, 2017 at 04:17:11PM +0100, Suzuki K Poulose wrote: > > > How about adding a soc specific (wrapper) driver for the memory > > > controller, which > > >

[PATCH v2] staging: octeon: fix line over 80 characters

2017-07-26 Thread catalinnow
From: John Smith ethernet-rx.c: fix WARNING: line over 80 characters The code was restructured a bit, a helper function was added to cvm_oct_poll. Signed-off-by: John Smith --- Changes since version 1: - added copy_segments_to_skb helper function - compiled ok on yocto/edgerouter

Re: [PATCH v2 2/4] can: fixed-transceiver: Add documentation for CAN fixed transceiver bindings

2017-07-26 Thread Andrew Lunn
On Mon, Jul 24, 2017 at 06:05:19PM -0500, Franklin S Cooper Jr wrote: > Add documentation to describe usage of the new fixed transceiver binding. > This new binding is applicable for any CAN device therefore it exists as > its own document. > > Signed-off-by: Franklin S Cooper Jr > --- > Version

Re: [PATCH] hamradio: dmascc: avoid -Wformat-overflow warning

2017-07-26 Thread David Miller
From: Arnd Bergmann Date: Wed, 26 Jul 2017 09:55:33 +0200 > gcc warns that the device name might overflow: > > drivers/net/hamradio/dmascc.c: In function 'dmascc_init': > drivers/net/hamradio/dmascc.c:584:22: error: 'sprintf' may write a > terminating nul past the end of the destination

Re: [PATCH] mm, oom: allow oom reaper to race with exit_mmap

2017-07-26 Thread Andrea Arcangeli
On Wed, Jul 26, 2017 at 06:29:12PM +0200, Andrea Arcangeli wrote: > From 3d9001490ee1a71f39c7bfaf19e96821f9d3ff16 Mon Sep 17 00:00:00 2001 > From: Andrea Arcangeli > Date: Tue, 25 Jul 2017 20:02:27 +0200 > Subject: [PATCH 1/1] mm: oom: let oom_reap_task and exit_mmap to run > concurrently This

Re: [PATCHv2 08/10] x86/mm: Replace compile-time checks for 5-level with runtime-time

2017-07-26 Thread Kirill A. Shutemov
On Wed, Jul 26, 2017 at 09:28:16AM +0200, Juergen Gross wrote: > On 25/07/17 11:05, Kirill A. Shutemov wrote: > > On Tue, Jul 18, 2017 at 04:24:06PM +0200, Juergen Gross wrote: > >> Xen PV guests will never run with 5-level-paging enabled. So I guess you > >> can drop the complete if

Re: [RFC]Add new mdev interface for QoS

2017-07-26 Thread Alex Williamson
[cc +libvir-list] On Wed, 26 Jul 2017 21:16:59 +0800 "Gao, Ping A" wrote: > The vfio-mdev provide the capability to let different guest share the > same physical device through mediate sharing, as result it bring a > requirement about how to control the device sharing, we need a QoS > related

Re: [PATCH v1 2/3] ASoC: codecs: msm8916-analog: support jack detection

2017-07-26 Thread Srinivas Kandagatla
On 25/07/17 18:51, Damien Riegel wrote: The audio codec in the PM8916 has a feature called Multi-Button Headset Control (MBHC). It can support of up to five buttons on a headset, and jack insertion/removal detection. This patch only supports the jack detection. A complete implementation is

Re: [PATCH 24/32] tracing: Add 'onmax' hist trigger action support

2017-07-26 Thread Tom Zanussi
Hi Namhyung, On Wed, 2017-07-26 at 12:04 +0900, Namhyung Kim wrote: > On Mon, Jun 26, 2017 at 05:49:25PM -0500, Tom Zanussi wrote: > > Add an 'onmax(var).save(field,...)' hist trigger action which is > > invoked whenever an event exceeds the current maximum. > > > > The end result is that the

Re: [PATCH 08/11] sparc64/topology: Remove the unused parent_node() macro

2017-07-26 Thread David Miller
From: Dou Liyang Date: Wed, 26 Jul 2017 21:34:33 +0800 > Commit a7be6e5a7f8d ("mm: drop useless local parameters of > __register_one_node()") removes the last user of parent_node(). > > The parent_node() macro in SPARC64 platform is unnecessary. > > Remove it for cleanup. > > Reported-by:

Re: [PATCH 29/32] tracing: Add 'last error' error facility for hist triggers

2017-07-26 Thread Tom Zanussi
Hi Namhyung, On Wed, 2017-07-26 at 13:39 +0900, Namhyung Kim wrote: > On Mon, Jun 26, 2017 at 05:49:30PM -0500, Tom Zanussi wrote: > > With the addition of variables and actions, it's become necessary to > > provide more detailed error information to users about syntax errors. > > > > Add a

Re: [RFC Part1 PATCH v3 03/17] x86/mm: Secure Encrypted Virtualization (SEV) support

2017-07-26 Thread Tom Lendacky
On 7/25/2017 11:28 PM, Borislav Petkov wrote: On Mon, Jul 24, 2017 at 02:07:43PM -0500, Brijesh Singh wrote: From: Tom Lendacky Provide support for Secure Encyrpted Virtualization (SEV). This initial Your subject misses a verb and patch subjects should have an active verb denoting what the

[RFC PATCH] mm/slub: fix a deadlock due to incomplete patching of cpusets_enabled()

2017-07-26 Thread Dima Zavin
In codepaths that use the begin/retry interface for reading mems_allowed_seq with irqs disabled, there exists a race condition that stalls the patch process after only modifying a subset of the static_branch call sites. This problem manifested itself as a dead lock in the slub allocator, inside

Re: [PATCH v8 1/1] f2fs: dax: implement direct access

2017-07-26 Thread Dan Williams
On Wed, Jul 26, 2017 at 12:26 AM, Christoph Hellwig wrote: > On Tue, Jul 25, 2017 at 05:15:10PM -0700, Dan Williams wrote: >> We're in the process of walking back and potentially deprecating the >> use of the dax mount option for xfs and ext4 since dax can have >> negative performance

[PATCH] rpmsg: qcom_smd: add of_node node to edge device

2017-07-26 Thread srinivas . kandagatla
From: Srinivas Kandagatla This patch assigns the device node to the edge device, so that the edge device drivers could read required device tree properties. Signed-off-by: Srinivas Kandagatla --- drivers/rpmsg/qcom_smd.c | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH v3 2/2] memory: ti-emif-sram: introduce relocatable suspend/resume handlers

2017-07-26 Thread Santosh Shilimkar
On 7/24/2017 2:24 PM, Dave Gerlach wrote: Certain SoCs like Texas Instruments AM335x and AM437x require parts of the EMIF PM code to run late in the suspend sequence from SRAM, such as saving and restoring the EMIF context and placing the memory into self-refresh. One requirement for these

Re: [PATCH net-next v2 01/10] net: dsa: lan9303: Fixed MDIO interface

2017-07-26 Thread Andrew Lunn
On Tue, Jul 25, 2017 at 06:15:44PM +0200, Egil Hjelmeland wrote: > Fixes after testing on actual HW: > > - lan9303_mdio_write()/_read() must multiply register number > by 4 to get offset > > - Indirect access (PMI) to phy register only work in I2C mode. In > MDIO mode phy registers must be

Re: [v3] mm: Add SLUB free list pointer obfuscation

2017-07-26 Thread Christopher Lameter
On Wed, 26 Jul 2017, Kees Cook wrote: > >> What happens if, instead of BUG_ON, we do: > >> > >> if (unlikely(WARN_RATELIMIT(object == fp, "double-free detected")) > >> return; > > > > This may work for the free fastpath but the set_freepointer function is > > use in multiple other

Re: [PATCH] kselftest: exec: make exec test output conform to TAP13

2017-07-26 Thread Shuah Khan
Hi Paul, Please see comments below: On 07/25/2017 11:12 AM, Paul Elder wrote: > Convert exec test output to TAP13 format, using the ksft framework. > > Signed-off-by: Paul Elder > --- > > Depends on Shuah Khan's patch: "[PATCH 2/3] selftests: kselftest framework: > add API to return

Re: [PATCH net-next v2 02/10] net: dsa: lan9303: Do not disable/enable switch fabric port 0 at startup

2017-07-26 Thread Andrew Lunn
On Tue, Jul 25, 2017 at 06:15:45PM +0200, Egil Hjelmeland wrote: > For some mysterious reason enable switch fabric port 0 TX fails to > work, when the TX has previous been disabled. Resolved by not > disable/enable switch fabric port 0 at startup. Port 1 and 2 are > still disabled in early init. >

Re: [PATCH 0/6] Broadcom SBA-RAID driver improvements

2017-07-26 Thread Vinod Koul
On Wed, Jul 26, 2017 at 11:06:38AM +0530, Anup Patel wrote: > This patchset does various improvments to Broadcom SBA-RAID > driver and also adds SBA-RAID DT nodes for Stingray SOC. > > The patches are based on "[PATCH v2 0/7] FlexRM driver improvements" > and can also be found at sba-raid-imp-v1

Re: [PATCH] rpmsg: qcom_smd: add of_node node to edge device

2017-07-26 Thread Bjorn Andersson
On Wed 26 Jul 09:53 PDT 2017, srinivas.kandaga...@linaro.org wrote: > From: Srinivas Kandagatla > > This patch assigns the device node to the edge device, so that the edge > device drivers could read required device tree properties. > > Signed-off-by: Srinivas Kandagatla Applied Thanks,

[PATCH v2 1/3] Revert "arm/syscalls: Check address limit on user-mode return"

2017-07-26 Thread Thomas Garnier
This reverts commit 73ac5d6a2b6ac3ae8d1e1818f3e9946f97489bc9. The work pending loop can call set_fs after addr_limit_user_check removed the _TIF_FSCHECK flag. This may happen at anytime based on how ARM handles alignment exceptions. It leads to an infinite loop condition. After discussion, it

[PATCH v2 3/3] arm64/syscalls: Move address limit check in loop

2017-07-26 Thread Thomas Garnier
A bug was reported on ARM where set_fs might be called after it was checked on the work pending function. ARM64 is not affected by this bug but has a similar construct. In order to avoid any similar problems in the future, the addr_limit_user_check function is moved at the beginning of the loop.

Re: [PATCH v8 1/1] f2fs: dax: implement direct access

2017-07-26 Thread Christoph Hellwig
On Wed, Jul 26, 2017 at 09:53:07AM -0700, Dan Williams wrote: > It allows for opt-in for applications, or administrators of those > applications, that know the type of access. That's BS. We need to provide the best possible way to access the media to an application. And whether that's DAX or

[PATCH v2 2/3] arm/syscalls: Optimize address limit check

2017-07-26 Thread Thomas Garnier
Disable the generic address limit check in favor of an architecture specific optimized implementation. The generic implementation using pending work flags did not work well with ARM and alignment faults. The address limit is checked on each syscall return path to user-mode path as well as the irq

Re: [PATCH v4 3/5] pwm-backlight: add support for PWM delays proprieties.

2017-07-26 Thread Jingoo Han
On Monday, July 24, 2017 11:22 AM, Daniel Thompson wrote: > On 21/07/17 11:48, Enric Balletbo i Serra wrote: > > Some panels (i.e. N116BGE-L41), in their power sequence specifications, > > request a delay between set the PWM signal and enable the backlight and > > between clear the PWM signal and

Re: [RFC PATCH] mm/slub: fix a deadlock due to incomplete patching of cpusets_enabled()

2017-07-26 Thread Christopher Lameter
On Wed, 26 Jul 2017, Dima Zavin wrote: > The fix is to cache the value that's returned by cpusets_enabled() at the > top of the loop, and only operate on the seqlock (both begin and retry) if > it was true. I think the proper fix would be to ensure that the calls to

Re: [PATCH v12 5/8] virtio-balloon: VIRTIO_BALLOON_F_SG

2017-07-26 Thread Michael S. Tsirkin
On Wed, Jul 26, 2017 at 11:48:41AM +0800, Wei Wang wrote: > On 07/23/2017 09:45 AM, Michael S. Tsirkin wrote: > > On Fri, Jul 14, 2017 at 03:12:43PM +0800, Wei Wang wrote: > > > On 07/14/2017 04:19 AM, Michael S. Tsirkin wrote: > > > > On Thu, Jul 13, 2017 at 03:42:35PM +0800, Wei Wang wrote: > >

Re: [PATCH v2 2/4] can: fixed-transceiver: Add documentation for CAN fixed transceiver bindings

2017-07-26 Thread Oliver Hartkopp
On 07/26/2017 06:41 PM, Andrew Lunn wrote: On Mon, Jul 24, 2017 at 06:05:19PM -0500, Franklin S Cooper Jr wrote: + +Optional: + max-arbitration-speed: a positive non 0 value that determines the max + speed that CAN can run in non CAN-FD mode or during the +

Re: [PATCH 1/6] dma: bcm-sba-raid: Improve memory allocation in SBA RAID driver

2017-07-26 Thread Vinod Koul
On Wed, Jul 26, 2017 at 11:06:39AM +0530, Anup Patel wrote: > This patch improves memory allocation in SBA RAID driver in > following ways: > 1. Simplify struct sba_request to reduce memory consumption what is the simplification?? You need to document that > 2. Allocate sba resources before

Re: [PATCH 2/6] dma: bcm-sba-raid: Peek mbox when we are left with no free requests

2017-07-26 Thread Vinod Koul
On Wed, Jul 26, 2017 at 11:06:40AM +0530, Anup Patel wrote: > We should peek mbox channels when we are left with no free > sba_requests in sba_alloc_request() and why is the world should we do that, how does that help?? > > Signed-off-by: Anup Patel > Reviewed-by: Ray Jui > Reviewed-by: Scott

[PATCH] arm64/vdso: Support mremap() for vDSO

2017-07-26 Thread Dmitry Safonov
vDSO VMA address is saved in mm_context for the purpose of using restorer from vDSO page to return to userspace after signal handling. In Checkpoint Restore in Userspace (CRIU) project we place vDSO VMA on restore back to the place where it was on the dump. With the exception for x86 (where there

Re: [PATCH] fortify: Use WARN instead of BUG for now

2017-07-26 Thread Linus Torvalds
On Tue, Jul 25, 2017 at 8:50 PM, Kees Cook wrote: > + > +void fortify_read_overflow(const char *func) > { > - pr_emerg("detected buffer overflow in %s\n", name); > - BUG(); > + WARN(1, "detected read beyond size of object passed as 1st parameter > in %s\n", func); > } Side

Re: [PATCH net-next v2 04/10] net: dsa: lan9303: Added adjust_link() method

2017-07-26 Thread Andrew Lunn
On Tue, Jul 25, 2017 at 06:15:47PM +0200, Egil Hjelmeland wrote: > This makes the driver react to device tree "fixed-link" declaration > on CPU port. > > - turn off autonegotiation > - force speed 10 or 100 mb/s > - force duplex mode > > Signed-off-by: Egil Hjelmeland > --- >

Re: [GIT PULL 00/40] perf/core improvements and fixes

2017-07-26 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > Hi Ingo, > > Please consider pulling, > > - Arnaldo > > Test results at the end of this message, as usual. > > The following changes since commit 510457ec9dc259b002879bcfe475f89d4514a0fc: > > Merge tag 'perf-core-for-mingo-4.13-20170718' of >

Re: [PATCH v8 1/1] f2fs: dax: implement direct access

2017-07-26 Thread Dan Williams
On Wed, Jul 26, 2017 at 10:01 AM, Christoph Hellwig wrote: > On Wed, Jul 26, 2017 at 09:53:07AM -0700, Dan Williams wrote: >> It allows for opt-in for applications, or administrators of those >> applications, that know the type of access. > > That's BS. We need to provide the best possible way

Re: [PATCH v1 1/2] remoteproc: dt: Provide bindings for iMX6SX/7D Remote Processor Controller driver

2017-07-26 Thread Bjorn Andersson
On Sun 23 Jul 22:56 PDT 2017, Oleksij Rempel wrote: > Am 18.07.2017 um 18:38 schrieb Bjorn Andersson: > > On Tue 18 Jul 01:45 PDT 2017, Oleksij Rempel wrote: > >> On 11.07.2017 00:14, Bjorn Andersson wrote: [..] > >>> Also, as you warn about the user needing to pick the values for "ddr", > >>>

Re: [RFC][PATCH] thunderbolt: icm: Ignore mailbox errors in icm_suspend()

2017-07-26 Thread Rafael J. Wysocki
On Wednesday, July 26, 2017 04:12:59 PM Mika Westerberg wrote: > On Wed, Jul 26, 2017 at 02:48:54PM +0200, Rafael J. Wysocki wrote: > > On Wednesday, July 26, 2017 11:32:44 AM Mika Westerberg wrote: > > > On Tue, Jul 25, 2017 at 06:10:57PM +0200, Rafael J. Wysocki wrote: > > > > On Tuesday, July

Re: [PATCH 4/6] dma: bcm-sba-raid: Break sba_process_deferred_requests() into two parts

2017-07-26 Thread Vinod Koul
On Wed, Jul 26, 2017 at 11:06:42AM +0530, Anup Patel wrote: > This patch breaks sba_process_deferred_requests() into two parts > sba_process_received_request() and _sba_process_pending_requests() > for readability. > > In addition, that should be a separate patch then... no? > we remove

[PATCH v5 0/6] drivers/i2c: Add FSI-attached I2C master algorithm

2017-07-26 Thread Eddie James
From: "Edward A. James" This series adds an algorithm for an I2C master physically located on an FSI slave device. The I2C master has multiple ports, each of which may be connected to an I2C slave. Access to the I2C master registers is achieved over FSI bus. Due to the multi-port nature of the

[PATCH v5 4/6] drivers/i2c: Add I2C master locking to FSI algorithm

2017-07-26 Thread Eddie James
From: "Edward A. James" Since there are many ports per master, each with it's own adapter and chardev, we need some locking to prevent transfers from changing the\ master state while other transfers are in progress. Signed-off-by: Edward A. James --- drivers/i2c/busses/i2c-fsi.c | 43

[PATCH v5 3/6] drivers/i2c: Add transfer implementation for FSI algorithm

2017-07-26 Thread Eddie James
From: "Edward A. James" Execute I2C transfers from the FSI-attached I2C master. Use polling instead of interrupts as we have no hardware IRQ over FSI. Signed-off-by: Edward A. James --- drivers/i2c/busses/i2c-fsi.c | 197 ++- 1 file changed, 195

Re: [v3] mm: Add SLUB free list pointer obfuscation

2017-07-26 Thread Kees Cook
On Wed, Jul 26, 2017 at 9:55 AM, Christopher Lameter wrote: > On Wed, 26 Jul 2017, Kees Cook wrote: > >> >> What happens if, instead of BUG_ON, we do: >> >> >> >> if (unlikely(WARN_RATELIMIT(object == fp, "double-free detected")) >> >> return; >> > >> > This may work for the free fastpath

[PATCH v5 5/6] drivers/i2c: Add bus recovery for FSI algorithm

2017-07-26 Thread Eddie James
From: "Edward A. James" Bus recovery should reset the engine and force clock the bus 9 times to recover most situations. Signed-off-by: Edward A. James --- drivers/i2c/busses/i2c-fsi.c | 75 1 file changed, 75 insertions(+) diff --git

[PATCH v5 6/6] dt-bindings: i2c: Add FSI-attached I2C master dt binding documentation

2017-07-26 Thread Eddie James
From: "Edward A. James" Document the bindings. Signed-off-by: Edward A. James Acked-by: Rob Herring --- Documentation/devicetree/bindings/i2c/i2c-fsi.txt | 40 +++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-fsi.txt diff

Re: [PATCH net-next v2 06/10] net: dsa: lan9303: added sysfs node swe_bcst_throt

2017-07-26 Thread Andrew Lunn
On Tue, Jul 25, 2017 at 06:15:49PM +0200, Egil Hjelmeland wrote: > Allowing per-port access to Switch Engine Broadcast Throttling Register Hi Egil In general, we are against using sysfs. If there is a generic mechanism, that applies for all sorts of network interfaces, it should be used instead

[PATCH v5 2/6] drivers/i2c: Add port structure to FSI algorithm

2017-07-26 Thread Eddie James
From: "Edward A. James" Add and initialize I2C adapters for each port on the FSI-attached I2C master. Ports for each master are defined in the devicetree. Signed-off-by: Edward A. James --- drivers/i2c/busses/i2c-fsi.c | 96 1 file changed, 96

[PATCH v5 1/6] drivers/i2c: Add FSI-attached I2C master algorithm

2017-07-26 Thread Eddie James
From: "Edward A. James" Add register definitions for FSI-attached I2C master and functions to access those registers over FSI. Add an FSI driver so that our I2C bus is probed up during an FSI scan. Signed-off-by: Edward A. James --- drivers/i2c/busses/Kconfig | 11 ++

Re: [PATCH] USB: hcd: Mark secondary HCD as dead if the primary one died

2017-07-26 Thread Rafael J. Wysocki
On Wednesday, July 26, 2017 10:21:54 AM Alan Stern wrote: > On Tue, 25 Jul 2017, Rafael J. Wysocki wrote: > > > From: Rafael J. Wysocki > > > > Make usb_hc_died() clear the HCD_FLAG_RH_RUNNING flag for the shared > > HCD and set HCD_FLAG_DEAD for it, in analogy with what is done for > > the

[tip:perf/core] perf intel-pt: Always set no branch for dummy event

2017-07-26 Thread tip-bot for Kan Liang
Commit-ID: 91a8c5b840f2da31280e14b6268761cf14033756 Gitweb: http://git.kernel.org/tip/91a8c5b840f2da31280e14b6268761cf14033756 Author: Kan Liang AuthorDate: Fri, 30 Jun 2017 10:16:56 -0400 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 20 Jul 2017 09:55:51 -0300 perf intel-pt:

[tip:perf/core] perf intel-pt: Set no_aux_samples for the tracking event

2017-07-26 Thread tip-bot for Kan Liang
Commit-ID: 69d8bd8aa7d8906a1e922ae884d97f0bd7f1b269 Gitweb: http://git.kernel.org/tip/69d8bd8aa7d8906a1e922ae884d97f0bd7f1b269 Author: Kan Liang AuthorDate: Fri, 30 Jun 2017 10:16:55 -0400 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 20 Jul 2017 09:55:50 -0300 perf intel-pt:

[tip:perf/core] perf trace: Allow allocating sc->arg_fmt even without the syscall tracepoint

2017-07-26 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 5e58fcfaf4c60795c241be739ad55c519d7f2aaa Gitweb: http://git.kernel.org/tip/5e58fcfaf4c60795c241be739ad55c519d7f2aaa Author: Arnaldo Carvalho de Melo AuthorDate: Wed, 19 Jul 2017 14:32:11 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 20 Jul 2017 09:55:52 -0300

[tip:perf/core] perf trace beauty mmap: Ignore 'fd' and 'offset' args for MAP_ANONYMOUS

2017-07-26 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: d57da8c9a5e11e7786931cfa1fd744969f530b2e Gitweb: http://git.kernel.org/tip/d57da8c9a5e11e7786931cfa1fd744969f530b2e Author: Arnaldo Carvalho de Melo AuthorDate: Wed, 19 Jul 2017 12:16:15 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 20 Jul 2017 09:55:51 -0300

Re: [PATCH] fortify: Use WARN instead of BUG for now

2017-07-26 Thread Kees Cook
On Wed, Jul 26, 2017 at 10:10 AM, Linus Torvalds wrote: > On Tue, Jul 25, 2017 at 8:50 PM, Kees Cook wrote: >> + >> +void fortify_read_overflow(const char *func) >> { >> - pr_emerg("detected buffer overflow in %s\n", name); >> - BUG(); >> + WARN(1, "detected read beyond size

[tip:perf/core] perf trace: Use the syscall_fmt formatters without a tracepoint

2017-07-26 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: d032d79e2dcb56e13678bf2cc7b36957ef827c32 Gitweb: http://git.kernel.org/tip/d032d79e2dcb56e13678bf2cc7b36957ef827c32 Author: Arnaldo Carvalho de Melo AuthorDate: Wed, 19 Jul 2017 14:36:13 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 20 Jul 2017 09:55:52 -0300

[tip:perf/core] perf trace: Allow specifying number of syscall args for tracepointless syscalls

2017-07-26 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 332337dafc98d88561bf3730f80c59cc93f089e1 Gitweb: http://git.kernel.org/tip/332337dafc98d88561bf3730f80c59cc93f089e1 Author: Arnaldo Carvalho de Melo AuthorDate: Wed, 19 Jul 2017 15:08:14 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 20 Jul 2017 09:55:53 -0300

[tip:perf/core] perf trace: Ditch __syscall__arg_val() variant, not needed anymore

2017-07-26 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 325f5091b0da5a7d8d190262661af17d75bee262 Gitweb: http://git.kernel.org/tip/325f5091b0da5a7d8d190262661af17d75bee262 Author: Arnaldo Carvalho de Melo AuthorDate: Wed, 19 Jul 2017 15:02:43 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 20 Jul 2017 09:55:52 -0300

[tip:perf/core] perf trace: Allow specifying names to syscall arguments formatters

2017-07-26 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: c51bdfecd782eec710237c53137e0fefd032d287 Gitweb: http://git.kernel.org/tip/c51bdfecd782eec710237c53137e0fefd032d287 Author: Arnaldo Carvalho de Melo AuthorDate: Wed, 19 Jul 2017 15:47:30 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 20 Jul 2017 09:55:53 -0300

<    11   12   13   14   15   16   17   18   19   20   >