[RFC PATCH 0/4] Restore change_pte optimization to its former glory

2019-01-31 Thread jglisse
From: Jérôme Glisse This patchset is on top of my patchset to add context information to mmu notifier [1] you can find a branch with everything [2]. I have not tested it but i wanted to get the discussion started. I believe it is correct but i am not sure what kind of kvm test i can run to

[GIT PULL] Kselftest update for Linux 5.0-rc5

2019-01-31 Thread shuah
Hi Linus, Please pull the following Kselftest updated for Linux 5.0-rc5 This Kselftest update for Linux 5.0-rc5 consists of run-time fixes to cpu-hotplug, and seccomp tests, compile fixes to ir, net, and timers Makefiles. diff is attached. thanks, -- Shuah

Re: Getting weird TPM error after rebasing my tree to security/next-general

2019-01-31 Thread Jarkko Sakkinen
On Thu, Jan 31, 2019 at 07:06:03PM +0200, Jarkko Sakkinen wrote: > Found something that *does* fix the issue. If I replace memcpy_*io() > calls with regular memcpy(), the driver works and all my tests pass. OK, so the length of the response is not trashed, but only the error code. The attached

Re: general protection fault in relay_open_buf

2019-01-31 Thread Kees Cook
On Thu, Jan 31, 2019 at 11:51 PM Greg KH wrote: > Can you test the patch below? > > thanks, > > greg k-h > > -- > > diff --git a/kernel/relay.c b/kernel/relay.c > index 04f248644e06..9e0f52375487 100644 > --- a/kernel/relay.c > +++ b/kernel/relay.c > @@ -428,6 +428,8 @@ static struct

[PATCH v2] selftests: kmod: worked on errors which breaks the overall execution of the test script. i have manually edited for v2 of the patch by changing the date and also commit log.

2019-01-31 Thread Jeffrin Jose T
The kmod.sh script breaks because an array is passed as input instead of a single element input.This patch takes elements one at a time and passed as input to the condition statement which in turn fixes the error.There was an issue which had the need for passing a single digit to the condition

Re: [PATCH v2] sched: Use READ_ONCE()/WRITE_ONCE() in move_queued_task()/task_rq_lock()

2019-01-31 Thread Andrea Parri
On Mon, Jan 21, 2019 at 04:52:40PM +0100, Andrea Parri wrote: > move_queued_task() synchronizes with task_rq_lock() as follows: > > move_queued_task() task_rq_lock() > > [S] ->on_rq = MIGRATING [L] rq = task_rq() > WMB (__set_task_cpu()) ACQUIRE

[RFC PATCH 2/3] ARM: entry: Remove unneeded need_resched() loop

2019-01-31 Thread Valentin Schneider
Since the enabling and disabling of IRQs within preempt_schedule_irq() is contained in a need_resched() loop, we don't need the outer arch code loop. Signed-off-by: Valentin Schneider Cc: Russell King Cc: Thomas Gleixner Cc: Will Deacon Cc: Julien Thierry Cc:

[RFC PATCH 0/3] arm/arm64: entry: Remove need_resched() loop

2019-01-31 Thread Valentin Schneider
A while back (before [1]), i386 had this in the tail of its irq handling code: need_resched: movl TI_flags(%ebp), %ecx # need_resched set ? testb $_TIF_NEED_RESCHED, %cl jz restore_all testl $IF_MASK,EFLAGS(%esp) # interrupts off (exception

[RFC PATCH 3/3] sched/Documentation: Point out use of preempt_schedule_irq()

2019-01-31 Thread Valentin Schneider
Since there are a few archs out there that call preempt_schedule_irq() within a need_resched() loop, point out that it's not needed. Signed-off-by: Valentin Schneider Cc: Jonathan Corbet Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Julien Thierry Cc: linux-...@vger.kernel.org

Re: [PATCH 0/6] driver core: Fix some issues related to device links

2019-01-31 Thread Greg Kroah-Hartman
On Thu, Jan 31, 2019 at 05:02:05PM +0100, Rafael J. Wysocki wrote: > On Thu, Jan 31, 2019 at 2:24 PM Greg Kroah-Hartman > wrote: > > > > On Thu, Jan 31, 2019 at 02:22:47PM +0100, Greg Kroah-Hartman wrote: > > > On Thu, Jan 31, 2019 at 11:09:51AM +0100, Rafael J. Wysocki wrote: > > > > On Thu, Jan

[RFC PATCH 1/3] arm64: entry: Remove unneeded need_resched() loop

2019-01-31 Thread Valentin Schneider
Since the enabling and disabling of IRQs within preempt_schedule_irq() is contained in a need_resched() loop, we don't need the outer arch code loop. Reported-by: Julien Thierry Reported-by: Will Deacon Signed-off-by: Valentin Schneider Cc: Catalin Marinas Cc: Will Deacon Cc: Mark Rutland

Re: [PATCH] afs: Add missing memory barriers in afs_manage_cell()

2019-01-31 Thread Andrea Parri
On Thu, Jan 17, 2019 at 04:31:32PM +0100, Andrea Parri wrote: > On Mon, Nov 26, 2018 at 05:44:12PM +0100, Andrea Parri wrote: > > As the comments for wake_up_bit() and waitqueue_active() point out, > > the barriers are needed to order the clearing of the _FL_NOT_READY > > bit and the

Re: [PATCH] usb: typec: tcpm: Export partner Source Capabilities

2019-01-31 Thread Guenter Roeck
On Thu, Jan 31, 2019 at 08:02:38AM +0100, Greg KH wrote: > On Thu, Jan 31, 2019 at 11:54:11AM +0800, Kyle Tso wrote: > > Provide a function to get the partner Source Capabilities. > > > > Signed-off-by: Kyle Tso > > --- > > drivers/usb/typec/tcpm/tcpm.c | 23 +++ > >

