[PATCH v4 13/16] MIPS: math-emu: .: Fix some cases of zero inputs

2017-07-27 Thread Aleksandar Markovic
From: Aleksandar Markovic Fix the cases of . when any of two multiplicands is +0 or -0, and the third input is also +0 or -0. Depending on the signs of inputs, certain special cases must be handled. A relevant example: MADDF.S fd,fs,ft: If fs contains +0.0, ft contains -0.0, and fd contains 0

[PATCH] cgroup: add cgroup.stat interface with basic hierarchy stats

2017-07-27 Thread Roman Gushchin
Add a cgroup.stat interface to the base cgroup control files with the following metrics: nr_descendants total number of descendant cgroups nr_dying_descendantstotal number of dying descendant cgroups max_descendant_depthmaximum descent depth below the current cgroup Signed-off-by

[PATCH v4 00/16] MIPS: Miscellaneous fixes related to Android Mips emulator

2017-07-27 Thread Aleksandar Markovic
From: Aleksandar Markovic v3->v4: - patches on MADDF/MSUBF tagged as "stable #4.7+" - patches on MAX/MIN/MAXA/MINA tagged as "stable #4.3+" - logic in the patch on NaN handling in MADDF/MSUBF simplified - improved code formatting in several patches - fixed spelling mistakes a

[PATCH v4 0/9] perf annotate: Fix --show-total-period and support --show-nr-samples

2017-07-27 Thread Taeung Song
Hello, Currently the --show-total-period option of perf-annotate is different from perf-report's. It has two problem like below: (Reported by Namhyung Kim and Milian Wolff) 1) Wrong column i.e. 'Percent' (even though using --show-total-period) 2) Show number of samples, not period So fix th

[PATCH v4 1/9] perf annotate: Widen "Event count" column when using --show-total-period

2017-07-27 Thread Taeung Song
Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Taeung Song --- tools/perf/util/annotate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index c2b4b00..5963764 100644 --- a/tools/perf/util/annotate.c +++ b/tools/perf/ut

[PATCH v4 3/9] perf anntoate browser: Fix the toggle total period view showing number of samples

2017-07-27 Thread Taeung Song
Currently the toggle total period view on the annotate TUI shows the number of samples, not period like below. So fix the toggle total period view on the annotate TUI like below. $ perf annotate --show-total-period Before: │Disassembly of section .text: │ │

[PATCH v4 4/9] perf annotate browser: Show the proper header when using --show-total-period

2017-07-27 Thread Taeung Song
Currently a first column is only "Percent", so fix it to show correct column name based on given options. (e.g. if using --show-total-period or a 't' hotkey, show "Event count" as a first column) Reported-by: Milian Wolff Cc: Namhyung Kim Cc: Jiri Olsa Signed-off-by: Taeung Song --- tools/per

[PATCH v4 2/9] perf annotate: Initialize proper width for first column

2017-07-27 Thread Taeung Song
When using --show-total-period or not, set the width value for first column. Suggested-by: Arnaldo Carvalho de Melo Cc: Namhyung Kim Cc: Jiri Olsa Signed-off-by: Taeung Song --- tools/perf/util/annotate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/util/

[PATCH v4 6/9] perf annotate browser: Support --show-nr-samples option

2017-07-27 Thread Taeung Song
Cc: Namhyung Kim Cc: Jiri Olsa Signed-off-by: Taeung Song --- tools/perf/ui/browsers/annotate.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tools/perf/ui/browsers/annotate.c b/tools/perf/ui/browsers/annotate.c index 9fd4413..6b57e87 100644 --- a/tools/per

[PATCH v4 7/9] perf annotate browser: Circulate percent, total period, samples view

2017-07-27 Thread Taeung Song
With a existing 't' hotkey, support the three view based on percent, total period and number of samples on the annotate TUI browser, circulating them like below. First column: Percent -> Event count -> Samples -> Percent ... Cc: Namhyung Kim Cc: Milian Wolff Cc: Jiri Olsa Signed-off-by: Tae

[PATCH v4 9/9] perf annotate: Calculate the percentage with period or number of samples

2017-07-27 Thread Taeung Song
To correspond with perf-report using the sample period for the percentage calculation, calculate the percentage with period. But if --show-nr-samples was used, figure out the percentage by number of samples. Cc: Namhyung Kim Cc: Jiri Olsa Signed-off-by: Taeung Song --- tools/perf/util/annotate

[PATCH v4 8/9] perf annotate: Check total period before calculating percent

2017-07-27 Thread Taeung Song
Before calculating percent, checking total period is clear and safer than checking just number of samples. So fix it. Cc: Jiri Olsa Cc: Namhyung Kim Signed-off-by: Taeung Song --- tools/perf/util/annotate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/util

Re: [PATCH] device property: Fix usecount for of_graph_get_port_parent()

2017-07-27 Thread Mark Brown
On Thu, Jul 27, 2017 at 02:44:05AM -0700, Tony Lindgren wrote: > Fix inconsistent use of of_graph_get_port_parent() where > asoc_simple_card_parse_graph_dai() does of_node_get() before > calling it while other callers do not. We can fix this by > not trashing the node passed to of_graph_get_port_pa

[PATCH v4 5/9] perf annotate stdio: Support --show-nr-samples option

