RE: [RFC PATCH 3/3] sdhci: arasan: Add support to read Tap Delay values from DT

2018-07-20 Thread Manish Narani
Hi Uffe, > -Original Message- > From: Ulf Hansson [mailto:ulf.hans...@linaro.org] > Sent: Tuesday, July 10, 2018 2:02 PM > To: Manish Narani > Cc: Rob Herring ; Mark Rutland > ; Catalin Marinas ; Will > Deacon ; Moritz Fischer ; > stefan.krsmano...@aggios.com; Linux ARM

Re: [PATCH] ARM64: smp: Fix cpu_up() racing with sys_reboot

2018-07-20 Thread Mark Rutland
On Thu, Jul 19, 2018 at 03:18:46PM -0700, Venkata Narendra Kumar Gutta wrote: > Nothing stops a process from hotplugging in a CPU concurrently > with a sys_reboot() call. In such a situation we could have > ipi_cpu_stop() mark a cpu as 'offline' and _cpu_up() ignore the > fact that the CPU is not

Re: [PATCH v3 28/33] mtd: rawnand: docg4: convert driver to nand_scan()

2018-07-20 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Fri, 20 Jul 2018 01:27:32 +0200: > On Fri, 20 Jul 2018 01:00:21 +0200 > Miquel Raynal wrote: > > > Two helpers have been added to the core to make ECC-related > > configuration between the detection phase and the final NAND scan. Use > > these hooks and

[PATCH] pwm: stm32-lp: Remove useless loop in stm32_pwm_lp_remove()

2018-07-20 Thread Fabrice Gasnier
LPTimer has only one pwm channel (npwm = 1). Remove useless for loop in remove routine. Signed-off-by: Fabrice Gasnier --- drivers/pwm/pwm-stm32-lp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pwm/pwm-stm32-lp.c b/drivers/pwm/pwm-stm32-lp.c index

UBSAN: Undefined behaviour in arch/x86/events/amd/ibs.c:582:24: member access within null pointer of type 'struct perf_event'

