[PATCHv7 02/10] acpi: Add HMAT to generic parsing tables

2019-02-27 Thread Keith Busch
The Heterogeneous Memory Attribute Table (HMAT) header has different field lengths than the existing parsing uses. Add the HMAT type to the parsing rules so it may be generically parsed. Cc: Dan Williams Reviewed-by: Rafael J. Wysocki Signed-off-by: Keith Busch --- drivers/acpi/tables.c | 9 ++

[PATCHv7 10/10] doc/mm: New documentation for memory performance

2019-02-27 Thread Keith Busch
Platforms may provide system memory where some physical address ranges perform differently than others, or is side cached by the system. Add documentation describing a high level overview of such systems and the perforamnce and caching attributes the kernel provides for applications wishing to que

[PATCHv7 07/10] acpi/hmat: Register processor domain to its memory

2019-02-27 Thread Keith Busch
If the HMAT Subsystem Address Range provides a valid processor proximity domain for a memory domain, or a processor domain matches the performance access of the valid processor proximity domain, register the memory target with that initiator so this relationship will be visible under the node's sys

[PATCHv7 05/10] node: Add heterogenous memory access attributes

2019-02-27 Thread Keith Busch
Heterogeneous memory systems provide memory nodes with different latency and bandwidth performance attributes. Provide a new kernel interface for subsystems to register the attributes under the memory target node's initiator access class. If the system provides this information, applications may qu

[PATCHv7 03/10] acpi/hmat: Parse and report heterogeneous memory

2019-02-27 Thread Keith Busch
Systems may provide different memory types and export this information in the ACPI Heterogeneous Memory Attribute Table (HMAT). Parse these tables provided by the platform and report the memory access and caching attributes to the kernel messages. Reviewed-by: Rafael J. Wysocki Signed-off-by: Kei

Re: [PATCH 0/4] mwifiex PCI/wake-up interrupt fixes

2019-02-27 Thread Rafael J. Wysocki
On Wed, Feb 27, 2019 at 9:58 PM Brian Norris wrote: > > Hi Ard, > > On Wed, Feb 27, 2019 at 11:16:12AM +0100, Ard Biesheuvel wrote: > > On Wed, 27 Feb 2019 at 11:02, Marc Zyngier wrote: > > > On 26/02/2019 23:28, Brian Norris wrote: > > > > You're not the first person to notice this. All the moti

Re: [PATCH] cros_ec: instantiate properly Intel ISH MCU device

2019-02-27 Thread Enric Balletbo Serra
Hi Gwendal, Missatge de Gwendal Grignou del dia dc., 27 de febr. 2019 a les 19:37: > > On Wed, Feb 27, 2019 at 10:08 AM Enric Balletbo i Serra > wrote: > > > > Hi Jett, > > > > Many thanks for the explanation. > > > > On 27/2/19 16:13, Jett Rink wrote: > > > The diagram you provided is correct.

Re: [PATCH 2/3] watchdog: orion: don't enable rstout if an interrupt is configured

2019-02-27 Thread Guenter Roeck
On Wed, Feb 27, 2019 at 08:59:07PM +, Chris Packham wrote: > Hijacking an old thread, > > On 11/10/17 5:30 PM, Chris Packham wrote: > > On 11/10/17 16:42, Guenter Roeck wrote: > >> On 10/10/2017 07:29 PM, Chris Packham wrote: > >>> The orion_wdt_irq invokes panic() so we are going to reset the

Re: [PATCH 11/32] softirq: Macrofy softirq vectors

2019-02-27 Thread Frederic Weisbecker
On Wed, Feb 27, 2019 at 10:54:10AM +0100, Sebastian Andrzej Siewior wrote: > On 2019-02-12 18:14:02 [+0100], Frederic Weisbecker wrote: > > --- /dev/null > > +++ b/include/linux/softirq_vector.h > > @@ -0,0 +1,10 @@ > could you please add a spdx header/identifier here? Ah right, will do. Thanks.

Re: [PATCH 23/32] softirq: Remove stale comment

2019-02-27 Thread Frederic Weisbecker
On Wed, Feb 27, 2019 at 12:04:04PM +0100, Sebastian Andrzej Siewior wrote: > On 2019-02-12 18:14:14 [+0100], Frederic Weisbecker wrote: > > __local_bh_disable_ip() is neither for strict internal use nor does it > > require the caller to disable hardirqs. Probaby a celebration for ancient > > Proba

Re: [PATCH] drm/vkms: fix use-after-free when drm_gem_handle_create() fails

2019-02-27 Thread Rodrigo Siqueira
On 02/26, Eric Biggers wrote: > From: Eric Biggers > > If drm_gem_handle_create() fails in vkms_gem_create(), then the > vkms_gem_object is freed twice: once when the reference is dropped by > drm_gem_object_put_unlocked(), and again by the extra calls to > drm_gem_object_release() and kfree(). >

Re: [PATCH v2] cifs: use correct format characters

2019-02-27 Thread Nick Desaulniers
On Wed, Feb 27, 2019 at 2:26 PM Louis Taylor wrote: > > When compiling with -Wformat, clang emits the following warnings: > > fs/cifs/smb1ops.c:312:20: warning: format specifies type 'unsigned > short' but the argument has type 'unsigned int' [-Wformat] > tgt_total_cnt, to

missing stack trace entry on NULL pointer call [was: Re: BUG: unable to handle kernel NULL pointer dereference in __generic_file_write_iter]

2019-02-27 Thread Jann Horn
+Josh for unwinding, +x86 folks On Wed, Feb 27, 2019 at 11:43 PM Andrew Morton wrote: > On Thu, 21 Feb 2019 06:52:04 -0800 syzbot > wrote: > > > Hello, > > > > syzbot found the following crash on: > > > > HEAD commit:4aa9fc2a435a Revert "mm, memory_hotplug: initialize struct.. > > git tree:

