[PATCH perf/core v7 02/21] perf buildid: Fix to set correct dso name for kallsyms

2016-05-11 Thread Masami Hiramatsu
Fix to set correct dso name ("[kernel.kallsyms]") for kallsyms, as for vdso does. Signed-off-by: Masami Hiramatsu --- tools/perf/util/build-id.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tools/perf/util/build-id.c b/tools/perf/util/build-id.c index b6ecf8

[PATCH perf/core v7 06/21] perf-buildid-cache: Use lsdir for looking up buildid caches

2016-05-11 Thread Masami Hiramatsu
From: Masami Hiramatsu Use new lsdir() for looking up buildid caches. This changes logic a bit to ignore all dot files, since the build-id cache must not start with dot. Signed-off-by: Masami Hiramatsu Signed-off-by: Masami Hiramatsu --- Changes in v7: - Remove unneeded local strlist. ---

[PATCH perf/core v7 12/21] perf probe: Remove caches when --cache is given

2016-05-11 Thread Masami Hiramatsu
From: Masami Hiramatsu perf-probe --del removes caches when --cache is given. Note that the delete pattern is not same as normal events. If you cached probes with event name, --del "eventname" works as expected. However, if you skipped it, the cached probes doesn't have actual event name. In tha

[PATCH perf/core v7 04/21] perf: Use SBUILD_ID_SIZE macro instead of BUILD_ID_SIZE macro

2016-05-11 Thread Masami Hiramatsu
Use SBUILD_ID_SIZE macro instead of BUILD_ID_SIZE * 2 + 1 for allocating a buffer for build-id string. Signed-off-by: Masami Hiramatsu --- tools/perf/util/annotate.c |2 +- tools/perf/util/dso.c |4 ++-- tools/perf/util/header.c

[PATCH perf/core v7 10/21] perf probe: Use cache entry if possible

2016-05-11 Thread Masami Hiramatsu
From: Masami Hiramatsu Before analyzing debuginfo, try to find a corresponding entry from probe cache always. This does not depend on --cache, the --cache enables to store/update cache, but looking up the cache is always enabled. Signed-off-by: Masami Hiramatsu Signed-off-by: Masami Hiramatsu

[PATCH perf/core v7 07/21] perf symbol: Cleanup the code flow of dso__find_kallsyms

2016-05-11 Thread Masami Hiramatsu
Cleanup the code flow of dso__find_kallsyms() to remove redundant checking code and add some comment for readability. Signed-off-by: Masami Hiramatsu --- tools/perf/util/symbol.c | 60 +- 1 file changed, 27 insertions(+), 33 deletions(-) diff --git

[PATCH perf/core v7 01/21] tools/perf: Fix lsdir to set errno correctly

2016-05-11 Thread Masami Hiramatsu
Fix lsdir() to set correct positive error number (ENOMEM). Since "errno" must have a positive error number instead of negative number, fix lsdir to set it correctly. Signed-off-by: Masami Hiramatsu --- tools/perf/util/util.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

Re: [PATCH] Honor mmap_min_addr with the actual minimum

2016-05-11 Thread Eric Paris
On Wed, 2016-05-11 at 14:54 +0200, Hector Marco-Gisbert wrote: > > El 21/04/16 a las 00:12, Kees Cook escribió: > > On Tue, Apr 19, 2016 at 11:55 AM, Hector Marco-Gisbert > v.es> wrote: > > > > On Wed, Apr 6, 2016 at 12:07 PM, Hector Marco-Gisbert > > > @upv.es> wrote: > > > > > The minimum addr

[PATCH perf/core v7 00/21] perf-probe --cache and SDT support

2016-05-11 Thread Masami Hiramatsu
Hi, Here is the 7th version of the patchset for probe-cache and initial SDT support. The previous version is here; https://lkml.org/lkml/2116/4/29/358 This version add some bugfixes and cleanup patches. Also, tested by using runtests (https://github.com/mhiramat/runtests) which found several bu

Re: [PATCH] dmaengine: of_dma: approximate an average distribution

2016-05-11 Thread Niklas Söderlund
In my haste I forgot the most important part of this patch, I'm sorry Arnd. Suggested-by: Arnd Bergmann On 2016-05-11 15:15:11 +0200, Niklas Söderlund wrote: > Currently the following DT description would result in dmac0 always > being tried first and dmac1 second if dmac0 was unavailable. This

Re: [PATCH v9 5/7] vfio/type1: also check IRQ remapping capability at msi domain

2016-05-11 Thread Robin Murphy
On 11/05/16 10:44, Eric Auger wrote: Hi Robin, On 05/11/2016 11:31 AM, Robin Murphy wrote: On 11/05/16 09:38, Eric Auger wrote: Hi Robin, Alex, On 05/10/2016 07:24 PM, Robin Murphy wrote: Hi Eric, On 10/05/16 17:10, Eric Auger wrote: Hi Alex, On 05/10/2016 12:49 AM, Alex Williamson wrote: O

Re: [PATCH 3/3] blk-throttle: don't parse cgroup path if trace isn't enabled

2016-05-11 Thread Jeff Moyer
Steven Rostedt writes: >> Do we want to return !!(bt->act_mask & BLK_TC_NOTIFY)? > > The return type is bool. I would think that gcc would be smart enough > to make the conversion. > > To check, I compiled the following function: > > bool testbool(int x) > { > return x & 1<<3; > } > > and

Re: [PATCH v2 0/3] power: Remove the deprecated extcon functions

