Re: [PATCH] crypto: caam - free qman_fq after kill_fq

2017-07-13 Thread Horia Geantă
On 7/11/2017 9:21 AM, Xulin Sun wrote: > kill_fq removes a complete frame queue, it needs to free the qman_fq > in the last. Else kmemleak will report the below warning: > > unreferenced object 0x800073085c80 (size 128): > comm "cryptomgr_test", pid 199, jiffies 4294937850 (age 67.840s) >

Re: [PATCH v8 1/5] [media] cec.h: Add stub function for cec_register_cec_notifier()

2017-07-13 Thread Hans Verkuil
On 10/07/17 17:46, Jose Abreu wrote: > Add a new stub function for cec_register_cec_notifier() so that > we can still call this function when CONFIG_CEC_NOTIFIER and > CONFIG_CEC_CORE are not set. > > Signed-off-by: Jose Abreu > Cc: Carlos Palminha > Cc: Hans Verkuil > --- > include/media/cec.

Re: [PATCH] mm: Mark create_huge_pmd() inline to prevent build failure

2017-07-13 Thread Geert Uytterhoeven
Hi Dan, On Thu, Jul 13, 2017 at 2:29 AM, Dan Williams wrote: > On Tue, Jul 11, 2017 at 11:57 PM, Geert Uytterhoeven > wrote: >> With gcc 4.1.2: >> >> mm/memory.o: In function `create_huge_pmd': >> memory.c:(.text+0x93e): undefined reference to >> `do_huge_pmd_anonymous_page' >> >> Conve

Re: A udev rule to serve the change event of ACPI container?

2017-07-13 Thread Michal Hocko
On Thu 13-07-17 14:58:06, Joey Lee wrote: > Hi Michal, > > Sorry for my delay. > > On Tue, Jul 11, 2017 at 10:25:32AM +0200, Michal Hocko wrote: > > On Mon 26-06-17 10:59:07, Michal Hocko wrote: > > > On Mon 26-06-17 14:26:57, Joey Lee wrote: > > > > Hi all, > > > > > > > > If ACPI received eje

Regression with suspicious RCU usage splats with cpu_pm change

2017-07-13 Thread Tony Lindgren
Hi, Looks like next-20170713 gives me a bunch of "suspicious RCU usage" splats with cpuidle_coupled on duovero, see below. I bisected it down to commit 2f027e003d05 ("cpu_pm: replace raw_notifier with atomic_notifier")

[PATCH] ASoC: hisilicon: constify snd_soc_dai_ops structure

2017-07-13 Thread Gustavo A. R. Silva
This structure is only stored in the ops field of a snd_soc_dai_driver structure. That field is declared const, so snd_soc_dai_ops structures that have this property can be declared as const also. Signed-off-by: Gustavo A. R. Silva --- sound/soc/hisilicon/hi6210-i2s.c | 2 +- 1 file changed, 1 i

Re: [PATCH v3 00/10] x86: ORC unwinder (previously undwarf)

2017-07-13 Thread Peter Zijlstra
On Wed, Jul 12, 2017 at 05:32:25PM -0500, Josh Poimboeuf wrote: > If you want perf to be able to use ORC instead of DWARF for user space > binaries, that's not currently possible, though I don't see any > technical blockers for doing so. Perf would need to be taught to read > ORC data. So the pro

[PATCH] ASoC: fsl_spdif: constify snd_soc_dai_ops structure

2017-07-13 Thread Gustavo A. R. Silva
This structure is only stored in the ops field of a snd_soc_dai_driver structure. That field is declared const, so snd_soc_dai_ops structures that have this property can be declared as const also. Signed-off-by: Gustavo A. R. Silva --- sound/soc/fsl/fsl_spdif.c | 2 +- 1 file changed, 1 insertio

[PATCH] ASoC: fsl_esai: constify snd_soc_dai_ops structure

2017-07-13 Thread Gustavo A. R. Silva
This structure is only stored in the ops field of a snd_soc_dai_driver structure. That field is declared const, so snd_soc_dai_ops structures that have this property can be declared as const also. Signed-off-by: Gustavo A. R. Silva --- sound/soc/fsl/fsl_esai.c | 2 +- 1 file changed, 1 insertion

Re: [PATCH v2 1/4] dt-bindings: pwm-backlight: add pwm-delay-us property

2017-07-13 Thread Enric Balletbo Serra
Rob, 2017-07-06 20:23 GMT+02:00 Enric Balletbo Serra : > Hi Rob, > > 2017-07-06 19:07 GMT+02:00 Rob Herring : >> On Fri, Jun 30, 2017 at 6:21 AM, Enric Balletbo i Serra >> wrote: >>> From: huang lin >>> >>> Add a pwm-delay-us property to specify the delay between setting an >>> initial (non-zero

Re: [PATCH 1/4] perf annotate: Fix wrong --show-total-period option showing number of samples

2017-07-13 Thread Taeung Song
Hi Arnaldo :) On 07/13/2017 05:09 AM, Arnaldo Carvalho de Melo wrote: Em Wed, Jul 12, 2017 at 07:14:04AM +0900, Taeung Song escreveu: Currently the --show-total-period option of perf-annotate is different from perf-report's. For example, perf-report ordinarily shows period and number of sample

[PATCH] ASoC: fsl_asrc: constify snd_soc_dai_ops structure

2017-07-13 Thread Gustavo A. R. Silva
This structure is only stored in the ops field of a snd_soc_dai_driver structure. That field is declared const, so snd_soc_dai_ops structures that have this property can be declared as const also. Signed-off-by: Gustavo A. R. Silva --- sound/soc/fsl/fsl_asrc.c | 2 +- 1 file changed, 1 insertion

