Re: [PATCH] arch: riscv: support kernel command line forcing when no DTB passed

2019-02-05 Thread Andreas Schwab
On Dez 17 2018, Paul Walmsley wrote: > diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c > index 2c290e6aaa6e..e6b962ff39b1 100644 > --- a/arch/riscv/kernel/setup.c > +++ b/arch/riscv/kernel/setup.c > @@ -171,7 +171,14 @@ asmlinkage void __init setup_vm(void) > > void __init p

Re: [PATCHv3 01/27] PCI: mobiveil: uniform the register accessors

2019-02-05 Thread Lorenzo Pieralisi
On Tue, Feb 05, 2019 at 11:09:19AM +0530, Subrahmanya Lingappa wrote: > Reviewed-by: Subrahmanya Lingappa I have a feeling you do not read what I write. Please never top-post. Read this, especially the email etiquette section: https://kernelnewbies.org/PatchCulture > > > > On Tue, Jan 29, 2

[LSF/MM TOPIC] Discuss least bad options for resolving longterm-GUP usage by RDMA

2019-02-05 Thread Ira Weiny
The problem: Once we have pages marked as GUP-pinned how should various subsystems work with those markings. The current work for John Hubbards proposed solutions (part 1 and 2) is progressing.[1] But the final part (3) of his solution is also going to take some work. In Johns presentation he

Re: [PATCH v3 5/5] Revert "scsi: ufs: disable vccq if it's not needed by UFS device"

2019-02-05 Thread Marc Gonzalez
On 05/02/2019 18:24, Marc Gonzalez wrote: > /*** system hangs here for several seconds, then reboots ***/ Silly me. The system crashes in ufshcd_dump_regs() which is a bug I fixed myself. Once I cherry-pick the appropriate fix, the board no longer reboots, but UFS init does fail. Full boot log h

[PATCH 1/2] cpufreq: qcom-hw: Register an Energy Model

2019-02-05 Thread Matthias Kaehlcke
Try and register an Energy Model from qcom-cpufreq-hw to allow interested sub-systems like the task scheduler to use the provided information. Signed-off-by: Matthias Kaehlcke --- drivers/cpufreq/qcom-cpufreq-hw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/cpufreq/qcom-cpufreq

[PATCH 2/2] cpufreq: mediatek: Register an Energy Model

2019-02-05 Thread Matthias Kaehlcke
Try and register an Energy Model from mediatek-cpufreq to allow interested subsystems like the task scheduler to use the provided information. Signed-off-by: Matthias Kaehlcke --- drivers/cpufreq/mediatek-cpufreq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/cpufreq/mediatek-cp

Re: [PATCH v2 06/20] x86/alternative: use temporary mm for text poking

2019-02-05 Thread Nadav Amit
> On Feb 5, 2019, at 4:35 AM, Borislav Petkov wrote: > > On Tue, Feb 05, 2019 at 12:31:46PM +0100, Peter Zijlstra wrote: >> ... >> >> So while in general I agree with BUG_ON() being undesirable, I think >> liberal sprinking in text_poke() is fine; you really _REALLY_ want this >> to work or fail

Re: [PATCH] dma-direct: Export dma_direct_alloc() and dma_direct_free()

2019-02-05 Thread Thierry Reding
On Tue, Feb 05, 2019 at 05:38:37PM +0100, Christoph Hellwig wrote: > On Tue, Feb 05, 2019 at 05:20:57PM +0100, Thierry Reding wrote: > > The problem is that if I use dma_alloc_coherent(), then the memory will > > already be mapped via the SMMU at that point and then the driver, not > > knowing that

Re: [PATCH v2 6/9] scsi: ufs: qcom: Expose the reset controller for PHY

2019-02-05 Thread Evan Green
On Fri, Feb 1, 2019 at 9:56 AM Stephen Boyd wrote: > > Quoting Evan Green (2019-01-23 14:11:34) > > Expose a reset controller that the phy can use to perform its > > initialization in a single callback. > > > > Also, change the use of the phy functions from ufs-qcom such that > > phy_poweron actua

Re: [PATCH v2 7/9] phy: qcom-qmp: Utilize UFS reset controller

2019-02-05 Thread Evan Green
On Fri, Feb 1, 2019 at 10:00 AM Stephen Boyd wrote: > > Quoting Evan Green (2019-01-23 14:11:35) > > @@ -1144,6 +1150,8 @@ static const struct qmp_phy_cfg sdm845_ufsphy_cfg = { > > > > .is_dual_lane_phy = true, > > .no_pcs_sw_reset= true, > > + > > + .has_ufsphy

Re: [PATCH v2 9/9] phy: qcom-ufs: Refactor all init steps into phy_poweron

2019-02-05 Thread Evan Green
On Fri, Feb 1, 2019 at 10:43 AM Stephen Boyd wrote: > > Quoting Evan Green (2019-01-23 14:11:37) > > The phy code was using implicit sequencing between the PHY driver > > and the UFS driver to implement certain hardware requirements. > > Specifically, the PHY reset register in the UFS controller n

Re: [LSF/MM TOPIC] Discuss least bad options for resolving longterm-GUP usage by RDMA

2019-02-05 Thread Ira Weiny
I had an old invalid address for Jason Gunthorpe in my address book... Correcting his email in the thread. On Tue, Feb 05, 2019 at 09:50:59AM -0800, 'Ira Weiny' wrote: > > The problem: Once we have pages marked as GUP-pinned how should various > subsystems work with those markings. > > The cu

Re: [PATCH] dma-direct: Export dma_direct_alloc() and dma_direct_free()

2019-02-05 Thread Christoph Hellwig
On Tue, Feb 05, 2019 at 06:56:11PM +0100, Thierry Reding wrote: > Sure, here you go: > > > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/gpu/host1x/cdma.c#n106 Yes, I think we I can come up with a nicer helper for that.

Re: [PATCHv6 1/4] dt-bindings: add DT binding for the layerscape PCIe controller with EP mode

2019-02-05 Thread Lorenzo Pieralisi
On Tue, Jan 22, 2019 at 02:33:25PM +0800, Xiaowei Bao wrote: > Add the documentation for the Device Tree binding for the layerscape PCIe > controller with EP mode. > > Signed-off-by: Xiaowei Bao > Reviewed-by: Minghuan Lian > Reviewed-by: Zhiqiang Hou > Reviewed-by: Rob Herring > --- > v2: >

[PATCH] powerpc/mm: move a KERN_WARNING message to KERN_DEBUG

2019-02-05 Thread Laurent Vivier
resize_hpt_for_hotplug() reports a warning when it cannot increase the hash page table ("Unable to resize hash page table to target order") but this is not blocking and can make user thinks something has not worked properly. If the operation cannot be done the real error message will be reported b

Re: [PATCH 07/22] x86/fpu: Remove fpu->initialized

2019-02-05 Thread Sebastian Andrzej Siewior
On 2019-01-24 14:34:49 [+0100], Borislav Petkov wrote: > > set it back to one) or don't return to userland. > > > > The context switch code (switch_fpu_prepare() + switch_fpu_finish()) > > can't unconditionally save/restore registers for kernel threads. I have > > no idea what will happen if we re

