Re: [PATCH 3/3] powerpc/mm: call H_BLOCK_REMOVE when supported

2019-09-12 Thread Aneesh Kumar K.V
On 8/30/19 5:37 PM, Laurent Dufour wrote: Instead of calling H_BLOCK_REMOVE all the time when the feature is exhibited, call this hcall only when the couple base page size, page size is supported as reported by the TLB Invalidate Characteristics. supported is not actually what we are checking

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

2019-09-12 Thread Miguel Ojeda
On Thu, Sep 12, 2019 at 4:00 PM Jeff Moyer wrote: > > Joe Perches writes: > > > Rather than have a local coding style, use the typical kernel style. > > The coding style isn't that different from the core kernel, and it's > still quite readable. I'd rather avoid the churn and the risk of > intro

RE: [PATCH] ACPICA: make acpi_load_table() return table index

2019-09-12 Thread Moore, Robert
Nikolaus, The ability to unload an ACPI table (especially AML tables such as SSDTs) is in the process of being deprecated in ACPICA -- since it is also deprecated in the current ACPI specification. This is being done because of the difficulty of deleting the namespace entries for the table. FYI

RE: [PATCH 1/2] PCI: dwc: Add support to disable GEN3 equalization

2019-09-12 Thread Gustavo Pimentel
Hi, On Tue, Sep 10, 2019 at 13:25:1, Pankaj Dubey wrote: > From: Anvesh Salveru > > In some platforms, PCIe PHY may have issues which will prevent linkup > to happen in GEN3 or high speed. In case equalization fails, link will > fallback to GEN1. > > Designware controller has support for dis

Re: [Ksummit-discuss] [PATCH v2 3/3] libnvdimm, MAINTAINERS: Maintainer Entry Profile

2019-09-12 Thread Dan Williams
On Thu, Sep 12, 2019 at 4:02 AM Joe Perches wrote: > > (cut down the cc-list) > > On Thu, 2019-09-12 at 03:18 -0700, Joe Perches wrote: > > On Thu, 2019-09-12 at 10:24 +0200, Miguel Ojeda wrote: > > > On Thu, Sep 12, 2019 at 9:43 AM Dan Williams > > > wrote: > > > > Now I come to find that Codin

Re: [PATCH 2/3] powperc/mm: read TLB Block Invalidate Characteristics

2019-09-12 Thread Aneesh Kumar K.V
On 8/30/19 5:37 PM, Laurent Dufour wrote: The PAPR document specifies the TLB Block Invalidate Characteristics which is telling which couple base page size / page size is supported by the H_BLOCK_REMOVE hcall. A new set of feature is added to the mmu_psize_def structure to record per base page s

[PATCH v2 2/5] clk: qcom: hfpll: register as clock provider

2019-09-12 Thread Jorge Ramirez-Ortiz
Make the output of the high frequency pll a clock provider. On the QCS404 this PLL controls cpu frequency scaling. Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Bjorn Andersson Acked-by: Stephen Boyd --- drivers/clk/qcom/hfpll.c |

[PATCH v2 3/5] clk: qcom: hfpll: CLK_IGNORE_UNUSED

2019-09-12 Thread Jorge Ramirez-Ortiz
When COMMON_CLK_DISABLED_UNUSED is set, in an effort to save power and to keep the software model of the clock in line with reality, the framework transverses the clock tree and disables those clocks that were enabled by the firmware but have not been enabled by any device driver. If CPUFREQ is en

[PATCH v2 0/5] Clock changes to support cpufreq on QCS404

2019-09-12 Thread Jorge Ramirez-Ortiz
The following clock changes are required to enable cpufreq support on the QCS404 v2: sboyd review of v1 --- missing cover letter reorder the patchset use clk_parent data to speficy the parent clock dong ignore the clock position abi Jorge Ramirez-Ortiz (5): c

[PATCH v2 5/5] clk: qcom: apcs-msm8916: get parent clock names from DT

2019-09-12 Thread Jorge Ramirez-Ortiz
Allow accessing the parent clock names required for the driver operation by using the device tree node. This permits extending the driver to other platforms without having to modify its source code. For backwards compatibility leave previous values as default. Co-developed-by: Niklas Cassel Sig

[PATCH v2 4/5] clk: qcom: hfpll: use clk_parent_data to specify the parent

2019-09-12 Thread Jorge Ramirez-Ortiz
Extend support to platorms using different parents. Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz --- drivers/clk/qcom/hfpll.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clk/qcom/hfpll.c b/drivers/clk/qcom/hfp

[PATCH v2 1/5] clk: qcom: gcc: limit GPLL0_AO_OUT operating frequency

2019-09-12 Thread Jorge Ramirez-Ortiz
Limit the GPLL0_AO_OUT_MAIN operating frequency as per its hardware specifications. Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Bjorn Andersson Acked-by: Stephen Boyd --- drivers/clk/qcom/clk-alpha-pll.c | 8 drivers/cl

Re: [PATCH v5 0/4] virtio-fs: shared file system for virtual machines

2019-09-12 Thread Miklos Szeredi
On Thu, Sep 12, 2019 at 3:07 PM Miklos Szeredi wrote: > Is this a regression from 9p? Let me answer myself: 9p seems to behave similarly: after suspend/resume it hangs. So added -EOPNOTSUPP + pr_warn() to the freeze function and verified that this fixes the bad behavior. Thanks, Miklos

Re: [PATCH v3] mm/kasan: dump alloc and free stack for page allocator

