Re: [PATCH v2 0/2] Fix crash in cper_estatus_check()

2019-02-19 Thread Rafael J. Wysocki
On Monday, January 28, 2019 11:04:22 AM CET Ross Lagerwall wrote: > v2 changes: > - Address Boris's comments. > > --- > > I recently encountered a crash in cper_estatus_check() when called by > bert_init(). Patches follow to fix the problem. Note that I cannot fully > test the patches since the h

Re: [PATCH] software node: Implement get_named_child_node fwnode callback

2019-02-19 Thread Rafael J. Wysocki
On Wednesday, February 13, 2019 12:55:49 PM CET Heikki Krogerus wrote: > This makes it possible to support drivers that use > fwnode_get_named_child_node() and device_get_named_child_node() > functions. > > The node name is for now taken from a device property named > "name". That mimics the old s

[PATCH] misc: rtsx: Enable OCP for rts522a rts524a rts525a rts5260

2019-02-19 Thread ricky_wu
From: RickyWu this enables and adds OCP function for Realtek A series cardreader chips and fixes some OCP flow in rts5260.c Signed-off-by: RickyWu --- drivers/misc/cardreader/rts5227.c | 64 +++--- drivers/misc/cardreader/rts5249.c | 32 +-- drivers/misc/cardreader/rts5260.c |

[PATCH 7/8] dt-bindings: regulator: Add active discharge support for stpmic1

2019-02-19 Thread Pascal PAILLET-LME
Add support for active discharge for USB power switches. Signed-off-by: pascal paillet --- Documentation/devicetree/bindings/regulator/st,stpmic1-regulator.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/regulator/st,stpmic1-regulator.txt b/Documentati

[PATCH 6/8] regulator: stpmic1: Change buck1 voltage range

2019-02-19 Thread Pascal PAILLET-LME
Change buck1 voltage range to be conform with the data-sheet. Signed-off-by: pascal paillet --- drivers/regulator/stpmic1_regulator.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/stpmic1_regulator.c b/drivers/regulator/stpmic1_regulator.c index 6970

[PATCH 2/8] regulator: stpmic1: Simplify regulators registration

2019-02-19 Thread Pascal PAILLET-LME
Stop using a regulator_init callback. This leads to a more simple regulator registration code. This also permits to spuress struct stpmic1_regulator. Also rename stpmic1_regulators_matches to stpmic1_matches. Signed-off-by: pascal paillet --- drivers/regulator/stpmic1_regulator.c | 168 +

[PATCH 5/8] regulator: stpmic1: Remove support for regulator pull down

2019-02-19 Thread Pascal PAILLET-LME
Regulator high pull down are enabled by default so remove support in the driver. Signed-off-by: pascal paillet --- drivers/regulator/stpmic1_regulator.c | 12 1 file changed, 12 deletions(-) diff --git a/drivers/regulator/stpmic1_regulator.c b/drivers/regulator/stpmic1_regulator.c

[PATCH 8/8] regulator: stpmic1: Add active discharge support

2019-02-19 Thread Pascal PAILLET-LME
Add support for active discharge for USB power switches. Signed-off-by: pascal paillet --- drivers/regulator/stpmic1_regulator.c | 68 --- 1 file changed, 55 insertions(+), 13 deletions(-) diff --git a/drivers/regulator/stpmic1_regulator.c b/drivers/regulator/st

[PATCH 1/8] regulator: stpmic1: Use regulator mode definition from bindings

2019-02-19 Thread Pascal PAILLET-LME
Get the regulator mode definition from the bindings header. Signed-off-by: pascal paillet --- drivers/regulator/stpmic1_regulator.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/stpmic1_regulator.c b/drivers/regulator/stpmic1_regulator.c index d456fb

[PATCH 3/8] dt-bindings: regulator: remove interrupt-parent description on stpmic1

2019-02-19 Thread Pascal PAILLET-LME
The interrupt parent description is not needed as the parent is a parent node with 'interrupt-controller' property. Signed-off-by: pascal paillet --- Documentation/devicetree/bindings/regulator/st,stpmic1-regulator.txt | 3 --- 1 file changed, 3 deletions(-) diff --git a/Documentation/devicetr

[PATCH 4/8] dt-bindings: regulator: remove regulator pull-down support for stpmic1

2019-02-19 Thread Pascal PAILLET-LME
Regulator high pull down are enabled by default so remove support in the driver. Signed-off-by: Pascal Paillet --- Documentation/devicetree/bindings/regulator/st,stpmic1-regulator.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/Documentation/devicetree/bindings/regulator/st,stpmic1-reg

[PATCH 0/8] STPMIC1 Fixes

2019-02-19 Thread Pascal PAILLET-LME
The goal of this patch-set is to improve the stpmic1 regulator driver: with Fixes: - Simplify regulator registration code - Remove support of regulator pull-down - Fix buck1 voltage range - Fix binding documentation with a new feature: - Add support for active discharge Pascal Paillet (8): regul

[PATCH v2 3/4] pwm: atmel: add support for SAM9X60's PWM controller

2019-02-19 Thread Claudiu.Beznea
From: Claudiu Beznea Add support for SAM9X60's PWM controller. Signed-off-by: Claudiu Beznea --- drivers/pwm/pwm-atmel.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/pwm/pwm-atmel.c b/drivers/pwm/pwm-atmel.c index 647d063562db..229cedb02770 100644 --- a/driv

