Re: [PATCH v6 05/21] net-next: stmmac: Add dwmac-sun8i

2017-06-30 Thread Corentin Labbe
On Tue, Jun 27, 2017 at 10:37:34AM -0700, Florian Fainelli wrote: > On 06/27/2017 10:29 AM, Maxime Ripard wrote: > > On Tue, Jun 27, 2017 at 02:37:48PM +0200, Corentin Labbe wrote: > >> On Tue, Jun 27, 2017 at 11:33:56AM +0100, Andre Przywara wrote: > >>> Hi, > >>> > >>> On 27/06/17 11:23, Icenowy

Re: [PATCH 3/3] livepatch: add shadow variable sample program

2017-06-30 Thread Miroslav Benes
On Fri, 30 Jun 2017, Josh Poimboeuf wrote: > On Mon, Jun 19, 2017 at 06:56:37PM +0200, Miroslav Benes wrote: > > > > > > > I often wonder whether it's really a good idea to even allow the > > > > > unloading of patch modules at all. It adds complexity to the > > > > > livepatch > > > > > code.

Re: [PATCH v2] selftests: add a generic testsuite for ethernet device

2017-06-30 Thread Corentin Labbe
On Thu, Jun 29, 2017 at 11:26:40AM +0300, Fathi Boudra wrote: > On 4 April 2017 at 16:32, Corentin Labbe wrote: > > This patch add a generic testsuite for testing ethernet network device > > driver. > > > > Signed-off-by: Corentin Labbe > > --- > > > > Changes since v1: > > - Test for starting m

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

2017-06-30 Thread Jonathan Liu
Hi Maxime, On 30 June 2017 at 19:58, Jonathan Liu wrote: > Hi Maxime, > > On 30 June 2017 at 19:34, Maxime Ripard > wrote: >> Hi, >> >> On Fri, Jun 30, 2017 at 08:22:13AM +1000, Jonathan Liu wrote: >>> Hi Maxime, >>> >>> On 30 June 2017 at 01:56, Maxime Ripard >>> wrote: >>> > On Wed, Jun 28, 2

Re: [PATCH] ALSA: atmel: ac97c: fix error return code in atmel_ac97c_probe()

2017-06-30 Thread Takashi Iwai
On Sat, 01 Jul 2017 00:34:23 +0200, Gustavo A. R. Silva wrote: > > platform_get_irq() returns an error code, but the ac97c > driver ignores it and always returns -ENXIO. This is not correct, > and prevents -EPROBE_DEFER from being propagated properly. > Notice that platform_get_irq() no longer ret

Re: [PATCH 1/2] KVM: nVMX: Implement EPTP switching for the L1 hypervisor

2017-06-30 Thread Paolo Bonzini
> > What happens if the root_hpa is dropped by the L0 MMU? I'm not sure > > what removes it from the shadow EPT list. > > That would result in a vmfunc vmexit, which will jump to handle_vmfunc > and then a call to mmu_alloc_shadow_roots() that will overwrite the shadow > eptp entry with the new

Re: did vfs_read or something related to it get broken?

2017-06-30 Thread David F.
Answer: No nothing got broken except the driver itself. On Fri, Jun 30, 2017 at 4:10 PM, David F. wrote: > Hi, > > I have a driver that reads data from a file that has worked from > kernel 3.x up to 4.9.13. I haven't tried all the other 4.9's or 4.10, > or 4.11.6 or earlier, but in 4.11.7 it's n

Re: [PATCH] sched/pelt: fix false running accounting in PELT

2017-06-30 Thread Vincent Guittot
On 30 June 2017 at 15:58, Vincent Guittot wrote: > The running state is a subset of runnable state which means that running > can't be set if runnable (weight) is cleared. There are corner cases > where the current sched_entity has been already dequeued but cfs_rq->curr > has not been updated yet

[PATCH v2] sched/pelt: fix false running accounting

2017-06-30 Thread Vincent Guittot
The running state is a subset of runnable state which means that running can't be set if runnable (weight) is cleared. There are corner cases where the current sched_entity has been already dequeued but cfs_rq->curr has not been updated yet and still points to the dequeued sched_entity. If ___updat

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

2017-06-30 Thread 刘炜
Hi, Andrea OWL_CPUx_ADDR is the physical address of CPUx wakeup function. OWL_CPUx_FLAG is a valid flag of OWL_CPUx_ADDR. After CPUxs are wakeuped by SEV instruction, they will check their own OWL_CPUx_FLAG register. If the register vlaue is 0x55aa, CPUx will jump to OWL_CPUx_ADDR to boot up,

Re: [PATCH] ASoC: imx-ssi: add check on platform_get_irq return value

2017-06-30 Thread Nicolin Chen
On Fri, Jun 30, 2017 at 05:17:35PM -0500, Gustavo A. R. Silva wrote: > Check return value from call to platform_get_irq(), > so in case of failure print error message and propagate > the return value. > > Signed-off-by: Gustavo A. R. Silva Acked-by: Nicolin Chen Thanks > --- > sound/soc/fsl/