2016-05-11 Thread Rob Herring
On Tue, May 10, 2016 at 09:54:58AM +0900, Chanwoo Choi wrote: > Ping. > > Could you review this patch? I already did. The first problem is you are breaking compatibility here (a kernel with these changes won't work with a dtb without these changes). As I previously said, this binding in general

Re: [RFC PATCH 0/2] net: threadable napi poll loop

2016-05-11 Thread Hannes Frederic Sowa
On 11.05.2016 15:39, Hannes Frederic Sowa wrote: > I am fine with that. It is us to show clear benefits or use cases for > that. If we fail with that, no problem at all that the patches get > rejected, we don't want to add bloat to the kernel, for sure! At this > point I still think a possibility t

Re: [Nbd] Fwd: [PATCH v4 02/18] nbd: fix checkpatch trailing space warning.

2016-05-11 Thread Eric Blake
On 05/11/2016 03:38 AM, Pranay Srivastava wrote: > > The series contained some checkpatch changes so I had included you as well. > >> know why you are sending them to me), but I know I do not accept patches >> without any changelog text at all in them, as that's just lazy. > > That should be pe

Re: [PATCH 1/3] intel_pstate: Clarify average performance computation

2016-05-11 Thread Rafael J. Wysocki
On Wed, May 11, 2016 at 7:01 AM, Srinivas Pandruvada wrote: > On Tue, 2016-05-10 at 22:57 +0200, Rafael J. Wysocki wrote: >> > > > > > [...] > >> --- >> From: Rafael J. Wysocki >> Subject: [PATCH] intel_pstate: Clarify average performance >> computation >> >> The core_pct_busy field of struct sam

[PATCH] MAINTAINERS: add entry for the Sync File Framework

2016-05-11 Thread Gustavo Padovan
From: Gustavo Padovan Add Gustavo as maintainer for the Sync File Framework. Sumit is co-maintainer as he maintains drivers/dma-buf/. It also uses Sumit's tree as base. Cc: Sumit Semwal Signed-off-by: Gustavo Padovan --- MAINTAINERS | 10 ++ 1 file changed, 10 insertions(+) diff --gi

[PATCH] bochs: ignore device if there isn't enougth memory

2016-05-11 Thread Gerd Hoffmann
The qemu stdvga can be configured with a wide range of video memory, from 1 MB to 256 MB (default is 16 MB). In case it is configured with only 1 or 2 MB it isn't really usable with bochsdrm, due to depths other than 32bpp not being supported so that isn't enough memory for a reasonable sized fram

[PATCH v2] ata: dwc: add DMADEVICES dependency

2016-05-11 Thread Arnd Bergmann
The dwc_460ex SATA driver has become available on non-powerpc architectures and may cause randconfig build errors when CONFIG_DMADEVICES is not set and SATA_DWC_OLD_DMA is enabled: warning: (SATA_DWC_OLD_DMA) selects DW_DMAC_CORE which has unmet direct dependencies (DMADEVICES) ERROR: "dw_dma_pro

Re: [PATCH] watchdog: ebc-c384_wdt: Simplify ebc_c384_wdt_start timeout computation

2016-05-11 Thread Guenter Roeck
On Wed, May 11, 2016 at 09:05:51AM -0400, William Breathitt Gray wrote: > The ebc_c384_wdt_set_timeout function already rounds up timeout values > greater than 255 to a multiple of 60, so there is no need to round again > in the ebc_c384_wdt_start function; a timeout value greater than 255 in > ebc

Re: Brightness control irrespective of blink state.

2016-05-11 Thread Tony Makkiel
On 11/05/16 10:41, Jacek Anaszewski wrote: On 05/10/2016 06:55 PM, Tony Makkiel wrote: On 10/05/16 14:26, Jacek Anaszewski wrote: On 05/10/2016 11:36 AM, Tony Makkiel wrote: On 09/05/16 15:45, Jacek Anaszewski wrote: Hi Tony, On 05/09/2016 03:27 PM, Tony Makkiel wrote: Hi Jacek,

Re: x86_64 Question: Are concurrent IPI requests safe?

2016-05-11 Thread Peter Zijlstra
On Wed, May 11, 2016 at 10:19:16PM +0900, Tetsuo Handa wrote: > [ 180.434659] Hardware name: VMware, Inc. VMware Virtual Platform/440BX > Desktop Reference Platform, BIOS 6.00 07/31/2013 can you reproduce on real hardware?

Re: [PATCH V4 3/3] soc/tegra: pmc: Add support for IO pads power state and voltage

2016-05-11 Thread Laxman Dewangan
On Sunday 08 May 2016 05:43 PM, Jon Hunter wrote: On 06/05/16 16:32, Laxman Dewangan wrote: On Friday 06 May 2016 08:07 PM, Jon Hunter wrote: On 06/05/16 11:45, Laxman Dewangan wrote: + +/* Last entry */ +TEGRA_IO_PAD_MAX, Nit should these be TEGRA_IO_PADS_xxx? Because this was name o

Re: [RFC PATCH 0/2] net: threadable napi poll loop

2016-05-11 Thread Hannes Frederic Sowa
Hi all, On 11.05.2016 15:08, Eric Dumazet wrote: > On Wed, 2016-05-11 at 11:48 +0200, Paolo Abeni wrote: >> Hi Eric, >> On Tue, 2016-05-10 at 15:51 -0700, Eric Dumazet wrote: >>> On Wed, 2016-05-11 at 00:32 +0200, Hannes Frederic Sowa wrote: >>> Not only did we want to present this solely as

Re: pwm: atmel: PWM may not properly disable

2016-05-11 Thread Thierry Reding
On Wed, May 11, 2016 at 10:48:38AM +0200, Guillermo Rodriguez Garcia wrote: > Hello all, > > I am seeing a problem with the atmel-pwm driver where disabling a PWM > channel sometimes leaves the output at the wrong level ("wrong" == not > idle, as per the configured polarity). This causes problems

Re: [PATCH 3/3] blk-throttle: don't parse cgroup path if trace isn't enabled

2016-05-11 Thread Jeff Moyer
Shaohua Li writes: > On Tue, May 10, 2016 at 11:52:15AM -0400, Jeff Moyer wrote: >> Shaohua Li writes: >> >> > if trace isn't enabled, parsing cgroup path just wastes cpu >> > >> > Signed-off-by: Shaohua Li >> > --- >> > block/blk-throttle.c | 5 ++--- >> > include/linux/blktrace_api.