2018-07-20 Thread Paul Menzel
Dear Linux folks, Enabling the undefined behavior sanitizer and building GNU/Linux 4.18-rc5+ (with some unrelated commits) with GCC 8.1.0 from Debian Sid/unstable, the warning below is shown. [2.111913] [

[PATCH v4 07/11] kbuild: use 'include' directive to load auto.conf from top Makefile

2018-07-20 Thread Masahiro Yamada
When you build targets that require the kernel configuration, dot-config is set to 1, then the top-level Makefile includes auto.conf. However, Make considers its inclusion is optional because the '-include' directive is used here. If a necessary configuration file is missing for the external

Re: [PATCH v1] memory: tegra: Don't invoke Tegra30+ specific memory timing setup on Tegra20

2018-07-20 Thread Jon Hunter
On 19/07/18 16:38, Dmitry Osipenko wrote: > On Thursday, 19 July 2018 18:30:48 MSK Jon Hunter wrote: >> On 19/07/18 14:24, Dmitry Osipenko wrote: >>> This fixes irrelevant "tegra-mc 7000f000.memory-controller: no memory >>> timings for RAM code 0 registered" warning message during of kernels >>>

[GIT PULL] ARM: at91: SoC for 4.19

2018-07-20 Thread Alexandre Belloni
Arnd, Olof, Here is the SoC PR for 4.19. It is a cleanup of pm.c and the addition of a new low power mode. The following changes since commit ce397d215ccd07b8ae3f71db689aedb85d56ab40: Linux 4.18-rc1 (2018-06-17 08:04:49 +0900) are available in the Git repository at:

[PATCH 1/2] clk: uniphier: add NAND 200MHz clock

2018-07-20 Thread Masahiro Yamada
The Denali NAND controller IP needs three clocks: - clk: controller core clock - clk_x: bus interface clock - ecc_clk: clock at which ECC circuitry is run Currently, only the first one (50MHz) is provided. The rest of the two clock ports must be connected to the 200MHz clock line. Add

[PATCH 2/2] clk: uniphier: add more USB3 PHY clocks

2018-07-20 Thread Masahiro Yamada
Add USB3 PHY clocks where missing. Use fixed-factor clocks for those without gating. For clarification, prefix clock names with 'ss' or 'hs'. Signed-off-by: Masahiro Yamada --- drivers/clk/uniphier/clk-uniphier-sys.c | 26 +- 1 file changed, 17 insertions(+), 9

Re: [PATCH V2 0/4] Fix kvm misconceives NVDIMM pages as reserved mmio

2018-07-20 Thread Zhang,Yi
Thanks Paolo, let's wait Jan 's comments. Thank you, Paolo. Regards Yi On 2018年07月20日 16:32, Paolo Bonzini wrote: > On 20/07/2018 16:11, Zhang,Yi wrote: >> Added Jiang,Dave, >> >> Ping for further review, comments. > I need an Acked-by from the MM people to merge this. Jan, Dan? > > Paolo > >>

Re: [PATCH v2 09/10] coresight: perf: Remove set_buffer call back

2018-07-20 Thread Suzuki K Poulose
Mathieu, On 19/07/18 21:36, Mathieu Poirier wrote: On Tue, Jul 17, 2018 at 06:11:40PM +0100, Suzuki K Poulose wrote: In coresight perf mode, we need to prepare the sink before starting a session, which is done via set_buffer call back. We then proceed to enable the tracing. If we fail to start

Ihre Position

2018-07-20 Thread Martin Schoch
Sehr geehrte Damen und Herren, Nach der Analyse Ihrer Internetseite haben wir Fehler im Code ermittelt, die einen groβen Einfluss darauf haben, dass Ihre Webseite eine niedrige Position in den Suchmaschinen, darunter auch in der wichtigsten, d. h. auf Google, einnimmt. Wir bieten Ihnen die

Re: [PATCH v3 2/6] KVM: X86: Implement PV IPIs in linux guest

2018-07-20 Thread Radim Krcmar
2018-07-20 11:33+0800, Wanpeng Li: > On Fri, 20 Jul 2018 at 00:28, Radim Krčmář wrote: > > 2018-07-03 14:21+0800, Wanpeng Li: > > But because it is very similar to x2apic, I'd really need some real > > performance data to see if this benefits a real workload. > > Thanks for your review, Radim!

Re: [PATCH v2 3/5] mm/page_alloc: Optimize free_area_init_core

2018-07-20 Thread Oscar Salvador
On Thu, Jul 19, 2018 at 10:52:35PM +0200, Oscar Salvador wrote: > On Thu, Jul 19, 2018 at 05:15:55PM +0200, Michal Hocko wrote: > > Your changelog doesn't really explain the motivation. Does the change > > help performance? Is this a pure cleanup? > > Hi Michal, > > Sorry to not have explained

Re: [PATCH] apparmor: remove redundant pointer 'info'

2018-07-20 Thread John Johansen
On 07/14/2018 09:19 AM, Colin King wrote: > From: Colin Ian King > > Pointer 'info' is being assigned but is never used hence it is > redundant and can be removed. > > Cleans up clang warning: > warning: variable 'info' set but not used [-Wunused-but-set-variable] > NAK, real problem wrong

[PATCH] fs/seq_file: remove kmalloc(ops) for single_open seqfiles

2018-07-20 Thread Vlastimil Babka
single_open() currently allocates seq_operations with kmalloc(). This is suboptimal, because that's four pointers, of which three are constant, and only the 'show' op differs. We also have to be careful to use single_release() to avoid leaking the ops structure. Instead of this we can have a

Re: [PATCH] fs: iomap: Change return type to vm_fault_t

2018-07-20 Thread Souptick Joarder
On Fri, Jul 20, 2018 at 11:39 AM, Darrick J. Wong wrote: > On Fri, Jul 20, 2018 at 10:31:30AM +0530, Souptick Joarder wrote: >> On Wed, Jul 4, 2018 at 3:22 AM, Andreas Gruenbacher >> wrote: >> > On 3 July 2018 at 23:39, Darrick J. Wong wrote: >> >> On Mon, Jul 02, 2018 at 07:52:41PM +0200,

[RESEND PATCH] Revert "pwm: Set class for exported channels in sysfs"

2018-07-20 Thread Fabrice Gasnier
This reverts commit 7e5d1fd75c3dde9fc10c4472b9368089d1b81d00 as it causes regression with multiple pwm chip. It creates a new entry in '/sys/class/pwm' every time a 'pwmX' is exported with 'echo X > export': - 1st time export will create an entry in /sys/class/pwm/pwmX - when another export

[GIT PULL] ACPI fix for v4.18-rc6

2018-07-20 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ acpi-4.18-rc6 with top-most commit 2c4d6baf1bc4f7729773ffcee9ba2a9781578633 ACPI / EC: Use ec_no_wakeup on more Thinkpad X1 Carbon 6th systems on top of commit

Re: [PATCH 4/7] x86,tlb: make lazy TLB mode lazier

2018-07-20 Thread Vitaly Kuznetsov
Andy Lutomirski writes: > [I added PeterZ and Vitaly -- can you see any way in which this would > break something obscure? I don't.] Thanks for CCing me, I don't see how this can break things either. At first glance, however, I'm afraid we can add performance penalty to virtualized guests

Re: [PATCH] pinctrl: tegra: fix spelling in devicetree binding document

2018-07-20 Thread Marcel Ziswiler
On Fri, 2018-07-20 at 09:12 +0100, Jon Hunter wrote: > On 20/07/18 08:52, Marcel Ziswiler wrote: > > From: Marcel Ziswiler > > > > This fixes a spelling mistake. > > > > Signed-off-by: Marcel Ziswiler > > > > --- > > > > Documentation/devicetree/bindings/pinctrl/nvidia,tegra124- > >

Re: [PATCH 0/5] dmaengine: mv_xor_v2: fixes and alignment for XOR-v2 driver

2018-07-20 Thread Vinod
On 17-07-18, 13:29, han...@marvell.com wrote: > From: Hanna Hawa > > This series bring some minor fixes & alignmnet to the driver of > Marvell XOR-v2 engine. Applied after fixing typo is 3rd patch, thanks -- ~Vinod

Re: [PATCH 4/7] x86,tlb: make lazy TLB mode lazier

2018-07-20 Thread Peter Zijlstra
On Thu, Jul 19, 2018 at 09:45:47AM -0700, Andy Lutomirski wrote: > After some grepping, there are very few users. The > only nontrivial ones are the ones in kernel/ and mm/mmu_context.c that > are involved in the rather complicated dance of refcounting active_mm. Something like so should work I

Re: [PATCH v3 1/7] mm, slab: combine kmalloc_caches and kmalloc_dma_caches

2018-07-20 Thread Vlastimil Babka
On 07/19/2018 10:10 AM, Mel Gorman wrote: > On Wed, Jul 18, 2018 at 03:36:14PM +0200, Vlastimil Babka wrote: >> The kmalloc caches currently mainain separate (optional) array >> kmalloc_dma_caches for __GFP_DMA allocations. There are tests for __GFP_DMA >> in >> the allocation hotpaths. We can

Re: [PATCH 4/7] x86,tlb: make lazy TLB mode lazier

2018-07-20 Thread Vitaly Kuznetsov
Peter Zijlstra writes: > On Fri, Jul 20, 2018 at 10:02:10AM +0200, Vitaly Kuznetsov wrote: >> Andy Lutomirski writes: >> >> > [I added PeterZ and Vitaly -- can you see any way in which this would >> > break something obscure? I don't.] >> >> Thanks for CCing me, >> >> I don't see how this

[PATCHv3 4/4] perf tools: Fix struct comm_str removal crash

2018-07-20 Thread Jiri Olsa
On Fri, Jul 20, 2018 at 10:20:55AM +0900, Namhyung Kim wrote: > Hi Arnaldo, > > On Thu, Jul 19, 2018 at 03:31:14PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Thu, Jul 19, 2018 at 03:28:43PM -0300, Arnaldo Carvalho de Melo escreveu: > > > Em Thu, Jul 19, 2018 at 04:33:45PM +0200, Jiri Olsa

Re: [PATCH v3 2/6] KVM: X86: Implement PV IPIs in linux guest

2018-07-20 Thread Wanpeng Li
On Fri, 20 Jul 2018 at 17:51, Radim Krcmar wrote: > > 2018-07-20 11:33+0800, Wanpeng Li: > > On Fri, 20 Jul 2018 at 00:28, Radim Krčmář wrote: > > > 2018-07-03 14:21+0800, Wanpeng Li: > > > But because it is very similar to x2apic, I'd really need some real > > > performance data to see if this

Hello..

2018-07-20 Thread Mr. Michael Kobina
>From The Regional Manager!, best regards!, How are you doing including your family, hope all is well? My purpose of contacting you is to crave your indulgence to assist me in securing some funds abroad. (US$7,500,000.00 ) I am writing you this proposal in good faith, believing that I can

Re: [PATCH v4 1/4] rtc: omap: Cut down the shutdown time from 2 seconds to 1 sec

2018-07-20 Thread Keerthy
On Thursday 19 July 2018 06:16 PM, Keerthy wrote: > > > On Thursday 19 July 2018 06:06 PM, Johan Hovold wrote: >> On Thu, Jul 19, 2018 at 05:52:17PM +0530, Keerthy wrote: >>> On Thursday 19 July 2018 05:23 PM, Keerthy wrote: On Thursday 19 July 2018 03:32 PM, Johan Hovold wrote: > On

[PATCH V1 0/3] Internal voltage control for platform drivers

2018-07-20 Thread Vijay Viswanath
Certain SDHC controllers may require that voltage switching happen after sepcial conditions. Added a QUIRK for such controllers to use. For SDHCI-MSM controllers, power irq is a signal from controller to SW that it is ready for voltage switch. So added support to register voltage regulators from

[PATCH V1 1/3] mmc: sdhci: Allow platform controlled voltage switching

2018-07-20 Thread Vijay Viswanath
Some controllers can have internal mechanism to inform the SW that it is ready for voltage switching. For such controllers, changing voltage before the HW is ready can result in various issues. During setup/cleanup of host, check whether regulator enable/disable was already done by platform

[PATCH V1 3/3] mmc: sdhci-msm: Use internal voltage control

2018-07-20 Thread Vijay Viswanath
Some sdhci-msm controllers require that voltage switching be done after the HW is ready for it. The HW informs its readiness through power irq. The voltage switching should happen only then. Use the quirk for internal voltage switching and then control the voltage switching using power irq.

[PATCH V1 2/3] Documentation: sdhci-msm: Add entries for passing load values

2018-07-20 Thread Vijay Viswanath
The load a particular sdhc controller should request from a regulator is device specific and hence each device should individually vote for the required load. Signed-off-by: Vijay Viswanath --- Documentation/devicetree/bindings/mmc/sdhci-msm.txt | 6 ++ 1 file changed, 6 insertions(+) diff

Re: [PATCHv2 1/2] arm64: Add stack information to on_accessible_stack

2018-07-20 Thread Mark Rutland
On Thu, Jul 19, 2018 at 04:28:05PM -0700, Laura Abbott wrote: > > In preparation for enabling the stackleak plugin on arm64, > we need a way to get the bounds of the current stack. Extend > on_accessible_stack to get this information. > > Signed-off-by: Laura Abbott > --- > v2: Switched to

[PATCH] ASoC: AMD: Add a fix voltage regulator for DA7219 and ADAU7002

2018-07-20 Thread Akshu Agrawal
DA7219 for our platform need to be configured for 1.8V. Hence, we add a fixed volatge regulator with supplies of 1.8V in the machine driver. Signed-off-by: Akshu Agrawal --- sound/soc/amd/Kconfig| 2 ++ sound/soc/amd/acp-da7219-max98357a.c | 45

Re: [PATCH v3] Optimize C3 entry on Centaur CPUs

2018-07-20 Thread Thomas Gleixner
On Tue, 29 May 2018, David Wang wrote: > For new Centaur CPUs the ucode will take care of the preservation of cache > coherence > between CPU cores in C-states regardless of how deep the C-states are. So, it > is not > necessary to flush the caches in software befor entering C3. > >

Re: [PATCH v3 01/33] mtd: rawnand: brcmnand: convert driver to nand_scan()

2018-07-20 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Fri, 20 Jul 2018 01:17:19 +0200: > On Fri, 20 Jul 2018 00:59:54 +0200 > Miquel Raynal wrote: > > > + > > +static struct nand_controller_ops brcmnand_controller_ops = { > > static const ... Mmmh right, I'll constify every controller_ops definition. > >

[PATCH] ARM: dts: spear: fix stmpe811 interrupt properties

2018-07-20 Thread Marcel Ziswiler
From: Marcel Ziswiler The property "irq-over-gpio" simply does not exist (this is nowadays actually auto detected) and the property "irq-gpios" is actually called "irq-gpios". Signed-off-by: Marcel Ziswiler --- arch/arm/boot/dts/spear320-hmi.dts | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH] clk: tegra: probe deferral error reporting

2018-07-20 Thread Marcel Ziswiler
From: Marcel Ziswiler Actually report the error code from devm_regulator_get() which may as well just be a probe deferral. Signed-off-by: Marcel Ziswiler --- drivers/clk/tegra/clk-dfll.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/clk/tegra/clk-dfll.c

Re: [PATCH 00/39 v8] PTI support for x86-32

2018-07-20 Thread Joerg Roedel
Hi Thomas, On Fri, Jul 20, 2018 at 01:21:33AM +0200, Thomas Gleixner wrote: > On Wed, 18 Jul 2018, Joerg Roedel wrote: > > > > here is version 8 of my patches to enable PTI on x86-32. The > > last version got some good review which I mostly worked into > > this version. > > I went over the

[PATCH] gpiolib: probe deferral error reporting

2018-07-20 Thread Marcel Ziswiler
From: Marcel Ziswiler Actually report the error code from devm_regulator_get() which may as well just be a probe deferral. This is e.g. what one gets upon booting a Colibri T20: gpiochip_add_data_with_key: GPIOs 0..223 (tegra-gpio) failed to register Signed-off-by: Marcel Ziswiler ---

Re: [PATCH] ASoC: wm9712: fix replace codec to component

2018-07-20 Thread Kuninori Morimoto
Hi Marcel > From: Marcel Ziswiler > > Since commit 143b44845d87 ("ASoC: wm9712: replace codec to component") > "wm9712-codec" got renamed to "wm9712-component", however, this change > never got propagated down to the actual board/platform drivers. E.g. on > Colibri T20 this lead to the

Re: [PATCH 4/7] x86,tlb: make lazy TLB mode lazier

2018-07-20 Thread Peter Zijlstra
On Thu, Jul 19, 2018 at 10:04:09AM -0700, Andy Lutomirski wrote: > I added some more arch maintainers. The idea here is that, on x86 at > least, task->active_mm and all its refcounting is pure overhead. When > a process exits, __mmput() gets called, but the core kernel has a > longstanding

Re: [PATCH V3 0/4] KVM/x86/hyper-V: Introduce PV guest address space mapping flush support

2018-07-20 Thread Paolo Bonzini
On 20/07/2018 05:58, KY Srinivasan wrote: > > >> -Original Message- >> From: Tianyu Lan >> Sent: Thursday, July 19, 2018 1:40 AM >> Cc: Tianyu Lan ; de...@linuxdriverproject.org; >> Haiyang Zhang ; h...@zytor.com; >> k...@vger.kernel.org; KY Srinivasan ; linux- >> ker...@vger.kernel.org;

Re: UBSAN: Undefined behaviour in lib/radix-tree.c:123:14: member access within null pointer of type 'const struct radix_tree_node'

2018-07-20 Thread Mark Rutland
In-Reply-To: <19427cc3-3372-9b02-4b92-096fbe328...@molgen.mpg.de> On Fri, Jul 20, 2018 at 09:53:21AM +0200, Paul Menzel wrote: > Dear Linux folks, Hi, > Enabling the undefined behavior sanitizer and building GNU/Linux 4.18-rc5+ > (with some unrelated commits) with GCC 8.1.0 from Debian

Re: [patch v3] mm, oom: fix unnecessary killing of additional processes

2018-07-20 Thread David Rientjes
On Thu, 19 Jul 2018, Tetsuo Handa wrote: > Sigh... > > Nacked-by: Tetsuo Handa > > because David is not aware what is wrong. > Hmm, didn't you incorporate this exact patch into your own patch series that you proposed? :) I'm coming to this stark realization that all of these theater is

Re: [PATCH 1/2] security/keys/secure_key: Adds the secure key support based on CAAM.

2018-07-20 Thread Jan Lübbe
On Fri, 2018-07-20 at 11:16 +0530, Udit Agarwal wrote: > +== > +Secure Key > +== > + > +Secure key is the new type added to kernel key ring service. > +Secure key is a symmetric type key of minimum length 32 bytes > +and with maximum possible length to be 128 bytes. It is produced

[PATCH V3] sched/deadline: Update rq_clock of later_rq when pushing a task

2018-07-20 Thread Daniel Bristot de Oliveira
Daniel Casini got this warn while running a DL task here at RetisLab: [ 461.137582] [ cut here ] [ 461.137583] rq->clock_update_flags < RQCF_ACT_SKIP [ 461.137599] WARNING: CPU: 4 PID: 2354 at kernel/sched/sched.h:967

Re: [PATCH v3 2/7] mm, slab/slub: introduce kmalloc-reclaimable caches

2018-07-20 Thread Vlastimil Babka
On 07/19/2018 08:16 PM, Roman Gushchin wrote: >> is_dma = !!(flags & __GFP_DMA); >> #endif >> >> -return is_dma; >> +is_reclaimable = !!(flags & __GFP_RECLAIMABLE); >> + >> +/* >> + * If an allocation is botth __GFP_DMA and __GFP_RECLAIMABLE, return >

Re: [PATCH v3 1/4] x86/boot: Add acpitb.h to help parse acpi tables

2018-07-20 Thread Chao Fan
On Thu, Jul 19, 2018 at 05:19:43PM +0200, Thomas Gleixner wrote: >On Tue, 17 Jul 2018, Chao Fan wrote: > >> In order to parse ACPI tables, reuse the head file linux/acpi.h, >> so that the files in 'compressed' directory can read ACPI table >> by including this head file. >> >> Signed-off-by: Chao

[PATCH] livepatch: Validate module/old func name length

2018-07-20 Thread Kamalesh Babulal
livepatch module author can pass module name/old function name with more than the defined character limit. With obj->name length greater than MODULE_NAME_LEN, the livepatch module gets loaded but waits forever on the module specified by obj->name to be loaded. It also populates a /sys directory

Re: [PATCH v3 0/7] kmalloc-reclaimable caches

2018-07-20 Thread Vlastimil Babka
On 07/19/2018 09:53 PM, Roman Gushchin wrote: >> Vlastimil > Overall the patchset looks solid to me. > Please, feel free to add > Acked-by: Roman Gushchin Thanks! > Two small nits: > 1) The last patch is unrelated to the main idea, > and can potentially cause ABI breakage. Yes, that's why it's

Re: Enquiry on unbalanced memory throughput for dual-Cortex A9 core.

2018-07-20 Thread Russell King - ARM Linux
On Fri, Jul 20, 2018 at 08:49:47AM +, Ooi, Tzy Way wrote: > Hi Russell, > > I am trying the memory write operation with the LM benchmark test. I > tried to execute the memory write operation here > > twice to get both Cortex A9

Re: INFO: task hung in generic_file_write_iter

2018-07-20 Thread Tetsuo Handa
On 2018/07/18 19:28, Tetsuo Handa wrote: > There are many reports which are stalling inside __getblk_gfp(). Currently 18 reports out of 65 "INFO: task hung in " reports. INFO: task hung in aead_recvmsg INFO: task hung in inode_sleep_on_writeback INFO: task hung in __writeback_inodes_sb_nr

Re: [PATCH v3 0/4] Add basic support for Mediatek MT8183 SoC

2018-07-20 Thread Matthias Brugger
On 20/07/18 10:19, Erin Lo wrote: > On Mon, 2018-07-16 at 11:28 +0200, Matthias Brugger wrote: >> Hi Erin, >> >> On 17/05/18 08:22, Erin Lo wrote: >>> MT8183 is a SoC based on 64bit ARMv8 architecture. >>> It contains 4 CA53 and 4 CA73 cores. >>> MT8183 share many HW IP with MT65xx series. >>>

[PATCH v5 3/7] soc/tegra: pmc: Implement tegra_io_pad_is_powered()

2018-07-20 Thread Aapo Vienamo
Implement a function to query whether a pad is in deep power down mode. This will is needed by the pinctrl callbacks. Signed-off-by: Aapo Vienamo Acked-by: Jon Hunter --- drivers/soc/tegra/pmc.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/soc/tegra/pmc.c

[PATCH v5 4/7] soc/tegra: pmc: Use X macro to generate IO pad tables

2018-07-20 Thread Aapo Vienamo
Refactor the IO pad tables into macro tables so that they can be reused to generate pinctrl pin descriptors. Also add a name field which is needed by pinctrl. Signed-off-by: Aapo Vienamo --- drivers/soc/tegra/pmc.c | 233 ++-- 1 file changed, 127

[PATCH v5 2/7] soc/tegra: pmc: Factor out DPD register bit calculation

2018-07-20 Thread Aapo Vienamo
Factor out the the code to calculate the correct DPD register and bit number for a given pad. This logic will be needed to query the status register. Signed-off-by: Aapo Vienamo Acked-by: Jon Hunter --- drivers/soc/tegra/pmc.c | 20 +--- 1 file changed, 17 insertions(+), 3

[PATCH v5 7/7] soc/tegra: pmc: Implement pad configuration via pinctrl

2018-07-20 Thread Aapo Vienamo
Register a pinctrl device and implement get and set functions for PIN_CONFIG_LOW_POWER_MODE and PIN_CONFIG_POWER_SOURCE parameters. Signed-off-by: Aapo Vienamo Acked-by: Jon Hunter --- drivers/soc/tegra/pmc.c | 187 +++- 1 file changed, 185

[PATCH v5 5/7] dt-bindings: Add Tegra PMC pad configuration bindings

2018-07-20 Thread Aapo Vienamo
Document the pinctrl bindings used by the PMC driver for performing pad configuration. Both nvidia,tegra186-pmc.txt and nvidia,tegra20-pmc.txt are modified as they both cover SoC generations for which these bindings apply. Add a header defining Tegra PMC pad voltage configurations.

[PATCH v5 1/7] soc/tegra: pmc: Fix pad voltage configuration for Tegra186

2018-07-20 Thread Aapo Vienamo
Implement support for the PMC_IMPL_E_33V_PWR register which replaces PMC_PWR_DET register interface of the SoC generations preceding Tegra186. Also add the voltage bit offsets to the tegra186_io_pads[] table and the AO_HV pad. Signed-off-by: Aapo Vienamo Acked-by: Jon Hunter ---

[PATCH v5 0/7] Tegra PMC pinctrl pad configuration

2018-07-20 Thread Aapo Vienamo
Hi all, The Tegra Power Management Controller (PMC) can set pad power states and voltage configuration. This series implements pinctrl interfaces for configuring said pad properties. Changelog v5: - Fix a typo in "soc/tegra: pmc: Remove public pad voltage APIs" - 1.8 V /

[PATCH] Detect invalid .o files created by objtool.

2018-07-20 Thread David Laight
The objtool code that generates to ORC unwind tables found a bug in libelf that causes the section headers to not be rewritten. The next access to the output file generates a ' File format not recognised' error from objdump or ld. Module compilation uses 'objdump ... | grep -q ...' and the

[PATCH v5 6/7] soc/tegra: pmc: Remove public pad voltage APIs

2018-07-20 Thread Aapo Vienamo
Make tegra_io_pad_set_voltage() and tegra_io_pad_get_voltage() static and remove the prototypes from pmc.h. Remove enum tegra_io_pad_voltage and use the defines from instead. These functions aren't used outside of the pmc driver and new use cases should use the pinctrl interface instead.

Re: [PATCH 0/4] Rework NVMe abort handling

2018-07-20 Thread Johannes Thumshirn
On Thu, Jul 19, 2018 at 08:04:09AM -0700, James Smart wrote: > Which I'm going to say no on. I originally did the abort before the reset > and it brought out some confusion in the reset code. Thus the existing flow > which just resets the controller which has to be done after the abort > anyway.

Re: [PATCH 4/5] mtd: rawnand: qcom: update BBT related flags

2018-07-20 Thread Abhishek Sahu
On 2018-07-19 03:12, Miquel Raynal wrote: Abhishek, Miquel Raynal wrote on Wed, 18 Jul 2018 23:41:44 +0200: Hi Boris, Boris Brezillon wrote on Wed, 18 Jul 2018 23:36:37 +0200: > On Wed, 18 Jul 2018 23:15:26 +0200 > Miquel Raynal wrote: > > > Hi Abhishek, > > > > Abhishek Sahu wrote on

[PATCH v4 3/8] swap: Use swap_count() in swap_page_trans_huge_swapped()

2018-07-20 Thread Huang Ying
In swap_page_trans_huge_swapped(), to identify whether there's any page table mapping for a 4k sized swap entry, "si->swap_map[i] != SWAP_HAS_CACHE" is used. This works correctly now, because all users of the function will only call it after checking SWAP_HAS_CACHE. But as pointed out by Daniel,

[PATCH] x86: use PTR_ERR_OR_ZERO to fix ptr_ret.cocci warning

2018-07-20 Thread YueHaibing
ptr_ret.cocci warnings: arch/x86/kernel/pcspeaker.c:12:8-14: WARNING: PTR_ERR_OR_ZERO can be used use PTR_ERR_OR_ZERO rather than an open-code version to fix this. Signed-off-by: YueHaibing --- arch/x86/kernel/pcspeaker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] pinctrl: tegra: fix spelling in devicetree binding document

2018-07-20 Thread Marcel Ziswiler
From: Marcel Ziswiler This fixes a spelling mistake. Signed-off-by: Marcel Ziswiler --- Documentation/devicetree/bindings/pinctrl/nvidia,tegra124-pinmux.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

UBSAN: Undefined behaviour in lib/radix-tree.c:123:14: member access within null pointer of type 'const struct radix_tree_node'

2018-07-20 Thread Paul Menzel
Dear Linux folks, Enabling the undefined behavior sanitizer and building GNU/Linux 4.18-rc5+ (with some unrelated commits) with GCC 8.1.0 from Debian Sid/unstable, the warning below is shown. [0.958688] [

[PATCH] ASoC: wm9712: fix replace codec to component

2018-07-20 Thread Marcel Ziswiler
From: Marcel Ziswiler Since commit 143b44845d87 ("ASoC: wm9712: replace codec to component") "wm9712-codec" got renamed to "wm9712-component", however, this change never got propagated down to the actual board/platform drivers. E.g. on Colibri T20 this lead to the following spew upon boot with

[PATCH] ASoC: sgtl5000: fix spelling in devicetree binding document

2018-07-20 Thread Marcel Ziswiler
From: Marcel Ziswiler This fixes a spelling mistake. Signed-off-by: Marcel Ziswiler --- Documentation/devicetree/bindings/sound/sgtl5000.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/sound/sgtl5000.txt

[PATCH 2/2] ASoC: tegra: probe deferral error reporting

2018-07-20 Thread Marcel Ziswiler
From: Marcel Ziswiler Actually report the error codes from of_get_named_gpio() resp. devm_gpio_request_one() upon trying to get the codec reset resp. sync GPIOs which may as well just be a probe deferrals. Signed-off-by: Marcel Ziswiler --- sound/soc/tegra/tegra20_ac97.c | 9 ++--- 1

Re: [PATCH v3 5/6] KVM: X86: Add NMI support to PV IPIs

2018-07-20 Thread Paolo Bonzini
On 20/07/2018 05:53, Wanpeng Li wrote: >>> - ret = kvm_hypercall3(KVM_HC_SEND_IPI, ipi_bitmap_low, >>> ipi_bitmap_high, vector); >>> + switch (vector) { >>> + default: >>> + icr = APIC_DM_FIXED | vector; >>> + break; >>> + case NMI_VECTOR: >>> +

[GIT PULL] Power management fix for v4.18-rc6

2018-07-20 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-4.18-rc6 with top-most commit 95d6c0857e54b788982746071130d822a795026b cpufreq: intel_pstate: Register when ACPI PCCH is present on top of commit

[PATCH v4 1/2] rtmutex: allow specifying a subclass for nested locking

2018-07-20 Thread Peter Rosin
Needed for annotating rt_mutex locks. Tested-by: John Sperbeck Signed-off-by: Peter Rosin --- include/linux/rtmutex.h | 7 +++ kernel/locking/rtmutex.c | 29 + 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/include/linux/rtmutex.h

Re: UBSAN: Undefined behaviour in arch/x86/events/amd/ibs.c:582:24: member access within null pointer of type 'struct perf_event'

2018-07-20 Thread Thomas Gleixner
Paul, On Fri, 20 Jul 2018, Paul Menzel wrote: > Enabling the undefined behavior sanitizer and building GNU/Linux 4.18-rc5+ > (with some unrelated commits) with GCC 8.1.0 from Debian Sid/unstable, the > warning below is shown. > > > [2.111913] > >

[PATCH v4 2/2] i2c: mux: annotate the nested rt_mutex usage

2018-07-20 Thread Peter Rosin
If an i2c topology has instances of nested muxes, then a lockdep splat is produced when when i2c_parent_lock_bus() is called. Here is an example: WARNING: possible recursive locking detected insmod/68159 is

[PATCH v4 0/2] Fix lockdep warning with nested instances of i2c-mux

2018-07-20 Thread Peter Rosin
Hi! Ping. This is almost a resend of v3, but I added tested-by tags from John and unwrapped a line in the commit message, so it's a v4. How is this going to find its way to Linus? I can move this through the i2c-mux tree, but I obviously need a tag for patch 1/2 for that... Cheers, Peter

Re: [PATCH v2 08/10] coresight: perf: Add helper to retrieve sink configuration

2018-07-20 Thread Suzuki K Poulose
On 19/07/18 21:07, Mathieu Poirier wrote: On Tue, Jul 17, 2018 at 06:11:39PM +0100, Suzuki K Poulose wrote: We can always find the sink configuration for a given perf_output_handle. Add a helper to retrieve the sink configuration for a given perf_output_handle. This will be used to get rid of

Re: linux-next: manual merge of the pci tree with Linus' tree

2018-07-20 Thread Lorenzo Pieralisi
On Fri, Jul 20, 2018 at 11:03:10AM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the pci tree got a conflict in: > > drivers/pci/controller/pci-aardvark.c > > between commit: > > 1df3e5b3feeb ("PCI: aardvark: Fix I/O space page leak") > > from Linus' tree and

Re: [PATCH v4 1/4] rtc: omap: Cut down the shutdown time from 2 seconds to 1 sec

2018-07-20 Thread Johan Hovold
On Fri, Jul 20, 2018 at 04:03:20PM +0530, Keerthy wrote: > > > On Thursday 19 July 2018 06:16 PM, Keerthy wrote: > > > > > > On Thursday 19 July 2018 06:06 PM, Johan Hovold wrote: > >> On Thu, Jul 19, 2018 at 05:52:17PM +0530, Keerthy wrote: > >>> On Thursday 19 July 2018 05:23 PM, Keerthy

Re: [PATCH v3 28/33] mtd: rawnand: docg4: convert driver to nand_scan()

2018-07-20 Thread Boris Brezillon
On Fri, 20 Jul 2018 09:17:45 +0200 Miquel Raynal wrote: > Hi Boris, > > Boris Brezillon wrote on Fri, 20 Jul 2018 > 01:27:32 +0200: > > > On Fri, 20 Jul 2018 01:00:21 +0200 > > Miquel Raynal wrote: > > > > > Two helpers have been added to the core to make ECC-related > > > configuration

[PATCH v4 04/11] kconfig: create directories needed for syncconfig by itself

2018-07-20 Thread Masahiro Yamada
'make syncconfig' creates some files such as include/config/auto.conf, include/generate/autoconf.h, etc. but the necessary directory creation relies on scripts/kconfig/Makefile. To make Kconfig self-contained, create directories as needed in conf_write_autoconf(). This change allows

[PATCH v4 01/11] kconfig: rename file_write_dep and move it to confdata.c

2018-07-20 Thread Masahiro Yamada
file_write_dep() is called only from conf_write_autoconf(). Move it from util.c to confdata.c to make it static. Also, rename it to conf_write_dep() since it should belong to the group of conf_write* functions. Signed-off-by: Masahiro Yamada --- Changes in v4: None scripts/kconfig/confdata.c

[PATCH v4 05/11] kconfig: make syncconfig update .config regardless of sym_change_count

2018-07-20 Thread Masahiro Yamada
syncconfig updates the .config only when sym_change_count > 0, i.e. any change in config symbols has been detected. Not only symbols but also comments are contained in the .config file. If only comments are updated, they are not fed back to the .config, then the stale comments are left-over. Of

[PATCH v4 09/11] kbuild: do not update config when running install targets

2018-07-20 Thread Masahiro Yamada
"make syncconfig" is automatically invoked when any of the following happens: - .config is updated - any of Kconfig files is updated - any of environment variables referenced in Kconfig is changed Then, it updates configuration files such as include/config/auto.conf

[PATCH v4 00/11] kbuild/kconfig: do not update config during installation

2018-07-20 Thread Masahiro Yamada
The main motivation of this patch series is to suppress the syncconfig during running installation targets. V1 consisted of only two patches: https://patchwork.kernel.org/patch/10468105/ https://patchwork.kernel.org/patch/10468103/ I noticed that installation targets would continue running

[PATCH v2] checkpatch: kbuild: if_changed: check for multiple calls in targets

2018-07-20 Thread Dirk Gouders
The kbuild function if_changed should not be called more than once for a target. Because that function writes the command line to a .cmd file for later tests, multiple calls of it within a target would result in overwrites of previous values and effectively render the command line test

[PATCH v4 03/11] kconfig: remove unneeded directory generation from local*config

2018-07-20 Thread Masahiro Yamada
Commit 17263baf958b ("kconfig: Create include/generated for localmodconfig") added the 'mkdir' line because local{yes,mod}config ran streamline_config.pl followed by silentoldconfig at that time. Since commit 81d2bc227305 ("kconfig: invoke oldconfig instead of silentoldconfig from local*config"),

[PATCH v4 02/11] kconfig: split out useful helpers in confdata.c

2018-07-20 Thread Masahiro Yamada
Split out helpers: is_present() - check if the given path exists is_dir() - check if the given path exists and it is a directory make_parent_dir() - create the parent directories of the given path These helpers will be reused in later commits. Signed-off-by: Masahiro Yamada --- Changes in

[PATCH v4 11/11] kbuild: remove auto.conf from prerequisite of phony targets

2018-07-20 Thread Masahiro Yamada
The top-level Makefile adds include/config/auto.conf as prerequisites of 'scripts', 'prepare1', etc. They were needed to terminate the build when include/config/auto.conf is missing. Now that the inclusion of include/config/auto.conf is mandatory in the top-level Makefile if dot-config is 1

[PATCH v4 10/11] kbuild: do not update config for 'make kernelrelease'

2018-07-20 Thread Masahiro Yamada
'make kernelrelease' depends on CONFIG_LOCALVERSION(_AUTO), but for the same reason as install targets, we do not want to update the configuration just for printing the kernelrelease string. This is likely to happen when you compiled the kernel with CROSS_COMPILE, but forget to pass it to 'make

[PATCH v4 06/11] kconfig: allow all config targets to write auto.conf if missing

2018-07-20 Thread Masahiro Yamada
Currently, only syncconfig creates or updates include/config/auto.conf and some other files. Other config targets create or update only the .config file. When you configure and build the kernel from a pristine source tree, any config target is followed by syncconfig in the build stage since

[PATCH v4 08/11] kbuild: add .DELETE_ON_ERROR special target

2018-07-20 Thread Masahiro Yamada
If Make gets a fatal signal while a shell is executing, it may delete the target file that the recipe was supposed to update. This is needed to make sure that it is remade from scratch when Make is next run; if Make is interrupted after the recipe has begun to write the target file, it results in

[PATCH] mfd: stmpe: honor gpio interrupt probe deferral

2018-07-20 Thread Marcel Ziswiler
From: Marcel Ziswiler Actually honor probe deferral in trying to get the GPIO interrupt as of_get_named_gpio_flags() in stmpe_of_probe() may as well just do so. Signed-off-by: Marcel Ziswiler --- drivers/mfd/stmpe.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mfd/stmpe.c

[PATCH 1/2] ASoC: tegra: improve goto error label

2018-07-20 Thread Marcel Ziswiler
From: Marcel Ziswiler While the two error labels "err" and "err_clk_put" goto the same place it is rather confusing that the earlier one is certainly used later again. Signed-off-by: Marcel Ziswiler --- sound/soc/tegra/tegra20_ac97.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH v3 2/6] KVM: X86: Implement PV IPIs in linux guest

2018-07-20 Thread Paolo Bonzini
On 20/07/2018 07:58, Wanpeng Li wrote: >> >> We could keep the cluster size of 128, but it would be more complicated >> to do the left shift in the first "else if". If the limit is 64, you >> can keep the two arguments in the hypercall, and just pass 0 as the >> "high" bitmap on 64-bit kernels. >

Re: [PATCH v2] pinctrl: tegra: fix spelling in devicetree binding document

2018-07-20 Thread Jon Hunter
On 20/07/18 09:22, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > This fixes a spelling mistake. > > Signed-off-by: Marcel Ziswiler > > --- > > Changes in v2: > - Also fix up the one in nvidia,tegra210-pinmux.txt as suggested by Jon. > >

  1   2   3   4   5   6   7   8   9   10   >