Re: [PATCH] vmalloc: respect the GFP_NOIO and GFP_NOFS flags

2017-06-30 Thread Mikulas Patocka
On Fri, 30 Jun 2017, Andreas Dilger wrote: > On Jun 29, 2017, at 8:25 PM, Mikulas Patocka wrote: > > > > The __vmalloc function has a parameter gfp_mask with the allocation flags, > > however it doesn't fully respect the GFP_NOIO and GFP_NOFS flags. The > > pages are allocated with the specifi

Re: [PATCH v4 3/6] libnvdimm, acpi, nfit: Add bus level dsm mask for pass thru.

2017-06-30 Thread Dan Williams
On Fri, Jun 30, 2017 at 9:09 AM, Jerry Hoemann wrote: > Add a bus level dsm_mask to nvdimm_bus_descriptor to allow the passthru > calling mechanism to specify a different mask from the cmd_mask. > > Populate bus_dsm_mask and use it to filter dsm calls that user can > make through the pass thru int

Re: [PATCH v4 6/6] nfit allow override of root dsm mask

2017-06-30 Thread Dan Williams
On Fri, Jun 30, 2017 at 9:09 AM, Jerry Hoemann wrote: > Have module parameter override_dsm_mask override the dsm_mask for > root calls like it does for non-root dsm calls. > > Signed-off-by: Jerry Hoemann > --- > drivers/acpi/nfit/core.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a

Re: linux-next: build warning after merge of the drivers-x86 tree

2017-06-30 Thread Darren Hart
On Fri, Jun 30, 2017 at 02:00:54PM +1000, Stephen Rothwell wrote: > Hi Darren, > > After merging the drivers-x86 tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > drivers/platform/x86/sony-laptop.c: In function 'sony_laptop_setup_input': > drivers/platform/x86/sony

Re: [PATCH] platform/x86: sony-laptop: revert 'const' on keymap

2017-06-30 Thread Darren Hart
On Fri, Jun 30, 2017 at 11:50:52PM +0300, Andy Shevchenko wrote: > On Fri, Jun 30, 2017 at 9:21 PM, Darren Hart wrote: > > On Fri, Jun 30, 2017 at 06:58:24PM +0300, Andy Shevchenko wrote: > >> On Fri, Jun 30, 2017 at 6:45 PM, Arnd Bergmann wrote: > > > Will you squash it, or shall I? > > Please

Re: [PATCH] vmalloc: respect the GFP_NOIO and GFP_NOFS flags

2017-06-30 Thread Andreas Dilger
On Jun 29, 2017, at 8:25 PM, Mikulas Patocka wrote: > > The __vmalloc function has a parameter gfp_mask with the allocation flags, > however it doesn't fully respect the GFP_NOIO and GFP_NOFS flags. The > pages are allocated with the specified gfp flags, but the pagetables are > always allocated

Re: [PATCH v2 2/2] thermal: uniphier: add UniPhier thermal driver

2017-06-30 Thread Eduardo Valentin
Hey, On Wed, Jun 28, 2017 at 07:11:59PM +0900, Kunihiko Hayashi wrote: > Add a thermal driver for on-chip PVT (Process, Voltage and Temperature) > monitoring unit implemented on UniPhier SoCs. This driver supports > temperature monitoring and alert function. > > Signed-off-by: Kunihiko Hayashi >

Re: [Patch v2 3/3] arm64: dts: register Hi3660's thermal sensor

2017-06-30 Thread Eduardo Valentin
On Thu, Jun 22, 2017 at 11:42:03AM +0800, Tao Wang wrote: > Bind thermal sensor driver for Hi3660. > > Signed-off-by: Tao Wang > Signed-off-by: Leo Yan > --- > Changes in v2: > - rebase changes on linux next > > arch/arm64/boot/dts/hisilicon/hi3660.dtsi |6 ++ > 1 file changed, 6 inser

Re: [PATCH v2 2/2] thermal: core: Allow to disable polling when disabling thermal zone.

2017-06-30 Thread Zhang Rui
Hi, Enric, On Fri, 2017-06-30 at 10:15 +0200, Enric Balletbo Serra wrote: > Hi Rui, > > 2017-06-30 7:05 GMT+02:00 Zhang Rui : > > > > On Thu, 2017-06-29 at 18:50 +0200, Enric Balletbo i Serra wrote: > > > > > > Under each thermal zone there is a optional file called "mode". > > > Writing > > >

Re: [Patch v2 1/3] dt-bindings: Document the hi3660 thermal sensor bindings

2017-06-30 Thread Eduardo Valentin
On Thu, Jun 22, 2017 at 11:42:01AM +0800, Tao Wang wrote: > This adds documentation of device tree bindings for the > thermal sensor controller of hi3660 SoC. > > Signed-off-by: Tao Wang > --- > Changes in v2: > - remove redundant property > > .../devicetree/bindings/thermal/hi3660-thermal.txt