[PATCH v2 4/4] pwm: atmel: add PWM binding for SAM9X60

2019-02-19 Thread Claudiu.Beznea
From: Claudiu Beznea Add PWM binding for SAM9X60 SoC. Signed-off-by: Claudiu Beznea Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/pwm/atmel-pwm.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pwm/atmel-pwm.txt b/Documentation/devicet

[PATCH v2 1/4] pwm: atmel: add struct atmel_pwm_data

2019-02-19 Thread Claudiu.Beznea
From: Claudiu Beznea Add struct atmel_pwm_data to embed different per controller information. At this stage, embed a member of type struct atmel_pwm_registers in it. Signed-off-by: Claudiu Beznea --- drivers/pwm/pwm-atmel.c | 64 +++-- 1 file changed

[PATCH v2 0/4] add support for the new SAM9X60's PWM controller

2019-02-19 Thread Claudiu.Beznea
From: Claudiu Beznea This series adds support for PWM controller of the new SAM9X60. The difference b/w this one and the provious AT91SAM9X5 is the counter size (32 bits compared with 16 bits on the previous version) thus, allowing to generate signals with bigger periods and duty cycles. This ser

[PATCH v2 2/4] pwm: atmel: add support for controllers with 32 bit counters

2019-02-19 Thread Claudiu.Beznea
From: Claudiu Beznea New SAM9X60's PWM controller use 32 bits counters thus it could generate signals with higher period and duty cycles than the old ones. Prepare the current driver to be able to work with old controllers (that uses 16 bits counters) and with the new SAM9X60's controller, by pro

Re: [PATCH v2 13/15] ARM: dts: milbeaut: Add device tree set for the Milbeaut M10V board

2019-02-19 Thread Arnd Bergmann
On Tue, Feb 19, 2019 at 6:11 AM Sugaya, Taichi wrote: > > Hi, > Thank you for you comments. > > On 2019/02/18 21:09, Arnd Bergmann wrote: > > On Fri, Feb 8, 2019 at 1:28 PM Sugaya Taichi > > wrote: > >> + > >> + aliases { > >> + serial1 = &uart1; > >> + }; > > > > Maybe

Re: linux-next: build failure after merge of the asm-generic tree

2019-02-19 Thread Arnd Bergmann
On Tue, Feb 19, 2019 at 8:45 AM Hugo Lefeuvre wrote: > > Hi Stephen, Arnd, > > > After merging the asm-generic tree, today's linux-next build (powerpc > > allnoconfig) failed like this: > > ... > > Caused by commit > > > > 8e074c243ed3 ("iomap: add missing const to ioread*/iowrite addr arg") > >

[PATCH v6 0/4] input: touchscreen: Add goodix GT5553 CTP support

2019-02-19 Thread Jagan Teki
This is v6 patchset for supporting goodix GT5553 CTP. Here is the previous version[1] Changes for v5: - document bindings for required regulators, which are need during power-on sequence - enable, disable required regulators as described in power-on sequence using normal regulator calls - upda

[PATCH v6 1/4] dt-bindings: input: touchscreen: goodix: Document regulator properties

2019-02-19 Thread Jagan Teki
Goodix CTP controllers support analog, digital and gpio regulator supplies on relevant controller pin configurations. Out of which AVDD28 and VDDIO regulators are required in few goodix CTP chips during power-on sequence. AVDD22, DVDD12 regulators have no relevant functionality described from dat

[PATCH v6 4/4] Input: goodix - Add GT5663 CTP support

2019-02-19 Thread Jagan Teki
GT5663 is capacitive touch controller with customized smart wakeup gestures. Add support for it by adding compatible and supported chip data. The chip data on GT5663 is similar to GT1151, like - config data register has 0x8050 address - config data register max len is 240 - config data checksum h

[PATCH v6 3/4] dt-bindings: input: touchscreen: goodix: Add GT5663 compatible

2019-02-19 Thread Jagan Teki
GT5663 is capacitive touch controller with customized smart wakeup gestures, it support chipdata which is similar to existing GT1151 and require AVDD28 supply for some boards. Document the compatible for the same. Signed-off-by: Jagan Teki Reviewed-by: Rob Herring --- Documentation/devicetree/

[PATCH v6 2/4] Input: goodix - Add regulators suppot

2019-02-19 Thread Jagan Teki
Goodix CTP controllers require AVDD28, VDDIO regulators for power-on sequence. The delay between these regualtor operations as per Power-on Timing from datasheet[1] is 0 (T1 >= 0 usec). So, enable and disable these regulators in proper order using normal regulator functions without any delay in b

Re: [PATCH 1/2] PM / Domains: Mark "name" const in genpd_dev_pm_attach_by_name()

2019-02-19 Thread Rafael J. Wysocki
On Thursday, February 14, 2019 7:12:48 PM CET Douglas Anderson wrote: > The genpd_dev_pm_attach_by_name() simply takes the name and passes it > to of_property_match_string() where the argument is "const char *". > Adding a const here allows a later patch to add a const to > dev_pm_domain_attach_by_

huge fsync latencies for a small file on ext4

2019-02-19 Thread stummala
Hi, I am observing huge fsync latencies for a small file under the below test scenario - process A - Issue async write of 4GB using dd command (say large_file) on /data mounted with ext4: dd if=/dev/zero of=/data/testfile bs=1M count=4096 process B - In parallel another process wrote a smal

