[PATCH v2 2/3] dt-bindings: add bindings for mtd-concat devices

2018-09-07 Thread Bernhard Frauendienst
Signed-off-by: Bernhard Frauendienst --- .../devicetree/bindings/mtd/mtd-concat.txt| 36 +++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/mtd-concat.txt diff --git a/Documentation/devicetree/bindings/mtd/mtd-concat.txt

Re: [PATCH] orangefs: rate limit the client not running info message

2018-09-07 Thread Mike Marshall
Thanks... I've applied your patch to 4.19-rc2 and run it through xfstests. It is in my linux-next tree now. I put that in there because I'm really just an old system administrator, and I would always be happy when I could tail dmesg and see some hint at why something wasn't doing as I expected.

Re: [PATCH 2/6] md: convert to kvmalloc

2018-09-07 Thread Kent Overstreet
On Fri, Sep 07, 2018 at 10:49:42AM -0700, Matthew Wilcox wrote: > On Fri, Sep 07, 2018 at 12:56:31PM -0400, Kent Overstreet wrote: > > @@ -165,7 +164,7 @@ ops_run_partial_parity(struct stripe_head *sh, struct > > raid5_percpu *percpu, > >struct dma_async_tx_descriptor *tx) > >

Re: [RESEND PATCH] mm: percpu: remove unnecessary unlikely()

2018-09-07 Thread Dennis Zhou
Hi Igor, On Fri, Sep 07, 2018 at 09:10:35PM +0300, Igor Stoppa wrote: > WARN_ON() already contains an unlikely(), so it's not necessary to > wrap it into another. > > Signed-off-by: Igor Stoppa > Acked-by: Dennis Zhou > Cc: Tejun Heo > Cc: zijun_hu > Cc: Christoph Lameter > Cc:

Re: [PATCH 6/6] Drop flex_arrays

2018-09-07 Thread Randy Dunlap
On 09/07/2018 09:56 AM, Kent Overstreet wrote: > All existing users have been converted to generic radix trees > > Signed-off-by: Kent Overstreet > Acked-by: Dave Hansen > --- > Documentation/core-api/flexible-arrays.rst | 130 --- > Documentation/flexible-arrays.txt | 123 ---

Hello Dear Friend.

2018-09-07 Thread miss.favour.solomon
Hello Dear Friend. Am Mrs.Favour Solomon . i work in one of the prime bank here in Burkina Faso, i want the bank to transfer the money left by most of the greedy African Politicians used our bank to launder money overseas through the help of their Political advisers. Most of the funds which

Hello Dear Friend.

2018-09-07 Thread miss.favour.solomon
Hello Dear Friend. Am Mrs.Favour Solomon . i work in one of the prime bank here in Burkina Faso, i want the bank to transfer the money left by most of the greedy African Politicians used our bank to launder money overseas through the help of their Political advisers. Most of the funds which

[patch 07/10] x86/mm/cpa: Add sanity check for existing mappings

2018-09-07 Thread Thomas Gleixner
With the range check it is possible to do a quick verification that the current mapping is correct vs. the static protection areas. In case a incorrect mapping is detected a warning is emitted and the large page is split up. If the large page is a 2M page, then the split code is forced to check

[patch 01/10] x86/mm/cpa: Split, rename and clean up try_preserve_large_page()

2018-09-07 Thread Thomas Gleixner
Avoid the extra variable and gotos by splitting the function into the actual algorithm and a callable function which contains the lock protection. Rename it to should_split_large_page() while at it so the return values make actually sense. Clean up the code flow, comments and general whitespace

[patch 08/10] x86/mm/cpa: Optimize same protection check

2018-09-07 Thread Thomas Gleixner
When the existing mapping is correct and the new requested page protections are the same as the existing ones, then further checks can be omitted and the large page can be preserved. The slow path 4k wise check will not come up with a different result. Before: 1G pages checked:

[patch 05/10] x86/mm/cpa: Add large page preservation statistics

2018-09-07 Thread Thomas Gleixner
The large page preservation mechanism is just magic and provides no information at all. Add optional statistic output in debugfs so the magic can be evaluated. Defaults is off. Output: 1G pages checked:2 1G pages sameprot: 0 1G pages preserved:

[patch 04/10] x86/mm/cpa: Add debug mechanism

2018-09-07 Thread Thomas Gleixner
The whole static protection magic is silently fixing up anything which is handed in. That's just wrong. The offending call sites need to be fixed. Add a debug mechanism which emits a warning if a requested mapping needs to be fixed up. The DETECT debug mechanism is really not meant to be enabled

[patch 09/10] x86/mm/cpa: Do the range check early

2018-09-07 Thread Thomas Gleixner
To avoid excessive 4k wise checks in the common case do a quick check first whether the requested new page protections conflict with a static protection area in the large page. If there is no conflict then the decision whether to preserve or to split the page can be made immediately. If the

[patch 10/10] x86/mm/cpa: Avoid the 4k pages check completely

2018-09-07 Thread Thomas Gleixner
The extra loop which tries hard to preserve large pages in case of conflicts with static protection regions turns out to be not preserving anything, at least not in the experiments which have been conducted. There might be corner cases in which the code would be able to preserve a large page

[patch 02/10] x86/mm/cpa: Rework static_protections()