Re: [Patch v2 2/3] thermal: hisilicon: add thermal sensor driver for Hi3660

2017-06-30 Thread Eduardo Valentin
Hey Tao, On Thu, Jun 22, 2017 at 11:42:02AM +0800, Tao Wang wrote: > This patch adds the support for thermal sensor of Hi3660 SoC. > this will register sensors for thermal framework and use device > tree to bind cooling device. > > Signed-off-by: Tao Wang > Signed-off-by: Leo Yan > --- > Change

RE: [PATCH v2] selftests: kcmp: convert to TAP13 output

2017-06-30 Thread Bird, Timothy
> -Original Message- > From: Paul Elder on Friday, June 30, 2017 7:28 PM > On 07/01/2017 08:47 AM, Shuah Khan wrote: > > Convert to TAP13 output using ksft_ api. Child runs tests, increments test > > counters, and prints test results. > > > > Signed-off-by: Shuah Khan > > --- > > > > Cha

Re: [PATCH v2] thermal: bcm2835: Fix error code in 'bcm2835_thermal_probe'

2017-06-30 Thread Eduardo Valentin
On Fri, Jun 23, 2017 at 10:25:45PM +0200, Stefan Wahren wrote: > > > Christophe JAILLET hat am 23. Juni 2017 um > > 21:44 geschrieben: > > > > > > 'tz' is a valid pointer at this point, so calling PTR_ERR on it is > > pointless. > > This 'err = PTR_ERR(tz)' looks like a cut'n'paste from a few

Re: [PATCH 4/4] thermal: Add Tegra BPMP thermal sensor driver

2017-06-30 Thread Eduardo Valentin
Hey Mikko, Sorry for the late answer, On Fri, Jun 16, 2017 at 02:28:25PM +0300, Mikko Perttunen wrote: > On Tegra186, the BPMP (Boot and Power Management Processor) exposes an > interface to thermal sensors on the system-on-chip. This driver > implements access to the interface. It supports readi

seq_file optimization?

