Re: [PATCH v2 0/6] Appended signatures support for IMA appraisal

2017-06-13 Thread Michael Ellerman
Thiago Jung Bauermann writes: > Michael Ellerman writes: > >> Thiago Jung Bauermann writes: >> >>> On the OpenPOWER platform, secure boot and trusted boot are being >>> implemented using IMA for taking measurements and verifying signatures. >> >> I still want you to implement arch_kexec_kernel_

Re: [PATCH 0/3] livepatch: add shadow variable API

2017-06-13 Thread Miroslav Benes
> If you are referring to stacking livepatches ... to be honest I hadn't > thought of that scenario. In that case, we might be able to get away > with pushing something like this into the hash: > > klp #1: klp_shadow_attach(ptr, "shadow_var", ...) > klp #2: klp_shadow_attach(ptr, "shadow_var_

[PATCH] iommu/vt-d: constify intel_dma_ops.

2017-06-13 Thread Arvind Yadav
File size before: textdata bss dec hex filename 32765 7581824 353478a13 drivers/iommu/intel-iommu.o File size After adding 'const': textdata bss dec hex filename 32925 5981824 353478a13 drivers/iommu/intel-iommu.o Signed-off-by

Re: [RFC v4 00/20] Speculative page faults

2017-06-13 Thread Laurent Dufour
On 09/06/2017 18:59, Tim Chen wrote: > On 06/09/2017 09:35 AM, Michal Hocko wrote: >> On Fri 09-06-17 17:25:51, Laurent Dufour wrote: >> [...] >>> Thanks Michal for your feedback. >>> >>> I mostly focused on this database workload since this is the one where >>> we hit the mmap_sem bottleneck when

Re: [PATCH v7 10/10] staging: fsl-mc: move bus driver out of staging

2017-06-13 Thread Greg KH
On Thu, Jun 08, 2017 at 05:28:55PM +0300, laurentiu.tu...@nxp.com wrote: > From: Stuart Yoder > > Move the source files out of staging into their final locations: > -include files in drivers/staging/fsl-mc/include go to include/linux/fsl > -irq-gic-v3-its-fsl-mc-msi.c goes to drivers/irqchip

Re: [PATCH] powerpc: dts: use #include "..." to include local DT

2017-06-13 Thread Michael Ellerman
Masahiro Yamada writes: > Hi > > (+Anatolij Gustschin ) > > > Ping. > I am not 100% sure who is responsible for this, > but somebody, could take a look at this patch, please? Have you tested it actually works? It sounds reasonable, and if it behaves as you describe there is no change in behavio

Re: [PATCH 1/1] ARM: imx: Enable REGMAP_MMIO per default

2017-06-13 Thread Uwe Kleine-König
Hello, On Wed, Jun 07, 2017 at 08:43:16AM +0200, Alexander Stein wrote: > If unset, the gpc drivers fails to link with this error: > drivers/built-in.o: In function `imx_gpc_probe': > core.c:(.text+0x1e16c): undefined reference to > `__devm_regmap_init_mmio_clk' > > As the gpc driver is built wh

Re: brcmfmac: Fix kernel oops on resume when request firmware fails.

2017-06-13 Thread Enric Balletbo Serra
Hello Kalle, 2017-06-13 7:54 GMT+02:00 Kalle Valo : > Enric Balletbo i Serra wrote: > >> When request firmware fails, brcmf_ops_sdio_remove is being called and >> brcmf_bus freed. In such circumstancies if you do a suspend/resume cycle >> the kernel hangs on resume due a NULL pointer dereference

Re: [PATCH v4 2/2] arm: dts: Add Mediatek MT2701 i2c device node

2017-06-13 Thread Jun Gao
On Tue, 2017-06-13 at 11:36 +0200, Matthias Brugger wrote: > > On 12/06/17 13:54, Jun Gao wrote: > > On Fri, 2017-05-26 at 15:35 +0800, Jun Gao wrote: > >> From: Jun Gao > >> > >> Add MT2701 i2c device node. > >> > >> Signed-off-by: Jun Gao > >> --- > >> arch/arm/boot/dts/mt2701-evb.dts | 42

Re: [RFC v4 00/20] Speculative page faults

2017-06-13 Thread Laurent Dufour
On 12/06/2017 12:20, Jan Kara wrote: > Hello, > > On Fri 09-06-17 16:20:49, Laurent Dufour wrote: >> This is a port on kernel 4.12 of the work done by Peter Zijlstra to >> handle page fault without holding the mm semaphore. >> >> http://linux-kernel.2935.n7.nabble.com/RFC-PATCH-0-6-Another-go-at-s

Re: [PATCH v15 2/7] power: add power sequence library

