Re: [PATCH v3 2/2] dwc: PCI: intel: Intel PCIe RC controller driver

2019-09-11 Thread Dilip Kota
Hi Andrew Murray, On 9/11/2019 6:30 PM, Andrew Murray wrote: On Tue, Sep 10, 2019 at 03:46:17PM +0800, Dilip Kota wrote: Hi Andrew Murray, Please find my response inline. On 9/9/2019 4:31 PM, Andrew Murray wrote: On Mon, Sep 09, 2019 at 02:51:03PM +0800, Dilip Kota wrote: On 9/6/2019 7:20 P

Re: [GIT PULL 1/2] arm64: dts: exynos: Pull for v5.4

2019-09-11 Thread Marek Szyprowski
Hi On 2019-09-12 08:32, Krzysztof Kozlowski wrote: > On Wed, 11 Sep 2019 at 23:07, Arnd Bergmann wrote: >> On Wed, Sep 11, 2019 at 8:36 PM Krzysztof Kozlowski wrote: >>> Hi, >>> >>> Unfortunately the patches were applied right after closing the linux-next. >> Hi Krzysztof, >> >> I took a look at

Re: [UNVERIFIED SENDER] Re: [PATCH v2 3/3] soc: amazon: al-pos: cast to u64 before left shifting

2019-09-11 Thread Shenhar, Talel
On 9/11/2019 5:18 PM, Marc Zyngier wrote: On Tue, 10 Sep 2019 20:05:10 +0100, Talel Shenhar wrote: Fix wrap around for pos errors on addresses above 32 bit. Reported-by: kbuild test robot Signed-off-by: Talel Shenhar --- drivers/soc/amazon/al_pos.c | 2 +- 1 file changed, 1 insertion(+)

Re: [UNVERIFIED SENDER] Re: [PATCH v2 2/3] soc: amazon: al-pos: Introduce Amazon's Annapurna Labs POS driver

2019-09-11 Thread Shenhar, Talel
Hi Marc, On 9/11/2019 5:15 PM, Marc Zyngier wrote: [+James] Hi Talel, On Tue, 10 Sep 2019 20:05:09 +0100, Talel Shenhar wrote: + log1 = readl(pos->mmio_base + AL_POS_ERROR_LOG_1); Do you actually need the implied barriers? I'd expect that relaxed accesses should be enough. You are

Re: [PATCH v2 2/2] reset: Reset controller driver for Intel LGM SoC

2019-09-11 Thread Dilip Kota
Re-sending the mail, because of delivery failure. sorry for the spam. Hi Martin, On 9/6/2019 4:53 AM, Martin Blumenstingl wrote: Hi, On Thu, Sep 5, 2019 at 4:38 AM Chuan Hua, Lei wrote: [...] I'm not surprised that we got some of the IP block layout for the VRX200 RCU "wrong" - all "document

Re: [GIT PULL 1/2] arm64: dts: exynos: Pull for v5.4

2019-09-11 Thread Krzysztof Kozlowski
On Wed, 11 Sep 2019 at 23:07, Arnd Bergmann wrote: > > On Wed, Sep 11, 2019 at 8:36 PM Krzysztof Kozlowski wrote: > > > > Hi, > > > > Unfortunately the patches were applied right after closing the linux-next. > > Hi Krzysztof, > > I took a look at these and am not convinced this is right: > > > 1

[PATCH] mm/mmap.c: remove a never trigger warning in __vma_adjust()

2019-09-11 Thread Wei Yang
The upper level of "if" makes sure (end >= next->vm_end), which means there are only two possibilities: 1) end == next->vm_end 2) end > next->vm_end remove_next is assigned to be (1 + end > next->vm_end). This means if remove_next is 1, end must equal to next->vm_end. The VM_WARN_ON will n

Re: [PATCH 00/13] Modernize Loongson64 Machine