Re: [PATCH 2/4] perf anntoate browser: Fix the toggle total period view to show period, not number of samples

2017-07-13 Thread Taeung Song
On 07/13/2017 05:10 AM, Arnaldo Carvalho de Melo wrote: Em Wed, Jul 12, 2017 at 07:14:10AM +0900, Taeung Song escreveu: Currently the toggle total period view on the annotate TUI shows the number of samples, not period like below. $ perf annotate --show-total-period Percent│ │

Re: [PATCH] nvme: also provide a UUID in the WWID sysfs attribute

2017-07-13 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH v5 2/5] tick: Add freeze timer events

2017-07-13 Thread Peter Zijlstra
On Fri, Jul 07, 2017 at 05:03:00PM -0700, Derek Basehore wrote: > Adds a new feature to tick to schedule wakeups on a CPU during freeze. > This won't fully wake up the system (devices are not resumed), but > allow simple platform functionality to be run during freeze with > little power impact. >

Re: [alsa-devel] [PATCH] ASoC: fsl_asrc: constify snd_soc_dai_ops structure

2017-07-13 Thread Takashi Iwai
Gustavo, please stop posting in this style. It's really annoying to see spontaneously popping-up almost same patch for more than two hours long. If you have a series of the same fix patches, send them as a patch set in a shot with a thread. git-send-email does it right. I don't mind a couple o

Re: [PATCH v6 1/4] firmware: scm: Add new SCM call API for switching memory ownership

2017-07-13 Thread Dwivedi, Avaneesh Kumar (avani)
On 7/13/2017 11:24 AM, Stephen Boyd wrote: On 07/12, Dwivedi, Avaneesh Kumar (avani) wrote: On 7/8/2017 4:19 AM, Stephen Boyd wrote: On 06/22, Avaneesh Kumar Dwivedi wrote: diff --git a/drivers/firmware/qcom_scm-64.c b/drivers/firmware/qcom_scm-64.c index 6e6d561..cdfe986 100644 --- a/drive

Re: [PATCH v2] [media] lirc_zilog: Clean up lirc zilog error codes

2017-07-13 Thread Frans Klaver
Almost there on the subject. Stuff between brackets is removed by git, so you should rather use something like [PATCH v2] staging: lirc: Clean up zilog error codes On Wed, Jul 12, 2017 at 9:17 PM, Yves Lemée wrote: > According the coding style guidelines, the ENOSYS error code must be returned >

Re: [alsa-devel] [PATCH] ASoC: fsl_asrc: constify snd_soc_dai_ops structure

2017-07-13 Thread Gustavo A. R. Silva
Hi Takashi, Quoting Takashi Iwai : Gustavo, please stop posting in this style. It's really annoying to see spontaneously popping-up almost same patch for more than two hours long. If you have a series of the same fix patches, send them as a patch set in a shot with a thread. git-send-email

Re: [PATCH v2 1/4] dt-bindings: pwm-backlight: add pwm-delay-us property

2017-07-13 Thread Pavel Machek
On Thu 2017-07-13 09:22:15, Enric Balletbo Serra wrote: > Rob, > > 2017-07-06 20:23 GMT+02:00 Enric Balletbo Serra : > > Hi Rob, > > > > 2017-07-06 19:07 GMT+02:00 Rob Herring : > >> On Fri, Jun 30, 2017 at 6:21 AM, Enric Balletbo i Serra > >> wrote: > >>> From: huang lin > >>> > >>> Add a pwm-d

Re: [PATCH v12 5/8] virtio-balloon: VIRTIO_BALLOON_F_SG

2017-07-13 Thread Wei Wang
On 07/12/2017 09:56 PM, Michael S. Tsirkin wrote: So the way I see it, there are several issues: - internal wait - forces multiple APIs like kick/kick_sync note how kick_sync can fail but your code never checks return code - need to re-write the last descriptor - might not work for altern

Re: [RFC v5 02/38] powerpc: Free up four 64K PTE bits in 64K backed HPTE pages

2017-07-13 Thread Ram Pai
On Wed, Jul 12, 2017 at 01:10:51PM +1000, Balbir Singh wrote: > On Tue, 11 Jul 2017 08:44:15 -0700 > Ram Pai wrote: > > > On Tue, Jul 11, 2017 at 03:59:59PM +1000, Balbir Singh wrote: > > > On Wed, 5 Jul 2017 14:21:39 -0700 > > > Ram Pai wrote: > > > > > > > Rearrange 64K PTE bits to free

Re: [PATCH v1] spi: loopback-test: provide loop request option.

2017-07-13 Thread Uwe Kleine-König
On Wed, Jul 12, 2017 at 03:40:20PM +0200, Oleksij Rempel wrote: > From: Oleksij Rempel > > Provide a module parameter to request internal > loop by the SPI master controller. > This should make loop testing easier without extra HW modification. > > Signed-off-by: Oleksij Rempel > --- > driver

Re: [RFC v5 14/38] powerpc: initial plumbing for key management

2017-07-13 Thread Ram Pai
On Wed, Jul 12, 2017 at 01:28:25PM +1000, Balbir Singh wrote: > On Wed, 5 Jul 2017 14:21:51 -0700 > Ram Pai wrote: > > > Initial plumbing to manage all the keys supported by the > > hardware. > > > > Total 32 keys are supported on powerpc. However pkey 0,1 > > and 31 are reserved. So effectivel