2017-06-30 Thread Joe Perches
About this commit in mm: --- commit c1aca87fb3f84a813fb3dda656bbee583c9c87a3 Author: Alexey Dobriyan Date:   Fri Jun 30 11:02:04 2017 +1000 fs/seq_file.c: delete small-value optimization num_to_str() optimizes printing small integers [

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

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

[PATCH v6 6/6] g_NCR5380: Various DTC436 workarounds

2017-06-30 Thread Finn Thain
From: Ondrej Zary Limit PDMA send to 512 B to avoid data corruption on DTC3181E. The corruption is always the same: one byte missing at the beginning of a 128 B block. It happens only with slow Quantum LPS 240 drive, not with faster IBM DORS-32160. It's not clear what causes this. Documentation f

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

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

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

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

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

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

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

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

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

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

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

2017-06-30 Thread Finn Thain
On Fri, 30 Jun 2017, Ondrej Zary wrote: > > > No more log spamming on DTC but reads are corrupted even more than > > > before. The IRQ check after data transfer increases the chance of > > > catching an IRQ before the buffer could become ready. > > > > If we delay the IRQ check, that just means

Re: [PATCH v2] selftests: kcmp: convert to TAP13 output

2017-06-30 Thread Paul Elder
On 07/01/2017 08:47 AM, Shuah Khan wrote: > Convert to TAP13 output using ksft_ api. Child runs tests, increments test > counters, and prints test results. > > Signed-off-by: Shuah Khan > --- > > Changes since v1: > - Add ksft_print_header() > > tools/testing/selftests/kcmp/kcmp_test.c | 48 >

[PATCH tip/perf/core 2/7] perf maps: lookup maps in both intitial mountns and inner mountns.

2017-06-30 Thread Krister Johansen
If a process is in a mountns and has symbols in /tmp/perf-.map, look first in the namespace using the tgid for the pidns that the process might be in. If the map isn't found there, try looking in the mountns where perf is running, and use the tgid that's appropriate for perf's pid namespace. If a

[PATCH tip/perf/core 1/7] perf symbols: find symbols in different mount namespace

2017-06-30 Thread Krister Johansen
Teach perf how to resolve symbols from binaries that are in a different mount namespace from the tool. This allows perf to generate meaningful stack traces even if the binary resides in a different mount namespace from the tool. Signed-off-by: Krister Johansen --- tools/perf/util/dso.c|

[PATCH tip/perf/core 7/7] perf buildid-cache: cache debuginfo

2017-06-30 Thread Krister Johansen
If a stripped binary is placed in the cache, the user is in a situation where there's a cached elf file present, but it doesn't have any symtab to use for name resolution. Grab the debuginfo for binaries that don't end in .ko. This yields a better chance of resolving symbols from older traces. S

[PATCH tip/perf/core 5/7] perf top: support lookup of symbols in other mount namespaces.

2017-06-30 Thread Krister Johansen
The perf top command needs to unshare its fs from the helper threads in order to successfully setns(2) during its symbol lookup. It also needs to impelement a force flag to ignore ownership of perf-.map files. Signed-off-by: Krister Johansen --- tools/perf/builtin-top.c | 15 +++ 1

[PATCH tip/perf/core 6/7] perf documentation: updates for target-ns.

2017-06-30 Thread Krister Johansen
Update the perf documentation to describe the --target-ns option to probe and buildid-cache. Note the existence of the new --force flag to top. Signed-off-by: Krister Johansen --- tools/perf/Documentation/perf-buildid-cache.txt | 5 + tools/perf/Documentation/perf-probe.txt | 5

[PATCH tip/perf/core 3/7] perf probe: allow placing uprobes in alternate namespaces.

2017-06-30 Thread Krister Johansen
Teaches perf how to place a uprobe on a file that's in a different mount namespace. The user must add the probe using the --target-ns argument to perf probe. Once it has been placed, it may be recorded against without further namespace-specific commands. Signed-off-by: Krister Johansen --- too

[PATCH tip/perf/core 0/7] namespace tracing improvements

2017-06-30 Thread Krister Johansen
This patch set is similar to a set of features I implemented for bcc back in April. At a high-level it does the following: - Allow the tracing tools to resolve symbols if the traced process has a binary that is in a different mount namespace from perf. - Allow the perf-.map files to live eithe

[PATCH tip/perf/core 4/7] perf buildid-cache: support binary objects from other namespaces

2017-06-30 Thread Krister Johansen
Teach buildid-cache how to add, remove, and update binary objects from other mount namespaces. Allow probe events tracing binaries in different namespaces to add their objects to the probe and build-id caches too. As a handy side effect, this also lets us access SDT probes in binaries from altern

Re: [HMM 12/15] mm/migrate: new memory migration helper for use with device memory v4

2017-06-30 Thread Evgeny Baskakov
On 6/30/17 5:57 PM, Jerome Glisse wrote: On Fri, Jun 30, 2017 at 04:19:25PM -0700, Evgeny Baskakov wrote: Hi Jerome, It seems that the kernel can pass 0 in src_pfns for pages that it cannot migrate (i.e. the kernel knows that they cannot migrate prior to calling alloc_and_copy). So, a zero in

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

2017-06-30 Thread Sergey Senozhatsky
On (06/30/17 10:45), Steven Rostedt wrote: > On Fri, 30 Jun 2017 23:28:51 +0900 > Sergey Senozhatsky wrote: > > > I guess the question was, a knob that would determine what happens after > > current wakes up printk_kthread -- does it stay in console_unlock() and > > wait for new console_sem owner

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

2017-06-30 Thread Michael Ellerman
Fathi Boudra writes: > On 30 June 2017 at 05:20, Bamvor Zhang Jian > wrote: >> On 29 June 2017 at 19:39, Fathi Boudra wrote: >>> On 29 June 2017 at 12:01, Michael Ellerman wrote: Fathi Boudra writes: > Fix hardcoded and misplaced libmount headers. Use pkg-config instead to

Re: [RFC/RFT PATCH 2/4] net: ethernat: ti: cpts: enable irq

2017-06-30 Thread Ivan Khoronzhuk
On Tue, Jun 13, 2017 at 06:16:21PM -0500, Grygorii Strashko wrote: > There are two reasons for this change: > 1) enabling of HW_TS_PUSH events as suggested by Richard Cochran and > discussed in [1] > 2) fixing an TX timestamping miss issue which happens with low speed > ethernet connections and was

Re: [HMM 12/15] mm/migrate: new memory migration helper for use with device memory v4

2017-06-30 Thread Jerome Glisse
On Fri, Jun 30, 2017 at 04:19:25PM -0700, Evgeny Baskakov wrote: > Hi Jerome, > > It seems that the kernel can pass 0 in src_pfns for pages that it cannot > migrate (i.e. the kernel knows that they cannot migrate prior to calling > alloc_and_copy). > > So, a zero in src_pfns can mean either "the

Re: [RFC PATCH] userfaultfd: Add feature to request for a signal delivery

2017-06-30 Thread prakash sangappa
On 6/30/2017 6:08 AM, Andrea Arcangeli wrote: On Fri, Jun 30, 2017 at 11:47:35AM +0200, Michal Hocko wrote: [...] As an aside, I rememeber that prior to MADV_FREE there was long discussion about lazy freeing of memory from userspace. Some users wanted to be signalled when their memory was free

Re: [PATCH 1/9] clk: clk-divider: add CLK_DIVIDER_ZERO_GATE clk support

2017-06-30 Thread Stephen Boyd
On 06/20, Dong Aisheng wrote: > Hi Stephen, > > On Mon, Jun 19, 2017 at 06:45:12PM -0700, Stephen Boyd wrote: > > On 05/15, Dong Aisheng wrote: > > > --- > > > drivers/clk/clk-divider.c| 2 ++ > > > include/linux/clk-provider.h | 4 > > > 2 files changed, 6 insertions(+) > > > > > > dif