2019-09-12 Thread Qian Cai
On Thu, 2019-09-12 at 15:53 +0200, Vlastimil Babka wrote: > On 9/11/19 5:19 PM, Qian Cai wrote: > > > > The new config looks redundant and confusing. It looks to me more of a > > document update > > in Documentation/dev-tools/kasan.txt to educate developers to select > > PAGE_OWNER and > > DEBUG

Re: [PATCH v3 2/2] uacce: add uacce driver

2019-09-12 Thread zhangfei
On 2019/9/4 下午8:38, Greg Kroah-Hartman wrote: On Tue, Sep 03, 2019 at 12:14:47PM +0800, Zhangfei Gao wrote: From: Kenneth Lee Uacce (Unified/User-space-access-intended Accelerator Framework) targets to provide Shared Virtual Addressing (SVA) between accelerators and processes. So accelerato

Re: [PATCH] mips: sgi-ip27: switch from DISCONTIGMEM to SPARSEMEM

2019-09-12 Thread Thomas Bogendoerfer
On Thu, Sep 12, 2019 at 03:55:39PM +0200, Thomas Bogendoerfer wrote: > - reserved[0xd] [0x00035bff8000-0x00035bff], > 0x8000 bytes flags: 0x0 > > I have no idea which reservation this is, but it's not from one of the > node data. that's sparsemem's mem_section. And

Re: [PATCH v3] mm/kasan: dump alloc and free stack for page allocator

2019-09-12 Thread Andrey Ryabinin
On 9/12/19 4:53 PM, Vlastimil Babka wrote: > On 9/11/19 5:19 PM, Qian Cai wrote: >> >> The new config looks redundant and confusing. It looks to me more of a >> document update >> in Documentation/dev-tools/kasan.txt to educate developers to select >> PAGE_OWNER and >> DEBUG_PAGEALLOC if neede

Re: [PATCH v3] mm/kasan: dump alloc and free stack for page allocator

2019-09-12 Thread Walter Wu
> extern void __reset_page_owner(struct page *page, unsigned int order); > diff --git a/lib/Kconfig.kasan b/lib/Kconfig.kasan > index 6c9682ce0254..dc560c7562e8 100644 > --- a/lib/Kconfig.kasan > +++ b/lib/Kconfig.kasan > @@ -41,6 +41,8 @@ config KASAN_GENERIC > select SLUB_DEBUG if SLUB >

Re: [PATCH v3 2/2] uacce: add uacce driver