Re: [PATCH 0/2] Workaround for uPD72020x USB3 chips

2017-07-13 Thread Marc Zyngier
On 13/07/17 07:48, Ard Biesheuvel wrote: > On 13 July 2017 at 04:12, Bjorn Helgaas wrote: >> On Mon, Jul 10, 2017 at 04:52:28PM +0100, Marc Zyngier wrote: >>> Ard and myself have just spent quite some time lately trying to pin >>> down an issue in the DMA code which was taking the form of a PCIe U

Re: [PATCH] firmware: remove request_firmware_into_buf()

2017-07-13 Thread Greg Kroah-Hartman
On Thu, Jul 13, 2017 at 01:44:34AM +0200, Luis R. Rodriguez wrote: > On Tue, Jun 27, 2017 at 10:37:11AM -0700, Bjorn Andersson wrote: > > On Mon 26 Jun 23:52 PDT 2017, Greg Kroah-Hartman wrote: > > > Why would we keep it if there is no in-tree user for it? If you want it > > > sometime in the futu

[PATCH 1/2] RDMA/ocrdma: Fix an error code in ocrdma_alloc_pd()

2017-07-13 Thread Dan Carpenter
We should preserve the original "status" error code instead of resetting it to zero. Returning ERR_PTR(0) is the same as NULL and results in a NULL dereference in the callers. I added a printk() on error instead. Fixes: 45e86b33ec8b ("RDMA/ocrdma: Cache recv DB until QP moved to RTR") Signed-off

Re: [GIT PULL] sysctl fixes for v4.13-rc1

2017-07-13 Thread Sedat Dilek
On Thu, Jul 13, 2017 at 2:45 AM, Eric W. Biederman wrote: > > Linus, > > Please pull the for-linus branch from the git tree: > >git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git > for-linus > >HEAD: 2fd1d2c4ceb2248a727696962cf3370dc9f5a0a4 proc: Fix > proc_sys_pru

Re: [PATCH v2 1/4] dt-bindings: pwm-backlight: add pwm-delay-us property

2017-07-13 Thread Enric Balletbo Serra
2017-07-13 9:39 GMT+02:00 Pavel Machek : > On Thu 2017-07-13 09:22:15, Enric Balletbo Serra wrote: >> Rob, >> >> 2017-07-06 20:23 GMT+02:00 Enric Balletbo Serra : >> > Hi Rob, >> > >> > 2017-07-06 19:07 GMT+02:00 Rob Herring : >> >> On Fri, Jun 30, 2017 at 6:21 AM, Enric Balletbo i Serra >> >> wro

[PATCH v3 2/9] clk: at91: add audio plls to the compatible list in DT binding

2017-07-13 Thread Quentin Schulz
This new clock driver set allows to have a fractional divided clock that would generate a precise clock particularly suitable for audio applications. The main audio pll clock has two children clocks: one that is connected to the PMC, the other that can directly drive a pad. As these two routes hav

Re: [PATCH] mm: Mark create_huge_pmd() inline to prevent build failure

