[PATCH v5 12/28] fpga: add FPGA DFL PCIe device driver

2018-05-01 Thread Wu Hao
From: Zhang Yi This patch implements the basic framework of the driver for FPGA PCIe device which implements the Device Feature List (DFL) in its MMIO space. This driver is verified on Intel(R) PCIe based FPGA DFL devices, including both integrated (e.g Intel Server Platform with In-package FPGA)

[PATCH v5 16/28] fpga: dfl: fme: add DFL_FPGA_GET_API_VERSION/CHECK_EXTENSION ioctls support

2018-05-01 Thread Wu Hao
DFL_FPGA_GET_API_VERSION and DFL_FPGA_CHECK_EXTENSION ioctls are common ones which need to be supported by all feature devices drivers including FME and AFU. Userspace application can use these ioctl interfaces to get the API info and check if specific extension is supported or not in current drive

[PATCH v5 18/28] fpga: dfl: add fpga manager platform driver for FME

2018-05-01 Thread Wu Hao
This patch adds fpga manager driver for FPGA Management Engine (FME). It implements fpga_manager_ops for FPGA Partial Reconfiguration function. Signed-off-by: Tim Whisonant Signed-off-by: Enno Luebbers Signed-off-by: Shiva Rao Signed-off-by: Christopher Rauer Signed-off-by: Kang Luwei Signed-

[PATCH v5 22/28] fpga: dfl: fme-region: add support for compat_id

2018-05-01 Thread Wu Hao
This patch adds compat_id support, it reuses fme manager's compat id, as the per region compat id is actually from the fme manager's register. Signed-off-by: Wu Hao --- v5: reuse fme manager's compat_id as per region compat_id --- drivers/fpga/dfl-fme-region.c | 1 + 1 file changed, 1 insertion(

[PATCH v5 00/28] FPGA Device Feature List (DFL) Device Drivers

2018-05-01 Thread Wu Hao
Hi All, Here is v5 patch-series adding drivers for FPGA DFL devices. This patch series provides a common framework to support FPGA Device Feature List (DFL), and also feature dev drivers under this DFL framework to provide interfaces for userspace applications to configure, enumerate, open, and a

[PATCH v5 09/28] fpga: dfl: add feature device infrastructure

2018-05-01 Thread Wu Hao
From: Xiao Guangrong This patch abstracts the common operations of the sub features, and defines the feature_ops data structure, including init, uinit and ioctl function pointers. And this patch adds some common helper functions for FME and AFU drivers, e.g dfl_feature_dev_use_begin/end which are

[PATCH v5 05/28] fpga: region: add compat_id support

2018-05-01 Thread Wu Hao
This patch introduces a compat_id pointer member and sysfs interface for each fpga region, similar as compat_id for fpga manager, it allows applications to read the per region compat_id for compatibility checking before other actions on this fpga-region (e.g PR). Signed-off-by: Wu Hao --- v5: use

[PATCH v5 01/28] docs: fpga: add a document for FPGA Device Feature List (DFL) Framework Overview

2018-05-01 Thread Wu Hao
Add a document for FPGA Device Feature List (DFL) Framework Overview. Signed-off-by: Enno Luebbers Signed-off-by: Xiao Guangrong Signed-off-by: Wu Hao --- v2: added FME fpga-mgr/bridge/region platform driver to driver organization. updated open discussion per current implementation. fix

Re: [PATCH 0/6] use memcpy_mcsafe() for copy_to_iter()

2018-05-01 Thread Linus Torvalds
On Tue, May 1, 2018 at 7:26 PM Dan Williams wrote: > Right, but the only way to make MCE non-fatal is to teach the machine > check handler about recoverable conditions. This patch teaches the > machine check handler how to recover copy_to_iter() errors. Why not just unmap the page and remap a ne

Re: [RFC v3 4/5] virtio_ring: add event idx support in packed ring

2018-05-01 Thread Jason Wang
On 2018年04月25日 13:15, Tiwei Bie wrote: This commit introduces the event idx support in packed ring. This feature is temporarily disabled, because the implementation in this patch may not work as expected, and some further discussions on the implementation are needed, e.g. do we have to check th

Re: [PATCH 3/3] vsprintf: Add use-early-random-bytes cmd line option

2018-05-01 Thread Linus Torvalds
On Tue, May 1, 2018 at 6:45 PM Steven Rostedt wrote: > Except for where hardware vendors control what random bytes you > actually get ;-) In which case you should just use "nordrand" and be done with it. .. and you might also want to reconsider your other life choices, because honestly, there a

答复: Tracking: radeon 0000:00:10.0: ring 0 stalled for more than 10240msec

2018-05-01 Thread Qu, Jim
Hi , If you are sure that the HW worked fine before. I think you should: 1. Be sure that HW works fine now. 2. recall the driver to the point at where it works well, and then replace them one by one to confirm component which causes the issue. 3. try to update the last VBIOS to adapt new driver.

Re: [PATCH] h8300: switch to NO_BOOTMEM

2018-05-01 Thread Rob Herring
On Fri, Mar 16, 2018 at 4:33 PM, Rob Herring wrote: > Commit 0fa1c579349f ("of/fdt: use memblock_virt_alloc for early alloc") > inadvertently switched the DT unflattening allocations from memblock to > bootmem which doesn't work because the unflattening happens before > bootmem is initialized. Swa