Re: [PATCH 24/32] softirq: Uninline !CONFIG_TRACE_IRQFLAGS __local_bh_disable_ip()

2019-02-27 Thread Frederic Weisbecker
On Wed, Feb 27, 2019 at 12:14:29PM +0100, Sebastian Andrzej Siewior wrote: > On 2019-02-12 18:14:15 [+0100], Frederic Weisbecker wrote: > > diff --git a/include/linux/bottom_half.h b/include/linux/bottom_half.h > > index 240419382978..ef9e4c752f56 100644 > > --- a/include/linux/bottom_half.h > > ++

Re: [PATCH 0/5] x86/percpu semantics and fixes

2019-02-27 Thread Nadav Amit
> On Feb 27, 2019, at 2:12 AM, Peter Zijlstra wrote: > > Hi all, > > This is a collection of x86/percpu changes that I had pending and got reminded > of by Linus' comment yesterday about __this_cpu_xchg(). > > This tidies up the x86/percpu primitives and fixes a bunch of 'fallout'. > > Built a

Re: [PATCH] x86/stacktrace: export save_stack_trace_tsk_reliable

2019-02-27 Thread Joe Lawrence
On 2/27/19 5:25 PM, Joe Lawrence wrote: On 2/27/19 4:31 PM, Thomas Gleixner wrote: On Wed, 27 Feb 2019, Joe Lawrence wrote: The ppc64le implementation of save_stack_trace_tsk_reliable() is exported, so do the same with x86. And what's the in tree module user of this? I can't find one and jus

Re: [PATCH -next] appletalk: use remove_proc_subtree to simplify procfs code

2019-02-27 Thread kbuild test robot
Hi YueHaibing, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on next-20190227] url: https://github.com/0day-ci/linux/commits/Yue-Haibing/appletalk-use-remove_proc_subtree-to-simplify-procfs-code/20190228-014856 config: i386-randconfig-s3-02271654 (attached

Re: [PATCH v5 04/10] crypto: akcipher - new verify API for public key algorithms