2017-06-13 Thread Ulf Hansson
[...] > + > +/** > + * of_pwrseq_on - Carry out power sequence on for device node > + * > + * @np: the device node would like to power on > + * > + * Carry out a single device power on. If multiple devices > + * need to be handled, use of_pwrseq_on_list() instead. > + * > + * Return a pointer to

[PATCH v2 1/3] mm: numa: avoid waiting on freed migrated pages

2017-06-13 Thread Will Deacon
From: Mark Rutland In do_huge_pmd_numa_page(), we attempt to handle a migrating thp pmd by waiting until the pmd is unlocked before we return and retry. However, we can race with migrate_misplaced_transhuge_page(): // do_huge_pmd_numa_page// migrate_misplaced_transhuge_page() //

[PATCH v2 0/3] mm: huge pages: Misc fixes for issues found during fuzzing

2017-06-13 Thread Will Deacon
Hi all, This is v2 of the patches previously posted here: http://www.spinics.net/lists/linux-mm/msg128577.html Changes since v1 include: * Use smp_mb() instead of smp_mb__before_atomic() before atomic_set() * Added acks and fixes tag Feedback welcome, Will --->8 Mark Rutland (1): m

[PATCH v2 2/3] mm/page_ref: Ensure page_ref_unfreeze is ordered against prior accesses

2017-06-13 Thread Will Deacon
page_ref_freeze and page_ref_unfreeze are designed to be used as a pair, wrapping a critical section where struct pages can be modified without having to worry about consistency for a concurrent fast-GUP. Whilst page_ref_freeze has full barrier semantics due to its use of atomic_cmpxchg, page_ref_

[PATCH] iommu/io-pgtable-arm-v7s: constify dummy_tlb_ops.

2017-06-13 Thread Arvind Yadav
File size before: textdata bss dec hex filename 6146 56 962111843 drivers/iommu/io-pgtable-arm-v7s.o File size After adding 'const': textdata bss dec hex filename 6170 24 96203183b drivers/iommu/io-pgtable-arm-v7s.o

[PATCH v2 3/3] mm: migrate: Stabilise page count when migrating transparent hugepages

2017-06-13 Thread Will Deacon
When migrating a transparent hugepage, migrate_misplaced_transhuge_page guards itself against a concurrent fastgup of the page by checking that the page count is equal to 2 before and after installing the new pmd. If the page count changes, then the pmd is reverted back to the original entry, howe

Re: [PATCH 2/3 v3] time: Fix CLOCK_MONOTONIC_RAW sub-nanosecond accounting

2017-06-13 Thread Miroslav Lichvar
On Thu, Jun 08, 2017 at 04:44:21PM -0700, John Stultz wrote: > Due to how the MONOTONIC_RAW accumulation logic was handled, > there is the potential for a 1ns discontinuity when we do > accumulations. This small discontinuity has for the most part > gone un-noticed, but since ARM64 enabled CLOCK_MO

Re: [PATCH v2 0/3] ngene: Replace semaphores with mutexes

2017-06-13 Thread Binoy Jayan
Hi Arnd, On 13 June 2017 at 15:19, Arnd Bergmann wrote: > On Tue, Jun 13, 2017 at 10:58 AM, Binoy Jayan wrote: >> These are a set of patches [v2] which removes semaphores from ngene. >> These are part of a bigger effort to eliminate unwanted semaphores >> from the linux kernel. > > All three > >

Re: [PATCH] of: Provide dummy of_device_compatible_match() for compile-testing

2017-06-13 Thread Geert Uytterhoeven
On Tue, Apr 25, 2017 at 7:38 PM, Geert Uytterhoeven wrote: > Most of_device_*() functions have dummy versions for CONFIG_OF=n, > but of_device_compatible_match() hasn't. Fix that to improve the > ability to do compile-testing. > > Fixes: b9c13fe32faaa71c ("dt: Add of_device_compatible_match()") >

Re: [PATCH] aio: Add command to wait completion of all requests

2017-06-13 Thread Cyrill Gorcunov
On Tue, Jun 13, 2017 at 12:45:39PM +0300, Kirill Tkhai wrote: > > > > I'm not that familiar with AIO internals but this snippet worries me: > > the reqs_available is unsigned int, reqs is unsigned it as well but > > used as an accumulator over ALL cpus, can't it get overflow and > > gives modulo r

Re: [PATCH] drm/exynos/dsi: Remove error handling for bridge_node DT parsing

2017-06-13 Thread Hoegeun Kwon
On 06/13/2017 06:25 PM, Inki Dae wrote: 2017년 06월 09일 18:23에 Hoegeun Kwon 이(가) 쓴 글: The bridge_node is unnecessary between FIMD and DSIM. If don't remove error handling, it will not work between FIMD and DSIM. So remove error handling. Please make sure to describe why bridge_node is unnecessar

Re: [PATCH v2 1/8] PM / Domains: Constify genpd pointer

2017-06-13 Thread Ulf Hansson
On 12 June 2017 at 17:17, Krzysztof Kozlowski wrote: > Mark pointer to struct generic_pm_domain const (either passed in > argument or used localy in a function), whenever it is not modifed by > the function itself. > > Signed-off-by: Krzysztof Kozlowski Acked-by: Ulf Hansson > --- > drivers/b

Re: [PATCH][crypto-next] crypto: cavium: fix spelling mistake "Revsion" -> "Revision"

2017-06-13 Thread Joe Perches
On Tue, 2017-06-13 at 09:52 +0100, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in seq_printf message Hey Colin. Fixing spelling typos is a good thing, but is it a good thing to change possibly API dependent output in seq_ calls? > diff --git a/drivers/crypto/ca

Re: [RFT v2 2/8] PM / Domains: Handle safely genpd_syscore_switch() call on non-genpd device

2017-06-13 Thread Ulf Hansson
On 12 June 2017 at 17:17, Krzysztof Kozlowski wrote: > genpd_syscore_switch() had two problems: > 1. It silently assumed that device, it is being called for, belongs to >generic power domain and used container_of() on its power domain >pointer. Such assumption might not be true always. >

Re: [PATCH v2 4/8] PM / Domains: Fix unsafe iteration over modified list of device links

2017-06-13 Thread Ulf Hansson
On 12 June 2017 at 17:17, Krzysztof Kozlowski wrote: > pm_genpd_remove_subdomain() iterates over domain's master_links list and > removes matching element thus it has to use safe version of list > iteration. > > Fixes: f721889ff65a ("PM / Domains: Support for generic I/O PM domains (v8)") > Cc: >

Re: [PATCH v2 5/8] PM / Domains: Fix unsafe iteration over modified list of domain providers

2017-06-13 Thread Ulf Hansson
On 12 June 2017 at 17:17, Krzysztof Kozlowski wrote: > of_genpd_del_provider() iterates over list of domain provides and > removes matching element thus it has to use safe version of list > iteration. > > Fixes: aa42240ab254 ("PM / Domains: Add generic OF-based PM domain look-up") > Cc: > Signed-

Re: [PATCH v2 6/8] PM / Domains: Fix unsafe iteration over modified list of domains

2017-06-13 Thread Ulf Hansson
On 12 June 2017 at 17:17, Krzysztof Kozlowski wrote: > of_genpd_remove_last() iterates over list of domains and removes > matching element thus it has to use safe version of list iteration. > > Fixes: 17926551c98a ("PM / Domains: Add support for removing nested PM > domains by provider") > Cc: >

Re: [PATCH v2 7/8] PM / Domains: Fix missing default_power_down_ok comment

2017-06-13 Thread Ulf Hansson
On 12 June 2017 at 17:17, Krzysztof Kozlowski wrote: > Commit fc5cbf0c94b6 ("PM / Domains: Support for multiple states") split > out some code out of default_power_down_ok() function so the > documentation has to be moved to appropriate place. > > Signed-off-by: Krzysztof Kozlowski Acked-by: Ulf

Re: [PATCH][crypto-next] crypto: cavium: fix spelling mistake "Revsion" -> "Revision"

2017-06-13 Thread Colin Ian King
On 13/06/17 11:36, Joe Perches wrote: > On Tue, 2017-06-13 at 09:52 +0100, Colin King wrote: >> From: Colin Ian King >> >> Trivial fix to spelling mistake in seq_printf message > > Hey Colin. > > Fixing spelling typos is a good thing, but is it a > good thing to change possibly API dependent out

Re: [PATCH 2/4] [media] platform: Add Synopsys Designware HDMI RX Controller Driver

2017-06-13 Thread Hans Verkuil
On 06/13/17 12:06, Jose Abreu wrote: > Hi Hans, > > > On 13-06-2017 11:01, Jose Abreu wrote: > > [snip] >> Changes from RFC: >> - Added support for HDCP 1.4 > > [snip] >> + >> +/* HDCP 1.4 */ >> +#define DW_HDMI_HDCP14_BKSV_SIZE2 >> +#define DW_HDMI_HDCP14_KEYS_SIZE(2 * 40) >> + >>