2017-07-27 Thread Taeung Song
Add --show-nr-samples option to perf-annotate so that it corresponds with perf-report. Cc: Namhyung Kim Cc: Milian Wolff Cc: Jiri Olsa Signed-off-by: Taeung Song --- tools/perf/builtin-annotate.c | 2 ++ tools/perf/util/annotate.c| 6 +- 2 files changed, 7 insertions(+), 1 deletion(-)

[PATCH 0/2] clk: meson: fix protection against undefined clks

2017-07-27 Thread Jerome Brunet
If the last clkids defined have no hw pointer associated with them in the hw_onecell_data array, the initialization is going to crash badly because the array is not big enough. The patchset makes sure the array is big enough, and that each clkid is associated with a valid hw pointer, or NULL. Doi

Possible race in hysdn.ko

2017-07-27 Thread Anton Volkov
Hello. While searching for races in the Linux kernel I've come across "drivers/isdn/hysdn/hysdn.ko" module. Here is a question that I came up with while analysing results. Lines are given using the info from Linux v4.12. In hysdn_proclog.c file in put_log_buffer function a non-standard type of s

Re: [libvirt] [RFC]Add new mdev interface for QoS

2017-07-27 Thread Daniel P. Berrange
On Wed, Jul 26, 2017 at 10:43:43AM -0600, Alex Williamson wrote: > [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 >

[PATCH] i2c: use dev_get_drvdata() to get private data in suspend/resume hooks

2017-07-27 Thread Masahiro Yamada
Several drivers call to_platform_device() to get platform_device and pass it to platform_get_drvdata(). In platform_get_drvdata(), the platform_device is converted back to struct device again. Use dev_get_drvdata() to avoid platform_device/device dance. Signed-off-by: Masahiro Yamada --- driv

[PATCH 1/2] clk: meson: meson8b: fix protection against undefined clks

2017-07-27 Thread Jerome Brunet
meson8b clock driver gracefully handles case where the clkid is defined but the clock hw pointer is not provided, as long as it is not at the end of the hw_onecell_data array. This patch ensure that the last entries are defined as well to handle this particular case. Fixes: e92f7cca446e ("clk: me

[PATCH -tip v5 1/2] irq: Introduce CONFIG_IRQENTRY kconfig

2017-07-27 Thread Masami Hiramatsu
Introduce CONFIG_IRQENTRY to simplify generating irqentry and softirqentry text sections. Currently generating those sections depends on CONFIG_FUNCTION_GRAPH_TRACER and/or CONFIG_KASAN, in each source code. This moves those #ifdef dependencies into Kconfig, instead of the actual code. This makes i

[PATCH 1/4] iio: trigger: stm32-timer: fix quadrature mode get routine

2017-07-27 Thread Fabrice Gasnier
Fixes: 4adec7da0536 ("iio: stm32 trigger: Add quadrature encoder device") SMS bitfiled is mode + 1. After reset, upon boot, SMS = 0. When reading from sysfs, stm32_get_quadrature_mode() returns -1 (e.g. -EPERM) which is wrong error code here. So, check SMS bitfiled matches valid encoder mode, or r

[PATCH 4/4] iio: trigger: stm32-timer: add enable attribute

2017-07-27 Thread Fabrice Gasnier
In order to use encoder mode, timers needs to be enabled (e.g. CEN bit) along with peripheral clock. Add IIO_CHAN_INFO_ENABLE attribute to handle this. Also, in triggered mode, CEN bit is set automatically in hardware. Then clock must be enabled before starting triggered mode. Signed-off-by: Fabri

[PATCH 2/4] iio: trigger: stm32-timer: fix write_raw return value

2017-07-27 Thread Fabrice Gasnier
Fixes: 4adec7da0536 ("iio: stm32 trigger: Add quadrature encoder device") IIO core expects zero as return value for write_raw() callback in case of success. Signed-off-by: Fabrice Gasnier --- drivers/iio/trigger/stm32-timer-trigger.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[PATCH -tip v5 2/2] [BUGFIX] kprobes/x86: Do not jump-optimize kprobes on irq entry code

2017-07-27 Thread Masami Hiramatsu
Since the kernel segment registers are not prepared at the entry of irq-entry code, if a kprobe on such code is jump-optimized, accessing per-cpu variables may cause kernel panic. However, if the kprobe is not optimized, it kicks int3 exception and set segment registers correctly. This checks prob

[PATCH 0/4] iio: trigger: stm32-timer fixes

2017-07-27 Thread Fabrice Gasnier
Miscellaneous fixes for stm32-timer-trigger driver. Last patch adds enable attribute, which unlocks use of encoder mode. Fabrice Gasnier (4): iio: trigger: stm32-timer: fix quadrature mode get routine iio: trigger: stm32-timer: fix write_raw return value iio: trigger: stm32-timer: fix get/se

[PATCH 3/4] iio: trigger: stm32-timer: fix get/set down count direction

2017-07-27 Thread Fabrice Gasnier
Fixes: 4adec7da0536 ("iio: stm32 trigger: Add quadrature encoder device") This fixes two issues: - stm32_set_count_direction: to set down direction - stm32_get_count_direction: to get down direction IIO core provides/expects value to be an index of iio_enum items array. This needs to be turned by

Re: [PATCH] cgroup: add cgroup.stat interface with basic hierarchy stats

2017-07-27 Thread Tejun Heo
Hello, On Thu, Jul 27, 2017 at 05:14:20PM +0100, Roman Gushchin wrote: > Add a cgroup.stat interface to the base cgroup control files > with the following metrics: > > nr_descendantstotal number of descendant cgroups > nr_dying_descendants total number of dying descendant cgroups

[PATCH 2/2] clk: meson: gxbb: fix protection against undefined clks

2017-07-27 Thread Jerome Brunet
gxbb clock driver gracefully handles case where the clkid is defined but the clock hw pointer is not provided, as long as it is not at the end of the hw_onecell_data array. This patch ensure that the last entries are defined as well to handle this particular case. Fixes: a70c6e06ed7c ("clk: meson

Re: blk_mq_sched_insert_request: inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage

2017-07-27 Thread Jens Axboe
On 07/27/2017 08:47 AM, Bart Van Assche wrote: > On Thu, 2017-07-27 at 08:02 -0600, Jens Axboe wrote: >> The bug looks like SCSI running the queue inline from IRQ >> context, that's not a good idea. Can you confirm the below works for >> you? >> >> >> diff --git a/drivers/scsi/scsi_lib.c b/drivers/

Re: [PATCH v3 2/6] of: Add helper for mapping device node to logical CPU number

2017-07-27 Thread Suzuki K Poulose
On 27/07/17 16:48, Rob Herring wrote: Please use get_maintainers and cc the right people/lists. Sorry about that, will fix it. +Frank, DT list On Thu, Jul 27, 2017 at 10:10 AM, Suzuki K Poulose wrote: Add a helper to map a device node to a logical CPU number to avoid duplication. Currentl

Re: [PATCH] lightnvm: pblk: advance bio according to lba index

2017-07-27 Thread Jens Axboe
On 07/27/2017 08:49 AM, Javier González wrote: > When a lba either hits the cache or corresponds to an empty entry in the > L2P table, we need to advance the bio according to the position in which > the lba is located. Otherwise, we will copy data in the wrong page, thus > causing data corruption f

Re: [PATCH] lightnvm: pblk: advance bio according to lba index

2017-07-27 Thread Javier González
> On 27 Jul 2017, at 18.31, Jens Axboe wrote: > > On 07/27/2017 08:49 AM, Javier González wrote: >> When a lba either hits the cache or corresponds to an empty entry in the >> L2P table, we need to advance the bio according to the position in which >> the lba is located. Otherwise, we will copy d

Re: [PATCH v2 1/3] kvm: svm: Add support for additional SVM NPF error codes

2017-07-27 Thread Paolo Bonzini
On 23/11/2016 18:01, Brijesh Singh wrote: > > + /* > + * Before emulating the instruction, check if the error code > + * was due to a RO violation while translating the guest page. > + * This can occur when using nested virtualization with nested > + * paging in both guest

Re: [PATCH v2 02/22] fpga: add FPGA device framework

2017-07-27 Thread Alan Tull
On Sun, Jun 25, 2017 at 8:51 PM, Wu Hao wrote: Hi Rob, I was hoping to pick your brain a bit on a DT question. > During FPGA device (e.g PCI-based) discovery, platform devices are > registered for different FPGA function units. But the device node path > isn't quite friendly to applications. >

Re: [PATCH] soc: qcom: bring all qcom drivers into a submenu

2017-07-27 Thread Andy Gross
On Wed, Jul 26, 2017 at 05:27:16PM +0200, srinivas.kandaga...@linaro.org wrote: > From: Srinivas Kandagatla > > As the number of qcom drivers increase, entries in SOC menu looks > scattered with other SOC drivers. Make a submenu for Qcom drivers > to make it visibly clear while selecting qcom SOC

Re: [PATCH v3 2/2] ASoC: add support for TAS6424 digital amplifier

2017-07-27 Thread Mark Brown
On Wed, Jul 26, 2017 at 12:44:34PM -0500, Michael Stecklein wrote: > On 07/19/2017 06:08 AM, Mark Brown wrote: > > On Tue, Jul 18, 2017 at 02:20:04PM -0500, Michael Stecklein wrote: Please leave blank lines between paragraphs, it makes things easier to read. > >> + if (!tx_mask) { > >> +

RE: [RFC PATCH 0/8] EDAC, mce_amd: Add a tracepoint for the decoded error

2017-07-27 Thread Luck, Tony
> Later, we could extend that same behavior to Intel for the common > errors, at least, so that we can dump at least *some* string explaining > what the error is. s/common errors/architectural errors/ That means we don't need to keep updating for every Xeon that documents some MCi_STATUS.MSCOD bi

[PATCH 0/3] enable new "size" property and runtime pm

2017-07-27 Thread divagar . mohandass
From: Divagar Mohandass This series adds support for new "size" property which will be read by the driver for eeprom size. The existing ACPI has a different default size which can be overridden with a DSD property value provided by the platform FW. This series also adds support for runtime PM. T

[PATCH 3/3] eeprom: at24: enable runtime pm support

2017-07-27 Thread divagar . mohandass
From: Divagar Mohandass Currently the device is kept in D0, there is an opportunity to save power by enabling runtime pm. Device can be daisy chained from PMIC and we can't rely on I2C core for auto resume/suspend. Driver will decide when to resume/suspend. Signed-off-by: Divagar Mohandass ---

[PATCH 1/3] dt-bindings: add "size" property.

2017-07-27 Thread divagar . mohandass
From: Divagar Mohandass This adds "size" as optional property for i2c eeproms. "size" should be mentioned in byte and it should refer to the eeprom size. This will be read by the driver and used to calculating the number of bytes in read/write calls. Signed-off-by: Divagar Mohandass --- Docum

[PATCH 2/3] eeprom: at24: add support to fetch device property "size"

2017-07-27 Thread divagar . mohandass
From: Divagar Mohandass This adds support to fetch device property "size" from _DSD. There is a CAT24C16/GT24C16S NVMEM chip part of the OV13858 camera module and it is connected to i2c bus on Intel KBL board. This device will use the existing ACPI ID INT3499 and platform fw will expose "read-on

Re: [PATCH v2 02/22] fpga: add FPGA device framework

2017-07-27 Thread Alan Tull
On Sun, Jun 25, 2017 at 8:51 PM, Wu Hao wrote: > During FPGA device (e.g PCI-based) discovery, platform devices are > registered for different FPGA function units. But the device node path > isn't quite friendly to applications. > Hi Hao, Please add a document for fpga-dev under Documentation/fp

Re: [PATCH] gpu: host1x: Free the IOMMU domain when there is no device to attach

2017-07-27 Thread Thierry Reding
On Mon, Jul 10, 2017 at 09:33:05PM +0200, Paul Kocialkowski wrote: > When there is no device to attach to the IOMMU domain, as may be the > case when the device-tree does not contain the proper iommu node, it is > best to keep going without IOMMU support rather than failing. > This allows the drive

[PATCH v2] cpuset: fix a deadlock due to incomplete patching of cpusets_enabled()

2017-07-27 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 ge

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

2017-07-27 Thread Daniel Micay
I think the 'else' added in the proposed patch makes it too complicated for GCC to optimize out the __attribute__((error)) checks before they're considered to be errors. It's not needed so it's probably best to just avoid doing something like that. The runtime checks can't get false positives from

Re: [RFT 2/2] ASoC: samsung: Add proper error paths to s3c24xx I2S driver

2017-07-27 Thread Krzysztof Kozlowski
On Thu, Jul 27, 2017 at 10:41:35AM +0530, Arvind Yadav wrote: > Hi, > > > On Thursday 27 July 2017 12:27 AM, Krzysztof Kozlowski wrote: > > s3c2412_i2s_probe() might fail so driver has to revert work done by > > s3c_i2sv2_probe() (clock enabling). Missing doing this would lead to > > clock enabl

[PATCH] Add support for low-level debug on STM32

2017-07-27 Thread Bich HEMON
This patch adds low-level debug support on USART1 for STM32F4 and STM32F7. Gerald Baeza (1): ARM: stm32: debug: add low-level debug support arch/arm/Kconfig.debug | 27 +++ arch/arm/include/debug/stm32.S | 41 + 2 files ch

[PATCH] ARM: stm32: debug: add low-level debug support

2017-07-27 Thread Bich HEMON
From: Gerald Baeza This adds low-level debug support on USART1 for STM32F4 and STM32F7. Compiled via 'CONFIG_DEBUG_LL' and 'CONFIG_EARLY_PRINTK'. Enabled via 'earlyprintk' in bootargs. Signed-off-by: Gerald Baeza Signed-off-by: Bich Hemon --- arch/arm/Kconfig.debug | 27 ++

Re: [PATCH v2 01/11] net: phy: Add rockchip phy driver support

2017-07-27 Thread Florian Fainelli
On 07/27/2017 05:55 AM, David Wu wrote: > Support internal ephy currently. > > Signed-off-by: David Wu > --- > changes in v2: > - Alphabetic order for Kconfig and Makefile. > - Add analog register init. > - Disable auto-mdix for workround. > - Rename config > > drivers/net/phy/Kconfig|

RE: [PATCH v6 1/1] acpi: apei: Enable APEI multiple GHES source to share a single external IRQ

2017-07-27 Thread Luck, Tony
>> Provided Tony agrees though... I'd venture a guess and say that he >> doesn't have a choice, woahahhahaha... >> >> :-))) > > Well, I guess send this officially with a CC:Tony and see what he says. :-) That's definitely part of my day job ... so yes, please add me as a reviewer. -Tony

[PATCH] vfio/pci: Fix handling of RC integrated endpoint PCIe capability size

2017-07-27 Thread Alex Williamson
Root complex integrated endpoints do not have a link and therefore may use a smaller PCIe capability in config space than we expect when building our config map. Add a case for these to avoid reporting an erroneous overlap. Signed-off-by: Alex Williamson --- drivers/vfio/pci/vfio_pci_config.c |

Re: [PATCH v2 05/11] net: stmmac: dwmac-rk: Add internal phy support

2017-07-27 Thread Florian Fainelli
On 07/27/2017 06:48 AM, Andrew Lunn wrote: > On Thu, Jul 27, 2017 at 09:02:16PM +0800, David Wu wrote: >> To make internal phy work, need to configure the phy_clock, >> phy cru_reset and related registers. >> >> Signed-off-by: David Wu >> --- >> changes in v2: >> - Use the standard "phy-mode" pro

Re: [PATCH v4 1/9] perf annotate: Widen "Event count" column when using --show-total-period

2017-07-27 Thread Arnaldo Carvalho de Melo
Em Fri, Jul 28, 2017 at 01:15:49AM +0900, Taeung Song escreveu: > Cc: Jiri Olsa > Cc: Namhyung Kim > Signed-off-by: Taeung Song > --- > tools/perf/util/annotate.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c >

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

2017-07-27 Thread Leonard Crestez
On Wed, 2017-07-26 at 11:36 +0530, Viresh Kumar wrote: > On 25-07-17, 14:54, Leonard Crestez wrote: > > This patch made it's way into linux-next and it seems to cause imx socs > > to almost always hang around their max frequency with the ondemand > > governor, even when almost completely idle. The

Re: [PATCH v4 2/9] perf annotate: Initialize proper width for first column

2017-07-27 Thread Arnaldo Carvalho de Melo
Em Fri, Jul 28, 2017 at 01:15:56AM +0900, Taeung Song escreveu: > When using --show-total-period or not, > set the width value for first column. > > Suggested-by: Arnaldo Carvalho de Melo > Cc: Namhyung Kim > Cc: Jiri Olsa > Signed-off-by: Taeung Song > --- > tools/perf/util/annotate.c | 4 ++

Re: [RFT 2/2] ASoC: samsung: Add proper error paths to s3c24xx I2S driver

2017-07-27 Thread Mark Brown
On Thu, Jul 27, 2017 at 06:51:13PM +0200, Krzysztof Kozlowski wrote: > On Thu, Jul 27, 2017 at 10:41:35AM +0530, Arvind Yadav wrote: > > On Thursday 27 July 2017 12:27 AM, Krzysztof Kozlowski wrote: > > Now s3c2412_i2s.iis_cclk and s3c2412_i2s.iis_pclk are holding "iis" clock. > > Now no one handl

Re: [PATCH v4 3/9] perf anntoate browser: Fix the toggle total period view showing number of samples

2017-07-27 Thread Arnaldo Carvalho de Melo
Em Fri, Jul 28, 2017 at 01:16:02AM +0900, Taeung Song escreveu: > Currently the toggle total period view on the annotate TUI > shows the number of samples, not period like below. > So fix the toggle total period view on the annotate TUI like below. > > $ perf annotate --show-total-period > > Be

Re: [PATCH] rwsem: fix missed wakeup due to reordering of load

2017-07-27 Thread Peter Zijlstra
On Thu, Jul 27, 2017 at 11:48:53AM -0400, Waiman Long wrote: > atomic_long_sub_return_release() is implmented. I've not had time to really thing about the problem at hand, but this I can answer: TSO (x86, s390, sparc): fully serialized PPC: lwsync; ll/sc (RCpc) ARM64: ll/sc-release(RCsc)

[PATCH] staging: media: davinci_vpfe: use __func__ for function names

2017-07-27 Thread Diwakar Sharma
Checkpatch reported warnings for use of embedded function names. Use __func__ instead of embedded function names. Signed-off-by: Diwakar Sharma --- drivers/staging/media/davinci_vpfe/dm365_ipipe.c | 10 +- drivers/staging/media/davinci_vpfe/vpfe_mc_capture.c | 8 2 files ch

Re: [PATCH] workqueue: Ensure that cpumask set for pools created after boot

2017-07-27 Thread Michael Bringmann
Sorry, I did try it. I must have forgotten to notify you of its success. Will next post an updated patch using 'pr_warn_once'. It prints a message during system initialization, by the way. Thanks. On 07/26/2017 02:16 PM, Tejun Heo wrote: > On Wed, Jul 26, 2017 at 10:25:08AM -0500, Michael Brin

[PATCH v5] workqueue: Fix edge cases for calc of pool's cpumask

2017-07-27 Thread Michael Bringmann
On NUMA systems with dynamic processors, the content of the cpumask may change over time. As new processors are added via DLPAR operations, workqueues are created for them. Depending upon the order in which CPUs are added/removed, we may run into problems with the content of the cpumask used by

Re: [PATCH v8 00/20] ILP32 for ARM64

2017-07-27 Thread Catalin Marinas
Hi Yury, On Mon, Jul 24, 2017 at 02:26:24PM +0300, Yury Norov wrote: > On Fri, Jul 07, 2017 at 06:11:36PM +0100, Catalin Marinas wrote: > > On Fri, Jul 07, 2017 at 12:59:02AM +0300, Yury Norov wrote: > > > If so, I would like to ask you to do the first ILP32 community poll > > > now, not in 6 mont

[RFT v2 0/3] ASoC: samsung: s3c24xx: Fixes for error paths

2017-07-27 Thread Krzysztof Kozlowski
Hi, Changes since v1: 1. Add patch 2/3. 2. Drop assignment of iis_cclk=iis_pclk to have balance with clk disables error and remove paths (pointed by Arvind). Best regards, Krzysztof Krzysztof Kozlowski (3): ASoC: samsung: Fix possible double iounmap on s3c24xx driver probe failure AS

[RFT v2 3/3] ASoC: samsung: Add proper error paths to s3c24xx I2S driver

2017-07-27 Thread Krzysztof Kozlowski
s3c2412_i2s_probe() might fail so driver has to revert work done by s3c_i2sv2_probe() (clock enabling). Missing doing this would lead to clock enable in-balance. Signed-off-by: Krzysztof Kozlowski --- Please, kindly test on S3C24xx hardware. Changes since v1: 1. Drop clk assignment to disable

[RFT v2 1/3] ASoC: samsung: Fix possible double iounmap on s3c24xx driver probe failure

2017-07-27 Thread Krzysztof Kozlowski
Commit 87b132bc0315 ("ASoC: samsung: s3c24{xx,12}-i2s: port to use generic dmaengine API") moved ioremap() call from s3c-i2s-v2.c:s3c_i2sv2_probe() to s3c2412-i2s.c:s3c2412_iis_dev_probe() and converted it to devm- resource managed interface. However the error path in first of them - s3c_i2sv2_pro

[RFT v2 2/3] ASoC: samsung: Add missing prepare for iis clock of s3c24xx

2017-07-27 Thread Krzysztof Kozlowski
The s3c_i2sv2_probe() only enabled iis clock. Missing prepare isn't probably fatal, because for SoC clocks this is usually no-op, but for correctness this clock should be prepared. Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. New patch --- sound/soc/samsung/s3c-i2s-v2.c | 2 +-

RE: [Linux-ima-devel] [RFC PATCH 1/5] ima: extend clone() with IMA namespace support

2017-07-27 Thread
> -Original Message- > From: Mimi Zohar [mailto:zo...@linux.vnet.ibm.com] > Sent: quinta-feira, 27 de julho de 2017 11:39 > To: Magalhaes, Guilherme (Brazil R&D-CL) > ; Serge E. Hallyn > Cc: Mehmet Kayaalp ; Yuqiong Sun > ; containers foundation.org>; linux-kernel ; David Safford > ; Ja

[PATCH] Coccinelle: Script to remove unnecessary static on local variables

2017-07-27 Thread Gustavo A. R. Silva
Coccinelle script to remove unnecessary static on local variables when the variables are not used before update. Signed-off-by: Gustavo A. R. Silva --- scripts/coccinelle/misc/static_unnecessary.cocci | 89 1 file changed, 89 insertions(+) create mode 100644 scripts/coc

Re: [PATCH] KVM: nVMX: do not pin the VMCS12

2017-07-27 Thread David Matlack
On Thu, Jul 27, 2017 at 6:54 AM, Paolo Bonzini wrote: > Since the current implementation of VMCS12 does a memcpy in and out > of guest memory, we do not need current_vmcs12 and current_vmcs12_page > anymore. current_vmptr is enough to read and write the VMCS12. This patch also fixes dirty tracki

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

2017-07-27 Thread David Daney
On 07/26/2017 07:29 PM, Greg KH wrote: On Wed, Jul 26, 2017 at 02:02:42PM -0700, David Daney wrote: On 07/26/2017 01:08 PM, Greg KH wrote: On Wed, Jul 26, 2017 at 01:02:38PM -0700, David Daney wrote: On 07/26/2017 10:33 AM, Greg KH wrote: On Wed, Jul 26, 2017 at 06:30:49PM +0200, Borislav Pet

Re: [PATCH v2 05/11] net: stmmac: dwmac-rk: Add internal phy support

2017-07-27 Thread Corentin Labbe
On Thu, Jul 27, 2017 at 09:54:01AM -0700, Florian Fainelli wrote: > On 07/27/2017 06:48 AM, Andrew Lunn wrote: > > On Thu, Jul 27, 2017 at 09:02:16PM +0800, David Wu wrote: > >> To make internal phy work, need to configure the phy_clock, > >> phy cru_reset and related registers. > >> > >> Signed-of

Re: [RFC v6 20/62] powerpc: store and restore the pkey state across context switches

2017-07-27 Thread Thiago Jung Bauermann
Ram Pai writes: > Store and restore the AMR, IAMR and UMOR register state of the task > before scheduling out and after scheduling in, respectively. > > Signed-off-by: Ram Pai s/UMOR/UAMOR/ > diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c > index 2ad725e..9429361 1

Re: [PATCH tip/core/rcu 02/15] rcu: Use timer as backstop for NOCB deferred wakeups

2017-07-27 Thread Paul E. McKenney
On Wed, Jul 26, 2017 at 07:09:34PM -0400, Steven Rostedt wrote: > On Wed, 26 Jul 2017 14:47:41 -0700 > "Paul E. McKenney" wrote: > > > > > It is much lighter weight than a timer setup. > > > > How much lighter weight? In other words, what fraction of the > > timers have to avoid being cancel

Re: [PATCH v1 1/2] x86/mm, kexec: Fix memory corruption with SME on successive kexecs

2017-07-27 Thread Linus Torvalds
On Thu, Jul 27, 2017 at 7:15 AM, Tom Lendacky wrote: > > I can #ifdef the wbinvd based on whether AMD_MEM_ENCRYPT is configured > or not so that the wbinvd is avoided if not configured. I suspect an ifdef will be useless, since things like distro kernels tend to enable everything. So it should p

Re: [PATCH] cgroup: add cgroup.stat interface with basic hierarchy stats

2017-07-27 Thread Waiman Long
On 07/27/2017 12:14 PM, Roman Gushchin wrote: > Add a cgroup.stat interface to the base cgroup control files > with the following metrics: > > nr_descendantstotal number of descendant cgroups > nr_dying_descendants total number of dying descendant cgroups > max_descendant_depth ma

Re: [PATCH v7 2/3] PCI: Enable PCIe Relaxed Ordering if supported

2017-07-27 Thread Casey Leedom
| From: Ding Tianhong | Sent: Wednesday, July 26, 2017 6:01 PM | | On 2017/7/27 3:05, Casey Leedom wrote: | > | > Ding, send me a note if you'd like me to work that [cxgb4vf patch] up | > for you. | | Ok, you could send the change log and I could put it in the v8 version | together, will you base

Re: [PATCH] cgroup: add cgroup.stat interface with basic hierarchy stats

2017-07-27 Thread Roman Gushchin
On Thu, Jul 27, 2017 at 01:38:55PM -0400, Waiman Long wrote: > On 07/27/2017 12:14 PM, Roman Gushchin wrote: > > Add a cgroup.stat interface to the base cgroup control files > > with the following metrics: > > > > nr_descendants total number of descendant cgroups > > nr_dying_descendan

Re: [PATCH v7 2/3] PCI: Enable PCIe Relaxed Ordering if supported

2017-07-27 Thread Alexander Duyck
On Wed, Jul 26, 2017 at 6:08 PM, Ding Tianhong wrote: > > > On 2017/7/27 2:26, Casey Leedom wrote: >> By the way Ding, two issues: >> >> 1. Did we ever get any acknowledgement from either Intel or AMD >> on this patch? I know that we can't ensure that, but it sure would >> be nice sinc

Re: [Linux-ima-devel] [RFC PATCH 1/5] ima: extend clone() with IMA namespace support

2017-07-27 Thread Stefan Berger
On 07/27/2017 01:18 PM, Magalhaes, Guilherme (Brazil R&D-CL) wrote: -Original Message- From: Mimi Zohar [mailto:zo...@linux.vnet.ibm.com] Sent: quinta-feira, 27 de julho de 2017 11:39 To: Magalhaes, Guilherme (Brazil R&D-CL) ; Serge E. Hallyn Cc: Mehmet Kayaalp ; Yuqiong Sun ; containe

Re: [PATCH] KVM: nVMX: do not pin the VMCS12

2017-07-27 Thread David Hildenbrand
On 27.07.2017 15:54, Paolo Bonzini wrote: > Since the current implementation of VMCS12 does a memcpy in and out > of guest memory, we do not need current_vmcs12 and current_vmcs12_page > anymore. current_vmptr is enough to read and write the VMCS12. > > Signed-off-by: Paolo Bonzini This looks l

Re: [PATCH] cgroup: add cgroup.stat interface with basic hierarchy stats

2017-07-27 Thread Waiman Long
On 07/27/2017 01:46 PM, Roman Gushchin wrote: > On Thu, Jul 27, 2017 at 01:38:55PM -0400, Waiman Long wrote: >> On 07/27/2017 12:14 PM, Roman Gushchin wrote: >>> Add a cgroup.stat interface to the base cgroup control files >>> with the following metrics: >>> >>> nr_descendants total nu

Re: linux-next: Signed-off-by missing from a commit in the tip tree

2017-07-27 Thread Arnaldo Carvalho de Melo
Em Thu, Jul 27, 2017 at 09:48:34AM +1000, Stephen Rothwell escreveu: > Hi all, > > Commit > > 585d93c5ffcc ("perf annotate stdio: Fix --show-total-period") > > has no Signed-off-by for its author. Ouch, my bad, will have this added to my git hooks... - Arnaldo

RE: [PATCH V4 net-next 6/8] net: hns3: Add MDIO support to HNS3 Ethernet driver for hip08 SoC

2017-07-27 Thread Salil Mehta
Hi Florian, > -Original Message- > From: Florian Fainelli [mailto:f.faine...@gmail.com] > Sent: Sunday, July 23, 2017 5:54 PM > To: Salil Mehta; da...@davemloft.net > Cc: Zhuangyuzeng (Yisen); huangdaode; lipeng (Y); > mehta.salil@gmail.com; net...@vger.kernel.org; linux- > ker...@vger

Re: [PATCH] rcu: mark debug_lockdep_rcu_enabled() as pure

2017-07-27 Thread Paul E. McKenney
On Sun, May 21, 2017 at 11:51:39AM +0300, Konstantin Khlebnikov wrote: > On 20.05.2017 19:42, Paul E. McKenney wrote: > >On Fri, May 19, 2017 at 10:03:59AM +0300, Konstantin Khlebnikov wrote: > >>This allows to get rid of unneeded invocations. > >> > >>Function debug_lockdep_rcu_enabled() becomes r

Re: [PATCH v5] workqueue: Fix edge cases for calc of pool's cpumask

2017-07-27 Thread Tejun Heo
Hello, Michael. On Thu, Jul 27, 2017 at 12:06:22PM -0500, Michael Bringmann wrote: > > On NUMA systems with dynamic processors, the content of the cpumask > may change over time. As new processors are added via DLPAR operations, > workqueues are created for them. Depending upon the order in whi

Re: [libvirt] [RFC]Add new mdev interface for QoS

2017-07-27 Thread Alex Williamson
On Thu, 27 Jul 2017 17:17:48 +0100 "Daniel P. Berrange" wrote: > On Wed, Jul 26, 2017 at 10:43:43AM -0600, Alex Williamson wrote: > > [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 sh

RE: [PATCH V4 net-next 7/8] net: hns3: Add Ethtool support to HNS3 driver

2017-07-27 Thread Salil Mehta
Hi Florian, > -Original Message- > From: Florian Fainelli [mailto:f.faine...@gmail.com] > Sent: Sunday, July 23, 2017 6:05 PM > To: Salil Mehta; da...@davemloft.net > Cc: Zhuangyuzeng (Yisen); huangdaode; lipeng (Y); > mehta.salil@gmail.com; net...@vger.kernel.org; linux- > ker...@vger

Re: [PATCH V4 net-next 7/8] net: hns3: Add Ethtool support to HNS3 driver

2017-07-27 Thread Florian Fainelli
On 07/27/2017 11:01 AM, Salil Mehta wrote: > Hi Florian, > >> -Original Message- >> From: Florian Fainelli [mailto:f.faine...@gmail.com] >> Sent: Sunday, July 23, 2017 6:05 PM >> To: Salil Mehta; da...@davemloft.net >> Cc: Zhuangyuzeng (Yisen); huangdaode; lipeng (Y); >> mehta.salil@gm

[PATCH v1 1/1] watchdog: iTCO_wdt: Move update_no_reboot_bit() out of atomic context

2017-07-27 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan In iTCO_wdt_start() and iTCO_wdt_stop() functions, update_no_reboot_bit() call has been made within io_lock spin lock context. But if the update_no_reboot_bit() function is implemented by chipset/PMC driver then we can't be sure whether their implementation does n

Udpated sys_membarrier() speedup patch, FYI

2017-07-27 Thread Paul E. McKenney
Hello! Please see below for a prototype sys_membarrier() speedup patch. Please note that there is some controversy on this subject, so the final version will probably be quite a bit different than this prototype. But my main question is whether the throttling shown below is acceptable for your us

[PATCH v2] net: inet: diag: expose sockets cgroup classid

2017-07-27 Thread Levin, Alexander (Sasha Levin)
This is useful for directly looking up a task based on class id rather than having to scan through all open file descriptors. Signed-off-by: Sasha Levin --- Changes in V2: - Addressed comments from Cong Wang (use nla_put_u32()) include/uapi/linux/inet_diag.h | 1 + net/ipv4/inet_diag.c

[PATCH v6] workqueue: Fix edge cases for calc of pool's cpumask

2017-07-27 Thread Michael Bringmann
On NUMA systems with dynamic processors, the content of the cpumask may change over time. As new processors are added via DLPAR operations, workqueues are created for them. Depending upon the order in which CPUs are added/removed, we may run into problems with the content of the cpumask used by

Re: [PATCH v3] irqchip/tango: Don't use incorrect irq_mask_ack callback

2017-07-27 Thread Florian Fainelli
On 07/26/2017 12:13 PM, Måns Rullgård wrote: > Florian Fainelli writes: > >> On 07/25/2017 06:29 AM, Måns Rullgård wrote: >>> Marc Gonzalez writes: >>> On 25/07/2017 15:16, Måns Rullgård wrote: > What happened to the patch adding the proper combined function? It appears y

Re: xattr hash error in 4.13-rc with overlayfs over ext4

2017-07-27 Thread Tahsin Erdogan
Hi Miklos, I made a first attempt to reproduce the failure but did not get lucky. > Inode 3093, i_blocks is 16, should be 8. Fix? yes Does this inode correspond to foo, bar or a preexisting file? Do you mind sharing the output of the following command? debugfs -R "stat <3093>" /dev/${ext4_dev}

Re: [PATCH v9 10/10] tracing/hyper-v: trace hyperv_mmu_flush_tlb_others()

2017-07-27 Thread Steven Rostedt
On Fri, 14 Jul 2017 14:44:42 +0200 Vitaly Kuznetsov wrote: > Add Hyper-V tracing subsystem and trace hyperv_mmu_flush_tlb_others(). > Tracing is done the same way we do xen_mmu_flush_tlb_others(). > > Signed-off-by: Vitaly Kuznetsov > Reviewed-by: Andy Shevchenko > Reviewed-by: Stephen Hemming

I NEED YOUR URGENT HELP AND CORPERATION

2017-07-27 Thread IBRAHIM KABORE
Dear Friend I am contacting you on a business deal of $9,500,000.00 Million United States Dollars, ready for transfer into your own personal account and if we make this claim, we will share it on the ratio of 50% / 50% basis, I would like to assure you that it be 100% risk free and it will be l

Re: [PATCH] KVM: nVMX: INVPCID support

2017-07-27 Thread David Hildenbrand
On 27.07.2017 15:20, Paolo Bonzini wrote: > Expose the "Enable INVPCID" secondary execution control to the guest > and properly reflect the exit reason. > > In addition, before this patch the guest was always running with > INVPCID enabled, causing pcid.flat's "Test on INVPCID when disabled" > tes

[PATCH 1/3] perf tools: Add callchain to ctf conversion

2017-07-27 Thread Geneviève Bastien
The field perf_callchain, if available, is added to the sampling events during the CTF conversion. It is an array of u64 values. The perf_callchain_size field contains the size of the array. It will allow the analysis of sampling data in trace visualization tools like Trace Compass. Possible analy

[PATCH 3/3] perf: Add doc when no conversion support compiled

2017-07-27 Thread Geneviève Bastien
This adds documentation on the environment variables needed to the message telling that no conversion support is compiled in. Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo Cc: Alexander Shishkin Cc: Mathieu Desnoyers Cc: Julien Desfossez Cc: Francis Deslauriers Cc: Jiri Ol

use-after-free. [libata/block]

2017-07-27 Thread Dave Jones
Found this in the logs this morning after an overnight fuzz run.. BUG: KASAN: use-after-free in __lock_acquire+0x1aa/0x1970 Read of size 8 at addr 880406805e30 by task trinity-c8/25954 CPU: 1 PID: 25954 Comm: trinity-c8 Not tainted 4.13.0-rc2-think+ #1 Call Trace: dump_stack+0x68/0xa1 pr

<    1   2   3   4   5   6   7   8   9   >