[PATCH 11/11] dt-bindings: can: rcar_canfd: document r8a774c0 support

2019-01-16 Thread Fabrizio Castro
Document the support for rcar_canfd on R8A774C0 SoC devices. Signed-off-by: Fabrizio Castro Reviewed-by: Chris Paterson --- This patch depends on: https://patchwork.kernel.org/patch/10687999/ https://patchwork.kernel.org/patch/10688001/ Documentation/devicetree/bindings/net/can/rcar_canfd.txt

[PATCH 09/11] dt-bindings: can: rcar_can: Fix RZ/G2 CAN clocks

2019-01-16 Thread Fabrizio Castro
According to the latest information, the clock options for CAN on RZ/G2 are the same as the ones available on R-Car Gen3 Fixes: 868b7c0f43e6 ("dt-bindings: can: rcar_can: Add r8a774a1 support") Signed-off-by: Fabrizio Castro Reviewed-by: Chris Paterson ---

[PATCH 01/11] dt-bindings: Add vendor prefix for Silicon Linux.

2019-01-16 Thread Fabrizio Castro
From: Biju Das Add Silicon Linux to the list of devicetree vendor prefixes. Website: http://www.si-linux.co.jp Signed-off-by: Biju Das Signed-off-by: Fabrizio Castro Reviewed-by: Chris Paterson --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+)

[PATCH 00/11] Add basic EK874 support

2019-01-16 Thread Fabrizio Castro
. This applies onto next-20190116 Thanks, Fab Biju Das (6): dt-bindings: Add vendor prefix for Silicon Linux. arm64: dts: renesas: Add Si-Linux CAT874 board support arm64: dts: renesas: Add Si-Linux EK874 board support arm64: dts: renesas: r8a774c0-cat874: Add pincontrol support to scif2

[PATCH] uart: Fix crash in uart_write and uart_put_char