[PATCH] rtc: rtc-ds1672: fix unintended sign extension

2019-02-05 Thread Colin King
From: Colin Ian King Shifting a u8 by 24 will cause the value to be promoted to an integer. If the top bit of the u8 is set then the following conversion to an unsigned long will sign extend the value causing the upper 32 bits to be set in the result. Fix this by casting the u8 value to an unsig

Re: [PATCH] reset: Don't WARN if trying to get a used reset control

2019-02-05 Thread Philipp Zabel
Hi Thierry, On Fri, 2019-02-01 at 15:00 +0100, Thierry Reding wrote: [...] > It sounds pretty good and elegant actually. Let me try to restate to see > if I understand correctly: > > So basically what you're saying is that we would be changing the > definition of exclusive resets to make them exc

[PATCH 07/22 v2] x86/fpu: Remove fpu->initialized

2019-02-05 Thread Sebastian Andrzej Siewior
The `initialized' member of the fpu struct is always set to one for user tasks and zero for kernel tasks. This avoids saving/restoring the FPU registers for kernel threads. The ->initialized = 0 case for user tasks has been removed in previous changes for instance by always an explicit init at for

Re: [PATCH 00/10] ICL support and other enhancements for PMC Core

2019-02-05 Thread Andy Shevchenko
On Fri, Feb 1, 2019 at 9:32 AM Rajneesh Bhardwaj wrote: > > This patch series provides Icelake support for PMC Core driver and while > doing so it introduces the Icelake Mobile to intel-family.h as per the > CPUID from below Coreboot link > https://github.com/coreboot/coreboot/blob/5ebcea33cd3

Re: [RFC PATCH 3/4] kvm: Add guest side support for free memory hints

2019-02-05 Thread Alexander Duyck
On Mon, 2019-02-04 at 17:46 -0800, Nadav Amit wrote: > > On Feb 4, 2019, at 4:16 PM, Alexander Duyck > > wrote: > > > > On Mon, Feb 4, 2019 at 4:03 PM Nadav Amit wrote: > > > > On Feb 4, 2019, at 3:37 PM, Alexander Duyck > > > > wrote: > > > > > > > > On Mon, 2019-02-04 at 15:00 -0800, Nadav

Re: [PATCH] powerpc/mm: move a KERN_WARNING message to KERN_DEBUG

2019-02-05 Thread Christophe Leroy
Le 05/02/2019 à 19:03, Laurent Vivier a écrit : resize_hpt_for_hotplug() reports a warning when it cannot increase the hash page table ("Unable to resize hash page table to target order") but this is not blocking and can make user thinks something has not worked properly. If the operation can

Re: [PATCH] ARM: dts: qcom: ipq4019: Fix MSI IRQ type

2019-02-05 Thread Bjorn Andersson
On Thu 24 Jan 05:00 PST 2019, Niklas Cassel wrote: > The databook clearly states that the MSI IRQ (msi_ctrl_int) is a level > triggered interrupt. > > The msi_ctrl_int will be high for as long as any MSI status bit is set, > thus the IRQ type should be set to IRQ_TYPE_LEVEL_HIGH, causing the > IR

Re: [PATCH 08/22] x86/fpu: Remove user_fpu_begin()

2019-02-05 Thread Sebastian Andrzej Siewior
On 2019-01-25 16:18:40 [+0100], Borislav Petkov wrote: > Reviewed-by: Borislav Petkov thanks. > Should we do this microoptimization in addition, to save us the > activation when the kernel thread here: > > taskA -> kernel thread -> taskA > > doesn't call kernel_fpu_begin() and thus fpu_fp

Re: [PATCH v2] platform/x86: silead_dmi: Add touchscreen platform data for the Chuwi Hi8 Air tablet

2019-02-05 Thread Andy Shevchenko
On Sun, Feb 3, 2019 at 8:34 PM Kai Renzig wrote: > > Add touchscreen platform data for the Chuwi Hi8 Air tablet. > Pushed to my review and testing queue, thanks! > Signed-off-by: Kai Renzig > --- > Changes in v2: > - Fix the firmware filename to match the actual touchscreen controller. > > dr

Re: [PATCH v3 5/5] Revert "scsi: ufs: disable vccq if it's not needed by UFS device"

2019-02-05 Thread Evan Green
On Tue, Feb 5, 2019 at 9:52 AM Marc Gonzalez wrote: > > On 05/02/2019 18:24, Marc Gonzalez wrote: > > > /*** system hangs here for several seconds, then reboots ***/ > > Silly me. The system crashes in ufshcd_dump_regs() which is a bug > I fixed myself. Once I cherry-pick the appropriate fix, the

Re: [PATCH v10 0/4] Media Device Allocator API

2019-02-05 Thread shuah
On 2/1/19 2:21 AM, Hans Verkuil wrote: On 2/1/19 1:46 AM, shuah wrote: Hi Hans, On 1/30/19 12:42 AM, Hans Verkuil wrote: On 1/30/19 2:50 AM, shuah wrote: On 1/29/19 2:43 AM, Hans Verkuil wrote: On 1/29/19 12:48 AM, shuah wrote: Hi Hans, On 1/28/19 5:03 AM, Hans Verkuil wrote: Hi Shuah, O

Re: [PATCH 00/10] ICL support and other enhancements for PMC Core

2019-02-05 Thread Bhardwaj, Rajneesh
On 05-Feb-19 11:36 PM, Andy Shevchenko wrote: On Fri, Feb 1, 2019 at 9:32 AM Rajneesh Bhardwaj wrote: This patch series provides Icelake support for PMC Core driver and while doing so it introduces the Icelake Mobile to intel-family.h as per the CPUID from below Coreboot link https://github.c

Re: [PATCH] ARM: hammerhead_defconfig: new defconfig for LG Nexus 5 phone

2019-02-05 Thread Bjorn Andersson
On Thu 24 Jan 08:16 PST 2019, Brian Masney wrote: > Introduce hammerhead_defconfig for the LG Nexus 5 phone. Includes > options for USG OTG, WiFi, charger, serial console, gyroscope, > accelerometer, magnetometer, temperature, and pressure sensors. > > The necessary options for the display are al

Re: [PATCH] platform/x86: intel_int0002_vgpio: Only implement irq_set_wake on Bay Trail

2019-02-05 Thread Andy Shevchenko
On Sun, Feb 3, 2019 at 11:42 AM Hans de Goede wrote: > > Commit c3b8e884defa ("platform/x86: intel_int0002_vgpio: Implement > irq_set_wake"), was written to fix some wakeup issues on Bay Trail (BYT) > devices. > > We've received a bug report that this causes a suspend regression on some > Cherry T

Re: Question on handling managed IRQs when hotplugging CPUs

2019-02-05 Thread Christoph Hellwig
On Tue, Feb 05, 2019 at 03:09:28PM +, John Garry wrote: > For SCSI devices, unfortunately not all IO sent to the HW originates from > blk-mq or any other single entity. Where else would SCSI I/O originate from?

Re: [PATCH] PCI: Probe bridge window attributes once at enumeration-time

2019-02-05 Thread Michael S. Tsirkin
On Tue, Jan 29, 2019 at 05:02:26PM -0600, Bjorn Helgaas wrote: > On Tue, Jan 29, 2019 at 05:47:32PM -0500, Michael S. Tsirkin wrote: > > On Tue, Jan 29, 2019 at 04:43:33PM -0600, Bjorn Helgaas wrote: > > > On Tue, Jan 22, 2019 at 01:02:54PM -0600, Bjorn Helgaas wrote: > > > > From: Bjorn Helgaas >

Re: [PATCH v2 2/2] r8169: Avoid pointer aliasing

2019-02-05 Thread David Miller
From: Thierry Reding Date: Mon, 4 Feb 2019 17:42:13 +0100 > @@ -7316,7 +7325,7 @@ static int rtl_get_ether_clk(struct rtl8169_private *tp) > static int rtl_init_one(struct pci_dev *pdev, const struct pci_device_id > *ent) > { > const struct rtl_cfg_info *cfg = rtl_cfg_infos + ent->drive

Re: linux-next: Tree for Feb 5 (btrfs/zstd)

2019-02-05 Thread David Sterba
On Tue, Feb 05, 2019 at 09:40:40AM -0800, Randy Dunlap wrote: > On 2/4/19 10:12 PM, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20190204: > > > > on i386: > > ../fs/btrfs/zstd.c: In function ‘zstd_reclaim_timer_fn’: > ../fs/btrfs/zstd.c:27:35: warning: integer overflow in expressi

Re: [PATCH v2 00/12] btrfs: add zstd compression level support

2019-02-05 Thread David Sterba
On Tue, Feb 05, 2019 at 06:07:49PM +0100, David Sterba wrote: > On Tue, Feb 05, 2019 at 05:51:13PM +0100, David Sterba wrote: > > On Tue, Feb 05, 2019 at 11:30:12AM -0500, Dennis Zhou wrote: > > > > > > Something is wrong, the patchset on top of 5.0-rc5 hangs in test > > > > > > btrfs/007, without

Re: [PATCH 2/4] pwm: stm32-lp: Add power management support

2019-02-05 Thread Tomasz Duszynski
On Tue, Feb 05, 2019 at 01:40:27PM +0100, Fabrice Gasnier wrote: > Add suspend/resume PM sleep ops. When going to low power, disable > active PWM channel. Active PWM channel is resumed, by calling > pwm_apply_state(). This is inspired by Thierry's comment in [1]. > Don't touch inactive channels, as

[RFC][PATCH] usb: f_fs: Avoid crash due to out-of-scope stack ptr access

2019-02-05 Thread John Stultz
Since the 5.0 merge window opened, I've been seeing frequent crashes on suspend and reboot with the trace: [ 36.911170] Unable to handle kernel paging request at virtual address ff801153d660 [ 36.912769] Unable to handle kernel paging request at virtual address ff84b564 ... [ 3

[PATCH 1/1] Lib: sort.c: replaced heap sort algorithm with introspective sort

2019-02-05 Thread Andrey Abramov
Replaced heap sort algorithm with faster introspective sort algorithm. Signed-off-by: Andrey Abramov --- v1: The introspective sort algorithm is faster the heap sort (for example on my machine on a 100MB of random data it was consistently almost twice faster) and it doesn't have the worst case,

Re: [PATCH v2 00/12] btrfs: add zstd compression level support

2019-02-05 Thread Dennis Zhou
On Tue, Feb 05, 2019 at 07:27:49PM +0100, David Sterba wrote: > On Tue, Feb 05, 2019 at 06:07:49PM +0100, David Sterba wrote: > > On Tue, Feb 05, 2019 at 05:51:13PM +0100, David Sterba wrote: > > > On Tue, Feb 05, 2019 at 11:30:12AM -0500, Dennis Zhou wrote: > > > > > > > Something is wrong, the pa

Re: [PATCH] x86/ima: require signed kernel modules

2019-02-05 Thread Seth Forshee
On Tue, Feb 05, 2019 at 11:47:24AM -0500, Mimi Zohar wrote: > Hi Seth, > > On Tue, 2019-02-05 at 09:18 -0600, Seth Forshee wrote: > > On Thu, Jan 31, 2019 at 02:18:59PM -0500, Mimi Zohar wrote: > > > Require signed kernel modules on systems with secure boot mode enabled. > > > > > > To coordinate

Re: [PATCH v3 08/10] x86/setcpuid: Add kernel option setcpuid

2019-02-05 Thread Fenghua Yu
On Tue, Feb 05, 2019 at 04:43:09PM +0100, Borislav Petkov wrote: > On Tue, Feb 05, 2019 at 07:19:16AM -0800, Dave Hansen wrote: > > This is one of the few times that we're pretty confident that folks will > > use this. The reason we're going to this trouble is that the split lock > > detection is

Re: [RFC PATCH 8/8] svm: Allow AVIC with in-kernel irqchip mode

2019-02-05 Thread Alex Williamson
On Mon, 4 Feb 2019 14:42:32 + "Suthikulpanit, Suravee" wrote: > Once the IRQ ack notifier for in-kernel PIT is no longer required > and run-time AVIC activate/deactivate is supported, we can remove > the kernel irqchip split mode requirement for AVIC. > > Hence, remove the check for irqchip

preempt.h: some SOFTIRQ_OFFSET should be SOFTIRQ_MASK?

2019-02-05 Thread Denys Vlasenko
SOFTIRQ is a counter. Why here: #define in_serving_softirq()(softirq_count() & SOFTIRQ_OFFSET) #define in_task() (!(preempt_count() & \ (NMI_MASK | HARDIRQ_MASK | SOFTIRQ_OFFSET))) we check only lowest bit?

libelf-0.175 breaks objtool

2019-02-05 Thread Steven Rostedt
Just a FYI. After a recent upgrade in debian testing, I was not able to build the kernel. I have a custom build of gcc, so I thought it was strange that I was getting something like this (took this from the web, as I don't have the error anymore with the work around, and currently doing a full bui

Re: [PATCH v4] scsi/ata: Use unsigned int for cmd's type in ioctls in scsi_host_template

2019-02-05 Thread Grove, Bradley
Acked-by: Bradley Grove On 1/26/2019 2:52 AM, Nathan Chancellor wrote: Clang warns several times in the scsi subsystem (trimmed for brevity): drivers/scsi/hpsa.c:6209:7: warning: overflow converting case value to switch condition type (2147762695 to 18446744071562347015) [-Wswitch]

Re: [RFC v1 0/3] Address potential user-after-free on module unload

2019-02-05 Thread Greg KH
On Tue, Feb 05, 2019 at 02:57:11PM +, Kees Cook wrote: > On Mon, Feb 4, 2019 at 10:09 PM Sven Van Asbroeck wrote: > > > > I think there _might_ be potential use-after-free issues on module unload. There are loads of issues with module unloading, which is why it pretty much is a "best effort"

Re: [PATCH net-next 0/3] nixge: Fixed-link support

2019-02-05 Thread David Miller
From: Moritz Fischer Date: Mon, 4 Feb 2019 09:30:37 -0800 > From: Moritz Fischer > > This series adds fixed-link support to nixge. > > The first patch corrects the binding to correctly reflect > hardware that does not come with MDIO cores instantiated. > > The second patch adds fixed link su

[PATCH] ARCv2: support manual regfile save on interrupts

2019-02-05 Thread Vineet Gupta
There's a hardware bug which affects the HSDK platform, triggered by micro-ops for auto-saving regfile on taken interrupt. The workaround is to inhibit autosave. Signed-off-by: Vineet Gupta --- arch/arc/Kconfig | 8 ++ arch/arc/include/asm/entry-arcv2.h | 54 ++

Re: [PATCH] qcom: apr: Make apr callbacks in non-atomic context

2019-02-05 Thread Bjorn Andersson
On Thu 31 Jan 09:33 PST 2019, Srinivas Kandagatla wrote: > On 31/01/2019 16:05, Bjorn Andersson wrote: > > Sure, but we want the design to allow for that still, either in future > > upstream or by additional downstream code. > > > Yes, I agree, I don't have solution for this ATM. > It will be int

Re: [PATCH v2 2/2] r8169: Avoid pointer aliasing

2019-02-05 Thread Joe Perches
On Mon, 2019-02-04 at 19:20 -0800, David Miller wrote: > From: Thierry Reding > Date: Mon, 4 Feb 2019 17:42:13 +0100 > > > @@ -7316,7 +7325,7 @@ static int rtl_get_ether_clk(struct rtl8169_private > > *tp) > > static int rtl_init_one(struct pci_dev *pdev, const struct pci_device_id > > *ent)

Re: [RFC PATCH 0/4] kvm: Report unused guest pages to host

2019-02-05 Thread Alexander Duyck
On Tue, 2019-02-05 at 12:25 -0500, Nitesh Narayan Lal wrote: > On 2/4/19 1:15 PM, Alexander Duyck wrote: > > This patch set provides a mechanism by which guests can notify the host of > > pages that are not currently in use. Using this data a KVM host can more > > easily balance memory workloads be

Re: [RFC v1 0/3] Address potential user-after-free on module unload

2019-02-05 Thread Greg KH
On Tue, Feb 05, 2019 at 10:22:50AM -0500, Sven Van Asbroeck wrote: > On Tue, Feb 5, 2019 at 9:57 AM Kees Cook wrote: > > > > > > Can a Coccinelle script get written to find module-use of the non-devm > > work init? > > My thoughts exactly ! But sadly I'm not a Coccinelle expert. I did > look brie

Re: [PATCH] staging: vt6656: Use the correct style for SPDX license Identifier

2019-02-05 Thread Greg Kroah-Hartman
On Tue, Feb 05, 2019 at 08:36:24PM +0530, Nishad Kamdar wrote: > This patch corrects the style for SPDX license Identifier in mac.h > by using "/* */" in place of "//" as per Linux kernel licensing rules. > Issue found by checkpatch. > > Signed-off-by: Nishad Kamdar > --- > drivers/staging/vt665

Re: [PATCH] component: Add documentation

2019-02-05 Thread Daniel Vetter
On Tue, Feb 05, 2019 at 04:49:02PM +, Russell King - ARM Linux admin wrote: > On Tue, Feb 05, 2019 at 05:21:07PM +0100, Daniel Vetter wrote: > > Someone owes me a beer ... > > I find that deeply offensive - it is clearly directed at me personally > as author of the component helper. > > There

Re: [PATCH net-next v3] net: dsa: mv88e6xxx: Prevent suspend to RAM

2019-02-05 Thread Miquel Raynal
Hi Vivien, Vivien Didelot wrote on Tue, 5 Feb 2019 11:28:57 -0500: > Hi Miquel, > > On Tue, 5 Feb 2019 12:07:28 +0100, Miquel Raynal > wrote: > > > +/* There is no suspend to RAM support at DSA level yet, the switch > > configuration > > + * would be lost after a power cycle so prevent it

Re: [PATCH] x86/ima: require signed kernel modules

2019-02-05 Thread Mimi Zohar
On Tue, 2019-02-05 at 12:32 -0600, Seth Forshee wrote: > On Tue, Feb 05, 2019 at 11:47:24AM -0500, Mimi Zohar wrote: > > Hi Seth, > > > > On Tue, 2019-02-05 at 09:18 -0600, Seth Forshee wrote: > > > On Thu, Jan 31, 2019 at 02:18:59PM -0500, Mimi Zohar wrote: > > > > Require signed kernel modules o

Re: [PATCH v3 8/9] mtd: rawnand: ingenic: Add support for the JZ4725B

2019-02-05 Thread Miquel Raynal
Hi Paul, [...] > >> + > >> +static void jz4725b_bch_init(struct ingenic_ecc *bch, > >> + struct ingenic_ecc_params *params, bool encode) > > > > I don't know the IP but 'encode' looks strange, what is it supposed to > > mean? > > It is used to toggle between calcula

Re: linux-next: Fixes tag needs some work in the origin tree

2019-02-05 Thread Palmer Dabbelt
On Sat, 02 Feb 2019 13:33:10 PST (-0800), Stephen Rothwell wrote: [Just a reminder for the future.] Hi all, In commit 2bb10639f12c ("RISC-V: fix bad use of of_node_put") Fixes tag Fixes: 94f9bf118f ("RISC-V: Fix of_node_* refcount") has these problem(s): - SHA1 should be at least 12

[PATCH v3 2/8] dt-bindings: phy-qcom-qmp: Add UFS PHY reset

2019-02-05 Thread Evan Green
Add a required reset to the SDM845 UFS phy to express the PHY reset bit inside the UFS controller register space. Before this change, this reset was not expressed in the DT, and the driver utilized two different callbacks (phy_init and phy_poweron) to implement a two-phase initialization procedure

[PATCH v3 0/8] phy: qcom-ufs: Enable regulators to be off in suspend

2019-02-05 Thread Evan Green
The goal with this series is to enable shutting off regulators that power UFS during system suspend. In "the good life" version of this, we'd just disable the regulators in phy_poweroff() and be done with it. Unfortunately, that's not symmetric, as regulators are not enabled during phy_poweron().

[PATCH v3 1/8] dt-bindings: ufs: Add #reset-cells for Qualcomm controllers

2019-02-05 Thread Evan Green
Enable Qualcomm UFS controllers to expose the PHY reset via a reset controller. Signed-off-by: Evan Green Reviewed-by: Rob Herring Reviewed-by: Stephen Boyd --- Fixing up this aspect of it made me notice that this patch [1] hasn't landed yet. It really ought to. [1] https://lore.kernel.org/l

[PATCH v3 3/8] dt-bindings: phy: qcom-ufs: Add resets property

2019-02-05 Thread Evan Green
Add a resets property to the PHY that represents the PHY reset register in the UFS controller itself. This better describes the complete specification of the PHY, and allows the PHY to perform its initialization in a single function, rather than relying on back-channel sequencing of initialization

[PATCH v3 7/8] phy: qcom: Utilize UFS reset controller

2019-02-05 Thread Evan Green
Move the PHY reset from ufs-qcom into the respective PHYs. This will allow us to merge the two phases of UFS PHY initialization. Signed-off-by: Evan Green --- Changes in v3: - Refactored to move reset control in a single commit (Stephen) - Use no_pcs_sw_reset as an indicator of UFS reset in qmp

[PATCH v3 4/8] arm64: dts: sdm845: Add UFS PHY reset

2019-02-05 Thread Evan Green
Wire up the reset controller in the Qcom UFS controller for the PHY. This will be used to toggle PHY reset during initialization of the PHY. Signed-off-by: Evan Green Reviewed-by: Stephen Boyd --- This commit is based atop the series at [1]. Patches 1 and 2 of that series have landed, but 3, 4,

Re: mm: race in put_and_wait_on_page_locked()

2019-02-05 Thread Hugh Dickins
On Tue, 5 Feb 2019, Qian Cai wrote: > > >> Cai, can you please check if you can reproduce this issue in your > >> environment with 5.0-rc5? > > > > Yes, please do - practical confirmation more convincing than my certainty. > > Indeed, I am no longer be able to reproduce this anymore. Great, tha

[PATCH 1/2] dt-bindings: power: supply: gpio-charger: Add status-gpios property

2019-02-05 Thread Artur Rojek
Add documentation for the "status-gpios" property. Signed-off-by: Artur Rojek --- .../devicetree/bindings/power/supply/gpio-charger.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/power/supply/gpio-charger.txt b/Documentation/devicetree/bind

[PATCH v3 8/8] phy: ufs-qcom: Refactor all init steps into phy_poweron

2019-02-05 Thread Evan Green
The phy code was using implicit sequencing between the PHY driver and the UFS driver to implement certain hardware requirements. Specifically, the PHY reset register in the UFS controller needs to be deasserted before serdes start occurs in the PHY. Before this change, the code was doing this by u

[PATCH v3 5/8] arm64: dts: msm8996: Add UFS PHY reset controller

2019-02-05 Thread Evan Green
Add the reset controller for the UFS controller, and wire it up so that the UFS PHY can initialize itself without relying on implicit sequencing between the two drivers. Signed-off-by: Evan Green Reviewed-by: Stephen Boyd --- Changes in v3: None Changes in v2: None arch/arm64/boot/dts/qcom/ms

[PATCH v3 6/8] scsi: ufs: qcom: Expose the reset controller for PHY

2019-02-05 Thread Evan Green
Expose a reset controller that the phy will later use to control its own PHY reset in the UFS controller. This will enable the combining of PHY init functionality into a single function. Signed-off-by: Evan Green --- Note: The remaining changes in this series need this change, since the PHYs now

[PATCH 2/2] power: supply: gpio-charger: Add support for charger status.

2019-02-05 Thread Artur Rojek
Introduce optional support of POWER_SUPPLY_PROP_STATUS for chargers which provide charging status GPIO. Signed-off-by: Artur Rojek --- drivers/power/supply/gpio-charger.c | 53 +++-- 1 file changed, 42 insertions(+), 11 deletions(-) diff --git a/drivers/power/supply/gpio

Re: [PATCH] staging: vt6656: Use the correct style for SPDX license Identifier

2019-02-05 Thread Joe Perches
On Tue, 2019-02-05 at 19:44 +0100, Greg Kroah-Hartman wrote: > On Tue, Feb 05, 2019 at 08:36:24PM +0530, Nishad Kamdar wrote: > > This patch corrects the style for SPDX license Identifier in mac.h > > by using "/* */" in place of "//" as per Linux kernel licensing rules. > > Issue found by checkpat

Re: [REGRESSION 4.20-rc1] 45975c7d21a1 ("rcu: Define RCU-sched API in terms of RCU for Tree RCU PREEMPT builds")

2019-02-05 Thread Aaro Koskinen
Hi, On Tue, Feb 05, 2019 at 09:05:59PM +0800, Tom Li wrote: > On Tue, Feb 05, 2019 at 11:58:09AM +0200, Aaro Koskinen wrote: > > Can you try below fix? It works on my Loongson. > > Hello Aaro, thanks for your response. But in case you've missed > the original thread, please check it at: > > http

Re: [PATCH v3 7/7] arm64: dts: qcom: apq8016-sbc: Standardize LED labels

2019-02-05 Thread Nicolas Dechesne
Hey Mani, thanks for sending this out, it should have been just like that in the first place ;) On Fri, Dec 21, 2018 at 3:36 AM Manivannan Sadhasivam wrote: > > On Mon, Oct 29, 2018 at 03:12:45PM +0530, Manivannan Sadhasivam wrote: > > For all 96Boards, the following standard is used for onboard

Re: [PATCH][next] mtd: rawnand: meson:: make several functions static

2019-02-05 Thread Miquel Raynal
Hi Colin, Colin King wrote on Tue, 29 Jan 2019 12:44:29 +: > From: Colin Ian King > > There are several functions that are local to the source and do > not need to be in global scope, so make them static. > > Cleans up sparse warnings. > > Signed-off-by: Colin Ian King Merged in nand/n

Re: [PATCH][next] mtd: rawnand: meson: fix missing assignment of ret on a call to meson_chip_buffer_init

2019-02-05 Thread Miquel Raynal
Hi Colin, Colin King wrote on Tue, 29 Jan 2019 10:57:57 +: > From: Colin Ian King > > The call to meson_chip_buffer_init is not assigning ret, however, ret > is being checked for failure. Fix this by adding in the missing assignment. > > Fixes: 2d570b34b41a ("mtd: rawnand: meson: add supp

Re: [PATCH] mtd: rawnand: meson: Fix linking error on 32-bit platforms

2019-02-05 Thread Miquel Raynal
Hi Nathan, Nathan Chancellor wrote on Tue, 29 Jan 2019 14:46:57 -0700: > On arm little endian allyesconfig: > > ld.lld: error: undefined symbol: __aeabi_uldivmod > >>> referenced by meson_nand.c > >>> mtd/nand/raw/meson_nand.o:(meson_nfc_setup_data_interface) in archive > drivers/built-i

Re: [PATCH -next] mtd: rawnand: stm32_fmc2: Make some functions static

2019-02-05 Thread Miquel Raynal
Hi Yue, YueHaibing wrote on Wed, 30 Jan 2019 18:09:08 +0800: > Fixes the following sparse warning: > drivers/mtd/nand/raw/stm32_fmc2_nand.c:1228:6: warning: symbol > 'stm32_fmc2_read_data' was not declared. Should it be static? > drivers/mtd/nand/raw/stm32_fmc2_nand.c:1275:6: warning: symbol >

Re: [PATCH 09/12] btrfs: change set_level() to bound the level passed in

2019-02-05 Thread David Sterba
On Mon, Feb 04, 2019 at 03:20:05PM -0500, Dennis Zhou wrote: > -unsigned int btrfs_compress_str2level(const char *str) > +unsigned int btrfs_compress_str2level(unsigned int type, const char *str) > { > - if (strncmp(str, "zlib", 4) != 0) > + unsigned int level; > + int ret; > + > +

RE: [PATCH 10/10] acpi: bgrt: parse BGRT to obtain BMP address before it gets clobbered

2019-02-05 Thread Ghannam, Yazen
> -Original Message- > From: linux-kernel-ow...@vger.kernel.org ow...@vger.kernel.org> On Behalf Of Ard Biesheuvel > Sent: Saturday, February 2, 2019 3:41 AM > To: linux-...@vger.kernel.org; Ingo Molnar ; Thomas > Gleixner > Cc: Ard Biesheuvel ; linux-kernel@vger.kernel.org; > AKASHI Taka

Re: [PATCH] i2c: core-smbus: don't trace smbus_reply data on errors

2019-02-05 Thread Wolfram Sang
> > > Hmm, instead of tracing nothing, as this is already a "conditional > > > trace event", why not add to that condition: > > > > > > TP_CONDITION(res >= 0 && read_write == I2C_SMBUS_READ), > > > > > > Unless you want to still trace some data on failure. > > > > John, any comment to this?

Re: [PATCH v3] mtd: rawnand: atmel: fix possible object reference leak

2019-02-05 Thread Miquel Raynal
Hi Wen, For the next version can you please post a series with the three commits which are fixing the same reference leak? No need to add a cover letter though. Wen Yang wrote on Tue, 5 Feb 2019 14:32:41 +: > of_find_device_by_node() takes a reference to the struct device > when it finds a

Re: [RFC v1 0/3] Address potential user-after-free on module unload

2019-02-05 Thread Sven Van Asbroeck
On Tue, Feb 5, 2019 at 1:43 PM Greg KH wrote: > > > It really should happen when the device is removed (if it is a driver > that binds to a device.) Absolutely. That's why I'm advocating adding a devm_init_work(), which will take care of this automatically. But it's of course not universally app

Re: [PATCH v2 2/2] r8169: Avoid pointer aliasing

2019-02-05 Thread David Miller
From: Joe Perches Date: Tue, 05 Feb 2019 10:42:54 -0800 > On Mon, 2019-02-04 at 19:20 -0800, David Miller wrote: >> From: Thierry Reding >> Date: Mon, 4 Feb 2019 17:42:13 +0100 >> >> > @@ -7316,7 +7325,7 @@ static int rtl_get_ether_clk(struct rtl8169_private >> > *tp) >> > static int rtl_ini

Re: [PATCH 2/2] selftests: firmware: add CONFIG_FW_LOADER_USER_HELPER_FALLBACK to config

2019-02-05 Thread Luis Chamberlain
On Mon, Feb 04, 2019 at 08:41:50PM -0600, Dan Rue wrote: > On Mon, Feb 04, 2019 at 05:39:57PM -0600, Luis Chamberlain wrote: > > On Thu, Nov 29, 2018 at 8:31 PM Luis Chamberlain wrote: > > > > > > On Mon, Nov 26, 2018 at 09:12:16PM -0600, Dan Rue wrote: > > > > CONFIG_FW_LOADER_USER_HELPER_FALLBAC

Re: [PATCH 1/9] iommu/vt-d: Allow interrupts from the entire bus for aliased devices

2019-02-05 Thread Jacob Pan
On Fri, 1 Feb 2019 10:27:29 -0700 Logan Gunthorpe wrote: > On 2019-02-01 9:44 a.m., Joerg Roedel wrote: > > On Thu, Jan 31, 2019 at 11:56:48AM -0700, Logan Gunthorpe wrote: > >> @@ -394,6 +402,10 @@ static int set_msi_sid(struct irte *irte, > >> struct pci_dev *dev) set_irte_sid(irte, SVT_VERIF

Re: [PATCH v2 2/2] r8169: Avoid pointer aliasing

2019-02-05 Thread Joe Perches
On Tue, 2019-02-05 at 11:14 -0800, David Miller wrote: > From: Joe Perches > Date: Tue, 05 Feb 2019 10:42:54 -0800 > > > On Mon, 2019-02-04 at 19:20 -0800, David Miller wrote: > >> From: Thierry Reding > >> Date: Mon, 4 Feb 2019 17:42:13 +0100 > >> > >> > @@ -7316,7 +7325,7 @@ static int rtl_g

Re: [PATCH v3 7/7] arm64: dts: qcom: apq8016-sbc: Standardize LED labels

2019-02-05 Thread Bjorn Andersson
On Tue 05 Feb 11:00 PST 2019, Nicolas Dechesne wrote: > Hey Mani, > > thanks for sending this out, it should have been just like that in the > first place ;) > Thanks Nico for the confirmation, I will queue this for v5.2 Regards, Bjorn > On Fri, Dec 21, 2018 at 3:36 AM Manivannan Sadhasivam >

[PATCH v2 12/12] btrfs: add zstd compression level support

2019-02-05 Thread Dennis Zhou
>From 0d8684d1d7b18dfa9d5bc9c74033c6c3b6fecd92 Mon Sep 17 00:00:00 2001 From: Dennis Zhou Date: Sat, 19 Jan 2019 18:51:39 -0800 Zstd compression requires different amounts of memory for each level of compression. The prior patches implemented indirection to allow for each compression type to mana

Re: [PATCH 0/6] RFC v2: mm: gup/dma tracking

2019-02-05 Thread Christopher Lameter
On Mon, 4 Feb 2019, Ira Weiny wrote: > On Mon, Feb 04, 2019 at 05:14:19PM +, Christopher Lameter wrote: > > Frankly I still think this does not solve anything. > > > > Concurrent write access from two sources to a single page is simply wrong. > > You cannot make this right by allowing long ter

Re: [PATCH 09/12] btrfs: change set_level() to bound the level passed in

2019-02-05 Thread Dennis Zhou
On Tue, Feb 05, 2019 at 08:06:37PM +0100, David Sterba wrote: > On Mon, Feb 04, 2019 at 03:20:05PM -0500, Dennis Zhou wrote: > > -unsigned int btrfs_compress_str2level(const char *str) > > +unsigned int btrfs_compress_str2level(unsigned int type, const char *str) > > { > > - if (strncmp(str, "zl

[PATCH] sh: migor: Include missing dma-mapping header

2019-02-05 Thread Jacopo Mondi
Since the removal of the stale soc_camera headers, Migo-R board fails to build due to missing dma-mapping include directive. Include missing dma-mapping.h header in Migo-R board file to fix the build error. Fixes: a50c7738e8ae ("media: sh: migor: Remove stale soc_camera include") Signed-off-by: J

Re: [PATCH v3 5/5] Revert "scsi: ufs: disable vccq if it's not needed by UFS device"

2019-02-05 Thread Jeffrey Hugo
On 2/5/2019 11:19 AM, Evan Green wrote: On Tue, Feb 5, 2019 at 9:52 AM Marc Gonzalez wrote: On 05/02/2019 18:24, Marc Gonzalez wrote: /*** system hangs here for several seconds, then reboots ***/ Silly me. The system crashes in ufshcd_dump_regs() which is a bug I fixed myself. Once I cherr

Re: [PATCH v2] tpm/st33zp24: Fix the name collisions in tpm_st33zp24_spi and tpm_i2c_infineon

2019-02-05 Thread James Bottomley
On Mon, 2019-02-04 at 15:37 +0200, Jarkko Sakkinen wrote: > diff --git a/drivers/char/tpm/tpm_i2c_infineon.c > b/drivers/char/tpm/tpm_i2c_infineon.c > index 9086edc9066b..b9d5a1dda8d2 100644 > --- a/drivers/char/tpm/tpm_i2c_infineon.c > +++ b/drivers/char/tpm/tpm_i2c_infineon.c [...] > @@ -527,8 +5

Re: [PATCH v3 2/3] Input: add new vibrator driver for various MSM SOCs

2019-02-05 Thread Dmitry Torokhov
Hi Brian, On Wed, Oct 24, 2018 at 09:29:36PM -0400, Brian Masney wrote: > This patch adds a new vibrator driver that supports various Qualcomm > MSM SOCs. Driver was tested on a LG Nexus 5 (hammerhead) phone. > ... > + > +#define msm_vibrator_write(msm_vibrator, offset, value) \ > + writel(

Re: [PATCH v3 5/5] Revert "scsi: ufs: disable vccq if it's not needed by UFS device"

2019-02-05 Thread Bjorn Andersson
On Tue 05 Feb 02:52 PST 2019, Alim Akhtar wrote: > Hi Bjorn, > > On 05/02/19 11:57 AM, Bjorn Andersson wrote: > > On Mon 04 Feb 20:58 PST 2019, Alim Akhtar wrote: > > > >> Hi Marc, > >> > >> On 04/02/19 11:12 PM, Marc Gonzalez wrote: > >>> This reverts commit 60f0187031c05e04cbadffb62f557d0ff356

Re: [RFC PATCH 1/4] glibc: Perform rseq(2) registration at C startup and thread creation (v7)

2019-02-05 Thread Mathieu Desnoyers
- On Feb 4, 2019, at 4:28 PM, Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: > Register rseq(2) TLS for each thread (including main), and unregister > for each thread (excluding main). "rseq" stands for Restartable > Sequences. > > See the rseq(2) man page proposed here: > https://

Re: [PATCH] ipmr: ip6mr: Create new sockopt to clear mfc cache only

2019-02-05 Thread Nikolay Aleksandrov
On 05/02/2019 04:58, Callum Sinclair wrote: > Currently the only way to clear the mfc cache was to delete the entries > one by one using the MRT_DEL_MFC socket option or to destroy and > recreate the socket. > > Create a new socket option which will clear the multicast forwarding > cache on the so

Re: [PATCHv3 1/2] ARM64: dts: meson-gxbb-odroidc2: Fix usb phy reset warning

2019-02-05 Thread Anand Moon
hi Martin, On Tue, 5 Feb 2019 at 02:19, Martin Blumenstingl wrote: > > Hi Anand, > > On Mon, Feb 4, 2019 at 9:04 PM Anand Moon wrote: > [...] > > > > @@ -36,6 +43,8 @@ > > > > regulator-min-microvolt = <500>; > > > > regulator-max-microvolt = <500>; > > >

Re: [PATCH 3/3] KVM: x86: fix use of L1 MMIO areas in nested guests

2019-02-05 Thread Jim Mattson
On Thu, Aug 17, 2017 at 9:37 AM Paolo Bonzini wrote: > > There is currently some confusion between nested and L1 GPAs. The > assignment to "direct" in kvm_mmu_page_fault tries to fix that, but > it is not enough. What this patch does is fence off the MMIO cache > completely when using shadow nes

Re: [PATCH 09/12] btrfs: change set_level() to bound the level passed in

2019-02-05 Thread David Sterba
On Tue, Feb 05, 2019 at 02:32:54PM -0500, Dennis Zhou wrote: > On Tue, Feb 05, 2019 at 08:06:37PM +0100, David Sterba wrote: > > On Mon, Feb 04, 2019 at 03:20:05PM -0500, Dennis Zhou wrote: > > > -unsigned int btrfs_compress_str2level(const char *str) > > > +unsigned int btrfs_compress_str2level(un

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