2019-02-27 Thread Mimi Zohar
Hi Vitaly, On Sun, 2019-02-24 at 09:08 +0300, Vitaly Chikunov wrote: > Previous akcipher .verify() just `decrypts' (using RSA encrypt which is > using public key) signature to uncover message hash, which was then > compared in upper level public_key_verify_signature() with the expected > hash valu

Re: [PATCH V15 14/18] block: enable multipage bvecs

2019-02-27 Thread Ming Lei
On Wed, Feb 27, 2019 at 08:47:09PM +, Jon Hunter wrote: > > On 21/02/2019 08:42, Marek Szyprowski wrote: > > Dear All, > > > > On 2019-02-15 12:13, Ming Lei wrote: > >> This patch pulls the trigger for multi-page bvecs. > >> > >> Reviewed-by: Omar Sandoval > >> Signed-off-by: Ming Lei > >

Re: broken probe deferred for power-domains

2019-02-27 Thread Rob Herring
On Tue, Feb 26, 2019 at 8:18 PM Niklas Cassel wrote: > > Hello Rob, > > Your patch e01afc325025 ("PM / Domains: Stop deferring probe > at the end of initcall") breaks deferred probe for power domains. With all the dependencies built-in, right? What board in case I have one? > The patch looks li

Re: [PATCH v2 1/9] dt-bindings: power: supply: axp20x_usb_power: add axp813 compatible

2019-02-27 Thread Rob Herring
On Mon, 25 Feb 2019 11:30:59 +0800, Chen-Yu Tsai wrote: > This adds the "x-powers,axp813-usb-power-supply" to the list of > compatibles for AXP20X VBUS power supply driver. > > Signed-off-by: Chen-Yu Tsai > --- > .../devicetree/bindings/power/supply/axp20x_usb_power.txt| 1 + > 1 file ch

Re: [PATCH v2 1/2] dt-bindings: regulator: add LS2 load switch documentation

2019-02-27 Thread Rob Herring
On Mon, 25 Feb 2019 07:41:05 +0100, Christian Hohnstaedt wrote: > Document device-tree settings of the load-switch LS2 > in the tps65218 device. > > Signed-off-by: Christian Hohnstaedt > --- > Documentation/devicetree/bindings/regulator/tps65218.txt | 5 + > 1 file changed, 5 insertions(+) >

Re: [PATCH] x86/fpu: Parse comma separated list passed in clearcpuid

2019-02-27 Thread Prarit Bhargava
On 2/21/19 8:48 AM, Peter Zijlstra wrote: > On Thu, Feb 21, 2019 at 08:12:25AM -0500, Prarit Bhargava wrote: >> Users cannot disable multiple CPU features with the kernel parameter >> clearcpuid=. For example, "clearcpuid=154 clearcpuid=227" only disables >> CPUID bit 154. >> >> Previous to com

Re: linux-next: Signed-off-by missing for commit in the pci tree

2019-02-27 Thread Bjorn Helgaas
On Wed, Feb 27, 2019 at 3:01 PM Stephen Rothwell wrote: > > Hi Bjorn, > > Commit > > a048671aa0c8 ("PCI: qcom: Don't deassert reset GPIO during probe") > > is missing a Signed-off-by from its committer. Lorenzo, if you add your signed-off-by, I can rebuild this. I think it's on your pci/dwc br

Re: [PATCH v2] drm/vgem: fix use-after-free when drm_gem_handle_create() fails

2019-02-27 Thread Laura Abbott
On 2/26/19 1:44 PM, Eric Biggers wrote: From: Eric Biggers If drm_gem_handle_create() fails in vgem_gem_create(), then the drm_vgem_gem_object is freed twice: once when the reference is dropped by drm_gem_object_put_unlocked(), and again by __vgem_gem_destroy(). This was hit by syzkaller using

[PATCH v2] hci_qca: Reduce delay after sending baudrate request for WCN3990

2019-02-27 Thread Matthias Kaehlcke
The current 300ms delay after a baudrate change is extremely long. For WCN3990 it is sufficient to wait 10ms after the baudrate change request has been sent over the wire. Signed-off-by: Matthias Kaehlcke --- Changes in v2: - moved wait for the request to be sent into the common code path - s/WCM

Re: [PATCH v8 05/26] clocksource: Add driver for the Ingenic JZ47xx OST

2019-02-27 Thread Paul Cercueil
Hi, Le lun. 25 févr. 2019 à 15:05, Stephen Boyd a écrit : Quoting Paul Cercueil (2019-02-22 19:17:25) Hi, Anything new on this? It still happens on 5.0-rc7. It probes with late_initcall, and not with device_initcall. I have no clue what's going on. I'm not sure what's going on either.

Re: [PATCH V10 1/4] dt-bindings: fsl: scu: add thermal binding

2019-02-27 Thread Rob Herring
On Wed, Feb 27, 2019 at 08:46:21AM +, Anson Huang wrote: > NXP i.MX8QXP is an ARMv8 SoC with a Cortex-M4 core inside as > system controller, the system controller is in charge of system > power, clock and thermal sensors etc. management, Linux kernel > has to communicate with system controller

Re: [PATCH v4 1/9] dt-bindings: mfd: Add ST Multi-Function eXpander (STMFX) core bindings

2019-02-27 Thread Rob Herring
On Wed, 27 Feb 2019 10:34:46 +0100, Amelie Delaunay wrote: > This patch adds documentation of device tree bindings for the > STMicroelectronics Multi-Function eXpander (STMFX) MFD core. > > Signed-off-by: Amelie Delaunay > Reviewed-by: Linus Walleij > Acked-for-MFD-by: Lee Jones > --- > Docume

[PATCH] PCI: PCIe: PME: Fix pcie_pme_remove()

2019-02-27 Thread Rafael J. Wysocki
From: Rafael J. Wysocki It is incorrect to call pcie_pme_suspend() from pcie_pme_remove() for two reasons. First, pcie_pme_suspend() calls synchronize_irq() that will wait for the native hotplug interrupt handler as well as for the PME one, because they share one IRQ (as per the spec). That may

Re: [PATCH v5 1/2] iio:temperature:max31856:Add device tree bind info

2019-02-27 Thread Rob Herring
On Tue, Feb 26, 2019 at 04:02:13PM +0100, Patrick Havelange wrote: > From: Paresh Chaudhary > > This patch added device tree binding info for MAX31856 driver. > > Signed-off-by: Paresh Chaudhary > Signed-off-by: Matt Weber > Signed-off-by: Patrick Havelange > --- > Changes > v1 -> v2 > [Matt

Re: [PATCH v1 0/4] arm64: dts: NXP: add basic dts file for LX2160A SoC

2019-02-27 Thread Stephen Boyd
Quoting Vabhav Sharma (2019-02-26 02:10:46) > These patches were reviewed and acked but dropped during merge window. > Patchwork link was https://lore.kernel.org/patchwork/cover/1004155/ > > Changes for v1: > - Updated lx2160a clockgen in alphabetical order > > Vabhav Sharma (2): > dt-bindings:

Re: [PATCH 2/2] drivers/misc: Add Aspeed P2A control driver

2019-02-27 Thread Andrew Jeffery
On Wed, 27 Feb 2019, at 15:35, Florian Fainelli wrote: > > > On 2/21/2019 2:25 PM, Patrick Venture wrote: > > The ASPEED AST2400, and AST2500 in some configurations include a > > PCI-to-AHB MMIO bridge. This bridge allows a server to read and write > > in the BMC's memory space. This feature is

Re: [PATCH net-next 0/6] net: add individual virtual device filtering

2019-02-27 Thread Florian Fainelli
Hi Ivan, On 2/26/19 10:45 AM, Ivan Khoronzhuk wrote: > One of the reasons of this proposition is safety and performance - > host should not receive traffic which is not designated for it. > > Some network devices can hold separate address tables for vlans and > real device, but for some reason th

Re: broken probe deferred for power-domains

2019-02-27 Thread Niklas Cassel
On Wed, Feb 27, 2019 at 05:32:14PM -0600, Rob Herring wrote: > On Tue, Feb 26, 2019 at 8:18 PM Niklas Cassel > wrote: > > > > Hello Rob, > > > > Your patch e01afc325025 ("PM / Domains: Stop deferring probe > > at the end of initcall") breaks deferred probe for power domains. > > With all the dep

Re: [RFC v3 17/19] of: unittest: migrate tests to run on KUnit

2019-02-27 Thread Brendan Higgins
On Mon, Feb 18, 2019 at 2:56 PM Frank Rowand wrote: > > On 2/12/19 5:44 PM, Brendan Higgins wrote: > > On Wed, Nov 28, 2018 at 12:56 PM Rob Herring wrote: > >> > >> On Wed, Nov 28, 2018 at 1:38 PM Brendan Higgins > >> wrote: > >>> --- > >>> drivers/of/Kconfig|1 + > >>> drivers/of/unit

[PATCH net-next] switchdev: Remove unused transaction item queue

2019-02-27 Thread Florian Fainelli
There are no more in tree users of the switchdev_trans_item_{dequeue,enqueue} or switchdev_trans_item structure in the kernel since commit 00fc0c51e35b ("rocker: Change world_ops API and implementation to be switchdev independant"). Remove this unused code and update the documentation accordingly

Re: [PATCH 4/6] objtool: Replace STACK_FRAME_NON_STANDARD annotation

2019-02-27 Thread Andy Lutomirski
On Wed, Feb 27, 2019 at 4:21 AM Peter Zijlstra wrote: > > On Mon, Feb 25, 2019 at 10:11:24AM -0600, Josh Poimboeuf wrote: > > On Mon, Feb 25, 2019 at 01:43:34PM +0100, Peter Zijlstra wrote: > > > > -#define STACK_FRAME_NON_STANDARD(func) \ > > > - static void __used __section(.discard.func_stack

[PATCH v2 1/2] x86/mm/KASLR: Only build one PUD entry of area for real mode trampoline

2019-02-27 Thread Baoquan He
The current code builds identity mapping for real mode treampoline by borrowing page tables from the direct mapping section if KASLR is enabled. It will copy present entries of the first PUD table in 4-level paging mode, or the first P4D table in 5-level paging mode. However, there's only a very s

[PATCH v2 2/2] x86/mm/KASLR: Change the granularity of randomization to PUD size in 5-level

2019-02-27 Thread Baoquan He
The current randomization granularity of 5-level is 512 GB. Improve it to 1 GB. This can add more randomness to memory region KASLR in 5-level paging mode Signed-off-by: Baoquan He --- arch/x86/mm/kaslr.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/arch/x8

[PATCH v2 0/2] x86/mm/KASLR: Change the granularity of randomization to PUD size in 5-level

2019-02-27 Thread Baoquan He
This is v2 post. v1 can be found here: http://lkml.kernel.org/r/20190224132231.4878-1-...@redhat.com Background: *** Earlier, during a series of KASLR patch reviewing, Ingo got the current memory region KASLR only has granularity of randomization in PUD size in 4-level paging mode, and P4D size in

Re: [PATCH RFC 1/1] uio: Add dma-buf import ioctls

2019-02-27 Thread Hyun Kwon
Hi Daniel, On Wed, 2019-02-27 at 06:13:45 -0800, Daniel Vetter wrote: > On Tue, Feb 26, 2019 at 11:20 PM Hyun Kwon wrote: > > > > Hi Daniel, > > > > Thanks for the comment. > > > > On Tue, 2019-02-26 at 04:06:13 -0800, Daniel Vetter wrote: > > > On Tue, Feb 26, 2019 at 12:53 PM Greg Kroah-Hartman

Re: [PATCH 3/8] tlan: use pci_zalloc instead of pci_alloc

2019-02-27 Thread Robert Eshleman
On Tue, Feb 26, 2019 at 10:22:06PM -0800, Joe Perches wrote: > On Tue, 2019-02-26 at 22:09 -0800, Robert Eshleman wrote: > > This patch replaces a pci_alloc_consistent and memset(,0) call > > with a single call to pci_zalloc_consistent. > [] > > diff --git a/drivers/net/ethernet/ti/tlan.c b/drivers

Re: [PATCH 7/8] net: seeq: replace kmalloc / memset(,0) with kzalloc

2019-02-27 Thread Robert Eshleman
On Tue, Feb 26, 2019 at 10:09:54PM -0800, Robert Eshleman wrote: > This patch reduces a call to memset(,0) by replacing > a kmalloc call with a kzalloc call. > > Signed-off-by: Robert Eshleman > --- > drivers/net/ethernet/seeq/ether3.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) >

RE: [PATCH V10 1/4] dt-bindings: fsl: scu: add thermal binding

2019-02-27 Thread Anson Huang
Hi, Rob Best Regards! Anson Huang > -Original Message- > From: Rob Herring [mailto:r...@kernel.org] > Sent: 2019年2月28日 7:55 > To: Anson Huang > Cc: mark.rutl...@arm.com; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pengutronix.de; feste...@gmail.com; > catalin.mari...@arm.com; w

Re: [PATCH] fw_cfg: use __ATTR_RO_MODE to define rev sysfs

2019-02-27 Thread Wei Yang
On Wed, Feb 27, 2019 at 08:51:11AM -0500, Michael S. Tsirkin wrote: >On Wed, Feb 27, 2019 at 01:33:19PM +0800, Wei Yang wrote: >> On Tue, Feb 26, 2019 at 11:10:06AM -0500, Michael S. Tsirkin wrote: >> >On Tue, Feb 26, 2019 at 03:31:59PM +0800, Wei Yang wrote: >> >> Leverage __ATTR_RO_MODE to define

Re: [PATCH v4 5/8] mfd: cros_ec_dev: Register cros_ec_accel_legacy driver as a subdevice.

2019-02-27 Thread Gwendal Grignou
On Mon, Apr 16, 2018 at 6:21 AM Lee Jones wrote: > > On Wed, 04 Apr 2018, Enric Balletbo Serra wrote: > > > Hi again, > > > > 2018-04-04 10:03 GMT+02:00 Enric Balletbo Serra : > > > Hi Lee, > > > > > > 2018-03-28 13:03 GMT+02:00 Lee Jones : > > >> On Tue, 20 Mar 2018, Enric Balletbo i Serra wrote:

Re: [f2fs-dev] [PATCH] f2fs: don't clear CP_QUOTA_NEED_FSCK_FLAG

2019-02-27 Thread Chao Yu
On 2019/2/27 1:57, Jaegeuk Kim wrote: >/* > * TODO: we count on fsck.f2fs to clear this flag until we figure out > * missing cases which clear it incorrectly. > */ > > I added like this. Reviewed-by: Chao Yu Thanks, > > Thanks,

Re: [f2fs-dev] [PATCH] f2fs: give random value to i_generation

2019-02-27 Thread Chao Yu
On 2019/2/27 1:45, Jaegeuk Kim wrote: > This follows to give random number to i_generation along with commit > 232530680290b ("ext4: improve smp scalability for inode generation") > > This can be used for DUN for UFS HW encryption. > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks,

RE: [PATCH 1/1] iommu: Bind process address spaces to devices

2019-02-27 Thread Tian, Kevin
> From: Jacob Pan [mailto:jacob.jun@linux.intel.com] > Sent: Thursday, February 28, 2019 5:41 AM > > On Tue, 26 Feb 2019 12:17:43 +0100 > Joerg Roedel wrote: > > > > > How about a 'struct iommu_sva' with an iommu-private definition that > > is returned by this function: > > > > struct io

Re: [PATCH] bpf: drop refcount if bpf_map_new_fd() fails in map_create()

2019-02-27 Thread Alexei Starovoitov
On Wed, Feb 27, 2019 at 04:52:16PM +, Martin Lau wrote: > On Wed, Feb 27, 2019 at 10:36:25PM +0800, zerons wrote: > > In bpf/syscall.c, map_create() first set map->usercnt to 1, a file > > descriptor is > > supposed to return to userspace. When bpf_map_new_fd() fails, drop the > > refcount. >

Re: [LKP] [page cache] eb797a8ee0: vm-scalability.throughput -16.5% regression

2019-02-27 Thread Huang, Ying
Waiman Long writes: > On 02/26/2019 12:30 PM, Linus Torvalds wrote: >> On Tue, Feb 26, 2019 at 12:17 AM Huang, Ying wrote: >>> As for fixing. Should we care about the cache line alignment of struct >>> inode? Or its size is considered more important because there may be a >>> huge number of st

Re: [PATCH] appletalk: Fix use-after-free in atalk_proc_exit

2019-02-27 Thread YueHaibing
On 2019/2/28 2:14, David Miller wrote: > From: Yue Haibing > Date: Wed, 27 Feb 2019 22:59:00 +0800 > >> @@ -1925,7 +1925,10 @@ static int __init atalk_init(void) >> >> register_netdevice_notifier(&ddp_notifier); >> aarp_proto_init(); >> -atalk_proc_init(); >> +rc = atalk_proc_

[PATCH V2 2/3] ARM: dts: imx7ulp: add mmdc support

2019-02-27 Thread Anson Huang
i.MX7ULP has a MMDC module to control DDR, it reuses i.MX6Q's MMDC module, add support for it. Signed-off-by: Anson Huang --- Changes since V1: - use "memory-controller" as MMDC node name to make it more generic. --- arch/arm/boot/dts/imx7ulp.dtsi | 6 ++ 1 file changed, 6 insertions

[PATCH V2 1/3] dt-bindings: memory-controllers: freescale: add MMDC binding doc

2019-02-27 Thread Anson Huang
Freescale MMDC (Multi Mode DDR Controller) driver is supported since i.MX6Q, but not yet documented, this patch adds binding doc for MMDC module driver. Signed-off-by: Anson Huang --- Changes since V1: - use "memory-controller" as MMDC node name and update examples. --- .../bindings/memo

[PATCH V2 3/3] ARM: dts: imx: make MMDC node name generic

2019-02-27 Thread Anson Huang
Node name should be generic, so use "memory-controller" instead of "mmdc" for MMDC node name. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6qdl.dtsi | 4 ++-- arch/arm/boot/dts/imx6sl.dtsi | 2 +- arch/arm/boot/dts/imx6sx.dtsi | 2 +- arch/arm/boot/dts/imx6ul.dtsi | 2 +- 4 files chang

RE: [PATCH 2/2] ARM: dts: imx7ulp: add mmdc support

2019-02-27 Thread Anson Huang
Hi, Fabio Best Regards! Anson Huang > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: 2019年2月28日 3:50 > To: Anson Huang > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pengutronix.de; > devicet...@vger.ker

Re: [PATCH v4 2/2] drivers/misc: Add Aspeed P2A control driver

2019-02-27 Thread Patrick Venture
On Wed, Feb 27, 2019 at 8:59 AM Patrick Venture wrote: > > The ASPEED AST2400, and AST2500 in some configurations include a > PCI-to-AHB MMIO bridge. This bridge allows a server to read and write > in the BMC's physical address space. This feature is especially useful > when using this bridge to

答复: [PATCH] time: Introduce jiffies64_to_msecs()

2019-02-27 Thread Li,Rongqing
> -邮件原件- > 发件人: Thomas Gleixner [mailto:t...@linutronix.de] > 发送时间: 2019年2月27日 19:18 > 收件人: Li,Rongqing > 抄送: netfilter-de...@vger.kernel.org; linux-kernel@vger.kernel.org; > sb...@kernel.org; john.stu...@linaro.org > 主题: Re: [PATCH] time: Introduce jiffies64_to_msecs() > > On Wed, 27 F

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

2019-02-27 Thread Stephen Rothwell
Hi all, After merging the bpf-next tree, today's linux-next build (arm multi_v7_defconfig) failed like this: kernel/sysctl.c:1238:13: error: 'sysctl_bpf_stats_enabled' undeclared here (not in a function); did you mean 'sysctl_base_table'? .data = &sysctl_bpf_stats_enabled, ^

Re: [PATCH V2 2/3] ARM: dts: imx7ulp: add mmdc support

2019-02-27 Thread Fabio Estevam
Hi Anson, On Wed, Feb 27, 2019 at 10:23 PM Anson Huang wrote: > > i.MX7ULP has a MMDC module to control DDR, it reuses > i.MX6Q's MMDC module, add support for it. > > Signed-off-by: Anson Huang > --- > Changes since V1: > - use "memory-controller" as MMDC node name to make it more generi

[PATCH v2 -next] appletalk: use remove_proc_subtree to simplify procfs code

2019-02-27 Thread Yue Haibing
From: YueHaibing Use remove_proc_subtree to remove the whole subtree on cleanup.Also do some cleanup. Signed-off-by: YueHaibing --- net/appletalk/atalk_proc.c | 56 ++ 1 file changed, 17 insertions(+), 39 deletions(-) diff --git a/net/appletalk/atal

Re: [PATCH -next] appletalk: use remove_proc_subtree to simplify procfs code

2019-02-27 Thread YueHaibing
On 2019/2/28 7:28, kbuild test robot wrote: > Hi YueHaibing, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on next-20190227] > > url: > https://github.com/0day-ci/linux/commits/Yue-Haibing/appletalk-use-remove_proc_subtree

Re: [LKP] [page cache] eb797a8ee0: vm-scalability.throughput -16.5% regression

2019-02-27 Thread Linus Torvalds
On Wed, Feb 27, 2019 at 5:19 PM Huang, Ying wrote: > > So I think in the heavily contended situation, we should put the fields > accessed by rwsem holder in a different cache line of rwsem. But in > un-contended situation, we should put the fields accessed in rwsem > holder and rwsem in the same

[PATCH v5] mfd: cros_ec_dev: Register cros_ec_accel_legacy driver as a subdevice

2019-02-27 Thread Gwendal Grignou
From: Enric Balletbo i Serra With this patch, the cros_ec_ctl driver will register the legacy accelerometer driver (named cros_ec_accel_legacy) if it fails to register sensors through the usual path cros_ec_sensors_register(). This legacy device is present on Chromebook devices with older EC firm

[PATCH v5 1/2] dt-bindings: misc: aspeed-p2a-ctrl: add support

2019-02-27 Thread Patrick Venture
Document the ast2400, ast2500 PCI-to-AHB bridge control driver bindings. Signed-off-by: Patrick Venture --- Changes for v5: - None Changes for v4: - None Changes for v3: - None Changes for v2: - Added comment about syscon required parameter. --- .../bindings/misc/aspeed-p2a-ctrl.txt | 32

[PATCH v5 2/2] drivers/misc: Add Aspeed P2A control driver

2019-02-27 Thread Patrick Venture
The ASPEED AST2400, and AST2500 in some configurations include a PCI-to-AHB MMIO bridge. This bridge allows a server to read and write in the BMC's physical address space. This feature is especially useful when using this bridge to send large files to the BMC. The host may use this to send down

RE: [PATCH V2 2/3] ARM: dts: imx7ulp: add mmdc support

2019-02-27 Thread Anson Huang
Hi, Fabio Best Regards! Anson Huang > -Original Message- > From: Fabio Estevam [mailto:feste...@gmail.com] > Sent: 2019年2月28日 9:32 > To: Anson Huang > Cc: robh...@kernel.org; mark.rutl...@arm.com; shawn...@kernel.org; > s.ha...@pengutronix.de; ker...@pengutronix.de; > devicet...@vger.ker

Re: [PATCH v3 0/5] tracing/probes: uaccess: Add support user-space access

2019-02-27 Thread Masami Hiramatsu
On Wed, 27 Feb 2019 14:32:41 -0800 Alexei Starovoitov wrote: > On Wed, Feb 27, 2019 at 11:42:15PM +0900, Masami Hiramatsu wrote: > > > > For perf-probe, we can add some attribute for each argument > > which indicate that the variable in user space. But still > > we can not decide it automaticall

[PATCH] tools lib traceevent: Fix buffer overflow in arg_eval

2019-02-27 Thread Tony Jones
Fix buffer overflow observed when running perf test. The overflow is when trying to evaluate "1ULL << (64 - 1)" which is resulting in -9223372036854775808 which overflows the 20 character buffer. If is possible this bug has been reported before but I still don't see any fix checked in: See: http

Re: [PATCH V2 2/3] ARM: dts: imx7ulp: add mmdc support

2019-02-27 Thread Fabio Estevam
Hi Anson, On Wed, Feb 27, 2019 at 10:54 PM Anson Huang wrote: > If so, should I change other i.MX6 SoCs with single MMDC node as well? > Remove them as well? Only imx6qp needs the mmdc label. I can send a patch removing it from the other i.MX SoCs, so don't need to worry about it in your serie

[PATCH] xen-netback: fix occasional leak of grant ref mappings under memory pressure

2019-02-27 Thread Igor Druzhinin
Zero-copy callback flag is not yet set on frag list skb at the moment xenvif_handle_frag_list() returns -ENOMEM. This eventually results in leaking grant ref mappings since xenvif_zerocopy_callback() is never called for these fragments. Those eventually build up and cause Xen to kill Dom0 as the sl

Re: [PATCH v2 2/2] clk: mediatek: correct cpu clock name for MT8173 SoC

2019-02-27 Thread Seiya Wang
On Tue, 2019-02-26 at 10:18 -0800, Stephen Boyd wrote: > Quoting Seiya Wang (2019-02-24 22:51:12) > > diff --git a/include/dt-bindings/clock/mt8173-clk.h > > b/include/dt-bindings/clock/mt8173-clk.h > > index 8aea623dd518..76e4e5b65353 100644 > > --- a/include/dt-bindings/clock/mt8173-clk.h > > ++

Re: [bug report][stable] perf probe: failed to add events

2019-02-27 Thread Joseph Qi
Hi Adrian, On 19/2/27 20:39, Adrian Hunter wrote: > Seems to be fixed by this: > > From: Adrian Hunter > Date: Wed, 27 Feb 2019 05:35:25 +0200 > Subject: [PATCH] perf probe: Fix getting the kernel map > > Since commit 4d99e4136580 ("perf machine: Workaround missing maps for x86 > PTI entry tram

Re: [PATCH v5 1/3] PCI: altera: Add Stratix 10 PCIe support

2019-02-27 Thread Ley Foon Tan
On Wed, 2019-02-27 at 17:38 +, Lorenzo Pieralisi wrote: > On Tue, Feb 26, 2019 at 05:15:46PM +0800, Ley Foon Tan wrote: > > > > Add PCIe Root Port support for Stratix 10 device. > > > > Main differences compare with PCIe Root Port IP on Cyclone V > > and Arria 10 devices: > > > > - HIP inter

Re: [PATCH v3 11/34] mips: mm: Add p?d_large() definitions

2019-02-27 Thread Paul Burton
Hi Steven, On Wed, Feb 27, 2019 at 05:05:45PM +, Steven Price wrote: > For mips, we don't support large pages on 32 bit so add stubs returning 0. So far so good :) > For 64 bit look for _PAGE_HUGE flag being set. This means exposing the > flag when !CONFIG_MIPS_HUGE_TLB_SUPPORT. Here I have

[PATCH 00/12] introduce percpu block scan_hint

2019-02-27 Thread Dennis Zhou
Hi everyone, It was reported a while [1] that an increase in allocation alignment requirement [2] caused the percpu memory allocator to do significantly more work. After spending quite a bit of time diving into it, it seems the crux was the following: 1) chunk management by free_bytes caused al

[PATCH 01/12] percpu: update free path with correct new free region

2019-02-27 Thread Dennis Zhou
When updating the chunk's contig_hint on the free path of a hint that does not touch the page boundaries, it was incorrectly using the starting offset of the free region and the block's contig_hint. This could lead to incorrect assumptions about fit given a size and better alignment of the start. F

[PATCH 06/12] percpu: set PCPU_BITMAP_BLOCK_SIZE to PAGE_SIZE

2019-02-27 Thread Dennis Zhou
Previously, block size was flexible based on the constraint that the GCD(PCPU_BITMAP_BLOCK_SIZE, PAGE_SIZE) > 1. However, this carried the overhead that keeping a floating number of populated free pages required scanning over the free regions of a chunk. Setting the block size to be fixed at PAGE_

[PATCH 09/12] percpu: use block scan_hint to only scan forward

2019-02-27 Thread Dennis Zhou
Blocks now remember the latest scan_hint. This can be used on the allocation path as when a contig_hint is broken, we can promote the scan_hint to the contig_hint and scan forward from there. This works because pcpu_block_refresh_hint() is only called on the allocation path while block free regions

[PATCH 10/12] percpu: make pcpu_block_md generic

2019-02-27 Thread Dennis Zhou
In reality, a chunk is just a block covering a larger number of bits. The hints themselves are one in the same. Rather than maintaining the hints separately, first introduce nr_bits to genericize pcpu_block_update() to correctly maintain block->right_free. The next patch will convert chunk hints to

[PATCH 02/12] percpu: do not search past bitmap when allocating an area

2019-02-27 Thread Dennis Zhou
pcpu_find_block_fit() guarantees that a fit is found within PCPU_BITMAP_BLOCK_BITS. Iteration is used to determine the first fit as it compares against the block's contig_hint. This can lead to incorrectly scanning past the end of the bitmap. The behavior was okay given the check after for bit_off

[PATCH 08/12] percpu: remember largest area skipped during allocation

2019-02-27 Thread Dennis Zhou
Percpu allocations attempt to do first fit by scanning forward from the first_free of a block. However, fragmentation from allocation requests can cause holes not seen by block hint update functions. To address this, create a local version of bitmap_find_next_zero_area_off() that remembers the larg

[PATCH 05/12] percpu: relegate chunks unusable when failing small allocations

2019-02-27 Thread Dennis Zhou
In certain cases, requestors of percpu memory may want specific alignments. However, it is possible to end up in situations where the contig_hint matches, but the alignment does not. This causes excess scanning of chunks that will fail. To prevent this, if a small allocation fails (< 32B), the chun

[PATCH 03/12] percpu: introduce helper to determine if two regions overlap

2019-02-27 Thread Dennis Zhou
While block hints were always accurate, it's possible when spanning across blocks that we miss updating the chunk's contig_hint. Rather than rely on correctness of the boundaries of hints, do a full overlap comparison. Signed-off-by: Dennis Zhou --- mm/percpu.c | 31 +++--

[PATCH 11/12] percpu: convert chunk hints to be based on pcpu_block_md

2019-02-27 Thread Dennis Zhou
As mentioned in the last patch, a chunk's hints are no different than a block just responsible for more bits. This converts chunk level hints to use a pcpu_block_md to maintain them. This lets us reuse the same hint helper functions as a block. The left_free and right_free are unused by the chunk's

[PATCH 04/12] percpu: manage chunks based on contig_bits instead of free_bytes

2019-02-27 Thread Dennis Zhou
When a chunk becomes fragmented, it can end up having a large number of small allocation areas free. The free_bytes sorting of chunks leads to unnecessary checking of chunks that cannot satisfy the allocation. Switch to contig_bits sorting to prevent scanning chunks that may not be able to service

[PATCH 12/12] percpu: use chunk scan_hint to skip some scanning

2019-02-27 Thread Dennis Zhou
Just like blocks, chunks now maintain a scan_hint. This can be used to skip some scanning by promoting the scan_hint to be the contig_hint. The chunk's scan_hint is primarily updated on the backside and relies on full scanning when a block becomes free or the free region spans across blocks. Signe

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

2019-02-27 Thread Alexei Starovoitov
On Wed, Feb 27, 2019 at 5:31 PM Stephen Rothwell wrote: > > Hi all, > > After merging the bpf-next tree, today's linux-next build (arm > multi_v7_defconfig) failed like this: > > kernel/sysctl.c:1238:13: error: 'sysctl_bpf_stats_enabled' undeclared here > (not in a function); did you mean 'sysctl

[PATCH 07/12] percpu: add block level scan_hint

2019-02-27 Thread Dennis Zhou
Fragmentation can cause both blocks and chunks to have an early first_firee bit available, but only able to satisfy allocations much later on. This patch introduces a scan_hint to help mitigate some unnecessary scanning. The scan_hint remembers the largest area prior to the contig_hint. If the con

Re: [PATCH v3 1/2] Provide in-kernel headers for making it easy to extend the kernel

2019-02-27 Thread Masahiro Yamada
Hi Joel, On Thu, Feb 28, 2019 at 4:40 AM Joel Fernandes (Google) wrote: > > Introduce in-kernel headers and other artifacts which are made available > as an archive through proc (/proc/kheaders.tar.xz file). This archive makes > it possible to build kernel modules, run eBPF programs, and other >

Re: [PATCH v3 4/5] tracing/probe: Add ustring type for user-space string

2019-02-27 Thread Steven Rostedt
On Wed, 27 Feb 2019 23:44:13 +0900 Masami Hiramatsu wrote: > Add "ustring" type for fetching user-space string from kprobe event. > User can specify ustring type at uprobe event, and it is same as > "string" for uprobe. > > Note that probe-event provides this option but it doesn't choose the > c

[PATCH v2] appletalk: Fix use-after-free in atalk_proc_exit

2019-02-27 Thread Yue Haibing
From: YueHaibing KASAN report this: BUG: KASAN: use-after-free in pde_subdir_find+0x12d/0x150 fs/proc/generic.c:71 Read of size 8 at addr 8881f41fe5b0 by task syz-executor.0/2806 CPU: 0 PID: 2806 Comm: syz-executor.0 Not tainted 5.0.0-rc7+ #45 Hardware name: QEMU Standard PC (i440FX + PIIX,

Re: [PATCH v3 5/5] tracing/probe: Support user-space dereference

2019-02-27 Thread Steven Rostedt
On Wed, 27 Feb 2019 23:44:42 +0900 Masami Hiramatsu wrote: > > +.. _user_mem_access: > +User Memory Access > +-- > +Kprobe events supports user-space memory access. For that purpose, you can > use > +either user-space dereference syntax or 'ustring' type. > + > +user-space dere

[PATCH v4 0/2] PCI: hv: Refactor hv_irq_unmask() to use hv_vpset and cpumask_to_vpset()

2019-02-27 Thread Maya Nakamura
This patchset removes a duplicate definition of VP set (hv_vp_set) and uses the common definition (hv_vpset) that is used in other places. It changes the order of the members in struct hv_pcibus_device due to flexible array in hv_vpset. It also removes the duplicate implementation of cpumask_to_vp

Re: [PATCH v4 03/10] dt-bindings: Add documentation for Milbeaut SoCs

2019-02-27 Thread Sugaya, Taichi
Hi, On 2019/02/27 23:47, Rob Herring wrote: On Tue, Feb 26, 2019 at 10:51 PM Sugaya Taichi wrote: This adds a DT binding documentation for the M10V and its evaluation board. Signed-off-by: Sugaya Taichi --- .../bindings/arm/socionext/milbeaut.yaml | 22 ++ 1

Re: [PATCH 0/4] mwifiex PCI/wake-up interrupt fixes

2019-02-27 Thread Brian Norris
Hi Rafael, On Wed, Feb 27, 2019 at 3:04 PM Rafael J. Wysocki wrote: > On Wed, Feb 27, 2019 at 9:58 PM Brian Norris wrote: > > On Wed, Feb 27, 2019 at 11:16:12AM +0100, Ard Biesheuvel wrote: > > > So I'd argue that we should add an optional 'wake-gpio' DT property > > > instead to the generic PCI

[PATCH v4 1/2] PCI: hv: Replace hv_vp_set with hv_vpset

2019-02-27 Thread Maya Nakamura
Remove a duplicate definition of VP set (hv_vp_set) and use the common definition (hv_vpset) that is used in other places. Change the order of the members in struct hv_pcibus_device so that the declaration of retarget_msi_interrupt_params is the last member. Struct hv_vpset, which contains a flexi

[PATCH] powerpc: fix "sz" set but not used

2019-02-27 Thread Qian Cai
arch/powerpc/mm/hugetlbpage-hash64.c: In function '__hash_page_huge': arch/powerpc/mm/hugetlbpage-hash64.c:29:28: warning: variable 'sz' set but not used [-Wunused-but-set-variable] Signed-off-by: Qian Cai --- arch/powerpc/mm/hugetlbpage-hash64.c | 3 +-- 1 file changed, 1 insertion(+), 2 deleti

Re: [PATCH] drm/amd/display: Pass app_tf by value rather than by reference

2019-02-27 Thread Alex Deucher
Applied. Sorry for the delay. Alex On Fri, Feb 22, 2019 at 10:36 AM Nathan Chancellor wrote: > > On Mon, Dec 10, 2018 at 04:42:01PM -0700, Nathan Chancellor wrote: > > Clang warns when an expression that equals zero is used as a null > > pointer constant (in lieu of NULL): > > > > drivers/gpu/d

  1   2   3   4   5   6   7   8   9   >