2019-01-16 Thread samir
From: Samir Virmani We were experiencing a crash similar to the one reported as part of commit:a5ba1d95e46e ("uart: fix race between uart_put_char() and uart_shutdown()") in our testbed as well. We continue to observe the same crash after integrating the commit a5ba1d95e46e ("uart: fix race

Re: [RFC v3 14/21] iommu: introduce device fault data

2019-01-16 Thread Auger Eric
Hi Jean, On 1/16/19 4:52 PM, Jean-Philippe Brucker wrote: > On 14/01/2019 22:32, Jacob Pan wrote: >>> [...] > +/** > + * struct iommu_fault - Generic fault data > + * > + * @type contains fault type > + * @reason fault reasons if relevant outside IOMMU driver. > + * IOMMU

Re: [PATCH v3] xen: Fix x86 sched_clock() interface for xen

2019-01-16 Thread Boris Ostrovsky
On 1/16/19 10:29 AM, Juergen Gross wrote: > On 16/01/2019 16:07, Boris Ostrovsky wrote: >> On 1/16/19 9:33 AM, Juergen Gross wrote: >>> On 16/01/2019 14:17, Boris Ostrovsky wrote: On Wed, Jan 16, 2019 at 08:50:13AM +0100, Juergen Gross wrote: > @@ -1650,13 +1650,14 @@ void

[PATCH] Yama: Check for pid death before checking ancestry

2019-01-16 Thread Kees Cook
It's possible that a pid has died before we take the rcu lock, in which case we can't walk the ancestry list as it may be detached. Instead, check for death first before doing the walk. Reported-by: syzbot+a9ac39bf55329e206...@syzkaller.appspotmail.com Fixes: 2d514487faf1 ("security: Yama LSM")

Re: [PATCH] PCI: fix using __initdata memory after free in disable_acs_redir parameter

2019-01-16 Thread Logan Gunthorpe
On 2019-01-16 2:37 a.m., Jarkko Nikula wrote: > So this doesn't happen if you revert c5eb1190074c? Yes, but the bug was fully mine in the disable_acs_redir code. That patch only just made it noticable to me. > I guess this is due dev->state_saved being true set by > pci_pm_runtime_suspend()

Re: [RFC PATCH v4 08/13] genirq/msi: Add support for allocating single MSI for a device

2019-01-16 Thread Marc Zyngier
On 27/12/2018 06:13, Lokesh Vutla wrote: > Previously all msi for a device are allocated in one go > by calling msi_domain_alloc_irq() from a bus layer. This might > not be the case when a device is trying to allocate interrupts > dynamically based on a request to it. > > So introduce

Re: [RFC PATCH v2] akcipher: Introduce verify_rsa/verify for public key algorithms

2019-01-16 Thread Vitaly Chikunov
David, On Wed, Jan 16, 2019 at 05:12:20PM +, David Howells wrote: > Umm... What do I apply this patch to? This should go over "crypto: testmgr - split akcipher tests by a key type" which I sent at 20190107 to linux-crypto. Sorry for the mess. > In your modified

Re: [PATCH 3/8] nvmem: Add nvmem_cell_get_optional and devm_nvmem_cell_get_optional

2019-01-16 Thread Alban
On Tue, 15 Jan 2019 12:40:53 + Srinivas Kandagatla wrote: > On 06/01/2019 19:28, Alban Bedel wrote: > > Add helper functions to make the driver code simpler when a cell is > > optional. Using these functions just return NULL when the cell doesn't > > exists or if nvmem is disabled. > > > >

[PATCH v25 6/6] ntb: ntb_hw_switchtec: Cleanup 64bit IO defines to use the common header

2019-01-16 Thread Logan Gunthorpe
Clean up the ifdefs which conditionally defined the io{read|write}64 functions in favour of the new common io-64-nonatomic-lo-hi header. Per a nit from Andy Shevchenko, the include list is also made alphabetical. Signed-off-by: Logan Gunthorpe Reviewed-by: Andy Shevchenko Cc: Jon Mason ---

[PATCH v25 2/6] parisc: iomap: introduce io{read|write}64

2019-01-16 Thread Logan Gunthorpe
Add support for io{read|write}64() functions in parisc architecture. These are pretty straightforward copies of similar functions which make use of readq and writeq. Also, indicate that the lo_hi and hi_lo variants of these functions are not provided by this architecture. Signed-off-by: Logan

[PATCH v25 4/6] io-64-nonatomic: add io{read|write}64[be]{_lo_hi|_hi_lo} macros

2019-01-16 Thread Logan Gunthorpe
This patch adds generic io{read|write}64[be]{_lo_hi|_hi_lo} macros if they are not already defined by the architecture. (As they are provided by the generic iomap library). The patch also points io{read|write}64[be] to the variant specified by the header name. This is because new drivers are

Re: [PATCH 3/4] selftests: seccomp: use LDLIBS instead of LDFLAGS

2019-01-16 Thread shuah
On 1/16/19 11:13 AM, Kees Cook wrote: On Wed, Jan 16, 2019 at 9:44 AM Daniel Díaz wrote: From: Fathi Boudra seccomp_bpf fails to build due to undefined reference errors: aarch64-linaro-linux-gcc --sysroot=/build/tmp-rpb-glibc/sysroots/hikey -O2 -pipe -g -feliminate-unused-debug-types

[PATCH v25 1/6] iomap: Use non-raw io functions for io{read|write}XXbe

2019-01-16 Thread Logan Gunthorpe
Fix an asymmetry in the io{read|write}XXbe functions in that the big-endian variants make use of the raw io accessors while the little-endian variants use the regular accessors. Some architectures implement barriers to order against both spinlocks and DMA accesses and for these case, the

[PATCH 2/4] mm/memory-hotplug: allow memory resources to be children

2019-01-16 Thread Dave Hansen
From: Dave Hansen The mm/resource.c code is used to manage the physical address space. We can view the current resource configuration in /proc/iomem. An example of this is at the bottom of this description. The nvdimm subsystem "owns" the physical address resources which map to persistent

[PATCH v25 3/6] iomap: introduce io{read|write}64_{lo_hi|hi_lo}

2019-01-16 Thread Logan Gunthorpe
In order to provide non-atomic functions for io{read|write}64 that will use readq and writeq when appropriate. We define a number of variants of these functions in the generic iomap that will do non-atomic operations on pio but atomic operations on mmio. These functions are only defined if readq

[PATCH 1/4] mm/resource: return real error codes from walk failures

2019-01-16 Thread Dave Hansen
From: Dave Hansen walk_system_ram_range() can return an error code either becuase *it* failed, or because the 'func' that it calls returned an error. The memory hotplug does the following: ret = walk_system_ram_range(..., func); if (ret) return ret; and 'ret'

[PATCH 0/4] Allow persistent memory to be used like normal RAM

2019-01-16 Thread Dave Hansen
I would like to get this queued up to get merged. Since most of the churn is in the nvdimm code, and it also depends on some refactoring that only exists in the nvdimm tree, it seems like putting it in *via* the nvdimm tree is the best path. But, this series makes non-trivial changes to the

[PATCH 4/4] dax: "Hotplug" persistent memory for use like normal RAM

2019-01-16 Thread Dave Hansen
From: Dave Hansen Currently, a persistent memory region is "owned" by a device driver, either the "Direct DAX" or "Filesystem DAX" drivers. These drivers allow applications to explicitly use persistent memory, generally by being modified to use special, new libraries. However, this limits

[PATCH v25 0/6] Add io{read|write}64 to io-64-atomic headers

2019-01-16 Thread Logan Gunthorpe
This is resend number 6 since the last change to this series. This cleanup was requested by Greg KH back in June of 2017. I've resent the series a couple times a cycle since then, updating and fixing as feedback was slowly recieved some patches were alread accepted by specific arches. In June

[PATCH 3/4] dax/kmem: let walk_system_ram_range() search child resources

2019-01-16 Thread Dave Hansen
From: Dave Hansen In the process of onlining memory, we use walk_system_ram_range() to find the actual RAM areas inside of the area being onlined. However, it currently only finds memory resources which are "top-level" iomem_resources. Children are not currently searched which causes it to

[PATCH v25 5/6] ntb: ntb_hw_intel: use io-64-nonatomic instead of in-driver hacks

2019-01-16 Thread Logan Gunthorpe
Now that ioread64 and iowrite64 are available in io-64-nonatomic, we can remove the hack at the top of ntb_hw_intel.c and replace it with an include. Signed-off-by: Logan Gunthorpe Reviewed-by: Andy Shevchenko Acked-by: Dave Jiang Acked-by: Allen Hubbe Acked-by: Jon Mason ---

Re: [PATCH v2 2/2] reset: Add Broadcom STB SW_INIT reset controller driver

2019-01-16 Thread Scott Branden
On 2019-01-15 10:44 a.m., Florian Fainelli wrote: Add support for resetting blocks through the Linux reset controller subsystem when reset lines are provided through a SW_INIT-style reset controller on Broadcom STB SoCs. Signed-off-by: Florian Fainelli --- drivers/reset/Kconfig |

Re: [PATCH 3/4] selftests: seccomp: use LDLIBS instead of LDFLAGS

2019-01-16 Thread Kees Cook
On Wed, Jan 16, 2019 at 9:44 AM Daniel Díaz wrote: > > From: Fathi Boudra > > seccomp_bpf fails to build due to undefined reference errors: > > aarch64-linaro-linux-gcc --sysroot=/build/tmp-rpb-glibc/sysroots/hikey > -O2 -pipe -g -feliminate-unused-debug-types -Wl,-no-as-needed -Wall >

Assalamu`Alaikum.

2019-01-16 Thread Mohammad Ouattara
Dear Sir/Madam. Assalamu`Alaikum. I am Dr mohammad ouattara, I have ($14.6 Million us dollars) to transfer into your account, I will send you more details about this deal and the procedures to follow when I receive a positive response from you, Have a great day, Dr mohammad ouattara.

Re: [PATCH] dma-debug: add dumping facility via debugfs

2019-01-16 Thread Robin Murphy
On 16/01/2019 13:44, Corentin Labbe wrote: While debugging a DMA mapping leak, I needed to access debug_dma_dump_mappings() but easily from user space. This patch adds a /sys/kernel/debug/dma-api/dump file which contain all current DMA mapping. Signed-off-by: Corentin Labbe ---

Applied "ASoC: qcom: Kconfig: select max98927 for sdm845" to the asoc tree

2019-01-16 Thread Mark Brown
The patch ASoC: qcom: Kconfig: select max98927 for sdm845 has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent

Applied "ASoC: sdm845: Set DAI format for dmic codec" to the asoc tree

2019-01-16 Thread Mark Brown
The patch ASoC: sdm845: Set DAI format for dmic codec has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to

Re: [PATCH -next] soc: bcm: bcm2835-pm: Make local symbol static

2019-01-16 Thread Scott Branden
Looks good. On 2019-01-15 9:44 p.m., Wei Yongjun wrote: Fixes the following sparse warning: drivers/soc/bcm/bcm2835-power.c:556:32: warning: symbol 'bcm2835_reset_ops' was not declared. Should it be static? Fixes: 670c672608a1 ("soc: bcm: bcm2835-pm: Add support for power domains under a

[PATCH v8] arm64: dts: sdm845: Add gpu and gmu device nodes

2019-01-16 Thread Jordan Crouse
Add the nodes to describe the Adreno GPU and GMU devices for sdm845. Signed-off-by: Jordan Crouse Reviewed-by: Douglas Anderson Tested-by: Douglas Anderson --- This has the following dependencies: [v11,1/9] dt-bindings: opp: Introduce opp-level bindings

Re: [PATCH v6] arm64: implement ftrace with regs

2019-01-16 Thread Julien Thierry
On 16/01/2019 15:56, Julien Thierry wrote: > On 14/01/2019 12:26, Mark Rutland wrote: >> On Mon, Jan 14, 2019 at 11:13:59PM +1100, Balbir Singh wrote: >>> On Fri, Jan 04, 2019 at 05:50:18PM +, Mark Rutland wrote: Hi Torsten, On Fri, Jan 04, 2019 at 03:10:53PM +0100, Torsten

[PATCHv4 07/13] node: Add heterogenous memory access attributes

2019-01-16 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

[PATCHv4 05/13] Documentation/ABI: Add new node sysfs attributes

2019-01-16 Thread Keith Busch
Add entries for memory initiator and target node class attributes. Signed-off-by: Keith Busch --- Documentation/ABI/stable/sysfs-devices-node | 25 - 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/Documentation/ABI/stable/sysfs-devices-node

[PATCHv4 04/13] node: Link memory nodes to their compute nodes

2019-01-16 Thread Keith Busch
Systems may be constructed with various specialized nodes. Some nodes may provide memory, some provide compute devices that access and use that memory, and others may provide both. Nodes that provide memory are referred to as memory targets, and nodes that can initiate memory access are referred

[PATCHv4 00/13] Heterogeneuos memory node attributes

2019-01-16 Thread Keith Busch
The series seems quite calm now. I've received some approvals of the on the proposal, and heard no objections on the new core interfaces. Please let me know if there is anyone or group of people I should request and wait for a review. And if anyone reading this would like additional time as well

[PATCHv4 08/13] Documentation/ABI: Add node performance attributes

2019-01-16 Thread Keith Busch
Add descriptions for memory class initiator performance access attributes. Signed-off-by: Keith Busch --- Documentation/ABI/stable/sysfs-devices-node | 28 1 file changed, 28 insertions(+) diff --git a/Documentation/ABI/stable/sysfs-devices-node

[PATCHv4 10/13] node: Add memory caching attributes

2019-01-16 Thread Keith Busch
System memory may have side caches to help improve access speed to frequently requested address ranges. While the system provided cache is transparent to the software accessing these memory ranges, applications can optimize their own access based on cache attributes. Provide a new API for the

[PATCHv4 01/13] acpi: Create subtable parsing infrastructure

2019-01-16 Thread Keith Busch
Parsing entries in an ACPI table had assumed a generic header structure. There is no standard ACPI header, though, so less common layouts with different field sizes required custom parsers to go through their subtable entry list. Create the infrastructure for adding different table types so

[PATCHv4 13/13] doc/mm: New documentation for memory performance

2019-01-16 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

[PATCHv4 02/13] acpi: Add HMAT to generic parsing tables

2019-01-16 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

[PATCHv4 12/13] acpi/hmat: Register memory side cache attributes

2019-01-16 Thread Keith Busch
Register memory side cache attributes with the memory's node if HMAT provides the side cache iniformation table. Signed-off-by: Keith Busch --- drivers/acpi/hmat/hmat.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/acpi/hmat/hmat.c

[PATCHv4 09/13] acpi/hmat: Register performance attributes

2019-01-16 Thread Keith Busch
Save the best performace access attributes and register these with the memory's node if HMAT provides the locality table. While HMAT does make it possible to know performance for all possible initiator-target pairings, we export only the best pairings at this time. Signed-off-by: Keith Busch ---

[PATCHv4 11/13] Documentation/ABI: Add node cache attributes

2019-01-16 Thread Keith Busch
Add the attributes for the system memory side caches. Signed-off-by: Keith Busch --- Documentation/ABI/stable/sysfs-devices-node | 34 + 1 file changed, 34 insertions(+) diff --git a/Documentation/ABI/stable/sysfs-devices-node

[PATCHv4 03/13] acpi/hmat: Parse and report heterogeneous memory

2019-01-16 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. Signed-off-by: Keith Busch --- drivers/acpi/Kconfig | 1 +

[PATCHv4 06/13] acpi/hmat: Register processor domain to its memory

2019-01-16 Thread Keith Busch
If the HMAT Subsystem Address Range provides a valid processor proximity domain for a memory domain, or a processor domain with the highest performing access exists, register the memory target with that initiator so this relationship will be visible under the node's sysfs directory. Since HMAT

[PATCH] arm64: dts: meson: s400: fix emmc maximum rate

2019-01-16 Thread Jerome Brunet
Limiting the HS200 rate on the s400 was just a way to mask that the tuning setting were not correct. This seems to have been fixed with the recent MMC driver update. We can now use HS200 at full speed. Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-axg-s400.dts | 3 +-- 1

[PATCH] arm64: dts: meson: s400: enable sdr104 on sdio

2019-01-16 Thread Jerome Brunet
The bcm wifi/bt device on SDIO support SDR104 and it seems to work well following the recent mmc driver update, so enable this ultra high speed mode Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-axg-s400.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

Re: [PATCH 2/5] crypto: ccm - use template array registering API to simplify the code

2019-01-16 Thread Eric Biggers
On Wed, Jan 16, 2019 at 10:50:31AM +0800, Xiongfeng Wang wrote: > Use crypto template array registering API to simplify the code. > > Signed-off-by: Xiongfeng Wang > --- > crypto/ccm.c | 81 > +++- > 1 file changed, 26 insertions(+), 55

Re: [RFC PATCH] i2c: imx: dma map the i2c data i/o register

2019-01-16 Thread Robin Murphy
On 16/01/2019 16:17, Laurentiu Tudor wrote: This is an attempt to fix an iommu exception when doing dma to the i2c controller with EDMA. Without these mappings the smmu raises a context fault [1] exactly with the address of the i2c data i/o reg. This was seen on an NXP LS1043A chip while working

[PATCH 3/3] clk: meson: ao-clkc: claim clock controller input clocks from DT

2019-01-16 Thread Jerome Brunet
Instead of relying on a fixed names for the differents input clocks of the controller, get them through DT. Signed-off-by: Jerome Brunet --- drivers/clk/meson/axg-aoclk.c | 22 +++- drivers/clk/meson/gxbb-aoclk.c | 25 -- drivers/clk/meson/meson-aoclk.c |

[PATCH 0/3] clk: meson: claim input clocks through DT

2019-01-16 Thread Jerome Brunet
Following the preparation series [0] sent in the last cycle, this patchset adds clock input claim through DT in the gxbb and axg clock controllers [0]: https://lkml.kernel.org/r/20181203171640.12110-1-jbru...@baylibre.com Jerome Brunet (3): clk: meson: gxbb: claim clock controller input clock

[PATCH 1/3] clk: meson: gxbb: claim clock controller input clock from DT

2019-01-16 Thread Jerome Brunet
Instead of relying on a fixed name for the xtal clock, claim the controller input clock trough DT. Signed-off-by: Jerome Brunet --- drivers/clk/meson/gxbb.c | 37 - 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/drivers/clk/meson/gxbb.c

[PATCH 2/3] clk: meson: axg: claim clock controller input clock from DT

2019-01-16 Thread Jerome Brunet
Instead of relying on a fixed name for the xtal clock, claim the controller input clock trough DT. Signed-off-by: Jerome Brunet --- drivers/clk/meson/axg.c | 27 +++ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/drivers/clk/meson/axg.c

Re: [RFC PATCH] time/nohz: allow the boot CPU to be nohz_full

2019-01-16 Thread Frederic Weisbecker
On Mon, Jan 14, 2019 at 04:47:45PM +1000, Nicholas Piggin wrote: > We have a supercomputer site testing nohz_full to reduce jitter with > good results, but they want CPU0 to be nohz_full. That happens to be > the boot CPU, which is disallowed by the nohz_full code. > > They have existing job

Re: [PATCH 1/5] crypto: api - add a helper to (un)register a array of templates

2019-01-16 Thread Eric Biggers
A few nits: On Wed, Jan 16, 2019 at 10:50:30AM +0800, Xiongfeng Wang wrote: > This patch add a helper to (un)register a array of templates. The > following patches will use this helper to simplify the code. > > Signed-off-by: Xiongfeng Wang > --- > crypto/algapi.c | 27

Re: [PATCH 0/5] Crypto Cleanup

2019-01-16 Thread Eric Biggers
On Wed, Jan 16, 2019 at 10:50:29AM +0800, Xiongfeng Wang wrote: > The patchset introduce a helper to (un)register a array of crypto templates. > The following patches use this helper to simplify the code. This is also > a preparation for a coming patchset, which will register several crypto >

Re: [PATCH] mm/mincore: allow for making sys_mincore() privileged

2019-01-16 Thread Linus Torvalds
On Thu, Jan 17, 2019 at 4:12 AM Jiri Kosina wrote: > > So that seems to deal with mincore() in a reasonable way indeed. > > It doesn't unfortunately really solve the preadv2(RWF_NOWAIT), nor does it > provide any good answer what to do about it, does it? As I suggested earlier in the thread, the

Re: [PATCH 4.14 00/27] 4.14.94-stable review

2019-01-16 Thread Greg Kroah-Hartman
On Wed, Jan 16, 2019 at 05:38:34PM +, Jon Hunter wrote: > > On 16/01/2019 17:11, Greg Kroah-Hartman wrote: > > On Wed, Jan 16, 2019 at 04:56:08PM +, Jon Hunter wrote: > >> > >> On 16/01/2019 16:02, Greg Kroah-Hartman wrote: > >>> On Wed, Jan 16, 2019 at 09:25:12AM +, Jon Hunter wrote:

Re: [PATCH] powerpc/ps3: Use struct_size() in kzalloc()

2019-01-16 Thread Gustavo A. R. Silva
Hi Geoff, On 1/16/19 11:21 AM, Geoff Levand wrote: Hi Gustavo, On 1/8/19 1:00 PM, Gustavo A. R. Silva wrote: One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements

[PATCH 2/4] selftests: net: use LDLIBS instead of LDFLAGS

2019-01-16 Thread Daniel Díaz
From: Fathi Boudra reuseport_bpf_numa fails to build due to undefined reference errors: aarch64-linaro-linux-gcc --sysroot=/build/tmp-rpb-glibc/sysroots/hikey -Wall -Wl,--no-as-needed -O2 -g -I../../../../usr/include/ -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -lnuma

[PATCH 3/4] selftests: seccomp: use LDLIBS instead of LDFLAGS

2019-01-16 Thread Daniel Díaz
From: Fathi Boudra seccomp_bpf fails to build due to undefined reference errors: aarch64-linaro-linux-gcc --sysroot=/build/tmp-rpb-glibc/sysroots/hikey -O2 -pipe -g -feliminate-unused-debug-types -Wl,-no-as-needed -Wall -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -lpthread seccomp_bpf.c -o

[PATCH 4/4] selftests: timers: use LDLIBS instead of LDFLAGS

2019-01-16 Thread Daniel Díaz
From: Fathi Boudra posix_timers fails to build due to undefined reference errors: aarch64-linaro-linux-gcc --sysroot=/build/tmp-rpb-glibc/sysroots/hikey -O2 -pipe -g -feliminate-unused-debug-types -O3 -Wl,-no-as-needed -Wall -DKTEST -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -lrt

[PATCH 1/4] selftests: lib: allow to override CC in the top-level Makefile

2019-01-16 Thread Daniel Díaz
From: Fathi Boudra Relax CC assignment to allow to override CC in the top-level Makefile. Signed-off-by: Denys Dmytriyenko --- tools/testing/selftests/lib.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk

Re: yama: unsafe usage of ptrace_relation->tracer

2019-01-16 Thread Oleg Nesterov
On 01/10, Tetsuo Handa wrote: > > syzbot is hitting this problem as of linux-next-20190110. > When a patch will be proposed? Well. I have already suggested the patch below several times. It won't fix all problems in this code (I forgot the details but iirc ptracer_exception_found() is broken too,

Re: [PATCH 2/8] vop: Cast pointers to uintptr_t

2019-01-16 Thread Joe Perches
On Wed, 2019-01-16 at 17:32 +0100, Vincent Whitchurch wrote: > Fix these on 32-bit: > > vop_vringh.c:711:13: error: cast from pointer to integer of different > size [-Werror=pointer-to-int-cast] [] > diff --git a/drivers/misc/mic/vop/vop_main.c b/drivers/misc/mic/vop/vop_main.c [] > @@ -497,7

Re: [PATCH v2 5/5] psi: introduce psi monitor

2019-01-16 Thread Suren Baghdasaryan
On Wed, Jan 16, 2019 at 5:24 AM Peter Zijlstra wrote: > > On Mon, Jan 14, 2019 at 11:30:12AM -0800, Suren Baghdasaryan wrote: > > For memory ordering (which Johannes also pointed out) the critical point is: > > > > times[cpu] += delta | if g->polling: > > smp_wmb() |

Re: [PATCH 4.14 00/27] 4.14.94-stable review

2019-01-16 Thread Jon Hunter
On 16/01/2019 17:11, Greg Kroah-Hartman wrote: > On Wed, Jan 16, 2019 at 04:56:08PM +, Jon Hunter wrote: >> >> On 16/01/2019 16:02, Greg Kroah-Hartman wrote: >>> On Wed, Jan 16, 2019 at 09:25:12AM +, Jon Hunter wrote: On 15/01/2019 16:35, Greg Kroah-Hartman wrote: > This is

Re: kernel BUG at kernel/sched/core.c:3490!

2019-01-16 Thread Oleg Nesterov
On 01/12, Kohli, Gaurav wrote: > > HI Peter, Oleg, > > as per flag and state this seems to be possible only from below code: Not sure I understand you, > XXX: 0 1 0x40844c > PF_NOFREEZE > PF_RANDOMIZE > PF_SIGNALED > PF_FORKNOEXEC > PF_EXITING > PF_EXITPIDONE > > above state shows do_exit runs

RE: [PATCH 1/3] arm64: dts: add dpaa2-console node for DPAA2 platforms

2019-01-16 Thread Ioana Ciornei
> > Subject: Re: [PATCH 1/3] arm64: dts: add dpaa2-console node for DPAA2 > > platforms > > > > On Wed, Jan 16, 2019 at 10:02:01AM +, Ioana Ciornei wrote: > > > > Subject: Re: [PATCH 1/3] arm64: dts: add dpaa2-console node for > > > > DPAA2 platforms > > > > > > > > On Fri, Dec 21, 2018 at

[PATCH v3] Staging: fbtft: Switch to the gpio descriptor interface

2019-01-16 Thread Nishad Kamdar
This switches the fbtft driver to use GPIO descriptors rather than numerical gpios: Utilize the GPIO library's intrinsic handling of OF GPIOs and polarity. If the line is flagged active low, gpiolib will deal with this. Remove gpios from platform device structure. Neither assign statically

Racoh Computer design suggestion (+ theoretical prototype names).

2019-01-16 Thread Ywe Cærlyn
(v1.1) I have been working with the philosophy behind Racoh Computer the last half year and a bit more, an ultimate computer based on principles from my research on monotheism that has been top 1% on academia.edu, and present a summary of it: Racoh Computer Design

Re: [RFC 1/7] devicetree: bindings: Document domains controller bindings

2019-01-16 Thread Mark Brown
On Mon, Jan 14, 2019 at 03:41:56PM +0100, Benjamin Gaignard wrote: > +Common Domains Controller bindings properties > + > +Domains Controller framework defines common bindings properties to describe > +the configurations to be applied for each device. I suspect this is going to need a few more

Re: [PATCH 2/7] coresight: perf: Add "sinks" group to PMU directory

2019-01-16 Thread Mathieu Poirier
On Wed, 16 Jan 2019 at 10:13, Greg KH wrote: > > On Wed, Jan 16, 2019 at 09:38:09AM -0700, Mathieu Poirier wrote: > > On Wed, 16 Jan 2019 at 09:33, Greg KH wrote: > > > > > > On Wed, Jan 16, 2019 at 09:14:33AM -0700, Mathieu Poirier wrote: > > > > On Wed, 16 Jan 2019 at 08:39, Greg KH > > > >

Re: [PATCH 2/2] pwm: sifive: Add a driver for SiFive SoC PWM

2019-01-16 Thread Uwe Kleine-König
On Wed, Jan 16, 2019 at 09:18:45AM -0800, Paul Walmsley wrote: > On Wed, 16 Jan 2019, Uwe Kleine-König wrote: > > > On Wed, Jan 16, 2019 at 04:40:42PM +0530, Yash Shah wrote: > > > On Wed, Jan 16, 2019 at 3:30 AM Uwe Kleine-König > > > wrote: > > > > On Fri, Jan 11, 2019 at 01:52:44PM +0530,

Re: [PATCH] clk: mmp2: avoid disabling the SP clock when unused

2019-01-16 Thread Lubomir Rintel
On Wed, 2019-01-16 at 08:37 -0800, Stephen Boyd wrote: > Quoting Lubomir Rintel (2019-01-16 01:35:05) > > There could be vital functionality running on the SP PJ1 core it can not be > > restarted just by turning the clock back on. > > > > On the OLPC laptop, the keyboard controller code runs

[PATCH] libertas: fix indentation issue

2019-01-16 Thread Colin King
From: Colin Ian King There is a statement that is incorrectly indented, fix it. Signed-off-by: Colin Ian King --- drivers/net/wireless/marvell/libertas_tf/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/marvell/libertas_tf/main.c

Re: [PATCH] lib/scatterlist: Provide a DMA page iterator

2019-01-16 Thread Jason Gunthorpe
On Wed, Jan 16, 2019 at 05:11:34PM +0100, h...@lst.de wrote: > On Tue, Jan 15, 2019 at 02:25:01PM -0700, Jason Gunthorpe wrote: > > RDMA needs something similar as well, in this case drivers take a > > struct page * from get_user_pages() and need to have the DMA map fail > > if the platform can't

Re: linux-next: Tree for Jan 16 (PCI config warning?)

2019-01-16 Thread Sinan Kaya
Hi, On 1/16/2019 12:00 PM, Randy Dunlap wrote: On 1/15/19 10:38 PM, Stephen Rothwell wrote: Hi all, Changes since 20190115: on x86_64: when CONFIG_PCI is not enabled (via randconfig): WARNING: unmet direct dependencies detected for PCI_LOCKLESS_CONFIG Depends on [n]: PCI [=n]

RE: [PATCH lora-next 2/4] dt-bindings: lora: sx125x: add basic documentation

2019-01-16 Thread Ben Whitten
Hi Andreas, > Am 08.01.19 um 09:41 schrieb Ben Whitten: > > The sx125x family are IQ radio transceivers from Semtech configured over > > SPI, they are typically connected to an sx130x series concentrator however > > may be connected to a host directly. > > "SX125x" and "SX130x" > > > > >

Re: [PATCH 15/21] sparc: add checks for the return value of memblock_alloc*()

2019-01-16 Thread David Miller
From: Mike Rapoport Date: Wed, 16 Jan 2019 15:44:15 +0200 > Add panic() calls if memblock_alloc*() returns NULL. > > Most of the changes are simply addition of > > if(!ptr) > panic(); > > statements after the calls to memblock_alloc*() variants. > > Exceptions are

Re: [PATCH] powerpc/ps3: Use struct_size() in kzalloc()

2019-01-16 Thread Geoff Levand
Hi Gustavo, On 1/8/19 1:00 PM, Gustavo A. R. Silva wrote: > One of the more common cases of allocation size calculations is finding the > size of a structure that has a zero-sized array at the end, along with memory > for some number of elements for that array. For example: > > struct foo { >

Re: [PATCH 2/2] pwm: sifive: Add a driver for SiFive SoC PWM

2019-01-16 Thread Paul Walmsley
On Wed, 16 Jan 2019, Uwe Kleine-König wrote: > On Wed, Jan 16, 2019 at 04:40:42PM +0530, Yash Shah wrote: > > On Wed, Jan 16, 2019 at 3:30 AM Uwe Kleine-König > > wrote: > > > On Fri, Jan 11, 2019 at 01:52:44PM +0530, Yash Shah wrote: > > > > diff --git a/drivers/pwm/Kconfig

Re: [PATCH v4 07/13] irqchip: ti-sci-intr: Add support for Interrupt Router driver

2019-01-16 Thread Marc Zyngier
[Still in the process of sorting out my email - don't ask] On 27/12/2018 06:13, Lokesh Vutla wrote: > Texas Instruments' K3 generation SoCs has an IP Interrupt Router > that does allows for redirection of input interrupts to host > interrupt controller. Interrupt Router inputs are either from a >

Re: [PATCH v2] Staging: fbtft: Switch to the gpio descriptor interface

2019-01-16 Thread Nishad Kamdar
On Tue, Jan 15, 2019 at 04:02:31PM +0100, Greg Kroah-Hartman wrote: > On Tue, Jan 15, 2019 at 10:17:09AM +0530, Nishad Kamdar wrote: > > This switches the fbtft driver to use GPIO descriptors > > rather than numerical gpios: > > > > Utilize the GPIO library's intrinsic handling of OF GPIOs > >

Adaptative busy spinning with rseq

2019-01-16 Thread Mathieu Desnoyers
Hi! A follow up on the Edinburgh discussion I had with Daniel: I did a prototype implementation of adaptative busy spinning with rseq. It only uses current upstream rseq features. It's not optimized at this stage (and I don't have time to work more on it at the moment), and it's only x86-64, but

Re: [PATCH 2/7] coresight: perf: Add "sinks" group to PMU directory

2019-01-16 Thread Greg KH
On Wed, Jan 16, 2019 at 09:38:09AM -0700, Mathieu Poirier wrote: > On Wed, 16 Jan 2019 at 09:33, Greg KH wrote: > > > > On Wed, Jan 16, 2019 at 09:14:33AM -0700, Mathieu Poirier wrote: > > > On Wed, 16 Jan 2019 at 08:39, Greg KH wrote: > > > > > > > > On Tue, Jan 15, 2019 at 04:07:37PM -0700,

Re: [PATCH net-next] mlxsw: spectrum_nve: Use struct_size() in kzalloc()

2019-01-16 Thread David Miller
From: "Gustavo A. R. Silva" Date: Tue, 15 Jan 2019 17:14:29 -0600 > One of the more common cases of allocation size calculations is finding > the size of a structure that has a zero-sized array at the end, along > with memory for some number of elements for that array. For example: > > struct

Re: [PATCH net-next] mlxsw: spectrum_acl_bloom_filter: use struct_size() in kzalloc()

2019-01-16 Thread David Miller
From: "Gustavo A. R. Silva" Date: Tue, 15 Jan 2019 17:05:39 -0600 > One of the more common cases of allocation size calculations is finding > the size of a structure that has a zero-sized array at the end, along > with memory for some number of elements for that array. For example: > > struct

Re: [PATCH v2] x86/pgtable: Always inline p4d_index

2019-01-16 Thread Randy Dunlap
On 1/16/19 5:41 AM, Nathan Chancellor wrote: > When building an allyesconfig build with Clang, the kernel fails to link > arch/x86/platform/efi/efi_64.o because of a failed BUILD_BUG_ON: > > ld: arch/x86/platform/efi/efi_64.o: in function > `efi_sync_low_kernel_mappings': > (.text+0x8e5):

Re: [PATCH 11/14] staging: android: ion: Allow heap name to be null

2019-01-16 Thread Andrew F. Davis
On 1/16/19 9:28 AM, Brian Starkey wrote: > Hi Andrew, > > On Fri, Jan 11, 2019 at 12:05:20PM -0600, Andrew F. Davis wrote: >> The heap name can be used for debugging but otherwise does not seem >> to be required and no other part of the code will fail if left NULL >> except here. We can make it

Re: [RFC PATCH v2] akcipher: Introduce verify_rsa/verify for public key algorithms

2019-01-16 Thread David Howells
Umm... What do I apply this patch to? In your modified public_key_verify_signature(): > - sg_init_one(_sg, output, outlen); > - akcipher_request_set_crypt(req, _sg, _sg, sig->s_size, > + sg_init_one(_sg, output, outlen); > + akcipher_request_set_crypt(req, _sg, _sg, sig->s_size,

Re: [PATCH 4.14 00/27] 4.14.94-stable review

2019-01-16 Thread Greg Kroah-Hartman
On Wed, Jan 16, 2019 at 04:56:08PM +, Jon Hunter wrote: > > On 16/01/2019 16:02, Greg Kroah-Hartman wrote: > > On Wed, Jan 16, 2019 at 09:25:12AM +, Jon Hunter wrote: > >> > >> On 15/01/2019 16:35, Greg Kroah-Hartman wrote: > >>> This is the start of the stable review cycle for the

[PATCH 5/8 v4] dma: k3dma: Add support for dma-channel-mask

2019-01-16 Thread John Stultz
From: Li Yu Add dma-channel-mask as a property for k3dma, it defines available dma channels which a non-secure mode driver can use. One sample usage of this is in Hi3660 SoC. DMA channel 0 is reserved to lpm3, which is a coprocessor for power management. So as a result, any request in kernel

[PATCH 1/8 v4] Documentation: bindings: k3dma: Extend the k3dma driver binding to support hisi-asp

2019-01-16 Thread John Stultz
From: Youlin Wang Extend the k3dma driver binding to support hisi-asp hardware variants. Cc: Vinod Koul Cc: Rob Herring Cc: Mark Rutland Cc: Zhuangluan Su Cc: Tanglei Han Cc: Ryan Grachek Cc: Manivannan Sadhasivam Cc: dmaeng...@vger.kernel.org Cc: devicet...@vger.kernel.org Reviewed-by:

[PATCH 7/8 v4] arm64: dts: hi3660: Add hisi asp dma device

2019-01-16 Thread John Stultz
From: Youlin Wang Add asp-dma device to hi3660 dts Cc: Tanglei Han Cc: Zhuangluan Su Cc: Ryan Grachek Cc: Manivannan Sadhasivam Cc: Wei Xu Cc: Rob Herring Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc: devicet...@vger.kernel.org Acked-by: Manivannan Sadhasivam

[PATCH 2/8 v4] Documentation: bindings: dma: Add binding for dma-channel-mask

2019-01-16 Thread John Stultz
Some dma channels can be reserved for secure mode or other hardware on the SoC, so provide a binding for a bitmask listing the available channels for the kernel to use. This follows the pre-existing bcm,dma-channel-mask binding. Cc: Vinod Koul Cc: Rob Herring Cc: Mark Rutland Cc: Tanglei Han

[PATCH 6/8 v4] arm64: dts: hi3660: Add dma to uart nodes

2019-01-16 Thread John Stultz
Try to add DMA support to the uart nodes following the assignments made in the dts from the victoria vendor kernel here: https://consumer.huawei.com/en/opensource/detail/?siteCode=worldwide=p10=openSourceSoftware=10=1 Cc: Tanglei Han Cc: Zhuangluan Su Cc: Ryan Grachek Cc: Manivannan Sadhasivam

<    1   2   3   4   5   6   7   8   9   10   >