2019-09-11 Thread Matt Turner
On Tue, Aug 27, 2019 at 1:53 AM Jiaxun Yang wrote: > Loongson have a long history of contributing their code to mainline kernel. > However, it seems like recent years, they are focusing on maintain a kernel > by themselves > rather than contribute there code to the community. Do you know more ab

Re: [PATCH V2 net-next 1/7] net: hns3: add ethtool_ops.set_channels support for HNS3 VF driver

2019-09-11 Thread Michal Kubecek
On Wed, Sep 11, 2019 at 10:40:33AM +0800, Huazhong Tan wrote: > From: Guangbin Huang > > This patch adds ethtool_ops.set_channels support for HNS3 VF driver, > and updates related TQP information and RSS information, to support > modification of VF TQP number, and uses current rss_size instead of

RE: [alsa-devel] [PATCH] ASoC: bdw-rt5677: channel constraint support

2019-09-11 Thread Lu, Brent
> > > > The story is Chrome has a tool called alsa_conformance_test which runs > > capture or playback against a PCM port with all possible > > configurations (channel, format, rate) then measure if the sample rate > > is correct. Since the channel max number reported is 4, it tests the > > 4-chann

[PATCH V2 2/2] mm/pgtable/debug: Add test validating architecture page table helpers

2019-09-11 Thread Anshuman Khandual
This adds a test module which will validate architecture page table helpers and accessors regarding compliance with generic MM semantics expectations. This will help various architectures in validating changes to the existing page table helpers or addition of new ones. Test page table and memory p

[PATCH V2 1/2] mm/hugetlb: Make alloc_gigantic_page() available for general use

2019-09-11 Thread Anshuman Khandual
alloc_gigantic_page() implements an allocation method where it scans over various zones looking for a large contiguous memory block which could not have been allocated through the buddy allocator. A subsequent patch which tests arch page table helpers needs such a method to allocate PUD_SIZE sized

[PATCH V2 0/2] mm/debug: Add tests for architecture exported page table helpers

2019-09-11 Thread Anshuman Khandual
This series adds a test validation for architecture exported page table helpers. Patch in the series adds basic transformation tests at various levels of the page table. Before that it exports gigantic page allocation function from HugeTLB. This test was originally suggested by Catalin during arm6

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

2019-09-11 Thread Amir Goldstein
On Thu, Sep 12, 2019 at 8:24 AM Ding Xiang wrote: > > 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()") > Sign

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 thi

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 s

[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 only

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: > > > > CALLarch/po

[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 @@ # obj-

[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 someth

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; however

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 a/net/s

[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 an

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: > > > > add_la

[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 retu

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 takes

[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 RTC_FREQ_SELECT(

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 d

[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. > >Aft

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 here

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 --- arch/arm/boot/dts/im

[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 a/driver

[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, 27

[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 --- drivers/nvdimm/

[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 +- drivers/nvd

[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 --- a/drivers/n

[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 a/drivers/nvdimm/namespace_devs.c

[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 -- drivers/nvdim

[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 +++ b

[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 no

[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 b/dri

[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 deletions(-

[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 prefer

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 a/fs/userfaultfd

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 > --- > arch/arm64/boot/dts/freescale/i

[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 mou

[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 is

[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 baa60dd73942..1c9

[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 pa

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 i

[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 56404

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 Carp

[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, 11

[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 sta

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 a

[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: Danie

[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: linux...@v

[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 Reviewed-b

[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 th

[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: linux-...@nxp.co

[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: linux...@v

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 pro

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 pa

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. > > > > Instea

[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: linux...@v

[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 (Puri

[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: Lu

[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 - A

[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 "platf

[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 Stach

[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: linux-ker

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 f

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 mor

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 a/fs/ocfs

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 on

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 page-

[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 waste

[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 f28072c9f2ce.

[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 pa

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 expect

[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. However

[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 /sbin/hyp

[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 9e98c5d..6d642f5

[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: https://git.kernel.org/pub/scm/linux/kernel/

[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 +

  1   2   3   4   5   6   7   8   >