Re: [PATCH] Xen: EFI: Parse DT parameters for Xen specific UEFI

2016-05-11 Thread Shannon Zhao
On 2016年05月11日 20:27, Matt Fleming wrote: > On Fri, 06 May, at 04:32:06PM, Shannon Zhao wrote: >> > From: Shannon Zhao >> > >> > Add a new function to parse DT parameters for Xen specific UEFI just >> > like the way for normal UEFI. Then it could reuse the existing codes. >> > >> > If Xen suppor

Re: S3 resume regression [1cf4f629d9d2 ("cpu/hotplug: Move online calls to hotplugged cpu")]

2016-05-11 Thread Rafael J. Wysocki
On 5/11/2016 2:21 PM, Ville Syrjälä wrote: On Wed, May 11, 2016 at 02:11:29PM +0200, Sebastian Andrzej Siewior wrote: On 05/11/2016 12:19 PM, Ville Syrjälä wrote: Hi, Hi, I have a Lenovo Ideapad S10-3t machine here (Atom N450, 1 core, 2 HT) which fails to resume from S3 on 4.6-rc releases. I

Re: [PATCH v3 2/2] dell-laptop: Expose auxiliary MAC address if available

2016-05-11 Thread Michał Kępień
> System with Type-C ports have a feature to expose an auxiliary > persistent MAC address. This address is burned in at the > factory. > > The intention of this address is to update the MAC address on > Type-C docks containing an ethernet adapter to match the > auxiliary address of the system con

Re: [PATCH] ata: dwc: add DMADEVICES dependency

2016-05-11 Thread Arnd Bergmann
On Wednesday 11 May 2016 14:19:05 Måns Rullgård wrote: > Arnd Bergmann writes: > > > On Wednesday 11 May 2016 13:57:08 Måns Rullgård wrote: > >> > diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > >> > index 41b0725e58ad..8f7a4a4d2566 100644 > >> > --- a/drivers/ata/Kconfig > >> > +++ b/dr

[PATCH RESEND^3] [media] staging/davinci_vfpe: allow modular build

2016-05-11 Thread Arnd Bergmann
It has never been possible to actually build this driver as a loadable module, only built-in because the Makefile attempts to build each file into its own module and fails: ERROR: "mbus_to_pix" [drivers/staging/media/davinci_vpfe/vpfe_video.ko] undefined! ERROR: "vpfe_resizer_register_entities"

Re: [PATCH 03/10] x86, perf: Add Top Down events to Intel Core

