Re: [PATCH] coresight: dynamic-replicator: Fix handling of multiple connections

2020-04-29 Thread Mike Leach
Hi, On Wed, 29 Apr 2020 at 15:48, Sai Prakash Ranjan wrote: > > Hi Mike, > > On 2020-04-29 19:57, Mike Leach wrote: > > Hi, > > > > [...] > > >> >> Looking more into replicator1(swao_replicator) values as 0x0 even > >> >> after replicator_reset() > >> >> in replicator probe, I added

Re: [PATCH v3 1/3] driver core: Revert default driver_deferred_probe_timeout value to 0

2020-04-29 Thread John Stultz
On Wed, Apr 29, 2020 at 6:52 AM Mark Brown wrote: > On Wed, Apr 29, 2020 at 03:46:04PM +0200, Marek Szyprowski wrote: > > On 22.04.2020 22:32, John Stultz wrote: > > > > Fixes: c8c43cee29f6 ("driver core: Fix > > > driver_deferred_probe_check_state() logic") > > > Signed-off-by: John Stultz > >

Re: [PATCH 1/2] mm, memcg: Avoid stale protection values when cgroup is above protection

2020-04-29 Thread Johannes Weiner
On Wed, Apr 29, 2020 at 05:04:14PM +0200, Michal Hocko wrote: > On Wed 29-04-20 10:03:30, Johannes Weiner wrote: > > On Wed, Apr 29, 2020 at 12:15:10PM +0200, Michal Hocko wrote: > > > On Tue 28-04-20 19:26:47, Chris Down wrote: > > > > From: Yafang Shao > > > > > > > > A cgroup can have both

Re: [PATCH v2 1/2] i2c: tegra: Better handle case where CPU0 is busy for a long time

2020-04-29 Thread Dmitry Osipenko
29.04.2020 19:30, Thierry Reding пишет: > On Wed, Apr 29, 2020 at 03:35:26PM +0300, Dmitry Osipenko wrote: >> 29.04.2020 11:55, Thierry Reding пишет: >> ... > It's not "papering over an issue". The bug can't be fixed properly > without introducing I2C atomic transfers support for a late

[PATCH] mtd: parser: cmdline: Support MTD names containing one or more colons

2020-04-29 Thread Ronald G. Minnich
From: Boris Brezillon Looks like some drivers define MTD names with a colon in it, thus making mtdpart= parsing impossible. Let's fix the parser to gracefully handle that case: the last ':' in a partition definition sequence is considered instead of the first one. Signed-off-by: Boris Brezillon

Re: [f2fs-dev] [PATCH V2] f2fs: Avoid double lock for cp_rwsem during checkpoint

2020-04-29 Thread Sayali Lokhande
On 4/29/2020 6:14 PM, Dan Carpenter wrote: On Wed, Apr 29, 2020 at 10:28:36AM +0530, Sayali Lokhande wrote: Hi Markus On 4/27/2020 4:08 PM, Markus Elfring wrote: … This results in deadlock as iput() tries to hold cp_rwsem, which is already held at the beginning by

[PATCH v3] virtio-blk: handle block_device_operations callbacks after hot unplug

2020-04-29 Thread Stefan Hajnoczi
A userspace process holding a file descriptor to a virtio_blk device can still invoke block_device_operations after hot unplug. This leads to a use-after-free accessing vblk->vdev in virtblk_getgeo() when ioctl(HDIO_GETGEO) is invoked: BUG: unable to handle kernel NULL pointer dereference at

Re: [RFC][PATCH] x86/mm: Sync all vmalloc mappings before text_poke()

2020-04-29 Thread Steven Rostedt
On Wed, 29 Apr 2020 18:20:26 +0200 Joerg Roedel wrote: > On Wed, Apr 29, 2020 at 06:17:47PM +0200, Joerg Roedel wrote: > > On Wed, Apr 29, 2020 at 10:07:31AM -0400, Steven Rostedt wrote: > > > Talking with Mathieu about this on IRC, he pointed out that my code does > > > have a vzalloc() that

Re: [GIT PULL] RISC-V Fixes for 5.7-rc4

2020-04-29 Thread pr-tracker-bot
The pull request you sent on Wed, 29 Apr 2020 08:53:16 -0700 (PDT): > git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git > tags/riscv-for-linus-5.7-rc4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/1d2cc5ac6f6668cc15216d51051103c61467d7e8 Thank you! --

Re: [PATCH] Fix use after free in get_tree_bdev()

2020-04-29 Thread Linus Torvalds
On Tue, Apr 28, 2020 at 11:06 PM Lukas Czerner wrote: > > This fixes the problem I was seeing. Thanks David. > > Reviewed-by: Lukas Czerner Well, it got applied as obvious before this, so the commit log won't show your testing. Commit dd7bc8158b41 ("Fix use after free in get_tree_bdev()") in

Re: [GIT PULL] Crypto Fixes for 5.7

2020-04-29 Thread pr-tracker-bot
The pull request you sent on Wed, 29 Apr 2020 15:54:20 +1000: > git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/6c3efdc911b67816285719bd610152232cf5e8e4 Thank you! -- Deet-doot-dot, I am a

[PATCH v7 0/4] USB: pci-quirks: Add Raspberry Pi 4 quirk

2020-04-29 Thread Nicolas Saenz Julienne
On the Raspberry Pi 4, after a PCI reset, VL805's firmware may either be loaded directly from an EEPROM or, if not present, by the SoC's co-processor, VideoCore. This series adds support for the later. Note that there are a set of constraints we have to consider (some of them I missed on v1): -

[PATCH v7 3/4] PCI: brcmstb: Wait for Raspberry Pi's firmware when present