Re: [PATCH] serial: mps2-uart: Add parentheses around conditional in mps2_uart_shutdown

2019-01-31 Thread Nick Desaulniers
On Thu, Jan 31, 2019 at 10:06 AM Nathan Chancellor wrote: > > Clang warns: > > drivers/tty/serial/mps2-uart.c:351:6: warning: logical not is only > applied to the left hand side of this bitwise operator > [-Wlogical-not-parentheses] > if (!mps_port->flags & UART_PORT_COMBINED_IRQ) { >

Re: [PATCH] i2c: aspeed: Add multi-master use case support

2019-01-31 Thread Jae Hyun Yoo
Hi Brendan, Can you please review this patch? Thanks, Jae On 1/16/2019 11:39 AM, Jae Hyun Yoo wrote: In multi-master environment, this driver's master cannot know exactly when a peer master sends data to this driver's slave so cases can be happened that this master tries sending data through

Re: [PATCH V7 3/5] i2c: tegra: Add DMA Support

2019-01-31 Thread Dmitry Osipenko
31.01.2019 21:08, Dmitry Osipenko пишет: > 31.01.2019 19:55, Dmitry Osipenko пишет: > +config I2C_TEGRA_DMA_SUPPORT > + bool "NVIDIA Tegra internal I2C controller DMA support" > + depends on I2C_TEGRA > + depends on TEGRA20_APB_DMA && ARCH_TEGRA_2x_SOC > + depends on

[PATCH v3 1/2] arm: dts: gta04: add ldo 3v3 regulator

2019-01-31 Thread Andreas Kemnade
Required for completeness sake to be able to specify a regulator for devices having a non-optional regulator property. It corresponds to the "3V3" net in the schematics. Signed-off-by: Andreas Kemnade --- new in v3 arch/arm/boot/dts/omap3-gta04.dtsi | 8 1 file changed, 8

[PATCH v3 0/2] arm: dts: gta04: add gps support

2019-01-31 Thread Andreas Kemnade
This patch series adds support for gps for gta04. Formerly it was a single patch, now a non-controllable regulator was added for completeness sake and to satisty binding requirements. Andreas Kemnade (2): arm: dts: gta04: add ldo 3v3 regulator arm: dts: gta04: add gps support

[GIT PULL] Please pull NFS client bugfixes for 5.0-rc5

2019-01-31 Thread Schumaker, Anna
Hi Linus, The following changes since commit deaa5c96c2f7e8b934088a1e70a0fe8797bd1149: SUNRPC: Address Kerberos performance/behavior regression (2019-01-15 15:36:41 -0500) are available in the Git repository at: git://git.linux-nfs.org/projects/anna/linux-nfs.git tags/nfs-for-5.0-3 for

Re: [PATCH 11/11] btrfs: add zstd compression level support

2019-01-31 Thread David Sterba
On Mon, Jan 28, 2019 at 04:24:37PM -0500, Dennis Zhou wrote: > As mentioned above, a requirement that differs zstd from zlib is that > higher levels of compression require more memory. To manage this, each > compression level has its own queue of workspaces. A global LRU is used > to help with

Re: [PATCH] serial: mps2-uart: Add parentheses around conditional in mps2_uart_shutdown

2019-01-31 Thread Vladimir Murzin
On 1/31/19 6:06 PM, Nathan Chancellor wrote: > Clang warns: > > drivers/tty/serial/mps2-uart.c:351:6: warning: logical not is only > applied to the left hand side of this bitwise operator > [-Wlogical-not-parentheses] > if (!mps_port->flags & UART_PORT_COMBINED_IRQ) { > ^

[PATCH] serial: mps2-uart: Add parentheses around conditional in mps2_uart_shutdown

2019-01-31 Thread Nathan Chancellor
Clang warns: drivers/tty/serial/mps2-uart.c:351:6: warning: logical not is only applied to the left hand side of this bitwise operator [-Wlogical-not-parentheses] if (!mps_port->flags & UART_PORT_COMBINED_IRQ) { ^~ drivers/tty/serial/mps2-uart.c:351:6: note:

Re: [PATCH] dt-bindings: hwmon: Add lm75 documentation

2019-01-31 Thread Guenter Roeck
On Tue, Jan 29, 2019 at 12:26:23PM +0530, Jagan Teki wrote: > Add dt-binding documentation for lm75 hwmon sensor. > > Currently documented for national,lm75 and st,stlm75 and > rest might add when required. Why ? The various properties are already implemented in the driver. I don't see the value

Re: [PATCH 11/11] btrfs: add zstd compression level support

2019-01-31 Thread David Sterba
On Mon, Jan 28, 2019 at 04:24:37PM -0500, Dennis Zhou wrote: > static struct list_head *zstd_get_workspace(unsigned int level) > { > - struct list_head *ws = btrfs_get_workspace(, level); > - struct workspace *workspace = list_entry(ws, struct workspace, list); > + struct list_head

Re: [PATCH V7 3/5] i2c: tegra: Add DMA Support

2019-01-31 Thread Dmitry Osipenko
31.01.2019 19:55, Dmitry Osipenko пишет: > config I2C_TEGRA > tristate "NVIDIA Tegra internal I2C controller" > depends on ARCH_TEGRA > select TEGRA20_APB_DMA if (I2C_TEGRA_DMA_SUPPORT && ARCH_TEGRA_2x_SOC) > select TEGRA20_APB_DMA if (I2C_TEGRA_DMA_SUPPORT &&

[PATCH v3 2/2] arm: dts: gta04: add gps support

2019-01-31 Thread Andreas Kemnade
The GTA04 has a w2sg0004 or w2sg0084 gps chip. Not detectable which one is mounted so use the compatibility entry for w2sg0004 for all which will work for both. Signed-off-by: Andreas Kemnade --- Changes in v3: - converted to a patchset - added vcc-supply Changes in v2: - some s/gps/gnss/ - not

Re: [PATCHv6 6/6] coresight: debug: Add Unique Component Identifier (UCI) table

2019-01-31 Thread Suzuki K Poulose
On 31/01/2019 14:22, Sai Prakash Ranjan wrote: Add UCI table for coresight CPU debug module. This patch adds the UCI entries for Kryo CPUs found on MSM8996 which shares the same PIDs as ETMs. Without this, below error is observed on MSM8996: nit: Subject doesn't match the patch contents.

Re: [PATCH v2 1/2] hwmon (occ): Fix license headers

2019-01-31 Thread Guenter Roeck
On Mon, Jan 28, 2019 at 10:23:23AM -0600, Eddie James wrote: > Files have inconsistent license information. > > Signed-off-by: Eddie James Applied. Thanks, Guenter > --- > drivers/hwmon/occ/common.c | 3 ++- > drivers/hwmon/occ/common.h | 3 ++- > drivers/hwmon/occ/p8_i2c.c | 3 ++- >

Re: [PATCH v4 01/12] Documentation: Document arm64 kpti control

2019-01-31 Thread Andre Przywara
On Fri, 25 Jan 2019 12:07:00 -0600 Jeremy Linton wrote: > For a while Arm64 has been capable of force enabling > or disabling the kpti mitigations. Lets make sure the > documentation reflects that. > > Signed-off-by: Jeremy Linton > Cc: Jonathan Corbet > Cc: linux-...@vger.kernel.org

Re: [PATCH 2/2] hwmon: pwm-fan: Add optional regulator support

2019-01-31 Thread Guenter Roeck
On Tue, Jan 29, 2019 at 06:07:11PM +0100, Stefan Wahren wrote: > This adds optional regulator support to the pwm-fan driver. This is > necessary for pwm fans which are powered by a switchable supply. > > Signed-off-by: Stefan Wahren > --- > drivers/hwmon/pwm-fan.c | 35

Re: [PATCH v4 12/12] arm64: enable generic CPU vulnerabilites support

2019-01-31 Thread Andre Przywara
On Fri, 25 Jan 2019 12:07:11 -0600 Jeremy Linton wrote: > From: Mian Yousaf Kaukab > > Enable CPU vulnerabilty show functions for spectre_v1, spectre_v2, > meltdown and store-bypass. > > Signed-off-by: Mian Yousaf Kaukab > Signed-off-by: Jeremy Linton Reviewed-by: Andre Przywara Cheers,

Re: [PATCH v4 11/12] arm64: add sysfs vulnerability show for speculative store bypass

2019-01-31 Thread Andre Przywara
On Fri, 25 Jan 2019 12:07:10 -0600 Jeremy Linton wrote: Hi, > Return status based on ssbd_state and the arm64 SSBS feature. If > the mitigation is disabled, or the firmware isn't responding then > return the expected machine state based on a new blacklist of known > vulnerable cores. > >

Re: [PATCH v4 10/12] arm64: add sysfs vulnerability show for spectre v2

2019-01-31 Thread Andre Przywara
On Fri, 25 Jan 2019 12:07:09 -0600 Jeremy Linton wrote: Hi, > Add code to track whether all the cores in the machine are > vulnerable, and whether all the vulnerable cores have been > mitigated. > > Once we have that information we can add the sysfs stub and > provide an accurate view of what

Re: [PATCH v4 09/12] arm64: Use firmware to detect CPUs that are not affected by Spectre-v2

2019-01-31 Thread Andre Przywara
On Fri, 25 Jan 2019 12:07:08 -0600 Jeremy Linton wrote: > From: Marc Zyngier > > The SMCCC ARCH_WORKAROUND_1 service can indicate that although the > firmware knows about the Spectre-v2 mitigation, this particular > CPU is not vulnerable, and it is thus not necessary to call > the firmware on

Re: [PATCH 2/3] mm/filemap: initiate readahead even if IOCB_NOWAIT is set for the I/O

2019-01-31 Thread Linus Torvalds
On Thu, Jan 31, 2019 at 2:23 AM Michal Hocko wrote: > > OK, I guess my question was not precise. What does prevent taking fs > locks down the path? IOCB_NOWAIT has never meant that, and will never mean it. We will never give user space those kinds of guarantees. We do locking for various

Re: [PATCH v4 08/12] arm64: Advertise mitigation of Spectre-v2, or lack thereof

2019-01-31 Thread Andre Przywara
On Fri, 25 Jan 2019 12:07:07 -0600 Jeremy Linton wrote: > From: Marc Zyngier > > We currently have a list of CPUs affected by Spectre-v2, for which > we check that the firmware implements ARCH_WORKAROUND_1. It turns > out that not all firmwares do implement the required mitigation, > and that

Re: [PATCH v4 3/5] misc: fastrpc: Add support for context Invoke method

2019-01-31 Thread Srinivas Kandagatla
Thanks for the review, I will fix them and send new version! On 31/01/2019 15:34, Greg KH wrote: On Thu, Jan 24, 2019 at 03:24:10PM +, Srinivas Kandagatla wrote: This patch adds support to compute context invoke method on the remote processor (DSP). This involves setting up the functions

Re: [PATCH v4 07/12] arm64: add sysfs vulnerability show for meltdown

2019-01-31 Thread Andre Przywara
On Fri, 25 Jan 2019 12:07:06 -0600 Jeremy Linton wrote: Hi, > Display the mitigation status if active, otherwise > assume the cpu is safe unless it doesn't have CSV3 > and isn't in our whitelist. > > Signed-off-by: Jeremy Linton > --- > arch/arm64/kernel/cpufeature.c | 33

Re: [PATCH v4 06/12] arm64: add sysfs vulnerability show for spectre v1

2019-01-31 Thread Andre Przywara
On Fri, 25 Jan 2019 12:07:05 -0600 Jeremy Linton wrote: Hi, > From: Mian Yousaf Kaukab > > spectre v1, has been mitigated, and the mitigation is > always active. > > Signed-off-by: Mian Yousaf Kaukab > Signed-off-by: Jeremy Linton > --- > arch/arm64/kernel/cpu_errata.c | 10 ++ >

Re: Question on handling managed IRQs when hotplugging CPUs

2019-01-31 Thread John Garry
On 30/01/2019 12:43, Thomas Gleixner wrote: On Wed, 30 Jan 2019, John Garry wrote: On 29/01/2019 17:20, Keith Busch wrote: On Tue, Jan 29, 2019 at 05:12:40PM +, John Garry wrote: On 29/01/2019 15:44, Keith Busch wrote: Hm, we used to freeze the queues with CPUHP_BLK_MQ_PREPARE callback,

Re: [PATCH v7 15/15] KVM: s390: fix possible null pointer dereference in pending_irqs()

2019-01-31 Thread Cornelia Huck
On Thu, 31 Jan 2019 09:52:46 +0100 Michael Mueller wrote: > Assure a GISA is in use before accessing the IPM to avoid a > null pointer dereference issue. This series can hopefully make it into the next merge window; otherwise, queuing a patch fixing up the original code would be good. > >

Re: [PATCH] Drivers: hv: vmbus: Add mutex lock to channel show functions

2019-01-31 Thread Kimberly Brown
On Thu, Jan 31, 2019 at 04:45:35PM +, Michael Kelley wrote: > From: Sasha Levin Sent: Thursday, January 31, 2019 7:20 AM > > > > I've queued this one for hyper-fixes, thanks all! > > > > Actually, please hold off on queuing this one. In a conversation I had > yesterday with Kim, they had

Re: [PATCH 1/3] mm/mincore: make mincore() more conservative

2019-01-31 Thread Josh Snyder
On Thu, Jan 31, 2019 at 1:44 AM Michal Hocko wrote: > One thing is still not clear to me though. Is the new owner/writeable > check OK for the Netflix-like usecases? I mean does happycache have > appropriate access to the cache data? I have tried to re-read the > original thread but couldn't find

Re: [PATCH v5 17/20] memory: mtk-smi: Get rid of need_larbid

2019-01-31 Thread Evan Green
On Wed, Jan 30, 2019 at 7:22 PM Yong Wu wrote: > > On Wed, 2019-01-30 at 11:11 -0800, Evan Green wrote: > > On Mon, Dec 31, 2018 at 7:59 PM Yong Wu wrote: > > > > > > The "mediatek,larb-id" has already been parsed in MTK IOMMU driver. > > > It's no need to parse it again in SMI driver. Only

[RFC PATCH] powerpc/6xx: Don't set back MSR_RI before reenabling MMU

2019-01-31 Thread Christophe Leroy
By delaying the setting of MSR_RI, a 1% improvment is optained on null_syscall selftest on an mpc8321. Without this patch: root@vgoippro:~# ./null_syscall 1134.33 ns 378.11 cycles With this patch: root@vgoippro:~# ./null_syscall 1121.85 ns 373.95 cycles The drawback is that a

Send photos

2019-01-31 Thread Julie
Want to make white background for your images? We can add clipping path, or give retouching for your photos if needed. Let's start testing for your photos. Thanks, Julie Dormagen Bruchsal

Re: Getting weird TPM error after rebasing my tree to security/next-general

2019-01-31 Thread Linus Torvalds
On Thu, Jan 31, 2019 at 9:06 AM Jarkko Sakkinen wrote: > > Found something that *does* fix the issue. If I replace memcpy_*io() > calls with regular memcpy(), the driver works and all my tests pass. That's not surprising, since that's what we used to do. And it's horribly wrong because

Re: [PATCH] uprobes: convert uprobe.ref to refcount_t

2019-01-31 Thread Oleg Nesterov
On 01/31, Reshetova, Elena wrote: > > > [ Cc'ing Masami as he maintains uprobes (we need to add uprobes to > > > the MAINTAINERS file ] > > > > Thanks Steve, I think it is maintained mainly by Srikar and Oleg. > > Srikar, Oleg, could you update MAINTAINERS file to add UPROBES entry? > > And ack

[PATCH] pinctrl: qcom: qcs404: Drop unused UFS_RESET macro

2019-01-31 Thread Bjorn Andersson
The UFS_RESET macro serves no purpose on QCS404, remove it. Signed-off-by: Bjorn Andersson --- drivers/pinctrl/qcom/pinctrl-qcs404.c | 25 - 1 file changed, 25 deletions(-) diff --git a/drivers/pinctrl/qcom/pinctrl-qcs404.c b/drivers/pinctrl/qcom/pinctrl-qcs404.c index

RE: [PATCH V8 3/5] i2c: tegra: Add DMA Support

2019-01-31 Thread Sowjanya Komatineni
>>> >> BUG_ON line is not part of this change. It was already there in existing >> driver. >> Based on log, I see DMA transfer is done for 224 bytes followed by 1 >> successful PIO transfer and then on next PIO transfer it received packet >> xfer complete interrupt with incomplete transfer

Re: [PATCH 2/3] locking/qspinlock: Introduce CNA into the slow path of qspinlock

2019-01-31 Thread Waiman Long
On 01/30/2019 10:01 PM, Alex Kogan wrote: > In CNA, spinning threads are organized in two queues, a main queue for > threads running on the same socket as the current lock holder, and a > secondary queue for threads running on other sockets. For details, > see https://arxiv.org/abs/1810.05600. > >

Re: [PATCH v7 11/15] KVM: s390: add functions to (un)register GISC with GISA

2019-01-31 Thread Cornelia Huck
On Thu, 31 Jan 2019 09:52:42 +0100 Michael Mueller wrote: > Add the Interruption Alert Mask (IAM) to the architecture specific > kvm struct. This mask in the GISA is used to define for which ISC > a GIB alert will be issued. > > The functions kvm_s390_gisc_register() and

Re: [PATCH RFC 3/3] hwmon: pwm-fan: Add RPM support via external interrupt

2019-01-31 Thread Guenter Roeck
On Wed, Jan 30, 2019 at 04:07:07PM +0100, Stefan Wahren wrote: > This adds RPM support to the pwm-fan driver in order to use with > fancontrol/pwmconfig. This feature is intended for 2 pulse-per-revolution > fans which provides a tachometer output signal. > > Signed-off-by: Stefan Wahren > --- >

Re: [PATCH V8 3/5] i2c: tegra: Add DMA Support

2019-01-31 Thread Dmitry Osipenko
31.01.2019 20:25, Dmitry Osipenko пишет: > 31.01.2019 20:11, Dmitry Osipenko пишет: >> 31.01.2019 19:56, Sowjanya Komatineni пишет: >>> >> drivers/i2c/busses/Kconfig | 2 +- >> drivers/i2c/busses/i2c-tegra.c | 362 >> ++--- >> 2 files

Re: [PATCH v3] lib/test_rhashtable: Make test_insert_dup() allocate its hash table dynamically

2019-01-31 Thread David Miller
From: Herbert Xu Date: Thu, 31 Jan 2019 20:08:26 +0800 > On Wed, Jan 30, 2019 at 10:42:30AM -0800, Bart Van Assche wrote: >> The test_insert_dup() function from lib/test_rhashtable.c passes a >> pointer to a stack object to rhltable_init(). Allocate the hash table >> dynamically to avoid that

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

2019-01-31 Thread Srinivas Kandagatla
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 interesting to see how Intel handles this kind of usecase on there DSP.

[PATCH v6] cpufreq: qcom: Read voltage LUT and populate OPP

2019-01-31 Thread Taniya Das
Add support to read the voltage look up table and populate OPP for all corresponding CPUS for consumers like the energy model could use the frequency and voltage from the OPP tables. Also update the logic to not add duplicate OPPs. Tested-by: Matthias Kaehlcke Signed-off-by: Matthias Kaehlcke

Re: [PATCH v5] cpufreq: qcom: Read voltage LUT and populate OPP

2019-01-31 Thread Taniya Das
On 1/23/2019 11:50 PM, Matthias Kaehlcke wrote: Hi Taniya, On Wed, Jan 23, 2019 at 04:52:00PM +0530, Taniya Das wrote: Add support to read the voltage look up table and populate OPP for all corresponding CPUS for consumers like the energy model could use the frequency and voltage from the

[PATCH] pinctrl: qcom: qcs404: Correct SDC tile

2019-01-31 Thread Bjorn Andersson
The SDC controls live in the south tile, not the north one. Correct this so that we program the right registers. Cc: sta...@vger.kernel.org Fixes: 22eb8301dbc1 ("pinctrl: qcom: Add qcs404 pinctrl driver") Signed-off-by: Bjorn Andersson --- drivers/pinctrl/qcom/pinctrl-qcs404.c | 2 +- 1 file

Re: [PATCH] PCI: dra7xx: Invoke phy_set_mode API to set PHY mode to PHY_MODE_PCIE

2019-01-31 Thread Lorenzo Pieralisi
On Thu, Jan 24, 2019 at 04:15:37PM +0530, Kishon Vijay Abraham I wrote: > Certain PHYs used with PCIe controller can also be used with other > controllers such as USB or SATA. In order to configure the PHY > to work with PCIe controller, invoke phy_set_mode API with mode > set to PHY_MODE_PCIE. >

Re: [PATCH v3 0/3] PCI: dra7xx: Support PCIe x2 lane mode

2019-01-31 Thread Lorenzo Pieralisi
On Thu, Jan 24, 2019 at 01:59:54PM +0530, Kishon Vijay Abraham I wrote: > Previous version of the patch series can be found here [1] > > Patch series adds support to enable x2 lane mode in dra74/dra76 and > dra72 based boards in pci-dra7xx driver. It introduces new compatible > strings in order

Re: [PATCH] mtd: rawnand: denali_dt: remove single anonymous clock support

2019-01-31 Thread Boris Brezillon
Hi Dinh, On Thu, 31 Jan 2019 11:24:16 -0600 Dinh Nguyen wrote: > On 1/28/19 4:20 AM, Miquel Raynal wrote: > > Hi Dinh, > > > > Masahiro Yamada wrote on Wed, 16 Jan > > 2019 10:27:11 +0900: > > > >> (+CC Dinh Nguyen) > >> > >> On Tue, Jan 15, 2019 at 5:22 PM Miquel Raynal > >> wrote: >

Re: [PATCH V8 3/5] i2c: tegra: Add DMA Support

2019-01-31 Thread Dmitry Osipenko
31.01.2019 20:11, Dmitry Osipenko пишет: > 31.01.2019 19:56, Sowjanya Komatineni пишет: >> > drivers/i2c/busses/Kconfig | 2 +- > drivers/i2c/busses/i2c-tegra.c | 362 > ++--- > 2 files changed, 339 insertions(+), 25 deletions(-)

Re: [PATCH -next] mISDN: hfcsusb: Fix potential NULL pointer dereference

2019-01-31 Thread David Miller
From: YueHaibing Date: Thu, 31 Jan 2019 17:41:46 +0800 > On 2019/1/31 2:10, David Miller wrote: >> From: YueHaibing >> Date: Wed, 30 Jan 2019 18:19:02 +0800 >> >>> There is a potential NULL pointer dereference in case >>> kzalloc() fails and returns NULL. >>> >>> Fixes: 69f52adb2d53 ("mISDN:

Re: [PATCH] mtd: rawnand: denali_dt: remove single anonymous clock support

2019-01-31 Thread Dinh Nguyen
On 1/28/19 4:20 AM, Miquel Raynal wrote: > Hi Dinh, > > Masahiro Yamada wrote on Wed, 16 Jan > 2019 10:27:11 +0900: > >> (+CC Dinh Nguyen) >> >> On Tue, Jan 15, 2019 at 5:22 PM Miquel Raynal >> wrote: >>> >>> Hi Masahiro, >>> >>> Masahiro Yamada wrote on Tue, 15 Jan >>> 2019 17:11:34

[PATCH] usb: xhci: pci: Enable Intel USB role mux on GLK platforms

2019-01-31 Thread Harry Pan
Like Apollo Lake, Gemini Lake support DRD in port 0, this patch enables the DRD support for GLK based on the EDS rev 2.2 vol #1 of section 3.8 of USB Controller. Signed-off-by: Harry Pan --- drivers/usb/host/xhci-pci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

Re: [PATCH RFC 1/3] dt-bindings: hwmon: Add tachometer interrupt to pwm-fan

2019-01-31 Thread Guenter Roeck
On Thu, Jan 31, 2019 at 09:02:33AM +0100, Stefan Wahren wrote: > Hi Guenter, > > Am 30.01.19 um 21:35 schrieb Guenter Roeck: > > On Wed, Jan 30, 2019 at 09:23:31PM +0100, Stefan Wahren wrote: > >> Hi Guenter, > >> > >>> Guenter Roeck hat am 30. Januar 2019 um 18:28 > >>> geschrieben: > >>> >

Re: [PATCH v4 00/10] steal tasks to improve CPU utilization

2019-01-31 Thread Dhaval Giani
> > On 12/6/2018 4:28 PM, Steve Sistare wrote: >> When a CPU has no more CFS tasks to run, and idle_balance() fails to >> find a task, then attempt to steal a task from an overloaded CPU in the >> same LLC. Maintain and use a bitmap of overloaded CPUs to efficiently >> identify candidates. To

RE: [PATCH v2] platform/mellanox: Add bootctl driver for Mellanox BlueField Soc

2019-01-31 Thread Liming Sun
Please see my response inline. Will provide v3 once I solve the comments. Thanks, Liming > -Original Message- > From: Andy Shevchenko > Sent: Thursday, January 31, 2019 12:02 PM > To: Liming Sun > Cc: Andy Shevchenko ; Darren Hart ; > Vadim Pasternak ; David > Woods ; Platform Driver

Re: [PATCH] powerpc/powernv/npu: Remove redundant change_pte() hook

2019-01-31 Thread Andrea Arcangeli
On Thu, Jan 31, 2019 at 06:30:22PM +0800, Peter Xu wrote: > The change_pte() notifier was designed to use as a quick path to > update secondary MMU PTEs on write permission changes or PFN changes. > For KVM, it could reduce the vm-exits when vcpu faults on the pages > that was touched up by KSM.

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

2019-01-31 Thread Gustavo A. R. Silva
Hi Joe, On 1/31/19 11:11 AM, Joe Perches wrote: > On Wed, 2019-01-30 at 18:38 -0600, Gustavo A. R. Silva wrote: >> One of the more common cases of allocation size calculations is finding >> the size of a structure that has a zero-sized array at the end, along >> with memory for some number of

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

2019-01-31 Thread Joe Perches
On Wed, 2019-01-30 at 18:38 -0600, Gustavo A. R. Silva wrote: > One of the more common cases of allocation size calculations is finding > the size of a structure that has a zero-sized array at the end, along > with memory for some number of elements for that array. For example: > > struct foo { >

[PATCH v2 0/2] PCI: Fix runtime PME generation from D3hot

2019-01-31 Thread Mika Westerberg
Hi all, Heiner reported [1] that runtime PME generation of his network card does not work after commit 0e157e528604 ("PCI/PME: Implement runtime PM callbacks") that landed in v4.20. Reverting the commit helps but it has another drawback, which I originally tried to solve with the commit, that the

[PATCH] mlx4_ib: Increase the timeout for CM cache

2019-01-31 Thread Håkon Bugge
Using CX-3 virtual functions, either from a bare-metal machine or pass-through from a VM, MAD packets are proxied through the PF driver. Since the VMs have separate name spaces for MAD Transaction Ids (TIDs), the PF driver has to re-map the TIDs and keep the book keeping in a cache. Following

[PATCH v2 2/2] PCI: pciehp: Disable Data Link Layer State Changed event on suspend

2019-01-31 Thread Mika Westerberg
Commit 0e157e528604 ("PCI/PME: Implement runtime PM callbacks") tried to solve an issue where the hierarchy immediately wakes up when it is transitioned into D3cold. However, it turns out to prevent PME propagation on some systems that do not support D3cold. I looked more closely what might cause

Re: [PATCH V8 3/5] i2c: tegra: Add DMA Support

2019-01-31 Thread Dmitry Osipenko
31.01.2019 19:56, Sowjanya Komatineni пишет: > drivers/i2c/busses/Kconfig | 2 +- drivers/i2c/busses/i2c-tegra.c | 362 ++--- 2 files changed, 339 insertions(+), 25 deletions(-) >>> >>> Tegra20 crashes because of this patch: >>> >>

Re: [PATCH v5 02/10] arm64: dts: qcom: sdm845: Define rmtfs memory

2019-01-31 Thread Sibi Sankar
On 2019-01-31 06:09, Bjorn Andersson wrote: Define the rmtfs memory node. As the memory region specified in version 10 of the memory map is only 1MB a chunk of unallocated memory is chosen. Signed-off-by: Bjorn Andersson --- Changes since v4: - Moved rmtfs_mem, to not collide with xbl_mem

[PATCH v2 1/2] Revert "PCI/PME: Implement runtime PM callbacks"

2019-01-31 Thread Mika Westerberg
This reverts commit 0e157e52860441cb26051f131dd0b5ae3187a07b. Heiner reported that the commit in question prevents his network adapter from triggering PME and waking up when network cable is plugged. The commit tried to prevent root port waking up from D3cold immediately but looks like disabing

Re: Getting weird TPM error after rebasing my tree to security/next-general

2019-01-31 Thread Jarkko Sakkinen
On Thu, Jan 31, 2019 at 06:04:37PM +0200, Jarkko Sakkinen wrote: > On Thu, Jan 31, 2019 at 02:26:06PM +0200, Jarkko Sakkinen wrote: > > On Tue, Jan 29, 2019 at 03:20:16PM +0200, Jarkko Sakkinen wrote: > > > On Thu, Jan 24, 2019 at 07:43:30AM +1300, Linus Torvalds wrote: > > > > On Thu, Jan 24,

Re: WARN_ON_ONCE(!new_owner) within wake_futex_pi() triggerede

2019-01-31 Thread Sebastian Sewior
On 2019-01-31 17:52:28 [+0100], Heiko Carstens wrote: > ...nevertheless Stefan and I looked through the lovely disassembly of > _pthread_mutex_lock_full() to verify if the compiler barriers are > actually doing what they are supposed to do. The generated code > however does look correct. > So, it

Re: [PATCH v2] platform/mellanox: Add bootctl driver for Mellanox BlueField Soc

2019-01-31 Thread Andy Shevchenko
On Thu, Jan 31, 2019 at 6:53 PM Liming Sun wrote: > > This commit adds the bootctl platform driver for Mellanox BlueField > Soc, which controls the eMMC boot partition swapping and sends SMC > calls to ATF running at exception level EL3 to program some system > register. This register is only

Re: [PATCH] checkpatch: Properly detect /* */ style SPDX header.

2019-01-31 Thread Joe Perches
On Thu, 2019-01-31 at 17:56 +0800, Pi-Hsun Shih wrote: > Currently for a header line "/* SPDX-License-Identifier: GPL-2.0 */", > only the part starting from "SPDX-" is passed to spdxcheck.py, and cause > false warning. Fix this by passing the whole line to spdxcheck.py > instead. Thanks but I

RE: [PATCH v1 1/1] platform/mellanox: Add bootctl driver for Mellanox BlueField Soc

2019-01-31 Thread Liming Sun
Thanks! v2 has been posted trying to solve all the comments. Please also see response inline. Regards, Liming > -Original Message- > From: Andy Shevchenko > Sent: Wednesday, January 30, 2019 4:17 PM > To: Liming Sun > Cc: Andy Shevchenko ; Darren Hart ; > Vadim Pasternak ; David >

Re: [PATCH V7 3/5] i2c: tegra: Add DMA Support

2019-01-31 Thread Dmitry Osipenko
31.01.2019 18:02, Dmitry Osipenko пишет: > 31.01.2019 17:43, Thierry Reding пишет: >> On Thu, Jan 31, 2019 at 05:06:18PM +0300, Dmitry Osipenko wrote: >>> 31.01.2019 15:06, Thierry Reding пишет: On Thu, Jan 31, 2019 at 03:05:48AM +0300, Dmitry Osipenko wrote: > 30.01.2019 19:01, Sowjanya

Re: [PATCH v5 01/10] arm64: dts: qcom: sdm845: Update reserved memory map

2019-01-31 Thread Sibi Sankar
Hey Bjorn, On 2019-01-31 06:09, Bjorn Andersson wrote: Update existing and add missing regions to the reserved memory map, as described in version 10. Signed-off-by: Bjorn Andersson --- Changes since v4: - Labeled aop_mem, aop_cmd_db_mem and made tz_mem span the last TZ related segment

Re: [PATCH for-5.0] ath10k: correct bus type for WCN3990

2019-01-31 Thread Kalle Valo
Brian Norris wrote: > WCN3990 is SNOC, not PCI. This prevents probing WCN3990. > > Fixes: 367c899f622c ("ath10k: add bus type check in ath10k_init_hw_params") > Signed-off-by: Brian Norris > Reviewed-by: Bjorn Andersson Patch applied to wireless-drivers.git, thanks. 2c2008a63e48 ath10k:

RE: [PATCH V8 3/5] i2c: tegra: Add DMA Support

2019-01-31 Thread Sowjanya Komatineni
> >> drivers/i2c/busses/Kconfig | 2 +- > >> drivers/i2c/busses/i2c-tegra.c | 362 > >> ++--- > >> 2 files changed, 339 insertions(+), 25 deletions(-) > > > > Tegra20 crashes because of this patch: > > > [snip] > > <4>[3.395915] [ cut

Re: [PATCH v2 01/10] spi: atmel-quadspi: cache MR value to avoid a write access

2019-01-31 Thread Boris Brezillon
On Thu, 31 Jan 2019 16:15:28 + wrote: > From: Tudor Ambarus > > Cache MR value to avoid write access when setting the controller > in Serial Memory Mode (SMM). SMM is set in exec_op() and not at > probe time, to let room for future regular SPI support. > > Signed-off-by: Tudor Ambarus >

[PATCH] mfd: madera: Fix bad reference to pinctrl.txt file

2019-01-31 Thread Charles Keepax
From: Otto Sabart The pinctrl.txt file was converted into reStructuredText and moved into driver-api folder. This patch updates the broken reference. Fixes: 5a9b73832e9e ("pinctrl.txt: move it to the driver-api book") Signed-off-by: Otto Sabart Signed-off-by: Charles Keepax ---

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

2019-01-31 Thread Mathieu Desnoyers
- On Jan 31, 2019, at 11:37 AM, Mathieu Desnoyers mathieu.desnoy...@efficios.com wrote: > - On Jan 30, 2019, at 4:10 PM, Joseph Myers jos...@codesourcery.com wrote: > >> On Wed, 30 Jan 2019, Mathieu Desnoyers wrote: >> >>> #if defined (__NR_rseq) && !defined (RSEQ_SIG) >>> # error

[PATCH v2] platform/mellanox: Add bootctl driver for Mellanox BlueField Soc

2019-01-31 Thread Liming Sun
This commit adds the bootctl platform driver for Mellanox BlueField Soc, which controls the eMMC boot partition swapping and sends SMC calls to ATF running at exception level EL3 to program some system register. This register is only accessible in secure code and is used to enable the watchdog

Re: WARN_ON_ONCE(!new_owner) within wake_futex_pi() triggerede

2019-01-31 Thread Heiko Carstens
On Thu, Jan 31, 2019 at 01:27:25AM +0100, Thomas Gleixner wrote: > On Thu, 31 Jan 2019, Thomas Gleixner wrote: > > > On Wed, 30 Jan 2019, Paul E. McKenney wrote: > > > On Thu, Jan 31, 2019 at 12:13:51AM +0100, Thomas Gleixner wrote: > > > > I might be wrong as usual, but this would definitely

[PATCH ghak107 V1] audit: remove unused actx param from audit_rule_match

2019-01-31 Thread Richard Guy Briggs
The audit_rule_match() struct audit_context *actx parameter is not used by any in-tree consumers (selinux, apparmour, integrity, smack). The audit context is an internal audit structure that should only be accessed by audit accessor functions. It was part of commit 03d37d25e0f9 ("LSM/Audit:

Re: [PATCH] mm: Do not allocate duplicate stack variables in shrink_page_list()

2019-01-31 Thread Daniel Jordan
On Thu, Jan 31, 2019 at 06:37:02PM +0300, Kirill Tkhai wrote: > On path shrink_inactive_list() ---> shrink_page_list() > we allocate stack variables for the statistics twice. > This is completely useless, and this just consumes stack > much more, then we really need. > > The patch kills duplicate

Re: [PATCH v2] arm: dts: gta04: add gps support

2019-01-31 Thread Andreas Kemnade
On Wed, 30 Jan 2019 10:04:34 +0100 Johan Hovold wrote: > On Tue, Jan 29, 2019 at 08:38:43AM +0100, Andreas Kemnade wrote: > > The GTA04 has a w2sg0004 or w2sg0084 gps chip. Not detectable > > which one is mounted so use the compatibility entry for w2sg0004 > > for all which will work for both. >

RE: [PATCH] Drivers: hv: vmbus: Add mutex lock to channel show functions

2019-01-31 Thread Michael Kelley
From: Sasha Levin Sent: Thursday, January 31, 2019 7:20 AM > > I've queued this one for hyper-fixes, thanks all! > Actually, please hold off on queuing this one. In a conversation I had yesterday with Kim, they had identified a deadlock. Kim was going to be looking at some revisions to

RE: [PATCH V8 3/5] i2c: tegra: Add DMA Support

2019-01-31 Thread Sowjanya Komatineni
> > +static int tegra_i2c_init_dma_param(struct tegra_i2c_dev *i2c_dev) { > > + struct dma_chan *dma_chan; > > + u32 *dma_buf; > > + dma_addr_t dma_phys; > > + > > + if (!i2c_dev->has_dma) > > + return -EINVAL; > > + > > + if (!i2c_dev->rx_dma_chan) { > > + dma_chan =

Re: [PATCH] include/linux/module.h: mark init/cleanup_module aliases as __cold

2019-01-31 Thread Miguel Ojeda
Hi Jessica, On Thu, Jan 31, 2019 at 3:22 PM Jessica Yu wrote: > > Hi Miguel, sorry for the delay! No worries! :) > The module init functions are only called once from do_init_module(). > Does the __cold attribute just assume it is unlikely to be executed, > or just that it is infrequently

Re: [PATCH 0/8] drm/meson: Add support for HDMI2.0 4k60

2019-01-31 Thread Laurent Pinchart
Hi Neil, On Thu, Jan 31, 2019 at 02:25:30PM +0100, Neil Armstrong wrote: > On 15/01/2019 13:33, Neil Armstrong wrote: > > This patchset aims to add support for the following HDMI2.0 4k60 modes: > > - 594Mhz TMDS frequency needing TMDS Scramling and 1/40 rate for > > RGB/YUV4:4:4 > > - 297MHz

Re: [PATCH v3 2/3] dt-bindings: crypto: document Exynos5433 SlimSSS

2019-01-31 Thread Kamil Konieczny
Hi, On 30.01.2019 17:51, Rob Herring wrote: > On Thu, Jan 24, 2019 at 04:45:20PM +0100, Kamil Konieczny wrote: >> Document DT bindings for crypto Samsung Exynos5433 SlimSSS (Slim Security >> SubSystem) IP. >> >> Reviewed-by: Krzysztof Kozlowski >> Signed-off-by: Kamil Konieczny >> --- >>

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