Re: Regression: commit c9712e333809 breaks xilinx_uartps

2019-09-11 Thread Michal Simek
On 11. 09. 19 19:04, Paul Thomas wrote: > Hello, > > As I was working with a recent 5.2 kernel with a Zynq Ultrascale+ > board I found that the serial console wasn't working with a message > like: > xuartps: probe of ff00.serial failed with error -16 > > I did a git bisect and found that

Re: [PATCH] clk: sprd: add missing kfree

2019-09-11 Thread Chunyan Zhang
gentle ping On Thu, 5 Sep 2019 at 18:30, Chunyan Zhang wrote: > > From: Chunyan Zhang > > The number of config registers for different pll clocks probably are not > same, so we have to use malloc, and should free the memory before return. > > Fixes: 3e37b005580b ("clk: sprd: add adjustable pll

[PATCH] dmaengine: sprd: Fix the link-list pointer register configuration issue

2019-09-11 Thread Baolin Wang
From: Zhenfang Wang We will set the link-list pointer register point to next link-list configuration's physical address, which can load DMA configuration from the link-list node automatically. But the link-list node's physical address can be larger than 32bits, and now Spreadtrum DMA driver

Re: [PATCH v3 3/3] powerpc/prom_init: Use -ffreestanding to avoid a reference to bcmp

2019-09-11 Thread Nathan Chancellor
On Wed, Sep 11, 2019 at 02:01:59PM -0700, Nick Desaulniers wrote: > On Wed, Sep 11, 2019 at 11:21 AM Nathan Chancellor > wrote: > > > > r370454 gives LLVM the ability to convert certain loops into a reference > > to bcmp as an optimization; this breaks prom_init_check.sh: > > > > CALL

[PATCH] s390: remove pointless drivers-y in drivers/s390/Makefile

2019-09-11 Thread Masahiro Yamada
This is unused. Signed-off-by: Masahiro Yamada --- drivers/s390/Makefile | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/s390/Makefile b/drivers/s390/Makefile index a863b0462b43..cde73b6a9afb 100644 --- a/drivers/s390/Makefile +++ b/drivers/s390/Makefile @@ -4,6 +4,3 @@ #

[PATCH V2] ovl: Fix dereferencing possible ERR_PTR()

2019-09-11 Thread Ding Xiang
if ovl_encode_real_fh() fails, no memory was allocated and the error in the error-valued pointer should be returned. V1->V2: fix SHA1 length problem Fixes: 9b6faee07470 ("ovl: check ERR_PTR() return value from ovl_encode_fh()") Signed-off-by: Ding Xiang --- fs/overlayfs/export.c | 2 +- 1 file

Re: [PATCH 5/5] hugetlbfs: Limit wait time when trying to share huge PMD

2019-09-11 Thread Davidlohr Bueso
On Wed, 11 Sep 2019, Matthew Wilcox wrote: On Wed, Sep 11, 2019 at 08:26:52PM -0700, Mike Kravetz wrote: All this got me wondering if we really need to take i_mmap_rwsem in write mode here. We are not changing the tree, only traversing it looking for a suitable vma. Unless I am missing

Klientskie Bazy http://prodawez.tilda.ws/page7270311.html

2019-09-11 Thread linux-kernel
Klientskie Bazy http://prodawez.tilda.ws/page7270311.html

Re: [PATCH V7 3/3] arm64/mm: Enable memory hot remove

2019-09-11 Thread Anshuman Khandual
On 09/10/2019 09:47 PM, Catalin Marinas wrote: > On Tue, Sep 03, 2019 at 03:15:58PM +0530, Anshuman Khandual wrote: >> @@ -770,6 +1022,28 @@ int __meminit vmemmap_populate(unsigned long start, >> unsigned long end, int node, >> void vmemmap_free(unsigned long start, unsigned long end, >>

Klientskie Bazy http://prodawez.tilda.ws/page7270311.html

2019-09-11 Thread linux-kernel
Klientskie Bazy http://prodawez.tilda.ws/page7270311.html

[PATCH] KVM: x86: work around leak of uninitialized stack contents

2019-09-11 Thread Fuqian Huang
Emulation of VMPTRST can incorrectly inject a page fault when passed an operand that points to an MMIO address. The page fault will use uninitialized kernel stack memory as the CR2 and error code. The right behavior would be to abort the VM with a KVM_EXIT_INTERNAL_ERROR exit to userspace;

Re: [PATCH 11/13] nvdimm: Use more common logic testing styles and bare ; positions

2019-09-11 Thread Verma, Vishal L
On Wed, 2019-09-11 at 19:54 -0700, Joe Perches wrote: > Avoid using uncommon logic testing styles to make the code a > bit more like other kernel code. > > e.g.: > if (foo) { > ; > } else { > > } > > is typically written > > if (!foo) { >

[PATCH v2 net 2/3] sctp: remove redundant assignment when call sctp_get_port_local

2019-09-11 Thread Mao Wenan
There are more parentheses in if clause when call sctp_get_port_local in sctp_do_bind, and redundant assignment to 'ret'. This patch is to do cleanup. Signed-off-by: Mao Wenan Acked-by: Neil Horman --- net/sctp/socket.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH v2 net 3/3] sctp: destroy bucket if failed to bind addr

2019-09-11 Thread Mao Wenan
There is one memory leak bug report: BUG: memory leak unreferenced object 0x8881dc4c5ec0 (size 40): comm "syz-executor.0", pid 5673, jiffies 4298198457 (age 27.578s) hex dump (first 32 bytes): 02 00 00 00 81 88 ff ff 00 00 00 00 00 00 00 00 f8 63 3d c1 81 88 ff ff

[PATCH v2 net 1/3] sctp: change return type of sctp_get_port_local

2019-09-11 Thread Mao Wenan
Currently sctp_get_port_local() returns a long which is either 0,1 or a pointer casted to long. It's neither of the callers use the return value since commit 62208f12451f ("net: sctp: simplify sctp_get_port"). Now two callers are sctp_get_port and sctp_do_bind, they actually assumend a casted to

Re: Linux 5.3-rc8

2019-09-11 Thread Ahmed S. Darwish
Hi Ted, On Wed, Sep 11, 2019 at 01:36:24PM -0400, Theodore Y. Ts'o wrote: > On Wed, Sep 11, 2019 at 06:00:19PM +0100, Linus Torvalds wrote: > > [0.231255] random: get_random_bytes called from > > start_kernel+0x323/0x4f5 with crng_init=0 > > > > and that's this code: > > > >

[PATCH v2 net 0/3] fix memory leak for sctp_do_bind

2019-09-11 Thread Mao Wenan
First two patches are to do cleanup, remove redundant assignment, and change return type of sctp_get_port_local. Third patch is to fix memory leak for sctp_do_bind if failed to bind address. --- v2: add one patch to change return type of sctp_get_port_local. --- Mao Wenan (3): sctp: change

Re: [PATCH 5/5] hugetlbfs: Limit wait time when trying to share huge PMD

2019-09-11 Thread Matthew Wilcox
On Wed, Sep 11, 2019 at 08:26:52PM -0700, Mike Kravetz wrote: > All this got me wondering if we really need to take i_mmap_rwsem in write > mode here. We are not changing the tree, only traversing it looking for > a suitable vma. > > Unless I am missing something, the hugetlb code only ever

[PATCH RFC] rtc: Fix the AltCentury value on AMD/Hygon platform

2019-09-11 Thread Jinke Fan
When using following operations: date -s "21190910 19:20:00" hwclock -w to change date from 2019 to 2119 for test, it will fail on Hygon Dhyana and AMD Zen CPUs, while the same operations run ok on Intel i7 platform. MC146818 driver use function mc146818_set_time() to set register

Re: [PATCH 5/5] hugetlbfs: Limit wait time when trying to share huge PMD

2019-09-11 Thread Mike Kravetz
On 9/11/19 8:05 AM, Waiman Long wrote: > When allocating a large amount of static hugepages (~500-1500GB) on a > system with large number of CPUs (4, 8 or even 16 sockets), performance > degradation (random multi-second delays) was observed when thousands > of processes are trying to fault in the

[PATCH] zswap: Add CONFIG_ZSWAP_IO_SWITCH

2019-09-11 Thread Hui Zhu
I use zswap to handle the swap IO issue in a VM that uses a swap file. This VM has 4G memory and 2 CPUs. And I set up 4G swap in /swapfile. This is test script: cat 1.sh ./usemem --sleep 3600 -M -a -n 1 $((3 * 1024 * 1024 * 1024)) & sleep 10 echo 1 > /proc/sys/vm/drop_caches ./usemem -S -f /test2

Re: [PATCH] mm/mmap.c: rb_parent is not necessary in __vma_link_list

2019-09-11 Thread Wei Yang
On Tue, Aug 13, 2019 at 11:26:56AM +0800, Wei Yang wrote: >Now we use rb_parent to get next, while this is not necessary. > >When prev is NULL, this means vma should be the first element in the >list. Then next should be current first one (mm->mmap), no matter >whether we have parent or not. >

Re: [PATCH v3 7/7] mm/gup: Allow VM_FAULT_RETRY for multiple times

2019-09-11 Thread Peter Xu
On Wed, Sep 11, 2019 at 10:47:59AM +0100, Linus Torvalds wrote: > On Wed, Sep 11, 2019 at 8:11 AM Peter Xu wrote: > > > > This is the gup counterpart of the change that allows the > > VM_FAULT_RETRY to happen for more than once. One thing to mention is > > that we must check the fatal signal

RE: [PATCH v5 1/2] dt-bindings: mailbox: add binding doc for the ARM SMC/HVC mailbox

2019-09-11 Thread Peng Fan
> Subject: Re: [PATCH v5 1/2] dt-bindings: mailbox: add binding doc for the ARM > SMC/HVC mailbox > > On Wed, Sep 11, 2019 at 10:03 AM Andre Przywara > wrote: > > > > On Tue, 10 Sep 2019 21:44:11 -0500 > > Jassi Brar wrote: > > > > Hi, > > > > > On Mon, Sep 9, 2019 at 10:42 AM Andre Przywara >

Re: [PATCH 1/1] MAINTAINERS: update FORCEDETH MAINTAINERS info

2019-09-11 Thread Rain River
OK. I will resend this very soon. On Tue, Sep 10, 2019 at 11:50 PM David Miller wrote: > > From: rain.1986.08...@gmail.com > Date: Sat, 7 Sep 2019 16:14:46 +0800 > > > From: Rain River > > > > Many FORCEDETH NICs are used in our hosts. Several bugs are fixed and > > some features are developed

[PATCH 1/2] ARM: dts: imx7d: Correct speed grading fuse settings

2019-09-11 Thread Anson Huang
The 800MHz opp speed grading fuse mask should be 0xd instead of 0xf according to fuse map definition: SPEED_GRADING[1:0] MHz 00 800 01 500 10 1000 11 1200 Signed-off-by: Anson Huang ---

[PATCH 2/2] ARM: dts: imx7d: Add opp-suspend property

2019-09-11 Thread Anson Huang
Add "opp-suspend" property for i.MX7D to make sure system suspend with max available opp. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx7d.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/imx7d.dtsi b/arch/arm/boot/dts/imx7d.dtsi index 0083272..2792767 100644

[PATCH 08/13] nvdimm: Use typical kernel style indentation

2019-09-11 Thread Joe Perches
Make the nvdimm code more like the rest of the kernel. Avoid indentation of labels and spaces where tabs should be used. Signed-off-by: Joe Perches --- drivers/nvdimm/btt.c | 2 +- drivers/nvdimm/region_devs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 09/13] nvdimm: btt.h: Neaten #defines to improve readability

2019-09-11 Thread Joe Perches
Use tab alignment to make the content and macro a bit more intelligible. Use the BIT and BIT_ULL macros. Convert MAP_LBA_MASK to use the already defined shift masks. Signed-off-by: Joe Perches --- drivers/nvdimm/btt.h | 54 ++-- 1 file changed,

[PATCH 13/13] nvdimm: Miscellaneous neatening

2019-09-11 Thread Joe Perches
Random neatening, mostly trivially wrapping to 80 columns, to make the code a bit more kernel style compatible. Use casts to (u64) and not (unsigned long long) Signed-off-by: Joe Perches --- drivers/nvdimm/badrange.c | 3 +- drivers/nvdimm/blk.c| 18 ---

[PATCH 04/13] nvdimm: Use a more common kernel spacing style

2019-09-11 Thread Joe Perches
Use the more common kernel spacing styles per line. git diff -w shows no difference. Signed-off-by: Joe Perches --- drivers/nvdimm/badrange.c | 4 ++-- drivers/nvdimm/blk.c| 2 +- drivers/nvdimm/btt.c| 4 ++-- drivers/nvdimm/btt_devs.c | 2 +-

[PATCH 05/13] nvdimm: Use "unsigned int" in preference to "unsigned"

2019-09-11 Thread Joe Perches
Use the more common kernel type. Signed-off-by: Joe Perches --- drivers/nvdimm/label.c | 2 +- drivers/nvdimm/nd.h| 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/nvdimm/label.c b/drivers/nvdimm/label.c index 2c780c5352dc..5700d9b35b8f 100644 ---

[PATCH 10/13] nvdimm: namespace_devs: Move assignment operators

2019-09-11 Thread Joe Perches
Kernel code uses assignment operators where the statement is split on multiple lines on the first line. Move 2 unusual uses. Signed-off-by: Joe Perches --- drivers/nvdimm/namespace_devs.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH 07/13] nvdimm: Use typical kernel brace styles

2019-09-11 Thread Joe Perches
Make the nvdimm code more like the rest of the kernel code to improve readability. Add balanced braces to multiple test blocks. Remove else statements from blocks where the block above uses return. e.g.: if (foo) { [code...]; return FOO; } else if

[PATCH 06/13] nvdimm: Add and remove blank lines

2019-09-11 Thread Joe Perches
Use a more common kernel style. Remove unnecessary multiple blank lines. Remove blank lines before and after braces. Add blank lines after functions definitions and enums. Add blank lines around #define pr_fmt. Signed-off-by: Joe Perches --- drivers/nvdimm/btt.c| 2 --

[PATCH 12/13] nvdimm: namespace_devs: Change progess typo to progress

2019-09-11 Thread Joe Perches
Typing is hard. Signed-off-by: Joe Perches --- drivers/nvdimm/namespace_devs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvdimm/namespace_devs.c b/drivers/nvdimm/namespace_devs.c index 7a16340f9853..253f07d97b73 100644 --- a/drivers/nvdimm/namespace_devs.c +++

[PATCH 11/13] nvdimm: Use more common logic testing styles and bare ; positions

2019-09-11 Thread Joe Perches
Avoid using uncommon logic testing styles to make the code a bit more like other kernel code. e.g.: if (foo) { ; } else { } is typically written if (!foo) { } Also put bare semicolons before the comment

[PATCH 03/13] nvdimm: Use octal permissions

2019-09-11 Thread Joe Perches
Avoid the use of the S_IRUGO define and use 0444 to improve readability and use a more common kernel style. Signed-off-by: Joe Perches --- drivers/nvdimm/btt.c | 39 ++- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/drivers/nvdimm/btt.c

[PATCH 02/13] nvdimm: Move logical continuations to previous line

2019-09-11 Thread Joe Perches
Make the logical continuation style more like the rest of the kernel. No change in object files. Signed-off-by: Joe Perches --- drivers/nvdimm/btt.c| 9 + drivers/nvdimm/bus.c| 4 ++-- drivers/nvdimm/claim.c | 4 ++-- drivers/nvdimm/dimm_devs.c

Re: [PATCH] mm/memblock: fix typo in memblock doc

2019-09-11 Thread Cao jin
On 9/11/19 10:42 PM, Mike Rapoport wrote: > On Wed, Sep 11, 2019 at 11:08:56AM +0800, Cao jin wrote: >> elaboarte -> elaborate >> architecure -> architecture >> compltes -> completes >> >> Signed-off-by: Cao jin >> --- >> mm/memblock.c | 6 +++--- >> 1 file changed, 3 insertions(+), 3

[PATCH 00/13] nvdimm: Use more common kernel coding style

2019-09-11 Thread Joe Perches
Rather than have a local coding style, use the typical kernel style. Joe Perches (13): nvdimm: Use more typical whitespace nvdimm: Move logical continuations to previous line nvdimm: Use octal permissions nvdimm: Use a more common kernel spacing style nvdimm: Use "unsigned int" in

Re: [PATCH] fs/userfaultfd.c: simplify the calculation of new_flags

2019-09-11 Thread Wei Yang
Ping~ On Tue, Aug 06, 2019 at 01:38:59PM +0800, Wei Yang wrote: >Finally new_flags equals old vm_flags *OR* vm_flags. > >It is not necessary to mask them first. > >Signed-off-by: Wei Yang >--- > fs/userfaultfd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git

Re: [PATCH] dts: arm64: imx8mq: Enable gpu passive throttling

2019-09-11 Thread Guido Günther
Hi, On Wed, Sep 11, 2019 at 07:14:25PM -0700, Guido Günther wrote: > Temperature and hysteresis were picked after the CPU. I pulled that one from the wrong branch so please disregard. I've sent out a v2. Cheers, -- Guido > > Signed-off-by: Guido Günther > --- >

[PATCH v2 3/4] mm: avoid slub allocation while holding list_lock

2019-09-11 Thread Yu Zhao
If we are already under list_lock, don't call kmalloc(). Otherwise we will run into deadlock because kmalloc() also tries to grab the same lock. Fixing the problem by using a static bitmap instead. WARNING: possible recursive locking detected

[PATCH v2 2/4] mm: clean up validate_slab()

2019-09-11 Thread Yu Zhao
The function doesn't need to return any value, and the check can be done in one pass. There is a behavior change: before the patch, we stop at the first invalid free object; after the patch, we stop at the first invalid object, free or in use. This shouldn't matter because the original behavior

[PATCH v2 4/4] mm: lock slub page when listing objects

2019-09-11 Thread Yu Zhao
Though I have no idea what the side effect of such race would be, apparently we want to prevent the free list from being changed while debugging the objects. Signed-off-by: Yu Zhao --- mm/slub.c | 4 1 file changed, 4 insertions(+) diff --git a/mm/slub.c b/mm/slub.c index

[PATCH v2 1/4] mm: correct mask size for slub page->objects

2019-09-11 Thread Yu Zhao
Mask of slub objects per page shouldn't be larger than what page->objects can hold. It requires more than 2^15 objects to hit the problem, and I don't think anybody would. It'd be nice to have the mask fixed, but not really worth cc'ing the stable. Fixes: 50d5c41cd151 ("slub: Do not use frozen

CONFIG_SHUFFLE_PAGE_ALLOCATOR=y lockdep splat (WAS Re: page_alloc.shuffle=1 + CONFIG_PROVE_LOCKING=y = arm64 hang)

2019-09-11 Thread Qian Cai
Adjusted Cc a bit as this looks like more of the scheduler territory. > On Sep 10, 2019, at 3:49 PM, Qian Cai wrote: > > Hmm, it feels like that CONFIG_SHUFFLE_PAGE_ALLOCATOR=y introduces some unique > locking patterns that the lockdep does not like via, > > allocate_slab > shuffle_freelist >

[PATCH] ASoC: Intel: kbl_rt5663_rt5514_max98927: Add dmic format constraint

2019-09-11 Thread Yu-Hsuan Hsu
24 bits recording from DMIC is not supported for KBL platform because the TDM slot between PCH and codec is 16 bits only. We should add a constraint to remove that unsupported format. Signed-off-by: Yu-Hsuan Hsu --- sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c | 3 +++ 1 file changed, 3

[PATCH] dts: arm64: imx8mq: Enable gpu passive throttling

2019-09-11 Thread Guido Günther
Temperature and hysteresis were picked after the CPU. Signed-off-by: Guido Günther --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index

Re: [PATCH net 1/2] sctp: remove redundant assignment when call sctp_get_port_local

2019-09-11 Thread maowenan
On 2019/9/11 22:39, Marcelo Ricardo Leitner wrote: > On Wed, Sep 11, 2019 at 11:30:08AM -0300, Marcelo Ricardo Leitner wrote: >> On Wed, Sep 11, 2019 at 11:30:38AM +0300, Dan Carpenter wrote: >>> On Wed, Sep 11, 2019 at 09:30:47AM +0800, maowenan wrote: On 2019/9/11 3:22, Dan

[PATCH v3] tas2770: add tas2770 smart PA kernel driver

2019-09-11 Thread shifu0704
From: Frank Shi add tas2770 smart PA kernel driver Signed-off-by: Frank Shi --- sound/soc/codecs/Kconfig | 5 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/tas2770.c | 952 + sound/soc/codecs/tas2770.h | 166 4 files changed,

[PATCH] sched: fix migration to invalid cpu in __set_cpus_allowed_ptr

2019-09-11 Thread shikemeng
>From 089dbf0216628ac6ae98742ab90725ca9c2bf201 Mon Sep 17 00:00:00 2001 From: Date: Tue, 10 Sep 2019 09:44:58 -0400 Subject: [PATCH] sched: fix migration to invalid cpu in __set_cpus_allowed_ptr reason: migration to invalid cpu in __set_cpus_allowed_ptr archive path: patches/euleros/sched Oops

I am Mrs.KADI, a widow

2019-09-11 Thread Ms Kadi Balla
Greetings to you and your family, I know that my message will come to you as a surprise, please accept my apology, I am (Mrs.Kadi Balla), a widow from Burkina Faso west African, I am sending this brief letter to solicit your partnership to transfer, seven million five hundred thousand united

Re: [PATCH 02/10] mm,madvise: call soft_offline_page() without MF_COUNT_INCREASED

2019-09-11 Thread Naoya Horiguchi
On Wed, Sep 11, 2019 at 12:27:22PM +0200, David Hildenbrand wrote: > On 10.09.19 12:30, Oscar Salvador wrote: > > From: Naoya Horiguchi > > > > Currently madvise_inject_error() pins the target via get_user_pages_fast. > > The call to get_user_pages_fast is only to get the respective page > > of

[PATCH v7 10/12] thermal: qoriq: Do not report invalid temperature reading

2019-09-11 Thread Andrey Smirnov
Before returning measured temperature data to upper layer we need to make sure that the reading was marked as "valid" to avoid reporting bogus data. Signed-off-by: Andrey Smirnov Reviewed-by: Daniel Lezcano Tested-by: Lucas Stach Cc: Chris Healy Cc: Lucas Stach Cc: Eduardo Valentin Cc:

[PATCH v7 11/12] thermal_hwmon: Add devres wrapper for thermal_add_hwmon_sysfs()

2019-09-11 Thread Andrey Smirnov
Add devres wrapper for thermal_add_hwmon_sysfs() to simplify driver code. Signed-off-by: Andrey Smirnov Reviewed-by: Daniel Lezcano Tested-by: Lucas Stach Cc: Chris Healy Cc: Lucas Stach Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie (Purism) Cc: linux-...@nxp.com Cc:

[PATCH v7 08/12] thermal: qoriq: Convert driver to use regmap API

2019-09-11 Thread Andrey Smirnov
Convert driver to use regmap API, drop custom LE/BE IO helpers and simplify bit manipulation using regmap_update_bits(). This also allows us to convert some register initialization to use loops and adds convenient debug access to TMU registers via debugfs. Signed-off-by: Andrey Smirnov

[PATCH v7 09/12] thermal: qoriq: Enable all sensors before registering them

2019-09-11 Thread Andrey Smirnov
Tmu_get_temp will get called as a part of sensor registration via devm_thermal_zone_of_sensor_register(). To prevent it from retruning bogus data we need to enable sensor monitoring before that. Looking at the datasheet (i.MX8MQ RM) there doesn't seem to be any harm in enabling them all, so, for

[PATCH v7 12/12] thermal: qoriq: Add hwmon support

2019-09-11 Thread Andrey Smirnov
Expose thermal readings as a HWMON device, so that it could be accessed using lm-sensors. Signed-off-by: Andrey Smirnov Reviewed-by: Daniel Lezcano Tested-by: Lucas Stach Cc: Chris Healy Cc: Lucas Stach Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie (Purism) Cc:

[PATCH v7 07/12] thermal: qoriq: Drop unnecessary drvdata cleanup

2019-09-11 Thread Andrey Smirnov
Driver data of underlying struct device will be set to NULL by Linux's driver infrastructure. Clearing it here is unnecessary. Signed-off-by: Andrey Smirnov Cc: Chris Healy Cc: Lucas Stach Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie (Purism) Cc: linux-...@nxp.com Cc:

Re: [PATCH v5 07/13] dt-bindings: pwm: add a property "num-pwms"

2019-09-11 Thread Sam Shih
On Mon, 2019-09-02 at 18:04 +0200, Uwe Kleine-König wrote: > On Tue, Aug 27, 2019 at 01:39:24PM -0500, Rob Herring wrote: > > On Thu, Aug 22, 2019 at 02:58:37PM +0800, Sam Shih wrote: > > > From: Ryder Lee > > > > The subject should indicate this is for Mediatek. > > > > > > > > This adds a

Re: [PATCH 02/10] mm,madvise: call soft_offline_page() without MF_COUNT_INCREASED

2019-09-11 Thread Naoya Horiguchi
Hi David, On Wed, Sep 11, 2019 at 12:23:24PM +0200, David Hildenbrand wrote: > On 10.09.19 12:30, Oscar Salvador wrote: > > From: Naoya Horiguchi > > > > Currently madvise_inject_error() pins the target via get_user_pages_fast. > > The call to get_user_pages_fast is only to get the respective

Re: [PATCH 2/3] mm: avoid slub allocation while holding list_lock

2019-09-11 Thread Yu Zhao
On Thu, Sep 12, 2019 at 03:44:01AM +0300, Kirill A. Shutemov wrote: > On Wed, Sep 11, 2019 at 06:29:28PM -0600, Yu Zhao wrote: > > If we are already under list_lock, don't call kmalloc(). Otherwise we > > will run into deadlock because kmalloc() also tries to grab the same > > lock. > > > >

[PATCH v7 01/12] thermal: qoriq: Add local struct device pointer

2019-09-11 Thread Andrey Smirnov
Use a local "struct device *dev" for brevity. No functional change intended. Signed-off-by: Andrey Smirnov Acked-by: Daniel Lezcano Tested-by: Lucas Stach Cc: Chris Healy Cc: Lucas Stach Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie (Purism) Cc: linux-...@nxp.com Cc:

[PATCH v7 02/12] thermal: qoriq: Don't store struct thermal_zone_device reference

2019-09-11 Thread Andrey Smirnov
Struct thermal_zone_device reference stored as sensor's private data isn't really used anywhere in the code. Drop it. Signed-off-by: Andrey Smirnov Acked-by: Daniel Lezcano Tested-by: Lucas Stach Cc: Chris Healy Cc: Lucas Stach Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie

[PATCH v7 05/12] thermal: qoriq: Pass data to qoriq_tmu_register_tmu_zone() directly

2019-09-11 Thread Andrey Smirnov
Pass all necessary data to qoriq_tmu_register_tmu_zone() directly instead of passing a platform device and then deriving it. This is done as a first step to simplify resource deallocation code. Signed-off-by: Andrey Smirnov Acked-by: Daniel Lezcano Tested-by: Lucas Stach Cc: Chris Healy Cc:

[PATCH v7 00/12] QorIQ TMU multi-sensor and HWMON support

2019-09-11 Thread Andrey Smirnov
Everyone: This series contains patches adding support for HWMON integration, bug fixes and general improvements (hopefully) for TMU driver I made while working on it on i.MX8MQ. Feedback is welcome! Thanks, Andrey Smirnov Changes since [v6]: - Rebased on top of Zhang's "next" branch -

[PATCH v7 06/12] thermal: qoriq: Pass data to qoriq_tmu_calibration() directly

2019-09-11 Thread Andrey Smirnov
We can simplify error cleanup code if instead of passing a "struct platform_device *" to qoriq_tmu_calibration() and deriving a bunch of pointers from it, we pass those pointers directly. This way we won't be force to call platform_set_drvdata() as early in qoriq_tmu_probe() and need to have

[PATCH v7 04/12] thermal: qoriq: Embed per-sensor data into struct qoriq_tmu_data

2019-09-11 Thread Andrey Smirnov
Embed per-sensor data into struct qoriq_tmu_data so we can drop the code allocating it. This also allows us to get rid of per-sensor back reference to struct qoriq_tmu_data since now its address can be calculated using container_of(). Signed-off-by: Andrey Smirnov Cc: Chris Healy Cc: Lucas

[PATCH v7 03/12] thermal: qoriq: Add local struct qoriq_sensor pointer

2019-09-11 Thread Andrey Smirnov
Add local struct qoriq_sensor pointer in qoriq_tmu_register_tmu_zone() for brevity. Signed-off-by: Andrey Smirnov Cc: Chris Healy Cc: Lucas Stach Cc: Zhang Rui Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie (Purism) Cc: linux-...@nxp.com Cc: linux...@vger.kernel.org Cc:

Re: [PATCH 1/4] arm64: Kconfig: Fix XGENE driver dependencies

2019-09-11 Thread Stephen Boyd
Quoting Amit Kucheria (2019-09-11 15:18:45) > diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig > index 801fa1cd0321..9b2790d3f18a 100644 > --- a/drivers/clk/Kconfig > +++ b/drivers/clk/Kconfig > @@ -225,7 +225,7 @@ config CLK_QORIQ > > config COMMON_CLK_XGENE > bool "Clock driver

Re: [PATCH V2 net-next 4/7] net: hns3: fix port setting handle for fibre port

2019-09-11 Thread tanhuazhong
On 2019/9/11 18:16, Sergei Shtylyov wrote: Hello! On 11.09.2019 5:40, Huazhong Tan wrote: From: Guangbin Huang For hardware doesn't support use specified speed and duplex    Can't pasre that. "For hardware that does not support using", perhaps? Yes, thanks. Will check the grammar

Re: [PATCH] ocfs2: fix spelling mistake "ambigous" -> "ambiguous"

2019-09-11 Thread Joseph Qi
On 19/9/12 00:07, Colin King wrote: > From: Colin Ian King > > There is a spelling mistake in a mlog_bug_on_msg message. Fix it. > > Signed-off-by: Colin Ian King Acked-by: Joseph Qi > --- > fs/ocfs2/inode.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: nvme vs. hibernation ( again )

2019-09-11 Thread Ming Lei
On Thu, Sep 12, 2019 at 12:27 AM Gabriel C wrote: > > Hi Christoph, > > I see this was already discussed in 2 threads: > > https://lists.infradead.org/pipermail/linux-nvme/2019-April/023234.html > https://lkml.org/lkml/2019/5/24/668 > > but in latest git the issue still exists. > > I hit that

Re: [PATCH 2/3] mm: avoid slub allocation while holding list_lock

2019-09-11 Thread Kirill A. Shutemov
On Wed, Sep 11, 2019 at 06:29:28PM -0600, Yu Zhao wrote: > If we are already under list_lock, don't call kmalloc(). Otherwise we > will run into deadlock because kmalloc() also tries to grab the same > lock. > > Instead, statically allocate bitmap in struct kmem_cache_node. Given > currently

[PATCH 2/3] mm: avoid slub allocation while holding list_lock

2019-09-11 Thread Yu Zhao
If we are already under list_lock, don't call kmalloc(). Otherwise we will run into deadlock because kmalloc() also tries to grab the same lock. Instead, statically allocate bitmap in struct kmem_cache_node. Given currently page->objects has 15 bits, we bloat the per-node struct by 4K. So we

[PATCH 3/3] mm: lock slub page when listing objects

2019-09-11 Thread Yu Zhao
Though I have no idea what the side effect of a race would be, apparently we want to prevent the free list from being changed while debugging objects in general. Signed-off-by: Yu Zhao --- mm/slub.c | 4 1 file changed, 4 insertions(+) diff --git a/mm/slub.c b/mm/slub.c index

[PATCH 1/3] mm: correct mask size for slub page->objects

2019-09-11 Thread Yu Zhao
Mask of slub objects per page shouldn't be larger than what page->objects can hold. It requires more than 2^15 objects to hit the problem, and I don't think anybody would. It'd be nice to have the mask fixed, but not really worth cc'ing the stable. Fixes: 50d5c41cd151 ("slub: Do not use frozen

Re: [PATCH] powerpc/prom_init: Undo relocation before entering secure mode

2019-09-11 Thread Thiago Jung Bauermann
Thiago Jung Bauermann writes: > The ultravisor will do an integrity check of the kernel image but we > relocated it so the check will fail. Restore the original image by > relocating it back to the kernel virtual base address. > > This works because during build vmlinux is linked with an

[PATCH] nvme-pci: Save PCI state before putting drive into deepest state

2019-09-11 Thread Mario Limonciello
The action of saving the PCI state will cause numerous PCI configuration space reads which depending upon the vendor implementation may cause the drive to exit the deepest NVMe state. In these cases ASPM will typically resolve the PCIe link state and APST may resolve the NVMe power state.

[PATCH 2/3] hv_utils: Support host-initiated hibernation request

2019-09-11 Thread Dexuan Cui
Update the Shutdown IC version to 3.2, which is required for the host to send the hibernation request. The user is expected to create the program "/sbin/hyperv-hibernate", which is called on the host-initiated hibernation request. The program can be a script like test@localhost:~$ cat

[PATCH 1/3] hv_utils: Add the support of hibernation

2019-09-11 Thread Dexuan Cui
On hibernation, Linux can not guarantee the host side utils operations still succeed without any issue, so let's simply cancel the work items. The host is supposed to retry the operations, if necessary. Signed-off-by: Dexuan Cui --- drivers/hv/hv_fcopy.c | 9 - drivers/hv/hv_kvp.c

[PATCH 3/3] hv_utils: Support host-initiated restart request

2019-09-11 Thread Dexuan Cui
To test the code, we should run this command on the host: Restart-VM $vm -Type Reboot Signed-off-by: Dexuan Cui --- drivers/hv/hv_util.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/drivers/hv/hv_util.c b/drivers/hv/hv_util.c index

[PATCH 0/3] Enhance hv_utils to support hibernation

2019-09-11 Thread Dexuan Cui
This patch is basically a pure Hyper-V specific change and it has a build dependency on the commit 271b2224d42f ("Drivers: hv: vmbus: Implement suspend/resume for VSC drivers for hibernation"), which is on Sasha Levin's Hyper-V tree's hyperv-next branch:

[PATCH 4/4] PCI: hv: Change pci_protocol_version to per-hbus

2019-09-11 Thread Dexuan Cui
A VM can have multiple hbus. It looks incorrect for the second hbus's hv_pci_protocol_negotiation() to set the global variable 'pci_protocol_version' (which was set by the first hbus), even if the same value is written. Signed-off-by: Dexuan Cui --- drivers/pci/controller/pci-hyperv.c | 22

[PATCH 0/4] Enhance pci-hyperv to support hibernation

2019-09-11 Thread Dexuan Cui
This patchset is basically a pure Hyper-V specific change and it has a build dependency on the commit 271b2224d42f ("Drivers: hv: vmbus: Implement suspend/resume for VSC drivers for hibernation"), which is on Sasha Levin's Hyper-V tree's hyperv-next branch:

[PATCH 1/4] PCI: hv: Reorganize the code in preparation of hibernation

2019-09-11 Thread Dexuan Cui
There is no functional change. This is just preparatory to a later patch which adds the hibernation support for the pci-hyperv driver. Signed-off-by: Dexuan Cui --- drivers/pci/controller/pci-hyperv.c | 43 - 1 file changed, 28 insertions(+), 15 deletions(-)

[PATCH 3/4] PCI: hv: Do not queue new work items on hibernation

2019-09-11 Thread Dexuan Cui
We must make sure there is no pending work items before we call vmbus_close(). Signed-off-by: Dexuan Cui --- drivers/pci/controller/pci-hyperv.c | 33 ++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/drivers/pci/controller/pci-hyperv.c

[PATCH 2/4] PCI: hv: Add the support of hibernation

2019-09-11 Thread Dexuan Cui
Implement the suspend/resume callbacks for hibernation. hv_pci_suspend() needs to prevent any new work from being queued: a later patch will address this issue. Signed-off-by: Dexuan Cui --- drivers/pci/controller/pci-hyperv.c | 76 + 1 file changed, 76

[PATCH][PATCH net-next] hv_sock: Add the support of hibernation

2019-09-11 Thread Dexuan Cui
Add the necessary dummy callbacks for hibernation. Signed-off-by: Dexuan Cui --- This patch is basically a pure Hyper-V specific change and it has a build dependency on the commit 271b2224d42f ("Drivers: hv: vmbus: Implement suspend/resume for VSC drivers for hibernation"), which is on Sasha

[PATCH][PATCH net-next] hv_netvsc: Add the support of hibernation

2019-09-11 Thread Dexuan Cui
The existing netvsc_detach() and netvsc_attach() APIs make it easy to implement the suspend/resume callbacks. Signed-off-by: Dexuan Cui --- This patch is basically a pure Hyper-V specific change and it has a build dependency on the commit 271b2224d42f ("Drivers: hv: vmbus: Implement

[PATCH] hv_balloon: Add the support of hibernation

2019-09-11 Thread Dexuan Cui
When hibernation is enabled, we must ignore the balloon up/down and hot-add requests from the host, if any. Fow now, if people want to test hibernation, please blacklist hv_balloon or do not enable Dynamic Memory and Memory Resizing. See the comment in balloon_probe() for more info.

[PATCH] Input: hyperv-keyboard: Add the support of hibernation

2019-09-11 Thread Dexuan Cui
We need hv_kbd_pm_notify() to make sure the pm_wakeup_hard_event() call does not prevent the system from entering hibernation: the hibernation is a relatively long process, which can be aborted by the call pm_wakeup_hard_event(), which is invoked upon keyboard events. Signed-off-by: Dexuan Cui

[PATCH] HID: hyperv: Add the support of hibernation

2019-09-11 Thread Dexuan Cui
We need mousevsc_pm_notify() to make sure the pm_wakeup_hard_event() call does not prevent the system from entering hibernation: the hibernation is a relatively long process, which can be aborted by the call pm_wakeup_hard_event(), which is invoked upon mouse events. Signed-off-by: Dexuan Cui

[PATCH] scsi: storvsc: Add the support of hibernation

2019-09-11 Thread Dexuan Cui
When we're in storvsc_suspend(), we're sure the SCSI layer has quiesced the scsi device by scsi_bus_suspend() -> ... -> scsi_device_quiesce(), so the low level SCSI adapter driver only needs to suspend/resume its own state. Signed-off-by: Dexuan Cui --- This patch is basically a pure Hyper-V

Re: [PATCH] gpio: remove explicit comparison with 0

2019-09-11 Thread Linus Walleij
On Sat, Sep 7, 2019 at 6:39 PM Saiyam Doshi wrote: > No need to compare return value with 0. In case of non-zero > return value, the if condition will be true. > > This makes intent a bit more clear to the reader. > "if (x) then", compared to "if (x is not zero) then". > > Signed-off-by: Saiyam

[PATCH] module: Remove leftover '#undef' from export header

2019-09-11 Thread Will Deacon
Commit 7290d5809571 ("module: use relative references for __ksymtab entries") converted the '__put' #define into an assembly macro in asm-generic/export.h but forgot to remove the corresponding '#undef'. Remove the leftover '#undef'. Cc: Ard Biesheuvel Cc: Jessica Yu Signed-off-by: Will Deacon

Re: [PATCH net-next] net: stmmac: pci: Add HAPS support using GMAC5

2019-09-11 Thread David Miller
From: Jose Abreu Date: Mon, 9 Sep 2019 18:54:26 +0200 > Add the support for Synopsys HAPS board that uses GMAC5. > > Signed-off-by: Jose Abreu Applied.

Re: [PATCH v4 2/2] net: phy: dp83867: Add SGMII mode type switching

2019-09-11 Thread David Miller
From: Vitaly Gaiduk Date: Mon, 9 Sep 2019 20:19:24 +0300 > This patch adds ability to switch beetween two PHY SGMII modes. > Some hardware, for example, FPGA IP designs may use 6-wire mode > which enables differential SGMII clock to MAC. > > Signed-off-by: Vitaly Gaiduk Applied.

  1   2   3   4   5   6   7   8   >