Re: [PATCH v2] platform/x86/pcengines-apuv2: use KEY_RESTART for front button

2019-08-16 Thread Andy Shevchenko
On Mon, Aug 5, 2019 at 3:06 PM Enrico Weigelt, metux IT consult wrote: > On 01.08.19 17:00, Andy Shevchenko wrote: > > On Thu, Jul 25, 2019 at 10:06 PM Enrico Weigelt, metux IT consult > > wrote: > >> From: Enrico Weigelt > >> Fixes: f8eb0235f65989fc5521c40c78d1261e7f25cdbe ("x86: pcengines apu

RE: [PATCH V6 4/4] arm64: dts: imx8mm: Enable cpu-idle driver

2019-08-16 Thread Anson Huang
Hi, Daniel/Shawn > On 16/08/2019 02:38, Anson Huang wrote: > > Enable i.MX8MM cpu-idle using generic ARM cpu-idle driver, 2 states > > are supported, details as below: > > > > root@imx8mmevk:~# cat > /sys/devices/system/cpu/cpu0/cpuidle/state0/name > > WFI > > root@imx8mmevk:~# cat > > /sys/device

[PATCH v2] rtw88: pci: Move a mass of jobs in hw IRQ to soft IRQ

2019-08-16 Thread Jian-Hong Pan
There is a mass of jobs between spin lock and unlock in the hardware IRQ which will occupy much time originally. To make system work more efficiently, this patch moves the jobs to the soft IRQ (bottom half) to reduce the time in hardware IRQ. Signed-off-by: Jian-Hong Pan --- v2: Change the spin_

Re: [PATCH v6 1/2] mtd: rawnand: Add Macronix raw NAND controller driver

2019-08-16 Thread masonccyang
Hi Boris, > > + > > +static int mxic_nfc_wait_ready(struct nand_chip *chip) > > +{ > > + struct mxic_nand_ctlr *nfc = nand_get_controller_data(chip); > > + u32 sts; > > + > > + return readl_poll_timeout(nfc->regs + INT_STS, sts, > > + sts & INT_RDY_PIN, 0, USEC_PER_SEC); >

Dear Friend,

2019-08-16 Thread Aisha Gaddafi
Dear Friend, I came across your e-mail contact prior a private search while in need of your assistance. My name is Aisha Gaddafi a single Mother and a Widow with three Children. I am the only biological Daughter of late Libyan President (Late Colonel Muammar Gaddafi). I have investment funds

[PATCH 0/3] debug_pagealloc improvements through page_owner

2019-08-16 Thread Vlastimil Babka
The debug_pagealloc functionality serves a similar purpose on the page allocator level that slub_debug does on the kmalloc level, which is to detect bad users. One notable feature that slub_debug has is storing stack traces of who last allocated and freed the object. On page level we track allocati

[PATCH 3/3] mm, page_owner, debug_pagealloc: save and dump freeing stack trace

2019-08-16 Thread Vlastimil Babka
The debug_pagealloc functionality is useful to catch buggy page allocator users that cause e.g. use after free or double free. When page inconsistency is detected, debugging is often simpler by knowing the call stack of process that last allocated and freed the page. When page_owner is also enabled

[PATCH 2/3] mm, page_owner: keep owner info when freeing the page

2019-08-16 Thread Vlastimil Babka
For debugging purposes it might be useful to keep the owner info even after page has been freed, and include it in e.g. dump_page() when detecting a bad page state. For that, change the PAGE_EXT_OWNER flag meaning to "page owner info has been set at least once" and add new PAGE_EXT_OWNER_ACTIVE for

[PATCH 1/3] mm, page_owner: record page owner for each subpage

2019-08-16 Thread Vlastimil Babka
Currently, page owner info is only recorded for the first page of a high-order allocation, and copied to tail pages in the event of a split page. With the plan to keep previous owner info after freeing the page, it would be benefical to record page owner for each subpage upon allocation. This incre

[v3 1/2] dt/bindings: display: Add optional property node for Mali DP500

2019-08-16 Thread Wen He
Add optional property node 'arm,malidp-arqos-value' for the Mali DP500. This property describe the ARQoS levels of DP500's QoS signaling. Signed-off-by: Wen He --- change in v3: - correction the describe of the node Documentation/devicetree/bindings/display/arm,malidp.txt | 3 +++ 1 fil

Re: [PATCH v3] seqlock: mark raw_read_seqcount and read_seqcount_retry as __always_inline

2019-08-16 Thread Thomas Gleixner
On Fri, 26 Jul 2019, Anders Roxell wrote: > > -static inline void __seqcount_init(seqcount_t *s, const char *name, > +static __always_inline void __seqcount_init(seqcount_t *s, const char *name, > struct lock_class_key *key) That has nothing to do with the

[PATCH] kernel/resource.c: warn if released region has children

2019-08-16 Thread Schmid, Carsten
When a resource region is released and has children, the children are left without any hint that their parent is no more valid. This was observed on a use-after-free fault in the xhci-hcd when xhci-hcd released his iomem region before platform code released resources of platform devices giving a r

Re: [PATCH 02/10] PCI: designware-ep: Add the doorbell mode of MSI-X in EP mode

2019-08-16 Thread Andrew Murray
On Fri, Aug 16, 2019 at 02:58:31AM +, Xiaowei Bao wrote: > > > > -Original Message- > > From: Andrew Murray > > Sent: 2019年8月15日 19:54 > > To: Xiaowei Bao > > Cc: jingooh...@gmail.com; gustavo.pimen...@synopsys.com; > > bhelg...@google.com; robh...@kernel.org; mark.rutl...@arm.com;

Re: sched: Unexpected reschedule of offline CPU#2!

2019-08-16 Thread Thomas Gleixner
On Mon, 29 Jul 2019, Guenter Roeck wrote: > On Mon, Jul 29, 2019 at 12:47:45PM +0200, Peter Zijlstra wrote: > > On Mon, Jul 29, 2019 at 12:38:30PM +0200, Thomas Gleixner wrote: > > > Reboot has two modes: > > > > > > - Regular reboot initiated from user space > > > > > > - Panic reboot > > > >

[PATCH] FS: timerfd: Fix unexpected return value of timerfd_read function.

2019-08-16 Thread Arul Jeniston
'hrtimer_forward_now()' returns zero due to bigger backward time drift. This causes timerfd_read to return 0. As per man page, read on timerfd is not expected to return 0. This problem is well explained in https://lkml.org/lkml/2019/7/31/442 . This patch fixes this problem. Signed-off-by: Arul Jen

[PATCH v5 1/2] dt-bindings: Add ipsps1 as a trivial device

2019-08-16 Thread John Wang
The ipsps1 is an Inspur Power System power supply unit Signed-off-by: John Wang Reviewed-by: Rob Herring --- v5: - No changes v4: - Rebased on 5.3-rc4 instead of 5.2, No changes v3: - Fix adding entry to the inappropriate line v2: - No changes. --- Documentation/devicetree/bindi

Re: [PATCH 05/10] PCI: layerscape: Modify the way of getting capability with different PEX

2019-08-16 Thread Andrew Murray
On Fri, Aug 16, 2019 at 03:00:00AM +, Xiaowei Bao wrote: > > > > -Original Message- > > From: Andrew Murray > > Sent: 2019年8月15日 20:51 > > To: Xiaowei Bao > > Cc: jingooh...@gmail.com; gustavo.pimen...@synopsys.com; > > bhelg...@google.com; robh...@kernel.org; mark.rutl...@arm.com;

[PATCH] arm64: dts: imx8mm: Enable cpu-idle driver

2019-08-16 Thread Anson Huang
Enable i.MX8MM cpu-idle using generic ARM cpu-idle driver, 2 states are supported, details as below: root@imx8mmevk:~# cat /sys/devices/system/cpu/cpu0/cpuidle/state0/name WFI root@imx8mmevk:~# cat /sys/devices/system/cpu/cpu0/cpuidle/state0/usage 3973 root@imx8mmevk:~# cat /sys/devices/system/cpu

Re: [PATCH] afs: Move comments after /* fallthrough */

2019-08-16 Thread David Howells
Joe Perches wrote: > Here the script would not convert the /* Fall through */ > because the next non-blank line does not start with > case or default Convert the "/* Fall through */" to what? You said "for a script to appropriately convert case statement blocks with /* fallthrough */ comments t

RE: [PATCH V6 4/4] arm64: dts: imx8mm: Enable cpu-idle driver

2019-08-16 Thread Anson Huang
Hi, Shawn > > On 16/08/2019 02:38, Anson Huang wrote: > > > Enable i.MX8MM cpu-idle using generic ARM cpu-idle driver, 2 states > > > are supported, details as below: > > > > > > root@imx8mmevk:~# cat > > /sys/devices/system/cpu/cpu0/cpuidle/state0/name > > > WFI > > > root@imx8mmevk:~# cat > > >

Re: [GIT PULL] soundwire fixes for v5.4-rc5

2019-08-16 Thread Greg KH
On Fri, Aug 16, 2019 at 03:27:09PM +0530, Vinod Koul wrote: > Hi Greg, > > We have couple of fixes queued up, please pull. Some more are in review, > will send them later. > These fixes are in linux-next as well. > > The following changes since commit 5f9e832c137075045d15cd6899ab0505cfb2ca4b: >

RE: [PATCH v2] rtw88: pci: Move a mass of jobs in hw IRQ to soft IRQ

2019-08-16 Thread Tony Chuang
> From: Jian-Hong Pan > > There is a mass of jobs between spin lock and unlock in the hardware > IRQ which will occupy much time originally. To make system work more > efficiently, this patch moves the jobs to the soft IRQ (bottom half) to > reduce the time in hardware IRQ. > > Signed-off-by: Jia

Re: [PATCH v2 02/10] s390/pci: Loop using PCI_STD_NUM_BARS

2019-08-16 Thread Sebastian Ott
On Fri, 16 Aug 2019, Denis Efremov wrote: > Refactor loops to use 'i < PCI_STD_NUM_BARS' instead of > 'i <= PCI_STD_RESOURCE_END'. > > Signed-off-by: Denis Efremov > --- > arch/s390/include/asm/pci.h | 5 + > arch/s390/include/asm/pci_clp.h | 6 +++--- > arch/s390/pci/pci.c

[PATCH v2 1/3] software node: Add software_node_find_by_name()

2019-08-16 Thread Heikki Krogerus
Function that searches software nodes by node name. Signed-off-by: Heikki Krogerus Reviewed-by: Hans de Goede Tested-by: Hans de Goede --- drivers/base/swnode.c| 37 + include/linux/property.h | 4 2 files changed, 41 insertions(+) diff --git a/dr

[PATCH v2 2/3] usb: roles: intel_xhci: Supplying software node for the role mux

2019-08-16 Thread Heikki Krogerus
The primary purpose for this node will be to allow linking the users of the switch to it. The users will be for example USB Type-C connectors. By supplying a reference to this node in the software nodes representing the USB Type-C controllers or connectors, the drivers for those devices can access

[PATCH v2 0/3] software node: Introduce software_node_find_by_name()

2019-08-16 Thread Heikki Krogerus
Hi, This is the second version of this series where I'm introducing that helper. Hans and Andy! Because of the changes I made to patch 2/3, I'm not carrying your reviewed-by tags in it. I would appreciate if you could take another look at that patch. I added a note to the kernel-doc comment in p

[PATCH v2 3/3] platform/x86: intel_cht_int33fe: Use new API to gain access to the role switch

2019-08-16 Thread Heikki Krogerus
The driver for the Intel USB role mux now always supplies software node for the role switch, so no longer checking that, and never creating separate node for the role switch. >From now on using software_node_find_by_name() function to get the handle to the USB role switch. Signed-off-by: Heikki Kr

Re: [PATCH] FS: timerfd: Fix unexpected return value of timerfd_read function.

2019-08-16 Thread Thomas Gleixner
Arul, On Fri, 16 Aug 2019, Arul Jeniston wrote: > Subject: [PATCH] FS: timerfd: Fix unexpected return value of timerfd_read > function. The prefix is not 'FS: timerfd:' 1) The usual prefix for fs/* is: 'fs:' but... 2) git log fs/timerfd.c gives you a pretty good hint for the proper prefix.

Re: add a not device managed memremap_pages v2

2019-08-16 Thread Bharata B Rao
On Fri, Aug 16, 2019 at 08:54:30AM +0200, Christoph Hellwig wrote: > Hi Dan and Jason, > > Bharata has been working on secure page management for kvmppc guests, > and one I thing I noticed is that he had to fake up a struct device > just so that it could be passed to the devm_memremap_pages > inst

Re: Linux 5.2.9

2019-08-16 Thread Bhaskar Chowdhury
Thanks, a bunch Greg! :) On 11:45 Fri 16 Aug 2019, Greg KH wrote: I'm announcing the release of the 5.2.9 kernel. All users of the 5.2 kernel series must upgrade. The updated 5.2.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.

Re: [PATCH v2 00/10] Add definition for the number of standard PCI BARs

2019-08-16 Thread Andrew Murray
On Fri, Aug 16, 2019 at 12:24:27PM +0300, Denis Efremov wrote: > Code that iterates over all standard PCI BARs typically uses > PCI_STD_RESOURCE_END, but this is error-prone because it requires > "i <= PCI_STD_RESOURCE_END" rather than something like > "i < PCI_STD_NUM_BARS". We could add such a de

Re: [PATCH 02/10] PCI: designware-ep: Add the doorbell mode of MSI-X in EP mode

2019-08-16 Thread Kishon Vijay Abraham I
Hi, On 16/08/19 8:28 AM, Xiaowei Bao wrote: > > >> -Original Message- >> From: Andrew Murray >> Sent: 2019年8月15日 19:54 >> To: Xiaowei Bao >> Cc: jingooh...@gmail.com; gustavo.pimen...@synopsys.com; >> bhelg...@google.com; robh...@kernel.org; mark.rutl...@arm.com; >> shawn...@kernel.org

RE: [PATCH 01/10] PCI: designware-ep: Add multiple PFs support for DWC

2019-08-16 Thread Xiaowei Bao
> -Original Message- > From: Andrew Murray > Sent: 2019年8月16日 17:45 > To: Xiaowei Bao > Cc: jingooh...@gmail.com; gustavo.pimen...@synopsys.com; > mark.rutl...@arm.com; shawn...@kernel.org; Leo Li > ; kis...@ti.com; lorenzo.pieral...@arm.com; > a...@arndb.de; gre...@linuxfoundation.org;

RE: [PATCH 02/10] PCI: designware-ep: Add the doorbell mode of MSI-X in EP mode

2019-08-16 Thread Xiaowei Bao
> -Original Message- > From: Andrew Murray > Sent: 2019年8月16日 18:20 > To: Xiaowei Bao > Cc: jingooh...@gmail.com; gustavo.pimen...@synopsys.com; > bhelg...@google.com; robh...@kernel.org; mark.rutl...@arm.com; > shawn...@kernel.org; Leo Li ; kis...@ti.com; > lorenzo.pieral...@arm.com; a

RE: [PATCH 05/10] PCI: layerscape: Modify the way of getting capability with different PEX

2019-08-16 Thread Xiaowei Bao
> -Original Message- > From: Andrew Murray > Sent: 2019年8月16日 18:26 > To: Xiaowei Bao > Cc: jingooh...@gmail.com; gustavo.pimen...@synopsys.com; > bhelg...@google.com; robh...@kernel.org; mark.rutl...@arm.com; > shawn...@kernel.org; Leo Li ; kis...@ti.com; > lorenzo.pieral...@arm.com; a

Re: [PATCH] afs: Move comments after /* fallthrough */

2019-08-16 Thread Joe Perches
On Fri, 2019-08-16 at 11:36 +0100, David Howells wrote: > Joe Perches wrote: > > > Here the script would not convert the /* Fall through */ > > because the next non-blank line does not start with > > case or default > > Convert the "/* Fall through */" to what? > > You said "for a script to app

Re: [PATCH] hwmon/ltc2990: Generalise DT to fwnode support

2019-08-16 Thread Geert Uytterhoeven
Hi Max, On Fri, Aug 16, 2019 at 11:09 AM Max Staudt wrote: > ltc2990 will now use device_property_read_u32_array() instead of > of_property_read_u32_array() - allowing the use of software nodes > via fwnode_create_software_node(). > > This allows code using i2c_new_device() to specify a default >

[PATCH] powerpc/32: Add VDSO version of getcpu

2019-08-16 Thread Christophe Leroy
Commit 18ad51dd342a ("powerpc: Add VDSO version of getcpu") added getcpu() for PPC64 only, by making use of a user readable general purpose SPR. PPC32 doesn't have any such SPR, a full system call can still be avoided by implementing a fast system call which reads the CPU id in the task struct and

Re: [alsa-devel] [PATCH v2 0/3] soundwire: debugfs support for 5.4

2019-08-16 Thread Pierre-Louis Bossart
On 8/16/19 4:43 AM, Vinod Koul wrote: On 12-08-19, 18:59, Pierre-Louis Bossart wrote: This patchset enables debugfs support and corrects all the feedback provided on an earlier RFC ('soundwire: updates for 5.4') There is one remaining hard-coded value in intel.c that will need to be fixed in

RE: [PATCH 02/10] PCI: designware-ep: Add the doorbell mode of MSI-X in EP mode

2019-08-16 Thread Xiaowei Bao
> -Original Message- > From: Kishon Vijay Abraham I > Sent: 2019年8月16日 18:50 > To: Xiaowei Bao ; Andrew Murray > > Cc: jingooh...@gmail.com; gustavo.pimen...@synopsys.com; > bhelg...@google.com; robh...@kernel.org; mark.rutl...@arm.com; > shawn...@kernel.org; Leo Li ; > lorenzo.pieral..

[PATCH v2] powerpc/32: Add VDSO version of getcpu

2019-08-16 Thread Christophe Leroy
Commit 18ad51dd342a ("powerpc: Add VDSO version of getcpu") added getcpu() for PPC64 only, by making use of a user readable general purpose SPR. PPC32 doesn't have any such SPR, a full system call can still be avoided by implementing a fast system call which reads the CPU id in the task struct and

[PATCH 1/2] drivers/dax/kmem: use default numa_mem_id if target_node is invalid

2019-08-16 Thread Jia He
In some platforms(e.g arm64 guest), the NFIT info might not be ready. Then target_node might be -1. But if there is a default numa_mem_id(), we can use it to avoid unnecessary fatal EINVL error. devm_memremap_pages() also uses this logic if nid is invalid, we can keep the same page with it. Signe

[PATCH 0/2] Fix and support dax kmem on arm64

2019-08-16 Thread Jia He
This patch set is to fix some dax kmem driver issues and then it can support to use pmem as normal RAM in arm64 qemu guest. Jia He (2): drivers/dax/kmem: use default numa_mem_id if target_node is invalid drivers/dax/kmem: give a warning if CONFIG_DEV_DAX_PMEM_COMPAT is enabled drivers/d

[PATCH 2/2] drivers/dax/kmem: give a warning if CONFIG_DEV_DAX_PMEM_COMPAT is enabled

2019-08-16 Thread Jia He
commit c221c0b0308f ("device-dax: "Hotplug" persistent memory for use like normal RAM") helps to add persistent memory as normal RAM blocks. But this driver doesn't work if CONFIG_DEV_DAX_PMEM_COMPAT is enabled. Here is the debugging call trace when CONFIG_DEV_DAX_PMEM_COMPAT is enabled. [4.44

Re: [PATCH 1/9] clk: actions: Don't reference clk_init_data after registration

2019-08-16 Thread Manivannan Sadhasivam
On Wed, Jul 31, 2019 at 12:35:09PM -0700, Stephen Boyd wrote: > A future patch is going to change semantics of clk_register() so that > clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid > referencing this member here so that we don't run into NULL pointer > exceptions. > > Cc:

Re: [PATCH V1 1/1] serial: 8250_pci: Add F81504A series Support

2019-08-16 Thread Andy Shevchenko
On Fri, Aug 16, 2019 at 01:27:29PM +0800, Ji-Ze Hong (Peter Hong) wrote: > Fintek F81504A/508A/512A is PCIE to 4/8/12 UARTs device. It's support > IO/MMIO/PCIE conf to access all functions. The old F81504/508/512 is > only support IO. We have 8250_fintek. Isn't it a right place to add these? --

Re: [RFC PATCH 04/15] drivers/acrn: add the basic framework of acrn char device driver

2019-08-16 Thread Dan Carpenter
On Fri, Aug 16, 2019 at 10:25:45AM +0800, Zhao Yakui wrote: > +static > +int acrn_dev_open(struct inode *inodep, struct file *filep) > +{ > + pr_info("%s: opening device node\n", __func__); > + > + return 0; > +} > + > +static > +long acrn_dev_ioctl(struct file *filep, > + u

Re: [PATCH] Revert "ARM: dts: rockchip: add startup delay to rk3288-veyron panel-regulators"

2019-08-16 Thread Heiko Stuebner
Am Donnerstag, 20. Juni 2019, 20:20:56 CEST schrieb Douglas Anderson: > This reverts commit 1f45e8c6d0161f044d679f242fe7514e2625af4a. > > This 100 ms mystery delay is not on downstream kernels and no longer > seems needed on upstream kernels either [1]. Presumably something in the > meantime has

Re: [PATCH v3 2/2] arm64: allwinner: h6: add I2C nodes

2019-08-16 Thread Maxime Ripard
On Fri, Aug 16, 2019 at 02:13:09PM +0530, Bhushan Shah wrote: > Add device-tree nodes for i2c0 to i2c2, and also add relevant pinctrl > nodes. > > Suggested-by: Icenowy Zheng > Signed-off-by: Bhushan Shah Applied both, thanks! Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineeri

Re: [PATCH v4 07/10] livepatch: Add sample livepatch module

2019-08-16 Thread Masahiro Yamada
Hi Joe, On Thu, May 9, 2019 at 11:39 PM Joe Lawrence wrote: > > From: Josh Poimboeuf > > Add a new livepatch sample in samples/livepatch/ to make use of > symbols that must be post-processed to enable load-time relocation > resolution. As the new sample is to be used as an example, it is > annot

Re: [PATCH] ARM64: dts: allwinner: Add devicetree for pine H64 modelA evaluation board

2019-08-16 Thread Maxime Ripard
On Fri, Aug 16, 2019 at 11:35:13AM +0200, Corentin Labbe wrote: > On Wed, Aug 14, 2019 at 03:33:22PM +0200, Maxime Ripard wrote: > > On Wed, Aug 14, 2019 at 03:17:41PM +0200, Corentin Labbe wrote: > > > On Mon, Aug 12, 2019 at 11:40:00AM +0200, Maxime Ripard wrote: > > > > On Thu, Aug 08, 2019 at 1

linux-next: build failure after merge of the gpio tree

2019-08-16 Thread Stephen Rothwell
Hi all, After merging the gpio tree, today's linux-next build (powerpc ppc44x_defconfig) failed like this: In file included from include/asm-generic/gpio.h:13, from include/linux/gpio.h:62, from include/linux/of_gpio.h:16, from arch/powerpc/platf

[PATCH] RDMA/hns: Fix some white space check_mtu_validate()

2019-08-16 Thread Dan Carpenter
This line was indented a bit too far. Signed-off-by: Dan Carpenter --- drivers/infiniband/hw/hns/hns_roce_qp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_qp.c b/drivers/infiniband/hw/hns/hns_roce_qp.c index b729f8ef90a2..f972127edbf6 1

Re: [PATCH 1/2] dt-bindings: arm: fsl: Add PHYTEC i.MX6 UL/ULL devicetree bindings

2019-08-16 Thread Stefan Riedmüller
Hi Rob, On 15.08.19 15:43, Rob Herring wrote: On Thu, Aug 15, 2019 at 4:55 AM Stefan Riedmüller wrote: Hi Rob, On 13.08.19 18:04, Rob Herring wrote: On Wed, Jul 24, 2019 at 09:49:32AM +0200, Stefan Riedmueller wrote: Add devicetree bindings for i.MX6 UL/ULL based phyCORE-i.MX6 UL/ULL and p

[PATCH 1/2] dt-bindings: nvmem: Add Spreadtrum eFuse controller documentation

2019-08-16 Thread Baolin Wang
From: Freeman Liu This patch adds the binding documentation for Spreadtrum eFuse controller. Signed-off-by: Freeman Liu Signed-off-by: Baolin Wang --- .../devicetree/bindings/nvmem/sprd-efuse.txt | 39 1 file changed, 39 insertions(+) create mode 100644 Documenta

[PATCH 2/2] nvmem: sprd: Add Spreadtrum SoCs eFuse support

2019-08-16 Thread Baolin Wang
From: Freeman Liu The Spreadtrum eFuse controller is widely used to dump chip ID, configuration setting, function select and so on, as well as supporting one-time programming. Signed-off-by: Freeman Liu Signed-off-by: Baolin Wang --- drivers/nvmem/Kconfig | 11 ++ drivers/nvmem/Makefil

[PATCH] RISC-V: Fix FIXMAP area corruption on RV32 systems

2019-08-16 Thread Anup Patel
Currently, the order of various virtual memory areas in increasing order of virtual addresses is as follows: 1. User space area 2. FIXMAP area 3. VMALLOC area 4. Kernel area The user space area starts at 0x0 and it's maximum size is represented by TASK_SIZE. On RV32 systems, TASK_SIZE is defined

Re: cleanup the walk_page_range interface

2019-08-16 Thread Jason Gunthorpe
On Thu, Aug 15, 2019 at 11:27:51PM -0700, Christoph Hellwig wrote: > On Thu, Aug 08, 2019 at 10:50:37AM -0700, Linus Torvalds wrote: > > On Thu, Aug 8, 2019 at 8:42 AM Christoph Hellwig wrote: > > > > > > this series is based on a patch from Linus to split the callbacks > > > passed to walk_page_r

Re: [EXT] Re: [PATCH net-next 1/1] Added BASE-T1 PHY support to PHY Subsystem

2019-08-16 Thread Christian Herber
On 15.08.2019 17:56, Andrew Lunn wrote: > Caution: EXT Email > > On Thu, Aug 15, 2019 at 03:32:29PM +, Christian Herber wrote: >> BASE-T1 is a category of Ethernet PHYs. >> They use a single copper pair for transmission. >> This patch add basic support for this category of PHYs. >> It coveres

Re: [PATCH] ARM64: dts: allwinner: Add devicetree for pine H64 modelA evaluation board

2019-08-16 Thread Corentin Labbe
On Fri, Aug 16, 2019 at 01:36:50PM +0200, Maxime Ripard wrote: > On Fri, Aug 16, 2019 at 11:35:13AM +0200, Corentin Labbe wrote: > > On Wed, Aug 14, 2019 at 03:33:22PM +0200, Maxime Ripard wrote: > > > On Wed, Aug 14, 2019 at 03:17:41PM +0200, Corentin Labbe wrote: > > > > On Mon, Aug 12, 2019 at 1

Dear Friend (Assalamu Alaikum),

2019-08-16 Thread AISHA GADDAFI
-- Dear Friend (Assalamu Alaikum), I came across your e-mail contact prior a private search while in need of your assistance. My name is Aisha Al-Qaddafi a single Mother and a Widow with three Children. I am the only biological Daughter of late Libyan President (Late Colonel Muammar Gaddafi). I

Re: [EXT] Re: [PATCH net-next 1/1] Added BASE-T1 PHY support to PHY Subsystem

2019-08-16 Thread Christian Herber
On 15.08.2019 18:34, Heiner Kallweit wrote: > Caution: EXT Email > > On 15.08.2019 17:56, Andrew Lunn wrote: >> On Thu, Aug 15, 2019 at 03:32:29PM +, Christian Herber wrote: >>> BASE-T1 is a category of Ethernet PHYs. >>> They use a single copper pair for transmission. >>> This patch add basic

RE: [PATCH v6,1/2] PCI: hv: Detect and fix Hyper-V PCI domain number collision

2019-08-16 Thread Haiyang Zhang
> -Original Message- > From: Lorenzo Pieralisi > Sent: Friday, August 16, 2019 5:52 AM > To: Haiyang Zhang > Cc: sas...@kernel.org; bhelg...@google.com; linux- > hyp...@vger.kernel.org; linux-...@vger.kernel.org; KY Srinivasan > ; Stephen Hemminger ; > o...@aepfle.de; vkuznets ; linux-

Applied "ASoC: imx-audmux: Add driver suspend and resume to support MEGA Fast" to the asoc tree

2019-08-16 Thread Mark Brown
The patch ASoC: imx-audmux: Add driver suspend and resume to support MEGA Fast has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.3 All being well this means that it will be integrated into the linux-next tree (usually sometime in

linux-next: build failure after merge of the akpm-current tree

2019-08-16 Thread Stephen Rothwell
Hi all, After merging the akpm-current tree, today's linux-next build (x86_64 allmodconfig) failed like this: mm/kmemleak.c: In function 'kmemleak_disable': mm/kmemleak.c:1884:2: error: 'kmemleak_early_log' undeclared (first use in this function); did you mean 'kmemleak_alloc'? kmemleak_early_

Re: [PATCH] ASoC: imx-audmux: Add driver suspend and resume to support MEGA Fast

2019-08-16 Thread Mark Brown
On Fri, Aug 16, 2019 at 01:03:14AM -0400, Shengjiu Wang wrote: > + for (i = 0; i < reg_max; i++) > + regcache[i] = readl(audmux_base + i * 4); If only there were some framework which provided a register cache! :P signature.asc Description: PGP signature

Re: "PM / wakeup: Show wakeup sources stats in sysfs" causes boot warnings

2019-08-16 Thread Rafael J. Wysocki
On Wed, Aug 14, 2019 at 8:37 PM Tri Vo wrote: > > On Wed, Aug 14, 2019 at 1:40 AM Tony Lindgren wrote: > > > > * Stephen Boyd [691231 23:00]: > > > I also notice that device_set_wakeup_capable() has a check to see if the > > > device is registered yet and it skips creating sysfs entries for the

[tip:x86/boot] x86/boot: Use common BUILD_BUG_ON

2019-08-16 Thread tip-bot for Rikard Falkeborn
Commit-ID: d5a1baddf1585885868cbab55989401fb97118c6 Gitweb: https://git.kernel.org/tip/d5a1baddf1585885868cbab55989401fb97118c6 Author: Rikard Falkeborn AuthorDate: Sun, 11 Aug 2019 20:49:36 +0200 Committer: Thomas Gleixner CommitDate: Fri, 16 Aug 2019 14:15:50 +0200 x86/boot: Use comm

Re: [PATCH] platform/x86: intel_pmc_core: Do not ioremap RAM

2019-08-16 Thread M. Vefa Bicakci
On Fri, 16 Aug 2019 12:21:58 +0300 Andy Shevchenko wrote: > On Fri, Aug 16, 2019 at 4:42 AM M. Vefa Bicakci wrote: > > > > On a Xen-based PVH virtual machine with more than 4 GiB of RAM, > > intel_pmc_core fails initialization with the following warning message > > from the kernel, indicating th

[RFC v4 00/18] objtool: Add support for arm64

2019-08-16 Thread Raphael Gault
Hi, Changes since RFC V3: * Rebased on tip/master: Switch/jump table had been refactored * Take Catalin Marinas comments into account regarding the asm macro for marking exceptions. As of now, objtool only supports the x86_64 architecture but the groundwork has already been done in order to add

[RFC v4 03/18] objtool: Move registers and control flow to arch-dependent code

2019-08-16 Thread Raphael Gault
The control flow information and register macro definitions were based on the x86_64 architecture but should be abstract so that each architecture can define the correct values for the registers, especially the registers related to the stack frame (Frame Pointer, Stack Pointer and possibly Return A

[RFC v4 05/18] objtool: special: Adapt special section handling

2019-08-16 Thread Raphael Gault
This patch abstracts the few architecture dependent tests that are perform when handling special section and switch tables. It enables any architecture to ignore a particular CPU feature or not to handle switch tables. Signed-off-by: Raphael Gault --- tools/objtool/arch/arm64/Build

[RFC v4 07/18] objtool: Introduce INSN_UNKNOWN type

2019-08-16 Thread Raphael Gault
On arm64 some object files contain data stored in the .text section. This data is interpreted by objtool as instruction but can't be identified as a valid one. In order to keep analysing those files we introduce INSN_UNKNOWN type. The "unknown instruction" warning will thus only be raised if such i

[RFC v4 01/18] objtool: Add abstraction for computation of symbols offsets

2019-08-16 Thread Raphael Gault
The jump destination and relocation offset used previously are only reliable on x86_64 architecture. We abstract these computations by calling arch-dependent implementations. Signed-off-by: Raphael Gault --- tools/objtool/arch.h| 6 ++ tools/objtool/arch/x86/decode.c | 11 ++

[RFC v4 04/18] objtool: arm64: Add required implementation for supporting the aarch64 architecture in objtool.

2019-08-16 Thread Raphael Gault
Provide implementation for the arch-dependent functions that are called by the main check function of objtool. The ORC unwinder is not yet supported by the arm64 architecture so we only provide a dummy interface for now. The decoding of the instruction is split into classes and subclasses as descr

[RFC v4 14/18] arm64: kvm: Annotate non-standard stack frame functions

2019-08-16 Thread Raphael Gault
Both __guest_entry and __guest_exit functions do not setup a correct stack frame. Because they can be considered as callable functions, even if they are particular cases, we chose to silence the warnings given by objtool by annotating them as non-standard. Signed-off-by: Raphael Gault --- arch/a

[RFC v4 12/18] arm64: assembler: Add macro to annotate asm function having non standard stack-frame.

2019-08-16 Thread Raphael Gault
Some functions don't have standard stack-frames but are intended this way. In order for objtool to ignore those particular cases we add a macro that enables us to annotate the cases we chose to mark as particular. Signed-off-by: Raphael Gault --- include/linux/frame.h | 19 ++- 1

[RFC v4 17/18] arm64: kernel: Annotate non-standard stack frame functions

2019-08-16 Thread Raphael Gault
Annotate assembler functions which are callable but do not setup a correct stack frame. Signed-off-by: Raphael Gault --- arch/arm64/kernel/hyp-stub.S | 3 +++ arch/arm64/kvm/hyp-init.S| 3 +++ 2 files changed, 6 insertions(+) diff --git a/arch/arm64/kernel/hyp-stub.S b/arch/arm64/kernel/hyp

[RFC v4 15/18] arm64: kernel: Add exception on kuser32 to prevent stack analysis

2019-08-16 Thread Raphael Gault
kuser32 being used for compatibility, it contains a32 instructions which are not recognised by objtool when trying to analyse arm64 object files. Thus, we add an exception to skip validation on this particular file. Signed-off-by: Raphael Gault --- arch/arm64/kernel/Makefile | 3 +++ 1 file chan

[RFC v4 10/18] objtool: arm64: Implement functions to add switch tables alternatives

2019-08-16 Thread Raphael Gault
This patch implements the functions required to identify and add as alternatives all the possible destinations of the switch table. This implementation relies on the new plugin introduced previously which records information about the switch-table in a .objtool_data section. Signed-off-by: Raphael

[RFC v4 13/18] arm64: sleep: Prevent stack frame warnings from objtool

2019-08-16 Thread Raphael Gault
This code doesn't respect the Arm PCS but it is intended this way. Adapting it to respect the PCS would result in altering the behaviour. In order to suppress objtool's warnings, we setup a stack frame for __cpu_suspend_enter and annotate cpu_resume and _cpu_resume as having non-standard stack fra

[RFC v4 09/18] gcc-plugins: objtool: Add plugin to detect switch table on arm64

2019-08-16 Thread Raphael Gault
This plugins comes into play before the final 2 RTL passes of GCC and detects switch-tables that are to be outputed in the ELF and writes information in an "objtool_data" section which will be used by objtool. Signed-off-by: Raphael Gault --- scripts/Makefile.gcc-plugins | 2 +

[RFC v4 11/18] arm64: alternative: Mark .altinstr_replacement as containing executable instructions

2019-08-16 Thread Raphael Gault
Until now, the section .altinstr_replacement wasn't marked as containing executable instructions on arm64. This patch changes that so that it is coherent with what is done on x86. Signed-off-by: Raphael Gault --- arch/arm64/include/asm/alternative.h | 2 +- 1 file changed, 1 insertion(+), 1 dele

[RFC v4 18/18] objtool: arm64: Enable stack validation for arm64

2019-08-16 Thread Raphael Gault
Signed-off-by: Raphael Gault --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 3adcec05b1f6..dc3de85b2502 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -163,6 +163,7 @@ config ARM64 select HAVE_RCU_TABLE_

[tip:x86/urgent] x86/boot: Save fields explicitly, zero out everything else

2019-08-16 Thread tip-bot for John Hubbard
Commit-ID: a90118c445cc7f07781de26a9684d4ec58bfcfd1 Gitweb: https://git.kernel.org/tip/a90118c445cc7f07781de26a9684d4ec58bfcfd1 Author: John Hubbard AuthorDate: Tue, 30 Jul 2019 22:46:27 -0700 Committer: Thomas Gleixner CommitDate: Fri, 16 Aug 2019 14:20:00 +0200 x86/boot: Save fields

[RFC v4 16/18] arm64: crypto: Add exceptions for crypto object to prevent stack analysis

2019-08-16 Thread Raphael Gault
Some crypto modules contain `.word` of data in the .text section. Since objtool can't make the distinction between data and incorrect instruction, it gives a warning about the instruction beeing unknown and stops the analysis of the object file. The exception can be removed if the data are moved t

[RFC v4 06/18] objtool: arm64: Adapt the stack frame checks for arm architecture

2019-08-16 Thread Raphael Gault
Since the way the initial stack frame when entering a function is different that what is done in the x86_64 architecture, we need to add some more check to support the different cases. As opposed as for x86_64, the return address is not stored by the call instruction but is instead loaded in a reg

[RFC v4 08/18] objtool: Refactor switch-tables code to support other architectures

2019-08-16 Thread Raphael Gault
The way to identify switch-tables and retrieves all the data necessary to handle the different execution branches is not the same on all architecture. In order to be able to add other architecture support, this patch defines arch-dependent functions to process jump-tables. Signed-off-by: Raphael G

[RFC v4 02/18] objtool: orc: Refactor ORC API for other architectures to implement.

2019-08-16 Thread Raphael Gault
The ORC unwinder is only supported on x86 at the moment and should thus be in the x86 architecture code. In order not to break the whole structure in case another architecture decides to support the ORC unwinder via objtool we choose to let the implementation be done in the architecture dependent c

Re: [PATCH v2] arm: dts: rockchip: fix vcc_host_5v regulator for usb3 host

2019-08-16 Thread Heiko Stuebner
Hi Kever, TL, [added TL Lim for clarification] Am Donnerstag, 15. August 2019, 10:12:52 CEST schrieb Kever Yang: > According to rock64 schemetic V2 and V3, the VCC_HOST_5V output is > controlled by USB_20_HOST_DRV, which is the same as VCC_HOST1_5V. The v1 schematics I have do reference the GPIO

Re: [PATCH net-next, 2/6] PCI: hv: Add a Hyper-V PCI mini driver for software backchannel interface

2019-08-16 Thread Vitaly Kuznetsov
Haiyang Zhang writes: > This mini driver is a helper driver allows other drivers to > have a common interface with the Hyper-V PCI frontend driver. > > Signed-off-by: Haiyang Zhang > Signed-off-by: Saeed Mahameed > --- > MAINTAINERS | 1 + > drivers/pci/Kconfig

Re: [PATCH] irqchip/irq-ingenic-tcu: Fix COMPILE_TEST building

2019-08-16 Thread Thomas Gleixner
On Tue, 13 Aug 2019, YueHaibing wrote: > While do COMPILE_TEST building, if GENERIC_IRQ_CHIP is > not selected, it fails: > > drivers/irqchip/irq-ingenic-tcu.o: In function `ingenic_tcu_intc_cascade': > irq-ingenic-tcu.c:(.text+0x13f): undefined reference to > `irq_get_domain_generic_chip' > dri

Re: [PATCH v6 03/11] media: uapi: h264: Add the concept of decoding mode

2019-08-16 Thread Ezequiel Garcia
On Fri, 2019-08-16 at 09:34 +0200, Hans Verkuil wrote: > On 8/14/19 9:59 PM, Ezequiel Garcia wrote: > > From: Boris Brezillon > > > > Some stateless decoders don't support per-slice decoding granularity > > (or at least not in a way that would make them efficient or easy to use). > > > > Expose

Re: [PATCH v6 07/11] media: cedrus: Specify H264 startcode and decoding mode

2019-08-16 Thread Ezequiel Garcia
On Fri, 2019-08-16 at 09:38 +0200, Hans Verkuil wrote: > On 8/14/19 9:59 PM, Ezequiel Garcia wrote: > > The cedrus VPU is slice-based and expects V4L2_PIX_FMT_H264_SLICE > > buffers to contain H264 slices with no start code. > > > > Expose this to userspace with the newly added menu control. > >

Re: WARNING in tracepoint_probe_register_prio (3)

2019-08-16 Thread syzbot
syzbot has bisected this bug to: commit ecb9f80db23a7ab09b46b298b404e41dd7aff6e6 Author: Thomas Gleixner Date: Tue Aug 13 08:00:25 2019 + net/mvpp2: Replace tasklet with softirq hrtimer bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=13ffb9ee60 start commit: ecb9f8

Re: cleanup the walk_page_range interface

2019-08-16 Thread Christoph Hellwig
On Fri, Aug 16, 2019 at 11:57:40AM +, Jason Gunthorpe wrote: > Are there conflicts with trees other than hmm? > > We can put it on a topic branch and merge to hmm to resolve. If hmm > has problems then send the topic on its own? I see two new walk_page_range user in linux-next related to MADV

Re: add a not device managed memremap_pages v2

2019-08-16 Thread Jason Gunthorpe
On Fri, Aug 16, 2019 at 08:54:30AM +0200, Christoph Hellwig wrote: > Hi Dan and Jason, > > Bharata has been working on secure page management for kvmppc guests, > and one I thing I noticed is that he had to fake up a struct device > just so that it could be passed to the devm_memremap_pages > inst

Re: [PATCH 01/10] PCI: designware-ep: Add multiple PFs support for DWC

2019-08-16 Thread Andrew Murray
On Fri, Aug 16, 2019 at 11:00:01AM +, Xiaowei Bao wrote: > > > > -Original Message- > > From: Andrew Murray > > Sent: 2019年8月16日 17:45 > > To: Xiaowei Bao > > Cc: jingooh...@gmail.com; gustavo.pimen...@synopsys.com; > > mark.rutl...@arm.com; shawn...@kernel.org; Leo Li > > ; kis...@

Re: [PATCH] powerpc/futex: fix warning: 'oldval' may be used uninitialized in this function

2019-08-16 Thread Michael Ellerman
Christophe Leroy writes: > CC kernel/futex.o > kernel/futex.c: In function 'do_futex': > kernel/futex.c:1676:17: warning: 'oldval' may be used uninitialized in this > function [-Wmaybe-uninitialized] >return oldval == cmparg; > ^ > kernel/futex.c:1651:6: note: 'oldval'

Re: add a not device managed memremap_pages v2

2019-08-16 Thread Christoph Hellwig
> > Changes since v1: > > - don't overload devm_request_free_mem_region > > - export the memremap_pages and munmap_pages as kvmppc can be a module > > What tree do we want this to go through? Dan are you running a pgmap > tree still? Do we know of any conflicts? The last changes in this area we

<    1   2   3   4   5   6   7   8   9   >