Re: [PATCH][crypto-next] crypto: cavium: fix spelling mistake "Revsion" -> "Revision"

2017-06-13 Thread Joe Perches
On Tue, 2017-06-13 at 11:40 +0100, Colin Ian King wrote: > On 13/06/17 11:36, Joe Perches wrote: > > On Tue, 2017-06-13 at 09:52 +0100, Colin King wrote: > > > From: Colin Ian King > > > > > > Trivial fix to spelling mistake in seq_printf message > > Fixing spelling typos is a good thing, but is

Re: ./include/linux/err.h:35:16: warning: dereference of noderef expression

2017-06-13 Thread Luc Van Oostenryck
On Tue, Jun 13, 2017 at 11:55:26AM +0200, Charlemagne Lasse wrote: > Hi, > > I have following code which generates a warning when compiling with "make > C=1". > > ~~~ > struct task_struct *kthread; > kthread = kthread_create(x, y, "z"); > if (IS_ERR(kthread)) { > ~~~ > > The

Re: RESEND Re: [Patch 2/2]: powerpc/hotplug/mm: Fix hot-add memory node assoc

2017-06-13 Thread Michael Ellerman
Michael Bringmann writes: > Here is the information from 2 different kernels. I have not been able to > retrieve > the information matching yesterday's attachments, yet, as those dumps were > acquired in April. > > Attached please find 2 dumps of similar material from kernels running with my

Re: [PATCH 2/4] [media] platform: Add Synopsys Designware HDMI RX Controller Driver

2017-06-13 Thread Hans Verkuil
On 06/13/17 12:31, Hans Verkuil wrote: > On 06/13/17 12:06, Jose Abreu wrote: >> Hi Hans, >> >> >> On 13-06-2017 11:01, Jose Abreu wrote: >> >> [snip] >>> Changes from RFC: >>> - Added support for HDCP 1.4 >> >> [snip] >>> + >>> +/* HDCP 1.4 */ >>> +#define DW_HDMI_HDCP14_BKSV_SIZE 2 >>> +#de

linux-next: build failure after merge of the block tree

2017-06-13 Thread Stephen Rothwell
Hi Jall, After merging the block tree, today's linux-next build (s390x s390-defconfig) failed like this: drivers/s390/block/scm_blk.c:293:10: error: 'BLK_MQ_RQ_QUEUE_BUSY' undeclared (first use in this function) drivers/s390/block/scm_blk.c:327:9: error: 'BLK_MQ_RQ_QUEUE_OK' undeclared (first u

Re: [PATCH V7 1/2] PM / Domains: Add support to select performance-state of domains

2017-06-13 Thread Viresh Kumar
On 09-06-17, 13:00, Ulf Hansson wrote: > On 8 June 2017 at 11:42, Viresh Kumar wrote: > > On 08-06-17, 09:48, Ulf Hansson wrote: > >> It's not a nightmare, just a tricky thing to solve. :-) > > > > I may have just solved it actually :) > > That was quick. :-) :) > > So the real locking problem

[PATCH] kselftests: timers: Fix inconsistency-check to not ignore first timestamp

2017-06-13 Thread Miroslav Lichvar
When the first timestamp in the list of clock readings was later than the second timestamp and all other timestamps were in order, the inconsistency was not reported because the index of the out-of-order timestamp was equal to the default value. Cc: John Stultz Cc: Prarit Bhargava Cc: Richard Co

Re: brcmfmac: Fix kernel oops on resume when request firmware fails.

2017-06-13 Thread Arend van Spriel
On 13-06-17 12:23, Enric Balletbo Serra wrote: > Hello Kalle, > > 2017-06-13 7:54 GMT+02:00 Kalle Valo : >> Enric Balletbo i Serra wrote: >> >>> When request firmware fails, brcmf_ops_sdio_remove is being called and >>> brcmf_bus freed. In such circumstancies if you do a suspend/resume cycle >>>

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

2017-06-13 Thread Miroslav Benes
On Thu, 1 Jun 2017, Joe Lawrence wrote: > Modify the sample livepatch to demonstrate the shadow variable API. > > Signed-off-by: Joe Lawrence > --- > samples/livepatch/livepatch-sample.c | 39 > +++- > 1 file changed, 38 insertions(+), 1 deletion(-) Would it ma

Re: [PATCH 02/20] 32-bit ABI: introduce ARCH_32BIT_OFF_T config option

2017-06-13 Thread Yury Norov
On Thu, Jun 08, 2017 at 04:09:50PM +0100, Catalin Marinas wrote: > On Sun, Jun 04, 2017 at 02:59:51PM +0300, Yury Norov wrote: > > All new 32-bit architectures should have 64-bit off_t type, but existing > > architectures has 32-bit ones. > > > > To handle it, new config option is added to arch/Kc

Re: [PATCH v4 1/1] perf tools: fix perf build with ARCH=x86_64

2017-06-13 Thread Jiada Wang
Hello On 04/10/2017 01:17 AM, Jiri Olsa wrote: On Sun, Apr 09, 2017 at 08:02:37PM -0700, jiada_w...@mentor.com wrote: From: Jiada Wang with commit: 0a943cb10ce78 (tools build: Add HOSTARCH Makefile variable) when build for ARCH=x86_64, ARCH=x86_64 is passed to perf instead of ARCH=x86, so perf

[PATCH] trivial: tracing: spelling fixes for CONFIG_HWLAT_TRACER

2017-06-13 Thread Jesper Dangaard Brouer
Trivial spelling fixes for Kconfig help text of config HWLAT_TRACER. Fixes: e7c15cd8a113 ("tracing: Added hardware latency tracer") Signed-off-by: Jesper Dangaard Brouer Acked-by: Steven Rostedt --- Resend of: https://patchwork.kernel.org/patch/9405223/ kernel/trace/Kconfig |4 ++-- 1 file

linux-next: build warning after merge of the net tree

2017-06-13 Thread Stephen Rothwell
Hi all, After merging the net tree, today's linux-next build (powerpc ppc44x_defconfig) produced this warning: net/core/dev.c: In function 'dev_cpu_dead': net/core/dev.c:8330:2: warning: 'remsd' is used uninitialized in this function [-Wuninitialized] net_rps_send_ipi(remsd); ^ Introduced b

Re: [PATCH v9 1/5] firmware: add extensible driver data params

2017-06-13 Thread Rafał Miłecki
On 2017-06-13 11:05, Greg KH wrote: On Mon, Jun 05, 2017 at 02:39:33PM -0700, Luis R. Rodriguez wrote: As the firmware API evolves we keep extending functions with more arguments. Stop this nonsense by proving an extensible data structure which can be used to represent both user parameters and

Re: [PATCH v2 2/2] fs/fcntl: f_setown, avoid undefined behaviour

2017-06-13 Thread Jiri Slaby
On 06/13/2017, 12:11 PM, Jeff Layton wrote: > On Tue, 2017-06-13 at 11:22 +0200, Jiri Slaby wrote: >> fcntl(0, F_SETOWN, 0x8000) triggers: >> UBSAN: Undefined behaviour in fs/fcntl.c:118:7 >> negation of -2147483648 cannot be represented in type 'int': >> CPU: 1 PID: 18261 Comm: syz-executor No

[PATCH v2] acpi: handle the acpi hotplug schedule error

2017-06-13 Thread Lee, Chun-Yi
Kernel should decrements the reference count of acpi device when the scheduling of acpi hotplug work is failed, and evaluates _OST to notify BIOS the failure. v2: To simplify the code. (Andy Shevchenko) Cc: "Rafael J. Wysocki" Cc: Len Brown Cc: Michal Hocko Reviewed-by: Andy Shevchenko Signed

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

2017-06-13 Thread Maxime Ripard
On Mon, Jun 12, 2017 at 03:52:35PM +1000, Jonathan Liu wrote: > The drm_get_edid function should be used instead of drm_do_get_edid by > exposing the DDC bus as an I2C adapter. Implement this for A10s. > > Signed-off-by: Jonathan Liu Your commit log should explain *why* that function should be u

[PATCH] rts5208: Fix a sleep-in-atomic bug in sd_send_cmd_get_rsp

2017-06-13 Thread Jia-Ju Bai
The driver may sleep under a spin lock, and the function call path is: rtsx_exclusive_enter_ss (acquire the lock by spin_lock) rtsx_enter_ss rtsx_power_off_card sd_cleanup_work sd_stop_seq_mode sd_switch_clock sd_ddr_tuning sd_ddr_pre_tuning_

[RFC PATCH v3] acpi: indicate to platform when hot remove returns busy

2017-06-13 Thread Lee, Chun-Yi
In hotplug logic, it always indicates non-specific failure to platform through _OST when handing acpi hot-remove event failed. Then platform terminates the hot-remove process but it can not identify the reason. Base on current hot-remove code, there have two situations that it returns busy: - OSP

Re: linux-next: manual merge of the block tree with the s390 tree

2017-06-13 Thread Sebastian Ott
Hi, On Tue, 13 Jun 2017, Christoph Hellwig wrote: > Btw, scm_blk.c blk-mq conversion seems odd if not broken. It should > always call blk_mq_complete_request from scm_request_finish and > then pass the error to blk_mq_end_request frin > there. OK. I had added that because rq->errors went away. W

Re: [PATCH v2 2/8] USB / PCI / PM: Allow the PCI core to do the resume cleanup

2017-06-13 Thread Rafael J. Wysocki
On Tuesday, June 13, 2017 10:52:52 AM Greg KH wrote: > On Mon, Jun 12, 2017 at 10:49:40PM +0200, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > hcd_pci_resume_noirq() used as a universal _resume_noirq handler for > > PCI USB controllers calls pci_back_from_sleep() which is unnecessa

Re: [PATCH v2 0/8] ACPI / PM: Suspend-to-idle rework to deal with spurious ACPI wakeups

2017-06-13 Thread Rafael J. Wysocki
On Tuesday, June 13, 2017 07:54:22 AM Dominik Brodowski wrote: > Rafael, > > On Mon, Jun 12, 2017 at 10:46:47PM +0200, Rafael J. Wysocki wrote: > > Hi All, > > > > On Thursday, June 08, 2017 02:00:40 AM Rafael J. Wysocki wrote: > > > Hi All, > > > > > > This series is a replacement for commit ee

Re: [PATCH v2 2/2] fs/fcntl: f_setown, avoid undefined behaviour

2017-06-13 Thread Jeff Layton
On Tue, 2017-06-13 at 13:10 +0200, Jiri Slaby wrote: > On 06/13/2017, 12:11 PM, Jeff Layton wrote: > > On Tue, 2017-06-13 at 11:22 +0200, Jiri Slaby wrote: > > > fcntl(0, F_SETOWN, 0x8000) triggers: > > > UBSAN: Undefined behaviour in fs/fcntl.c:118:7 > > > negation of -2147483648 cannot be rep

kernel BUG at net/ipv4/tcp_output.c:2748!

2017-06-13 Thread Dison River
Hi I've got the following error report while fuzzing the kernel on linux-4.11.0-rc3.

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

2017-06-13 Thread Ashwanth Goli
Hi Stephen, On 2017-06-13 16:38, Stephen Rothwell wrote: Hi all, After merging the net tree, today's linux-next build (powerpc ppc44x_defconfig) produced this warning: net/core/dev.c: In function 'dev_cpu_dead': net/core/dev.c:8330:2: warning: 'remsd' is used uninitialized in this function [-W

[RFC PATCH v2 2/2] kernel/events: Add option to enable counting sideband events in wakeup_events

2017-06-13 Thread Naveen N. Rao
Many sideband events are interesting by themselves. When profiling only for sideband events, it is useful to be able to control process wakeup (wakeup_events) based on sideband events alone. Add a new option 'count_sb_events' to do the same. Signed-off-by: Naveen N. Rao --- include/uapi/linux/pe

[RFC PATCH v2 1/2] kernel/events: Add option to notify through signals on wakeup

2017-06-13 Thread Naveen N. Rao
Add a new option 'signal_on_wakeup' to request for a signal to be delivered on ring buffer wakeup controlled through watermark and {wakeup_events, wakeup_watermark}. Signed-off-by: Naveen N. Rao --- include/uapi/linux/perf_event.h | 3 ++- kernel/events/core.c| 12 +++- kern

[RFC PATCH v2 0/2] Notifications for perf sideband events

2017-06-13 Thread Naveen N. Rao
v2: Here is a slightly different approach compared to v1: instead of introducing a new IOCTL, we ride on top of the existing support for ring buffer wakeup to generate signals as desired. Counting sideband events still requires some changes in the output path, but in normal cases, it ends up being

[PATCH v3 2/2] fs/fcntl: f_setown, avoid undefined behaviour

2017-06-13 Thread Jiri Slaby
fcntl(0, F_SETOWN, 0x8000) triggers: UBSAN: Undefined behaviour in fs/fcntl.c:118:7 negation of -2147483648 cannot be represented in type 'int': CPU: 1 PID: 18261 Comm: syz-executor Not tainted 4.8.1-0-syzkaller #1 ... Call Trace: ... [] ? f_setown+0x1d8/0x200 [] ? SyS_fcntl+0x999/0xf30 [] ?

Re: [PATCH v3] memcg: refactor mem_cgroup_resize_limit()

2017-06-13 Thread Michal Hocko
[Sorry for a late reponse] On Sun 04-06-17 14:18:07, Yu Zhao wrote: > mem_cgroup_resize_limit() and mem_cgroup_resize_memsw_limit() have > identical logics. Refactor code so we don't need to keep two pieces > of code that does same thing. > > Signed-off-by: Yu Zhao > Acked-by: Vladimir Davydov

[PATCH v3 1/2] fs/fcntl: f_setown, allow returning error

2017-06-13 Thread Jiri Slaby
Allow f_setown to return an error value. We will fail in the next patch with EINVAL for bad input to f_setown, so tile the path for the later patch. Signed-off-by: Jiri Slaby Reviewed-by: Jeff Layton Cc: Jeff Layton Cc: "J. Bruce Fields" Cc: Alexander Viro Cc: linux-fsde...@vger.kernel.org --

Re: [Merge tag 'pci-v4.12-changes' of git] 857f864014: BUG: unable to handle kernel NULL pointer dereference at 00000000000000a8

2017-06-13 Thread Alan Cox
On Mon, 2017-06-12 at 17:34 -0600, Logan Gunthorpe wrote: > Hey, > > Ok, I dug into this bug and I know what's going on. Unfortunately, > it's > a mess of a couple issues and I don't know what correct the > solution(s) > is(are). > > 1) The test we are looking at is overrunning the dynamic char d

Re: [PATCH] base/memory: pass the base_section in add_memory_block

2017-06-13 Thread Michal Hocko
[Sorry for a late response] On Wed 07-06-17 16:52:12, Wei Yang wrote: > The second parameter of init_memory_block() is used to calculate the > start_section_nr of this block, which means any section in the same block > would get the same start_section_nr. Could you be more specific what is the pr

Re: [PATCH v7 0/3] Cavium ThunderX2 SMMUv3 errata workarounds

2017-06-13 Thread Lorenzo Pieralisi
Hi Rafael, Lv, On Thu, Jun 08, 2017 at 07:13:24PM +0200, Rafael J. Wysocki wrote: > On Thu, Jun 8, 2017 at 6:32 PM, Lorenzo Pieralisi > wrote: > > On Tue, May 30, 2017 at 05:33:38PM +0530, Geetha sowjanya wrote: > >> Cavium ThunderX2 SMMUv3 implementation has two Silicon Erratas. > >> 1. Errata I

Re: [PATCH v2] perf: libdw support for powerpc [ping]

2017-06-13 Thread Mark Wielaard
Hi Ravi, On Mon, 2017-06-12 at 17:28 +0530, Ravi Bangoria wrote: > So, I tested this patch along with Mark's patch[1] on elfutils an looks > like it's not working. Steps on what I did: > > After applying Mark's patch on upstream elfutils: > > $ aclocal > $ autoheader > $ autoconf > $ aut

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

2017-06-13 Thread Jonathan Liu
Hi Maxime, On 13 June 2017 at 21:15, Maxime Ripard wrote: > On Mon, Jun 12, 2017 at 03:52:35PM +1000, Jonathan Liu wrote: >> The drm_get_edid function should be used instead of drm_do_get_edid by >> exposing the DDC bus as an I2C adapter. Implement this for A10s. >> >> Signed-off-by: Jonathan Liu

Re: [RFC PATCH 0/2] crypto: caam - fix cts(cbc(aes)) with CAAM driver

2017-06-13 Thread David Gstir
Friendly ping. Any feedback on that? Thanks, David > On 2 Jun 2017, at 14:24, David Gstir wrote: > > Hi! > > While testing fscrypt's filename encryption, I noticed that the implementation > of cts(cbc(aes)) is broken when the CAAM hardware crypto driver is enabled. > Some digging showed that t

Re: [PATCH v2 02/15] [media] cxd2880-spi: Add support for CXD2008 SPI interface

2017-06-13 Thread Mauro Carvalho Chehab
Em Fri, 14 Apr 2017 11:08:23 +0900 escreveu: > From: Yasunari Takiguchi > > This is the SPI adapter part of the driver for the > Sony CXD2880 DVB-T2/T tuner + demodulator. > > Signed-off-by: Yasunari Takiguchi > Signed-off-by: Masayuki Yamamoto > Signed-off-by: Hideki Nozawa > Signed-off-by

Re: [PATCH v5 1/3] PCI: Add DT binding for tango PCIe controller

2017-06-13 Thread Marc Zyngier
On 07/06/17 23:34, Mason wrote: > Hello Rob, > > On 07/06/2017 23:29, Rob Herring wrote: >> On Wed, May 31, 2017 at 03:30:26PM +0200, Marc Gonzalez wrote: >>> Binding for the Sigma Designs SMP8759 SoC. >>> >>> Signed-off-by: Marc Gonzalez >>> --- >>> Documentation/devicetree/bindings/pci/tango-p

Re: next/master build: 208 builds: 2 failed, 206 passed, 2 errors, 147 warnings (next-20170613)

2017-06-13 Thread Arnd Bergmann
On Tue, Jun 13, 2017 at 11:56 AM, kernelci.org bot wrote: > > next/master build: 208 builds: 2 failed, 206 passed, 2 errors, 147 warnings > (next-20170613) > Full Build Summary: > https://kernelci.org/build/next/branch/master/kernel/next-20170613/ > Tree: next > Branch:

Re: WMI and Kernel:User interface

2017-06-13 Thread Pali Rohár
On Tuesday 13 June 2017 00:05:35 Christoph Hellwig wrote: > On Mon, Jun 12, 2017 at 06:24:35PM -0700, Darren Hart wrote: > > This is a big topic for sure. Speed and scale of platform enabling is > > something > > I would like to see us support better. The barrier to entry to kernel > > changes is

Re: [PATCH 5/7] ima: add securityfs interface to save a measurements list with kexec header

2017-06-13 Thread Mimi Zohar
On Tue, 2017-06-13 at 09:27 +0200, Roberto Sassu wrote: > On 6/6/2017 3:23 PM, Mimi Zohar wrote: > > On Tue, 2017-06-06 at 14:45 +0200, Roberto Sassu wrote: > >> On 6/6/2017 12:56 PM, Mimi Zohar wrote: > >>> On Tue, 2017-06-06 at 10:49 +0200, Roberto Sassu wrote: > On 6/5/2017 8:04 AM, Mimi Zo

Re: [PATCH v5 3/3] PCI: Add tango MSI controller support

2017-06-13 Thread Marc Zyngier
On 31/05/17 14:35, Marc Gonzalez wrote: > The MSI controller in Tango supports 256 message-signaled interrupts, > and a single doorbell address. > > Signed-off-by: Marc Gonzalez > --- > drivers/pci/host/pcie-tango.c | 222 > ++ > 1 fil

Re: [PATCH v3 1/2] fs/fcntl: f_setown, allow returning error

2017-06-13 Thread zhong jiang
On 2017/6/13 19:35, Jiri Slaby wrote: > Allow f_setown to return an error value. We will fail in the next patch > with EINVAL for bad input to f_setown, so tile the path for the later > patch. > > Signed-off-by: Jiri Slaby > Reviewed-by: Jeff Layton > Cc: Jeff Layton > Cc: "J. Bruce Fields" > C

Re: [PATCH v2 03/15] [media] cxd2880: Add common files for the driver

2017-06-13 Thread Mauro Carvalho Chehab
Em Fri, 14 Apr 2017 11:17:01 +0900 escreveu: > From: Yasunari Takiguchi > > These are common files for the driver for the > Sony CXD2880 DVB-T2/T tuner + demodulator. > These contains helper functions for the driver. > > Signed-off-by: Yasunari Takiguchi > Signed-off-by: Masayuki Yamamoto >

Re: [PATCH v3 2/2] fs/fcntl: f_setown, avoid undefined behaviour

2017-06-13 Thread Jeff Layton
On Tue, 2017-06-13 at 13:35 +0200, Jiri Slaby wrote: > fcntl(0, F_SETOWN, 0x8000) triggers: > UBSAN: Undefined behaviour in fs/fcntl.c:118:7 > negation of -2147483648 cannot be represented in type 'int': > CPU: 1 PID: 18261 Comm: syz-executor Not tainted 4.8.1-0-syzkaller #1 > ... > Call Trace:

Re: [PATCH 5/5] power: supply: bq27xxx: Correct supply status with current draw

2017-06-13 Thread Sebastian Reichel
Hi, On Fri, Jun 09, 2017 at 09:16:01AM +0300, Paul Kocialkowski wrote: > Le jeudi 08 juin 2017 à 21:27 +0200, Sebastian Reichel a écrit : > > Hi, > > > > On Thu, Jun 08, 2017 at 01:08:52PM +0300, Paul Kocialkowski wrote: > > > > > On Wed, 2017-06-07 at 09:52 +0200, Pavel Machek wrote: > > > > > >

Re: [PATCH v2 04/15] [media] cxd2880: Add math functions for the driver

2017-06-13 Thread Mauro Carvalho Chehab
Em Fri, 14 Apr 2017 11:22:37 +0900 escreveu: > From: Yasunari Takiguchi > > Provide some math support functions (fixed-point log functions) > for the Sony CXD2880 DVB-T2/T tuner + demodulator driver. No need. The Kernel already provide log functions. You should use the existing ones, instead o

gadgetfs: how to wait for USB device initialization?

2017-06-13 Thread Andrey Konovalov
Hi! I'm trying to use gadgetfs to fuzz USB device drivers by simply connecting random devices for now. What I want to achieve right now is the following: 1. mount gadgetfs 2. emulate connection of a new USB device 3. wait for the device to finish initializing 4. unmount gadgetfs 5. goto 1 The q

[PATCH 1/2] dt-bindings: mfd: Add DT bindings documentation for the max7360 mfd driver

2017-06-13 Thread Valentin Sitdikov
This patch adds documentation for the max7360 bindings. The max7360 is Multi-functional Device containing gpio, keypad, pwm and rotary encoder submodules. Signed-off-by: Andrei Dranitca Signed-off-by: Valentin Sitdikov --- Documentation/devicetree/bindings/mfd/max7360.txt | 74 +

Re: [PATCH v2] clockevents/tcb_clksrc: implement suspend/resume

2017-06-13 Thread Daniel Lezcano
On 12/05/2017 20:22, Alexandre Belloni wrote: > On sama5d2, power to the core may be cut while entering suspend mode. It is > necessary to save and restore the TCB registers. > > Signed-off-by: Alexandre Belloni The context will be saved/restored on all the platforms (other than sama5d2) using t

[PATCH v4 0/2] dt-bindings: mfd: Add max7360 mfd driver and DT documentation

2017-06-13 Thread Valentin Sitdikov
This series add initial support of mfd core driver for max7360 chip Andrei Dranitca (1): mfd: max7360: Add mfd core device driver Valentin Sitdikov (1): dt-bindings: mfd: Add DT bindings documentation for the max7360 mfd driver --- Changes since v1: - Use proper node names - Drop un

[PATCH 2/2] mfd: max7360: Add mfd core device driver

2017-06-13 Thread Valentin Sitdikov
From: Andrei Dranitca This patch adds core/irq driver to support MAX7360 i2c chip which contains keypad, gpio, pwm, gpo and rotary encoder submodules. Signed-off-by: Andrei Dranitca Signed-off-by: Valentin Sitdikov --- drivers/mfd/Kconfig | 16 +++ drivers/mfd/Makefile| 1 +

v4l2-fwnode: status, plans for merge, any branch to merge against?

2017-06-13 Thread Pavel Machek
Hi! Are there any news about the fwnode branch? I have quite usable camera, but it is still based on 982e8e40390d26430ef106fede41594139a4111c (that's v4.10). It would be good to see fwnode stuff upstream... are there any plans for that? Is there stable branch to which I could move the stuff? Th

Re: [PATCH v4 1/2] media: i2c: adv748x: add adv748x driver

2017-06-13 Thread Kieran Bingham
Hi Niklas On 13/06/17 08:33, Niklas Söderlund wrote: > Hi Kieran, > > Thanks for your patch, and great work! Thanks for taking a look. > On 2017-06-13 01:35:07 +0100, Kieran Bingham wrote: >> From: Kieran Bingham >> >> Provide support for the ADV7481 and ADV7482. >> >> The driver is modelled w

Re: [PATCH v2 05/15] [media] cxd2880: Add spi device IO routines

2017-06-13 Thread Mauro Carvalho Chehab
Em Fri, 14 Apr 2017 11:25:23 +0900 escreveu: > From: Yasunari Takiguchi > > Add functions for initializing, reading and writing to the SPI > device for the Sony CXD2880 DVB-T2/T tuner + demodulator. > > Signed-off-by: Yasunari Takiguchi > Signed-off-by: Masayuki Yamamoto > Signed-off-by: Hid

Re: [PATCH v2] clockevents/tcb_clksrc: implement suspend/resume

2017-06-13 Thread Alexandre Belloni
On 13/06/2017 at 14:21:10 +0200, Daniel Lezcano wrote: > On 12/05/2017 20:22, Alexandre Belloni wrote: > > On sama5d2, power to the core may be cut while entering suspend mode. It is > > necessary to save and restore the TCB registers. > > > > Signed-off-by: Alexandre Belloni > > The context wil

Re: [PATCH v2 0/8] scheduler tinification

2017-06-13 Thread Nicolas Pitre
On Tue, 13 Jun 2017, Ingo Molnar wrote: > > I simply moved some code to different source files and not including > > those source files in the final build. That keeps the number of #ifdef's > > to a minimum but it makes a big diffstat due to the code movement. > > So I'm fine with most of the c

Re: [PATCH v2] clockevents/tcb_clksrc: implement suspend/resume

2017-06-13 Thread Daniel Lezcano
On 13/06/2017 14:28, Alexandre Belloni wrote: > On 13/06/2017 at 14:21:10 +0200, Daniel Lezcano wrote: >> On 12/05/2017 20:22, Alexandre Belloni wrote: >>> On sama5d2, power to the core may be cut while entering suspend mode. It is >>> necessary to save and restore the TCB registers. >>> >>> Signed

Re: [PATCH V2] pwm: tegra: Set maximum pwm clock source per SoC tapeout

2017-06-13 Thread Thierry Reding
On Tue, May 02, 2017 at 07:35:37PM +0530, Laxman Dewangan wrote: > The PWM hardware IP is taped-out with different maximum frequency > on different SoCs. > > From HW team: > Before Tegra186, it is 38.4MHz. > In Tegra186, it is 102MHz. > > Add support to limit the clock source frequenc

Re: [PATCH 2/4] [media] platform: Add Synopsys Designware HDMI RX Controller Driver

2017-06-13 Thread Jose Abreu
On 13-06-2017 11:54, Hans Verkuil wrote: > On 06/13/17 12:31, Hans Verkuil wrote: >> On 06/13/17 12:06, Jose Abreu wrote: >>> Hi Hans, >>> >>> >>> On 13-06-2017 11:01, Jose Abreu wrote: >>> >>> [snip] Changes from RFC: - Added support for HDCP 1.4 >>> [snip] + +/* HDCP 1.4

Re: [PATCH 01/44] firmware/ivc: use dma_mapping_error

2017-06-13 Thread Thierry Reding
On Thu, Jun 08, 2017 at 03:25:26PM +0200, Christoph Hellwig wrote: > DMA_ERROR_CODE is not supposed to be used by drivers. > > Signed-off-by: Christoph Hellwig > --- > drivers/firmware/tegra/ivc.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Acked-by: Thierry Reding signature.

答复: What differences and relations between SVM, HSA, HMM and Unified Memory?

2017-06-13 Thread Wuzongyong (Cordius Wu, Euler Dept)
That's the thing I wanna know! Thanks for your explanation. Thanks, Zongyong Wu -邮件原件- 发件人: Jerome Glisse [mailto:j.gli...@gmail.com] 发送时间: 2017年6月13日 2:44 收件人: Wuzongyong (Cordius Wu, Euler Dept) 抄送: io...@lists.linux-foundation.org; linux-kernel@vger.kernel.org; oded.gab...@amd.com;

Re: [PATCH v2] staging: octeon-usb: fix coding style error

2017-06-13 Thread Greg KH
On Tue, Jun 13, 2017 at 03:45:32PM +0530, bincy_k_phi...@yahoo.co.in wrote: > From: bincy > > trivial fix for space alignment error > > Signed-off-by: bincy k philip > --- > drivers/staging/octeon-usb/octeon-hcd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) First off, please slow

Re: [PATCH 5/7] ima: add securityfs interface to save a measurements list with kexec header

2017-06-13 Thread Roberto Sassu
On 6/13/2017 2:09 PM, Mimi Zohar wrote: On Tue, 2017-06-13 at 09:27 +0200, Roberto Sassu wrote: On 6/6/2017 3:23 PM, Mimi Zohar wrote: On Tue, 2017-06-06 at 14:45 +0200, Roberto Sassu wrote: On 6/6/2017 12:56 PM, Mimi Zohar wrote: On Tue, 2017-06-06 at 10:49 +0200, Roberto Sassu wrote: On 6/

Re: [PATCH v3 1/2] dt-bindings: Add bindings for nvidia,tegra186-ccplex-cluster

2017-06-13 Thread Thierry Reding
On Mon, Jun 12, 2017 at 01:23:04PM +0300, Mikko Perttunen wrote: > The Tegra186 CCPLEX_CLUSTER area contains memory-mapped > registers that initiate CPU frequency/voltage transitions. > > Signed-off-by: Mikko Perttunen > Acked-by: Rob Herring > --- > .../arm/tegra/nvidia,tegra186-ccplex-cluster

Re: [PATCH v2 2/2] arm64: tegra: Add CCPLEX_CLUSTER area in Tegra186

2017-06-13 Thread Thierry Reding
On Thu, Jun 01, 2017 at 11:04:05AM +0300, Mikko Perttunen wrote: > The Tegra186 CCPLEX_CLUSTER area contains memory-mapped > registers that initiate CPU frequency/voltage transitions. > > Signed-off-by: Mikko Perttunen > --- > arch/arm64/boot/dts/nvidia/tegra186.dtsi | 7 +++ > 1 file change

[PATCH] drivers/perf: commonise PERF_EVENTS dependency

2017-06-13 Thread Mark Rutland
All PMU drivers are going to depend on PERF_EVENTS, so let's make this dependency common and simplify the individual Kconfig entries. Signed-off-by: Mark Rutland Cc: Will Deacon --- drivers/perf/Kconfig | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/perf/Kc

Re: [PATCH v3 1/2] dt-bindings: Add bindings for nvidia,tegra186-ccplex-cluster

2017-06-13 Thread Mikko Perttunen
On 13.06.2017 15:42, Thierry Reding wrote: On Mon, Jun 12, 2017 at 01:23:04PM +0300, Mikko Perttunen wrote: The Tegra186 CCPLEX_CLUSTER area contains memory-mapped registers that initiate CPU frequency/voltage transitions. Signed-off-by: Mikko Perttunen Acked-by: Rob Herring --- .../arm/tegr

Re: [PATCH v3 1/2] dt-bindings: Add bindings for nvidia,tegra186-ccplex-cluster

2017-06-13 Thread Mikko Perttunen
On 13.06.2017 15:46, Mikko Perttunen wrote: On 13.06.2017 15:42, Thierry Reding wrote: On Mon, Jun 12, 2017 at 01:23:04PM +0300, Mikko Perttunen wrote: The Tegra186 CCPLEX_CLUSTER area contains memory-mapped registers that initiate CPU frequency/voltage transitions. Signed-off-by: Mikko Pert

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