Re: Re: [PATCH v2 15/17] power: reset: mt6323: add a driver for MT6323 power controller

2018-05-01 Thread Sean Wang
On Tue, 2018-05-01 at 14:56 +0200, Sebastian Reichel wrote: > Hi, > > On Wed, Apr 25, 2018 at 05:32:41PM +0800, sean.w...@mediatek.com wrote: > > From: Sean Wang > > > > The power device is responsible for externally down or up the power > > of the remote MediaTek SoC through the tiny circuit BB

Re: [PATCH v3] PM / wakeup: use seq_open() to show wakeup stats

2018-05-01 Thread Ganesh Mahendran
Hi, Pavel Thanks for your review. 2018-04-29 22:30 GMT+08:00 Pavel Machek : > On Wed 2018-04-25 18:59:31, Ganesh Mahendran wrote: >> single_open() interface requires that the whole output must >> fit into a single buffer. This will lead to timeout when >> system memory is not in a good situation.

Re: [PATCH 0/6] use memcpy_mcsafe() for copy_to_iter()

2018-05-01 Thread Dan Williams
On Tue, May 1, 2018 at 5:09 PM, Linus Torvalds wrote: > On Tue, May 1, 2018 at 4:03 PM Dan Williams > wrote: > >> I'm confused. Are you talking about getting rid of the block-layer >> bypass or changing how MCS errors are handled? > > The latter. > >> If it's the latter, MCS error handling, I don

Re: [PATCHv4 1/2] iommu/vt-d: Ratelimit each dmar fault printing

2018-05-01 Thread Dmitry Safonov
Hi Joerg, is there anything I may do about those two patches? In 2/2 I've limited loop cnt as discussed in v3. This one solves softlockup for us, might be useful. On Sat, 2018-03-31 at 01:33 +0100, Dmitry Safonov wrote: > There is a ratelimit for printing, but it's incremented each time the > cpu

Re: [PATCH v3] module: Fix display of wrong module .text address

2018-05-01 Thread Kees Cook
On Wed, Apr 18, 2018 at 12:14 AM, Thomas Richter wrote: > Reading file /proc/modules shows the correct address: > [root@s35lp76 ~]# cat /proc/modules | egrep '^qeth_l2' > qeth_l2 94208 1 - Live 0x03ff80401000 > > and reading file /sys/module/qeth_l2/sections/.text > [root@s35lp76 ~]# cat /sys/

Re: [PATCH v6 0/8] ipc: Clamp *mni to the real IPCMNI limit & increase that limit

2018-05-01 Thread Eric W. Biederman
> The sysctl parameters msgmni, shmmni and semmni have an inherent limit > of IPC_MNI (32k). However, users may not be aware of that because they > can write a value much higher than that without getting any error or > notification. Reading the parameters back will show the newly written > values

WARNING in __snd_pcm_lib_xfer

2018-05-01 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:fff75eb2a08c Merge tag 'errseq-v4.17' of git://git.kernel.o... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?id=6530078334779392 kernel config: https://syzkaller.appspot.com/x/.config?id=64935577

linux-next: manual merge of the bpf-next tree with the bpf tree