Re: [PATCH v4] staging: nrf24: add new driver for 2.4GHz radio transceiver

2019-02-19 Thread Greg Kroah-Hartman
On Wed, Feb 13, 2019 at 08:40:35PM +0100, Marcin Ciupak wrote: > This patch adds driver for Nordic Semiconductor nRF24L01+ radio > transceiver. > > Signed-off-by: Marcin Ciupak > --- > Changes in v2: > - add terminating newlines to all logging formats > Changes in v3: > - patch subject > -

Re: [PATCH] cpufreq: scmi: fix use-after-free in scmi_cpufreq_exit()

2019-02-19 Thread Rafael J. Wysocki
On Monday, February 18, 2019 5:53:30 AM CET Viresh Kumar wrote: > On 16-02-19, 11:31, Yangtao Li wrote: > > This issue was detected with the help of Coccinelle. So > > change the order of function calls to fix it. > > > > Fixes: 1690d8bb91e37 (cpufreq: scpi/scmi: Fix freeing of dynamic OPPs) > >

Re: [PATCH] cpufreq: Replace double NOT (!!) with single NOT (!)

2019-02-19 Thread Rafael J. Wysocki
On Thursday, February 14, 2019 11:46:21 AM CET Viresh Kumar wrote: > Double NOT (!!) operation is normally done to convert a non-zero value > to 1 and keep zero as is, but that isn't the requirement in this case. > All we wanted was to make sure that only one of the two routines isn't > set, i.e. e

Re: [RFT/RFC][PATCH] driver core: Fix PM-runtime for links added during consumer probe

2019-02-19 Thread Jon Hunter
On 18/02/2019 22:08, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Commit 4c06c4e6cf63 ("driver core: Fix possible supplier PM-usage > counter imbalance") introduced a regression that causes suppliers > to be suspended prematurely for device links added during consumer > driver probe i

Re: [PATCH v3] PM / suspend: measure the time of filesystem syncing

2019-02-19 Thread Rafael J. Wysocki
On Thursday, February 14, 2019 12:15:43 PM CET Harry Pan wrote: > This patch gives the reader an intuitive metric of the time cost by > the kernel issuing a filesystem sync during suspend; although developer > can guess by the timestamp of next log or enable the ftrace power event > for manual calc

Re: [PATCH V4 1/2] cpufreq: Allow light-weight tear down and bring up of CPUs

2019-02-19 Thread Rafael J. Wysocki
On Tuesday, February 12, 2019 12:06:04 PM CET Viresh Kumar wrote: > The cpufreq core doesn't remove the cpufreq policy anymore on CPU > offline operation, rather that happens when the CPU device gets > unregistered from the kernel. This allows faster recovery when the CPU > comes back online. This

Re: [RFC PATCH] docs/memory-barriers.txt: Rewrite "KERNEL I/O BARRIER EFFECTS" section

2019-02-19 Thread Thomas Petazzoni
Hello, On Mon, 18 Feb 2019 21:37:25 +0100 Arnd Bergmann wrote: > > > I would say we should strengthen the behavior of outX() where possible. > > > I don't know if arm64 actually has a way of doing that, my understanding > > > earlier was that the AXI bus was already posted, so there is not much

From Michelle

2019-02-19 Thread Michelle
Hallo Schatz, ich hoffe, es ist alles gut mit dir und deine Familie? Ich habe eine wichtige Vereinbarung mit Ihnen zu besprechen Bitte antworten Sie mir umgehend. Danke dir Michelle

[PATCH v6 08/18] arm/tlb: Convert to generic mmu_gather

2019-02-19 Thread Peter Zijlstra
Generic mmu_gather provides everything that ARM needs: - range tracking - RCU table free - VM_EXEC tracking - VIPT cache flushing The one notable curiosity is the 'funny' range tracking for classical ARM in __pte_free_tlb(). Cc: Nick Piggin Cc: "Aneesh Kumar K.V" Cc: Andrew Morton Cc: Rus

[PATCH v6 02/18] asm-generic/tlb: Provide HAVE_MMU_GATHER_PAGE_SIZE

2019-02-19 Thread Peter Zijlstra
Move the mmu_gather::page_size things into the generic code instead of powerpc specific bits. Cc: Nick Piggin Cc: "Aneesh Kumar K.V" Cc: Andrew Morton Acked-by: Will Deacon Signed-off-by: Peter Zijlstra (Intel) --- arch/Kconfig |3 +++ arch/arm/include/asm/tlb.h |

Re: [RFC PATCH] scsi: fix oops in scsi_uninit_cmd()

2019-02-19 Thread Steffen Maier
On 02/19/2019 08:27 AM, Jason Yan wrote: If we remove the scsi disk when running io with fio, oops occured with the following condition. [scsi_eh_0] [fio] scsi_end_request ->blk_update_request ->end_bio(io returned to userspace)

[PATCH v6 06/18] asm-generic/tlb: Conditionally provide tlb_migrate_finish()

2019-02-19 Thread Peter Zijlstra
Needed for ia64 -- alternatively we drop the entire hook. Cc: Will Deacon Cc: "Aneesh Kumar K.V" Cc: Andrew Morton Cc: Nick Piggin Signed-off-by: Peter Zijlstra (Intel) --- include/asm-generic/tlb.h |2 ++ 1 file changed, 2 insertions(+) --- a/include/asm-generic/tlb.h +++ b/include/asm

