Re: [PATCH v2 00/21] arm64: Virtualization Host Extension support

2016-01-25 Thread Marc Zyngier
On 25/01/16 16:15, Arnd Bergmann wrote: > On Monday 25 January 2016 15:53:34 Marc Zyngier wrote: >> host and guest, reducing the overhead of virtualization. >> >> In order to have the same kernel binary running on all versions of the >> architecture, this series makes heavy use of runtime code patc

Re: [PATCH v4 21/22] thermal/intel_powerclamp: Remove duplicated code that starts the kthread

2016-01-25 Thread Jacob Pan
On Mon, 25 Jan 2016 16:45:10 +0100 Petr Mladek wrote: > This patch removes a code duplication. It does not modify > the functionality. > Acked-by:Jacob Pan > Signed-off-by: Petr Mladek > CC: Zhang Rui > CC: Eduardo Valentin > CC: Jacob Pan > CC: linux...@vger.kernel.org > --- > drivers/th

Re: Dependency issue through subdir's

2016-01-25 Thread Michal Marek
On 2016-01-25 17:22, Kieran Bingham wrote: > I've got a working patch now for the $(MAKE) version, > however I've had to use $(build)=scripts/gdb/linux build_constants to > make it work. $(build)= is the correct syntax, sorry for the confusion. Michal

Re: 3.14 stable regression don't remove from shrink list in select_collect()

2016-01-25 Thread Jason Baron
On 01/25/2016 11:05 AM, Shawn Bohrer wrote: > I recently updated some machines to 3.14.58 and they reliably get soft > lockups. Sometimes the soft lockup recovers and some times it does > not. I've bisected this on the 3.14 stable branch and arrived at: > > c214cb82cdc744225d85899fc138251527f75f

Re: [PATCH v2 00/10] rtc: max77686: Extend driver and add max77802 support

2016-01-25 Thread Alexandre Belloni
Hi, On 21/01/2016 at 17:23:23 -0300, Javier Martinez Canillas wrote : > On a recent disussion [0] with Krzysztof Kozlowski and Laxman Dewangan, > we came to the conclusion that the max77686 and max77802 RTC are almost > the same with only a few differences so there shouldn't be two separate > driv

Re: [PATCH 4/5] staging: media: lirc: place operator on previous line

2016-01-25 Thread Mauro Carvalho Chehab
Em Fri, 18 Dec 2015 18:35:28 +0530 Sudip Mukherjee escreveu: > checkpatch complains about the logical operator, which should be on the > previous line. IMHO, this is a matter of personal taste. I prefer to keep the operator on the next line, as it makes clearer to see why the logic was broken.

Re: [PATCH v3 00/12] pwm: add support for atomic update

2016-01-25 Thread Doug Anderson
Thierry and Boris, On Tue, Nov 10, 2015 at 9:34 AM, Thierry Reding wrote: > On Mon, Oct 19, 2015 at 12:12:12PM +0200, Heiko Stübner wrote: >> Hi Thierry, >> >> Am Montag, 21. September 2015, 11:33:17 schrieb Boris Brezillon: >> > Hello, >> > >> > This series adds support for atomic PWM update, or

Re: [PATCH 5/5] staging: media: lirc: use new parport device model

2016-01-25 Thread Mauro Carvalho Chehab
Em Fri, 18 Dec 2015 18:35:29 +0530 Sudip Mukherjee escreveu: > Modify lirc_parallel driver to use the new parallel port device model. Did you or someone else tested this patch? Regards, Mauro > > Signed-off-by: Sudip Mukherjee > --- > drivers/staging/media/lirc/lirc_parallel.c | 100 >

Re: [PATCH v4 22/22] thermal/intel_powerclamp: Convert the kthread to kthread worker API

2016-01-25 Thread Jacob Pan
On Mon, 25 Jan 2016 16:45:11 +0100 Petr Mladek wrote: > Kthreads are currently implemented as an infinite loop. Each > has its own variant of checks for terminating, freezing, > awakening. In many cases it is unclear to say in which state > it is and sometimes it is done a wrong way. > > The pla

[PATCH] numa: fix /proc//numa_maps for hugetlbfs on s390

2016-01-25 Thread Michael Holzheu
When working with hugetlbfs ptes (which are actually pmds) is not valid to directly use pte functions like pte_present() because the hardware bit layout of pmds and ptes can be different. This is the case on s390. Therefore we have to convert the hugetlbfs ptes first into a valid pte encoding with

Re: [PATCH 2/3] ACPI: parse SPCR and enable matching console

2016-01-25 Thread Peter Hurley
On 01/25/2016 03:45 AM, Aleksey Makarov wrote: > 'ARM Server Base Boot Requiremets' [1] mention SPCR > (Serial Port Console Redirection Table) [2] as a mandatory ACPI table > that specifies the configuration of serial console. > > Parse this table and check if any registered console match > the de

Re: [PATCH v2 00/21] arm64: Virtualization Host Extension support

2016-01-25 Thread Arnd Bergmann
On Monday 25 January 2016 16:23:37 Marc Zyngier wrote: > On 25/01/16 16:15, Arnd Bergmann wrote: > > On Monday 25 January 2016 15:53:34 Marc Zyngier wrote: > >> host and guest, reducing the overhead of virtualization. > >> > >> In order to have the same kernel binary running on all versions of the