2018-05-01 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the bpf-next tree got a conflict in: tools/testing/selftests/bpf/test_progs.c between commit: a4e21ff8d9a3 ("bpf: minor fix to selftest test_stacktrace_build_id()") from the bpf tree and commit: 79b453501310 ("tools/bpf: add a test for bpf_get_stack w

[GIT PULL] Hexagon fixes

2018-05-01 Thread Richard Kuo
Linus, Please pull the following changes for Hexagon; they contain some small fixes for module compilation. Thanks, Richard Kuo The following changes since commit 6da6c0db5316275015e8cc2959f12a17584aeb64: Linux v4.17-rc3 (2018-04-29 14:17:42 -0700) are available in the git repository at:

Re: [PATCH 2/3] random: Return nbytes filled from hw RNG

2018-05-01 Thread Tobin C. Harding
On Tue, May 01, 2018 at 09:39:02PM -0400, Steven Rostedt wrote: > On Wed, 2 May 2018 09:33:39 +1000 > "Tobin C. Harding" wrote: > > > diff --git a/drivers/char/random.c b/drivers/char/random.c > > index 031d18b31e0f..3a66507ea60b 100644 > > --- a/drivers/char/random.c > > +++ b/drivers/char/rand

Re: [PATCH 3/3] vsprintf: Add use-early-random-bytes cmd line option

2018-05-01 Thread tcharding
On Tue, May 01, 2018 at 09:45:07PM -0400, Steven Rostedt wrote: > On Wed, 2 May 2018 11:27:58 +1000 > tcharding wrote: > > > On Wed, May 02, 2018 at 01:02:34AM +, Linus Torvalds wrote: > > > On Tue, May 1, 2018 at 4:34 PM Tobin C. Harding wrote: > > > > > > > > > > This option should NOT

[PATCH] net/xfrm: Fix lookups for states with spi == 0

2018-05-01 Thread Dmitry Safonov
It seems to be a valid use case to add xfrm state without Security Parameter Indexes (SPI) value associated: ip xfrm state add src $src dst $dst proto $proto mode $mode sel src $src dst $dst $algo The bad thing is that it's currently impossible to get/delete the state without SPI: __xfrm_state_in

Re: recent patch "x86/acpi: Prevent X2APIC id 0xffffffff from being accounted"

2018-05-01 Thread Dou Liyang
At 04/27/2018 08:09 PM, Jan Beulich wrote: On 27.04.18 at 10:32, wrote: At 04/27/2018 03:21 PM, Jan Beulich wrote: I've just stumbled across this commit, and I'm wondering if that's actually correct (I too have at least one system where such IDs are reported in MADT): For offline/absent CPUs

linux-next: manual merge of the net-next tree with the net tree

2018-05-01 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: include/net/ip6_route.h between commit: edd7ceb78296 ("ipv6: Allow non-gateway ECMP for IPv6") from the net tree and commit: 93c2fb253d17 ("net/ipv6: Rename fib6_info struct elements") from the net-next tree. I f

Re: [PATCH v9 24/27] dt-bindings: timer: new bindings for TI DaVinci timer

2018-05-01 Thread David Lechner
Sekhar, On 04/27/2018 09:05 AM, Rob Herring wrote: On Thu, Apr 26, 2018 at 07:17:42PM -0500, David Lechner wrote: This adds new device tree bindings for the timer IP block of TI DaVinci-like SoCs. Signed-off-by: David Lechner --- v9 changes: - new patch in v9 .../bindings/timer/ti,davinc

Re: [PATCH v9 03/27] clk: davinci: psc: allow for dev == NULL

2018-05-01 Thread David Lechner
On 05/01/2018 09:02 AM, Sekhar Nori wrote: On Friday 27 April 2018 05:47 AM, David Lechner wrote: +static inline void *_devm_kzalloc(struct device *dev, size_t size, gfp_t flags) +{ + if (dev) + return devm_kzalloc(dev, size, flags); + + return kzalloc(size, flags); +}

Re: [PATCH v2] f2fs: fix to avoid race during access gc_thread pointer

2018-05-01 Thread Chao Yu
On 2018/4/28 10:36, Jaegeuk Kim wrote: > On 04/27, Chao Yu wrote: >> On 2018/4/27 0:03, Jaegeuk Kim wrote: >>> On 04/24, Chao Yu wrote: Thread A Thread BThread C - f2fs_remount - stop_gc_thread - f2fs_sbi_store

Re: [PATCH v9 02/27] clk: davinci: da850-pll: change PLL0 to CLK_OF_DECLARE

2018-05-01 Thread David Lechner
On 05/01/2018 08:46 AM, Sekhar Nori wrote: On Friday 27 April 2018 05:47 AM, David Lechner wrote: PLL0 on davinci/da850-type device needs to be registered early in boot because it is needed for clocksource/clockevent. Change the driver to use CLK_OF_DECLARE for this special case. Signed-off-by:

Re: [PATCH 3/3] vsprintf: Add use-early-random-bytes cmd line option

2018-05-01 Thread Steven Rostedt
On Wed, 2 May 2018 11:27:58 +1000 tcharding wrote: > On Wed, May 02, 2018 at 01:02:34AM +, Linus Torvalds wrote: > > On Tue, May 1, 2018 at 4:34 PM Tobin C. Harding wrote: > > > > > > > This option should NOT be enabled on production kernels. > > > > I think with your fixes to get_ran

[PATCH] softirq: reorder trace_softirqs_on to prevent lockdep splat

2018-05-01 Thread Joel Fernandes
I'm able to reproduce a lockdep splat with config options: CONFIG_PROVE_LOCKING=y, CONFIG_DEBUG_LOCK_ALLOC=y and CONFIG_PREEMPTIRQ_EVENTS=y $ echo 1 > /d/tracing/events/preemptirq/preempt_enable/enable --- [ 26.112609] DEBUG_LOCKS_WARN_ON(current->softirqs_enabled) [ 26.112636] WARNING: CPU: 0

Re: [PATCH v9 01/27] clk: davinci: pll: allow dev == NULL

2018-05-01 Thread David Lechner
On 05/01/2018 08:27 AM, Sekhar Nori wrote: On Friday 27 April 2018 05:47 AM, David Lechner wrote: This modifies the TI DaVinci PLL clock driver to allow for the case when dev == NULL. On some (most) SoCs that use this driver, the PLL clock needs to be registered during early boot because it is u

Re: [PATCH 2/3] random: Return nbytes filled from hw RNG

2018-05-01 Thread Steven Rostedt
On Wed, 2 May 2018 09:33:39 +1000 "Tobin C. Harding" wrote: > diff --git a/drivers/char/random.c b/drivers/char/random.c > index 031d18b31e0f..3a66507ea60b 100644 > --- a/drivers/char/random.c > +++ b/drivers/char/random.c > @@ -1725,26 +1725,28 @@ EXPORT_SYMBOL(del_random_ready_callback); > *

Re: [PATCH v2] f2fs: avoid stucking GC due to atomic write

2018-05-01 Thread Chao Yu
On 2018/4/28 10:34, Jaegeuk Kim wrote: > On 04/27, Chao Yu wrote: >> On 2018/4/26 23:54, Jaegeuk Kim wrote: >>> On 04/24, Chao Yu wrote: f2fs doesn't allow abuse on atomic write class interface, so except limiting in-mem pages' total memory usage capacity, we need to limit atomic-wri

[lkp-robot] [EXP rcu] aa09766fd9: BUG:spinlock_trylock_failure_on_UP_on_CPU

2018-05-01 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-7): commit: aa09766fd96b09ef68c4cc0e09869d16c1c11182 ("EXP rcu: Diagnostics for grace-period hangs") https://git.kernel.org/cgit/linux/kernel/git/paulmck/linux-rcu.git dev.2018.04.27a in testcase: boot on test machine: qemu-system-x86_64 -e