2016-05-11 Thread Peter Zijlstra
On Wed, May 11, 2016 at 03:23:36PM +0200, Jiri Olsa wrote: > On Thu, May 05, 2016 at 04:04:00PM -0700, Andi Kleen wrote: > > SNIP > > > + > > +EVENT_ATTR_STR_HT(topdown-total-slots, td_total_slots, > > + "event=0x3c,umask=0x0", /* cpu_clk_unhalted.thread */ > > + "event=0x3c,u

[PATCH] staging: i4l: icn: use setup_timer() and mod_timer().

2016-05-11 Thread Muhammad Falak R Wani
Use setup_timer() instead of init_timer(), being the preferred/standard way to set a timer up. Also, quoting the mod_timer() function comment: -> mod_timer() is a more efficient way to update the expire field of an active timer (if the timer is inactive it will be activated). Use setup_timer a

[PATCH] mm, compaction: avoid uninitialized variable use

2016-05-11 Thread Arnd Bergmann
A recent rework of the compaction code introduced a warning about an uninitialized variable when CONFIG_COMPACTION is disabled and __alloc_pages_direct_compact() does not set its 'compact_result' output argument: mm/page_alloc.c: In function '__alloc_pages_nodemask': mm/page_alloc.c:3651:6: error:

Re: [PATCH V1] MAINTAINERS: Add Dialog PMIC search terms for missing documentation and header files

2016-05-11 Thread Lee Jones
On Wed, 11 May 2016, Steve Twiss wrote: > From: Steve Twiss > > Dialog Semiconductor support would like to follow files by adding to the > existing MAINTAINERS search terms. The update will allow us to follow > files for PMIC documentation bindings and header files. > > The full list is: > > D

Re: [PATCH v2 4/9] perf build: Add build-test for debug-frame on arm/arm64

2016-05-11 Thread Arnaldo Carvalho de Melo
Em Wed, May 11, 2016 at 01:58:41PM +0200, Jiri Olsa escreveu: > On Tue, May 10, 2016 at 07:40:32AM +, He Kuang wrote: > > Debug-frame for remote platforms is not related to the host platform, > > so we should test each platform separately. > > > > Signed-off-by: He Kuang > > Acked-by: Jiri O

Re: [PATCH v2 3/9] perf build: Add build-test for libunwind cross-platforms support

2016-05-11 Thread Arnaldo Carvalho de Melo
Em Wed, May 11, 2016 at 01:52:30PM +0200, Jiri Olsa escreveu: > On Tue, May 10, 2016 at 07:40:31AM +, He Kuang wrote: > > Currently only test for local libunwind. We should check all supported > > platforms so we can use them to parse perf.data with callchain info on > > different machines. > >

Re: x86_64 Question: Are concurrent IPI requests safe?

2016-05-11 Thread Tetsuo Handa
unction_many() with wait == true. (Complete log is at http://I-love.SAKURA.ne.jp/tmp/serial-20160511.txt.xz .) [ 180.434620] NMI watchdog: BUG: soft lockup - CPU#2 stuck for 23s! [tgid=13646:13646] [ 180.434622] NMI watchdog: BUG: soft lockup - CPU#

Re: [PATCH 03/10] x86, perf: Add Top Down events to Intel Core

2016-05-11 Thread Jiri Olsa
On Thu, May 05, 2016 at 04:04:00PM -0700, Andi Kleen wrote: SNIP > + > +EVENT_ATTR_STR_HT(topdown-total-slots, td_total_slots, > + "event=0x3c,umask=0x0", /* cpu_clk_unhalted.thread */ > + "event=0x3c,umask=0x0,any=1"); /* cpu_clk_unhalted.thread_any > */ > +EVEN

Re: [PATCH v4 0/6] Add alignment check for DAX mount

2016-05-11 Thread Carlos Maiolino
On Tue, May 10, 2016 at 10:23:51AM -0600, Toshi Kani wrote: > When a partition is not aligned by 4KB, mount -o dax succeeds, > but any read/write access to the filesystem fails, except for > metadata update. Add alignment check to ext4, ext2, and xfs. > > - Patch 1-2 add bdev_dax_supported() whic

Re: [PATCH] MIPS: Allow R6 compact branch policy to be left unspecified

2016-05-11 Thread Maciej W. Rozycki
On Wed, 11 May 2016, Ralf Baechle wrote: > I was wondering if we should simply probe for the availability of the > GCC option and not use it, if using an older GCC, then change the > help text for the option accordingly. This approach would allow > make randconfig or similar to work as expected w

Re: [PATCH] ata: dwc: add DMADEVICES dependency

2016-05-11 Thread Måns Rullgård
Arnd Bergmann writes: > On Wednesday 11 May 2016 13:57:08 Måns Rullgård wrote: >> > diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig >> > index 41b0725e58ad..8f7a4a4d2566 100644 >> > --- a/drivers/ata/Kconfig >> > +++ b/drivers/ata/Kconfig >> > @@ -322,7 +322,7 @@ config SATA_DWC >> > >> >

[PATCH] dmaengine: of_dma: approximate an average distribution

2016-05-11 Thread Niklas Söderlund
Currently the following DT description would result in dmac0 always being tried first and dmac1 second if dmac0 was unavailable. This results in heavier use of dmac0 then of dmac1. This patch adds an approximate average distribution over the two nodes lessening the load of anyone of them. i2c6:

Re: [PATCH 1/1] devicetree: sunxi: Add OLinuXino Lime2 eMMC to the Makefile

2016-05-11 Thread Maxime Ripard
Hi Olliver On Wed, May 11, 2016 at 10:27:07AM +0200, Olliver Schinagl wrote: > ARM: dts: sunxi: Add a olinuxino-lime2-emmc This is not the proper commit reference format. > added the new emmc equipped lime2 but forgot its Makefile. This > patch adds an entry to the Makefile. > > Signed-off-by:

Re: [RFC PATCH 0/2] net: threadable napi poll loop

2016-05-11 Thread Hannes Frederic Sowa
On 11.05.2016 08:55, Peter Zijlstra wrote: > On Tue, May 10, 2016 at 03:51:37PM -0700, Eric Dumazet wrote: >> diff --git a/kernel/softirq.c b/kernel/softirq.c >> index 17caf4b63342..22463217e3cf 100644 >> --- a/kernel/softirq.c >> +++ b/kernel/softirq.c >> @@ -56,6 +56,7 @@ EXPORT_SYMBOL(irq_stat);

Re: [PATCH] ata: dwc: add DMADEVICES dependency

2016-05-11 Thread Arnd Bergmann
On Wednesday 11 May 2016 13:57:08 Måns Rullgård wrote: > > diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig > > index 41b0725e58ad..8f7a4a4d2566 100644 > > --- a/drivers/ata/Kconfig > > +++ b/drivers/ata/Kconfig > > @@ -322,7 +322,7 @@ config SATA_DWC > > > > config SATA_DWC_OLD_DMA > >

Re: Regression: Kernel 4.6 DisplayPort Audio

2016-05-11 Thread Takashi Iwai
On Wed, 11 May 2016 14:52:22 +0200, Daniel Exner wrote: > > Hi, > > Am 11.05.2016 um 10:48 schrieb Takashi Iwai: > [..] > > > If the commit above alone breaks, does the patch below change the > > behavior? Through a quick look at it, some ops are overridden only > > conditionally while the olde

[PATCH] xen: remove incorrect forward declaration

2016-05-11 Thread Arnd Bergmann
A bugfix patch for the xen balloon driver introduced a forward declaration for a static function that is conditionally compiled, causing a warning if only the declaration but not the definition are there: drivers/xen/balloon.c:154:13: error: 'release_memory_resource' declared 'static' but never d

Re: [RFC PATCH 0/2] net: threadable napi poll loop

2016-05-11 Thread Eric Dumazet
On Wed, 2016-05-11 at 11:48 +0200, Paolo Abeni wrote: > Hi Eric, > On Tue, 2016-05-10 at 15:51 -0700, Eric Dumazet wrote: > > On Wed, 2016-05-11 at 00:32 +0200, Hannes Frederic Sowa wrote: > > > > > Not only did we want to present this solely as a bugfix but also as as > > > performance enhancemen

[PATCH] watchdog: ebc-c384_wdt: Simplify ebc_c384_wdt_start timeout computation

2016-05-11 Thread William Breathitt Gray
The ebc_c384_wdt_set_timeout function already rounds up timeout values greater than 255 to a multiple of 60, so there is no need to round again in the ebc_c384_wdt_start function; a timeout value greater than 255 in ebc_c384_wdt_start will divide cleanly by 60. Signed-off-by: William Breathitt Gra

[PATCH 1/7] x86/mce/AMD: Log Deferred Errors using SMCA MCA_DE{STAT,ADDR} registers

2016-05-11 Thread Borislav Petkov
From: Yazen Ghannam Scalable MCA provides new registers for all banks for logging deferred errors: MCA_DESTAT and MCA_DEADDR. Deferred errors are always logged to these registers. Update the AMD deferred error handler to use these registers, if available. Signed-off-by: Yazen Ghannam Cc: Aravi

[PATCH 4/7] x86/cpu: Add detection of AMD RAS Capabilities

2016-05-11 Thread Borislav Petkov
From: Yazen Ghannam Add a new CPUID leaf to hold the contents of CPUID 0x8007_EBX (RasCap). Define bits that are currently in use: Bit 0: McaOverflowRecov Bit 1: SUCCOR Bit 3: ScalableMca Signed-off-by: Yazen Ghannam Cc: Tony Luck Cc: linux-edac Cc: x86-ml Link: http://lkml.kernel.org/

Re: [PATCH 06/10] perf, tools, stat: Avoid fractional digits for integer scales

2016-05-11 Thread Jiri Olsa
On Sat, May 07, 2016 at 12:24:25PM -0700, Andi Kleen wrote: > > > if (csv_output) { > > > - fmt = sc != 1.0 ? "%.2f%s" : "%.0f%s"; > > > + fmt = floor(sc) != sc ? "%.2f%s" : "%.0f%s"; > > > } else { > > > if (big_num) > > > - fmt = sc != 1.0 ? "%'18.2

Re: [PATCH v9 3/7] vfio/type1: bypass unmap/unpin and replay for VFIO_IOVA_RESERVED slots

2016-05-11 Thread Eric Auger
Hi Alex, On 05/10/2016 12:49 AM, Alex Williamson wrote: > On Wed, 4 May 2016 11:54:14 + > Eric Auger wrote: > >> Before allowing the end-user to create VFIO_IOVA_RESERVED dma slots, >> let's implement the expected behavior for removal and replay. As opposed >> to user dma slots, IOVAs are no

[PATCH 2/7] x86/mce/AMD: Disable LogDeferredInMcaStat for SMCA systems

2016-05-11 Thread Borislav Petkov
From: Yazen Ghannam Disable Deferred Error logging in MCA_{STATUS,ADDR} additionally for SMCA systems as this information will retrieved from MCA_DE{STAT,ADDR} on those systems. Signed-off-by: Yazen Ghannam Cc: Aravind Gopalakrishnan Cc: Tony Luck Cc: linux-edac Cc: x86-ml Link: http://lkm

[PATCH 5/7] x86/mce: Update AMD mcheck init to use cpu_has() facilities

2016-05-11 Thread Borislav Petkov
From: Yazen Ghannam Use cpu_has() facilities to find available RAS features rather than directly reading CPUID 0x8007_EBX. Signed-off-by: Yazen Ghannam Cc: Tony Luck Cc: linux-edac Cc: x86-ml Link: http://lkml.kernel.org/r/1462914639-29513-4-git-send-email-yazen.ghan...@amd.com [ Use th

[PATCH 6/7] EDAC, mce_amd: Detect SMCA using X86_FEATURE_SMCA

2016-05-11 Thread Borislav Petkov
From: Yazen Ghannam Use X86_FEATURE_SMCA when detecting if SMCA is available instead of directly using CPUID 0x8007_EBX. Signed-off-by: Yazen Ghannam Cc: Cc: Tony Luck Cc: linux-edac Link: http://lkml.kernel.org/r/1462914639-29513-5-git-send-email-yazen.ghan...@amd.com Signed-off-by: Bo

[PATCH 7/7] x86/RAS: Add SMCA support to AMD Error Injector

2016-05-11 Thread Borislav Petkov
From: Yazen Ghannam Use SMCA MSRs when writing to MCA_{STATUS,ADDR,MISC} and MCA_DE{STAT,ADDR} when injecting Deferred Errors on SMCA platforms. Signed-off-by: Yazen Ghannam Cc: Aravind Gopalakrishnan Cc: Tony Luck Cc: linux-edac Cc: x86-ml Link: http://lkml.kernel.org/r/1462914639-29513-6

[PATCH 3/7] x86/mce/AMD: Save an indentation level in prepare_threshold_block()

2016-05-11 Thread Borislav Petkov
From: Borislav Petkov Do the !SMCA work first and then save us an indentation level for the SMCA code. No functionality change. Signed-off-by: Borislav Petkov Cc: Aravind Gopalakrishnan Cc: Tony Luck Cc: linux-edac Cc: x86-ml Cc: Yazen Ghannam --- arch/x86/kernel/cpu/mcheck/mce_amd.c | 7

[PATCH 0/7] x86/ras: RAS queue

2016-05-11 Thread Borislav Petkov
From: Borislav Petkov Hi, here's the last pile that got ready. It is mostly SMCA enablement for future AMD F17h CPUs so the remaining families shouldn't be affected. Initial testing on what I have here looks ok, randconfigs pass too. All is ontop of tip:ras/core. Thanks. Borislav Petkov (1):

[PATCH] cgroup: remove an unused variable

2016-05-11 Thread Arnd Bergmann
The newly introduced cgroup_show_path has an extraneous variable that gcc warns about: kernel/cgroup.c: In function 'cgroup_show_path': kernel/cgroup.c:1634:15: error: unused variable 'ret' [-Werror=unused-variable] int len = 0, ret = 0; This must have been left over from a previous version tha

Re: [PATCH] ata: dwc: add DMADEVICES dependency

2016-05-11 Thread Måns Rullgård
Arnd Bergmann writes: > The dwc_460ex SATA driver has become available on non-powerpc architectures > and may cause randconfig build errors when CONFIG_DMADEVICES is not set: > > warning: (SATA_DWC_OLD_DMA) selects DW_DMAC_CORE which has unmet direct > dependencies (DMADEVICES) > ERROR: "dw_dma_

Re: [PATCH] Honor mmap_min_addr with the actual minimum

2016-05-11 Thread Hector Marco-Gisbert
El 21/04/16 a las 00:12, Kees Cook escribió: > On Tue, Apr 19, 2016 at 11:55 AM, Hector Marco-Gisbert > wrote: >>> On Wed, Apr 6, 2016 at 12:07 PM, Hector Marco-Gisbert >>> wrote: The minimum address that a process is allowed to mmap when LSM is enabled is 0x1 (65536). This valu

Re: [PATCH 1/1] arm64: Add ARM64 optimized IP checksum routine

2016-05-11 Thread Robin Murphy
Hi Luke, On 10/05/16 19:27, Luke Starrett wrote: This change implements an optimized checksum for arm64, based loosely on the original arch/arm implementation. Load-pair is used for the initial 16B load, reducing the overall number of loads to two for packets without IP options. Instruction co

RE: [PATCH V7 00/11] Support for generic ACPI based PCI host controller

2016-05-11 Thread Gabriele Paoloni
Hi Tomasz > -Original Message- > From: Tomasz Nowicki [mailto:t...@semihalf.com] > Sent: 11 May 2016 12:08 > To: Gabriele Paoloni; helg...@kernel.org; a...@arndb.de; > will.dea...@arm.com; catalin.mari...@arm.com; raf...@kernel.org; > hanjun@linaro.org; lorenzo.pieral...@arm.com; ok...

Re: [PATCH v3 27/27] ARM: dts: exynos: Add RTC and I2C to Exynos5410

2016-05-11 Thread Krzysztof Kozlowski
On 05/11/2016 02:44 PM, Javier Martinez Canillas wrote: > Hello Krzysztof, > > On 05/10/2016 04:09 PM, Krzysztof Kozlowski wrote: >> Configure Exynos5410-specific properties of RTC, I2C and HSI2C nodes. >> This still does not enable them on the board level though. >> >> Signed-off-by: Krzysztof Ko

[PATCH] cpufreq: schedutil: Make default depend on CONFIG_SMP

2016-05-11 Thread Arnd Bergmann
CPU_FREQ_GOV_SCHEDUTIL gained a dependency on SMP, so now we get a warning if it gets selected by CPU_FREQ_DEFAULT_GOV_SCHEDUTIL without SMP: warning: (CPU_FREQ_DEFAULT_GOV_SCHEDUTIL) selects CPU_FREQ_GOV_SCHEDUTIL which has unmet direct dependencies (CPU_FREQ && SMP) This adds another dependenc

Re: Regression: Kernel 4.6 DisplayPort Audio

2016-05-11 Thread Daniel Exner
Hi, Am 11.05.2016 um 10:48 schrieb Takashi Iwai: [..] > If the commit above alone breaks, does the patch below change the > behavior? Through a quick look at it, some ops are overridden only > conditionally while the older code always overwrote them. Yes, the patch fixes it. Thanks! I hope its

[PATCH] phy: exynos-mipi-video: avoid uninitialized variable use

2016-05-11 Thread Arnd Bergmann
A rework of the exynos-mipi-video driver caused a warning about the new __set_phy_state function potentially accessing a variable before its initialization: drivers/phy/phy-exynos-mipi-video.c: In function '__set_phy_state': drivers/phy/phy-exynos-mipi-video.c:238:13: error: 'val' may be used uni

Re: [PATCH v3 1/2] dell-smbios: Add a method for more complex SMI requests

2016-05-11 Thread Michał Kępień
> More complex SMI requests can return data that exceeds the 4 32 bit > arguments that are traditionally part of a request. > > To support more complex requests, the first input argument can be a > 32 bit physical address with a buffer properly built in advance. > > This new method prepares the b

[PATCH] Xen: don't warn about 2-byte wchar_t in efi

2016-05-11 Thread Arnd Bergmann
The XEN UEFI code has become available on the ARM architecture recently, but now causes a link-time warning: ld: warning: drivers/xen/efi.o uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail This seems harmless, because the efi code only us

[PATCH] zram: introduce per-device debug_stat sysfs node

2016-05-11 Thread Sergey Senozhatsky
debug_stat sysfs is read-only and represents various debugging data that zram developers may need. This file is not meant to be used by anyone else: its content is not documented and will change any time w/o any notice. Therefore, the output of debug_stat file contains a version string. To reduce t

Re: [PATCH -v2] x86/hweight: Get rid of the special calling convention

2016-05-11 Thread Borislav Petkov
On Wed, May 11, 2016 at 01:24:09PM +0200, Peter Zijlstra wrote: > Yeah, it might save a few cycles on the call, but given that most > machines should have popcnt these days is it worth the hassle/cost of > duplicating the lib/hweight.c magic in asm (and remember, twice, once > for 32bit and once fo

[PATCH] Documentation: Add ebc-c384_wdt watchdog-parameters.txt entry

2016-05-11 Thread William Breathitt Gray
The WinSystems EBC-C384 watchdog timer driver supports two module parameters: timeout and nowayout. These parameters should be documented in the watchdog-parameters.txt file. Signed-off-by: William Breathitt Gray --- Documentation/watchdog/watchdog-parameters.txt | 4 1 file changed, 4 inse

Re: [PATCH] KVM: x86: make hwapic_isr_update and hwapic_irr_update look the same

2016-05-11 Thread Radim Krčmář
2016-05-10 18:48+0200, Paolo Bonzini: > Neither APICv nor AVIC actually need the first argument of > hwapic_isr_update, but the vCPU makes more sense than passing the > pointer to the whole virtual machine! In fact in the APICv case it's > just because the vCPU is used implicitly, through the load

Re: S3 resume regression [1cf4f629d9d2 ("cpu/hotplug: Move online calls to hotplugged cpu")]

2016-05-11 Thread Arjan van de Ven
On 5/11/2016 3:19 AM, Ville Syrjälä wrote: Oh, and this was with acpi_idle. This machine already failed to resume from S3 with intel_idle since forever, as detailed in https://bugzilla.kernel.org/show_bug.cgi?id=107151 but acpi_idle worked fine until now. this is the important clue part afaics

Re: S3 resume regression [1cf4f629d9d2 ("cpu/hotplug: Move online calls to hotplugged cpu")]

2016-05-11 Thread Steven Rostedt
On Wed, 11 May 2016 15:21:16 +0300 Ville Syrjälä wrote: > Yeah can't get anything from the machine at that point. netconsole > didn't help either, and no serial on this machine. And IIRC I've > tried ramoops on this thing in the past but unfortunately the memory > got cleared on reboot. > Can y

[PATCH] ata: dwc: add DMADEVICES dependency

2016-05-11 Thread Arnd Bergmann
The dwc_460ex SATA driver has become available on non-powerpc architectures and may cause randconfig build errors when CONFIG_DMADEVICES is not set: warning: (SATA_DWC_OLD_DMA) selects DW_DMAC_CORE which has unmet direct dependencies (DMADEVICES) ERROR: "dw_dma_probe" [drivers/ata/sata_dwc_460ex.

Re: [PATCH v3 27/27] ARM: dts: exynos: Add RTC and I2C to Exynos5410

2016-05-11 Thread Javier Martinez Canillas
Hello Krzysztof, On 05/10/2016 04:09 PM, Krzysztof Kozlowski wrote: > Configure Exynos5410-specific properties of RTC, I2C and HSI2C nodes. > This still does not enable them on the board level though. > > Signed-off-by: Krzysztof Kozlowski > --- > arch/arm/boot/dts/exynos5410.dtsi | 66 > +

Re: [PATCH 2/5] efibc: Fix excessive stack footprint warning

2016-05-11 Thread Matt Fleming
On Tue, 10 May, at 10:40:22AM, Jeremy Compostella wrote: > Why not. See patch as attachment. > > Thanks, > > Jérémy > > From 8a9b07e2d7242fa8a36157f1025202a96c3c7c9a Mon Sep 17 00:00:00 2001 > From: Jeremy Compostella > Date: Tue, 10 May 2016 10:34:21 +0200 > Subject: [PATCH] efibc: report th

Re: [PATCH 0/2] ARM: dts: sun6i: Drop constraints on dc1sw regulator

2016-05-11 Thread Maxime Ripard
On Wed, May 11, 2016 at 01:23:12PM +0800, Chen-Yu Tsai wrote: > Hi Arnd, Olof, > > Here are 2 last minute fixes for 4.6. The 2 patches drop constaints on > the dc1sw regulator for 2 A31s tablets. I checked with Maxime and he said > to send them directly to you. > > The issue was first brought up

Re: [RFC/PATCHv3 v3 3/3] firmware: Support loading into a pre-allocated buffer

2016-05-11 Thread Mimi Zohar
Hi Stephen, On Tue, 2016-05-10 at 15:26 -0700, Stephen Boyd wrote: > -static int fw_get_filesystem_firmware(struct device *device, > -struct firmware_buf *buf) > +static int > +fw_get_filesystem_firmware(struct device *device, struct firmware_buf *buf) > { >

Re: [PATCH v7 1/5] usb: dwc3: omap: use request_threaded_irq()

2016-05-11 Thread Felipe Balbi
Hi, Roger Quadros writes: static irqreturn_t dwc3_omap_threaded_interrupt(int irq, void *_omap) { struct dwc3_omap *omap = _omap; u32 reg; spin_lock(&omap->lock); >>> >>> Do we really need a spin_lock for the dwc3-omap driver? >>> Currently w

Re: [PATCH] mmc: dw_mmc: rockchip: Set the drive phase to 180 degrees

2016-05-11 Thread Heiko Stuebner
Am Dienstag, 10. Mai 2016, 11:16:35 schrieb Douglas Anderson: > Historically for Rockchip devices we've relied on the power-on > default (or perhaps the firmware setting) to get the correct drive > phase for dw_mmc devices. This worked OK for the most part, but: > > * Relying on the setting just

Re: S3 resume regression [1cf4f629d9d2 ("cpu/hotplug: Move online calls to hotplugged cpu")]

2016-05-11 Thread Ville Syrjälä
On Wed, May 11, 2016 at 02:24:51PM +0200, Sebastian Andrzej Siewior wrote: > On 05/11/2016 02:21 PM, Ville Syrjälä wrote: > > Yeah can't get anything from the machine at that point. netconsole > > didn't help either, and no serial on this machine. And IIRC I've > > tried ramoops on this thing in th

Re: [RFC 01/13] mm, compaction: don't isolate PageWriteback pages in MIGRATE_SYNC_LIGHT mode

2016-05-11 Thread Michal Hocko
On Tue 10-05-16 09:35:51, Vlastimil Babka wrote: > From: Hugh Dickins > > At present MIGRATE_SYNC_LIGHT is allowing __isolate_lru_page() to > isolate a PageWriteback page, which __unmap_and_move() then rejects > with -EBUSY: of course the writeback might complete in between, but > that's not what

Re: [PATCH v3 26/27] ARM: dts: exynos: Add I2C, PWM and UART pinctrl to Exynos5410

2016-05-11 Thread Javier Martinez Canillas
Hello Krzysztof, On 05/10/2016 04:09 PM, Krzysztof Kozlowski wrote: > Add pincontrol groups for HSI2C (USI), I2C, PWM and UART to Exynos5410. > This allows configuring these pins to specific functions. > > Signed-off-by: Krzysztof Kozlowski > --- Reviewed-by: Javier Martinez Canillas Best reg

Re: S3 resume regression [1cf4f629d9d2 ("cpu/hotplug: Move online calls to hotplugged cpu")]

2016-05-11 Thread Ville Syrjälä
On Wed, May 11, 2016 at 02:11:29PM +0200, Sebastian Andrzej Siewior wrote: > On 05/11/2016 12:19 PM, Ville Syrjälä wrote: > > Hi, > Hi, > > > I have a Lenovo Ideapad S10-3t machine here (Atom N450, 1 core, 2 HT) > > which fails to resume from S3 on 4.6-rc releases. I bisected it down to > > > > c

[PATCH] drm: mediatek: add COMMON_CLK dependency

2016-05-11 Thread Arnd Bergmann
On kernel builds without COMMON_CLK, the newly added mediatek drm driver fails to build: drivers/gpu/drm/mediatek/mtk_mipi_tx.c:130:16: error: field 'pll_hw' has incomplete type struct clk_hw pll_hw; ^~ In file included from ../include/linux/clk.h:16:0, from

Re: [PATCH v3 25/27] ARM: dts: exynos: Move HSI2C nodes to exynos54xx.dtsi

2016-05-11 Thread Javier Martinez Canillas
Hello Krzysztof, On 05/10/2016 04:09 PM, Krzysztof Kozlowski wrote: > The USI/HSI2C nodes can be mostly shared between Exynos5420 and > Exynos5410 so move them to common DTSI. > > Signed-off-by: Krzysztof Kozlowski > --- Reviewed-by: Javier Martinez Canillas Best regards, -- Javier Martinez

Re: [RFC][PATCH 4/7] sched: Replace sd_busy/nr_busy_cpus with sched_domain_shared

2016-05-11 Thread Peter Zijlstra
On Wed, May 11, 2016 at 12:55:56PM +0100, Matt Fleming wrote: > > --- a/kernel/sched/fair.c > > +++ b/kernel/sched/fair.c > > @@ -7842,13 +7842,13 @@ static inline void set_cpu_sd_state_busy > > int cpu = smp_processor_id(); > > > > rcu_read_lock(); > > - sd = rcu_dereference(per_cpu(sd

Re: [PATCH v7 05/14] usb: otg-fsm: move host controller operations into usb_otg->hcd_ops

2016-05-11 Thread Roger Quadros
Peter, On 11/05/16 14:02, Roger Quadros wrote: > On 11/05/16 09:10, Peter Chen wrote: >> On Mon, May 02, 2016 at 03:18:48PM +0300, Roger Quadros wrote: >>> This is to prevent missing symbol build error if OTG is >>> enabled (built-in) and HCD core (CONFIG_USB) is module. >>> >>> Signed-off-by: Rog

Re: [PATCH v3 24/27] clk: samsung: exynos5410: Add I2C, HSI2C and RTC clocks

2016-05-11 Thread Javier Martinez Canillas
Hello Krzysztof, On 05/10/2016 04:09 PM, Krzysztof Kozlowski wrote: > Add clocks for I2C, USI (HSI2C) and RTC to the Exynos5410 clock driver. > > Signed-off-by: Krzysztof Kozlowski > --- Reviewed-by: Javier Martinez Canillas Best regards, -- Javier Martinez Canillas Open Source Group Samsung

Re: [PATCH v3 23/27] dt-bindings: clock: Add I2C, HSI2C and RTC clock IDs to Exynos5410

2016-05-11 Thread Javier Martinez Canillas
Hello Krzysztof, On 05/10/2016 04:09 PM, Krzysztof Kozlowski wrote: > Add IDs for I2C, USI (HSI2C) and RTC clocks to Exynos5410. Use the same > number as for Exynos5420 just in case in future these drivers were > merged. > > Signed-off-by: Krzysztof Kozlowski > --- Reviewed-by: Javier Martinez

Re: [PATCH] usb: gadget: f_fs: report error if excess data received

2016-05-11 Thread Michal Nazarewicz
On Wed, May 11 2016, Felipe Balbi wrote: > Also, returning -EOVERFLOW is not exactly correct here, because you'd > violate POSIX specification of read(), right ? Maybe we could piggyback on: EINVAL fd was created via a call to timerfd_create(2) and the wrong size buffer was g

Re: [PATCH] Xen: EFI: Parse DT parameters for Xen specific UEFI

2016-05-11 Thread Matt Fleming
On Fri, 06 May, at 09:52:42AM, Mathieu Poirier wrote: > > +static int __init efi_remap_init(void) > > +{ > > + u64 mapsize; > > + > > + pr_info("Remapping and enabling EFI services.\n"); > > + > > + mapsize = memmap.map_end - memmap.map; > > + memmap.map = (__force void *)io

Re: [PATCH] Xen: EFI: Parse DT parameters for Xen specific UEFI

2016-05-11 Thread Matt Fleming
On Fri, 06 May, at 04:32:06PM, Shannon Zhao wrote: > From: Shannon Zhao > > Add a new function to parse DT parameters for Xen specific UEFI just > like the way for normal UEFI. Then it could reuse the existing codes. > > If Xen supports EFI, initialize runtime services. This commit log would b

Re: S3 resume regression [1cf4f629d9d2 ("cpu/hotplug: Move online calls to hotplugged cpu")]

2016-05-11 Thread Sebastian Andrzej Siewior
On 05/11/2016 02:21 PM, Ville Syrjälä wrote: > Yeah can't get anything from the machine at that point. netconsole > didn't help either, and no serial on this machine. And IIRC I've > tried ramoops on this thing in the past but unfortunately the memory > got cleared on reboot. efi + pstore maybe?

[PATCH 1/2] sched: use tsk_cpus_allowed() instead of accessing ->cpus_allowed

2016-05-11 Thread Sebastian Andrzej Siewior
From: Thomas Gleixner Use the future-safe accessor for struct task_struct's. Signed-off-by: Thomas Gleixner Signed-off-by: Sebastian Andrzej Siewior --- kernel/sched/cpudeadline.c | 4 ++-- kernel/sched/cpupri.c | 4 ++-- kernel/sched/deadline.c| 2 +- 3 files changed, 5 insertions(+

[PATCH 2/2] sched: provide a tsk_nr_cpus_allowed() helper

2016-05-11 Thread Sebastian Andrzej Siewior
From: Thomas Gleixner tsk_nr_cpus_allowed() is an accessor for task->nr_cpus_allowed which allows us to change the representation of ->nr_cpus_allowed if required. Signed-off-by: Thomas Gleixner Signed-off-by: Sebastian Andrzej Siewior --- include/linux/sched.h | 5 + kernel/sched/core

<    2   3   4   5   6   7   8   9   10   11   >