[PATCH] cifs: remove redundant check for null string pointer

2016-01-25 Thread Colin King
From: Colin Ian King server_RFC1001_name is declared as a RFC1001_NAME_LEN_WITH_NULL sized char array in struct TCP_Server_Info so the null pointer check on server_RFC1001_name is redundant and can be removed. Detected with smatch: fs/cifs/connect.c:2982 ip_rfc1001_connect() warn: this array is

Re: [PATCH v2 00/21] arm64: Virtualization Host Extension support

2016-01-25 Thread Will Deacon
On Mon, Jan 25, 2016 at 03:53:34PM +, Marc Zyngier wrote: > ARMv8.1 comes with the "Virtualization Host Extension" (VHE for > short), which enables simpler support of Type-2 hypervisors. > > This extension allows the kernel to directly run at EL2, and > significantly reduces the number of syst

Re: N900 sleep mode (in 4.5-rc0, if that matters)

2016-01-25 Thread Tony Lindgren
* Pavel Machek [160123 04:11]: > > So far, the LEDs stubbornly stay on :-(. Machine is booted off > sd-card, and I'm connected to it over wifi. GSM is active, X is > running. If LEDs stay on, you're not entering deeper idle states. > Normally, ping looks like this: > > 64 bytes from 192.168.43

Re: Missing OMAP PM layer

2016-01-25 Thread Tony Lindgren
* Pali Rohár [160124 12:24]: > Hello, > > make menuconfig allows me to choose "OMAP PM layer selection" and the > only one option is CONFIG_OMAP_PM_NOOP "No-op/debug PM layer". > > What does it mean? Power manager is noop? > > I see that it has only two corresponding files in mainline kernel:

Re: [PATCH] cpufreq: pxa2xx: fix pxa_cpufreq_change_voltage prototype

2016-01-25 Thread Viresh Kumar
On 25-01-16, 16:44, Arnd Bergmann wrote: > There are two definitions of pxa_cpufreq_change_voltage, with slightly > different prototypes after one of them had its argument marked 'const'. > Now the other one (for !CONFIG_REGULATOR) produces a harmless warning: > > drivers/cpufreq/pxa2xx-cpufreq.c:

[PATCH] PCI: QEMU top-level IDs for (sub)vendor & device

2016-01-25 Thread Robin H. Johnson
Introduce PCI_VENDOR/PCI_SUBVENDOR/PCI_SUBDEVICE defines to replace the constants scattered in the kernel already used to detect QEMU. They are defined in the QEMU codebase per docs/specs/pci-ids.txt. Signed-off-by: Robin H. Johnson --- This change prompted by a near-miss in the review of recent

[PATCH v2 0/2] gpio: Add driver for SPI serializers

2016-01-25 Thread Andrew F. Davis
This series adds a GPI(General Purpose Input) driver for generic parallel-in/serial-out shift registers, such as the SN65HVS882 that this driver was tested on. This should also work for the rest of the SN65HVS88x series as well as other 74x165 style devices. Changes from v1[0]: - Use new gpiochip

[PATCH v2 1/2] dt-bindings: GPIO: Add generic serializer binding

2016-01-25 Thread Andrew F. Davis
Add binding for generic parallel-in/serial-out shift register devices used as GPIO. Signed-off-by: Andrew F. Davis --- .../devicetree/bindings/gpio/gpio-pisosr.txt | 34 ++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-

Re: [PATCH] cpufreq: cpufreq-dt: avoid uninitialized variable warnings:

2016-01-25 Thread Viresh Kumar
On 25-01-16, 16:45, Arnd Bergmann wrote: > gcc warns quite a bit about values returned from allocate_resources() > in cpufreq-dt.c: > > cpufreq-dt.c: In function 'cpufreq_init': > cpufreq-dt.c:327:6: error: 'cpu_dev' may be used uninitialized in this > function [-Werror=maybe-uninitialized] > cpu

[PATCH v5 2/2] virtio_balloon: Allow to resize and update the balloon stats in parallel

2016-01-25 Thread Petr Mladek
The virtio balloon statistics are not updated when the balloon is being resized. But it seems that both tasks could be done in parallel. stats_handle_request() updates the statistics in the balloon structure and then communicates with the host. update_balloon_stats() calls all_vm_events() that ju

[PATCH v5 0/2] virtio_balloon: Conversion to workqueue + parallel stats

2016-01-25 Thread Petr Mladek
The previous version did not prevent updating the balloon when it was being removed. There was an idea to update the stats in a separate work and cancel it after the config reset. But this does not seem to work. The code for updating the stats communicates with the host. IMHO, it should not run aft

Re: linux-4.4 bisected: kwin5 stuck on kde5 loading screen with radeon

2016-01-25 Thread Mario Kleiner
Readding Daniel, which somehow got dropped from the cc. On 01/25/2016 03:53 PM, Ville Syrjälä wrote: On Mon, Jan 25, 2016 at 02:44:53PM +0100, Mario Kleiner wrote: On 01/25/2016 02:23 PM, Ville Syrjälä wrote: On Mon, Jan 25, 2016 at 02:16:45PM +0100, Mario Kleiner wrote: On 01/25/2016 05:

[PATCH 1/1] OverlayFS: Fix checking permissions during lookup.

2016-01-25 Thread Ignacy Gawędzki
Add alternate lookup_one_len_check function to fs/namei.c which does what lookup_one_len did until now with a boolean argument telling whether to check that the base directory is traversable. Modify original lookup_one_len function to call the former with true as the last argument. In function ov

[PATCH v2 2/2] gpio: Add driver for SPI serializers

2016-01-25 Thread Andrew F. Davis
Add generic parallel-in/serial-out shift register GPIO driver. This includes SPI compatible devices like SN74165 serial-out shift registers and the SN65HVS88x series of industrial serializers that can be read over the SPI bus and used for GPI (General Purpose Input). Signed-off-by: Andrew F. Davi

[PATCH v5 1/2] virtio_balloon: Use a workqueue instead of "vballoon" kthread

2016-01-25 Thread Petr Mladek
This patch moves the deferred work from the "vballoon" kthread into a system freezable workqueue. We do not need to maintain and run a dedicated kthread. Also the event driven workqueues API makes the logic much easier. Especially, we do not longer need an own wait queue, wait function, and freeze

Re: [PATCH v2] mm: workingset: make workingset detection logic memcg aware

2016-01-25 Thread Johannes Weiner
On Sun, Jan 24, 2016 at 07:56:16PM +0300, Vladimir Davydov wrote: > Currently, inactive_age is maintained per zone, which results in > unexpected file page activations in case memory cgroups are used. For > example, if the total number of active pages is big, a memory cgroup > might get every refau

[PATCH 0/1] OverlayFS: Fix checking permissions during lookup.

2016-01-25 Thread Ignacy Gawędzki
Hi, While trying to figure out what exactly is going on with permission checking in OverlayFS, I found a pretty simple way to, so it seems, fix it. The problem I was having is triggered with the following setup: drwxr-xr-x lower/ drwx-- lower/foo/ drw-r--r-- lower/boo/bar drwxr-xr-x

Re: [PATCH v2 00/21] arm64: Virtualization Host Extension support

2016-01-25 Thread Marc Zyngier
On 25/01/16 16:26, Will Deacon wrote: > On Mon, Jan 25, 2016 at 03:53:34PM +, Marc Zyngier wrote: >> ARMv8.1 comes with the "Virtualization Host Extension" (VHE for >> short), which enables simpler support of Type-2 hypervisors. >> >> This extension allows the kernel to directly run at EL2, and

[PATCH] ix86: fix types used in pgprot cachability flags translations

2016-01-25 Thread Jan Beulich
For PAE kernels "unsigned long" is not suitable to hold page protection flags, since _PAGE_NX doesn't fit there. This is the reason for quite a few W+X pages getting reported as insecure during boot (observed namely for the entire initrd range). Quite the other way around, "unsigned long" is ineff

[PATCH 1/3] mm: workingset: eviction buckets for bigmem/lowbit machines

2016-01-25 Thread Johannes Weiner
space will get tight once we need to identify the memcg. add this to stretch out the necessary distance by sacrificing granularity. Signed-off-by: Johannes Weiner --- mm/workingset.c | 40 +++- 1 file changed, 35 insertions(+), 5 deletions(-) diff --git a/mm/

Re: [PATCH v3 14/17] XEN: EFI: Move x86 specific codes to architecture directory

2016-01-25 Thread Stefano Stabellini
On Sat, 23 Jan 2016, Shannon Zhao wrote: > From: Shannon Zhao > > Move x86 specific codes to architecture directory and export those EFI > runtime service functions. This will be useful for initializing runtime > service on ARM later. > > Signed-off-by: Shannon Zhao This patch causes a build b

Re: [PATCH v2 00/21] arm64: Virtualization Host Extension support

2016-01-25 Thread Will Deacon
On Mon, Jan 25, 2016 at 04:37:39PM +, Marc Zyngier wrote: > On 25/01/16 16:26, Will Deacon wrote: > > On Mon, Jan 25, 2016 at 03:53:34PM +, Marc Zyngier wrote: > >> ARMv8.1 comes with the "Virtualization Host Extension" (VHE for > >> short), which enables simpler support of Type-2 hyperviso

Re: [PATCH] watchdog: imgdpc: select WATCHDOG_CORE

2016-01-25 Thread Guenter Roeck
On 01/25/2016 08:06 AM, Arnd Bergmann wrote: The imgpdc_wdt driver can be built on all architectures with CONFIG_COMPILE_TEST, but fails if no other watchdog driver is enabled: drivers/watchdog/built-in.o: In function `pdc_wdt_remove': imgpdc_wdt.c:(.text+0x74): undefined reference to `watchdog_

[PATCH 3/3] mm: workingset: cgroup-aware

2016-01-25 Thread Johannes Weiner
TODO: - cgroup-aware shadow node reclaim Signed-off-by: Johannes Weiner --- include/linux/memcontrol.h | 39 ++ include/linux/mmzone.h | 11 - include/linux/swap.h | 1 + mm/memcontrol.c| 25 mm/vmscan.c

[PATCH 2/3] thermal: allow spear-thermal driver to be a module

2016-01-25 Thread Arnd Bergmann
When the thermal subsystem is a loadable module, the spear driver fails to build: drivers/thermal/built-in.o: In function `spear_thermal_exit': spear_thermal.c:(.text+0xf8): undefined reference to `thermal_zone_device_unregister' drivers/thermal/built-in.o: In function `spear_thermal_probe': spea

Re: [v3,11/41] mips: reuse asm-generic/barrier.h

2016-01-25 Thread Will Deacon
On Fri, Jan 15, 2016 at 01:58:53PM -0800, Paul E. McKenney wrote: > On Fri, Jan 15, 2016 at 10:27:14PM +0100, Peter Zijlstra wrote: > > On Fri, Jan 15, 2016 at 09:46:12AM -0800, Paul E. McKenney wrote: > > > On Fri, Jan 15, 2016 at 10:13:48AM +0100, Peter Zijlstra wrote: > > > > > > And the stuff

[PATCH 2/3] mm: workingset: separate shadow unpacking and refault calculation

2016-01-25 Thread Johannes Weiner
used to be alright, but we're gonna add memcg and then the difference between unpacking static data from the radix entry and dealing with dynamic objects and doing calculations becomes more pronounced and would make things awkward. keep unpacking simple, move the higher-level stuff to _refault().

[PATCH 1/3] thermal: spear: use __maybe_unused for PM functions

2016-01-25 Thread Arnd Bergmann
The spear thermal driver hides its suspend/resume function conditionally based on CONFIG_PM, but references them based on CONFIG_PM_SLEEP, so we get a warning if the former is set but the latter is not: thermal/spear_thermal.c:58:12: warning: 'spear_thermal_suspend' defined but not used [-Wunused

[PATCH 3/3] thermal: allow u8500-thermal driver to be a module

2016-01-25 Thread Arnd Bergmann
When the thermal subsystem is a loadable module, the u8500 driver fails to build: drivers/thermal/built-in.o: In function `db8500_thermal_probe': db8500_thermal.c:(.text+0x96c): undefined reference to `thermal_zone_device_register' drivers/thermal/built-in.o: In function `db8500_thermal_work': db

Re: [PATCH] sched: Make schedstats a runtime tunable that is disabled by default

2016-01-25 Thread Mel Gorman
On Mon, Jan 25, 2016 at 03:29:08PM +, Matt Fleming wrote: > On Mon, 25 Jan, at 10:05:31AM, Mel Gorman wrote: > > +static int __init setup_schedstats(char *str) > > +{ > > + int ret = 0; > > + if (!str) > > + goto out; > > + > > + if (!strcmp(str, "enable")) { > > + set

[PATCH 02/14] perf hists: Resort hist entries with hierarchy

2016-01-25 Thread Namhyung Kim
For hierarchical output, each entries should be sorted in their rbtree (hroot) properly. Add hists__hierarchy_output_resort() to do the job. Note that those hierarchy entries share the period counts, it'd be important to update the hists->stats only once (for leaves). Acked-by: Pekka Enberg Sig

[PATCHSET 00/14] perf tools: Add support for hierachy view (v3)

2016-01-25 Thread Namhyung Kim
Hello, This is v3 attempt of my earlier patchset [1]. This patchset implements a new feature that collects hist entries in a hierachical manner. That means lower-level entries belong to an upper-level entry. The entry hierachy is built on the sort keys given, so users can set it whatever they w

[PATCH 14/14] perf top: Add --hierarchy option

2016-01-25 Thread Namhyung Kim
Support hierarchy output for perf-top using --hierarchy option. Acked-by: Pekka Enberg Signed-off-by: Namhyung Kim --- tools/perf/Documentation/perf-top.txt | 3 +++ tools/perf/builtin-top.c | 15 +++ 2 files changed, 18 insertions(+) diff --git a/tools/perf/Documenta

[PATCH 08/14] perf hists browser: Support collapsing/expanding whole entries in hierarchy

2016-01-25 Thread Namhyung Kim
The 'C' and 'E' keys are to collapse/expand all hist entries. Update nr_hierarchy_entries properly in this case. Acked-by: Pekka Enberg Signed-off-by: Namhyung Kim --- tools/perf/ui/browsers/hists.c | 71 +- 1 file changed, 56 insertions(+), 15 deletions

Re: [PATCH v3 15/17] ARM64: XEN: Add a function to initialize Xen specific UEFI runtime services

2016-01-25 Thread Stefano Stabellini
On Sat, 23 Jan 2016, Shannon Zhao wrote: > From: Shannon Zhao > > When running on Xen hypervisor, runtime services are supported through > hypercall. Add a Xen specific function to initialize runtime services. > > Signed-off-by: Shannon Zhao > --- > arch/arm64/include/asm/xen/xen-ops.h | 6 ++

[PATCH 05/14] perf ui/stdio: Implement hierarchy output mode

2016-01-25 Thread Namhyung Kim
The hierarchy output mode is to group entries for each level so that user can see higher level picture more easily. It also helps to find out which component is most costly. The output will look like below: 15.11% swapper 14.97% [kernel.vmlinux] 0.09% [libahc

[PATCH 12/14] perf report: Add --hierarchy option

2016-01-25 Thread Namhyung Kim
The --hierarchy option is to show output in hierarchy mode. It extends folding/unfolding in the TUI and GTK browsers to support sort items as well as callchains. Users can toggle the items to see the performance result at wanted level. $ perf report --hierarchy --tui OverheadCommand

[PATCH 10/14] perf hists browser: Align column header in hierarchy mode

2016-01-25 Thread Namhyung Kim
Like in stdio, fit column header to hierarchy output. Merge column headers with "/" as a separator. OverheadCommand / Shared Object / Symbol ... + 0.09%dwm + 0.06%emacs - 0.05%perf - 0.05%[kernel.vmlinux] + 0.03%[k]

[PATCH 13/14] perf hists: Support decaying in hierarchy mode

2016-01-25 Thread Namhyung Kim
In the hierarchy mode, hist entries should decay their children too. Also update hists__delete_entry() to be able to free child entries. Acked-by: Pekka Enberg Signed-off-by: Namhyung Kim --- tools/perf/util/hist.c | 42 ++ 1 file changed, 34 insertions(+

[PATCH 11/14] perf ui/gtk: Implement hierarchy output mode

2016-01-25 Thread Namhyung Kim
The hierarchy output mode is to group entries for each level so that user can see higher level picture more easily. Acked-by: Pekka Enberg Signed-off-by: Namhyung Kim --- tools/perf/ui/gtk/hists.c | 161 +- 1 file changed, 160 insertions(+), 1 deletio

[PATCH 06/14] perf ui/stdio: Align column header for hierarchy output

2016-01-25 Thread Namhyung Kim
The hierarchy output mode is to group entries so the existing columns won't fit to the new output. Treat all sort keys as a single column and separate headers by "/". #Overhead Command / Shared Object # ... # 15.11% swapper 1

[PATCH 07/14] perf hists browser: Count number of hierarchy entries

2016-01-25 Thread Namhyung Kim
Add nr_hierarchy_entries field to keep current number of (unfolded) hist entries. And the hist_entry->nr_rows carries number of direct children. But in the hierarchy mode, entry can have grand children and callchains. So update the number properly using hierarchy_count_rows() when toggling the fol

[PATCH 09/14] perf hists browser: Implement hierarchy output

2016-01-25 Thread Namhyung Kim
Implement hierarchy mode in TUI. The output is look like stdio but it also supports to fold/unfold children dynamically. Acked-by: Pekka Enberg Signed-off-by: Namhyung Kim --- tools/perf/ui/browsers/hists.c | 253 ++--- 1 file changed, 236 insertions(+), 17

[PATCH 04/14] perf hists: Support filtering in hierarchy mode

2016-01-25 Thread Namhyung Kim
The hists__filter_hierarchy() function implements filtering in hierarchy mode. Now struct perf_hpp_fmt has optional ->filter callback which is called from this function. The callback can return 3 kind of values. A negative value means that it's not filtered by this type. It marks current entry

[PATCH] crypto: hash - select CRYPTO_HASH where needed

2016-01-25 Thread Arnd Bergmann
The ghash and poly1305 hash implementations can be enabled when CONFIG_CRYPTO_HASH is turned off, causing a link error: crypto/built-in.o: In function `ghash_mod_init': (.init.text+0xd0): undefined reference to `crypto_register_shash' crypto/built-in.o: In function `ghash_mod_exit': (.exit.text+0x

[RFC][PATCH 3/4] arm64: Add support for ARCH_SUPPORTS_DEBUG_PAGEALLOC

2016-01-25 Thread Laura Abbott
With support for forcing all memory, we can now easily map and unmap individual pages for debugging purposes. Add support for ARCH_SUPPORTS_DEBUG_PAGEALLOC to map and unmap pages when this debugging feature is enabled. Signed-off-by: Laura Abbott --- arch/arm64/Kconfig | 3 +++ arch/arm64

[PATCH 01/14] perf hists: Basic support of hierarchical report view

2016-01-25 Thread Namhyung Kim
In the hierarchical view, entries will be grouped and sorted on the first key, and then second key, and so on. Add he->hroot_{in,out} field to keep lower level entries. Actually this can be shared with callchain sorted_root since the hroots are only used by non-leaf entries and callchain is only u

Re: [PATCH v12 10/20] dax: Replace XIP documentation with DAX documentation

2016-01-25 Thread Matthew Wilcox
On Sun, Jan 24, 2016 at 01:03:49AM -0800, Jared Hulbert wrote: > I our defense we didn't know we were sinning at the time. Fair enough. Cache flushing is Hard. > Can you walk me through the cache flushing hole? How is it okay on > X86 but not VIVT archs? I'm missing something obvious here. >

[PATCH 1/2] crypto: jitterentropy - always select CRYPTO_RNG

2016-01-25 Thread Arnd Bergmann
When building the jitterentropy driver by itself, we get a link error when CRYPTO_RNG is not enabled as well: crypto/built-in.o: In function `jent_mod_init': jitterentropy-kcapi.c:(.init.text+0x98): undefined reference to `crypto_register_rng' crypto/built-in.o: In function `jent_mod_exit': jitte

[PATCH 03/14] perf hists: Add helper functions for hierarchy mode

2016-01-25 Thread Namhyung Kim
The rb_hierarchy_{next,prev,last} functions are to traverse all hist entries in a hierarchy. They will be used by various function which supports hierarchy output. Acked-by: Pekka Enberg Signed-off-by: Namhyung Kim --- tools/perf/util/hist.c | 45 +

[RFC][PATCH 4/4] arm64: ptdump: Indicate whether memory should be faulting

2016-01-25 Thread Laura Abbott
With CONFIG_DEBUG_PAGEALLOC, pages do not have the valid bit set when free in the buddy allocator. Add an indiciation to the page table dumping code that the valid bit is not set, 'F' for fault, to make this easier to understand. Signed-off-by: Laura Abbott --- Might be too verbose but I found th

Re: [PATCH v15 1/6] fpga: add bindings document for fpga area and fpga bus

2016-01-25 Thread Rob Herring
On Wed, Jan 20, 2016 at 01:24:22PM -0600, at...@opensource.altera.com wrote: > From: Alan Tull > > New bindings document for FPGA Area for reprogramming > FPGA's under Device Tree control > > Signed-off-by: Alan Tull > --- > v9: initial version added to this patchset > v10: s/fpga/FPGA/g >

[RFC][PATCH 1/4] arm64: Drop alloc function from create_mapping

2016-01-25 Thread Laura Abbott
create_mapping is only used in fixmap_remap_fdt. All the create_mapping calls need to happen on existing translation table pages without additional allocations. Rather than have an alloc function be called and fail, just set it to NULL and catch it's use. Signed-off-by: Laura Abbott --- arch/arm

[RFC][PATCH 2/4] arm64: Add option to force mapping with PAGE_SIZE pages

2016-01-25 Thread Laura Abbott
Under some circumstances (e.g. debugging) it may be useful to have all kernel memory mapped using PAGE_SIZE pages. Add an option for this. Signed-off-by: Laura Abbott --- arch/arm64/Kconfig | 11 +++ arch/arm64/mm/mmu.c | 10 +++--- 2 files changed, 18 insertions(+), 3 deletions(-)

[PATCH v2] watchdog: Add watchdog timer support for the WinSystems EBC-C384

2016-01-25 Thread William Breathitt Gray
The WinSystems EBC-C384 has an onboard watchdog timer. The timeout range supported by the watchdog timer is 1 second to 255 minutes. Timeouts under 256 seconds have a 1 second resolution, while the rest have a 1 minute resolution. This driver adds watchdog timer support for this onboard watchdog t

[RFC][PATCH 0/4] ARCH_SUPPORTS_DEBUG_PAGEALLOC for arm64

2016-01-25 Thread Laura Abbott
Hi, This series implements proper debug page alloc support for arm64. Pages are unmapped on free. This series is based on top of Mark Rutland's work to TLB conflicts in early MMU mapping (lkml.kernel.org/g/<1451930211-22460-1-git-send-email-mark.rutl...@arm.com>) and Ard Biesheuvel's patch to all

[PATCH] x86/mm: avoid premature success when changing page attributes

2016-01-25 Thread Jan Beulich
Since successful return from __cpa_process_fault() makes __change_page_attr() exit early (and successfully), its caller needs to be instructed to continue its iteration by adjusting ->numpages. While this already happens on one of __cpa_process_fault()'s successful exit paths, the other needs this

[PATCH 1/4] crypto: sunxi - don't print uninitialized data

2016-01-25 Thread Arnd Bergmann
gcc correctly warns that the printk output contains a variable that is not initialized in some cases: drivers/crypto/sunxi-ss/sun4i-ss-cipher.c: In function 'sun4i_ss_cipher_poll': drivers/crypto/sunxi-ss/sun4i-ss-cipher.c:254:76: warning: 'todo' may be used uninitialized in this function [-Wmayb

[RFC][PATCH 2/3] mm/page_poison.c: Enable PAGE_POISONING as a separate option

2016-01-25 Thread Laura Abbott
Page poisoning is currently setup as a feature if architectures don't have architecture debug page_alloc to allow unmapping of pages. It has uses apart from that though. Clearing of the pages on free provides an increase in security as it helps to limit the risk of information leaks. Allow page po

[RFC][PATCH 1/3] mm/debug-pagealloc.c: Split out page poisoning from debug page_alloc

2016-01-25 Thread Laura Abbott
For architectures that do not have debug page_alloc (!ARCH_SUPPORTS_DEBUG_PAGEALLOC), page poisoning is used instead. Even architectures that do have DEBUG_PAGEALLOC may want to take advantage of the poisoning feature. Separate out page poisoning into a separate file. This does not change the defa

[RFC][PATCH 0/3] Sanitization of buddy pages

2016-01-25 Thread Laura Abbott
Hi, This is an implementation of page poisoning/sanitization for all arches. It takes advantage of the existing implementation for !ARCH_SUPPORTS_DEBUG_PAGEALLOC arches. This is a different approach than what the Grsecurity patches were taking but should provide equivalent functionality. For thos

[RFC][PATCH 3/3] mm/page_poisoning.c: Allow for zero poisoning

2016-01-25 Thread Laura Abbott
By default, page poisoning uses a poison value (0xaa) on free. If this is changed to 0, the page is not only sanitized but zeroing on alloc with __GFP_ZERO can be skipped as well. The tradeoff is that detecting corruption from the poisoning is harder to detect. This feature also cannot be used wit

Re: tty: deadlock between n_tracerouter_receivebuf and flush_to_ldisc

2016-01-25 Thread Peter Hurley
On 01/22/2016 06:10 AM, Dmitry Vyukov wrote: > On Thu, Jan 21, 2016 at 6:51 PM, Peter Hurley > wrote: >> On 01/21/2016 02:20 AM, Peter Zijlstra wrote: >>> On Thu, Jan 21, 2016 at 11:06:45AM +0100, Dmitry Vyukov wrote: On Wed, Jan 20, 2016 at 5:08 PM, Peter Hurley wrote: > On 01/20

Re: [PATCH 1/4] crypto: sunxi - don't print uninitialized data

2016-01-25 Thread Arnd Bergmann
On Monday 25 January 2016 17:53:48 Arnd Bergmann wrote: > gcc correctly warns that the printk output contains a variable that > is not initialized in some cases: > > drivers/crypto/sunxi-ss/sun4i-ss-cipher.c: In function 'sun4i_ss_cipher_poll': > drivers/crypto/sunxi-ss/sun4i-ss-cipher.c:254:76: w

[PATCH 1/5] all: s390: move wrapper infrastructure to generic headers

2016-01-25 Thread Yury Norov
__SC_COMPAT_CAST for s390 is too specific due to 31-bit pointer length, so it's moved to arch/s390/include/asm/compat.h. Generic declaration assumes that long, unsigned long and pointer types are all 32-bit length. linux/syscalls_structs.h header is introduced, because from now (see next patch) st

[PATCH 2/5] all: declare new wrappers

2016-01-25 Thread Yury Norov
For arches that generate syscall table in C code declarations are needed. Conditional wrappers are also introduced. Signed-off-by: Yury Norov --- arch/s390/kernel/entry.h | 2 + include/linux/compat.h | 221 +++ kernel/sys_ni.c | 96 +

[PATCH 5/5] all: introduce COMPAT_WRAPPER option and enable it for s390

2016-01-25 Thread Yury Norov
Signed-off-by: Yury Norov --- arch/Kconfig | 4 arch/s390/Kconfig | 1 + 2 files changed, 5 insertions(+) diff --git a/arch/Kconfig b/arch/Kconfig index 4e949e5..ab7692e 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -518,6 +518,10 @@ config HAVE_COPY_THREAD_TLS normal C par

[PATCH 3/5] all: s390: redefine wrappers in generic code

2016-01-25 Thread Yury Norov
With new COMPAT_SYSCALL_WRAPx macro, we declare both sys_foo(), and compat_sys_foo() system calls. The later clears top halves of 64-bit registers to eliminate possible damage from garbage there. With the only exception (handled in next patch), this is mechanical work. Signed-off-by: Yury Norov

[PATCH 4/5] all: wrap getdents64 syscall

2016-01-25 Thread Yury Norov
This system call may be handled by compat handler if __ARCH_WANT_COMPAT_SYS_GETDENTS64 is defined. So we should declare wrapper otherwise only. Signed-off-by: Yury Norov --- fs/readdir.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/fs/readdir.c b/fs/readdir.c index ced6791..d34cc49

Re: [PATCH] ix86: fix types used in pgprot cachability flags translations

2016-01-25 Thread Thomas Gleixner
On Mon, 25 Jan 2016, Jan Beulich wrote: > For PAE kernels "unsigned long" is not suitable to hold page protection > flags, since _PAGE_NX doesn't fit there. This is the reason for quite a > few W+X pages getting reported as insecure during boot (observed namely > for the entire initrd range). > >

Re: [PATCH 3.12 00/39] 3.12.53-stable review

2016-01-25 Thread Shuah Khan
On 01/25/2016 04:49 AM, Jiri Slaby wrote: > This is the start of the stable review cycle for the 3.12.53 release. > There are 39 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses should be

Re: [PATCH 5/5] staging: media: lirc: use new parport device model

2016-01-25 Thread Sudip Mukherjee
On Mon, Jan 25, 2016 at 02:29:06PM -0200, Mauro Carvalho Chehab wrote: > Em Fri, 18 Dec 2015 18:35:29 +0530 > Sudip Mukherjee escreveu: > > > Modify lirc_parallel driver to use the new parallel port device model. > > Did you or someone else tested this patch? Only build tested and tested by ins

Re: tty: kmalloc size WARNING in vc_do_resize

2016-01-25 Thread Dmitry Vyukov
On Mon, Jan 25, 2016 at 5:12 PM, One Thousand Gnomes wrote: >> I think that either the kmalloc should use __GFP_NOWARN or >> vc_do_resize should do stricter size check. > > vc_do_resize doesn't know enough to do a stricter size check. There are > not many methods it calls but those are: > > vgacon

Re: [PATCH 1/2] [media] m88rs6000t: Better exception handling in five functions

2016-01-25 Thread Mauro Carvalho Chehab
Em Mon, 28 Dec 2015 15:38:54 +0100 SF Markus Elfring escreveu: > From: Markus Elfring > Date: Mon, 28 Dec 2015 15:10:30 +0100 > > This issue was detected by using the Coccinelle software. > > Move the jump label directly before the desired log statement > so that the variable "ret" will not be

Re: [PATCH V3 18/21] ACPI, PCI: Refine the way to handle translation_offset for ACPI resources

2016-01-25 Thread Mark Salter
On Mon, 2016-01-25 at 09:52 +, Lorenzo Pieralisi wrote: > On Tue, Jan 19, 2016 at 12:20:26PM +, Lorenzo Pieralisi wrote: > > Gerry, > > > > On Wed, Jan 13, 2016 at 02:21:04PM +0100, Tomasz Nowicki wrote: > > > From: Liu Jiang > > > > > > Some architectures, such as IA64 and ARM64, have n

Re: [PATCH v2 0/2] Modify static defined and wrong parameter used.

2016-01-25 Thread Mathieu Poirier
On 25 January 2016 at 01:34, Eric Long wrote: > Both of the two patches optimize the code and remove the mistakes > and warnings detected by the check tools. > > Changes since v1: > - Adjust the patch by the changes not by the check tools. > > Eric Long (2): > coresight: "DEVICE_ATTR_RO" should

Re: [PATCH] [media] xc5000: Faster result reporting in xc_load_fw_and_init_tuner()

2016-01-25 Thread Mauro Carvalho Chehab
Em Mon, 28 Dec 2015 20:20:27 +0100 SF Markus Elfring escreveu: > From: Markus Elfring > Date: Mon, 28 Dec 2015 20:10:30 +0100 > > This issue was detected by using the Coccinelle software. > > Split the previous if statement at the end so that each final log statement > will eventually be perfo

[PATCH v6 4/9] ppc64 ftrace_with_regs configuration variables

2016-01-25 Thread Torsten Duwe
* Makefile: - globally use -mprofile-kernel in case it's configured and available. * arch/powerpc/Kconfig / kernel/trace/Kconfig: - declare that ppc64le HAVE_MPROFILE_KERNEL and HAVE_DYNAMIC_FTRACE_WITH_REGS, and use it. Signed-off-by: Torsten Duwe --- arch/powerpc/Kconfi

[PATCH v6 2/9] ppc64le FTRACE_WITH_REGS implementation

2016-01-25 Thread Torsten Duwe
Implement FTRACE_WITH_REGS for powerpc64, on ELF ABI v2. Initial work started by Vojtech Pavlik, used with permission. * arch/powerpc/kernel/entry_64.S: - Implement an effective ftrace_caller that works from within the kernel binary as well as from modules. * arch/powerpc/kernel/ftra

[PATCH v6 5/9] ppc64 ftrace_with_regs: spare early boot and low level

2016-01-25 Thread Torsten Duwe
Using -mprofile-kernel on early boot code not only confuses the checker but is also useless, as the infrastructure is not yet in place. Proceed like with -pg (remove it from CFLAGS), equally with time.o and ftrace itself. * arch/powerpc/kernel/Makefile: - remove -mprofile-kernel from low lev

Re: [PATCH] sched: Make schedstats a runtime tunable that is disabled by default

2016-01-25 Thread Mel Gorman
On Mon, Jan 25, 2016 at 04:46:35PM +0100, Ingo Molnar wrote: > > Of course, it'll be our luck that tracking the data for these > > tracepoints is the most expensive part of schedstats ... > > > > Ingo? > > IIRC it needed only a small subset of schedstats to make those tracepoints > work. > > We

[PATCH v6 3/9] ppc use ftrace_modify_all_code default

2016-01-25 Thread Torsten Duwe
Convert ppc's arch_ftrace_update_code from its own function copy to use the generic default functionality (without stop_machine -- our instructions are properly aligned and the replacements atomic ;) With this we gain error checking and the much-needed function_trace_op handling. Signed-off-by: T

[PATCH v6 1/9] ppc64 (le): prepare for -mprofile-kernel

2016-01-25 Thread Torsten Duwe
The gcc switch -mprofile-kernel, available for ppc64 on gcc > 4.8.5, allows to call _mcount very early in the function, which low-level ASM code and code patching functions need to consider. Especially the link register and the parameter registers are still alive and not yet saved into a new stack

[PATCH v6 6/9] ppc64 ftrace: disable profiling for some functions

2016-01-25 Thread Torsten Duwe
At least POWER7/8 have MMUs that don't completely autoload; a normal, recoverable memory fault might pass through these functions. If a dynamic tracer function causes such a fault, any of these functions being traced with -mprofile-kernel may cause an endless recursion. Signed-off-by: Torsten Duwe

[PATCH v6 8/9] Implement kernel live patching for ppc64le (ABIv2)

2016-01-25 Thread Torsten Duwe
* create the appropriate files+functions arch/powerpc/include/asm/livepatch.h klp_check_compiler_support, klp_arch_set_pc arch/powerpc/kernel/livepatch.c with a stub for klp_write_module_reloc This is architecture-independent work in progress. * introduce a f

[PATCH v2 03/23] hisi_sas: set max commands as configurable

2016-01-25 Thread j00310691
From: John Garry Since v2 hardware permits different numbers of commands to v1, set this as configurable in hisi_sas_hw. Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 2 +- drivers/scsi/hisi_sas/hisi_sas_main.c | 24 drivers/scsi/hisi_sas/his

Re: [PATCH net-next] hv_netvsc: use skb_get_hash() instead of a homegrown implementation

2016-01-25 Thread Eric Dumazet
On Mon, 2016-01-25 at 16:00 +0100, Vitaly Kuznetsov wrote: > Recent changes to 'struct flow_keys' (e.g commit d34af823ff40 ("net: Add > VLAN ID to flow_keys")) introduced a performance regression in netvsc > driver. Is problem is, however, not the above mentioned commit but the > fact that netvsc_s

[PATCH 1/2] ASoC: cs35l32: avoid uninitialized variable access

2016-01-25 Thread Arnd Bergmann
gcc warns about the possibilty of accessing a property read from devicetree in cs35l32_i2c_probe() when it has not been initialized because CONFIG_OF is disabled: sound/soc/codecs/cs35l32.c: In function 'cs35l32_i2c_probe': sound/soc/codecs/cs35l32.c:278:2: warning: 'val' may be used uninitialized

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