Re: [PATCH] efi/capsule-loader: Don't output reset log when header flags is not set

2018-05-01 Thread Yang, Shunyong
Hi, Ard, On Tue, 2018-05-01 at 11:54 +0200, Ard Biesheuvel wrote: > On 25 April 2018 at 05:10, Shunyong Yang com> wrote: > > > > It means firmware attempts to immediately process or launch the > > capsule > > when flags in capsule header is not set. Moreover, reset is not > > needed > > in this

[PATCH] memcg, hugetlb: pages allocated for hugetlb's overcommit will be charged to memcg

2018-05-01 Thread TSUKADA Koutaro
If nr_overcommit_hugepages is assumed to be infinite, allocating pages for hugetlb's overcommit from buddy pool is all unlimited even if being limited by memcg. The purpose of this patch is that if we allocate the hugetlb page from the boddy pool, that means we should charge it to memcg. A straigh

Re: [PATCH 3/3] vsprintf: Add use-early-random-bytes cmd line option

2018-05-01 Thread tcharding
On Wed, May 02, 2018 at 01:02:34AM +, Linus Torvalds wrote: > On Tue, May 1, 2018 at 4:34 PM Tobin C. Harding wrote: > > > > This option should NOT be enabled on production kernels. > > I think with your fixes to get_random_bytes_arch(), it's perfectly fine to > use on production kernels (a

[PATCH 01/12] soc: qcom: smem: rename variable in qcom_smem_get_global()

2018-05-01 Thread Alex Elder
Rename the variable "area" to be "region" in qcom_smem_get_global(), so its name better matches its type. Signed-off-by: Alex Elder --- drivers/soc/qcom/smem.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/soc/qcom/smem.c b/drivers/soc/qcom/smem.c index 7

[PATCH 02/12] soc: qcom: smem: initialize region struct only when successful

2018-05-01 Thread Alex Elder
Hold off initializing anything for the array entry representing a memory region in qcom_smem_map_memory() until we know we've successfully mapped it. Signed-off-by: Alex Elder --- drivers/soc/qcom/smem.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/soc/qcom

[PATCH 09/12] soc: qcom: smem: verify partition offset_free_uncached

2018-05-01 Thread Alex Elder
Add verification in qcom_smem_partition_header() that the offset_free_uncached field in a partition's header structure does not exceed the partition's size. Signed-off-by: Alex Elder --- drivers/soc/qcom/smem.c | 21 +++-- 1 file changed, 7 insertions(+), 14 deletions(-) diff --

[PATCH 08/12] soc: qcom: smem: verify partition header size

2018-05-01 Thread Alex Elder
Add verification in qcom_smem_partition_header() that the size in a partition's header structure matches the size in its partition table entry. Signed-off-by: Alex Elder --- drivers/soc/qcom/smem.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/drivers/s

[PATCH 05/12] soc: qcom: smem: verify both host ids in partition header

2018-05-01 Thread Alex Elder
The global partition is indicated by having both host values in its table of contents entry equal SMEM_GLOBAL_HOST=0xfffe. In qcom_smem_set_global_partition(), we check whether the header structure at the beginning of the partition contains that host value, but the check only verifies *one* of the

[PATCH 06/12] soc: qcom: smem: require order of host ids to match

2018-05-01 Thread Alex Elder
In qcom_smem_enumerate_partitions(), we find all partitions that have a given local host id in either its host0 or its host1 field in the partition table entry. We then verify that the header structure at the start of each partition also contains the same two host ids as is found in the table of c

[PATCH 07/12] soc: qcom: smem: introduce qcom_smem_partition_header()

2018-05-01 Thread Alex Elder
Create a new function qcom_smem_partition_header() to encapsulate validating the header information found in a partition. This will be built up over a few commits to make it more obvious how the common function is replacing duplicated code elsewhere. Initially it just verifies the header has the

[PATCH 11/12] soc: qcom: smem: verify partition host ids match

2018-05-01 Thread Alex Elder
Add verification in qcom_smem_partition_header() that the host ids found in a partition's header structure match those in its partition table entry. Signed-off-by: Alex Elder --- drivers/soc/qcom/smem.c | 34 +++--- 1 file changed, 15 insertions(+), 19 deletions(-) d

Re: Linux messages full of `random: get_random_u32 called from`

2018-05-01 Thread Sultan Alsawaf
On Tue, May 01, 2018 at 08:56:04PM -0400, Theodore Y. Ts'o wrote: > On Tue, May 01, 2018 at 05:43:17PM -0700, Sultan Alsawaf wrote: > > > > I've attached what I think is a reasonable stopgap solution until this is > > actually fixed. If you're willing to revert the CVE-2018-1108 patches > > comple

[PATCH 10/12] soc: qcom: smem: small change in global entry loop

2018-05-01 Thread Alex Elder
Change the logic in the loop that finds that global host entry in the partition table not require the host0 and host1 local variables. The next patch will remove them. Signed-off-by: Alex Elder --- drivers/soc/qcom/smem.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a

[PATCH 04/12] soc: qcom: smem: small refactor in qcom_smem_enumerate_partitions()