[PATCH v6 00/18] generic mmu_gather patches

2019-02-19 Thread Peter Zijlstra
Hi all, Sorry I haven't posted these in a while, I sorta forgot about them for a little. Not much changed since last time; one change to the ARM patch as suggested by Will and a fresh Changelog for patch 12 as requested by Vineet. And some trivial rebasing of the s390 bits. They've sat in my que

[PATCH v6 16/18] asm-generic/tlb: Remove HAVE_GENERIC_MMU_GATHER

2019-02-19 Thread Peter Zijlstra
Since all architectures are now using it, it is redundant. Acked-by: Will Deacon Signed-off-by: Peter Zijlstra (Intel) --- include/asm-generic/tlb.h |1 - mm/mmu_gather.c |4 2 files changed, 5 deletions(-) --- a/include/asm-generic/tlb.h +++ b/include/asm-generic/tlb.h

[PATCH v6 07/18] asm-generic/tlb: Invert HAVE_RCU_TABLE_INVALIDATE

2019-02-19 Thread Peter Zijlstra
Make issuing a TLB invalidate for page-table pages the normal case. The reason is twofold: - too many invalidates is safer than too few, - most architectures use the linux page-tables natively and would thus require this. Make it an opt-out, instead of an opt-in. Acked-by: Will Deacon Sig

[PATCH v6 05/18] asm-generic/tlb: Provide generic tlb_flush() based on flush_tlb_mm()

2019-02-19 Thread Peter Zijlstra
When an architecture does not have (an efficient) flush_tlb_range(), but instead always uses full TLB invalidates, the current generic tlb_flush() is sub-optimal, for it will generate extra flushes in order to keep the range small. But if we cannot do range flushes, that is a moot concern. Optiona

[PATCH v6 03/18] asm-generic/tlb: Provide generic VIPT cache flush