2020-04-29 Thread Nicolas Saenz Julienne
xHCI's PCI fixup, run at the end of pcie-brcmstb's probe, depends on RPi4's VideoCore firmware interface to be up and running. It's possible for both initializations to race, so make sure it's available prior to starting. Signed-off-by: Nicolas Saenz Julienne Reviewed-by: Florian Fainelli ---

[PATCH] checkpatch: add support to check 'Fixes:' tag format

2020-04-29 Thread Wang YanQing
According to submitting-patches.rst, 'Fixes:' tag has a little stricter condition about the one line summary than normal git commit description: “... Do not split the tag across multiple lines, tags are exempt from the "wrap at 75 columns" rule in order to simplify parsing scripts ...” And there

[PATCH v7 2/4] firmware: raspberrypi: Introduce vl805 init routine

2020-04-29 Thread Nicolas Saenz Julienne
The Raspberry Pi 4 gets its USB functionality from VL805, a PCIe chip that implements xHCI. After a PCI reset, VL805's firmware may either be loaded directly from an EEPROM or, if not present, by the SoC's co-processor, VideoCore. RPi4's VideoCore OS contains both the non public firmware load

[PATCH v7 4/4] USB: pci-quirks: Add Raspberry Pi 4 quirk

2020-04-29 Thread Nicolas Saenz Julienne
On the Raspberry Pi 4, after a PCI reset, VL805's firmware may either be loaded directly from an EEPROM or, if not present, by the SoC's VideoCore. Inform VideoCore that VL805 was just reset. Also, as this creates a dependency between USB_PCI and VideoCore's firmware interface, and since USB_PCI

[PATCH v7 1/4] soc: bcm2835: Add notify xHCI reset property

2020-04-29 Thread Nicolas Saenz Julienne
The property is needed in order to trigger VL805's firmware load. Note that gap between the property introduced and the previous one is due to the properties not being defined. Signed-off-by: Nicolas Saenz Julienne Reviewed-by: Florian Fainelli --- include/soc/bcm2835/raspberrypi-firmware.h |

Re: [PATCH 12/13] KVM: x86: Replace late check_nested_events() hack with more precise fix

2020-04-29 Thread Sean Christopherson
On Wed, Apr 29, 2020 at 10:36:17AM +0200, Paolo Bonzini wrote: > On 29/04/20 00:20, Sean Christopherson wrote: > >> So, that's what this mess was all about! Well, this certainly looks better. > > Right? I can't count the number of times I've looked at this code and > > wondered what the hell it

Re: [PATCH v2 00/14] objtool vs retpoline

2020-04-29 Thread Miroslav Benes
On Tue, 28 Apr 2020, Peter Zijlstra wrote: > Hi, > > Based on Alexandre's patches, here's a few that go on top of tip/objtool/core. > > With these patches on objtool can completely understand retpolines and RSB > stuffing, which means it can emit valid ORC unwind information for them, which >

Re: [PATCH v3] mm/slub: Fix incorrect interpretation of s->offset

2020-04-29 Thread Markus Elfring
> In a couple of places in the slub memory allocator, the code uses > "s->offset" as a check to see if the free pointer is put right after the > object. That check is no longer true with commit 3202fa62fb43 ("slub: > relocate freelist pointer to middle of object"). Will any further collateral

[PATCH] PCI: amlogic: meson: Don't use FAST_LINK_MODE to set up link

2020-04-29 Thread Marc Zyngier
My vim3l board stubbornly refuses to play ball with a bog standard PCIe switch (ASM1184e), spitting all kind of errors ranging from link never coming up to crazy things like downstream ports falling off the face of the planet. Upon investigating how the PCIe RC is configured, I found the

Re: [PATCH v1 1/3] mm/memory_hotplug: Prepare passing flags to add_memory() and friends

2020-04-29 Thread Wei Liu
On Wed, Apr 29, 2020 at 06:08:01PM +0200, David Hildenbrand wrote: > We soon want to pass flags - prepare for that. > > This patch is based on a similar patch by Oscar Salvador: > > https://lkml.kernel.org/r/20190625075227.15193-3-osalva...@suse.de > [...] > --- > drivers/hv/hv_balloon.c

Re: [PATCH v2 02/14] objtool: Fix ORC vs alternatives