2018-05-01 Thread Alex Elder
Combine the code that checks whether a partition table entry is associated with the local host with the assignment of the remote host id value. Signed-off-by: Alex Elder --- drivers/soc/qcom/smem.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/soc/qcom/smem.c

[PATCH 00/12] soc: qcom: smem: some refactoring

2018-05-01 Thread Alex Elder
This series contains a few general cleanups in the Qualcomm SMEM code, reorganizing some things so memory partitions are treated more consistently, and to avoid some duplication. A few patches change existing behavior, as highlighted below. Each of these changes has been tested and verified to fu

[PATCH 03/12] soc: qcom: smem: always ignore partitions with 0 offset or size

2018-05-01 Thread Alex Elder
In qcom_smem_enumerate_partitions(), any partition table entry having a zero offset or size field is ignored. Move those checks earlier in the loop, because there's no sense in examining the host fields for those entries. Add the same checks in qcom_smem_set_global_partition(), so the scan for th

[PATCH 12/12] soc: qcom: smem: a few last cleanups

2018-05-01 Thread Alex Elder
This patch contains several small cleanups: - In qcom_smem_enumerate_partitions(), change the "local_host" argument to have 16 bit unsigned type - Also in qcom_smem_enumerate_partitions(), change the type of the "host0" and "host1" local variables to be u16 - Fix error messages report

[PATCH 2/3] Add label and license to genalloc.rst

2018-05-01 Thread Igor Stoppa
Add SPDX license to genalloc.rst, then a label, to allow cross-referencing. Signed-off-by: Igor Stoppa --- Documentation/core-api/genalloc.rst | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/core-api/genalloc.rst b/Documentation/core-api/genalloc.rst index 6b38a39fab24..0b

[PATCH 1/3] genalloc: track beginning of allocations

2018-05-01 Thread Igor Stoppa
The genalloc library is only capable of tracking if a certain unit of allocation is in use or not. It is not capable of discerning where the memory associated to an allocation request begins and where it ends. The reason is that units of allocations are tracked by using a bitmap, where each bit r

[PATCH 3/3] genalloc: selftest

2018-05-01 Thread Igor Stoppa
Introduce a set of macros for writing concise test cases for genalloc. The test cases are meant to provide regression testing, when working on new functionality for genalloc. Primarily they are meant to confirm that the various allocation strategy will continue to work as expected. The execution

[PATCH 0/3 v2] linux-next: mm: Track genalloc allocations

2018-05-01 Thread Igor Stoppa
This patchset was created as part of an older version of pmalloc, however it has value per-se, as it hardens the memory management for the generic allocator genalloc. Genalloc does not currently track the size of the allocations it hands out. Either by mistake, or due to an attack, it is possible

Re: [PATCH v5 1/3] mmc: dw_mmc-bluefield: Add driver extension

2018-05-01 Thread Shawn Lin
On 2018/5/2 2:19, Liming Sun wrote: This commit adds extension to the dw_mmc driver for Mellanox BlueField SoC. It updates the UHS_REG_EXT register to bring up the eMMC card on this SoC. Cc: sta...@kernel.org Why? Signed-off-by: Liming Sun Reviewed-by: David Woods --- drivers/mmc/host/Kc

Re: [PATCH 3/3] vsprintf: Add use-early-random-bytes cmd line option

2018-05-01 Thread Linus Torvalds
On Tue, May 1, 2018 at 4:34 PM Tobin C. Harding wrote: > This option should NOT be enabled on production kernels. I think with your fixes to get_random_bytes_arch(), it's perfectly fine to use on production kernels (and doesn't even need a kernel command line option). It was only with the "use

[PATCH] staging: speakup: Add pause command used on switching to graphical mode

2018-05-01 Thread Samuel Thibault
For software speech syntheses to be able to manage concurrent audio card access, they need to know when speakup stops emitting text to be spoken because the console has switched to graphical mode. This introduces a PAUSE command to do so. Signed-off-by: Samuel Thibault Index: linux-4.15/drivers

Re: Linux messages full of `random: get_random_u32 called from`

2018-05-01 Thread Theodore Y. Ts'o
On Tue, May 01, 2018 at 05:43:17PM -0700, Sultan Alsawaf wrote: > > I've attached what I think is a reasonable stopgap solution until this is > actually fixed. If you're willing to revert the CVE-2018-1108 patches > completely, then I don't think you'll mind using this patch in the meantime. I wo

Re: [PATCH v5 4/6] x86/microcode/AMD: Check microcode container data in the late loader

2018-05-01 Thread Maciej S. Szmigiero
On 01.05.2018 22:03, Borislav Petkov wrote: > On Tue, May 01, 2018 at 06:19:56PM +0200, Maciej S. Szmigiero wrote: >> -EINVAL cast to unsigned int is 4294967274 and this value is also >> a valid count of bytes to skip that this function can return. > > And where exactly in the *old* code do we do

Re: [PATCH] staging: speakup: Add pause command used on switching to graphical mode

2018-05-01 Thread Samuel Thibault
For software speech syntheses to be able to manage concurrent audio card access, they need to know when speakup stops emitting text to be spoken because the console has switched to graphical mode. This introduces a PAUSE command to do so. Signed-off-by: Samuel Thibault Index: linux-4.15/drivers

[v2 PATCH 1/1] tg3: fix meaningless hw_stats reading after tg3_halt memset 0 hw_stats