Re: [PATCH v2] ACPI: surface3_power: MSHW0011 rev-eng implementation

2017-06-30 Thread Sebastian Reichel
Hi, On Thu, Jun 29, 2017 at 02:10:09PM +0200, Benjamin Tissoires wrote: > [...] > > + /* get design capacity */ > + ret = i2c_smbus_read_word_data(client, > +MSHW0011_BAT0_REG_DESIGN_CAPACITY); > + if (ret < 0) { > + dev_err(&client->dev,

RE: [PATCH v2] libnvdimm, pmem: Add sysfs notifications to badblocks

2017-06-30 Thread Kani, Toshimitsu
> > Sysfs "badblocks" information may be updated during run-time that: > > - MCE, SCI, and sysfs "scrub" may add new bad blocks > > - Writes and ioctl() may clear bad blocks > > > > Add support to send sysfs notifications to sysfs "badblocks" file > > under region and pmem directories when their

Re: [PATCH 4/9] clk: imx: add pllv4 support

2017-06-30 Thread Stephen Boyd
On 06/20, Dong Aisheng wrote: > On Mon, Jun 19, 2017 at 06:59:17PM -0700, Stephen Boyd wrote: > > On 05/15, Dong Aisheng wrote: > > > + > > > + if (clk_pllv4_is_enabled(hw)) { > > > + WARN(1, "clk_pllv4: can't change rate when pll is enabled"); > > > + return -EINVAL; > > > > Sad,

Re: [PATCH] vmalloc: respect the GFP_NOIO and GFP_NOFS flags

2017-06-30 Thread Mikulas Patocka
On Fri, 30 Jun 2017, Michal Hocko wrote: > On Fri 30-06-17 14:11:57, Mikulas Patocka wrote: > > > > > > On Fri, 30 Jun 2017, Michal Hocko wrote: > > > > > On Thu 29-06-17 22:25:09, Mikulas Patocka wrote: > > > > The __vmalloc function has a parameter gfp_mask with the allocation > > > > flag

Re: [PATCH 9/9] clk: imx: add imx7ulp clk driver

2017-06-30 Thread Stephen Boyd
On 06/21, A.s. Dong wrote: > > -Original Message- > > From: Stephen Boyd [mailto:sb...@codeaurora.org] > > Sent: Wednesday, June 21, 2017 4:42 AM > > To: Dong Aisheng > > Cc: A.s. Dong; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > > linux-arm-ker...@lists.infradead.org; mturqu

Re: [PATCH] tracing: Add saved_tgids file to show cached pid to tgid mappings

2017-06-30 Thread Michael Sartain
On Fri, Jun 30, 2017 at 05:50:57PM -0400, Steven Rostedt wrote: > On Fri, 30 Jun 2017 11:17:50 -0600 > Michael Sartain wrote: > > > Export the cached pid / tgid mappings to userspace. This allows user > > apps to translate the pids from a trace to their respective thread > > group. > > > > Examp

Re: [PATCH 08/10] x86/hyper-v: use hypercall for remote TLB flush

2017-06-30 Thread kbuild test robot
Hi Vitaly, [auto build test WARNING on next-20170619] [cannot apply to tip/x86/core linus/master linux/master v4.12-rc6 v4.12-rc5 v4.12-rc4 v4.12-rc7] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/com

Re: [PATCH 07/15] mm/ZONE_DEVICE: new type of ZONE_DEVICE for unaddressable memory v4

2017-06-30 Thread kbuild test robot
Hi Jérôme, [auto build test WARNING on mmotm/master] [also build test WARNING on next-20170630] [cannot apply to linus/master v4.12-rc7] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/J-r-me

Re: [PATCH] kbuild: modpost: Warn about references from rodata to __init text

2017-06-30 Thread Rob Clark
On Fri, Jun 30, 2017 at 6:58 PM, Stephen Boyd wrote: > If we have a structure that's marked const it will be placed > into the .rodata section but it could reference an init section > function. Include the read only data section in the check we have > for read/write data sections referencing init

Re: [PATCH 1/4] arm64: tegra: Add BPMP thermal sensor to Tegra186

2017-06-30 Thread Eduardo Valentin
On Fri, Jun 16, 2017 at 02:28:22PM +0300, Mikko Perttunen wrote: > This adds the thermal sensor device provided by the BPMP, and the > relevant thermal sensors to the Tegra186 device tree. > > Signed-off-by: Mikko Perttunen > --- > arch/arm64/boot/dts/nvidia/tegra186.dtsi | 48 > +++

Re: [PATCH 2/2] scsi: qla2xxx: avoid unused-function warning

2017-06-30 Thread Madhani, Himanshu
> On Jun 30, 2017, at 9:10 AM, Arnd Bergmann wrote: > > When NVMe support is disabled, we get a couple of harmless warnings: > > drivers/scsi/qla2xxx/qla_nvme.c:667:13: error: > 'qla_nvme_unregister_remote_port' defined but not used > [-Werror=unused-function] > drivers/scsi/qla2xxx/qla_nvme.

Re: [RFC v2 PATCH] x86/boot: Add the secdata section to the setup header

2017-06-30 Thread joeyli
Hi Ard, On Thu, Jun 01, 2017 at 08:46:26AM +, Ard Biesheuvel wrote: > On 1 June 2017 at 08:11, Gary Lin wrote: > > On Fri, May 12, 2017 at 04:05:34PM +0800, Gary Lin wrote: > >> A new section, secdata, in the setup header is introduced to store the > >> distro-specific security version which

[PATCH v2] selftests: kcmp: convert to TAP13 output

2017-06-30 Thread Shuah Khan
Convert to TAP13 output using ksft_ api. Child runs tests, increments test counters, and prints test results. Signed-off-by: Shuah Khan --- Changes since v1: - Add ksft_print_header() tools/testing/selftests/kcmp/kcmp_test.c | 48 +--- 1 file changed, 19 insertions(

Re: [PATCH] tracing: Add saved_tgids file to show cached pid to tgid mappings

2017-06-30 Thread Joel Fernandes
On Fri, Jun 30, 2017 at 2:50 PM, Steven Rostedt wrote: > On Fri, 30 Jun 2017 11:17:50 -0600 [..] >> >> Signed-off-by: Michael Sartain >> --- >> kernel/trace/trace.c | 60 >> +++- >> 1 file changed, 59 insertions(+), 1 deletion(-) >> >> diff --git

[PATCH] doc: Update memory-barriers.txt for read-to-write dependencies

2017-06-30 Thread Paul E. McKenney
The memory-barriers.txt document contains an obsolete passage stating that smp_read_barrier_depends() is required to force ordering for read-to-write dependencies. We now know that this is not required, even for DEC Alpha. This commit therefore updates this passage to state that read-to-write depe

Re: [PATCH][scsi-next] scsi: qla2xxx: fix a bunch of typos and spelling mistakes

2017-06-30 Thread Madhani, Himanshu
> On Jun 30, 2017, at 6:47 AM, Colin King wrote: > > From: Colin Ian King > > Fix the following typos/spelling mistakes: > > "attribure" -> "attribute" > "suppored" -> "supported" > "Symobilic" -> "Symbolic" > "iteself" -> "itself" > "reqeust" -> "request" > "nvme_wait_on_comand" -> "nvme_wai

Re: [RFC] tracing: Add support for critical section event tracing

2017-06-30 Thread Joel Fernandes
Hi Steven, On Jun 30, 2017 5:32 AM, "Steven Rostedt" wrote: [..] >> Did you have any comments about this patch? It was sent a while ago >> and if you can provide me your initial thoughts on it, I would >> appreciate it. (Sorry to ping you about it during the busy merge >> window time, but I was t

Re: [HMM 12/15] mm/migrate: new memory migration helper for use with device memory v4

2017-06-30 Thread Evgeny Baskakov
On 6/26/17 5:07 PM, Evgeny Baskakov wrote: > Hi Jerome, > > The documentation shown above doesn't tell what the alloc_and_copy callback should do for source pages that have not been allocated yet. Instead, it unconditionally suggests checking if the MIGRATE_PFN_VALID and MIGRATE_PFN_MIGRATE fl

Pattern of black screens with Linux on newer laptops.

2017-06-30 Thread David F.
Using up to and including 4.11.7 getting reports coming in of black screens on new laptops (includes booting to console only). The solution is to use kernel parameter acpi=off. The newer include Dell Latitude 5289 and Lenovo e-560. (although searching Internet even older system affected like HP

did vfs_read or something related to it get broken?

2017-06-30 Thread David F.
Hi, I have a driver that reads data from a file that has worked from kernel 3.x up to 4.9.13. I haven't tried all the other 4.9's or 4.10, or 4.11.6 or earlier, but in 4.11.7 it's now broken and an error is returned. It's based on http://krishnamohanlinux.blogspot.com/2013/12/how-to-write-to-fi

[PATCH] w1: omap-hdq: fix error return code in omap_hdq_probe()

2017-06-30 Thread Gustavo A. R. Silva
platform_get_irq() returns an error code, but the omap_hdq driver ignores it and always returns -ENXIO. This is not correct, and prevents -EPROBE_DEFER from being propagated properly. Notice that platform_get_irq() no longer returns 0 on error. Print error message and propagate the return value of

[PATCH] kbuild: modpost: Warn about references from rodata to __init text

2017-06-30 Thread Stephen Boyd
If we have a structure that's marked const it will be placed into the .rodata section but it could reference an init section function. Include the read only data section in the check we have for read/write data sections referencing init sections so we can find this class of problems. This exposes q

Re: [PATCH] kmod: add dependencies for test module

2017-06-30 Thread Luis R. Rodriguez
On Fri, Jun 30, 2017 at 05:47:44PM +0200, Arnd Bergmann wrote: > When we try to 'select' drivers whose dependencies are not met, > we get a kconfig warning and undefined behavior as further 'select' > statements in those drivers can not be honored: > > warning: (TEST_KMOD) selects TUN which has un

[PATCH] serial: 8250: fix error handling in of_platform_serial_probe()

2017-06-30 Thread Alexey Khoroshilov
clk_disable_unprepare(info->clk) is missed in of_platform_serial_probe(), while irq_dispose_mapping(port->irq) is missed in of_platform_serial_setup(). Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/tty/serial/8250/8250_of.c | 20 +++

[PATCH v2 1/6] test_sysctl: add dedicated proc sysctl test driver

2017-06-30 Thread Luis R. Rodriguez
The existing tools/testing/selftests/sysctl/ tests include two test cases, but these use existing production kernel sysctl interfaces. We want to expand test coverage but we can't just be looking for random safe production values to poke at, that's just insane! Instead just dedicate a test driver

[PATCH v2 6/6] test_sysctl: test against int proc_dointvec() array support

2017-06-30 Thread Luis R. Rodriguez
Add a few initial respective tests for an array: o Echoing values separated by spaces works o Echoing only first elements will set first elements o Confirm PAGE_SIZE limit still applies even if an array is used Cc: Kees Cook Cc: "Eric W. Biederman" Cc: Shuah Khan Signed-off-by: Luis R. R

[PATCH v2 5/6] test_sysctl: add simple proc_douintvec() case

2017-06-30 Thread Luis R. Rodriguez
Test against a simple proc_douintvec() case. While at it, add a test against UINT_MAX. Make sure UINT_MAX works, and UINT_MAX+1 will fail and that negative values are not accepted. Cc: Kees Cook Cc: "Eric W. Biederman" Cc: Shuah Khan Signed-off-by: Luis R. Rodriguez --- lib/test_sysctl.c

[PATCH v2 0/6] test_sysctl: fix up merge conflicts

2017-06-30 Thread Luis R. Rodriguez
ound. I've made Orson's check a function, and integrated his exit strategy to restore the production sysctl writes_strict setting. To do this I've also added a PROD_SYCTL, which now users can also override through an environment variable. These changes are also present on my linux-ne

[PATCH v2 2/6] test_sysctl: add generic script to expand on tests

2017-06-30 Thread Luis R. Rodriguez
This adds a generic script to let us more easily add more tests cases. Since we really have only two types of tests cases just fold them into the one file. Each test unit is now identified into its separate function: # ./sysctl.sh -l Test ID list: TEST_ID x NUM_TEST TEST_ID: Test ID NUM_TEST

[PATCH v2 4/6] test_sysctl: add simple proc_dointvec() case

2017-06-30 Thread Luis R. Rodriguez
Test against a simple proc_dointvec() case. While at it, add a test against INT_MAX. Make sure INT_MAX works, and INT_MAX+1 will fail. Also test negative values work. Cc: Kees Cook Cc: "Eric W. Biederman" Cc: Shuah Khan Signed-off-by: Luis R. Rodriguez --- lib/test_sysctl.c

[PATCH v2 3/6] test_sysctl: test against PAGE_SIZE for int

2017-06-30 Thread Luis R. Rodriguez
Add the following tests to ensure we do not regress: o Test using a buffer full of space (PAGE_SIZE-1) followed by a single digit works o Test using a buffer full of spaces (PAGE_SIZE or over) will fail As tests increase instead of unloading the module and reloading it we can just do a s

Re: linux-next: manual merge of the akpm-current tree with the kselftest tree

2017-06-30 Thread Luis R. Rodriguez
On Thu, Jun 29, 2017 at 12:35:27PM -0700, Andrew Morton wrote: > On Wed, 28 Jun 2017 18:31:11 +1000 Stephen Rothwell > wrote: > > > Hi all, > > > > Today's linux-next merge of the akpm-current tree got conflicts in: > > > > tools/testing/selftests/sysctl/common_tests > > tools/testing/self

[PATCH] ASoC: imx-ssi: add check on platform_get_irq return value

2017-06-30 Thread Gustavo A. R. Silva
Check return value from call to platform_get_irq(), so in case of failure print error message and propagate the return value. Signed-off-by: Gustavo A. R. Silva --- sound/soc/fsl/imx-ssi.c | 4 1 file changed, 4 insertions(+) diff --git a/sound/soc/fsl/imx-ssi.c b/sound/soc/fsl/imx-ssi.c i

[PATCH] ALSA: atmel: ac97c: fix error return code in atmel_ac97c_probe()

2017-06-30 Thread Gustavo A. R. Silva
platform_get_irq() returns an error code, but the ac97c driver ignores it and always returns -ENXIO. This is not correct, and prevents -EPROBE_DEFER from being propagated properly. Notice that platform_get_irq() no longer returns 0 on error. Print and propagate the return value of platform_get_irq

[PATCH 02/30] perf help: Introduce exec_failed() to avoid code duplication

2017-06-30 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The warning(str_error_r(errno)) pattern can be replaced with a function, do it. And while at it use pr_warning(), we have way too many error reporting facilities, time to drop some, starting with the one we got from the git sources. Cc: Adrian Hunter Cc: David Ah

[PATCH 07/30] perf tools: Remove warning()

2017-06-30 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Now everything uses pr_warning(), so ditch it. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-hv8r0mgdhk73wtfq3zrha...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/tes

[PATCH 04/30] perf help: Use pr_warning()

2017-06-30 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Complete the switch to using te pr_{warning,error,etc} error reporting facilities. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-3l9gr6237b4aqyo0rsspi...@git.kernel.org Signed-off-by: Arnaldo C

[PATCH 10/30] perf tools: Kill die()

2017-06-30 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Finally can nuke this function, no more users. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-eivvvzn8ie6w42gy3batx...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/tes

[PATCH 09/30] perf config: Do not die when parsing u64 or int config values

2017-06-30 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Just warn the user and ignore those values. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-tbf60nj3ierm6hrkhpoth...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/builti

[PATCH 17/30] perf script: Add 'synth' field for synthesized event payloads

2017-06-30 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Add a field to display the content the raw_data of a synthesized event. Signed-off-by: Adrian Hunter Cc: Andi Kleen Link: http://lkml.kernel.org/r/1495786658-18063-22-git-send-email-adrian.hun...@intel.com [ Resolved conflict with 106dacd86f04 ("perf script: Support -F br

[PATCH 16/30] perf auxtrace: Add itrace option to output power events

2017-06-30 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Add itrace option to output power events. Signed-off-by: Adrian Hunter Cc: Andi Kleen Link: http://lkml.kernel.org/r/1495786658-18063-25-git-send-email-adrian.hun...@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Documentation/itrace.txt | 5 +++-- tool

[PATCH 14/30] tools include: Add byte-swapping macros to kernel.h

2017-06-30 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Add byte-swapping macros to kernel.h Signed-off-by: Adrian Hunter Cc: Andi Kleen Link: http://lkml.kernel.org/r/1495786658-18063-23-git-send-email-adrian.hun...@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/include/linux/kernel.h | 35 ++

[PATCH 13/30] perf script: Add 'synth' event type for synthesized events

2017-06-30 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Instruction trace decoders such as Intel PT may have additional information recorded in the trace. For example, Intel PT has power information and a there is a new instruction 'ptwrite' that can write a value into a PTWRITE trace packet. Such information may be associated wit

[PATCH 15/30] perf auxtrace: Add itrace option to output ptwrite events

2017-06-30 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Add itrace option to output ptwrite events. Signed-off-by: Adrian Hunter Cc: Andi Kleen Link: http://lkml.kernel.org/r/1495786658-18063-24-git-send-email-adrian.hun...@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Documentation/itrace.txt | 7 ---

[PATCH 18/30] perf script: Add synthesized Intel PT power and ptwrite events

2017-06-30 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Add definitions for synthesized Intel PT events for power and ptwrite. Signed-off-by: Adrian Hunter Cc: Andi Kleen Link: http://lkml.kernel.org/r/1498811802-2301-1-git-send-email-adrian.hun...@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/builtin-scrip

[PATCH 22/30] perf intel-pt: Tidy Intel PT evsel lookup into separate function

2017-06-30 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Tidy the lookup of the Intel PT selected event (perf_evsel) into a separate function. Signed-off-by: Adrian Hunter Cc: Andi Kleen Link: http://lkml.kernel.org/r/1495786658-18063-30-git-send-email-adrian.hun...@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/p

[PATCH 20/30] perf intel-pt: Remove unused instructions_sample_period

2017-06-30 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Remove unused struct intel_pt member instructions_sample_period. Signed-off-by: Adrian Hunter Cc: Andi Kleen Link: http://lkml.kernel.org/r/1495786658-18063-28-git-send-email-adrian.hun...@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/intel-pt.c |

[PATCH 23/30] perf intel-pt: Tidy messages into called function intel_pt_synth_event()

2017-06-30 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Tidy print messages into called function intel_pt_synth_event(). Signed-off-by: Adrian Hunter Cc: Andi Kleen Link: http://lkml.kernel.org/r/1495786658-18063-31-git-send-email-adrian.hun...@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/intel-pt.c |

[PATCH 27/30] perf intel-pt: Add example script for power events and PTWRITE

2017-06-30 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Add script intel-pt-events.py that provides an example of how to unpack the raw data for power events and PTWRITE. Signed-off-by: Adrian Hunter Cc: Andi Kleen Link: http://lkml.kernel.org/r/1495786658-18063-35-git-send-email-adrian.hun...@intel.com Signed-off-by: Arnaldo C

[PATCH 21/30] perf intel-pt: Join needlessly wrapped lines

2017-06-30 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Join needlessly wrapped lines. Signed-off-by: Adrian Hunter Cc: Andi Kleen Link: http://lkml.kernel.org/r/1495786658-18063-29-git-send-email-adrian.hun...@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/intel-pt.c | 6 ++ 1 file changed, 2 inser

  1   2   3   4   5   6   7   8   >