2020-04-29 Thread Miroslav Benes
On Wed, 29 Apr 2020, Peter Zijlstra wrote: > On Wed, Apr 29, 2020 at 04:33:31PM +0200, Miroslav Benes wrote: > > On Tue, 28 Apr 2020, Peter Zijlstra wrote: > > > /* > > > + * Alternatives should not contain any ORC entries, this in turn means > > > they > > > + * should not contain any CFI ops,

Re: [PATCH v3 05/10] x86/fpu/xstate: Define new functions for clearing fpregs and xstates

2020-04-29 Thread Borislav Petkov
On Wed, Apr 29, 2020 at 09:06:44AM -0700, Yu-cheng Yu wrote: > From: Fenghua Yu > > Currently, fpu__clear() clears all fpregs and xstates. Once XSAVES > supervisor states are introduced, supervisor settings (e.g. CET xstates) > must remain active for signals; It is necessary to have separate

Re: [PATCH v3 03/17] arm64: dts: sdm845: Add OPP table for all qup devices

2020-04-29 Thread Rajendra Nayak
On 4/29/2020 9:40 PM, Matthias Kaehlcke wrote: On Wed, Apr 29, 2020 at 08:23:30PM +0530, Rajendra Nayak wrote: On 4/29/2020 7:45 PM, Rajendra Nayak wrote: On 4/29/2020 5:32 AM, Matthias Kaehlcke wrote: Hi Rajendra, On Tue, Apr 28, 2020 at 07:02:51PM +0530, Rajendra Nayak wrote: qup has

Re: mm/slub: do not place freelist pointer to middle of object if redzone is on

2020-04-29 Thread Waiman Long
On 4/29/20 4:00 AM, Markus Elfring wrote: Waiman just posted another fix for this issue. Let's use that patch instead. With which patches should the situation be finally improved also for this software component? https://lore.kernel.org/patchwork/project/lkml/list/?submitter=21412 Regards,

Re: [PATCH] printk: Add loglevel for "do not print to consoles".

2020-04-29 Thread Tetsuo Handa
On 2020/04/29 23:21, Michal Hocko wrote: > I am trying to say that KERN_NO_CONSOLES resembles more a policy than a > priority. Because I as a developer have no idea whether the message is > good enough for console or not. Right, KERN_NO_CONSOLES is not a priority. > I believe we are free to

Re: [PATCH v3 3/7] ASoC: sun4i-i2s: Add support for H6 I2S

2020-04-29 Thread Clément Péron
Hi Maxime, On Wed, 29 Apr 2020 at 14:35, Maxime Ripard wrote: > > On Tue, Apr 28, 2020 at 10:55:47AM +0200, Clément Péron wrote: > > > > +static int sun50i_i2s_set_soc_fmt(const struct sun4i_i2s *i2s, > > > > + unsigned int fmt) > > > > > > The alignment is off here

Re: [PATCH v1 04/15] nitro_enclaves: Init PCI device driver

2020-04-29 Thread Paraschiv, Andra-Irina
On 25/04/2020 17:25, Liran Alon wrote: On 21/04/2020 21:41, Andra Paraschiv wrote: + +/** + * ne_setup_msix - Setup MSI-X vectors for the PCI device. + * + * @pdev: PCI device to setup the MSI-X for. + * @ne_pci_dev: PCI device private data structure. + * + * @returns: 0 on success, negative

Re: [PATCH] kernel/trace: Stop and wait for kthread on preempt irq module unload

2020-04-29 Thread Steven Rostedt
On Wed, 29 Apr 2020 19:54:16 +0800 Xiao Yang wrote: > On 2020/4/28 22:45, Steven Rostedt wrote: > > diff --git a/kernel/trace/preemptirq_delay_test.c > > b/kernel/trace/preemptirq_delay_test.c > >> index 1c28ca20e30b..6d9131ae7e8c 100644 > >> --- a/kernel/trace/preemptirq_delay_test.c > >>

Re: [PATCH v2 1/2] i2c: tegra: Better handle case where CPU0 is busy for a long time

2020-04-29 Thread Thierry Reding
On Wed, Apr 29, 2020 at 03:35:26PM +0300, Dmitry Osipenko wrote: > 29.04.2020 11:55, Thierry Reding пишет: > ... > >>> It's not "papering over an issue". The bug can't be fixed properly > >>> without introducing I2C atomic transfers support for a late suspend > >>> phase, I don't see any other

Re: [PATCH] selftests/ftrace: treat module requirement unmet situation as unsupported

2020-04-29 Thread Steven Rostedt
On Wed, 29 Apr 2020 17:50:44 +0800 Po-Hsu Lin wrote: > When the required module for the test does not exist, use > exit_unsupported instead of exit_unresolved to indicate this test is > not supported. > > By doing this we can make test behaviour in sync with the > irqsoff_tracer.tc test in

Re: [PATCH] ASoC: mxs-saif: Fix unused assignment

2020-04-29 Thread Mark Brown
On Wed, 29 Apr 2020 17:38:23 +0800, Tang Bin wrote: > Delete unused initialized value, because 'ret' will be assigined > by the function of_alias_get_id(). > > Signed-off-by: Zhang Shengju > Signed-off-by: Tang Bin > --- > sound/soc/mxs/mxs-saif.c | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [PATCH] ASoC: fsl_easrc: Check NULL pinter before dereference

2020-04-29 Thread Mark Brown
On Fri, 24 Apr 2020 20:30:04 +0800, Shengjiu Wang wrote: > The patch 955ac624058f: "ASoC: fsl_easrc: Add EASRC ASoC CPU DAI > drivers" from Apr 16, 2020, leads to the following Smatch complaint: > > sound/soc/fsl/fsl_easrc.c:1529 fsl_easrc_hw_free() > warn: variable dereferenced before check

Re: [PATCH] ASoC: codecs: wm97xx: fix ac97 dependency

2020-04-29 Thread Mark Brown
On Tue, 28 Apr 2020 23:26:59 +0200, Arnd Bergmann wrote: > A recent build fix got the dependency slightly wrong, breaking > builds with CONFIG_AC97_BUS_NEW: > > WARNING: unmet direct dependencies detected for SND_SOC_WM9713 > Depends on [n]: SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && >

Re: [PATCH] ASoC: rt5682: fix I2C/Soundwire dependencies

2020-04-29 Thread Mark Brown
On Tue, 28 Apr 2020 23:46:14 +0200, Arnd Bergmann wrote: > If one of the two is a loadable module, the combined driver must > not be built-in: > > aarch64-linux-ld: sound/soc/codecs/rt5682.o: in function `rt5682_sdw_hw_free': > rt5682.c:(.text+0xb34): undefined reference to

Re: [PATCH] ASoC: fsl_easrc: mark PM functions __maybe_unused

2020-04-29 Thread Mark Brown
On Tue, 28 Apr 2020 23:28:08 +0200, Arnd Bergmann wrote: > ifdefs are hard, and in this driver the suspend/resume functions are > the only callers of some other helpers that trigger a harmless warning > when CONFIG_PM is disabled: > > sound/soc/fsl/fsl_easrc.c:1807:12: warning:

Re: [PATCH] ASoC: component: suppress uninitialized-variable warning

2020-04-29 Thread Mark Brown
On Tue, 28 Apr 2020 23:47:31 +0200, Arnd Bergmann wrote: > Old versions of gcc (tested on gcc-4.8) produce a warning for > correct code: > > sound/soc/soc-compress.c: In function 'soc_compr_open': > sound/soc/soc-compress.c:75:28: error: 'component' is used uninitialized in > this function

[PATCH v6 v6 0/3] media: ov8856: Add devicetree support

2020-04-29 Thread Robert Foss
This adds devicetree support to the ov8856 driver. In order to to aid debugging and enable future sensor modes to be supported, module revision detection is also added. Dongchun Zhu (1): media: dt-bindings: ov8856: Document YAML bindings Robert Foss (2): media: ov8856: Add devicetree

[PATCH v9 1/3] media: dt-bindings: ov8856: Document YAML bindings

2020-04-29 Thread Robert Foss
From: Dongchun Zhu This patch adds documentation of device tree in YAML schema for the OV8856 CMOS image sensor. Signed-off-by: Dongchun Zhu Signed-off-by: Robert Foss Reviewed-by: Maxime Ripard --- - Changes since v8: * Maxime: Added r-b - Changes since v7: * Marco: Make 'port'

[PATCH v6 2/3] media: ov8856: Add devicetree support

2020-04-29 Thread Robert Foss
Add match table, enable ov8856_probe() to support both ACPI and DT modes. ACPI and DT modes are primarily distinguished from each other by relying on devm_XXX_get_optional() will return NULL instead of a reference for the desired managed resource. Signed-off-by: Robert Foss --- - Changes since

[PATCH v6 3/3] media: ov8856: Implement sensor module revision identification

2020-04-29 Thread Robert Foss
Query the sensor for its module revision, and compare it to known revisions. Signed-off-by: Robert Foss --- - Changes since v3: * Actually add module revision 2A - Changes since v2: * Add module revision 2A * Sakari: Remove ov8856_check_revision() * Sakari: Stop EEPROM streaming mode

Re: [PATCH v2 1/2] i2c: tegra: Better handle case where CPU0 is busy for a long time

2020-04-29 Thread Thierry Reding
On Wed, Apr 29, 2020 at 05:46:46PM +0300, Dmitry Osipenko wrote: > 29.04.2020 16:57, Jon Hunter пишет: > > > > On 29/04/2020 13:35, Dmitry Osipenko wrote: > >> 29.04.2020 11:55, Thierry Reding пишет: > >> ... > > It's not "papering over an issue". The bug can't be fixed properly > >

[PATCH v2 3/3] perf tool: simplify checking active smt

2020-04-29 Thread Konstantin Khlebnikov
SMT now could be disabled via "/sys/devices/system/cpu/smt/control". Status shown in "/sys/devices/system/cpu/smt/active" simply as "0" / "1". If this knob isn't here then fallback to checking topology as before. Signed-off-by: Konstantin Khlebnikov --- tools/perf/util/smt.c |4 1

[PATCH v2 2/3] perf tool: fix detecting smt at machines with more than 32 cpus

2020-04-29 Thread Konstantin Khlebnikov
Cpu bitmap is split into 32 bit words. For system with more than 32 cores threads are always in different words thus first word never has two bits: cpu0: ",0100,0001", cpu 79: "8000,0080,". Instead of parsing bitmap read "core_cpus_list" or "thread_siblings_list" and

Re: [PATCH v5 0/4] Charge loop device i/o to issuing cgroup

2020-04-29 Thread Jan Kara
On Wed 29-04-20 10:22:30, Tejun Heo wrote: > Hello, > > On Wed, Apr 29, 2020 at 12:25:40PM +0200, Jan Kara wrote: > > Yeah, I was thinking about the same when reading the patch series > > description. We already have some cgroup workarounds for btrfs kthreads if > > I remember correctly, we have

Re: [RFC][PATCH] x86/mm: Sync all vmalloc mappings before text_poke()

2020-04-29 Thread Joerg Roedel
On Wed, Apr 29, 2020 at 06:17:47PM +0200, Joerg Roedel wrote: > On Wed, Apr 29, 2020 at 10:07:31AM -0400, Steven Rostedt wrote: > > Talking with Mathieu about this on IRC, he pointed out that my code does > > have a vzalloc() that is called: > > > > in trace_pid_write() > > > >

Re: [PATCH 0/1] Fiji GPU audio register timeout when in BACO state

2020-04-29 Thread Alex Deucher
On Wed, Apr 29, 2020 at 12:05 PM Takashi Iwai wrote: > > On Wed, 29 Apr 2020 17:47:47 +0200, > Alex Deucher wrote: > > > > On Wed, Apr 29, 2020 at 11:27 AM Nicholas Johnson > > wrote: > > > > > > On Wed, Apr 29, 2020 at 09:37:41AM +0200, Takashi Iwai wrote: > > > > On Tue, 28 Apr 2020 16:48:45

[PATCH v2 1/3] perf tool: fix reading new topology attribute "core_cpus"

2020-04-29 Thread Konstantin Khlebnikov
Check access("devices/system/cpu/cpu%d/topology/core_cpus", F_OK) fails, unless current directory is "/sys". Simply try read this file first. Signed-off-by: Konstantin Khlebnikov Fixes: 0ccdb8407a46 ("perf tools: Apply new CPU topology sysfs attributes") --- tools/perf/util/smt.c |6 +++---

Re: [PATCH bpf-next v9 0/8] MAC and Audit policy using eBPF (KRSI)

2020-04-29 Thread KP Singh
So I was able to reproduce the issue and also fix it (will separately send a patch). diff --git a/include/linux/lsm_hook_defs.h b/include/linux/lsm_hook_defs.h index 9cd4455528e5..1bdd027766d4 100644 --- a/include/linux/lsm_hook_defs.h +++ b/include/linux/lsm_hook_defs.h @@ -55,7 +55,7 @@

Re: [RFC][PATCH] x86/mm: Sync all vmalloc mappings before text_poke()

2020-04-29 Thread Joerg Roedel
On Wed, Apr 29, 2020 at 10:07:31AM -0400, Steven Rostedt wrote: > Talking with Mathieu about this on IRC, he pointed out that my code does > have a vzalloc() that is called: > > in trace_pid_write() > > pid_list->pids = vzalloc((pid_list->pid_max + 7) >> 3); > > This is done when -P1,2 is

Re: [RFC 0/3] Introduce cpufreq minimum load QoS

2020-04-29 Thread Valentin Schneider
On 29/04/2020 16:57, Benjamin GAIGNARD wrote: > > > On 4/29/20 5:50 PM, Rafael J. Wysocki wrote: >> On Friday, April 24, 2020 1:40:55 PM CEST Benjamin Gaignard wrote: >>> When start streaming from the sensor the CPU load could remain very low >>> because almost all the capture pipeline is done

[rcu:rcu/next] BUILD SUCCESS 75080313dccce0e96989fa0433abba6207b53c03

2020-04-29 Thread kbuild test robot
-20200428 m68k randconfig-a001-20200428 alpharandconfig-a001-20200428 nds32randconfig-a001-20200428 riscvrandconfig-a001-20200428 parisc randconfig-a001-20200429 m68k randconfig-a001-20200429 alpha

Re: [PATCH 0/2] Add support for StorageD3Enable _DSD property

2020-04-29 Thread David E. Box
On Wed, 2020-04-29 at 05:20 +, Williams, Dan J wrote: > On Tue, 2020-04-28 at 08:27 -0700, David E. Box wrote: > > On Tue, 2020-04-28 at 16:22 +0200, Christoph Hellwig wrote: > > > On Tue, Apr 28, 2020 at 07:09:59AM -0700, David E. Box wrote: > > > > > I'm not sure who came up with the idea to

Re: [PATCH v3 03/17] arm64: dts: sdm845: Add OPP table for all qup devices

2020-04-29 Thread Matthias Kaehlcke
On Wed, Apr 29, 2020 at 08:23:30PM +0530, Rajendra Nayak wrote: > > On 4/29/2020 7:45 PM, Rajendra Nayak wrote: > > > > On 4/29/2020 5:32 AM, Matthias Kaehlcke wrote: > > > Hi Rajendra, > > > > > > On Tue, Apr 28, 2020 at 07:02:51PM +0530, Rajendra Nayak wrote: > > > > qup has a requirement to

Re: [PATCH v3 05/10] x86/fpu/xstate: Define new functions for clearing fpregs and xstates

2020-04-29 Thread Yu-cheng Yu
On Wed, 2020-04-29 at 11:27 +0200, Borislav Petkov wrote: > On Sat, Mar 28, 2020 at 09:43:02AM -0700, Yu-cheng Yu wrote: > > @@ -318,18 +313,40 @@ static inline void copy_init_fpstate_to_fpregs(void) > > * Called by sys_execve(), by the signal handler code and by various > > * error paths. > >

[PATCH v1 1/3] mm/memory_hotplug: Prepare passing flags to add_memory() and friends

2020-04-29 Thread David Hildenbrand
We soon want to pass flags - prepare for that. This patch is based on a similar patch by Oscar Salvador: https://lkml.kernel.org/r/20190625075227.15193-3-osalva...@suse.de Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: "Rafael J. Wysocki" Cc: Len Brown Cc: Greg

[PATCH v1 3/3] virtio-mem: Add memory with MHP_DRIVER_MANAGED

2020-04-29 Thread David Hildenbrand
We don't want /sys/firmware/memmap entries and we want to indicate our memory as "System RAM (driver managed)" in /proc/iomem. This is especially relevant for kexec-tools, which have to be updated to support dumping virtio-mem memory after this patch. Expected behavior in kexec-tools: - Don't use

[PATCH v1 2/3] mm/memory_hotplug: Introduce MHP_DRIVER_MANAGED

2020-04-29 Thread David Hildenbrand
Some paravirtualized devices that add memory via add_memory() and friends (esp. virtio-mem) don't want to create entries in /sys/firmware/memmap/ - primarily to hinder kexec from adding this memory to the boot memmap of the kexec kernel. In fact, such memory is never exposed via the firmware

[PATCH v1 0/3] mm/memory_hotplug: Make virtio-mem play nicely with kexec-tools

2020-04-29 Thread David Hildenbrand
This series is based on [1]: [PATCH v2 00/10] virtio-mem: paravirtualized memory That will hopefull get picked up soon, rebased to -next. The following patches were reverted from -next [2]: [PATCH 0/3] kexec/memory_hotplug: Prevent removal and accidental use As discussed in that

[PATCH v3 05/10] x86/fpu/xstate: Define new functions for clearing fpregs and xstates

2020-04-29 Thread Yu-cheng Yu
From: Fenghua Yu Currently, fpu__clear() clears all fpregs and xstates. Once XSAVES supervisor states are introduced, supervisor settings (e.g. CET xstates) must remain active for signals; It is necessary to have separate functions: - Create fpu__clear_user_states(): clear only user settings

Re: [PATCH v1 1/1] fs/splice: add missing callback for inaccessible pages

2020-04-29 Thread Dave Hansen
On 4/28/20 3:50 PM, Claudio Imbrenda wrote: > If a page is inaccesible and it is used for things like sendfile, then > the content of the page is not always touched, and can be passed > directly to a driver, causing issues. > > This patch fixes the issue by adding a call to

Re: [PATCH] staging: wfx: avoid compiler warning on empty array

2020-04-29 Thread Jerome Pouiller
On Wednesday 29 April 2020 16:21:09 CEST Arnd Bergmann wrote: > > When CONFIG_OF is disabled, gcc-9 produces a warning about the > wfx_sdio_of_match[] array having a declaration without a dimension: > > drivers/staging/wfx/bus_sdio.c:159:34: error: array 'wfx_sdio_of_match' > assumed to have

Re: [PATCH 0/1] Fiji GPU audio register timeout when in BACO state

2020-04-29 Thread Takashi Iwai
On Wed, 29 Apr 2020 17:47:47 +0200, Alex Deucher wrote: > > On Wed, Apr 29, 2020 at 11:27 AM Nicholas Johnson > wrote: > > > > On Wed, Apr 29, 2020 at 09:37:41AM +0200, Takashi Iwai wrote: > > > On Tue, 28 Apr 2020 16:48:45 +0200, > > > Nicholas Johnson wrote: > > > > > > > > > > > > > > > > > >

Re: [RFC 0/3] Introduce cpufreq minimum load QoS

2020-04-29 Thread Benjamin GAIGNARD
On 4/29/20 5:50 PM, Rafael J. Wysocki wrote: > On Friday, April 24, 2020 1:40:55 PM CEST Benjamin Gaignard wrote: >> When start streaming from the sensor the CPU load could remain very low >> because almost all the capture pipeline is done in hardware (i.e. without >> using the CPU) and let

Re: [PATCH v3] mm/slub: Fix incorrect interpretation of s->offset

2020-04-29 Thread Matthew Wilcox
On Wed, Apr 29, 2020 at 09:53:28AM -0400, Waiman Long wrote: > As a result, echoing "1" into the validate sysfs file, e.g. of dentry, > may cause a bunch of "Freepointer corrupt" error reports like the > following to appear with the system in panic afterwards. > > [ 38.579769] >

Re: [PATCH] rcutorture: Fix error codes in rcu_torture_read_exit_init()

2020-04-29 Thread Paul E. McKenney
On Wed, Apr 29, 2020 at 04:22:35PM +0300, Dan Carpenter wrote: > The rcu_torture_read_exit_init() function is supposed to return negative > error codes which get propagated back down the call tree but the current > code returns true on failure. > > Fixes: e02882cd57e3 ("rcutorture: Add races with

[GIT PULL] RISC-V Fixes for 5.7-rc4

2020-04-29 Thread Palmer Dabbelt
The following changes since commit ae83d0b416db002fe95601e7f97f64b59514d936: Linux 5.7-rc2 (2020-04-19 14:35:30 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git tags/riscv-for-linus-5.7-rc4 for you to fetch changes up to

Re: [PATCH v2 02/14] objtool: Fix ORC vs alternatives

2020-04-29 Thread Peter Zijlstra
On Wed, Apr 29, 2020 at 04:33:31PM +0200, Miroslav Benes wrote: > On Tue, 28 Apr 2020, Peter Zijlstra wrote: > > /* > > + * Alternatives should not contain any ORC entries, this in turn means they > > + * should not contain any CFI ops, which implies all instructions should > > have > > + * the

Re: [PATCH v22 01/16] dt: bindings: Add multicolor class dt bindings documention

2020-04-29 Thread Dan Murphy
Jacek On 4/29/20 10:37 AM, Jacek Anaszewski wrote: Hi Dan, Thanks for the conversion, but now the binding example is missing. In Documentation/devicetree/bindings/leds/common.yaml we do have examples. I have looked at a few recent examples of yaml files (rohm,bd71828-leds and max77650) and

Re: [RFC 0/3] Introduce cpufreq minimum load QoS

2020-04-29 Thread Rafael J. Wysocki
On Friday, April 24, 2020 1:40:55 PM CEST Benjamin Gaignard wrote: > When start streaming from the sensor the CPU load could remain very low > because almost all the capture pipeline is done in hardware (i.e. without > using the CPU) and let believe to cpufreq governor that it could use lower >

[PATCH] EDAC: remove redundant assignment to variable ret

2020-04-29 Thread Colin King
From: Colin Ian King The variable ret is being assigned with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/edac/amd64_edac.c | 2 +-

Re: [PATCH 0/1] Fiji GPU audio register timeout when in BACO state

2020-04-29 Thread Alex Deucher
On Wed, Apr 29, 2020 at 11:27 AM Nicholas Johnson wrote: > > On Wed, Apr 29, 2020 at 09:37:41AM +0200, Takashi Iwai wrote: > > On Tue, 28 Apr 2020 16:48:45 +0200, > > Nicholas Johnson wrote: > > > > > > > > > > > > > > > > > FWIW, I have a fiji board in a desktop system and it worked fine > > >

Re: [PATCH v3 00/25] Large pages in the page cache

2020-04-29 Thread Kirill A. Shutemov
On Wed, Apr 29, 2020 at 06:40:02PM +0300, Kirill A. Shutemov wrote: > On Wed, Apr 29, 2020 at 06:36:32AM -0700, Matthew Wilcox wrote: > > From: "Matthew Wilcox (Oracle)" > > > > This patch set does not pass xfstests. Test at your own risk. It is > > based on the readahead rewrite which is in

Re: [RFC][PATCH] x86/mm: Sync all vmalloc mappings before text_poke()

2020-04-29 Thread Peter Zijlstra
On Wed, Apr 29, 2020 at 10:32:16AM -0400, Steven Rostedt wrote: > On Wed, 29 Apr 2020 16:10:04 +0200 > Joerg Roedel wrote: > > > On Wed, Apr 29, 2020 at 10:07:31AM -0400, Steven Rostedt wrote: > > > Talking with Mathieu about this on IRC, he pointed out that my code does > > > have a vzalloc()

Re: [PATCH 0/1] Fiji GPU audio register timeout when in BACO state

2020-04-29 Thread Takashi Iwai
On Wed, 29 Apr 2020 17:27:17 +0200, Nicholas Johnson wrote: > > On Wed, Apr 29, 2020 at 09:37:41AM +0200, Takashi Iwai wrote: > > On Tue, 28 Apr 2020 16:48:45 +0200, > > Nicholas Johnson wrote: > > > > > > > > > > > > > > > > > FWIW, I have a fiji board in a desktop system and it worked fine >

[PATCH] scsi: pm80xx: remove redundant assignments to status

2020-04-29 Thread Colin King
From: Colin Ian King The variable status is being assigned with a value that is never read hence the assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/scsi/pm8001/pm80xx_hwi.c | 3 --- 1 file changed, 3 deletions(-)

Re: [PATCH v3 1/2] sched/uclamp: Add a new sysctl to control RT default boost value

2020-04-29 Thread Qais Yousef
On 04/29/20 20:51, Pavan Kondeti wrote: > As we are copying the sysctl_sched_uclamp_util_min_rt_default value into > p->uclamp_req[UCLAMP_MIN], user gets it when sched_getattr() is called though > sched_setattr() was not called before. I guess that is expected behavior with > your definition of

Re: [PATCH v3 00/25] Large pages in the page cache

2020-04-29 Thread Kirill A. Shutemov
On Wed, Apr 29, 2020 at 06:36:32AM -0700, Matthew Wilcox wrote: > From: "Matthew Wilcox (Oracle)" > > This patch set does not pass xfstests. Test at your own risk. It is > based on the readahead rewrite which is in Andrew's tree. The large > pages somehow manage to fall off the LRU, so the

[PATCH] staging: vt6656: Refactor the vnt_rf_table_download function

2020-04-29 Thread Oscar Carter
Create a constant array of struct vnt_table_info type elements with the necessary info (address and length) about all the rf tables for every rf type. In every case of the "switch" statement replace the hardcoded info about these tables with and index to the new constant array. Moreover, use this

[RFC][PATCH 3/7] rbtree, sched/deadline: Use rb_add_cached()

2020-04-29 Thread Peter Zijlstra
Signed-off-by: Peter Zijlstra (Intel) --- kernel/sched/deadline.c | 75 +++- 1 file changed, 24 insertions(+), 51 deletions(-) --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c @@ -440,58 +440,38 @@ static void dec_dl_migration(struct

[RFC][PATCH 6/7] rbtree, rtmutex: Use rb_add_cached()

2020-04-29 Thread Peter Zijlstra
Signed-off-by: Peter Zijlstra (Intel) --- kernel/locking/rtmutex.c | 54 +++ 1 file changed, 18 insertions(+), 36 deletions(-) --- a/kernel/locking/rtmutex.c +++ b/kernel/locking/rtmutex.c @@ -267,27 +267,18 @@ rt_mutex_waiter_equal(struct

[RFC][PATCH 5/7] rbtree, uprobes: Use rbtree helpers

2020-04-29 Thread Peter Zijlstra
Signed-off-by: Peter Zijlstra (Intel) --- kernel/events/uprobes.c | 82 ++- kernel/locking/rtmutex.c | 54 ++ 2 files changed, 58 insertions(+), 78 deletions(-) --- a/kernel/events/uprobes.c +++

Re: [PATCH v22 01/16] dt: bindings: Add multicolor class dt bindings documention

2020-04-29 Thread Jacek Anaszewski
Hi Dan, Thanks for the conversion, but now the binding example is missing. In Documentation/devicetree/bindings/leds/common.yaml we do have examples. Best regards, Jacek Anaszewski On 4/29/20 2:56 PM, Dan Murphy wrote: Add DT bindings for the LEDs multicolor class framework. Add multicolor ID

Re: [PATCH] fs/ceph:fix speical error code in ceph_try_get_caps()

2020-04-29 Thread Jeff Layton
On Wed, 2020-04-29 at 10:01 +0800, Wu Bo wrote: > There are 3 speical error codes: -EAGAIN/-EFBIG/-ESTALE. > After call try_get_cap_refs function, judge the same > error code -EAGAIN twice. So corrected the error code of judgment > from -EAGAIN to -ESTAE. > > Signed-off-by: Wu Bo > --- >

[RFC][PATCH 7/7] rbtree, timerqueue: Use rb_add_cached()

2020-04-29 Thread Peter Zijlstra
Signed-off-by: Peter Zijlstra (Intel) --- lib/timerqueue.c | 28 +--- 1 file changed, 9 insertions(+), 19 deletions(-) --- a/lib/timerqueue.c +++ b/lib/timerqueue.c @@ -14,6 +14,14 @@ #include #include +#define __node_2_tq(_n) \ + rb_entry((_n), struct

[RFC][PATCH 0/7] Generic RB-tree helpers

2020-04-29 Thread Peter Zijlstra
An attempt to reduce the rb-tree boiler place..

[RFC][PATCH 2/7] rbtree, sched/fair: Use rb_add_cached()

2020-04-29 Thread Peter Zijlstra
Signed-off-by: Peter Zijlstra (Intel) --- kernel/sched/fair.c | 46 ++ 1 file changed, 14 insertions(+), 32 deletions(-) --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -533,12 +533,15 @@ static inline u64 min_vruntime(u64 min_v

[RFC][PATCH 4/7] rbtree, perf: Use new rbtree helpers

2020-04-29 Thread Peter Zijlstra
Signed-off-by: Peter Zijlstra (Intel) --- kernel/events/core.c | 178 +++ 1 file changed, 81 insertions(+), 97 deletions(-) --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -1581,44 +1581,84 @@ static void perf_event_groups_init(struc

[RFC][PATCH 1/7] rbtree: Add generic add and find helpers

2020-04-29 Thread Peter Zijlstra
I've always been bothered by the endless (fragile) boilerplate for rbtree, and I recently wrote some rbtree helpers for objtool and figured I should lift them into the kernel and use them more widely. Provide: partial-order; less() based: - rb_add(): add a new entry to the rbtree -

[PATCH v1] drivers/clocksource/arm_arch_timer: remove duplicate error message

2020-04-29 Thread Dejin Zheng
it will print an error message by itself when acpi_gtdt_init() goes wrong. so remove the duplicate error message. Signed-off-by: Dejin Zheng --- drivers/clocksource/arm_arch_timer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clocksource/arm_arch_timer.c

Re: [PATCH v4 1/2] dt-bindings: mtd: Add YAML for Nand Flash Controller support

2020-04-29 Thread Boris Brezillon
On Wed, 29 Apr 2020 18:42:04 +0800 "Ramuthevar,Vadivel MuruganX" wrote: > From: Ramuthevar Vadivel Murugan > > Add YAML file for dt-bindings to support NAND Flash Controller > on Intel's Lightning Mountain SoC. > > Signed-off-by: Ramuthevar Vadivel Murugan > > --- >

Re: [PATCH] vhost: fix default for vhost_iotlb

2020-04-29 Thread Michael S. Tsirkin
On Wed, Apr 29, 2020 at 04:23:04PM +0200, Arnd Bergmann wrote: > During randconfig build testing, I ran into a configuration that has > CONFIG_VHOST=m, CONFIG_VHOST_IOTLB=m and CONFIG_VHOST_RING=y, which > makes the iotlb implementation left out from vhost_ring, and in turn > leads to a link

RE: [PATCH 1/1] i40iw: remove bogus call to netdev_master_upper_dev_get

2020-04-29 Thread Saleem, Shiraz
> Subject: [PATCH 1/1] i40iw: remove bogus call to netdev_master_upper_dev_get > > Local variable netdev is not used in these calls. > > It should be noted, that this change is required to work in bonded mode. > In the other case we would get the following assert: > "RTNL: assertion failed at

Re: [PATCH V2] fs/ceph:fix double unlock in handle_cap_export()

2020-04-29 Thread Jeff Layton
On Wed, 2020-04-29 at 08:46 +0800, Wu Bo wrote: > On 2020/4/28 22:48, Jeff Layton wrote: > > On Tue, 2020-04-28 at 21:13 +0800, Wu Bo wrote: > > > if the ceph_mdsc_open_export_target_session() return fails, > > > should add a lock to avoid twice unlocking. > > > Because the lock will be released

Re: [PATCH v29 00/20] Intel SGX foundations

2020-04-29 Thread Jethro Beekman
On 2020-04-21 23:52, Jarkko Sakkinen wrote: > Intel(R) SGX is a set of CPU instructions that can be used by applications > to set aside private regions of code and data. The code outside the enclave > is disallowed to access the memory inside the enclave by the CPU access > control. > > There is

[PATCH] misc: fastrpc: fix memory leak

2020-04-29 Thread Srinivas Kandagatla
if misc_register() fails, previously allocated data is left without freeing, this could result in memory leak. So fix it! Signed-off-by: Srinivas Kandagatla --- drivers/misc/fastrpc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/misc/fastrpc.c

Re: [PATCH v4 2/2] mtd: rawnand: Add NAND controller support on Intel LGM SoC

2020-04-29 Thread Boris Brezillon
On Wed, 29 Apr 2020 23:18:31 +0800 "Ramuthevar, Vadivel MuruganX" wrote: > Hi Boris, > > On 29/4/2020 10:48 pm, Boris Brezillon wrote: > > On Wed, 29 Apr 2020 22:33:37 +0800 > > "Ramuthevar, Vadivel MuruganX" > > wrote: > > > >> Hi Boris, > >> > >> On 29/4/2020 10:22 pm, Boris Brezillon

Re: [PATCH v29 00/20] Intel SGX foundations

2020-04-29 Thread Sean Christopherson
On Sun, Apr 26, 2020 at 11:57:53AM -0500, Dr. Greg wrote: > In closing, it is important to note that the proposed SGX driver is > not available as a module. This effectively excludes any alternative > implementations of the driver without replacement of the kernel at > large. No it doesn't. The

Re: [PATCH v4 2/2] mtd: rawnand: Add NAND controller support on Intel LGM SoC

2020-04-29 Thread Ramuthevar, Vadivel MuruganX
Hi Boris, On 29/4/2020 11:18 pm, Ramuthevar, Vadivel MuruganX wrote: +    writel(lower_32_bits(ebu_host->cs[ebu_host->cs_num].nand_pa) | +   EBU_ADDR_SEL_REGEN | EBU_ADDR_MASK, +   ebu_host->ebu + EBU_ADDR_SEL(reg)); + +    writel(EBU_MEM_BASE_CS_0 | EBU_ADDR_MASK |

<    3   4   5   6   7   8   9   10   11   12   >