2018-05-01 Thread Zumeng Chen
From: Zumeng Chen Reading hw_stats will get the actual data after a sucessfull tg3_reset_hw, which actually after tg3_timer_start, so TG3_FLAG_HALT is introduced to tell tg3_get_stats64 when hw_stats is ready to read. It will be set after having done memset(tp->hw_stats, 0) in tg3_halt and be cle

Re: Linux messages full of `random: get_random_u32 called from`

2018-05-01 Thread Sultan Alsawaf
On Tue, May 01, 2018 at 05:35:56PM -0500, Justin Forbes wrote: > > I have not reproduced in GCE myself. We did get some confirmation > that removing dracut-fips does make the problem less dire (but I > wouldn't call a 4 minute boot a win, but booting in 4 minutes is > better than not booting at a

Re: [PATCH] kvmalloc: always use vmalloc if CONFIG_DEBUG_VM

2018-05-01 Thread Andrew Morton
On Tue, 24 Apr 2018 12:33:01 -0400 (EDT) Mikulas Patocka wrote: > > > On Tue, 24 Apr 2018, Michal Hocko wrote: > > > On Tue 24-04-18 11:30:40, Mikulas Patocka wrote: > > > > > > > > > On Tue, 24 Apr 2018, Michal Hocko wrote: > > > > > > > On Mon 23-04-18 20:25:15, Mikulas Patocka wrote: >

Re: [PATCH 2/3] random: Return nbytes filled from hw RNG

2018-05-01 Thread Theodore Y. Ts'o
On Wed, May 02, 2018 at 09:33:39AM +1000, Tobin C. Harding wrote: > Currently the function get_random_bytes_arch() has return value 'void'. > If the hw RNG fails we currently fall back to using get_random_bytes(). > This defeats the purpose of requesting random material from the hw RNG > in the fir

Re: [PATCH 1/3] random: Fix whitespace pre random-bytes work

2018-05-01 Thread Theodore Y. Ts'o
On Wed, May 02, 2018 at 09:33:38AM +1000, Tobin C. Harding wrote: > There are a couple of whitespace issues around the function > get_random_bytes_arch(). In preparation for patching this function > let's clean them up. > > Signed-off-by: Tobin C. Harding Acked-by: Theodore Ts'o > --- > driv

Re: [PATCH] tracing/irqtrace: only call trace_hardirqs_on/off when state changes

2018-05-01 Thread Nicholas Piggin
On Tue, 1 May 2018 14:15:14 -0700 Joel Fernandes wrote: > On Tue, May 1, 2018 at 1:00 PM, Steven Rostedt wrote: > > On Tue, 1 May 2018 21:48:38 +0200 > > Peter Zijlstra wrote: > > > >> On Tue, May 01, 2018 at 03:38:40PM -0400, Steven Rostedt wrote: > >> > On Tue, 1 May 2018 21:19:51 +0200 >

Re: [PATCH 0/6] use memcpy_mcsafe() for copy_to_iter()

2018-05-01 Thread Linus Torvalds
On Tue, May 1, 2018 at 4:03 PM Dan Williams wrote: > I'm confused. Are you talking about getting rid of the block-layer > bypass or changing how MCS errors are handled? The latter. > If it's the latter, MCS error handling, I don't see how get > around something like copy_to_iter_mcsafe(). So t

Re: [PATCH 0/2] mm: tweaks for improving use of vmap_area

2018-05-01 Thread Igor Stoppa
On 01/05/18 03:15, Andrew Morton wrote: On Fri, 27 Apr 2018 03:42:41 +0400 Igor Stoppa wrote: These two patches were written in preparation for the creation of protectable memory, however their use is not limited to pmalloc and can improve the use of virtually contiguous memory. The first pr

Re: Linux messages full of `random: get_random_u32 called from`

2018-05-01 Thread Theodore Y. Ts'o
On Tue, May 01, 2018 at 05:35:56PM -0500, Justin Forbes wrote: > > I have not reproduced in GCE myself. We did get some confirmation > that removing dracut-fips does make the problem less dire (but I > wouldn't call a 4 minute boot a win, but booting in 4 minutes is > better than not booting at a

Re: [PATCH] proc/stat: Separate out individual irq counts into /proc/stat_irqs

2018-05-01 Thread Andrew Morton
On Tue, 24 Apr 2018 09:18:59 +0300 Alexey Dobriyan wrote: > On Mon, Apr 23, 2018 at 10:54:18PM -0700, David Rientjes wrote: > > On Sat, 21 Apr 2018, Alexey Dobriyan wrote: > > > > > > On Thu, Apr 19, 2018 at 04:23:02PM -0700, Joel Fernandes (Google) wrote: > > > > > Can we not just remove per-IR

[PATCH RFC] mmc: sdhci: Don't get card-detect without preemption

2018-05-01 Thread Evan Green
For a controller with SDHCI_QUIRK_NO_CARD_NO_RESET, there are several conditions where sdhci_do_reset is called under a spinlock with interrupts disabled. The card detect is often a GPIO, which might sleep. Avoid asking for the card detect status if interrupts are disabled to prevent a warning like

Re: [PATCH v6 02/10] dt-bindings: introduce RPMH RSC bindings for Qualcomm SoCs

2018-05-01 Thread Doug Anderson
Hi, On Thu, Apr 19, 2018 at 3:16 PM, Lina Iyer wrote: > +TCS-OFFSET: 0xD00 > + > + apps_rsc: rsc@179e000 { This label is wrong in two ways: 1. I believe it's supposed to be the first reg listed, so 179c 2. There's only 3 0's at the end. Thus, it should be: apps_rsc: rsc@179c >

Re: [PATCH 2/3] random: Return nbytes filled from hw RNG

2018-05-01 Thread Tobin C. Harding
On Wed, May 02, 2018 at 09:33:39AM +1000, Tobin C. Harding wrote: > Currently the function get_random_bytes_arch() has return value 'void'. > If the hw RNG fails we currently fall back to using get_random_bytes(). > This defeats the purpose of requesting random material from the hw RNG > in the fir

[PATCH 2/3] random: Return nbytes filled from hw RNG

2018-05-01 Thread Tobin C. Harding
Currently the function get_random_bytes_arch() has return value 'void'. If the hw RNG fails we currently fall back to using get_random_bytes(). This defeats the purpose of requesting random material from the hw RNG in the first place. There are currently no intree users of get_random_bytes_arch().

[PATCH 3/3] vsprintf: Add use-early-random-bytes cmd line option

2018-05-01 Thread Tobin C. Harding
Currently if an attempt is made to print a pointer before there is enough entropy then '(ptrval)' is printed. This makes debugging early stage stack traces difficult. We can relax the requirement for cryptographically secure hashing when debugging while still maintaining pointer hashing b

[PATCH 1/3] random: Fix whitespace pre random-bytes work

2018-05-01 Thread Tobin C. Harding
There are a couple of whitespace issues around the function get_random_bytes_arch(). In preparation for patching this function let's clean them up. Signed-off-by: Tobin C. Harding --- drivers/char/random.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/char/random

[PATCH 0/3] enable early printing of hashed pointers

2018-05-01 Thread Tobin C. Harding
Currently if an attempt is made to print a pointer before there is enough entropy then '(ptrval)' is printed. This makes debugging stack traces during early boot difficult. It was observed that we can relax the requirement for cryptographically secure hashing when debugging while still ma

Re: [PATCH 0/6] use memcpy_mcsafe() for copy_to_iter()

2018-05-01 Thread Dan Williams
On Tue, May 1, 2018 at 4:28 PM, Andy Lutomirski wrote: > On Tue, May 1, 2018 at 4:02 PM Dan Williams > wrote: > >> On Tue, May 1, 2018 at 2:05 PM, Linus Torvalds >> wrote: >> > On Tue, May 1, 2018 at 1:55 PM Dan Williams >> > wrote: >> > >> >> The result of the bypass is that the kernel treats

Re: [PATCH net-next v7 1/3] vmcore: add API to collect hardware dump in second kernel

2018-05-01 Thread Stephen Hemminger
On Tue, 1 May 2018 23:57:45 +0530 Rahul Lakkireddy wrote: > + > +int vmcore_add_device_dump(struct vmcoredd_data *data) > +{ > + return __vmcore_add_device_dump(data); > +} > +EXPORT_SYMBOL(vmcore_add_device_dump); > +#endif /* CONFIG_PROC_VMCORE_DEVICE_DUMP Why the stub wrapper function?

Re: [PATCH 0/6] use memcpy_mcsafe() for copy_to_iter()

2018-05-01 Thread Andy Lutomirski
On Tue, May 1, 2018 at 4:02 PM Dan Williams wrote: > On Tue, May 1, 2018 at 2:05 PM, Linus Torvalds > wrote: > > On Tue, May 1, 2018 at 1:55 PM Dan Williams > > wrote: > > > >> The result of the bypass is that the kernel treats machine checks during > >> read as system fatal (reboot) when they

Re: [v4.17-rcx] Lost IBPB, IBRS_FW support for spectre_v2 mitigation.

2018-05-01 Thread Tim Chen
On 05/01/2018 11:27 AM, Thomas Gleixner wrote: > On Tue, 1 May 2018, Thomas Gleixner wrote: >> On Tue, 1 May 2018, Jörg Otte wrote: >>> 2018-04-30 21:53 GMT+02:00 Thomas Gleixner : --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c @@ -848,6 +848,11 @@ void get_c

Re: [PATCH 0/6] use memcpy_mcsafe() for copy_to_iter()

2018-05-01 Thread Dan Williams
On Tue, May 1, 2018 at 2:05 PM, Linus Torvalds wrote: > On Tue, May 1, 2018 at 1:55 PM Dan Williams > wrote: > >> The result of the bypass is that the kernel treats machine checks during >> read as system fatal (reboot) when they could simply be flagged as an >> I/O error, similar to performing r

[PATCH 3/7] selftests: lib.mk: move running and printing result to a new function

2018-05-01 Thread Shuah Khan (Samsung OSG)
RUN_TESTS function has grown and becoming harder to maintain. Move the code that runs and tests for returns codes to a new function and call it from RUN_TESTS. A new RUN_TEST_PRINT_RESULT is created to simplify RUN_TESTS and make it easier to add handling for other return codes as needed. Signed-

Re: [PATCH v4 05/22] iommu: introduce iommu invalidate API function

2018-05-01 Thread Jacob Pan
On Fri, 27 Apr 2018 19:07:43 +0100 Jean-Philippe Brucker wrote: > On 23/04/18 21:43, Jacob Pan wrote: > [...] > >> The last name is a bit unfortunate. Since the Arm architecture uses > >> the name "context" for what a PASID points to, "Device cache" would > >> suit us better but it's not importan

[PATCH 7/7] selftests: kselftest: change KSFT_SKIP=4 instead of KSFT_PASS

2018-05-01 Thread Shuah Khan (Samsung OSG)
KSFT_SKIP points to KSFT_PASS resulting in reporting skipped tests as Passed, when test programs exit with KSFT_SKIP or call ksft_exit_skip(). If tests are skipped because of unmet dependencies and/or unsupported configuration, reporting them as passed leads to too many false positives. Fix it to

[PATCH 5/7] selftests: lib.mk: add SKIP handling and test suite name to EMIT_TESTS

2018-05-01 Thread Shuah Khan (Samsung OSG)
EMIT_TESTS which is the common function that implements run_tests target, treats all non-zero return codes from tests as failures. When tests are skipped with non-zero return code, because of unmet dependencies and/or unsupported configuration, it reports them as failed. This will lead to too many

[PATCH 0/7] Kselftest framework SKIP handling

2018-05-01 Thread Shuah Khan (Samsung OSG)
Kselftest framework currently treats all non-zero return codes from tests as failures. When tests are skipped with non-zero return code, because of unmet dependencies and/or unsupported configuration, it reports them as failed. This will lead to too many false negatives even on the tests that could

[PATCH 1/7] selftests: lib.mk: cleanup RUN_TESTS define and make it readable

2018-05-01 Thread Shuah Khan (Samsung OSG)
Refine RUN_TESTS define's output block for summary and non-summary code to remove duplicate code and make it readable. cd `dirname $$TEST` > /dev/null; and cd - > /dev/null; are moved to common code block and indentation fixed. Signed-off-by: Shuah Khan (Samsung OSG) --- tools/testing/selftests

[PATCH 6/7] selftests: lib.mk: add test execute bit check to EMIT_TESTS

2018-05-01 Thread Shuah Khan (Samsung OSG)
Similar to what RUN_TESTS does, change EMIT_TESTS to check for execute bit and emit code to print warnings if test isn't executable to the the run_kselftest.sh. Signed-off-by: Shuah Khan (Samsung OSG) --- tools/testing/selftests/lib.mk | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-)

[PATCH 4/7] selftests: lib.mk: Include test suite name in the RUN_TESTS output

2018-05-01 Thread Shuah Khan (Samsung OSG)
Currently just the test name is printed in the RUN_TESTS output. For example, when raw_skew sub-test from timers tests in run, the output shows just raw_skew. Include main test name when printing sub-test results. In addition, remove duplicate strings for printing common information with a new for

[PATCH 2/7] selftests: lib.mk: add SKIP handling to RUN_TESTS define

2018-05-01 Thread Shuah Khan (Samsung OSG)
RUN_TESTS which is the common function that implements run_tests target, treats all non-zero return codes from tests as failures. When tests are skipped with non-zero return code, because of unmet dependencies and/or unsupported configuration, it reports them as failed. This will lead to too many f

Re: WARNING: bad unlock balance in xfs_iunlock

2018-05-01 Thread Dave Chinner
On Mon, Apr 30, 2018 at 03:24:48PM +0200, Dmitry Vyukov wrote: > On Thu, Apr 5, 2018 at 8:54 PM, Dmitry Vyukov wrote: > > On Tue, Apr 3, 2018 at 6:38 AM, Dave Chinner wrote: > >> On Mon, Apr 02, 2018 at 07:01:02PM -0700, syzbot wrote: > >>> Hello, > >>> > >>> syzbot hit the following crash on ups

Re: [PATCH 4/6] x86, memcpy_mcsafe: define copy_to_iter_mcsafe()

2018-05-01 Thread kbuild test robot
Hi Dan, I love your patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.17-rc3 next-20180501] [cannot apply to tip/x86/core] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https

Re: [PATCH v2] Input: atmel_mxt_ts - add missing compatible strings to OF device table

2018-05-01 Thread Dmitry Torokhov
On Tue, May 01, 2018 at 04:33:07PM -0500, Rob Herring wrote: > On Tue, May 1, 2018 at 3:57 PM, Dmitry Torokhov > wrote: > > From: Javier Martinez Canillas > > > > Commit af503716ac14 ("i2c: core: report OF style module alias for devices > > registered via OF") fixed how the I2C core reports the m

[PATCH] ARM: dts: at91: sama5d4ek: use canonical compatible for touchscreen

2018-05-01 Thread Dmitry Torokhov
The canonical compatible string is "atmel,maxtouch", let's use it. Also, change the node name to be "touchscreen" rather than driver name. Signed-off-by: Dmitry Torokhov --- arch/arm/boot/dts/at91-sama5d4ek.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot

Re: [PATCH] alpha: io: reorder barriers to guarantee writeX() and iowriteX() ordering #2

2018-05-01 Thread Sinan Kaya
On 4/20/2018 12:20 PM, Sinan Kaya wrote: > Hi Matt, > > On 4/17/2018 2:43 PM, Sinan Kaya wrote: >> On 4/16/2018 6:16 PM, Sinan Kaya wrote: >>> memory-barriers.txt has been updated with the following requirement. >>> >>> "When using writel(), a prior wmb() is not needed to guarantee that the >>> ca

<    1   2   3   4   5   6   7   8   9   >