2018-09-07 Thread Thomas Gleixner
static_protections() is pretty unreadable. Split it up into separate checks for each protection area. Signed-off-by: Thomas Gleixner --- arch/x86/mm/pageattr.c | 159 + 1 file changed, 95 insertions(+), 64 deletions(-) ---

[patch 03/10] x86/mm/cpa: Allow range check for static protections

2018-09-07 Thread Thomas Gleixner
Checking static protections only page by page is slow especially for huge pages. To allow quick checks over a complete range, add the ability to do that. Make the checks inclusive so the ranges can be directly used for debug output later. No functional change. Signed-off-by: Thomas Gleixner

[patch 00/10] x86/mm/cpa: Improve large page preservation handling

2018-09-07 Thread Thomas Gleixner
Bin reported that try_preserve_large_page() in the page attribute code consumes an large amount of CPU time. His initial attempts of addressing this made me look deeper into the code. The logic in this code is not really intelligent. It requires to check a large page in 4k steps for conflicts.

[patch 06/10] x86/mm/cpa: Avoid static protection checks on unmap

2018-09-07 Thread Thomas Gleixner
If the new pgprot has the PRESENT bit cleared, then conflicts vs. RW/NX are completely irrelevant. Before: 1G pages checked:2 1G pages sameprot: 0 1G pages preserved: 0 2M pages checked: 540 2M pages sameprot:

[GIT PULL] arm64: fix for -rc3

2018-09-07 Thread Will Deacon
Hi Linus, Just one small fix here, preventing a VM_WARN_ON when a !present PMD/PUD is "freed" as part of a huge ioremap() operation. The correct behaviour is to skip the free silently in this case, which is a little weird (the function is a bit of a misnomer), but it follows the x86

[PATCH] drivers:s390:char:move spin_lock_bh to spin_lock in tasklet

2018-09-07 Thread jun qian
As you are already in a tasklet, it is unnecessary to call spin_lock_bh. Signed-off-by: jun qian Cc: Barry song <21cn...@gmail.com> --- drivers/s390/char/tty3270.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/s390/char/tty3270.c b/drivers/s390/char/tty3270.c

Re: [PATCH v3] ata: Disable AHCI ALPM feature for Ampere Computing eMAG SATA

2018-09-07 Thread Jens Axboe
On 9/7/18 10:35 AM, Suman Tripathi wrote: >> I can apply it manually while you work out the kinks in your email >> setup. It might even be your company MTA mangling it, I've seen all >> sorts of crazy like that. > > Thanks for the support. We are working with IT to fix this issue. Good luck! If

kselftests for memory.oom.group

2018-09-07 Thread jgkamat
Here is an amended patch which fixes those issues. Please let me know if you see anything else that could be improved. Changes since the last patchset: - Use if statement to check for empty string in cgroup_util.c - Cleanup and return properly when failing to kill process in

[PATCH 2/2] Add tests for memory.oom.group

2018-09-07 Thread jgkamat
From: Jay Kamat Add tests for memory.oom.group for the following cases: - Killing all processes in a leaf cgroup, but leaving the parent untouched - Killing all processes in a parent and leaf cgroup - Keeping processes marked by OOM_SCORE_ADJ_MIN alive when considered for being killed by the

[PATCH 1/2] Fix cg_read_strcmp()

2018-09-07 Thread jgkamat
From: Jay Kamat Fix a couple issues with cg_read_strcmp(), to improve correctness of cgroup tests - Fix cg_read_strcmp() always returning 0 for empty "needle" strings - Fix a memory leak in cg_read_strcmp() Fixes: 84092dbcf901 ("selftests: cgroup: add memory controller self-tests")

Re: [PATCH v1 0/5] CPUFREQ OPP's and Tegra30 support by tegra20-cpufreq driver

2018-09-07 Thread Dmitry Osipenko
On 9/6/18 3:35 PM, Marcel Ziswiler wrote: On Thu, 2018-08-30 at 22:43 +0300, Dmitry Osipenko wrote: Hello, This series adds support for CPU frequency scaling on Tegra30 and device tree support that allows to implement thermal throttling and customize available CPU frequencies per-board. The

Re: [PATCH 1/2] Fix cg_read_strcmp()

2018-09-07 Thread Roman Gushchin
On Fri, Sep 07, 2018 at 09:49:23AM -0700, jgka...@fb.com wrote: > From: Jay Kamat > > Fix a couple issues with cg_read_strcmp(), to improve correctness of > cgroup tests > - Fix cg_read_strcmp() always returning 0 for empty "needle" strings > - Fix a memory leak in cg_read_strcmp() > > Fixes:

Re: [PATCH] firmware: arm_scmi: use strlcpy to ensure NULL-terminated strings

2018-09-07 Thread Olof Johansson
Hi, On Fri, Sep 7, 2018 at 9:52 AM, Sudeep Holla wrote: > Replace all the memcpy() for copying name strings from the firmware with > strlcpy() to make sure we are bounded by the source buffer size and we > also always have NULL-terminated strings. > > This is needed to avoid out of bounds

Re: [PATCH v2] ARM: omap: Convert to using %pOFn instead of device_node.name

2018-09-07 Thread Tony Lindgren
* Rob Herring [180828 08:48]: > In preparation to remove the node name pointer from struct device_node, > convert printf users to use the %pOFn format specifier. > > Cc: "Benoît Cousson" > Cc: Paul Walmsley > Cc: Tony Lindgren > Cc: linux-o...@vger.kernel.org > Cc:

Re: [PATCH] infiniband: nes: add unlikely() to assert()

2018-09-07 Thread Leon Romanovsky
On Fri, Sep 07, 2018 at 06:25:03PM +0300, Igor Stoppa wrote: > On 07/09/18 18:13, Doug Ledford wrote: > > > This patch was part of a larger series on lkml. In that context, I > > acked it so that the series could be applied by whomever took it (it > > didn't belong on rdma-list as a series since

Re: [PATCH 00/22] KEYS: Support TPM-wrapped key and crypto ops

2018-09-07 Thread Marcel Holtmann
Hi James, >> Here's a set of patches that does the following, if you could pull it please: > > Thanks, it would be good to see more review / acks, though. so I have reviewed and tested this code. In addition, we have test cases for it in ELL (embedded linux library). Tested-by: Marcel

Re: [PATCH AUTOSEL 4.18 69/88] xen-netfront: fix queue name setting

2018-09-07 Thread Boris Ostrovsky
On 09/06/2018 08:36 PM, Sasha Levin wrote: > From: Vitaly Kuznetsov > > [ Upstream commit 2d408c0d4574b01b9ed45e02516888bf925e11a9 ] > > Commit f599c64fdf7d ("xen-netfront: Fix race between device setup and > open") changed the initialization order: xennet_create_queues() now > happens before we

Re: [PATCH 00/22] KEYS: Support TPM-wrapped key and crypto ops

2018-09-07 Thread James Morris
On Fri, 7 Sep 2018, Marcel Holtmann wrote: > Hi James, > > >> Here's a set of patches that does the following, if you could pull it > >> please: > > > > Thanks, it would be good to see more review / acks, though. > > so I have reviewed and tested this code. In addition, we have test cases for

[PATCH v6 0/5] x86: Fix SEV guest regression

2018-09-07 Thread Brijesh Singh
The following commit " x86/kvmclock: Remove memblock dependency https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=368a540e0232ad446931f5a4e8a5e06f69f21343 " introduced SEV guest regression. The guest physical address holding the wall_clock and hv_clock_boot are

[PATCH v6 1/5] x86/mm: Restructure sme_encrypt_kernel()

2018-09-07 Thread Brijesh Singh
Re-arrange the sme_encrypt_kernel() by moving the workarea map/unmap logic in a separate static function. There are no logical changes in this patch. The restructuring will allow us to expand the sme_encrypt_kernel in future. Signed-off-by: Brijesh Singh Reviewed-by: Tom Lendacky Cc: Tom

[PATCH v6 2/5] x86/mm: fix sme_populate_pgd() to update page flags

2018-09-07 Thread Brijesh Singh
Fix sme_populate_pgd() to update page flags if the PMD/PTE entry already exists. Signed-off-by: Brijesh Singh Reviewed-by: Tom Lendacky Cc: Tom Lendacky Cc: k...@vger.kernel.org Cc: Thomas Gleixner Cc: Borislav Petkov Cc: "H. Peter Anvin" Cc: linux-kernel@vger.kernel.org Cc: Paolo Bonzini

Re: [PATCH v2 2/4] acpi: arm64: iort helper to find the associated smmu of pmcg node

2018-09-07 Thread Robin Murphy
On 24/07/18 12:45, Shameer Kolothum wrote: This adds an helper to retrieve the smmuv3 dev(if any) associated with the PMCG node. This will be used in subsequent SMMUv3 PMU driver patch to name the pmu device. As before, I think we might as well try to generalise this to the NC/RC case now,

Re: [PATCH] arm64: lib: use C string functions with KASAN enabled.

2018-09-07 Thread Andrey Ryabinin
On 09/07/2018 05:56 PM, Will Deacon wrote: > On Thu, Sep 06, 2018 at 08:05:33PM +0300, Andrey Ryabinin wrote: >> ARM64 has asm implementations of memchr(), memcmp(), str[r]chr(), >> str[n]cmp(), str[n]len(). KASAN don't see memory accesses in asm >> code, thus it can potentially miss many bugs.

Re: BUG: bad usercopy in __check_object_size (2)

2018-09-07 Thread Kees Cook
On Fri, Sep 7, 2018 at 8:19 AM, Dmitry Vyukov wrote: > On Fri, Sep 7, 2018 at 5:17 PM, syzbot > wrote: >> Hello, >> >> syzbot found the following crash on: >> >> HEAD commit:28619527b8a7 Merge git://git.kernel.org/pub/scm/linux/kern.. >> git tree: bpf >> console output:

Re: [PATCH 0/9] psi: pressure stall information for CPU, memory, and IO v4

2018-09-07 Thread Suren Baghdasaryan
Thanks for the new patchset! Backported to 4.9 and retested on ARMv8 8 code system running Android. Signals behave as expected reacting to memory pressure, no jumps in "total" counters that would indicate an overflow/underflow issues. Nicely done! Tested-by: Suren Baghdasaryan On Fri, Sep 7,

Applied "regmap: split up regmap_config.use_single_rw" to the regmap tree

2018-09-07 Thread Mark Brown
The patch regmap: split up regmap_config.use_single_rw has been applied to the regmap tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.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

Re: [PATCH V3] spi: spi-geni-qcom: Add SPI driver support for GENI based QUP

2018-09-07 Thread Doug Anderson
Hi, On Fri, Sep 7, 2018 at 3:00 AM, wrote: >> In v2, I said: >> >>> I'm not sure where to comment about this, so adding it to the end: >>> >>> Between v1 and v2 you totally removed all the locking. Presumably >>> this is because you didn't want to hold the lock in >>> handle_fifo_timeout()

Re: [PATCH] ARM: qcom_defconfig: Enable MAILBOX

2018-09-07 Thread Bjorn Andersson
On Thu 06 Sep 21:44 PDT 2018, frowand.l...@gmail.com wrote: > From: Frank Rowand > > Problem: > ab460a2e72da ("rpmsg: qcom_smd: Access APCS through mailbox framework" > added a "depends on MAILBOX") to RPMSG_QCOM_SMD, thus RPMSG_QCOM_SMD > becomes unset since MAILBOX was not enabled in

[GIT PULL] Ceph updates for 4.19-rc3

2018-09-07 Thread Ilya Dryomov
Hi Linus, The following changes since commit 57361846b52bc686112da6ca5368d11210796804: Linux 4.19-rc2 (2018-09-02 14:37:30 -0700) are available in the Git repository at: https://github.com/ceph/ceph-client.git tags/ceph-for-4.19-rc3 for you to fetch changes up to

Re: [PATCH 1/2] Fix cg_read_strcmp()

2018-09-07 Thread Shuah Khan
On 09/07/2018 10:49 AM, jgka...@fb.com wrote: > From: Jay Kamat > > Fix a couple issues with cg_read_strcmp(), to improve correctness of > cgroup tests > - Fix cg_read_strcmp() always returning 0 for empty "needle" strings > - Fix a memory leak in cg_read_strcmp() > > Fixes: 84092dbcf901

Re: [PATCH 1/6] openvswitch: convert to kvmalloc

2018-09-07 Thread Matthew Wilcox
On Fri, Sep 07, 2018 at 12:56:30PM -0400, Kent Overstreet wrote: > There was no real need for this code to be using flexarrays, it's just > implementing a hash table - ideally it would be using rhashtables, but > that conversion would be significantly more complicated. > > Signed-off-by: Kent

Re: [PATCH 1/3] ARM: dts: am571x-idk: Add tricolor Industrial LED support

2018-09-07 Thread Tony Lindgren
* Andrew F. Davis [180831 12:38]: > AM571x-IDK rev 1.2A has tricolor RGB LEDs that can be controlled using > GPIO. Expose these to userspace for usage as necessary. Thanks applying all three into omap-for-v4.20/dt. Regards, Tony

Re: [GIT PULL] arm64: fix for -rc3

2018-09-07 Thread Linus Torvalds
On Fri, Sep 7, 2018 at 8:45 AM Will Deacon wrote: > > Just one small fix here, preventing a VM_WARN_ON when a !present PMD/PUD > is "freed" as part of a huge ioremap() operation. The correct behaviour > is to skip the free silently in this case, which is a little weird (the > function is a bit of

Re: [PATCH v2 1/4] acpi: arm64: add iort support for PMCG

2018-09-07 Thread Robin Murphy
On 24/07/18 12:45, Shameer Kolothum wrote: From: Neil Leeder Add support for the SMMU Performance Monitor Counter Group information from ACPI. This is in preparation for its use in the SMMU v3 PMU driver. Signed-off-by: Neil Leeder Signed-off-by: Hanjun Guo Signed-off-by: Shameer Kolothum

Re: [PATCH V2 4/8] regulator: stpmic1: add stpmic1 regulator driver

2018-09-07 Thread Mark Brown
On Fri, Sep 07, 2018 at 12:59:44PM +, Pascal PAILLET-LME wrote: > @@ -804,6 +804,18 @@ config REGULATOR_TI_ABB > on TI SoCs may be unstable without enabling this as it provides > device specific optimized bias to allow/optimize functionality. > > +config REGULATOR_STPMIC1

[PATCH] filesystems: remove unnecessary unlikely()

2018-09-07 Thread Igor Stoppa
WARN_ON() already contains an unlikely(), so it's not necessary to wrap it into another. Signed-off-by: Igor Stoppa Cc: Alexander Viro Cc: linux-fsde...@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- fs/open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/open.c

Re: [patch 02/10] x86/mm/cpa: Rework static_protections()

2018-09-07 Thread Dave Hansen
On 09/07/2018 08:01 AM, Thomas Gleixner wrote: > +static inline pgprot_t static_protections(pgprot_t prot, unsigned long > address, > + unsigned long pfn) > +{ > + pgprotval_t forbidden; > + > + /* Operate on the virtual address */ > + forbidden

RE: [PATCH v3] ata: Disable AHCI ALPM feature for Ampere Computing eMAG SATA

2018-09-07 Thread Suman Tripathi
Hi Jens With regards, Suman >-Original Message- >From: Jens Axboe >Sent: Friday, September 7, 2018 7:26 AM >To: Suman Tripathi ; Hans de Goede >; t...@kernel.org; linux-...@vger.kernel.org; linux- >arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.org; >j...@perches.com;

Re: [PATCH 3/6] selinux: convert to kvmalloc

2018-09-07 Thread Tetsuo Handa
On 2018/09/08 1:56, Kent Overstreet wrote: > @@ -329,8 +328,7 @@ int avtab_alloc(struct avtab *h, u32 nrules) > nslot = MAX_AVTAB_HASH_BUCKETS; > mask = nslot - 1; > > - h->htable = flex_array_alloc(sizeof(struct avtab_node *), nslot, > -

[PATCH] usb: octeon-hcd: remove unnecessary unlikely()

2018-09-07 Thread Igor Stoppa
WARN_ON() already contains an unlikely(), so it's not necessary to wrap it into another. Signed-off-by: Igor Stoppa Cc: Aaro Koskinen Cc: Greg Kroah-Hartman Cc: de...@driverdev.osuosl.org Cc: linux-kernel@vger.kernel.org --- drivers/staging/octeon-usb/octeon-hcd.c | 2 +- 1 file changed, 1

Re: Conflict between sparse and commit cafa0010cd51f ("Raise the minimum required gcc version to 4.6")

2018-09-07 Thread Nick Desaulniers
On Fri, Sep 7, 2018 at 7:34 AM Christophe LEROY wrote: > > Cc linux-spa...@vger.kernel.org > > Le 07/09/2018 à 14:22, Christophe Leroy a écrit : > > Since commit cafa0010cd51f ("Raise the minimum required gcc version to > > 4.6"), sparse check fails as follows: > > > > [root@pc16082vm

Re: [PATCH] Input: reserve 2 events code because of HID

2018-09-07 Thread Dmitry Torokhov
On Fri, Sep 07, 2018 at 10:51:15AM +0200, Benjamin Tissoires wrote: > From: Benjamin Tissoires > > Prior to commit 190d7f02ce8e ("HID: input: do not increment usages when > a duplicate is found") from the v4.18 kernel, HID used to shift the > event codes if a duplicate usage was found. This

[PATCH v2 1/3] mtd: core: add get_mtd_device_by_node

2018-09-07 Thread Bernhard Frauendienst
Add function to retrieve a mtd device by its OF node. Since drivers can assign arbitrary names to mtd devices in the absence of a label property, there is no other reliable way to retrieve a mtd device for a given OF node. Signed-off-by: Bernhard Frauendienst Reviewed-by: Miquel Raynal ---

[PATCH v2 3/3] mtd: mtdconcat: add dt driver for concat devices

2018-09-07 Thread Bernhard Frauendienst
Some mtd drivers like physmap variants have support for concatenating multiple mtd devices, but there is no generic way to define such a concat device from within the device tree. This is useful for some SoC boards that use multiple flash chips as memory banks of a single mtd device, with

[PATCH v2 0/3] mtd concat device driver

2018-09-07 Thread Bernhard Frauendienst
Hi everybody, when porting my router board from a mach-file based OpenWRT target to a device-tree based target, I found that there is no generic way to create a mtd_concat device from within the dts. The following patches attempt to provide that possibility. This is a second roll of that patch

Re: [PATCH] mm: hugepage: mark splitted page dirty when needed

2018-09-07 Thread Jerome Glisse
On Fri, Sep 07, 2018 at 12:35:24PM +0800, Peter Xu wrote: > On Thu, Sep 06, 2018 at 05:08:42PM +0300, Kirill A. Shutemov wrote: > > On Thu, Sep 06, 2018 at 07:39:33PM +0800, Peter Xu wrote: > > > On Wed, Sep 05, 2018 at 03:55:22PM +0300, Kirill A. Shutemov wrote: > > > > On Wed, Sep 05, 2018 at

Re: [PATCH] ASoC: max98373: usleep_range() needs include/delay.h

2018-09-07 Thread Grant Grundler
[resending as plain/text - sorry] On Fri, Sep 7, 2018 at 10:52 AM Grant Grundler wrote: > > > > On Fri, Sep 7, 2018 at 5:11 AM Mark Brown wrote: >> >> On Thu, Sep 06, 2018 at 05:27:28PM -0700, Grant Grundler wrote: >> > Commit ca917f9fe1a0fab added use of usleep_range() but not >> > the

[PATCH] mips: bug: add unlikely() to BUG_ON()

2018-09-07 Thread Igor Stoppa
Add a hint to the compiler that probably it won't be necessary to BUG() Signed-off-by: Igor Stoppa Cc: David Daney Cc: Ralf Baechle Cc: Paul Burton Cc: James Hogan Cc: linux-m...@linux-mips.org Cc: linux-kernel@vger.kernel.org --- arch/mips/include/asm/bug.h | 2 +- 1 file changed, 1

Re: [PATCH] of: Split up name & type in modalias generation

2018-09-07 Thread Frank Rowand
On 09/07/18 07:22, Thierry Reding wrote: > From: Thierry Reding > > The kernel's vsnprintf() implementation discards all alpha-numeric > characters following a %p conversion specifier. This is done in order to > generically skip any of the various modifiers that the kernel supports. >

[PATCH] RISC-V: Show IPI stats

2018-09-07 Thread Anup Patel
This patch provides arch_show_interrupts() implementation to show IPI stats via /proc/interrupts. Now the contents of /proc/interrupts" will look like below: CPU0 CPU1 CPU2 CPU3 8: 17 7 6 14 SiFive PLIC 8 virtio0 10: 10

Re: [PATCH 4/4] sched/numa: Do not move imbalanced load purely on the basis of an idle CPU

2018-09-07 Thread Peter Zijlstra
On Fri, Sep 07, 2018 at 01:37:39PM +0100, Mel Gorman wrote: > On Fri, Sep 07, 2018 at 01:33:09PM +0200, Peter Zijlstra wrote: > > > --- > > > kernel/sched/fair.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c > > >

Re: linux-next: build warnings from the build of Linus' tree

2018-09-07 Thread Peter Oberparleiter
On 06.09.2018 18:42, Masami Hiramatsu wrote: > Peter Oberparleiter wrote: >> I've attached a quick fix that should address both problems. I'd >> appreciate if this patch could get some testing before I post proper fix >> patches. > > Hmm, I'm still not able to reproduce it on powerpc cross build

Re: [RFC PATCH 1/2] mm: move tlb_table_flush to tlb_flush_mmu_free

2018-09-07 Thread Will Deacon
On Thu, Sep 06, 2018 at 04:29:59PM -0400, Rik van Riel wrote: > On Thu, 2018-08-23 at 18:47 +1000, Nicholas Piggin wrote: > > There is no need to call this from tlb_flush_mmu_tlbonly, it > > logically belongs with tlb_flush_mmu_free. This allows some > > code consolidation with a subsequent fix. >

Re: [PATCH V2 8/8] watchdog: stpmic1: add stpmic1 watchdog driver

2018-09-07 Thread Guenter Roeck
On 09/07/2018 05:59 AM, Pascal PAILLET-LME wrote: From: pascal paillet The stpmic1 PMIC embeds a watchdog which is disabled by default. As soon as the watchdog is started, it must be refreshed periodically otherwise the PMIC goes off. Signed-off-by: pascal paillet --- changes in v2: * the

Re: [PATCH V3 06/26] csky: Cache and TLB routines

2018-09-07 Thread Arnd Bergmann
On Fri, Sep 7, 2018 at 2:55 PM Guo Ren wrote: > > On Fri, Sep 07, 2018 at 10:14:38AM +0200, Arnd Bergmann wrote: > > On Fri, Sep 7, 2018 at 5:04 AM Guo Ren wrote: > > > On Thu, Sep 06, 2018 at 04:31:16PM +0200, Arnd Bergmann wrote: > > Similarly, an MMIO read may be used to see if a DMA has

Re: [PATCH] perf: enum overflow in uapi/linux/perf_event.h

2018-09-07 Thread Peter Zijlstra
On Fri, Sep 07, 2018 at 03:58:17PM +0200, Peter Zijlstra wrote: > On Fri, Sep 07, 2018 at 01:50:18PM +, Christophe Leroy wrote: > > > > > > On 09/07/2018 01:42 PM, Peter Zijlstra wrote: > > > On Fri, Sep 07, 2018 at 01:27:19PM +, Christophe Leroy wrote: > > > > On PPC32, enums are 32

[PATCH] of: Split up name & type in modalias generation

2018-09-07 Thread Thierry Reding
From: Thierry Reding The kernel's vsnprintf() implementation discards all alpha-numeric characters following a %p conversion specifier. This is done in order to generically skip any of the various modifiers that the kernel supports. Unfortunately, the OF modalias is generated with a format

Re: [tip:x86/paravirt] x86/paravirt: Move the pv_irq_ops under the PARAVIRT_XXL umbrella

2018-09-07 Thread Borislav Petkov
On Fri, Sep 07, 2018 at 04:52:20PM +0200, Juergen Gross wrote: > And the fixing patch is already there: Yeah, tglx just told me :) Thx! -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.

Re: [PATCH] mtd: rawnand: denali: add DT property to specify skipped bytes in OOB

2018-09-07 Thread Boris Brezillon
On Fri, 7 Sep 2018 23:42:53 +0900 Masahiro Yamada wrote: > Hi Boris, > > 2018-09-07 23:08 GMT+09:00 Boris Brezillon : > > Hi Masahiro, > > > > On Fri, 7 Sep 2018 19:56:23 +0900 > > Masahiro Yamada wrote: > > > >> NAND devices need additional data area (OOB) for error correction, > >> but it

Re: [PATCH 8/9] psi: pressure stall information for CPU, memory, and IO

2018-09-07 Thread Johannes Weiner
On Fri, Sep 07, 2018 at 12:24:58PM +0200, Peter Zijlstra wrote: > On Tue, Aug 28, 2018 at 01:22:57PM -0400, Johannes Weiner wrote: > > +static void psi_clock(struct work_struct *work) > > +{ > > + struct delayed_work *dwork; > > + struct psi_group *group; > > + bool nonidle; > > + > > +

Re: [PATCH 0/9] psi: pressure stall information for CPU, memory, and IO v4

2018-09-07 Thread Johannes Weiner
On Fri, Sep 07, 2018 at 01:04:07PM +0200, Peter Zijlstra wrote: > So yeah, grudingly acked. Did you want me to pick this up through the > scheduler tree since most of this lives there? Thanks for the ack. As for routing it, I'll leave that decision to you and Andrew. It touches stuff all over,

BUG: bad usercopy in __check_object_size (2)

2018-09-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:28619527b8a7 Merge git://git.kernel.org/pub/scm/linux/kern.. git tree: bpf console output: https://syzkaller.appspot.com/x/log.txt?x=1618ac2140 kernel config: https://syzkaller.appspot.com/x/.config?x=62e9b447c16085cf

Re: [PATCH v4 2/2] x86/speculation: Enable cross-hyperthread spectre v2 STIBP mitigation

2018-09-07 Thread Josh Poimboeuf
On Thu, Sep 06, 2018 at 10:33:39AM +0200, Jiri Kosina wrote: > +/* > + * The read-modify-write of the MSR doesn't need any race protection here, > + * as we're running in atomic context. > + */ > +static void enable_stibp(void *info) > +{ > + u64 mask; > + rdmsrl(MSR_IA32_SPEC_CTRL, mask);

Re: BUG: bad usercopy in __check_object_size (2)

2018-09-07 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:28619527b8a7 Merge git://git.kernel.org/pub/scm/linux/kern.. git tree: bpf console output: https://syzkaller.appspot.com/x/log.txt?x=124e64d140 kernel config:

Re: [PATCH v6 13/14] sched/topology: Make Energy Aware Scheduling depend on schedutil

2018-09-07 Thread Quentin Perret
On Friday 07 Sep 2018 at 10:52:01 (+0200), Rafael J. Wysocki wrote: > On Thursday, September 6, 2018 4:38:44 PM CEST Quentin Perret wrote: > > Hi Rafael, > > > > On Thursday 06 Sep 2018 at 11:18:55 (+0200), Rafael J. Wysocki wrote: > > > I'm not a particular fan of notifiers to be honest and you

Re: [PATCH 0/4] Follow-up fixes for v4.19-rc1 NUMA balancing

2018-09-07 Thread Mel Gorman
On Fri, Sep 07, 2018 at 01:24:55PM +0200, Peter Zijlstra wrote: > On Fri, Sep 07, 2018 at 11:11:35AM +0100, Mel Gorman wrote: > > Srikar had an automatic NUMA balancing series merged during the 4.19 window > > and there some issues I missed during review that this series addresses. > > > >

Re: [PATCH 3/4] of: Convert to using %pOFn instead of device_node.name

2018-09-07 Thread Thierry Reding
On Tue, Aug 28, 2018 at 10:52:53AM -0500, Rob Herring wrote: > In preparation to remove the node name pointer from struct device_node, > convert printf users to use the %pOFn format specifier. > > Cc: Frank Rowand > Cc: Andrew Lunn > Cc: Florian Fainelli > Cc: devicet...@vger.kernel.org > Cc:

Re: [PATCH] printk/tracing: Do not trace printk_nmi_enter()

2018-09-07 Thread Steven Rostedt
On Fri, 7 Sep 2018 17:35:38 +0900 Sergey Senozhatsky wrote: > Should't printk_nmi_enter()/printk_nmi_exit() still be notrace? > Like you and Steven said - it's still before ftrace_nmi_enter() > and should be notrace regardless. Correct. My patch fixes both issues. The patch that Peter is

Re: [PATCH] printk/tracing: Do not trace printk_nmi_enter()

2018-09-07 Thread Peter Zijlstra
On Fri, Sep 07, 2018 at 09:41:48AM -0400, Steven Rostedt wrote: > On Fri, 7 Sep 2018 09:34:48 +0200 > Peter Zijlstra wrote: > > > On Wed, Sep 05, 2018 at 09:33:34PM -0400, Steven Rostedt wrote: > > > do_idle { > > > > > > [interrupts enabled] > > > > > > [interrupts disabled] > > >

Re: Widespread crashes in next-20180906

2018-09-07 Thread Matt Hart
On 6 September 2018 at 20:43, Theodore Y. Ts'o wrote: > On Thu, Sep 06, 2018 at 03:13:23PM +0100, Matt Hart wrote: >> On 6 September 2018 at 15:04, Theodore Y. Ts'o wrote: >> > On Thu, Sep 06, 2018 at 06:45:15AM -0700, Guenter Roeck wrote: >> >> Build results: >> >> total: 134 pass: 133

Re: [PATCH] jump_label: Fix typo in warning message

2018-09-07 Thread Steven Rostedt
On Fri, 7 Sep 2018 12:35:21 +0200 Borislav Petkov wrote: > From: Borislav Petkov > > There's no 'allocatote' - use the next best thing: 'allocate' :-) Nice. Probably can go through the trivial tree (Cc'd). Acked-by: Steven Rostedt (VMware) -- Steve > > Signed-off-by: Borislav Petkov >

Re: BUG: bad usercopy in __check_object_size (2)

2018-09-07 Thread Dmitry Vyukov
On Fri, Sep 7, 2018 at 5:17 PM, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:28619527b8a7 Merge git://git.kernel.org/pub/scm/linux/kern.. > git tree: bpf > console output: https://syzkaller.appspot.com/x/log.txt?x=1618ac2140 > kernel config:

Conflict between sparse and commit cafa0010cd51f ("Raise the minimum required gcc version to 4.6")

2018-09-07 Thread Christophe Leroy
Since commit cafa0010cd51f ("Raise the minimum required gcc version to 4.6"), sparse check fails as follows: [root@pc16082vm linux-powerpc]# make C=2 arch/powerpc/kernel/process.o CALLscripts/checksyscalls.sh CHECK scripts/mod/empty.c ./include/linux/compiler-gcc.h:14:3: error: Sorry,

[PATCH 11/25] ubifs: add helper functions for authentication support

2018-09-07 Thread Sascha Hauer
This patch adds the various helper functions needed for authentication support. We need functions to hash nodes, to embed HMACs into a node and to compare hashes and HMACs. Most functions first check if this filesystem is authenticated and bail out early if not, which makes the functions safe to

[PATCH 20/25] ubifs: Create hash for default LPT

2018-09-07 Thread Sascha Hauer
During creation of the default filesystem on an empty flash the default LPT is created. With this patch a hash over the default LPT is calculated which can be added to the default filesystems master node. Signed-off-by: Sascha Hauer --- fs/ubifs/lpt.c | 21 - fs/ubifs/sb.c

[PATCH 16/25] ubifs: Add auth nodes to garbage collector journal head

2018-09-07 Thread Sascha Hauer
To be able to authenticate the garbage collector journal head add authentication nodes to the buds the garbage collector creates. Signed-off-by: Sascha Hauer --- fs/ubifs/gc.c | 46 +++--- 1 file changed, 43 insertions(+), 3 deletions(-) diff --git

[PATCH 06/25] ubifs: implement ubifs_lpt_lookup using ubifs_pnode_lookup

2018-09-07 Thread Sascha Hauer
ubifs_lpt_lookup() starts by looking up the nth pnode in the LPT. We already have this functionality in ubifs_pnode_lookup(). Use this function rather than open coding its functionality. Signed-off-by: Sascha Hauer --- fs/ubifs/lpt.c | 20 ++-- 1 file changed, 2 insertions(+),

[PATCH 15/25] ubifs: Add authentication nodes to journal

2018-09-07 Thread Sascha Hauer
Nodes that are written to flash can only be authenticated through the index after the next commit. When a journal replay is necessary the nodes are not yet referenced by the index and thus can't be authenticated. This patch overcomes this situation by creating a hash over all nodes beginning from

[PATCH 23/25] ubifs: do not update inode size in-place in authenticated mode

2018-09-07 Thread Sascha Hauer
In authenticated mode we cannot fixup the inode sizes in-place during recovery as this would invalidate the hashes and HMACs we stored for this inode. Instead, we just write the updated inodes to the journal. We can only do this after ubifs_rcvry_gc_commit() is done though, so for authenticated

[PATCH 19/25] ubfis: authentication: authenticate master node

2018-09-07 Thread Sascha Hauer
The master node contains hashes over the root index node and the LPT. This patch adds a HMAC to authenticate the master node itself. Signed-off-by: Sascha Hauer --- fs/ubifs/master.c | 61 - fs/ubifs/recovery.c | 9 --- fs/ubifs/ubifs.h| 1

[PATCH 13/25] ubifs: Add hashes to the tree node cache

2018-09-07 Thread Sascha Hauer
As part of the UBIFS authentication support every branch in the index gets a hash covering the referenced node. To make that happen the tree node cache needs hashes over the nodes. This patch adds a hash argument to ubifs_tnc_add() and ubifs_tnc_add_nm(). The hashes are calculated from the callers

Re: [PATCH v2 3/3] x86/pti/64: Remove the SYSCALL64 entry trampoline

2018-09-07 Thread Peter Zijlstra
On Wed, Sep 05, 2018 at 02:31:28PM -0700, Andy Lutomirski wrote: > On Tue, Sep 4, 2018 at 12:04 AM, Peter Zijlstra wrote: > > On Mon, Sep 03, 2018 at 03:59:44PM -0700, Andy Lutomirski wrote: > >> There is a possible alternative approach: we could instead move the > >> trampoline within 2G of the

[PATCH 08/25] ubifs: Store read superblock node

2018-09-07 Thread Sascha Hauer
The superblock node is read/modified/written several times throughout the UBIFS code. Instead of reading it from the device each time just keep a copy in memory and write back the modified copy when necessary. This patch helps for authentication support, here we not only have to read the

[PATCH 18/25] ubifs: authentication: authenticate LPT

2018-09-07 Thread Sascha Hauer
The LPT needs to be authenticated aswell. Since the LPT is only written during commit it is enough to authenticate the whole LPT with a single hash which is stored in the master node. Only the leaf nodes (pnodes) are hashed which makes the implementation much simpler than it would be to hash the

Re: [PATCH v2] ARM: s3c24xx: Correct SD card write protect detection on Mini2440

2018-09-07 Thread Krzysztof Kozlowski
On Thu, 6 Sep 2018 at 23:27, Cedric Roux wrote: > > The mini2440 computer uses "active high" to signal that the "write protect" > of the inserted MMC is set. The current code uses the opposite, leading to > a wrong detection of write protection. The solution is simply to use > ".wprotect_invert =

[PATCH V2 4/8] regulator: stpmic1: add stpmic1 regulator driver

2018-09-07 Thread Pascal PAILLET-LME
From: pascal paillet The stpmic1 PMIC embeds several regulators and witches with different capabilities. Signed-off-by: pascal paillet --- changes in v2: * the hardware component has been renamed from stpmu1 to stpmic1 ! * change headers * rework map_mode function * remove proprietary get

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