Re: [PATCH] lib/int_sqrt.c: Optimize square root function

2017-07-20 Thread Peter Zijlstra
On Thu, Jul 20, 2017 at 04:52:49AM -0700, Joe Perches wrote: > On Thu, 2017-07-20 at 13:24 +0200, Peter Zijlstra wrote: > [] > > + m = 1UL << ((fls(x) + 1) & ~1UL); > > maybe > > #if BITS_PER_LONG == 64 > m = 1UL << ((fls64(x) + 1) & ~1UL); > #else > m = 1UL << ((fls(x) + 1) & ~1UL

[PATCH] perf: Fix locking for children siblings group read

2017-07-20 Thread Jiri Olsa
We're missing ctx lock when iterating children siblings within the perf_read path for group reading. Following race and crash can happen: User space doing read syscall on event group leader: T1: perf_read lock event->ctx->mutex perf_read_group lock leader->child_mutex __perf

Re: [PATCH v3 2/6] perf: hisi: Add support for HiSilicon SoC uncore PMU driver

2017-07-20 Thread Zhangshaokun
Hi Jonathan On 2017/7/20 21:49, Jonathan Cameron wrote: > On Thu, 20 Jul 2017 21:03:19 +0800 > Zhangshaokun wrote: > >> Hi Jonathan >> >> On 2017/7/19 17:19, Jonathan Cameron wrote: >>> On Tue, 18 Jul 2017 15:59:55 +0800 >>> Shaokun Zhang wrote: >>> This patch adds support HiSilicon So

Re: [PATCH] drm/i2c: tda998x: Fix lockdep warning about possible circular dependency

2017-07-20 Thread Liviu Dudau
On Thu, Jul 20, 2017 at 02:08:29PM +0100, Russell King - ARM Linux wrote: > On Thu, Jul 20, 2017 at 01:54:04PM +0100, Liviu Dudau wrote: > > On Thu, Jul 20, 2017 at 12:44:49PM +0100, Russell King - ARM Linux wrote: > > > Actually, scrub that idea - drm_helper_probe_single_connector_modes() > > > ca

[PATCH v2] drm/i2c: tda998x: Fix lockdep warning about possible circular dependency

2017-07-20 Thread Liviu Dudau
When enabling lockdep debugging on Juno platform with HDLCD and TDA998x I get the following warning from the system: [ 25.990733] == [ 25.998637] WARNING: possible circular locking dependency detected [ 26.006531] 4.13.0-rc1-00284-g28c0a682

Re: [RFC PATCH v1 00/11] Create fast idle path for short idle periods