2019-02-19 Thread Peter Zijlstra
The one obvious thing SH and ARM want is a sensible default for tlb_start_vma(). (also: https://lkml.org/lkml/2004/1/15/6 ) Avoid all VIPT architectures providing their own tlb_start_vma() implementation and rely on architectures to provide a no-op flush_cache_range() when it is not relevant. The

[PATCH v6 15/18] asm-generic/tlb: Remove arch_tlb*_mmu()

2019-02-19 Thread Peter Zijlstra
Now that all architectures are converted to the generic code, remove the arch hooks. Acked-by: Will Deacon Signed-off-by: Peter Zijlstra (Intel) --- mm/mmu_gather.c | 93 +--- 1 file changed, 42 insertions(+), 51 deletions(-) --- a/mm/mmu_g

Re: [RFC PATCH net-next v3 12/21] ethtool: provide permanent hardware address in GET_INFO request

2019-02-19 Thread Jiri Pirko
Mon, Feb 18, 2019 at 07:22:24PM CET, mkube...@suse.cz wrote: >Add information about permanent hadware address of a device (as provided by >ETHTOOL_GPERMADDR ioctl command) in GET_INFO reply if ETH_INFO_IM_PERMADDR >flag is set in the request. > >There is no separate attribute for hardware address l

[PATCH v6 14/18] s390/tlb: convert to generic mmu_gather

2019-02-19 Thread Peter Zijlstra
Cc: heiko.carst...@de.ibm.com Cc: npig...@gmail.com Cc: a...@linux-foundation.org Cc: aneesh.ku...@linux.vnet.ibm.com Cc: will.dea...@arm.com Cc: Linus Torvalds Cc: li...@armlinux.org.uk Signed-off-by: Martin Schwidefsky Signed-off-by: Peter Zijlstra (Intel) Link: http://lkml.kernel.org/r/2018

[PATCH v6 01/18] asm-generic/tlb: Provide a comment

2019-02-19 Thread Peter Zijlstra
Write a comment explaining some of this.. Cc: Nick Piggin Cc: Andrew Morton Cc: "Aneesh Kumar K.V" Acked-by: Will Deacon Signed-off-by: Peter Zijlstra (Intel) --- include/asm-generic/tlb.h | 119 -- 1 file changed, 116 insertions(+), 3 deletions(-

[PATCH v6 09/18] ia64/tlb: Conver to generic mmu_gather

2019-02-19 Thread Peter Zijlstra
Generic mmu_gather provides everything ia64 needs (range tracking). Cc: Will Deacon Cc: "Aneesh Kumar K.V" Cc: Andrew Morton Cc: Nick Piggin Cc: Tony Luck Signed-off-by: Peter Zijlstra (Intel) --- arch/ia64/include/asm/tlb.h | 256 --- arch/ia64/inc

[PATCH v6 12/18] arch/tlb: Clean up simple architectures

2019-02-19 Thread Peter Zijlstra
For the architectures that do not implement their own tlb_flush() but do already use the generic mmu_gather, there are two options: 1) the platform has an efficient flush_tlb_range() and asm-generic/tlb.h doesn't need any overrides at all. 2) the platform lacks an efficient flush_tlb_range(

[PATCH v6 17/18] asm-generic/tlb: Remove tlb_flush_mmu_free()

2019-02-19 Thread Peter Zijlstra
As the comment notes; it is a potentially dangerous operation. Just use tlb_flush_mmu(), that will skip the (double) TLB invalidate if it really isn't needed anyway. Acked-by: Will Deacon Signed-off-by: Peter Zijlstra (Intel) --- include/asm-generic/tlb.h | 10 +++--- mm/memory.c

[PATCH v6 13/18] asm-generic/tlb: Introduce HAVE_MMU_GATHER_NO_GATHER

2019-02-19 Thread Peter Zijlstra
Add the Kconfig option HAVE_MMU_GATHER_NO_GATHER to the generic mmu_gather code. If the option is set the mmu_gather will not track individual pages for delayed page free anymore. A platform that enables the option needs to provide its own implementation of the __tlb_remove_page_size function to fr

[PATCH v6 04/18] asm-generic/tlb: Provide generic tlb_flush() based on flush_tlb_range()

2019-02-19 Thread Peter Zijlstra
Provide a generic tlb_flush() implementation that relies on flush_tlb_range(). This is a little awkward because flush_tlb_range() assumes a VMA for range invalidation, but we no longer have one. Audit of all flush_tlb_range() implementations shows only vma->vm_mm and vma->vm_flags are used, and of

[PATCH v6 11/18] um/tlb: Convert to generic mmu_gather

2019-02-19 Thread Peter Zijlstra
Generic mmu_gather provides the simple flush_tlb_range() based range tracking mmu_gather UM needs. Cc: Will Deacon Cc: "Aneesh Kumar K.V" Cc: Andrew Morton Cc: Nick Piggin Cc: Richard Weinberger Signed-off-by: Peter Zijlstra (Intel) --- arch/um/include/asm/tlb.h | 156 -

[PATCH v6 18/18] asm-generic/tlb: Remove tlb_table_flush()

2019-02-19 Thread Peter Zijlstra
There are no external users of this API (nor should there be); remove it. Acked-by: Will Deacon Signed-off-by: Peter Zijlstra (Intel) --- include/asm-generic/tlb.h |1 - mm/mmu_gather.c | 34 +- 2 files changed, 17 insertions(+), 18 deletions(-)

[PATCH v6 10/18] sh/tlb: Convert SH to generic mmu_gather

2019-02-19 Thread Peter Zijlstra
Generic mmu_gather provides everything SH needs (range tracking and cache coherency). Cc: Will Deacon Cc: "Aneesh Kumar K.V" Cc: Andrew Morton Cc: Nick Piggin Cc: Yoshinori Sato Cc: Rich Felker Signed-off-by: Peter Zijlstra (Intel) --- arch/sh/include/asm/pgalloc.h |7 ++ arch/sh/inclu

Re: [PATCH -next] tpm: change the return type of calc_tpm2_event_size to size_t

2019-02-19 Thread Jarkko Sakkinen
On Tue, Feb 19, 2019 at 05:15:47PM +0800, YueHaibing wrote: > On 2019/2/19 16:59, Jarkko Sakkinen wrote: > > On Tue, Feb 19, 2019 at 03:26:18PM +0800, YueHaibing wrote: > >> calc_tpm2_event_size return size of the event which type is > >> size_t, If it is an invalid event, returns 0. And all the >

Re: [PATCH] arm64/neon: Disable -Wincompatible-pointer-types when building with Clang

2019-02-19 Thread Ard Biesheuvel
On Fri, 15 Feb 2019 at 20:45, Ard Biesheuvel wrote: > > On Fri, 15 Feb 2019 at 20:43, Nick Desaulniers > wrote: > > > > On Fri, Feb 15, 2019 at 11:28 AM Ard Biesheuvel > > wrote: > > > > > > On Fri, 15 Feb 2019 at 20:25, Nick Desaulniers > > > wrote: > > > > > > > > On Fri, Feb 15, 2019 at 11

Re: [PATCH 6/8] regulator: stpmic1: Change buck1 voltage range

2019-02-19 Thread Mark Brown
On Tue, Feb 19, 2019 at 10:04:34AM +, Pascal PAILLET-LME wrote: > Change buck1 voltage range to be conform with the data-sheet. This is a bug fix so it should've gone at the start of the series to make it easier to apply and send to Linus as a fix. signature.asc Description: PGP signature

[PATCH] MAINTAINERS: Remove deceptive "See below" from the "Odd Fixes" description

2019-02-19 Thread Thomas Huth
When reading the "See below" here, I'd expect to find some further description of "Odd Fixes" a little bit later in the file. However, as far as I can see, there is no further description available. Thus let's simply remove these deceptive two words. Signed-off-by: Thomas Huth --- Please double-

Re: [RFC PATCH net-next v3 00/21] ethtool netlink interface, part 1

2019-02-19 Thread Jiri Pirko
Mon, Feb 18, 2019 at 07:21:24PM CET, mkube...@suse.cz wrote: >Note: this is marked as RFC because it's rather late in the cycle; the plan >is to make a regular submission (with changes based on review) once >net-next reopens after the 5.1 merge window. The full (work in progress) >series, together

Re: [PATCH] doc: cgroup: correct the wrong information about measure of memory pressure

2019-02-19 Thread 禹舟键
Hi TeJun I've built the 5.0.0-rc6 kernel with psi option, but I cannot find any cgroup.controllers when I mounted cgroup2. [root@bogon /]# uname -r [root@bogon /]# 5.0.0-rc6+ [root@bogon /]# mount -t cgroup2 none cgroup2/ [root@bogon /]# cat cgroup2/cgroup.controllers [root@bogon /] [root@bogon /]

[PATCH v2] cfi: fix deadloop in cfi_cmdset_0002.c do_write_buffer

2019-02-19 Thread Liu Jian
In function do_write_buffer(), in the for loop, there is a case chip_ready() returns 1 while chip_good() returns 0, so it never break the loop. To fix this, chip_good() is enough and it should timeout if it stay bad for a while. Fixes: dfeae1073583 ("mtd: cfi_cmdset_0002: Change write buffer to ch

[PATCH] ARC: [plat-hsdk]: Enable AXI DW DMAC support

2019-02-19 Thread Eugeniy Paltsev
Signed-off-by: Eugeniy Paltsev --- NOTE: Even if this patch have no logical dependency with gpu-enabling-patch (http://patchwork.ozlabs.org/patch/1034722/) gpu-enabling-patch should be applied first to avoid rebasing. arch/arc/boot/dts/hsdk.dts | 27 +++ arch/a

Re: [PATCH 1/6] lib/string: Enable string selftesting

2019-02-19 Thread Andy Shevchenko
On Tue, Feb 19, 2019 at 4:44 AM Tobin C. Harding wrote: > > Currently we have a test module but it is not tied into the kselftest > infrastructure. In preparation for adding string manipulation functions > and testing we should enable kselftest to utilize the test module. > > Enable string testin

[RFC] pinctrl/amd: Clear interrupt enable bits on probe

2019-02-19 Thread Leonard Crestez
My Acer Nitro 5 AN515-42 laptop with a Ryzen 2700U hangs on boot because of spurious interrupts from pinctrl-amd. This seems to happen because the touchpad interrupt is enabled on boot in "level" mode and there is no way to clear it until a touchpad driver probes. Fix by disabling all gpio interr

Re: [PATCH v6 8/9] vsprintf: Prevent crash when dereferencing invalid pointers

2019-02-19 Thread Andy Shevchenko
On Tue, Feb 19, 2019 at 5:35 AM Sergey Senozhatsky wrote: > On (02/08/19 16:23), Petr Mladek wrote: > Hmm... So the assumption here is that the target buffer always has > at least strlen("(efault)") bytes and, thus, we always can write the > error message to it. Same assumption as for pointers,

Re: [PATCH v2 14/20] mm: Make hibernate handle unmapped pages

2019-02-19 Thread Borislav Petkov
On Mon, Jan 28, 2019 at 04:34:16PM -0800, Rick Edgecombe wrote: > For architectures with CONFIG_ARCH_HAS_SET_ALIAS, pages can be unmapped > briefly on the directmap, even when CONFIG_DEBUG_PAGEALLOC is not > configured. So this changes kernel_map_pages and kernel_page_present to be s/this changes/

RE: [PATCH v4] irqchip: gicv3-its: Use NUMA aware memory allocation for ITS tables

2019-02-19 Thread Shameerali Kolothum Thodi
Hi Marc, A gentle reminder on this one... Thanks, Shameer > -Original Message- > From: Linuxarm [mailto:linuxarm-boun...@huawei.com] On Behalf Of Shameer > Kolothum > Sent: 14 January 2019 09:50 > To: marc.zyng...@arm.com; linux-kernel@vger.kernel.org > Cc: gkulka...@marvell.com; suzuki.

Re: [PATCH v6 9/9] vsprintf: Avoid confusion between invalid address and value

2019-02-19 Thread Andy Shevchenko
On Tue, Feb 19, 2019 at 5:07 AM Sergey Senozhatsky wrote: > Suppose, in my driver I want to sprintf() IPv4 address. The longest > possible address is 3 * 4 (%d%d%d) + 3 bytes (dots) + terminating NULL. > E.g. 111.111.111.111 > > So I can allocate a 16-bytes buffer (stack or slab) and accidentally

Re: MT76x2U crashes XHCI driver on AMD Ryzen system

2019-02-19 Thread Stanislaw Gruszka
On Mon, Feb 18, 2019 at 05:01:59PM +, Robin Murphy wrote: > On 18/02/2019 14:37, Stanislaw Gruszka wrote: > [...] > >Another issue is that dma_map_sg() & dma_map_page() may require some > >constraints. I'm not sure about that and I want to clarify that with > >CCed mm maintainers. I think DMA d

Re: [PATCH] PCI: qcom: Don't deassert reset GPIO during probe

2019-02-19 Thread Lorenzo Pieralisi
On Mon, Feb 18, 2019 at 09:16:03PM -0800, Bjorn Andersson wrote: > On Wed 13 Feb 07:23 PST 2019, Lorenzo Pieralisi wrote: > > > On Fri, Jan 25, 2019 at 03:26:16PM -0800, Bjorn Andersson wrote: > > > Acquiring the reset GPIO low means that reset is being deasserted, this > > > is followed almost im

Re: linux-next: build failure after merge of the asm-generic tree

2019-02-19 Thread Hugo Lefeuvre
> I'm not sending a pull request for this if it breaks any architectures, > so I think we need to fix them all, and I suppose we also have to > change all architectures in the same patch that changes the architecture > independent declaration, so it doesn't break intermittently. > > At this point,

Re: [PATCH] arm64/neon: Disable -Wincompatible-pointer-types when building with Clang

2019-02-19 Thread Greg KH
On Tue, Feb 19, 2019 at 11:35:12AM +0100, Ard Biesheuvel wrote: > On Fri, 15 Feb 2019 at 20:45, Ard Biesheuvel > wrote: > > > > On Fri, 15 Feb 2019 at 20:43, Nick Desaulniers > > wrote: > > > > > > On Fri, Feb 15, 2019 at 11:28 AM Ard Biesheuvel > > > wrote: > > > > > > > > On Fri, 15 Feb 2019

Re: [EXT] Re: [PATCH v2 3/8] net: thunderx: make CFG_DONE message to run through generic send-ack sequence

2019-02-19 Thread Vadim Lomovtsev
Hi David, On Mon, Feb 18, 2019 at 03:33:10PM -0800, David Miller wrote: > From: Vadim Lomovtsev > Date: Mon, 18 Feb 2019 09:52:14 + > > > @@ -169,6 +169,20 @@ static int nicvf_check_pf_ready(struct nicvf *nic) > > return 1; > > } > > > > +static int nicvf_send_cfg_done(struct nicvf *n

Re: [PATCHv6 3/4] pci: layerscape: Add the EP mode support.

2019-02-19 Thread Lorenzo Pieralisi
On Tue, Jan 22, 2019 at 02:33:27PM +0800, Xiaowei Bao wrote: > Add the PCIe EP mode support for layerscape platform. > > Signed-off-by: Xiaowei Bao > Reviewed-by: Minghuan Lian > Reviewed-by: Zhiqiang Hou > Reviewed-by: Kishon Vijay Abraham I > --- > depends on: https://patchwork.kernel.org/pr

Re: [PATCH v2 00/10] Add support for usb on Hikey960

2019-02-19 Thread Valentin Schneider
On 19/02/2019 01:34, Chen Yu wrote: [...] > This patch set based on Heikki Krogerus's patches. > Have you applied https://do-db2.lkml.org/lkml/2019/2/13/106 first? > And these configs should be set to y: > CONFIG_TYPEC > CONFIG_TYPEC_TCPM > CONFIG_TYPEC_TCPCI > CONFIG_TYPEC_

Re: [RFC PATCH] docs/memory-barriers.txt: Rewrite "KERNEL I/O BARRIER EFFECTS" section

2019-02-19 Thread Arnd Bergmann
On Tue, Feb 19, 2019 at 11:27 AM Thomas Petazzoni wrote: > On Mon, 18 Feb 2019 21:37:25 +0100 > Arnd Bergmann wrote: > > > Ah, it seems we actually do that on 32-bit ARM, at least on one platform, > > see 6a02734d420f ("ARM: mvebu: map PCI I/O regions strongly ordered") > > and prior commits. > >

Re: [RFC PATCH] docs/memory-barriers.txt: Rewrite "KERNEL I/O BARRIER EFFECTS" section

2019-02-19 Thread Will Deacon
Hi Thomas, On Tue, Feb 19, 2019 at 11:27:47AM +0100, Thomas Petazzoni wrote: > On Mon, 18 Feb 2019 21:37:25 +0100 > Arnd Bergmann wrote: > > > > > I would say we should strengthen the behavior of outX() where possible. > > > > I don't know if arm64 actually has a way of doing that, my understand

Re: [PATCH] arm64/neon: Disable -Wincompatible-pointer-types when building with Clang

2019-02-19 Thread Ard Biesheuvel
On Tue, 19 Feb 2019 at 12:19, Greg KH wrote: > > On Tue, Feb 19, 2019 at 11:35:12AM +0100, Ard Biesheuvel wrote: > > On Fri, 15 Feb 2019 at 20:45, Ard Biesheuvel > > wrote: > > > > > > On Fri, 15 Feb 2019 at 20:43, Nick Desaulniers > > > wrote: > > > > > > > > On Fri, Feb 15, 2019 at 11:28 AM

Re: [RFC PATCH] docs/memory-barriers.txt: Rewrite "KERNEL I/O BARRIER EFFECTS" section

2019-02-19 Thread Will Deacon
On Tue, Feb 19, 2019 at 12:31:50PM +0100, Arnd Bergmann wrote: > On Tue, Feb 19, 2019 at 11:27 AM Thomas Petazzoni > wrote: > > On Mon, 18 Feb 2019 21:37:25 +0100 > > Arnd Bergmann wrote: > > > > > Ah, it seems we actually do that on 32-bit ARM, at least on one platform, > > > see 6a02734d420f ("

Re: [RFC PATCH net-next v3 12/21] ethtool: provide permanent hardware address in GET_INFO request

2019-02-19 Thread Michal Kubecek
On Tue, Feb 19, 2019 at 11:24:00AM +0100, Jiri Pirko wrote: > Mon, Feb 18, 2019 at 07:22:24PM CET, mkube...@suse.cz wrote: > >Add information about permanent hadware address of a device (as provided by > >ETHTOOL_GPERMADDR ioctl command) in GET_INFO reply if ETH_INFO_IM_PERMADDR > >flag is set in t

Re: [PATCH] sched/x86: Save [ER]FLAGS on context switch

2019-02-19 Thread Thomas Gleixner
On Tue, 19 Feb 2019, Peter Zijlstra wrote: > On Tue, Feb 19, 2019 at 10:04:09AM +0100, Peter Zijlstra wrote: > > > Does that make more sense? > > > > It appears to me you're going about it backwards. > > So how about you do a GCC plugin that verifies limits on code-gen > between user_access_begi

[PATCH 0/2] SPI support for HiFive Unleashed

2019-02-19 Thread Yash Shah
This patch series adds a SPI driver and DT documentation for HiFive Unleashed board. Yash Shah (2): spi: sifive: Add DT documentation for SiFive SPI controller spi: sifive: Add driver for the SiFive SPI controller .../devicetree/bindings/spi/spi-sifive.txt | 37 ++ drivers/spi/Kconf

[PATCH 2/2] spi: sifive: Add driver for the SiFive SPI controller

2019-02-19 Thread Yash Shah
Add driver for the SiFive SPI controller on the HiFive Unleashed board. Signed-off-by: Palmer Dabbelt Signed-off-by: Emil Renner Berthing Signed-off-by: Yash Shah --- drivers/spi/Kconfig | 6 + drivers/spi/Makefile | 1 + drivers/spi/spi-sifive.c | 450

[PATCH 1/2] spi: sifive: Add DT documentation for SiFive SPI controller

2019-02-19 Thread Yash Shah
DT documentation for SPI controller added. Signed-off-by: Palmer Dabbelt Signed-off-by: Emil Renner Berthing Signed-off-by: Yash Shah --- .../devicetree/bindings/spi/spi-sifive.txt | 37 ++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetre

RE: [PATCH v4 3/3] scsi: ufs-bsg: Allow reading descriptors

2019-02-19 Thread Avri Altman
> Avri, > > > Is there any reason why this sires is not applied for 5.1? > > I haven't had time to review it yet. I'll get there... A kind reminder. Thanks, Avri > > -- > Martin K. PetersenOracle Linux Engineering

[PATCH][udf-next] udf: don't call mark_buffer_dirty on a null bh pointer

2019-02-19 Thread Colin King
From: Colin Ian King There is a null check on the pointer bh to avoid a null pointer dereference on bh->b_data however later bh is passed to mark_buffer_dirty that can also cause a null pointer dereference on bh. Avoid this potential null pointer dereference by moving the call to mark_buffer_dir

Re: [PATCH] perf/core: use strndup_user() instead of buggy open-coded version

2019-02-19 Thread Masami Hiramatsu
On Mon, 18 Feb 2019 23:07:23 +0100 Jann Horn wrote: > The first version of this method was missing the check for > `ret == PATH_MAX`; then such a check was added, but it didn't call kfree() > on error, so there was still a small memory leak in the error case. > Fix it by using strndup_user() inst

Applied "SoC: imx-sgtl5000: add missing put_device()" to the asoc tree

2019-02-19 Thread Mark Brown
The patch SoC: imx-sgtl5000: add missing put_device() has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to L

Applied "dt-bindings: regulator: remove regulator pull-down support for stpmic1" to the regulator tree

2019-02-19 Thread Mark Brown
The patch dt-bindings: regulator: remove regulator pull-down support for stpmic1 has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime

Applied "regulator: stpmic1: Remove support for regulator pull down" to the regulator tree

2019-02-19 Thread Mark Brown
The patch regulator: stpmic1: Remove support for regulator pull down has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next

Applied "regulator: core: Drop lockdep annotation in drms_uA_update()" to the regulator tree

2019-02-19 Thread Mark Brown
The patch regulator: core: Drop lockdep annotation in drms_uA_update() has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the ne

Applied "regulator: stpmic1: Simplify regulators registration" to the regulator tree

2019-02-19 Thread Mark Brown
The patch regulator: stpmic1: Simplify regulators registration has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 ho

Applied "regulator: stpmic1: Change buck1 voltage range" to the regulator tree

2019-02-19 Thread Mark Brown
The patch regulator: stpmic1: Change buck1 voltage range has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) a

Applied "dt-bindings: regulator: remove interrupt-parent description on stpmic1" to the regulator tree

2019-02-19 Thread Mark Brown
The patch dt-bindings: regulator: remove interrupt-parent description on stpmic1 has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime

Applied "regulator: stpmic1: Use regulator mode definition from bindings" to the regulator tree

2019-02-19 Thread Mark Brown
The patch regulator: stpmic1: Use regulator mode definition from bindings has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the

Applied "dt-bindings: regulator: Add active discharge support for stpmic1" to the regulator tree

2019-02-19 Thread Mark Brown
The patch dt-bindings: regulator: Add active discharge support for stpmic1 has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in th

Applied "regulator: stpmic1: Add active discharge support" to the regulator tree

2019-02-19 Thread Mark Brown
The patch regulator: stpmic1: Add active discharge support has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours)

[RFC v9 3/5] pstore/blk: add blkoops for pstore_blk

2019-02-19 Thread liaoweixiong
blkoops is a sample for pstore/blk. It can only record oops, excluding panics as no read/write apis for panic registered. It support settings on Kconfg/device tree/module parameters. It can record oops log even power failure if "PSTORE_BLKOOPS_BLKDEV" on Kconfig or "block-device" on dts or "blkdev"

[RFC v9 2/5] dt-bindings: pstore-block: new support for blkoops

2019-02-19 Thread liaoweixiong
Create DT binding document for blkoops. Signed-off-by: liaoweixiong --- .../devicetree/bindings/pstore/blkoops.txt | 53 ++ MAINTAINERS| 1 + 2 files changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindin

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