2017-07-13 Thread Dan Williams
On Thu, Jul 13, 2017 at 12:04 AM, Geert Uytterhoeven wrote: > Hi Dan, > > On Thu, Jul 13, 2017 at 2:29 AM, Dan Williams > wrote: >> On Tue, Jul 11, 2017 at 11:57 PM, Geert Uytterhoeven >> wrote: >>> With gcc 4.1.2: >>> >>> mm/memory.o: In function `create_huge_pmd': >>> memory.c:(.text+

[PATCH v3 1/9] clk: at91: clk-generated: remove useless divisor loop

2017-07-13 Thread Quentin Schulz
The driver requests the current clk rate of each of its parent clocks to decide whether a clock rate is suitable or not. It does not request determine_rate from a parent clock which could request a rate change in parent clock (i.e. there is no parent rate propagation). We know the rate we want (pa

Re: [PATCH v2 02/10] cpufreq: provide data for frequency-invariant load-tracking support

2017-07-13 Thread Peter Zijlstra
On Thu, Jul 13, 2017 at 01:13:43AM +0200, Rafael J. Wysocki wrote: > I *guess* the concern is that in the new model there is no control over the > time of requesting the frequency change and when the change actually > happens. There isn't in any case. If some brilliant hardware designer shares th

[PATCH v3 0/9] add support for Sama5d2 audio PLLs and enable ClassD

2017-07-13 Thread Quentin Schulz
This patch series adds support for the audio PLLs and enables ClassD that can be found in ATMEL Sama5d2 SoC. There are two audio PLLs (PMC and PAD) that shares the same parent (FRAC). FRAC can output between 620 and 700MHz and only multiply the rate of its parent. The two audio PLLs then divide th

[PATCH v3 9/9] ARM: dts: at91: sama5d2_xplained: add pin muxing and enable classd

2017-07-13 Thread Quentin Schulz
From: Cyrille Pitchen This patch adds the pin muxing for classd and enables it. Signed-off-by: Cyrille Pitchen Signed-off-by: Nicolas Ferre Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 16 1 file changed, 16 insertions(+) diff --git a/arch

[PATCH v3 8/9] ASoC: atmel-classd: remove aclk clock

2017-07-13 Thread Quentin Schulz
Since gclk (generated-clk) is now able to determine the rate of the audio_pll, there is no need for classd to have a direct phandle to the audio_pll while already having a phandle to gclk. Thus, remove all mentions to aclk in classd driver and update macros and variable names. Signed-off-by: Quen

[PATCH v3 6/9] clk: at91: clk-generated: make gclk determine audio_pll rate

2017-07-13 Thread Quentin Schulz
This allows gclk to determine audio_pll rate and set the parent rate accordingly. However, there are multiple children clocks that could technically change the rate of audio_pll (via gck). With the rate locking, the first consumer to enable the clock will be the one definitely setting the rate of

[PATCH v3 7/9] ASoC: atmel-classd: remove aclk clock from DT binding

2017-07-13 Thread Quentin Schulz
Since gclk (generated-clk) is now able to determine the rate of the audio_pll, there is no need for classd to have a direct phandle to the audio_pll while already having a phandle to gclk. This binding is used by no board in mainline so it is safe to be modified. Signed-off-by: Quentin Schulz Ac

[PATCH v3 3/9] clk: at91: add audio pll clock drivers

2017-07-13 Thread Quentin Schulz
This new clock driver set allows to have a fractional divided clock that would generate a precise clock particularly suitable for audio applications. The main audio pll clock has two children clocks: one that is connected to the PMC, the other that can directly drive a pad. As these two routes hav

[PATCH v3 4/9] ARM: dts: at91: sama5d2: add classd nodes

2017-07-13 Thread Quentin Schulz
From: Cyrille Pitchen This patch adds nodes for the classd device and its generated clock. Signed-off-by: Cyrille Pitchen Signed-off-by: Nicolas Ferre Signed-off-by: Quentin Schulz --- arch/arm/boot/dts/sama5d2.dtsi | 39 ++- 1 file changed, 38 insertions(

[PATCH v3 5/9] clk: at91: clk-generated: create function to find best_diff

2017-07-13 Thread Quentin Schulz
The way to find the best_diff and do the appropriate process afterwards can be re-used. This patch prepares the driver for an upcoming patch that will allow clk_generated to determine the rate of the audio_pll. Signed-off-by: Quentin Schulz Acked-by: Boris Brezillon --- drivers/clk/at91/clk-ge

[PATCH] rbd: Fix uninitialized variable use in rbd_acquire_lock

2017-07-13 Thread Kefeng Wang
drivers/block/rbd.c: In function 'rbd_acquire_lock': drivers/block/rbd.c:3602:44: error: 'ret' may be used uninitialized in this function [-Werror=maybe-uninitialized] Silence the warning, found it when built old kernel(3.10) with OBS(opensuse build service). Signed-off-by: Kefeng Wang --- dri

Re: [PATCH v2] clk: fractional-divider: fix up the fractional clk's jitter

2017-07-13 Thread Elaine Zhang
On 07/10/2017 07:05 PM, Heiko Stuebner wrote: Hi Elaine, Am Freitag, 7. Juli 2017, 10:52:23 CEST schrieb Elaine Zhang: add clk_fractional_divider_special_ops for rockchip specific requirements, fractional divider must set that denominator is 20 times larger than numerator to generate precise

Re: [PATCH v6 1/4] firmware: scm: Add new SCM call API for switching memory ownership

2017-07-13 Thread Stephen Boyd
On 07/13, Dwivedi, Avaneesh Kumar (avani) wrote: > OK, will do same. > just last thing to ask, should i resend all 4 patches together again > or only one patch in v7 version. > as chnage will be in only 1 out of 4 patches. I would resend all of them. That's standard practice for patch series. --

Re: [RFC v5 15/38] powerpc: helper function to read,write AMR,IAMR,UAMOR registers

2017-07-13 Thread Ram Pai
On Wed, Jul 12, 2017 at 03:26:01PM +1000, Balbir Singh wrote: > On Wed, 5 Jul 2017 14:21:52 -0700 > Ram Pai wrote: > > > Implements helper functions to read and write the key related > > registers; AMR, IAMR, UAMOR. > > > > AMR register tracks the read,write permission of a key > > IAMR registe

Re: [PULL REQUEST] i2c for 4.13

2017-07-13 Thread Uwe Kleine-König
Hello, On Wed, Jul 12, 2017 at 10:16:32AM -0700, Linus Torvalds wrote: > On Wed, Jul 12, 2017 at 8:49 AM, Wolfram Sang wrote: > > drivers/i2c/i2c-core-acpi.c| 665 > > drivers/i2c/{i2c-core.c => i2c-core-base.c}| 1684 > > +--- > > drive

Re: [patch] autogain support for bayer10 format (was Re: [patch] propagating controls in libv4l2)

2017-07-13 Thread Pavel Machek
Hi! > Oh, somehow I got confused that this is kernel code :) > > >But I'd say NEON conversion is not neccessary anytime soon. First, > >this is just trying to get average luminosity. We can easily skip > >quite a lot of pixels, and still get reasonable answer. > > > >Second, omap3isp actually has

Re: [PATCH 3/3] ARM: dts: at91: sama5d2: use sama5d2 compatible string for SMC

2017-07-13 Thread Lee Jones
On Wed, 12 Jul 2017, Alexandre Belloni wrote: > On 11/07/2017 at 10:25:56 +0100, Lee Jones wrote: > > On Tue, 11 Jul 2017, Ludovic Desroches wrote: > > > > > On Tue, Jul 11, 2017 at 09:58:29AM +0200, Ludovic Desroches wrote: > > > > On Tue, Jul 11, 2017 at 09:52:58AM +0200, Nicolas Ferre wrote: >

Re: [PATCH v2 01/18] mfd: madera: Add register definitions for Cirrus Logic Madera codecs

2017-07-13 Thread Lee Jones
On Mon, 24 Apr 2017, Richard Fitzgerald wrote: > This patch adds a header file of register definitions for Cirrus > Logic "Madera" class codecs. These codecs are all based off a common > set of hardware IP so have a common register map (with a few minor > device-to-device variations). These are co

Re: [RFC v5 34/38] procfs: display the protection-key number associated with a vma

2017-07-13 Thread Ram Pai
On Tue, Jul 11, 2017 at 11:13:56AM -0700, Dave Hansen wrote: > On 07/05/2017 02:22 PM, Ram Pai wrote: > > +#ifdef CONFIG_PPC64_MEMORY_PROTECTION_KEYS > > +void arch_show_smap(struct seq_file *m, struct vm_area_struct *vma) > > +{ > > + seq_printf(m, "ProtectionKey: %8u\n", vma_pkey(vma)); > > +}

[PATCH v3 2/2] mmc: sdhci-of-at91: set clocks and presets after resume from deepest PM

2017-07-13 Thread Quentin Schulz
This adds deepest (Backup+Self-Refresh) PM support to the ATMEL SAMA5D2 SoC's SDHCI controller. When resuming from deepest state, it is required to restore preset registers as the registers are lost since VDD core has been shut down when entering deepest state on the SAMA5D2. The clocks need to be

[PATCH v3 1/2] mmc: sdhci-of-at91: factor out clks and presets setting

2017-07-13 Thread Quentin Schulz
The setting of clocks and presets is currently done in probe only but once deep PM support is added, it'll be needed in the resume function. Let's create a function for this setting. Signed-off-by: Quentin Schulz Acked-by: Ludovic Desroches Acked-by: Adrian Hunter --- drivers/mmc/host/sdhci-o

Re: [PATCH] mfd: intel_soc_pmic_chtwc: Turn Kconfig option into a bool

2017-07-13 Thread Lee Jones
On Fri, 23 Jun 2017, Hans de Goede wrote: > The PMIC provides ACPI OpRegions which must be available for other > drivers' PS0 / PS3 methods early-on as such it must be builtin as the > Kconfig help text already states. > > Somehow its Kconfig option ended up being a tristate though, this fixes >

Re: [PATCH] arm64: dts: ls1012a: add USB host controller nodes

2017-07-13 Thread Shawn Guo
On Wed, Jul 05, 2017 at 10:54:03AM +0800, Ran Wang wrote: > LS1012A has one USB 3.0(DWC3) controller and > one USB 2.0 controller. > > Signed-off-by: Ran Wang > --- > arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 17 + > 1 file changed, 17 insertions(+) > > diff --git a/arch/

Re: [PATCH v3 0/7] Enhance libsas hotplug feature

2017-07-13 Thread John Garry
On 13/07/2017 02:37, wangyijing wrote: > So much nicer. BTW, /dev/sdb is a SATA disk, the rest are SAS. Oh, I take a mistake ? The result you tested the hotplug which applied this patchset is fine ? Thanks! Yijing. Well basic hotplug is fine, as below. I did not do any robust testing. root@

Re: [GIT PULL] Please pull JSON files for Power9 PMU events

2017-07-13 Thread Jiri Olsa
On Thu, Jul 13, 2017 at 01:43:41PM +1000, Michael Ellerman wrote: > Sukadev Bhattiprolu writes: > ... > > > > tools/perf/pmu-events/arch/powerpc/mapfile.csv | 3 + > > .../perf/pmu-events/arch/powerpc/power9/cache.json | 176 + > > .../arch/powerpc/power9/floating-point.json| 4

[PATCH] libata: remove unused rc in ata_eh_handle_port_resume

2017-07-13 Thread Kefeng Wang
Remove unused variable ‘rc’. Signed-off-by: Kefeng Wang --- drivers/ata/libata-eh.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c index b70bcf6..7d79d20 100644 --- a/drivers/ata/libata-eh.c +++ b/drivers/ata/libata-eh.c @@

Re: [PATCH v7 06/16] lockdep: Detect and handle hist_lock ring buffer overwrite

2017-07-13 Thread Peter Zijlstra
On Thu, Jul 13, 2017 at 11:07:45AM +0900, Byungchul Park wrote: > Does my approach have problems, rewinding to 'original idx' on exit and > deciding whether overwrite or not? I think, this way, no need to do the > drastic work. Or.. does my one get more overhead in usual case? So I think that inva

Re: [PATCH v3] backlight: lm3630a: bump REG_MAX value to 0x50 instead of 0x1F

2017-07-13 Thread Lee Jones
On Fri, 23 Jun 2017, Bhushan Shah wrote: > In the lm3630a_chip_init we try to write to 0x50 register, which is > higher value then the max_register value, this resulted in regmap_write > return -EIO. > > Fix this by bumping REG_MAX value to 0x50. > > This code was introduced with the chip revisi

Re: [PATCH] um: Re-enable verbose panic()

2017-07-13 Thread kbuild test robot
Hi Richard, [auto build test WARNING on uml/linux-next] [also build test WARNING on v4.12 next-20170713] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Richard-Weinberger/um-Re-enable-verbose

[PATCH 00/12] staging: ccree: coding style fixes

2017-07-13 Thread Gilad Ben-Yossef
Another batch of ccree coding style fixes. These goes on top of commit a8c4ae12 ("staging: ccree: Fix alignment issues in ssi_sysfs.c") in staging-testing. Gilad Ben-Yossef (12): staging: ccree remove unnecessary parentheses staging: ccree: clean up struct ssi_aead_ctx staging: ccree: use

[PATCH 06/12] staging: ccree: CamelCase to snake_case in func vars

2017-07-13 Thread Gilad Ben-Yossef
Turn local vars and function parameters names in CamelCase to snake_case. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_aead.c | 26 +- drivers/staging/ccree/ssi_buffer_mgr.c | 15 --- drivers/staging/ccree/ssi_hash.c | 29 +

[PATCH 03/12] staging: ccree: use proper printk format for dma_addr_t

2017-07-13 Thread Gilad Ben-Yossef
Fix needless casting to unsigned long long in printk for DMA addresses by using proper %pad format. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_aead.c| 16 drivers/staging/ccree/ssi_buffer_mgr.c | 48 drivers/staging/ccree/ssi_cipher.c

[PATCH 04/12] staging: ccree: fix parenthesis alignment

2017-07-13 Thread Gilad Ben-Yossef
Fix various remaining parenthesis alignment issues. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_aead.c| 46 + drivers/staging/ccree/ssi_buffer_mgr.c | 30 ++- drivers/staging/ccree/ssi_cipher.c | 2 +- drivers/staging/ccree/ssi_hash.c

[PATCH 02/12] staging: ccree: clean up struct ssi_aead_ctx

2017-07-13 Thread Gilad Ben-Yossef
struct ssi_aead_ctx has some nested structure defined, resulting in code accessing them to be very unreadable. Move out the nested structure definitions out of the struct and use the change to make the code accessing it more readable and better coding style compliant by shortening lines and proper

[PATCH 01/12] staging: ccree remove unnecessary parentheses

2017-07-13 Thread Gilad Ben-Yossef
Remove unnecessary parentheses from ccree driver code. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_aead.c| 4 ++-- drivers/staging/ccree/ssi_buffer_mgr.c | 8 drivers/staging/ccree/ssi_driver.c | 2 +- drivers/staging/ccree/ssi_ivgen.c | 2 +- drive

[PATCH 11/12] staging: ccree: kmalloc by sizeof var not type

2017-07-13 Thread Gilad Ben-Yossef
Change places where we alloc memory by sizeof type to sizeof var. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_aead.c| 4 ++-- drivers/staging/ccree/ssi_cipher.c | 4 ++-- drivers/staging/ccree/ssi_driver.c | 2 +- drivers/staging/ccree/ssi_hash.c| 4 ++

[PATCH 10/12] staging: ccree: remove func name from log messages

2017-07-13 Thread Gilad Ben-Yossef
The SSI_LOG macros already add __func__ to log messages, so remove log message that add them a second time in the log message itself. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_aead.c | 4 ++-- drivers/staging/ccree/ssi_cipher.c | 14 +++--- drivers/staging/ccree/ss

[PATCH 09/12] staging: ccree: avoid unnecessary line continuation

2017-07-13 Thread Gilad Ben-Yossef
Avoid unnecessary line continuation in log function call. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_aead.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/ccree/ssi_aead.c b/drivers/staging/ccree/ssi_aead.c index 8a1c408..c6edef0 10064

[PATCH 12/12] staging: ccree: remove whitespace before a quoted newline

2017-07-13 Thread Gilad Ben-Yossef
Remove unnecessary whitespace before a quoted newline in strings. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_cipher.c | 6 +++--- drivers/staging/ccree/ssi_hash.c | 2 +- drivers/staging/ccree/ssi_sysfs.c | 10 +- 3 files changed, 9 insertions(+), 9 deletions(-)

[PATCH 07/12] staging: ccree: CamelCase to snake_case in aead struct

2017-07-13 Thread Gilad Ben-Yossef
Rename aead_req_struct fields from CamelCase to snake_case. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_aead.c | 26 ++-- drivers/staging/ccree/ssi_aead.h | 12 +++--- drivers/staging/ccree/ssi_buffer_mgr.c | 78 +- 3 files ch

[PATCH 05/12] staging: ccree: fix split strings

2017-07-13 Thread Gilad Ben-Yossef
Fix strings in log messages being split across lines and the resulting alignment issues when being fixed. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_aead.c| 9 ++-- drivers/staging/ccree/ssi_buffer_mgr.c | 86 ++--- drivers/staging/ccree/s

[PATCH 08/12] staging: ccree: avoid constant comparison

2017-07-13 Thread Gilad Ben-Yossef
Re-write predicate to avoid constant comparison. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_aead.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/ccree/ssi_aead.c b/drivers/staging/ccree/ssi_aead.c index dab4914..8a1c408 100644 --- a/driver

Re: [PATCH v3 7/9] vfio: Use driver_override to avert binding to compromising drivers

2017-07-13 Thread Greg KH
On Tue, Jul 11, 2017 at 10:41:16AM -0600, Alex Williamson wrote: > Let me give a concrete scenario, I have a dual-port conventional PCI > e1000 NIC. The IOMMU operates on PCIe requester IDs and therefore both > NIC functions are masked behind the requester ID of a PCIe-to-PCI > bridge. We cannot

Re: [PATCH v12 6/8] mm: support reporting free page blocks

2017-07-13 Thread Wei Wang
On 07/13/2017 08:33 AM, Michael S. Tsirkin wrote: On Wed, Jul 12, 2017 at 08:40:19PM +0800, Wei Wang wrote: This patch adds support for reporting blocks of pages on the free list specified by the caller. As pages can leave the free list during this call or immediately afterwards, they are not g

Re: [PATCH 0/2] Workaround for uPD72020x USB3 chips

2017-07-13 Thread Greg Kroah-Hartman
On Wed, Jul 12, 2017 at 10:12:34PM -0500, Bjorn Helgaas wrote: > On Mon, Jul 10, 2017 at 04:52:28PM +0100, Marc Zyngier wrote: > > Ard and myself have just spent quite some time lately trying to pin > > down an issue in the DMA code which was taking the form of a PCIe USB3 > > controller issuing a

[PATCH] crypto: brcm - Support more FlexRM rings than SPU engines.

2017-07-13 Thread Raveendra Padasalagi
Enhance code to generically support cases where DMA rings are greater than or equal to number of SPU engines. New hardware has underlying DMA engine-FlexRM with 32 rings which can be used to communicate to any of the available 10 SPU engines. Fixes: 9d12ba86f818 ("crypto: brcm - Add Broadcom SPU d

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

2017-07-13 Thread Peter Zijlstra
On Wed, Jul 12, 2017 at 11:46:17AM -0700, Paul E. McKenney wrote: > So please let me know if rcu_needs_cpu() or rcu_prepare_for_idle() are > prominent contributors to to-idle latency. Right, some actual data would be good.

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

2017-07-13 Thread Peter Zijlstra
On Wed, Jul 12, 2017 at 02:32:40PM -0700, Andi Kleen wrote: > On Wed, Jul 12, 2017 at 10:34:10AM +0200, Peter Zijlstra wrote: > > On Wed, Jul 12, 2017 at 12:15:08PM +0800, Li, Aubrey wrote: > > > Okay, the difference is that Mike's patch uses a very simple algorithm to > > > make the decision. > >

Re: [virtio-dev] Re: [PATCH v12 7/8] mm: export symbol of next_zone and first_online_pgdat

2017-07-13 Thread Wei Wang
On 07/13/2017 08:16 AM, Michael S. Tsirkin wrote: On Wed, Jul 12, 2017 at 08:40:20PM +0800, Wei Wang wrote: This patch enables for_each_zone()/for_each_populated_zone() to be invoked by a kernel module. ... for use by virtio balloon. With this patch, other kernel modules can also use the for_

Re: [PATCH v3 0/7] Enhance libsas hotplug feature

2017-07-13 Thread wangyijing
在 2017/7/13 16:08, John Garry 写道: > On 13/07/2017 02:37, wangyijing wrote: >>> > So much nicer. BTW, /dev/sdb is a SATA disk, the rest are SAS. >> Oh, I take a mistake ? The result you tested the hotplug which applied this >> patchset is fine ? >> >> Thanks! >> Yijing. > > Well basic hotplug is

Re: [PATCH v12 8/8] virtio-balloon: VIRTIO_BALLOON_F_CMD_VQ

2017-07-13 Thread Wei Wang
On 07/13/2017 08:22 AM, Michael S. Tsirkin wrote: On Wed, Jul 12, 2017 at 08:40:21PM +0800, Wei Wang wrote: Add a new vq, cmdq, to handle requests between the device and driver. This patch implements two commands sent from the device and handled in the driver. 1) VIRTIO_BALLOON_CMDQ_REPORT_STAT

RE: [PATCH] arm64: dts: ls1012a: add USB host controller nodes

2017-07-13 Thread Ran Wang
> -Original Message- > From: Shawn Guo [mailto:shawn...@kernel.org] > Sent: Thursday, July 13, 2017 4:07 PM > To: Ran Wang > Cc: Rob Herring ; Mark Rutland > ; Catalin Marinas ; Will > Deacon ; Andy Tang ; Harninder > Rai ; Horia Geantă ; open > list:OPEN FIRMWARE AND FLATTENED DEVICE TREE

Re: [PATCH v2 02/10] cpufreq: provide data for frequency-invariant load-tracking support

2017-07-13 Thread Viresh Kumar
On 13-07-17, 01:13, Rafael J. Wysocki wrote: > On Wednesday, July 12, 2017 01:14:26 PM Peter Zijlstra wrote: > > On Wed, Jul 12, 2017 at 02:57:55PM +0530, Viresh Kumar wrote: > > > IIUC, it will take more time to change the frequency eventually with > > > the interrupt-driven state machine as ther

Re: [PATCH v3 00/10] x86: ORC unwinder (previously undwarf)

2017-07-13 Thread Peter Zijlstra
On Thu, Jul 13, 2017 at 09:12:53AM +0200, Peter Zijlstra wrote: > On Wed, Jul 12, 2017 at 05:32:25PM -0500, Josh Poimboeuf wrote: > > If you want perf to be able to use ORC instead of DWARF for user space > > binaries, that's not currently possible, though I don't see any > > technical blockers for

Re: [PATCH v3 00/10] x86: ORC unwinder (previously undwarf)

2017-07-13 Thread Peter Zijlstra
On Thu, Jul 13, 2017 at 10:50:15AM +0200, Peter Zijlstra wrote: > On Thu, Jul 13, 2017 at 09:12:53AM +0200, Peter Zijlstra wrote: > > On Wed, Jul 12, 2017 at 05:32:25PM -0500, Josh Poimboeuf wrote: > > > If you want perf to be able to use ORC instead of DWARF for user space > > > binaries, that's n

Re: PM / Suspend: Print wall time at suspend entry and exit

2017-07-13 Thread Pavel Machek
Hi! > >And userspace should not really be parsing kernel logs for time > >keeping, right? > Post-mortem, armed with user space logs in CLOCK_REALTIME (a choice that > most want on Android Logging) and kernel logs, these messages are > _invaluable_ in order to merge the kernel activities with user

Re: [PATCH] selftests: cpufreq: Check cpuinfo_cur_freq set as expected

2017-07-13 Thread Viresh Kumar
On 12-07-17, 14:29, Leonard Crestez wrote: > This checks that the cpufreq driver actually sets the requested > frequency. > > Signed-off-by: Leonard Crestez > > --- > > I've been looking at using kselftests for imx. This patch exposes an > issue with the imx6 cpufreq driver on imx6sx where freq

Re: [PATCH] arm64: dts: ls1012a: add USB host controller nodes

2017-07-13 Thread Shawn Guo
On Thu, Jul 13, 2017 at 08:46:50AM +, Ran Wang wrote: > > > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi > > > b/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi > > > index b497ac1..8aa2dcf 100644 > > > --- a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi > > > +++ b/arch/arm64/bo

Re: [PATCH v7 06/16] lockdep: Detect and handle hist_lock ring buffer overwrite

2017-07-13 Thread Byungchul Park
On Thu, Jul 13, 2017 at 10:14:42AM +0200, Peter Zijlstra wrote: > On Thu, Jul 13, 2017 at 11:07:45AM +0900, Byungchul Park wrote: > > Does my approach have problems, rewinding to 'original idx' on exit and > > deciding whether overwrite or not? I think, this way, no need to do the > > drastic work.

[GIT PULL] RTC for 4.13

2017-07-13 Thread Alexandre Belloni
Hi Linus, Here is the pull-request for the RTC subsystem for 4.13. The following changes since commit 2ea659a9ef488125eb46da6eb571de5eae5c43f6: Linux 4.12-rc1 (2017-05-13 13:19:49 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.gi

[PATCH] mfd: Add missing Kconfig dependency for TPS65086

2017-07-13 Thread Michal Simek
MTF_CORE should be enabled when driver is enabled. Signed-off-by: Michal Simek --- drivers/mfd/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig index 94ad2c1c3d90..f98b5a6d4da8 100644 --- a/drivers/mfd/Kconfig +++ b/drivers/mfd/Kconfig @@ -12

[PATCH 2/2] pinctrl: zynq: Fix warnings in the driver

2017-07-13 Thread Michal Simek
From: Nava kishore Manne This patch fixes the below warning --> Prefer 'unsigned int' to bare use of 'unsigned'. --> line over 80 characters. --> Prefer 'unsigned int **' to bare use of 'unsigned **'. Signed-off-by: Nava kishore Manne Signed-off-by: Michal Simek --- d

[PATCH 1/2] pinctrl: zynq: Fix kernel doc warnings

2017-07-13 Thread Michal Simek
From: Nava kishore Manne This patch fixes the kernel doc warnings in the driver. Signed-off-by: Nava kishore Manne Signed-off-by: Michal Simek --- drivers/pinctrl/pinctrl-zynq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-zynq.c b/drivers/pinct

[PATCH] cpufreq: dt: Add zynqmp to the cpufreq dt platdev

2017-07-13 Thread Michal Simek
From: Shubhrajyoti Datta Add zynqmp to the cpufreq dt platform device. Signed-off-by: Shubhrajyoti Datta Signed-off-by: Michal Simek --- drivers/cpufreq/cpufreq-dt-platdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt

Re: [PATCH v3 00/10] x86: ORC unwinder (previously undwarf)

2017-07-13 Thread Ingo Molnar
* Peter Zijlstra wrote: > > One gloriously ugly hack would be to delay the userspace unwind to > > return-to-userspace, at which point we have a schedulable context and can > > take > > faults. I don't think it's ugly, and it has various advantages: > > Of course, then you have to somehow i

Re: [PATCH] cpufreq: dt: Add zynqmp to the cpufreq dt platdev

2017-07-13 Thread Viresh Kumar
On 13-07-17, 11:19, Michal Simek wrote: > From: Shubhrajyoti Datta > > Add zynqmp to the cpufreq dt platform device. > > Signed-off-by: Shubhrajyoti Datta > Signed-off-by: Michal Simek > --- > > drivers/cpufreq/cpufreq-dt-platdev.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/dr

[PATCH v2] crypto: caam - free qman_fq after kill_fq

2017-07-13 Thread Xulin Sun
kill_fq removes a complete frame queue, it needs to free the qman_fq in the last. Else kmemleak will report the below warning: unreferenced object 0x800073085c80 (size 128): comm "cryptomgr_test", pid 199, jiffies 4294937850 (age 67.840s) hex dump (first 32 bytes): 00 00 00 00 00 00 00

Re: [PATCH] bpf: fix return in bpf_skb_adjust_net

2017-07-13 Thread Daniel Borkmann
On 07/13/2017 08:27 AM, Kefeng Wang wrote: The bpf_skb_adjust_net() ignores the return value of bpf_skb_net_shrink/grow, and always return 0, fix it by return 'ret'. Signed-off-by: Kefeng Wang Sigh, yep of course. Thanks! Acked-by: Daniel Borkmann

[PATCH net] xgene: Don't fail probe, if there is no clk resource for SGMII interfaces

2017-07-13 Thread Thomas Bogendoerfer
From: Thomas Bogendoerfer This change fixes following problem [1.827940] xgene-enet: probe of 1f210030.ethernet failed with error -2 which leads to a missing ethernet interface (reproducable at least on Gigabyte MP30-AR0 and APM Mustang systems). The check for a valid clk resource fails, b

  1   2   3   4   5   6   7   8   9   >