2017-07-20 Thread Peter Zijlstra
On Thu, Jul 20, 2017 at 05:50:54AM -0700, Paul E. McKenney wrote: > > > > static void cpuidle_idle_call() > > { > > rcu_idle_enter() > > .. > > rcu_idle_exit() > > } > > > > I want > > > > static void cpuidle_idle_call() > > { > > if (tick stopped) > > rcu_idle_en

Re: [PATCH 11/18] dt-bindings: display: Add Allwinner MIPI-DSI bindings

2017-07-20 Thread Maxime Ripard
Hi Rob, On Mon, Jul 17, 2017 at 01:41:49PM -0500, Rob Herring wrote: > On Thu, Jul 13, 2017 at 04:13:06PM +0200, Maxime Ripard wrote: > > The Allwinner SoCs usually come with a DSI encoder. Add a binding for it. > > > > Signed-off-by: Maxime Ripard > > --- > > Documentation/devicetree/bindings/

Re: [PATCH 11/18] dt-bindings: display: Add Allwinner MIPI-DSI bindings

2017-07-20 Thread Maxime Ripard
Hi Laurent On Tue, Jul 18, 2017 at 01:18:42PM +0300, Laurent Pinchart wrote: > On Monday 17 Jul 2017 13:41:49 Rob Herring wrote: > > On Thu, Jul 13, 2017 at 04:13:06PM +0200, Maxime Ripard wrote: > > > The Allwinner SoCs usually come with a DSI encoder. Add a binding for it. > > > > > > Signed-of

Re: [PATCH 1/4] fs/dcache: Limit numbers of negative dentries

2017-07-20 Thread Waiman Long
On 07/20/2017 03:20 AM, Miklos Szeredi wrote: > On Wed, Jul 19, 2017 at 10:42 PM, Waiman Long wrote: >> @@ -603,7 +698,13 @@ static struct dentry *dentry_kill(struct dentry *dentry) if (!IS_ROOT(dentry)) { parent = dentry->d_parent; -

[PATCH v2 1/2] platform/x86: Add GLK PSS Event Table

2017-07-20 Thread Rajneesh Bhardwaj
Some of the Primary Subsystem events differ on Gemini Lake but the IOSS events remain same. This patch adds the updated PSS event table to enable Telemetry driver on Gemini Lake. Signed-off-by: Shanth Murthy Signed-off-by: Rajneesh Bhardwaj --- Changes in v2: * Dropped "Add Audio domain PG stat

[PATCH v2 2/2] Telemetry: remove redundant macro definition

2017-07-20 Thread Rajneesh Bhardwaj
Telemetry driver includes intel_telemetry.h which defines TELEM_MAX_OS_ALLOCATED_EVENTS already. Signed-off-by: Rajneesh Bhardwaj --- drivers/platform/x86/intel_telemetry_pltdrv.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/platform/x86/intel_telemetry_pltdrv.c b/drivers/platform

Re: [PATCH] drm/i2c: tda998x: Fix lockdep warning about possible circular dependency

2017-07-20 Thread Russell King - ARM Linux
On Thu, Jul 20, 2017 at 03:19:10PM +0100, Liviu Dudau wrote: > On Thu, Jul 20, 2017 at 02:08:29PM +0100, Russell King - ARM Linux wrote: > > On Thu, Jul 20, 2017 at 01:54:04PM +0100, Liviu Dudau wrote: > > > On Thu, Jul 20, 2017 at 12:44:49PM +0100, Russell King - ARM Linux wrote: > > > > Actually,

Re: [PATCH v2 2/2] dt-bindings: mfd: Add bindings for ZII RAVE devices

2017-07-20 Thread Andrey Smirnov
On Thu, Jul 20, 2017 at 2:04 AM, Lee Jones wrote: > Where is patch 1? > lkml.kernel.org/r/20170718175604.11735-2-andrew.smir...@gmail.com I dropped you from CC list to spare you the e-mail traffic, but I can add you back if you'd prefer that. >> Cc: cphe...@gmail.com >> Cc: Lucas Stach >> Cc:

Re: [PATCH v3 3/5] dax: use common 4k zero page for dax mmap reads

2017-07-20 Thread Ross Zwisler
On Thu, Jul 20, 2017 at 12:27:23PM +0200, Jan Kara wrote: > On Wed 19-07-17 10:26:45, Ross Zwisler wrote: > > On Wed, Jul 19, 2017 at 05:33:14PM +0200, Jan Kara wrote: > > > On Wed 28-06-17 16:01:50, Ross Zwisler wrote: > > > > Another major change is that we remove dax_pfn_mkwrite() from our fault

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

2017-07-20 Thread Masahiro Yamada
Hi Stephen, Rob, 2017-07-01 8:59 GMT+09:00 Rob Clark : > On Fri, Jun 30, 2017 at 6:58 PM, Stephen Boyd wrote: >> If we have a structure that's marked const it will be placed >> into the .rodata section but it could reference an init section >> function. Include the read only data section in the c

Re: [Intel-gfx] [PATCH] drm/i915: Synchronize connectors states when switching from poll to irq

2017-07-20 Thread Paul Kocialkowski
On Thu, 2017-07-20 at 01:04 +, Pandiyan, Dhinakaran wrote: > On Mon, 2017-06-26 at 15:32 +0300, Paul Kocialkowski wrote: > > After detecting an IRQ storm, hotplug detection will switch from > > irq-based detection to poll-based detection. After a short delay or > > when resetting storm detectio

Re: [PATCH] livepatch: add (un)patch hooks

2017-07-20 Thread Petr Mladek
On Wed 2017-07-19 14:59:48, Joe Lawrence wrote: > On 07/17/2017 11:51 AM, Petr Mladek wrote: > > On Wed 2017-07-12 10:10:00, Joe Lawrence wrote: > > We need to make it clear that there are 4 basic situations > > where these hooks are called: > > > > + patch hook is called when: > > > > 1. l

Re: [PATCH] drm/i2c: tda998x: Fix lockdep warning about possible circular dependency

2017-07-20 Thread Liviu Dudau
On Thu, Jul 20, 2017 at 03:24:13PM +0100, Russell King - ARM Linux wrote: > On Thu, Jul 20, 2017 at 03:19:10PM +0100, Liviu Dudau wrote: > > On Thu, Jul 20, 2017 at 02:08:29PM +0100, Russell King - ARM Linux wrote: > > > On Thu, Jul 20, 2017 at 01:54:04PM +0100, Liviu Dudau wrote: > > > > On Thu, J

Re: [PATCH] drm/i915: Synchronize connectors states when switching from poll to irq

2017-07-20 Thread Paul Kocialkowski
On Wed, 2017-07-19 at 23:11 -0700, Manasi Navare wrote: > On Tue, Jul 18, 2017 at 03:11:42PM +0300, Paul Kocialkowski wrote: > > On Mon, 2017-06-26 at 15:32 +0300, Paul Kocialkowski wrote: > > > After detecting an IRQ storm, hotplug detection will switch from > > > irq-based detection to poll-based

Re: [PATCH] perf: Fix locking for children siblings group read

2017-07-20 Thread Peter Zijlstra
On Thu, Jul 20, 2017 at 04:14:55PM +0200, Jiri Olsa wrote: > We're missing ctx lock when iterating children siblings > within the perf_read path for group reading. Following > race and crash can happen: > > User space doing read syscall on event group leader: > > T1: > perf_read > lock even

Re: [RESEND PATCH] tile: defconfig: Cleanup from old Kconfig options

2017-07-20 Thread Chris Metcalf
On 7/20/2017 1:05 AM, Krzysztof Kozlowski wrote: Remove old, dead Kconfig options (in order appearing in this commit): - CRYPTO_ZLIB: commit 110492183c4b ("crypto: compress - remove unused pcomp interface"); - IP_NF_TARGET_ULOG: commit d4da843e6fad ("netfilter: kill remnants of ulog t

Re: [PATCH 3/3] ghes_edac: add platform check to enable ghes_edac

2017-07-20 Thread Kani, Toshimitsu
On Thu, 2017-07-20 at 06:16 +0200, Borislav Petkov wrote: > On Wed, Jul 19, 2017 at 04:56:17PM +, Kani, Toshimitsu wrote: > > Since ghes_edac has not been used for a long time, I have a feeling > > that not so many vendors want to use it.  In the case of HPE, we do > > not need to update with e

[PATCH 2/4] ACPI: Make acpi_dev_get_resources() method agnostic

2017-07-20 Thread Lorenzo Pieralisi
The function acpi_dev_get_resources() is completely generic and can be used to parse resource objects that are not necessarily coming from the _CRS method but also from other objects eg _DMA that have the same _CRS resource format. Create an acpi_dev_get_resources() helper, internal to the ACPI re

[PATCH 3/4] ACPI: Introduce DMA ranges parsing

2017-07-20 Thread Lorenzo Pieralisi
Some devices have limited addressing capabilities and cannot reference the whole memory address space while carrying out DMA operations (eg some devices with bus address bits range smaller than system bus - which prevents them from using bus addresses that are otherwise valid for the system). The

[PATCH 4/4] ACPI: Make acpi_dma_configure() DMA regions aware

2017-07-20 Thread Lorenzo Pieralisi
Current ACPI DMA configuration set-up device DMA capabilities through kernel defaults that do not take into account platform specific DMA configurations reported by firmware. By leveraging the ACPI acpi_dev_get_dma_resources() API, add code in acpi_dma_configure() to retrieve the DMA regions to co

Re: [PATCH 01/18] regmap: mmio: Add function to attach a clock

2017-07-20 Thread Maxime Ripard
On Tue, Jul 18, 2017 at 02:21:47PM +0100, Mark Brown wrote: > On Mon, Jul 17, 2017 at 11:01:07AM +0200, Maxime Ripard wrote: > > On Thu, Jul 13, 2017 at 05:01:42PM +0100, Mark Brown wrote: > > > > > This might be problematic if the clock to enable is stored in another > > > > node. > > > > Let's

[PATCH 0/4] ACPI: DMA ranges management

2017-07-20 Thread Lorenzo Pieralisi
As reported in: http://lkml.kernel.org/r/cal85gma_sscwm80tkdkzqee+s1bewzdevdki1kpkmutdrms...@mail.gmail.com the bus connecting devices to an IOMMU bus can be smaller in size than the IOMMU input address bits which results in devices DMA HW bugs in particular related to IOVA allocation (ie choppin

[PATCH 1/4] ACPI: Allow _DMA method in walk resources

2017-07-20 Thread Lorenzo Pieralisi
The _DMA object contains a resource template, this change adds support for the walk resources function so that ACPI devices containing a _DMA object can actually parse it to detect DMA ranges for the respective bus. Signed-off-by: Lorenzo Pieralisi Cc: Robert Moore Cc: Zhang Rui Cc: "Rafael J.

Re: [PATCH v2 1/2] livepatch: introduce shadow variable API

2017-07-20 Thread Miroslav Benes
> > > > + * > > > > + * Note: allocates @new_size space for shadow variable data and copies > > > > + * @new_size bytes from @new_data into the shadow varaible's own > > > > @new_data > > > > + * space. If @new_data is NULL, @new_size is still allocated, but no > > > > + * copy is performed. > >

Re: cpuidle and cpufreq coupling?

2017-07-20 Thread Peter Zijlstra
On Thu, Jul 20, 2017 at 11:52:41AM +0200, Rafael J. Wysocki wrote: > On Thu, Jul 20, 2017 at 9:18 AM, Viresh Kumar wrote: > > On 20-07-17, 01:17, Rafael J. Wysocki wrote: > >> On Thu, Jul 20, 2017 at 12:54 AM, Florian Fainelli > >> wrote: > >> > Hi, > >> > > >> > We have a particular ARM CPU des

[PATCH] staging: bcm2835-audio: constify snd_pcm_ops structures

2017-07-20 Thread Gustavo A. R. Silva
Check for snd_pcm_ops structures that are only stored in the ops field of a snd_soc_platform_driver structure or passed as the third argument to snd_pcm_set_ops. The corresponding field or parameter is declared const, so snd_pcm_ops structures that have this property can be declared as const also.

Re: [PATCH v4 0/3] of: overlay: load overlay symbols into live device tree

2017-07-20 Thread Rob Herring
On Wed, Jul 19, 2017 at 11:25 AM, wrote: > From: Frank Rowand > > Symbols in a loaded overlay are not currently available to subsequently > loaded overlays because the properties in the overlay's __symbols__ > node are not loaded into the live device tree. > > Patch 1 is unittests to test patche

[PATCH] staging: fsl-mc/dpio: Skip endianness conversion in portal config

2017-07-20 Thread Bogdan Purcareata
Writing to the register using writel does the CPU to LE conversion down the line, so it's not required here. Doing it breaks portal configuration on big endian kernels. Signed-off-by: Bogdan Purcareata --- drivers/staging/fsl-mc/bus/dpio/qbman-portal.c | 24 1 file chang

[tip:smp/hotplug] smp/hotplug: Handle removal correctly in cpuhp_store_callbacks()

2017-07-20 Thread tip-bot for Ethan Barnes
Commit-ID: 0c96b27305faf06c068b45e07d28336c80dac286 Gitweb: http://git.kernel.org/tip/0c96b27305faf06c068b45e07d28336c80dac286 Author: Ethan Barnes AuthorDate: Wed, 19 Jul 2017 22:36:00 + Committer: Thomas Gleixner CommitDate: Thu, 20 Jul 2017 16:40:24 +0200 smp/hotplug: Handle rem

Re: [Patch v5 12/12] Documention: v4l: Documentation for HEVC CIDs

2017-07-20 Thread Hans Verkuil
On 19/06/17 07:10, Smitha T Murthy wrote: > Added V4l2 controls for HEVC encoder > > Signed-off-by: Smitha T Murthy > --- > Documentation/media/uapi/v4l/extended-controls.rst | 364 > + > 1 file changed, 364 insertions(+) > > diff --git a/Documentation/media/uapi/v4l/extend

[GIT PULL] libnvdimm fixes for 4.13-rc2

2017-07-20 Thread Williams, Dan J
Hi Linus, please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm tags/libnvdimm-fixes-4.13-rc2 ...to receive a handful of small fixes for 4.13-rc2. 3 of these fixes are tagged for -stable. They have all appeared in at least one -next release with no reported issues. Full

Re: [PATCH v3 09/23] media: camss: Add ISPIF files

2017-07-20 Thread Sakari Ailus
Hi Todor, On Mon, Jul 17, 2017 at 01:33:35PM +0300, Todor Tomov wrote: > These files control the ISPIF module which handles the routing of the data > streams from the CSIDs to the inputs of the VFE. > > Signed-off-by: Todor Tomov > --- > .../media/platform/qcom/camss-8x16/camss-ispif.c | 1127

RE: linux-next: build warning after merge of the char-misc tree

2017-07-20 Thread KY Srinivasan
> -Original Message- > From: Greg KH [mailto:g...@kroah.com] > Sent: Wednesday, July 19, 2017 10:13 PM > To: Stephen Rothwell > Cc: Arnd Bergmann ; Linux-Next Mailing List n...@vger.kernel.org>; Linux Kernel Mailing List ker...@vger.kernel.org>; Vitaly Kuznetsov ; KY > Srinivasan ; And

Re: [PATCH 09/18] drm/sun4i: tcon: Adjust dotclock dividers range

2017-07-20 Thread Maxime Ripard
On Fri, Jul 14, 2017 at 12:14:37PM +0800, Chen-Yu Tsai wrote: > On Thu, Jul 13, 2017 at 10:13 PM, Maxime Ripard > wrote: > > It seems like the dotclock dividers are a bit less strict range, and can > > operate even with a smaller than 6 divider. Loose the boundaries a bit. > > > > Signed-off-by: M

[PATCH] drivers/fsi/scom: Remove reset before every putscom

2017-07-20 Thread Eddie James
From: "Edward A. James" Reset causes problems for operations requiring multiple scoms (e.g. i2c over scom). Instead, reset scom engine during probe. Signed-off-by: Edward A. James --- drivers/fsi/fsi-scom.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/

Re: [PATCH] drm/i2c: tda998x: Fix lockdep warning about possible circular dependency

2017-07-20 Thread Daniel Vetter
On Thu, Jul 20, 2017 at 4:40 PM, Liviu Dudau wrote: > On Thu, Jul 20, 2017 at 03:24:13PM +0100, Russell King - ARM Linux wrote: >> On Thu, Jul 20, 2017 at 03:19:10PM +0100, Liviu Dudau wrote: >> > On Thu, Jul 20, 2017 at 02:08:29PM +0100, Russell King - ARM Linux wrote: >> > > On Thu, Jul 20, 2017

Re: [PATCH v3 10/23] media: camss: Add VFE files

2017-07-20 Thread Sakari Ailus
Hi Todor, On Mon, Jul 17, 2017 at 01:33:36PM +0300, Todor Tomov wrote: > These files control the VFE module. The VFE has different input interfaces. > The PIX input interface feeds the input data to an image processing pipeline. > Three RDI input interfaces bypass the image processing pipeline. Th

Re: [PATCH 0/6] Cache coherent device memory (CDM) with HMM v5

2017-07-20 Thread Jerome Glisse
On Wed, Jul 19, 2017 at 05:09:04PM +0800, Bob Liu wrote: > On 2017/7/19 10:25, Jerome Glisse wrote: > > On Wed, Jul 19, 2017 at 09:46:10AM +0800, Bob Liu wrote: > >> On 2017/7/18 23:38, Jerome Glisse wrote: > >>> On Tue, Jul 18, 2017 at 11:26:51AM +0800, Bob Liu wrote: > On 2017/7/14 5:15, Jér

Re: [PATCH 1/1][staging-next] staging: pi433: Make functions rf69_set_dc_cut_off_frequency_intern static

2017-07-20 Thread Marcus Wolf
Hi Colin, mine is an aditional patch for an other function, that's pretty similar to the one, you improoved. So we need both patches, yours and mine! Cheers, Marcus > Colin Ian King hat am 20. Juli 2017 um 14:58 > geschrieben: > > > On 20/07/17 12:01, Wolf Entwicklungen wrote: > > Declare rf69

Re: [PATCH 3/3] ghes_edac: add platform check to enable ghes_edac

2017-07-20 Thread Borislav Petkov
On Thu, Jul 20, 2017 at 02:42:25PM +, Kani, Toshimitsu wrote: > Yes, the following message is shown on HP systems. Please note that > WHEA is a Windows-defined interface. Ok, so let's couple ghes_edac loading to that and see how far we could go. I guess we should add checks for that to the ma

Re: [PATCH] crypto: ixp4xx - Fix error handling path in 'aead_perform()'

2017-07-20 Thread Arnd Bergmann
On Thu, Jul 20, 2017 at 9:37 AM, Arnd Bergmann wrote: > On Wed, Jul 19, 2017 at 11:47 PM, Christophe JAILLET > wrote: >> In commit 0f987e25cb8a, the source processing has been moved in front of >> the destination processing, but the error handling path has not been >> modified accordingly. >> Fre

[PATCH] MIPS: PCI: Fix smp_processor_id() in preemptible

2017-07-20 Thread Matt Redfearn
Commit 1c3c5eab1715 ("sched/core: Enable might_sleep() and smp_processor_id() checks early") enables checks for might_sleep() and smp_processor_id() being used in preemptible code earlier in the boot than before. This results in a new BUG from pcibios_set_cache_line_size(). BUG: using smp_processo

Re: [PATCH]

2017-07-20 Thread Mauro Carvalho Chehab
Em Mon, 10 Jul 2017 01:35:11 +0200 armetallica escreveu: > From 043428d63637a6dd8e52449b73dbb8341885d7e4 Mon Sep 17 00:00:00 2001 > From: Armin Schoenlieb > Date: Mon, 10 Jul 2017 01:12:52 +0200 > Subject: [PATCH] Staging: media: atomisp2: fixed trailing whitespace error in > atomisp_v4l2.c Thi

Re: [PATCH] drm/i2c: tda998x: Fix lockdep warning about possible circular dependency

2017-07-20 Thread Liviu Dudau
On Thu, Jul 20, 2017 at 04:57:12PM +0200, Daniel Vetter wrote: > On Thu, Jul 20, 2017 at 4:40 PM, Liviu Dudau wrote: > > On Thu, Jul 20, 2017 at 03:24:13PM +0100, Russell King - ARM Linux wrote: > >> On Thu, Jul 20, 2017 at 03:19:10PM +0100, Liviu Dudau wrote: > >> > On Thu, Jul 20, 2017 at 02:08:

[GIT PULL] Audit fix for v4.13 (#1)

2017-07-20 Thread Paul Moore
Hi Linus, A small audit fix, just a single line, to plug a memory leak in some audit error handling code. Please merge for the next 4.13-rcX release. Thanks, -Paul --- The following changes since commit cd33f5f2cbfaadc21270f3ddac7c3c33e0a1a28c: audit: make sure we never skip the multicast bro

Re: [PATCH 1/4] fs/dcache: Limit numbers of negative dentries

2017-07-20 Thread Miklos Szeredi
On Thu, Jul 20, 2017 at 4:21 PM, Waiman Long wrote: > On 07/20/2017 03:20 AM, Miklos Szeredi wrote: >> On Wed, Jul 19, 2017 at 10:42 PM, Waiman Long wrote: >>> > @@ -603,7 +698,13 @@ static struct dentry *dentry_kill(struct dentry > *dentry) > > if (!IS_ROOT(dentry)) { >>

Re: [Eas-dev] [PATCH V3 2/3] cpufreq: schedutil: Process remote callback for shared policies

2017-07-20 Thread Sudeep Holla
On 20/07/17 13:22, Peter Zijlstra wrote: > On Thu, Jul 13, 2017 at 07:02:37PM -0700, Saravana Kannan wrote: >> In all Qualcomm chipsets (well, at least the ones that have been used in >> Android devices so far), we can switch the frequency of any CPU from any >> other CPU. If we can do that even

Re: [PATCH v3 14/23] camss: vfe: Format conversion support using PIX interface

2017-07-20 Thread Sakari Ailus
Hi Todor, Are you trying to get acks by posting drivers so big and complex that it'd be unwieldy to meaningfully review them? :-) On Mon, Jul 17, 2017 at 01:33:40PM +0300, Todor Tomov wrote: > Use VFE PIX input interface and do format conversion in VFE. > > Supported input format is UYVY (single

Re: [PATCH 1/3] ipc: convert ipc_namespace.count from atomic_t to refcount_t

2017-07-20 Thread Kees Cook
On Thu, Jul 20, 2017 at 5:34 AM, Eric W. Biederman wrote: > Ingo Molnar writes: > >> * Andrew Morton wrote: >> >>> On Wed, 19 Jul 2017 15:54:27 -0700 Davidlohr Bueso >>> wrote: >>> >>> > On Wed, 19 Jul 2017, Andrew Morton wrote: >>> > >>> > >I do rather dislike these conversions from the point

Re: [PATCH v3 15/23] doc: media/v4l-drivers: Qualcomm Camera Subsystem - PIX Interface

2017-07-20 Thread Sakari Ailus
On Mon, Jul 17, 2017 at 01:33:41PM +0300, Todor Tomov wrote: > Update Qualcomm Camera Subsystem driver document for the PIX interface > and format conversion support. > > Signed-off-by: Todor Tomov > --- > Documentation/media/v4l-drivers/qcom_camss.rst | 41 > +++--- > 1 fil

Re: [PATCH] crypto: ixp4xx - Fix error handling path in 'aead_perform()'

2017-07-20 Thread Arnd Bergmann
On Thu, Jul 20, 2017 at 5:04 PM, Arnd Bergmann wrote: > Coincidentally, I just came across an older patch of mine that actually > fixes the warning properly, but that for some reason ended up not > getting merged: > > https://patchwork.kernel.org/patch/8236811/ > > How about we just revert my brok

Re: [PATCH 09/18] drm/sun4i: tcon: Adjust dotclock dividers range

2017-07-20 Thread Chen-Yu Tsai
On Thu, Jul 20, 2017 at 10:55 PM, Maxime Ripard wrote: > On Fri, Jul 14, 2017 at 12:14:37PM +0800, Chen-Yu Tsai wrote: >> On Thu, Jul 13, 2017 at 10:13 PM, Maxime Ripard >> wrote: >> > It seems like the dotclock dividers are a bit less strict range, and can >> > operate even with a smaller than 6

Re: [PATCH v3 16/23] camss: vfe: Support for frame padding

2017-07-20 Thread Sakari Ailus
Hi Todor, On Mon, Jul 17, 2017 at 01:33:42PM +0300, Todor Tomov wrote: > Add support for horizontal and vertical frame padding. > > Signed-off-by: Todor Tomov > --- > drivers/media/platform/qcom/camss-8x16/camss-vfe.c | 86 > +- > .../media/platform/qcom/camss-8x16/camss-vi

Re: [PATCH] Revert "x86/uaccess: Add stack frame output operand in get_user() inline asm"

2017-07-20 Thread Josh Poimboeuf
On Thu, Jul 20, 2017 at 01:01:39PM +0300, Andrey Ryabinin wrote: > 2017-07-19 20:46 GMT+03:00 Josh Poimboeuf : > > > > > After doing some testing, I don't think this approach is going to work > > after all. In addition to forcing the stack frame, it also causes GCC > > to add an unnecessary extra

Re: [PATCH v3 17/23] camss: vfe: Add interface for scaling

2017-07-20 Thread Sakari Ailus
Hi Todor, On Mon, Jul 17, 2017 at 01:33:43PM +0300, Todor Tomov wrote: > Add compose selection ioctls to handle scaling configuration. > > Signed-off-by: Todor Tomov > --- > drivers/media/platform/qcom/camss-8x16/camss-vfe.c | 189 > - > drivers/media/platform/qcom/camss-8x

Re: [PATCH v3 22/23] camss: Use optimal clock frequency rates

2017-07-20 Thread Sakari Ailus
Hi Todor, On Mon, Jul 17, 2017 at 01:33:48PM +0300, Todor Tomov wrote: > Use standard V4L2 control to get pixel clock rate from a sensor > linked in the media controller pipeline. Then calculate clock > rates on CSIPHY, CSID and VFE to use the lowest possible. > > If the currnet pixel clock rate

Re: [PATCH v3 00/23] Qualcomm 8x16 Camera Subsystem driver

2017-07-20 Thread Sakari Ailus
Hi Todor, On Mon, Jul 17, 2017 at 01:33:26PM +0300, Todor Tomov wrote: > This patchset adds basic support for the Qualcomm Camera Subsystem found > on Qualcomm MSM8916 and APQ8016 processors. > > The driver implements V4L2, Media controller and V4L2 subdev interfaces. > Camera sensor using V4L2 s

Re: [PATCH v3 1/5] mm: add vm_insert_mixed_mkwrite()

2017-07-20 Thread Vivek Goyal
On Wed, Jun 28, 2017 at 04:01:48PM -0600, Ross Zwisler wrote: > To be able to use the common 4k zero page in DAX we need to have our PTE > fault path look more like our PMD fault path where a PTE entry can be > marked as dirty and writeable as it is first inserted, rather than waiting > for a follo

Re: [PATCH] lib/int_sqrt.c: Optimize square root function

2017-07-20 Thread Peter Zijlstra
On Thu, Jul 20, 2017 at 01:24:49PM +0200, Peter Zijlstra wrote: > ~/tmp$ gcc -o sqrt sqrt.c -lm -O2 -DLOOPS=1000 -DNEW=1 -DFLS=1 -DANSHUL=1 > ; perf stat --repeat 10 -e cycles:u -e instructions:u ./sqrt > > Performance counter stats for './sqrt' (10 runs): > >328,415,775 cycle

[PATCH v2 1/3] string.h: add memcpy_and_pad()

2017-07-20 Thread Martin Wilck
This helper function is useful for the nvme subsystem, and maybe others. Signed-off-by: Martin Wilck --- include/linux/string.h | 30 ++ 1 file changed, 30 insertions(+) diff --git a/include/linux/string.h b/include/linux/string.h index a467e617eeb08..0bec4151b0eb9 1

[PATCH v2 3/3] nvme: wwid_show: strip trailing 0-bytes

2017-07-20 Thread Martin Wilck
Some broken targets (such as the current Linux target) pad model or serial fields with 0-bytes rather than spaces. The NVME spec disallows 0 bytes in "ASCII" fields. Thus strip trailing 0-bytes, too. Signed-off-by: Martin Wilck Reviewed-by: Hannes Reinecke Acked-by: Christoph Hellwig --- driv

[PATCH v2 0/3] Improve readbility of NVME "wwid" attribute

2017-07-20 Thread Martin Wilck
With the current implementation, the default "fallback" WWID generation code (if no nguid, euid etc. are defined) for Linux NVME host and target results in the following WWID format: nvme.-3163653363666438366239656630386200-4c696e7578

[PATCH] [media] dvb_frontend: ensure that front end status is initialized

2017-07-20 Thread Colin King
From: Colin Ian King The fe_status variable s is not initialized meaning it can have any random garbage status. This could be problematic if fe->ops.tune is false as s is not updated by the call to fe->ops.tune() and a subsequent check on the change status will using a garbage value. Fix this by

[PATCH v2 2/3] nvmet: identify controller: improve standard compliance

2017-07-20 Thread Martin Wilck
The NVME standard mandates that the SN, MN, and FR fields of the Indentify Controller Data Structure be "ASCII strings". That means that they may not contain 0-bytes, not even string terminators. Signed-off-by: Martin Wilck --- drivers/nvme/target/admin-cmd.c | 13 ++--- 1 file changed,

Re: [PATCH] Revert "x86/uaccess: Add stack frame output operand in get_user() inline asm"

2017-07-20 Thread Andrey Ryabinin
2017-07-20 18:18 GMT+03:00 Josh Poimboeuf : > On Thu, Jul 20, 2017 at 01:01:39PM +0300, Andrey Ryabinin wrote: >> 2017-07-19 20:46 GMT+03:00 Josh Poimboeuf : >> >> > >> > After doing some testing, I don't think this approach is going to work >> > after all. In addition to forcing the stack frame,

Re: [PATCH v4 1/5] powerpc: io.h: move iomap.h include so that it can use readq/writeq defs

2017-07-20 Thread Logan Gunthorpe
On 20/07/17 06:36 AM, Horia Geantă wrote: > include/asm-generic/iomap.h is included before > include/linux/io-64-nonatomic-lo-hi.h: > > include/linux/io.h -> arch/powerpc/include/asm/io.h -> > include/asm-generic/iomap.h > > Thus, the "extern" version of ioread64_lo_hi and friends will be used

Re: [Patch v5 12/12] Documention: v4l: Documentation for HEVC CIDs

2017-07-20 Thread Stanimir Varbanov
Hi, >>> + >>> +* - ``V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN`` >>> + - Main profile. >> >> MAIN10? >> > No just MAIN. I haven't because the MFC does not supported it? If so, I think we have to add MAIN10 for completeness and because other drivers could have support for it. -- regards, Stan

[PATCH 01/12] ARM: ixp4xx: fix ioport_unmap definition

2017-07-20 Thread Arnd Bergmann
An empty macro definition can cause unexpected behavior, in case of the ixp4xx ioport_unmap, we get two warnings: drivers/net/wireless/marvell/libertas/if_cs.c: In function 'if_cs_release': drivers/net/wireless/marvell/libertas/if_cs.c:826:3: error: suggest braces around empty body in an 'if' sta

Re: [PATCH 1/4] fs/dcache: Limit numbers of negative dentries

2017-07-20 Thread Waiman Long
On 07/20/2017 11:08 AM, Miklos Szeredi wrote: > On Thu, Jul 20, 2017 at 4:21 PM, Waiman Long wrote: >> On 07/20/2017 03:20 AM, Miklos Szeredi wrote: >>> On Wed, Jul 19, 2017 at 10:42 PM, Waiman Long wrote: >> @@ -603,7 +698,13 @@ static struct dentry *dentry_kill(struct dentry >> *dentry

RE: [PATCH 1/4] ACPI: Allow _DMA method in walk resources

2017-07-20 Thread Moore, Robert
I think we can take this as-is into ACPICA. Bob > -Original Message- > From: Lorenzo Pieralisi [mailto:lorenzo.pieral...@arm.com] > Sent: Thursday, July 20, 2017 7:45 AM > To: linux-a...@vger.kernel.org > Cc: linux-arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.org; > Lorenzo Pi

Re: [PATCH v2 1/2] livepatch: introduce shadow variable API

2017-07-20 Thread Joe Lawrence
On 07/20/2017 10:45 AM, Miroslav Benes wrote: > > + * > + * Note: allocates @new_size space for shadow variable data and copies > + * @new_size bytes from @new_data into the shadow varaible's own > @new_data > + * space. If @new_data is NULL, @new_size is still allocated, but

Re: [PATCH] [media] dvb_frontend: ensure that front end status is initialized

2017-07-20 Thread Shuah Khan
Hi Colin, On 07/20/2017 09:29 AM, Colin King wrote: > From: Colin Ian King > > The fe_status variable s is not initialized meaning it can have any > random garbage status. This could be problematic if fe->ops.tune is > false as s is not updated by the call to fe->ops.tune() and a > subsequent c

Re: [PATCH] livepatch: add (un)patch hooks

2017-07-20 Thread Petr Mladek
On Wed 2017-07-19 23:17:23, Josh Poimboeuf wrote: > On Wed, Jul 19, 2017 at 03:49:52PM -0500, Josh Poimboeuf wrote: > > > I am sorry for the long mail. But I have really troubles to > > > understand and describe what can be done with these hooks > > > a safe way. > > > > > > It might help if you s

[PATCH 02/12] ARM: ep93xx: use ARM_PATCH_PHYS_VIRT

2017-07-20 Thread Arnd Bergmann
Just like ARCH_MULTIPLATFORM, we want to use ARM_PATCH_PHYS_VIRT when possible, but that fails for NOMMU or XIP_KERNEL configurations. Using 'imply' instead of 'select' gets this right and only uses the symbol when we don't have to hardcode the address anyway. Signed-off-by: Arnd Bergmann --- ar

Re: [PATCH v2 4/7] driver core: add devm_device_add_group() and friends

2017-07-20 Thread Dmitry Torokhov
On July 20, 2017 1:20:09 AM PDT, Greg Kroah-Hartman wrote: >On Thu, Jul 20, 2017 at 01:12:56AM -0700, Dmitry Torokhov wrote: >> On July 19, 2017 10:10:18 PM PDT, Greg Kroah-Hartman > wrote: >> >On Wed, Jul 19, 2017 at 05:24:33PM -0700, Dmitry Torokhov wrote: >> >> Many drivers create additional d

RE: [PATCH 1/4] ACPI: Allow _DMA method in walk resources

2017-07-20 Thread Moore, Robert
Could you post this as a pull request on our github? https://github.com/acpica/acpica > -Original Message- > From: Moore, Robert > Sent: Thursday, July 20, 2017 8:49 AM > To: 'Lorenzo Pieralisi' ; linux- > a...@vger.kernel.org > Cc: linux-arm-ker...@lists.infradead.org; linux-kernel@vger.

[RCF PATCH] genirq/debugfs: Triggering of interrupts from userspace

2017-07-20 Thread Marc Zyngier
When developing new (and therefore buggy) interrupt related code, it can sometimes be useful to inject interrupts without having to rely on a device to actually generate them. This functionnality relies on the irqchip driver to expose a irq_set_irqchip_state(IRQCHIP_STATE_PENDING) callback. To us

Re: [lkp-robot] [include/linux/string.h] 6974f0c455: kernel_BUG_at_lib/string.c

2017-07-20 Thread Masami Hiramatsu
On Wed, 19 Jul 2017 21:04:25 -0700 Linus Torvalds wrote: > Hmm. I wonder why the kernel test robot ends up having that annoying > line doubling for the dmesg. > > On Wed, Jul 19, 2017 at 6:42 PM, kernel test robot > wrote: > > > > FYI, we noticed the following commit: > > > > commit: 6974f0c455

[PATCH 03/12] ARM: normalize clk API for older platforms

2017-07-20 Thread Arnd Bergmann
Six ARM platforms still provide their own variant of the clk API rather than using the generic COMMON_CLK API. This generally works, but it causes some link errors with drivers using the clk_set_rate, clk_get_parent, clk_set_parent or clk_round_rate functions when a platform lacks those interfaces.

Re: [PATCH v2 3/3] nvme: wwid_show: strip trailing 0-bytes

2017-07-20 Thread Joe Perches
On Thu, 2017-07-20 at 17:27 +0200, Martin Wilck wrote: > Some broken targets (such as the current Linux target) pad > model or serial fields with 0-bytes rather than spaces. The > NVME spec disallows 0 bytes in "ASCII" fields. > Thus strip trailing 0-bytes, too. > > Signed-off-by: Martin Wilck >

[PATCH 04/12] ARM: sa1100/pxa: fix MTD_XIP build

2017-07-20 Thread Arnd Bergmann
In commit 3169663ac5902 "ARM: sa11x0/pxa: convert OS timer registers to IOMEM", the definition of the OSCR macro was changed to be an __iomem pointer, but the same register is also used by the XIP code. This patch does the corresponding change here as well. On PXA, the IRQ register definitions wer

[PATCH 05/12] ARM: mmp: mark usb_dma_mask as __maybe_unused

2017-07-20 Thread Arnd Bergmann
This variable may be used by some devices that each have their on Kconfig symbol, or by none of them, and that causes a build warning: arch/arm/mach-mmp/devices.c:241:12: error: 'usb_dma_mask' defined but not used [-Werror=unused-variable] Marking it __maybe_unused avoids the warning. Signed-of

[PATCH 06/12] ARM: omap2: mark unused functions as __maybe_unused

2017-07-20 Thread Arnd Bergmann
The omap_generic_init() and omap_hwmod_init_postsetup() functions are used in the initialization for all OMAP2+ SoC types, but in the extreme case that those are all disabled, we get a warning about unused code: arch/arm/mach-omap2/io.c:412:123: error: 'omap_hwmod_init_postsetup' defined but not

[PATCH 09/12] ARM: ixp4xx: use normal prototype for {read,write}s{b,w,l}

2017-07-20 Thread Arnd Bergmann
ixp4xx defines the arguments to its __indirect_writesb() and other functions as pointers to fixed-size data. This is not necessarily wrong, and it works most of the time, but it causes warnings in at least one driver: drivers/net/ethernet/smsc/smc91x.c: In function 'smc_rcv': drivers/net/ethernet/

[PATCH 07/12] ARM: omap1: avoid unused variable warning

2017-07-20 Thread Arnd Bergmann
The osk_mistral_init() contains code that is only compiled when CONFIG_PM is set, but it uses a variable that is declared outside of the #ifdef: arch/arm/mach-omap1/board-osk.c: In function 'osk_mistral_init': arch/arm/mach-omap1/board-osk.c:513:7: warning: unused variable 'ret' [-Wunused-variabl

[PATCH 08/12] ARM: sirf: mark sirfsoc_init_late as __maybe_unused

2017-07-20 Thread Arnd Bergmann
sirfsoc_init_late is called by each of the three individual SoC definitions, but in a randconfig build, we can encounter a situation where they are all disabled: arch/arm/mach-prima2/common.c:18:123: warning: 'sirfsoc_init_late' defined but not used [-Wunused-function] While that is not a useful

[PATCH 10/12] [v2] ARM: s3c24xx: make H1940BT depend on RFKILL

2017-07-20 Thread Arnd Bergmann
Bluetooth is only supported when network support is part of the kernel, so it is a bit pointless to build the hi1940-bt support without networking. If we try anyway, we get a Kconfig warning: warning: (TOSA_BT && H1940BT) selects RFKILL which has unmet direct dependencies (NET) This turns the 's

[PATCH 11/12] ARM: omap1/ams-delta: warn about failed regulator enable

2017-07-20 Thread Arnd Bergmann
The modem pm handler in the ams-delta board uses regulator_enable() but does not check for a successful return code: board-ams-delta.c:521:3: error: ignoring return value of 'regulator_enable', declared with attribute warn_unused_result [-Werror=unused-result] It is not easy to propagate that re

[PATCH 12/12] ARM: rpc: rename RAM_SIZE macro

2017-07-20 Thread Arnd Bergmann
The RAM_SIZE macro in mach/hardware.h conflicts with macros of the same name in multiple drivers, leading to annoying build warnings: In file included from drivers/net/ethernet/cirrus/cs89x0.c:79:0: drivers/net/ethernet/cirrus/cs89x0.h:324:0: error: "RAM_SIZE" redefined [-Werror] #define RAM_SIZ

Re: [PATCH 1/4] can: dev: Add support for limiting configured bitrate

2017-07-20 Thread Franklin S Cooper Jr
Hi Oliver On 07/20/2017 02:43 AM, Oliver Hartkopp wrote: > Hi Franklin, > > On 07/20/2017 01:36 AM, Franklin S Cooper Jr wrote: > >> +#ifdef CONFIG_OF >> +void of_transceiver_is_fixed(struct net_device *dev) >> +{ > > (..) > >> +} >> +EXPORT_SYMBOL(of_transceiver_is_fixed); >> +#endif > > I'm

[PATCH 1/1] staging: pi433: fix problem with division in rf69_set_deviation

2017-07-20 Thread Marcus Wolf
Fixes problem with division in rf69_set_deviation Fixes: 874bcba65f9a ("staging: pi433: New driver") Signed-off-by: Marcus Wolf diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c --- a/drivers/staging/pi433/rf69.c +++ b/drivers/staging/pi433/rf69.c @@ -221,7 +221,7 @@ int r

Test of [PATCH 1/1] staging: pi433: fix problem with division in rf69_set_deviation

2017-07-20 Thread Marcus Wolf
Hi! Since I don't have an environment for m68k and I would appreciate not having to set it up, I would be very happy, if someone could give the patch, named in the subjext, a try on ARCH=m68k... Thanks, Marcus > Geert Uytterhoeven hat am 20. Juli 2017 um 14:27 > geschrieben: > > > Hi Dan, >

Re: [PATCH v2 6/7] x86: therm_throt: constify attribute_group structures.

2017-07-20 Thread Borislav Petkov
On Thu, Jul 20, 2017 at 05:00:37PM +0530, Arvind Yadav wrote: > attribute_group are not supposed to change at runtime. All functions > working with attribute_group provided by work with > const attribute_group. So mark the non-const structs as const. > > Signed-off-by: Arvind Yadav > --- > chang

Re: [PATCH v3 1/5] mm: add vm_insert_mixed_mkwrite()

2017-07-20 Thread Ross Zwisler
On Thu, Jul 20, 2017 at 11:26:16AM -0400, Vivek Goyal wrote: > On Wed, Jun 28, 2017 at 04:01:48PM -0600, Ross Zwisler wrote: > > To be able to use the common 4k zero page in DAX we need to have our PTE > > fault path look more like our PMD fault path where a PTE entry can be > > marked as dirty and

Re: [PATCH 1/4] can: dev: Add support for limiting configured bitrate

2017-07-20 Thread Franklin S Cooper Jr
On 07/20/2017 04:52 AM, Sergei Shtylyov wrote: > Hello! > > On 7/20/2017 2:36 AM, Franklin S Cooper Jr wrote: > >> Various CAN or CAN-FD IP may be able to run at a faster rate than >> what the transceiver the CAN node is connected to. This can lead to >> unexpected errors. However, CAN transcei

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