2019-09-12 Thread zhangfei
Hi, Greg Thanks for the careful review. On 2019/9/4 下午8:50, Greg Kroah-Hartman wrote: On Tue, Sep 03, 2019 at 12:14:47PM +0800, Zhangfei Gao wrote: +/** + * uacce_wake_up - Wake up the process who is waiting this queue + * @q the accelerator queue to wake up + */ +void uacce_wake_up(struct uac

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

2019-09-12 Thread Johannes Thumshirn
On 12/09/2019 16:00, Jeff Moyer wrote: > I'd rather avoid the churn and the risk of > introducing regressions. This will also make backports to stable more > of a pain, so it isn't without cost. Dan, is this really something you > want to do? I'm a 100% with Jeff on this! -- Johannes Thumshirn

Re: [GIT PULL] clone3 exit signal fix

2019-09-12 Thread pr-tracker-bot
The pull request you sent on Thu, 12 Sep 2019 15:40:19 +0200: > g...@gitolite.kernel.org:pub/scm/linux/kernel/git/brauner/linux > tags/for-linus-20190912 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/98dcb386e5c3d53da2ed0b14b5930a01c90ad36a Thank you! --

Re: [RFC PATCH] drm/virtio: Export resource handles via DMA-buf API

2019-09-12 Thread Tomasz Figa
Hi Gerd, On Thu, Sep 12, 2019 at 9:38 PM Gerd Hoffmann wrote: > > Hi, > > > To seamlessly enable buffer sharing with drivers using such frameworks, > > make the virtio-gpu driver expose the resource handle as the DMA address > > of the buffer returned from the DMA-buf mapping operation. Arguab

Re: [GIT PULL] x86 fixes

2019-09-12 Thread pr-tracker-bot
The pull request you sent on Thu, 12 Sep 2019 14:57:10 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/95217783b7f6f331e7a6675e0a31fb9a5a1b9a36 Thank you! -- Deet-doot-dot, I am a

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

2019-09-12 Thread Jeff Moyer
Joe Perches writes: > Rather than have a local coding style, use the typical kernel style. The coding style isn't that different from the core kernel, and it's still quite readable. I'd rather avoid the churn and the risk of introducing regressions. This will also make backports to stable more

Re: [Letux-kernel] [RFC PATCH 0/3] Enable 1GHz support on omap36xx

2019-09-12 Thread Adam Ford
On Wed, Sep 11, 2019 at 12:49 PM Adam Ford wrote: > > On Wed, Sep 11, 2019 at 12:43 PM H. Nikolaus Schaller > wrote: > > > > Hi Adam, > > > > > Am 11.09.2019 um 18:01 schrieb H. Nikolaus Schaller : > > > > > >> > > >> Am 11.09.2019 um 17:56 schrieb Adam Ford : > > >> > > >>> There are some subtl

Re: [PATCH v1 0/2] pinctrl: Add new pinctrl/GPIO driver

2019-09-12 Thread Andriy Shevchenko
On Thu, Sep 12, 2019 at 11:11:32AM +0100, Linus Walleij wrote: > Hi Rahul, > > thanks for your patches! > > On Thu, Sep 12, 2019 at 8:59 AM Rahul Tanwar > wrote: > > > This series is to add pinctrl & GPIO controller driver for a new SoC. > > Patch 1 adds pinmux & GPIO controller driver. > > Pat

Re: [PATCH] mips: sgi-ip27: switch from DISCONTIGMEM to SPARSEMEM

2019-09-12 Thread Thomas Bogendoerfer
On Thu, 12 Sep 2019 11:58:33 +0100 Mike Rapoport wrote: > On Wed, Sep 11, 2019 at 04:09:39PM +0200, Thomas Bogendoerfer wrote: > > Does memblocks_present() deal better with the one reserved page per node > > than sparse_memory_present_with_active_regions() ? Or is there a better > > explanation ?

Re: KASAN: slab-out-of-bounds Read in handle_vmptrld

2019-09-12 Thread Vitaly Kuznetsov
syzbot writes: > Hello, > > syzbot found the following crash on: > > HEAD commit:1e3778cb Merge tag 'scsi-fixes' of git://git.kernel.org/pu.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=15bdfc5e60 > kernel config: https://syzkaller.appspot.com/x

Re: [PATCH v3] mm/kasan: dump alloc and free stack for page allocator

2019-09-12 Thread Vlastimil Babka
On 9/11/19 5:19 PM, Qian Cai wrote: > > The new config looks redundant and confusing. It looks to me more of a > document update > in Documentation/dev-tools/kasan.txt to educate developers to select > PAGE_OWNER and > DEBUG_PAGEALLOC if needed. Agreed. But if you want it fully automatic, how

Re: [PATCH 04/11] net: phylink: switch to using fwnode_gpiod_get_index()

2019-09-12 Thread Russell King - ARM Linux admin
On Thu, Sep 12, 2019 at 04:44:29PM +0300, Andy Shevchenko wrote: > On Thu, Sep 12, 2019 at 10:41:43AM +0100, Linus Walleij wrote: > > On Wed, Sep 11, 2019 at 10:51 AM Dmitry Torokhov > > wrote: > > > > > If we are willing to sacrifice the custom label for the GPIO that > > > fwnode_gpiod_get_inde

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

2019-09-12 Thread Haiyang Zhang
> -Original Message- > From: Dexuan Cui > Sent: Wednesday, September 11, 2019 7:38 PM > To: KY Srinivasan ; Haiyang Zhang > ; Stephen Hemminger > ; sas...@kernel.org; da...@davemloft.net; > linux-hyp...@vger.kernel.org; net...@vger.kernel.org; linux- > ker...@vger.kernel.org; Michael Ke

[PATCH v1 0/4] powerpc: Add support for GENERIC_EARLY_IOREMAP

2019-09-12 Thread Christophe Leroy
This series adds support for GENERIC_EARLY_IOREMAP on powerpc. It also adds a warning in the standard ioremap() when it's called before vmalloc is available in order to help locate those users. Next step will be to incrementaly migrate all early users of ioremap() to using early_ioremap() or othe

[PATCH v1 2/4] powerpc/fixmap: Use __fix_to_virt() instead of fix_to_virt()

2019-09-12 Thread Christophe Leroy
Modify back __set_fixmap() to using __fix_to_virt() instead of fix_to_virt() otherwise the following happens because it seems GCC doesn't see idx as a builtin const. CC mm/early_ioremap.o In file included from ./include/linux/kernel.h:11:0, from mm/early_ioremap.c:11: In fu

[PATCH v1 4/4] powerpc/ioremap: warn on early use of ioremap()

2019-09-12 Thread Christophe Leroy
Powerpc now has EARLY_IOREMAP. Next step is to convert all early users of ioremap() to early_ioremap(). Add a warning to help locate those users. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/ioremap_32.c | 1 + arch/powerpc/mm/ioremap_64.c | 2 ++ 2 files changed, 3 insertions(+) diff

[PATCH v1 3/4] powerpc: Add support for GENERIC_EARLY_IOREMAP

2019-09-12 Thread Christophe Leroy
Add support for GENERIC_EARLY_IOREMAP. Let's define 16 slots of 256Kbytes each for early ioremap. Signed-off-by: Christophe Leroy --- arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/Kbuild | 1 + arch/powerpc/include/asm/fixmap.h | 12 arch/powerpc/kernel/setu

[PATCH v1 1/4] powerpc/fixmap: don't clear fixmap area in paging_init()

2019-09-12 Thread Christophe Leroy
fixmap is intended to map things permanently like the IMMR region on FSL SOC (8xx, 83xx, ...), so don't clear it when initialising paging() Signed-off-by: Christophe Leroy --- arch/powerpc/mm/mem.c | 8 1 file changed, 8 deletions(-) diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm

Re: [PATCH] powerpc/mm/radix: remove useless kernel messages

2019-09-12 Thread Qian Cai
Michael, Aneesh, please take a take at this trivial patch. On Fri, 2019-08-23 at 10:22 -0400, Qian Cai wrote: > Booting a POWER9 PowerNV system generates a few messages below with > "ptrval" due to the pointers printed without a specifier > extension (i.e unadorned %p) are hashed to preven

Re: [RFC PATCH 4/4] Fix: sched/membarrier: p->mm->membarrier_state racy load (v2)

2019-09-12 Thread Will Deacon
On Tue, Sep 10, 2019 at 05:48:02AM -0400, Mathieu Desnoyers wrote: > - On Sep 8, 2019, at 5:51 PM, Linus Torvalds > torva...@linux-foundation.org wrote: > > > On Sun, Sep 8, 2019 at 6:49 AM Mathieu Desnoyers > > wrote: > >> > >> +static void sync_runqueues_membarrier_state(struct mm_struct *

Re: [PATCH] usnic: avoid overly large buffers on stack

2019-09-12 Thread Jason Gunthorpe
On Fri, Sep 06, 2019 at 05:57:17PM +0200, Arnd Bergmann wrote: > It's never a good idea to put a 1000-byte buffer on the kernel > stack. The compiler warns about this instance when usnic_ib_log_vf() > gets inlined into usnic_ib_pci_probe(): > > drivers/infiniband/hw/usnic/usnic_ib_main.c:543:12: e

Re: linux-next: manual merge of the configfs tree with the vfs-fixes tree

2019-09-12 Thread Christoph Hellwig
On Thu, Sep 12, 2019 at 11:44:12PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the configfs tree got a conflict in: > > fs/configfs/symlink.c > > between commit: > > e272d4fb74d6 ("configfs: fix a deadlock in configfs_symlink()") > > from the vfs-fixes tree and

Re: [PATCH] pinctrl: at91-pio4: implement .get_multiple and .set_multiple

2019-09-12 Thread Linus Walleij
On Wed, Sep 11, 2019 at 10:11 AM Alexandre Belloni wrote: > On 11/09/2019 01:27:10+0100, Linus Walleij wrote: > > > +#if ATMEL_PIO_NPINS_PER_BANK != BITS_PER_LONG > > > > Should it not be > rather than != ? > > Realistically, the only case that could happen would be > ATMEL_PIO_NPINS_PER_BANK ==

Re: [PATCH 0/3] powerpc/mm: Conditionally call H_BLOCK_REMOVE

2019-09-12 Thread Aneesh Kumar K.V
On 8/30/19 5:37 PM, Laurent Dufour wrote: Since the commit ba2dd8a26baa ("powerpc/pseries/mm: call H_BLOCK_REMOVE"), the call to H_BLOCK_REMOVE is always done if the feature is exhibited. On some system, the hypervisor may not support all the combination of segment base page size and page size.

Re: [PATCH 04/11] net: phylink: switch to using fwnode_gpiod_get_index()

2019-09-12 Thread Andy Shevchenko
On Thu, Sep 12, 2019 at 10:41:43AM +0100, Linus Walleij wrote: > On Wed, Sep 11, 2019 at 10:51 AM Dmitry Torokhov > wrote: > > > If we are willing to sacrifice the custom label for the GPIO that > > fwnode_gpiod_get_index() allows us to set, then there are several > > drivers that could actually

linux-next: manual merge of the configfs tree with the vfs-fixes tree

2019-09-12 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the configfs tree got a conflict in: fs/configfs/symlink.c between commit: e272d4fb74d6 ("configfs: fix a deadlock in configfs_symlink()") from the vfs-fixes tree and commit: 351e5d869e5a ("configfs: fix a deadlock in configfs_symlink()") from the co

Re: [PATCH v2 1/5] pinctrl: mediatek: Check gpio pin number and use binary search in mtk_hw_pin_field_lookup()

2019-09-12 Thread Linus Walleij
On Thu, Sep 5, 2019 at 7:00 AM Light Hsieh wrote: > v2 is the same as v1 except that commit message is corrected according > to Linus' comment for v1: > > 1. remove Change-Id lines > 2. correct sysfs as debugfs Patches applied with Sean's ACK. Yours, Linus Walleij

[GIT PULL] clone3 exit signal fix

2019-09-12 Thread Christian Brauner
ommit f74c2bb98776e2de508f4d607cd519873065118e: Linux 5.3-rc8 (2019-09-08 13:33:15 -0700) are available in the Git repository at: g...@gitolite.kernel.org:pub/scm/linux/kernel/git/brauner/linux tags/for-linus-20190912 for you to fetch changes up to a0eb9abd8af92d1aa34bc1e24dfbd1ba0bd6a56c: fork: block invalid exit signals

Re: [PATCH 1/3] powerpc/mm: Initialize the HPTE encoding values

2019-09-12 Thread Aneesh Kumar K.V
On 8/30/19 5:37 PM, Laurent Dufour wrote: Before reading the HPTE encoding values we initialize all of them to -1 (an invalid value) to later being able to detect the initialized ones. Signed-off-by: Laurent Dufour --- arch/powerpc/mm/book3s64/hash_utils.c | 8 ++-- 1 file changed, 6 ins

Re: Regression in 5.1.20: Reading long directory fails

2019-09-12 Thread Benjamin Coddington
On 12 Sep 2019, at 9:25, Trond Myklebust wrote: > On Thu, 2019-09-12 at 09:13 -0400, J. Bruce Fields wrote: >> (Unless I'm missing something. I haven't looked at this code in a >> while. Though it was problem me that wrote it originally--apologies >> for >> that) >> > > The function itself i

Re: [PATCH -next] RDMA/hns: use devm_platform_ioremap_resource() to simplify code

2019-09-12 Thread Jason Gunthorpe
On Fri, Sep 06, 2019 at 10:17:27PM +0800, YueHaibing wrote: > Use devm_platform_ioremap_resource() to simplify the code a bit. > This is detected by coccinelle. > > Signed-off-by: YueHaibing > --- > drivers/infiniband/hw/hns/hns_roce_hw_v1.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletion

Re: memory leak in ppp_write

2019-09-12 Thread Takeshi Misawa
#syz test: https://github.com/google/kasan.git 6525771f >From e4ff0d04a4b8dd6da3dfb9135235ae5360ce86e6 Mon Sep 17 00:00:00 2001 From: Takeshi Misawa Date: Wed, 11 Sep 2019 22:18:43 +0900 Subject: [PATCH] ppp: Fix memory leak in ppp_write When ppp is closing, __ppp_xmit_process() failed to enqueu

Re: [Ksummit-discuss] [PATCH v2 0/3] Maintainer Entry Profiles

2019-09-12 Thread Bart Van Assche
On 9/11/19 5:40 PM, Martin K. Petersen wrote: > * Do not use custom To: and Cc: for individual patches. We want to see the > whole series, even patches that potentially need to go through a different > subsystem tree. Hi Martin, Thanks for having written this summary. This is very helpful. Fo

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

2019-09-12 Thread Jessica Yu
+++ Will Deacon [12/09/19 00:00 +0100]: 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 C

[PATCH] hw_random: move add_early_randomness() out of rng_mutex

2019-09-12 Thread Laurent Vivier
add_early_randomness() is called every time a new rng backend is added and every time it is set as the current rng provider. add_early_randomness() is called from functions locking rng_mutex, and if it hangs all the hw_random framework hangs: we can't read sysfs, add or remove a backend. This pat

Re: [PATCH] platform/x86: dell-laptop: fix phantom kbd backlight on Inspiron 10xx

2019-09-12 Thread Andy Shevchenko
+Cc: Mario On Thu, Sep 12, 2019 at 10:34 AM Pali Rohár wrote: > > On Thursday 12 September 2019 01:14:48 Pacien TRAN-GIRARD wrote: > > This patch registers a quirk disabling keyboard backlight support > > for the Dell Inspiron 1012 and 1018. > > > > Those models wrongly report supporting the KBD_

[PATCH] powerpc/8xx: use the fixmapped IMMR in cpm_reset()

2019-09-12 Thread Christophe Leroy
Since commit f86ef74ed919 ("powerpc/8xx: Fix vaddr for IMMR early remap"), the IMMR area has been mapped at startup with fixmap. Use that fixmap directly instead of calling ioremap(), this avoids calling ioremap() early before the slab is available. Signed-off-by: Christophe Leroy --- arch/powe

[PATCH v4 1/2] ethtool: implement Energy Detect Powerdown support via phy-tunable

2019-09-12 Thread Alexandru Ardelean
The `phy_tunable_id` has been named `ETHTOOL_PHY_EDPD` since it looks like this feature is common across other PHYs (like EEE), and defining `ETHTOOL_PHY_ENERGY_DETECT_POWER_DOWN` seems too long. The way EDPD works, is that the RX block is put to a lower power mode, except for link-pulse detection

[PATCH v4 2/2] net: phy: adin: implement Energy Detect Powerdown mode via phy-tunable

2019-09-12 Thread Alexandru Ardelean
This driver becomes the first user of the kernel's `ETHTOOL_PHY_EDPD` phy-tunable feature. EDPD is also enabled by default on PHY config_init, but can be disabled via the phy-tunable control. When enabling EDPD, it's also a good idea (for the ADIN PHYs) to enable TX periodic pulses, so that in cas

[PATCH v4 0/2] ethtool: implement Energy Detect Powerdown support via phy-tunable

2019-09-12 Thread Alexandru Ardelean
This changeset proposes a new control for PHY tunable to control Energy Detect Power Down. The `phy_tunable_id` has been named `ETHTOOL_PHY_EDPD` since it looks like this feature is common across other PHYs (like EEE), and defining `ETHTOOL_PHY_ENERGY_DETECT_POWER_DOWN` seems too long. The wa

Re: Regression in 5.1.20: Reading long directory fails

2019-09-12 Thread Trond Myklebust
On Thu, 2019-09-12 at 09:13 -0400, J. Bruce Fields wrote: > (Unless I'm missing something. I haven't looked at this code in a > while. Though it was problem me that wrote it originally--apologies > for > that) > The function itself is fine. It was just the name I'm objecting to, since we're

Re: [PATCH] RDMA/cma: fix false error message

2019-09-12 Thread Jason Gunthorpe
On Mon, Sep 02, 2019 at 11:27:31AM +0200, Håkon Bugge wrote: > In addr_handler(), assuming status == 0 and the device already has > been acquired (id_priv->cma_dev != NULL), we get the following > incorrect "error" message: > > RDMA CM: ADDR_ERROR: failed to resolve IP. status 0 > > Signed-off-by

[PATCH] powerpc/8xx: add __init to cpm1 init functions

2019-09-12 Thread Christophe Leroy
Functions cpm1_clk_setup(), cpm1_set_pin(), cpm_pic_init() and mpc8xx_pic_init() are only called from __init functions, so mark them __init as well. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/cpm1.c | 10 +- arch/powerpc/platforms/8xx/pic.c | 2 +- 2 files changed,

Re: [PATCH 00/10] Hwpoison soft-offline rework

2019-09-12 Thread Oscar Salvador
> It's available on https://github.com/Naoya-Horiguchi/mm_regression. > The README is a bit obsolete (sorry about that ...,) but you can run > the testcase like below: > > $ git clone https://github.com/Naoya-Horiguchi/mm_regression > $ cd mm_regression > mm_regression $ git clone https://gi

Re: Regression in 5.1.20: Reading long directory fails

2019-09-12 Thread Trond Myklebust
On Thu, 2019-09-12 at 09:08 -0400, Benjamin Coddington wrote: > On 12 Sep 2019, at 8:53, Trond Myklebust wrote: > > Let's please just scrap this function and rewrite it as a generic > > function for reading the MIC. It clearly is not a generic function > > for > > reading arbitrary netobjs, and mod

Re: Regression in 5.1.20: Reading long directory fails

2019-09-12 Thread J. Bruce Fields
On Thu, Sep 12, 2019 at 09:08:51AM -0400, Benjamin Coddington wrote: > > On 12 Sep 2019, at 8:53, Trond Myklebust wrote: > > Let's please just scrap this function and rewrite it as a generic > > function for reading the MIC. It clearly is not a generic function for > > reading arbitrary netobjs, a

Re: [PATCH] arm64: fix function types in COND_SYSCALL

2019-09-12 Thread Will Deacon
On Wed, Sep 11, 2019 at 04:15:46PM +0100, Mark Rutland wrote: > On Tue, Sep 10, 2019 at 03:40:44PM -0700, Sami Tolvanen wrote: > > Define a weak function in COND_SYSCALL instead of a weak alias to > > sys_ni_syscall, which has an incompatible type. This fixes indirect > > call mismatches with Contr

Re: [Ksummit-discuss] [PATCH v2 0/3] Maintainer Entry Profiles

2019-09-12 Thread Bart Van Assche
On 9/11/19 4:48 PM, Dan Williams wrote: > At last years Plumbers Conference I proposed the Maintainer Entry > Profile as a document that a maintainer can provide to set contributor > expectations and provide fodder for a discussion between maintainers > about the merits of different maintainer poli

Re: Regression in 5.1.20: Reading long directory fails

2019-09-12 Thread Benjamin Coddington
On 12 Sep 2019, at 8:53, Trond Myklebust wrote: > Let's please just scrap this function and rewrite it as a generic > function for reading the MIC. It clearly is not a generic function for > reading arbitrary netobjs, and modifications like the above just make > the misnomer painfully obvious. >

Re: [PATCH v5 0/4] virtio-fs: shared file system for virtual machines

2019-09-12 Thread Miklos Szeredi
On Thu, Sep 12, 2019 at 2:54 PM Stefan Hajnoczi wrote: > > On Thu, Sep 12, 2019 at 10:14:11AM +0200, Miklos Szeredi wrote: > > On Wed, Sep 11, 2019 at 5:54 PM Stefan Hajnoczi wrote: > > > > > > On Tue, Sep 10, 2019 at 05:12:02PM +0200, Miklos Szeredi wrote: > > > > I've folded the series from Viv

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

2019-09-12 Thread Pierre-Louis Bossart
On 9/12/19 1:00 AM, Lu, Brent wrote: 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 t

Re: [PATCH] PCI: dwc: fix find_next_bit() usage

2019-09-12 Thread Andrew Murray
On Wed, Sep 04, 2019 at 06:03:38PM +0200, Niklas Cassel wrote: > find_next_bit() takes a parameter of size long, and performs arithmetic > that assumes that the argument is of size long. > > Therefore we cannot pass a u32, since this will cause find_next_bit() > to read outside the stack buffer an

[PATCH v6 7/7] PCI: dwc: Add validation that PCIe core is set to correct mode

2019-09-12 Thread Jonathan Chocron
Some PCIe controllers can be set to either Host or EP according to some early boot FW. To make sure there is no discrepancy (e.g. FW configured the port to EP mode while the DT specifies it as a host bridge or vice versa), a check has been added for each mode. Signed-off-by: Jonathan Chocron Acke

[PATCH v6 6/7] PCI: dwc: al: Add Amazon Annapurna Labs PCIe controller driver

2019-09-12 Thread Jonathan Chocron
This driver is DT based and utilizes the DesignWare APIs. It allows using a smaller ECAM range for a larger bus range - usually an entire bus uses 1MB of address space, but the driver can use it for a larger number of buses. This is achieved by using a HW mechanism which allows changing the BUS pa

[PATCH v6 5/7] dt-bindings: PCI: Add Amazon's Annapurna Labs PCIe host bridge binding

2019-09-12 Thread Jonathan Chocron
Document Amazon's Annapurna Labs PCIe host bridge. Signed-off-by: Jonathan Chocron Reviewed-by: Andrew Murray Reviewed-by: Rob Herring --- .../devicetree/bindings/pci/pcie-al.txt | 46 +++ MAINTAINERS | 3 +- 2 files changed, 48 insertio

Re: [PATCH v3 10/11] arm64: dts: layerscape: Add PCIe EP node for ls1088a

2019-09-12 Thread Andrew Murray
On Tue, Sep 03, 2019 at 02:01:32AM +, Xiaowei Bao wrote: > > > > -Original Message- > > From: Andrew Murray > > Sent: 2019年9月2日 21:06 > > To: Xiaowei Bao > > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; Leo > > Li ; kis...@ti.com; lorenzo.pieral...@arm.com; M.h

[PATCH v6 4/7] PCI: Add quirk to disable MSI-X support for Amazon's Annapurna Labs Root Port

2019-09-12 Thread Jonathan Chocron
The Root Port (identified by [1c36:0031]) doesn't support MSI-X. On some platforms it is configured to not advertise the capability at all, while on others it (mistakenly) does. This causes a panic during initialization by the pcieport driver, since it tries to configure the MSI-X capability. Speci

[PATCH v6 1/7] PCI: Add Amazon's Annapurna Labs vendor ID

2019-09-12 Thread Jonathan Chocron
Add Amazon's Annapurna Labs vendor ID to pci_ids.h. Signed-off-by: Jonathan Chocron Acked-by: Bjorn Helgaas Reviewed-by: Andrew Murray --- include/linux/pci_ids.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index f59a6f98900c..f313054

[PATCH v6 2/7] PCI: Add ACS quirk for Amazon Annapurna Labs root ports

2019-09-12 Thread Jonathan Chocron
From: Ali Saidi The Amazon's Annapurna Labs root ports don't advertise an ACS capability, but they don't allow peer-to-peer transactions and do validate bus numbers through the SMMU. Additionally, it's not possible for one RP to pass traffic to another RP. Signed-off-by: Ali Saidi Signed-off-by

Re: [alsa-devel] [PATCH] ASoC: Intel: kbl_rt5663_rt5514_max98927: Add dmic format constraint

2019-09-12 Thread Pierre-Louis Bossart
On 9/11/19 9:27 PM, Yu-Hsuan Hsu wrote: 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. Humm, when you use DMICs they are directly connected to the PCH with a

[PATCH v6 3/7] PCI/VPD: Prevent VPD access for Amazon's Annapurna Labs Root Port

2019-09-12 Thread Jonathan Chocron
The Amazon Annapurna Labs PCIe Root Port exposes the VPD capability, but there is no actual support for it. Trying to access the VPD (for example, as part of lspci -vv or when reading the vpd sysfs file), results in the following warning print: pcieport 0001:00:00.0: VPD access failed. This is

[PATCH v6 0/7] Amazon's Annapurna Labs DT-based PCIe host controller driver

2019-09-12 Thread Jonathan Chocron
This series adds support for Amazon's Annapurna Labs DT-based PCIe host controller driver. Additionally, it adds 3 quirks (ACS, VPD and MSI-X) and 2 generic DWC patches. Changes since v5: - Modified commit subject of PATCH 6/7 - Removed timestamps from commit message of PATCH 4/7 - Modified ACS qu

Re: [PATCH v3 11/11] misc: pci_endpoint_test: Add LS1088a in pci_device_id table

2019-09-12 Thread Andrew Murray
On Tue, Sep 03, 2019 at 01:52:30AM +, Xiaowei Bao wrote: > > > > -Original Message- > > From: Andrew Murray > > Sent: 2019年9月2日 20:55 > > To: Xiaowei Bao > > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; Leo > > Li ; kis...@ti.com; lorenzo.pieral...@arm.com; M.h

[Patch 1/6] media: i2c: ov2659: Fix for image wrap-around in lower resolution

2019-09-12 Thread Benoit Parrot
Based on recently found sensor configuration examples, it was discovered that when scaling and binning are used for the lower resolutions (i.e. 640x480, 320x240) the read offset has to be increased otherwise the image appears to be wrapped around. Signed-off-by: Benoit Parrot Signed-off-by: Jyri

[Patch 3/6] media: dt-bindings: ov2659: add powerdown-gpios optional property

2019-09-12 Thread Benoit Parrot
Add powerdown-gpios to the list of optional properties for the OV2659 camera sensor. Signed-off-by: Benoit Parrot --- Documentation/devicetree/bindings/media/i2c/ov2659.txt | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/ov2659.txt b/Documen

[Patch 2/6] media: i2c: ov2659: Fix sensor detection to actually fail when device is not present

2019-09-12 Thread Benoit Parrot
Make sure that if the expected sensor device id register is not recognized properly the failure is propagated up so devices are not left partially initialized. Signed-off-by: Benoit Parrot Signed-off-by: Jyri Sarha --- drivers/media/i2c/ov2659.c | 5 +++-- 1 file changed, 3 insertions(+), 2 del

[Patch 6/6] media: i2c: ov2659: Switch to SPDX Licensing

2019-09-12 Thread Benoit Parrot
Switch to SPDX licensing and drop the redundant GPL text. Signed-off-by: Benoit Parrot --- drivers/media/i2c/ov2659.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/media/i2c/ov2659.c b/drivers/media/i2c/ov2659.c index fbe624457fbc..946bed29900a 100644

[Patch 4/6] media: i2c: ov2659: Add optional powerdown gpio handling

2019-09-12 Thread Benoit Parrot
On some board it is possible that the sensor 'powerdown' pin might be controlled with a gpio instead of being tied to always powered. This patch add support to specify an optional gpio which will be set at probe time and remained on. Signed-off-by: Benoit Parrot --- drivers/media/i2c/Kconfig |

[Patch 0/6] media: i2c: ov2659: maintenance series

2019-09-12 Thread Benoit Parrot
This patch series is a collection of patches we have been carrying for a while. It includes a few sensor register fixes which would cause visual artifacts at lower resolution and also at 720p. Also on some board the 'powerdown' is not tied to always on so we add support for an optional powerdown

[Patch 5/6] media: i2c: ov2659: Fix missing 720p register config

2019-09-12 Thread Benoit Parrot
The initial registers sequence is only loaded at probe time. Afterward only the resolution and format specific register are modified. Care must be taken to make sure registers modified by one resolution setting are reverted back when another resolution is programmed. This was not done properly for

[GIT PULL] x86 fixes

2019-09-12 Thread Ingo Molnar
Linus, Please pull the latest x86-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-for-linus # HEAD: afa8b475c1aec185a8e106c48b3832e0b88bc2de x86/timer: Force PIT initialization when !X86_FEATURE_ARAT A KVM guest fix, and a kdump kerne

Re: [RFC 1/2] mmc: sdhci-msm: Add support for bus bandwidth voting

2019-09-12 Thread Georgi Djakov
Hi Pradeep, Thanks for the patch! On 9/6/19 15:47, Pradeep P V K wrote: > Vote for the MSM bus bandwidth required by SDHC driver > based on the clock frequency and bus width of the card. > Otherwise,the system clocks may run at minimum clock speed > and thus affecting the performance. > > This c

Re: Re: [PATCH] tee: fix kasan check slab-out-of-bounds error.

2019-09-12 Thread Jens Wiklander
Hi Gary, On Thu, Sep 12, 2019 at 1:18 PM chunguo.f...@amlogic.com wrote: > > Hi Jens, > Thanks for your reminder > > This issue can be reproduced easily. I have exectued tee_preload_fw, it was > occured. If not , it was not reporduced. > > Other, the place of slab-out-of-bounds was unchangeabl

Re: [PATCH v5 6/7] PCI: dwc: al: Add support for DW based driver type

2019-09-12 Thread Chocron, Jonathan
On Sat, 2019-09-07 at 11:55 -0500, Bjorn Helgaas wrote: > s/Add support for DW based driver type/Add Amazon Annapurna Labs PCIe > controller driver/ > Ack. > On Thu, Sep 05, 2019 at 05:01:43PM +0300, Jonathan Chocron wrote: > > This driver is DT based and utilizes the DesignWare APIs. > > > > It

Re: [PATCH v5 0/4] virtio-fs: shared file system for virtual machines

2019-09-12 Thread Stefan Hajnoczi
On Thu, Sep 12, 2019 at 10:14:11AM +0200, Miklos Szeredi wrote: > On Wed, Sep 11, 2019 at 5:54 PM Stefan Hajnoczi wrote: > > > > On Tue, Sep 10, 2019 at 05:12:02PM +0200, Miklos Szeredi wrote: > > > I've folded the series from Vivek and fixed a couple of TODO comments > > > myself. AFAICS two iss

Re: Regression in 5.1.20: Reading long directory fails

2019-09-12 Thread Trond Myklebust
On Thu, 2019-09-12 at 08:29 -0400, Benjamin Coddington wrote: > On 11 Sep 2019, at 13:54, Chuck Lever wrote: > > > > On Sep 11, 2019, at 1:50 PM, Benjamin Coddington > > > wrote: > > > > > > On 11 Sep 2019, at 13:40, Benjamin Coddington wrote: > > > > > > > On 11 Sep 2019, at 13:29, Chuck Leve

Re: [PATCH v3 09/11] PCI: layerscape: Add EP mode support for ls1088a and ls2088a

2019-09-12 Thread Andrew Murray
On Tue, Sep 03, 2019 at 01:47:36AM +, Xiaowei Bao wrote: > > > > -Original Message- > > From: Andrew Murray > > Sent: 2019年9月2日 20:46 > > To: Xiaowei Bao > > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; Leo > > Li ; kis...@ti.com; lorenzo.pieral...@arm.com; M.h

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

2019-09-12 Thread Leonard Crestez
On 2019-09-12 5:57 AM, Anson Huang wrote: > Add "opp-suspend" property for i.MX7D to make sure system > suspend with max available opp. > > Signed-off-by: Anson Huang Reviewed-by: Leonard Crestez

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

2019-09-12 Thread Leonard Crestez
On 2019-09-12 5:57 AM, Anson Huang wrote: > 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 > > S

Re: [PATCH 1/2] PCI: dwc: Add support to disable GEN3 equalization

2019-09-12 Thread Andrew Murray
On Thu, Sep 12, 2019 at 05:09:41PM +0530, Pankaj Dubey wrote: > > > > From: Andrew Murray > > > > On Tue, Sep 10, 2019 at 09:46:28PM +0530, Pankaj Dubey wrote: > > > On Tue, 10 Sep 2019 at 19:56, Andrew Murray > > wrote: > > > > > > > > On Tue, Sep 10, 2019 at 05:55:01PM +0530, Pankaj Dubey wr

Re: [PATCH] x86/reboot: Avoid EFI reboot when not running on EFI

2019-09-12 Thread Bradford, Robert
On Thu, 2019-08-29 at 15:34 +0100, Bradford, Robert wrote: > On Thu, 2019-08-29 at 14:18 +0200, Thomas Gleixner wrote: > > On Thu, 29 Aug 2019, Rob Bradford wrote: > > > > CC+ Ard > > > > > Replace the check using efi_runtime_disabled() which only checks > > > if > > > EFI > > > runtime was disab

Re: [PATCH v3 1/2] KVM: LAPIC: Tune lapic_timer_advance_ns smoothly

2019-09-12 Thread Paolo Bonzini
On 12/09/19 02:34, Wanpeng Li wrote: >>> -timer_advance_ns -= min((u32)ns, >>> -timer_advance_ns / LAPIC_TIMER_ADVANCE_ADJUST_STEP); >>> +timer_advance_ns -= ns; Looking more closely, this assignment... >>>} else { >>>/* too late */ >>>ns = advance_expi

<    1   2   3   4   5   6   7   >