[PATCH 15/22] x86/entry: Add TIF_NEED_FPU_LOAD

2019-02-21 Thread Sebastian Andrzej Siewior
Add TIF_NEED_FPU_LOAD. This is reserved for loading the FPU registers before returning to userland. This flag must not be set for systems without a FPU. If this flag is cleared, the CPU's FPU register hold the current content of current()'s FPU register. The in-memory copy (union fpregs_state) is n

[PATCH 3/6] staging: rtl8188eu: remove blank line between declarations

2019-02-21 Thread Michael Straube
Remove unnecessary blank line between declarations. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c b/drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c index 8d96227b85f6..

[PATCH 16/22] x86/fpu: Always store the registers in copy_fpstate_to_sigframe()

2019-02-21 Thread Sebastian Andrzej Siewior
From: Rik van Riel copy_fpstate_to_sigframe() stores the registers directly to user space. This is okay because the FPU register are valid and saving it directly avoids saving it into kernel memory and making a copy. However… We can't keep doing this if we are going to restore the FPU registers o

[PATCH 2/6] staging: rtl8188eu: cleanup declarations in rtl8188e_cmd.c

2019-02-21 Thread Michael Straube
Replace tabs with spaces in declarations to cleanup whitespace. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c b/drivers/stagi

Re: [tip:x86/cpu] x86/CPU/AMD: Set the CPB bit unconditionally on F17h

2019-02-21 Thread Greg KH
On Wed, Feb 20, 2019 at 09:53:34AM +0100, Borislav Petkov wrote: > On Fri, Jan 18, 2019 at 07:48:59AM -0800, tip-bot for Jiaxun Yang wrote: > > Commit-ID: 0237199186e7a4aa5310741f0a6498a20c820fd7 > > Gitweb: > > https://git.kernel.org/tip/0237199186e7a4aa5310741f0a6498a20c820fd7 > > Author:

[PATCH 5/6] staging: rtl8188eu: add spaces around '*' in rtl8188e_cmd.c

2019-02-21 Thread Michael Straube
Add spaces around '*' to follow kernel coding style. Reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c b/drivers/staging

[PATCH 13/22] x86/pkeys: Don't check if PKRU is zero before writting it

2019-02-21 Thread Sebastian Andrzej Siewior
write_pkru() checks if the current value is the same as the expected value. So instead just checking if the current and new value is zero (and skip the write in such a case) we can benefit from that. Remove the zero check of PKRU, write_pkru() provides a similar check. Signed-off-by: Sebastian An

[PATCH 6/6] staging: rtl8188eu: cleanup comparsions to NULL in rtl8188eu_xmit.c

2019-02-21 Thread Michael Straube
Use !x instead of x == NULL. Reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c b/drivers/staging/rtl8188eu/hal/rtl8188eu

[PATCH 1/6] staging: rtl8188eu: remove unnecessary parentheses in rtl8188e_cmd.c

2019-02-21 Thread Michael Straube
Remove unnecessary parentheses reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c | 42 ++-- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c b/drivers/staging/rtl818

[PATCH 21/22] x86/fpu: Merge the two code paths in __fpu__restore_sig()

2019-02-21 Thread Sebastian Andrzej Siewior
The ia32_fxstate case (32bit with fxsr) and the other (64bit, 32bit without fxsr) restore both from kernel memory and sanitize the content. The !ia32_fxstate version restores missing xstates from "init state" while the ia32_fxstate doesn't and skips it. Merge the two code paths and keep the !ia32_

[PATCH 4/6] staging: rtl8188eu: remove unused function declarations

2019-02-21 Thread Michael Straube
There are no definitions of odm_DIGbyRSSI_LPS(), ODM_PhyStatusQuery() and ODM_MacStatusQuery() in the driver code. So remove the unused declarations from the headers odm.h and odm_hwconfig.h. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/include/odm.h | 1 - drivers/stagi

Re: [PATCH] drm/bochs: Fix the ID mismatch error

2019-02-21 Thread kra...@redhat.com
On Thu, Feb 21, 2019 at 12:33:03AM +, Alistair Francis wrote: > When running RISC-V QEMU with the Bochs device attached via PCIe the > probe of the Bochs device fails with: > [drm:bochs_hw_init] *ERROR* ID mismatch > > This was introduced by this commit: > 7780eb9ce8 bochs: convert to

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

2019-02-21 Thread Sebastian Andrzej Siewior
user_fpu_begin() sets fpu_fpregs_owner_ctx to task's fpu struct. This is always the case since there is no lazy FPU anymore. fpu_fpregs_owner_ctx is used during context switch to decide if it needs to load the saved registers or if the currently loaded registers are valid. It could be skipped duri

[PATCH 12/22] x86/fpu: Only write PKRU if it is different from current

2019-02-21 Thread Sebastian Andrzej Siewior
Dave Hansen says that the `wrpkru' is more expensive than `rdpkru'. It has a higher cycle cost and it's also practically a (light) speculation barrier. As an optimisation read the current PKRU value and only write the new one if it is different. Signed-off-by: Sebastian Andrzej Siewior --- arch

[PATCH 10/22] x86/fpu: Make __raw_xsave_addr() use feature number instead of mask

2019-02-21 Thread Sebastian Andrzej Siewior
Most users of __raw_xsave_addr() use a feature number, shift it to a mask and then __raw_xsave_addr() shifts it back to the feature number. Make __raw_xsave_addr() use the feature number as an argument. Signed-off-by: Sebastian Andrzej Siewior Reviewed-by: Borislav Petkov --- arch/x86/kernel/f

Re: [PATCH] intel_th: Mark expected switch fall-throughs

2019-02-21 Thread Alexander Shishkin
"Gustavo A. R. Silva" writes: > Hi all, > > Friendly ping: > > Who can take this? I'll take it. Thanks!

[PATCH 09/22] x86/fpu: Add (__)make_fpregs_active helpers

2019-02-21 Thread Sebastian Andrzej Siewior
From: Rik van Riel Add helper function that ensures the floating point registers for the current task are active. Use with preemption disabled. Signed-off-by: Rik van Riel Signed-off-by: Sebastian Andrzej Siewior --- arch/x86/include/asm/fpu/api.h | 11 +++ arch/x86/include/asm/f

Re: [PATCH v6 1/6] arm64/kvm: preserve host HCR_EL2 value

2019-02-21 Thread Mark Rutland
Hi, On Tue, Feb 19, 2019 at 02:54:26PM +0530, Amit Daniel Kachhap wrote: > From: Mark Rutland > > When restoring HCR_EL2 for the host, KVM uses HCR_HOST_VHE_FLAGS, which > is a constant value. This works today, as the host HCR_EL2 value is > always the same, but this will get in the way of suppo

[PATCH 06/22] x86/fpu: Don't save fxregs for ia32 frames in copy_fpstate_to_sigframe()

2019-02-21 Thread Sebastian Andrzej Siewior
In commit 72a671ced66db ("x86, fpu: Unify signal handling code paths for x86 and x86_64 kernels") the 32bit and 64bit path of the signal delivery code were merged. The 32bit version: |int save_i387_xstate_ia32(void __user *buf) |… | if (cpu_has_xsave) | return save_i387_xs

[PATCH 01/22] x86/fpu: Remove fpu->initialized usage in __fpu__restore_sig()

2019-02-21 Thread Sebastian Andrzej Siewior
This is a preparation for the removal of the ->initialized member in the fpu struct. __fpu__restore_sig() is deactivating the FPU via fpu__drop() and then setting manually ->initialized followed by fpu__restore(). The result is that it is possible to manipulate fpu->state and the state of registers

Re: [PATCH] printk: Pass caller information to log_store().

2019-02-21 Thread Petr Mladek
On Thu 2019-02-21 11:23:41, Sergey Senozhatsky wrote: > On (02/20/19 13:18), Petr Mladek wrote: > > > Signed-off-by: Tetsuo Handa > > > > The patch looks fine to me: > > > > Reviewed-by: Petr Mladek > > Reviewed-by: Sergey Senozhatsky The patch has been pushed into printk.git, branch for-4.2

[PATCH 02/22] x86/fpu: Remove fpu__restore()

2019-02-21 Thread Sebastian Andrzej Siewior
There are no users of fpu__restore() so it is time to remove it. The comment regarding fpu__restore() and TS bit is stale since commit b3b0870ef3ffe ("i387: do not preload FPU state at task switch time") and has no meaning since. Signed-off-by: Sebastian Andrzej Siewior --- Documentation/preem

[PATCH 04/22] x86/fpu: Always init the `state' in fpu__clear()

2019-02-21 Thread Sebastian Andrzej Siewior
fpu__clear() only initializes the `state' if the FPU is present. This initialisation is also required for the FPU-less system and takes place in math_emulate(). Since fpu__initialize() only performs the initialization if ->initialized is zero it does not matter that it is invoked each time an opcod

[PATCH v2] regulator: core: Log forbidden DRMS operation

2019-02-21 Thread Marc Gonzalez
When REGULATOR_CHANGE_DRMS is not set, drms_uA_update is a no-op. It used to print a debug message, which was dropped in commit 8a34e979f684 ("regulator: refactor valid_ops_mask checking code") Let's bring the debug message back, because it helps find missing regulator-allow-set-load properties.

Re: [Xen-devel] [PATCH RFC 00/39] x86/KVM: Xen HVM guest support

2019-02-21 Thread Joao Martins
On 2/20/19 11:39 PM, Marek Marczykowski-Górecki wrote: > On Wed, Feb 20, 2019 at 08:15:30PM +, Joao Martins wrote: >> 2. PV Driver support (patches 17 - 39) >> >> We start by redirecting hypercalls from the backend to routines >> which emulate the behaviour that PV backends expect i.e. grant

Re: [PATCH v6 2/6] arm64/kvm: preserve host MDCR_EL2 value

2019-02-21 Thread Mark Rutland
On Tue, Feb 19, 2019 at 02:54:27PM +0530, Amit Daniel Kachhap wrote: > Save host MDCR_EL2 value during kvm HYP initialisation and restore > after every switch from host to guest. There should not be any > change in functionality due to this. > > The value of mdcr_el2 is now stored in struct kvm_cp

Re: [PATCH v2 00/11] qcom: ssbi-gpio: add support for hierarchical IRQ chip

2019-02-21 Thread Linus Walleij
On Fri, Feb 8, 2019 at 3:16 AM Brian Masney wrote: > This patch series adds hierarchical IRQ chip support to ssbi-gpio so > that device tree consumers can request an IRQ directly from the GPIO > block rather than having to request an IRQ from the underlying PMIC. I have merged this series (+ ass

My name is Mrs. Coan Kanazawa from Mongolia

2019-02-21 Thread Coan Kanazawa
My name is Mrs. Coan Kanazawa from Mongolia, I know that this message might come to you as surprise because we don't know each other nor have we ever met before but accept it with an open and positive mind. I have a Very important request that made me to contact you; I was diagnosed with ovarian c

Re: [Xen-devel] [PATCH RFC 00/39] x86/KVM: Xen HVM guest support

2019-02-21 Thread Joao Martins
On 2/21/19 7:57 AM, Juergen Gross wrote: > On 21/02/2019 00:39, Marek Marczykowski-Górecki wrote: >> On Wed, Feb 20, 2019 at 08:15:30PM +, Joao Martins wrote: >>> 2. PV Driver support (patches 17 - 39) >>> >>> We start by redirecting hypercalls from the backend to routines >>> which emulate

Re: [PATCH 4/6] lib/string: Add string copy/zero function

2019-02-21 Thread Andy Shevchenko
On Thu, Feb 21, 2019 at 2:49 AM Kees Cook wrote: > On Mon, Feb 18, 2019 at 3:24 PM Tobin C. Harding wrote: > > > > We have a function to copy strings safely and we have a function to copy > > strings _and_ zero the tail of the destination (if source string is > > shorter than destination buffer)

Re: [PATCH -next] drm/qxl: remove set but not used variable 'bo_old'

2019-02-21 Thread Gerd Hoffmann
On Mon, Feb 18, 2019 at 08:54:59AM +, YueHaibing wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/gpu/drm/qxl/qxl_display.c: In function 'qxl_primary_atomic_update': > drivers/gpu/drm/qxl/qxl_display.c:538:17: warning: > variable 'bo_old' set but not used [-Wunused-but-set-

Re: [PATCH] sched/x86: Save [ER]FLAGS on context switch

2019-02-21 Thread Julien Thierry
On 20/02/2019 22:55, H. Peter Anvin wrote: > On 2/19/19 4:48 AM, Will Deacon wrote: >> >> I think you'll still hate this, but could we not disable preemption during >> the uaccess-enabled region, re-enabling it on the fault path after we've >> toggled uaccess off and disable it again when we ret

Re: [PATCH v3 2/3] dt-bindings: drm/msm/a6xx: Document interconnect properties for GPU

2019-02-21 Thread Georgi Djakov
Hi, On 12/20/18 19:30, Jordan Crouse wrote: > Add documentation for the interconnect and interconnect-names bindings > for the GPU node as detailed by bindings/interconnect/interconnect.txt. > > Signed-off-by: Jordan Crouse > --- > > Documentation/devicetree/bindings/display/msm/gpu.txt | 4 ++

Re: [PATCH v2 1/2] drivers: provide devm_platform_ioremap_resource()

2019-02-21 Thread Linus Walleij
On Thu, Feb 21, 2019 at 10:53 AM Bartosz Golaszewski wrote: > > > Should this go through the driver-core tree? > > > > No need, put it through the tree for patch 2/2. > > > > thanks, > > > > greg k-h > > Linus, > > can you take the two patches for v5.1? Yup both merged to the GPIO tree, thanks!

Re: [PATCH] gpio: of: Restrict enable-gpio quirk to regulator-gpio

2019-02-21 Thread Linus Walleij
On Wed, Feb 20, 2019 at 11:52 AM Thierry Reding wrote: > From: Thierry Reding > > Commit 0e7d6f940164 ("gpio: of: Apply regulator-gpio quirk only to > enable-gpios") breaks the device tree ABI specified in the device tree > bindings for fixed regulators (compatible "regulator-fixed"). According

Re: [PATCH v2 1/1] s390: vfio_ap: link the vfio_ap devices to the vfio_ap bus subsystem

2019-02-21 Thread Pierre Morel
On 20/02/2019 13:51, Halil Pasic wrote: On Wed, 20 Feb 2019 10:27:31 +0100 Cornelia Huck wrote: On Tue, 19 Feb 2019 22:31:17 +0100 Pierre Morel wrote: On 19/02/2019 19:52, Tony Krowiak wrote: On 2/18/19 1:08 PM, Pierre Morel wrote: Libudev relies on having a subsystem link for non-root de

Re: [PATCH] zcrypt: handle AP Info notification from CHSC SEI command

2019-02-21 Thread Cornelia Huck
On Thu, 21 Feb 2019 11:42:25 +0100 Harald Freudenberger wrote: > On 30.01.19 19:32, Sebastian Ott wrote: > > On Wed, 30 Jan 2019, Tony Krowiak wrote: > >> /* > >> +* A config change has happened, Force an ap bus rescan. > >> +*/ > >> +void ap_bus_cfg_chg(void) > >> +{ > >> + AP_DBF(DBF_INFO,

Re: [PATCH] pinctrl: qcom: spmi-gpio: Reorder debug print

2019-02-21 Thread Linus Walleij
On Tue, Feb 19, 2019 at 8:12 PM Bjorn Andersson wrote: > It's reasonable to expect that people turn to the "gpio" debugfs file to > first and foremost learn about the direction and value of a gpio, and > second to that about it's pinconf. So reorder the value so each line > reads: > > gpioN: dire

Re: [PATCH v2 -next] tpm: Fix the type of the return value in calc_tpm2_event_size()

2019-02-21 Thread Jarkko Sakkinen
On Wed, Feb 20, 2019 at 09:00:42AM -0700, Jason Gunthorpe wrote: > On Wed, Feb 20, 2019 at 08:31:59AM +0200, Jarkko Sakkinen wrote: > > On Wed, Feb 20, 2019 at 10:23:00AM +0800, YueHaibing wrote: > > > calc_tpm2_event_size() has an invalid signature because > > > it returns a 'size_t' where as its

Re: [PATCH v2 3/5] soc: qcom: socinfo: Expose custom attributes

2019-02-21 Thread Laurent Pinchart
Hi Vaishali, Thank you for the patch. On Wed, Feb 20, 2019 at 10:28:29AM +0530, Vaishali Thakkar wrote: > The Qualcomm socinfo provides a number of additional attributes, > add these to the socinfo driver and expose them via debugfs > functionality. What is the use case for these attributes ? I

[PATCH RESEND v3 1/3] drivers: qcom: rpmh-rsc: simplify TCS locking

2019-02-21 Thread Raju P.L.S.S.S.N
tcs->lock was introduced to serialize access with in TCS group. But even without tcs->lock, drv->lock is serving the same purpose. So use single drv->lock. Other optimizations include - - Remove locking around clear_bit() in IRQ handler. clear_bit() is atomic. - Remove redundant read of TCS r

[PATCH RESEND v3 2/3] drivers: qcom: rpmh-rsc: return if the controller is idle

2019-02-21 Thread Raju P.L.S.S.S.N
From: Lina Iyer Allow the controller status be queried. The controller is busy if it is actively processing request. Also allow the controller state be read by platform drivers. This is useful for PM drivers which can choose to disallow idle modes when the controller is busy. Signed-off-by: Lina

Re: [PATCH v3 2/2] gpio: sprd: Change to use SoC compatible string

2019-02-21 Thread Linus Walleij
On Tue, Feb 19, 2019 at 3:30 AM Baolin Wang wrote: > Change to use SoC compatible string instead of wildcard string. > > The Spreadtrum SC9860 platform device trees and drivers' development > are still in progress, and now we will always recompile and ship > device trees at the same time as we wi

Re: [PATCH v2 2/2] drm/qxl: kick out vgacon

2019-02-21 Thread Daniel Vetter
On Thu, Feb 21, 2019 at 12:35:34PM +0100, Gerd Hoffmann wrote: > Problem: qxl switches from native mode back into vga compatibility mode > when it notices someone is accessing vga registers. And vgacon does > exactly that before fbcon takes over. So make sure we kick out vgacon > early enough th

Re: [PATCH v3 1/2] dt-bindings: gpio: sprd: Use SoC compatible string instead of wildcard string

2019-02-21 Thread Linus Walleij
On Tue, Feb 19, 2019 at 3:30 AM Baolin Wang wrote: > Use SoC compatible string instead of wildcard string. > > Reviewed-by: Rob Herring > Signed-off-by: Baolin Wang Patch applied. Yours, Linus Walleij

[PATCH RESEND v3 0/3] add some more functionality to RPMH

2019-02-21 Thread Raju P.L.S.S.S.N
Resending the patches. Kindly review. Changes in v3: - Simplify TCS locking - added a new patch - Add lock check to avoid potential race as suggested by Matthias - Add functionality to RSC controller to disallow active requests if solver mode is not set - Removed independent patches and po

[PATCH RESEND v3 3/3] drivers: qcom: rpmh: disallow active requests in solver mode

2019-02-21 Thread Raju P.L.S.S.S.N
From: Lina Iyer Controllers may be in 'solver' state, where they could be in autonomous mode executing low power modes for their hardware and as such are not available for sending active votes. Device driver may notify RPMH API that the controller is in solver mode and when in such mode, disallow

[PATCH] perf hist: fix memory leak if histogram entry is reused

2019-02-21 Thread Jonas Rabenstein
In __hists__add_entry the srcline of the addr_location is duplicated for the hist_entry. If hists__findnew_entry returns an already existing hist_entry the srcline has to be freed again as no further reference to that duplicated srcline would exists anymore. Signed-off-by: Jonas Rabenstein --- t

Re: Firmware files for QCA BT chip wcn3990

2019-02-21 Thread Josh Boyer
On Wed, Feb 20, 2019 at 8:01 AM Balakrishna Godavarthi wrote: > > > Hi, > > The following changes since commit > 710963fe53ee3f227556d36839df3858daf6e232: > >Merge https://github.com/ajaykuee/linux-firmware (2019-02-13 07:42:20 > -0500) > > are available in the Git repository at: > >https:

Re: [tip:x86/cpu] x86/CPU/AMD: Set the CPB bit unconditionally on F17h

2019-02-21 Thread Borislav Petkov
On Thu, Feb 21, 2019 at 12:52:30PM +0100, Greg KH wrote: > I would, but I do not see this patch in Linus's tree yet :) You will soon :) -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.

Re: False positive "do_IRQ: #.55 No irq handler for vector" messages on AMD ryzen based laptops

2019-02-21 Thread Hans de Goede
Hi, On 19-02-19 22:01, Thomas Gleixner wrote: Hans, On Tue, 19 Feb 2019, Hans de Goede wrote: Cc+: ACPI/AMD folks Various people are reporting false positive "do_IRQ: #.55 No irq handler for vector" messages on AMD ryzen based laptops, see e.g.: https://bugzilla.redhat.com/show_bug.cgi?id=1

Re: [PATCH v6 3/6] arm64/kvm: context-switch ptrauth registers

2019-02-21 Thread Mark Rutland
On Tue, Feb 19, 2019 at 02:54:28PM +0530, Amit Daniel Kachhap wrote: > From: Mark Rutland > > When pointer authentication is supported, a guest may wish to use it. > This patch adds the necessary KVM infrastructure for this to work, with > a semi-lazy context switch of the pointer auth state. >

Re: False positive "do_IRQ: #.55 No irq handler for vector" messages on AMD ryzen based laptops

2019-02-21 Thread Hans de Goede
Hi, On 19-02-19 22:47, Lendacky, Thomas wrote: On 2/19/19 3:01 PM, Thomas Gleixner wrote: Hans, On Tue, 19 Feb 2019, Hans de Goede wrote: Cc+: ACPI/AMD folks Various people are reporting false positive "do_IRQ: #.55 No irq handler for vector" messages on AMD ryzen based laptops, see e.g.:

Re: [PATCH] kobject: Don't trigger kobject_uevent(KOBJ_REMOVE) twice.

2019-02-21 Thread Tetsuo Handa
On 2019/02/21 20:09, Greg Kroah-Hartman wrote: > On Thu, Feb 21, 2019 at 07:40:20PM +0900, Tetsuo Handa wrote: >> On 2019/02/21 4:52, Dmitry Torokhov wrote: >>> On Wed, Feb 20, 2019 at 7:07 AM Greg Kroah-Hartman >>> wrote: But I would argue that this is not ok, as the remove uevent did NOT ge

Re: [PATCH v6 4/6] arm64/kvm: add a userspace option to enable pointer authentication

2019-02-21 Thread Mark Rutland
On Tue, Feb 19, 2019 at 02:54:29PM +0530, Amit Daniel Kachhap wrote: > This feature will allow the KVM guest to allow the handling of > pointer authentication instructions or to treat them as undefined > if not set. It uses the existing vcpu API KVM_ARM_VCPU_INIT to > supply this parameter instead

Re: linux-next: build failure after merge of the xarray tree

2019-02-21 Thread Leon Romanovsky
On Thu, Feb 21, 2019 at 05:13:32PM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the xarray tree, today's linux-next build (powerpc > ppc64_defconfig) failed like this: > > In file included from include/linux/uio.h:12, > from include/linux/socket.h:8, >

Re: [PATCH v2 1/1] s390: vfio_ap: link the vfio_ap devices to the vfio_ap bus subsystem

2019-02-21 Thread Christian Borntraeger
On 21.02.2019 13:10, Pierre Morel wrote: > On 20/02/2019 13:51, Halil Pasic wrote: >> On Wed, 20 Feb 2019 10:27:31 +0100 >> Cornelia Huck wrote: >> >>> On Tue, 19 Feb 2019 22:31:17 +0100 >>> Pierre Morel wrote: >>> On 19/02/2019 19:52, Tony Krowiak wrote: > On 2/18/19 1:08 PM, Pierre

[PATCH][next] rsi: fix missing null pointer check from a failed ieee80211_probereq_get call

2019-02-21 Thread Colin King
From: Colin Ian King The call to ieee80211_probereq_get can return NULL if a skb allocation fails, so add a null pointer check and free an earlier skb on the error exit return path. Fixes: 7fdcb8e12660 ("rsi: add support for hardware scan offload") Signed-off-by: Colin Ian King --- drivers/net

[PATCH] f2fs: fix encrypted page memory leak

2019-02-21 Thread Chao Yu
For IPU path of f2fs_do_write_data_page(), in its error path, we need to release encrypted page and fscrypt context, otherwise it will cause memory leak. Signed-off-by: Chao Yu --- fs/f2fs/data.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/data.c b/fs/f2f

Re: [PATCH] dt-bindings: pinctrl: Document the i.MX50 IOMUXC binding

2019-02-21 Thread Linus Walleij
On Tue, Jan 29, 2019 at 5:55 PM Jonathan Neuschäfer wrote: > AFAICS from the i.MX50 Reference Manual, the i.MX50 IOMUXC works the > same as the one in i.MX51, so I copied fsl,imx51-pinctrl.txt and changed > the text to imx50. > > Signed-off-by: Jonathan Neuschäfer > Cc: Dong Aisheng > Cc: Shawn

Re: [PATCH] perf hist: fix memory leak if histogram entry is reused

2019-02-21 Thread Jiri Olsa
On Thu, Feb 21, 2019 at 01:23:06PM +0100, Jonas Rabenstein wrote: > In __hists__add_entry the srcline of the addr_location is duplicated > for the hist_entry. If hists__findnew_entry returns an already existing > hist_entry the srcline has to be freed again as no further reference to > that duplica

Re: [PATCH v3 2/9] s390: ap: kvm: setting a hook for PQAP instructions

2019-02-21 Thread Pierre Morel
On 19/02/2019 23:36, Tony Krowiak wrote: On 2/19/19 2:50 PM, Pierre Morel wrote: On 18/02/2019 23:42, Cornelia Huck wrote: On Mon, 18 Feb 2019 19:29:10 +0100 Pierre Morel wrote: On 15/02/2019 23:02, Tony Krowiak wrote: On 2/14/19 8:51 AM, Pierre Morel wrote: +/* + * handle_pqap: Handling

[PATCH v1 0/2] drivers: qcom: Fixes in RPMh driver

2019-02-21 Thread Raju P.L.S.S.S.N
Hi, This series consists of couple of fixes identified in RPMh driver. Please consider reviewing the patches. Maulik Shah (1): drivers: soc: qcom: rpmh-rsc: Correct check for slot number Raju P.L.S.S.S.N (1): drivers: qcom: rpmh: avoid sending sleep/wake sets immediately drivers/soc/qcom/

[PATCH] f2fs: fix to update iostat correctly in IPU path

2019-02-21 Thread Chao Yu
In error path of IPU, we didn't account iostat correctly, fix it. Signed-off-by: Chao Yu --- fs/f2fs/segment.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 3602acee4985..86a6fcbe8484 100644 --- a/fs/f2fs/segment.c +++ b/fs/

[PATCH v1 1/2] drivers: qcom: rpmh: avoid sending sleep/wake sets immediately

2019-02-21 Thread Raju P.L.S.S.S.N
Fix the redundant call being made to send the sleep and wake requests immediately to the controller. As per the patch[1], the sleep and wake request votes are cached in rpmh controller and sent during rpmh_flush(). These requests needs to be sent only during entry of deeper system low power modes

[PATCH v1 2/2] drivers: soc: qcom: rpmh-rsc: Correct check for slot number

2019-02-21 Thread Raju P.L.S.S.S.N
From: Maulik Shah The return index value from bitmap_find_next_zero_area can be higher than available slot. So correct the check to return error in such case. Signed-off-by: Maulik Shah Signed-off-by: Raju P.L.S.S.S.N --- drivers/soc/qcom/rpmh-rsc.c | 2 +- 1 file changed, 1 insertion(+), 1 d

Re: [PATCH] sched/x86: Save [ER]FLAGS on context switch

2019-02-21 Thread Will Deacon
On Wed, Feb 20, 2019 at 02:55:59PM -0800, H. Peter Anvin wrote: > On 2/19/19 4:48 AM, Will Deacon wrote: > > > > I think you'll still hate this, but could we not disable preemption during > > the uaccess-enabled region, re-enabling it on the fault path after we've > > toggled uaccess off and disab

Re: linux-next: build failure after merge of the xarray tree

2019-02-21 Thread Stephen Rothwell
Hi Jason, On Wed, 13 Feb 2019 22:09:36 + Jason Gunthorpe wrote: > > I personally think it is not good to put major logic changes in merge > commits, so I would prefer the #2 approach for this case. These are not difficult merge fixes or logic changes. > Also, the general philosophy that the

Re: linux-next: build failure after merge of the xarray tree

2019-02-21 Thread Stephen Rothwell
Hi Leon, On Thu, 21 Feb 2019 12:34:42 + Leon Romanovsky wrote: > > Matthew, really? change of API in -rc7? And it after you pushed us to > base our -next on -rc5 after another API change? What should we do now? The xarray API changes (to xa_alloc and __xa_alloc) have been in linux-next for a

[PATCH v2] drivers: mux: Add Generic regmap bitfield-based multiplexer in mmio-mux

2019-02-21 Thread Pankaj Bansal
Generic register bitfield-based multiplexer that controls the multiplexer producer defined under a parent node. The driver corresponding to parent node provides register read/write capabilities. Signed-off-by: Pankaj Bansal --- Notes: V2: - removed seperate driver regmap.c and added the

Re: [PATCH 4.19 01/24] bridge: do not add port to router list when receives query with source 0.0.0.0

2019-02-21 Thread Sebastian Gottschall
Am 20.02.2019 um 15:46 schrieb Hangbin Liu: Could you please include more details about the setup that's broken ? Note that we were warned[1] of potential breakage from this change Sorry I missed Linus's reply after Ying Xu replied. I will read it and disscuss with Ying Xu. after it went in

Re: [PATCH v3 7/9] s390: ap: implement PAPQ AQIC interception in kernel

2019-02-21 Thread Pierre Morel
On 20/02/2019 12:54, Halil Pasic wrote: On Thu, 14 Feb 2019 14:51:07 +0100 Pierre Morel wrote: We register the AP PQAP instruction hook during the open of the mediated device. And unregister it on release. In the AP PQAP instruction hook, if we receive a demand to enable IRQs, - we retrieve t

Re: [PATCH v2 1/1] s390: vfio_ap: link the vfio_ap devices to the vfio_ap bus subsystem

2019-02-21 Thread Pierre Morel
On 21/02/2019 13:35, Christian Borntraeger wrote: On 21.02.2019 13:10, Pierre Morel wrote: On 20/02/2019 13:51, Halil Pasic wrote: On Wed, 20 Feb 2019 10:27:31 +0100 Cornelia Huck wrote: On Tue, 19 Feb 2019 22:31:17 +0100 Pierre Morel wrote: On 19/02/2019 19:52, Tony Krowiak wrote: On

Re: [PATCH] zcrypt: handle AP Info notification from CHSC SEI command

2019-02-21 Thread Heiko Carstens
On Thu, Feb 21, 2019 at 01:12:40PM +0100, Cornelia Huck wrote: > On Thu, 21 Feb 2019 11:42:25 +0100 > Harald Freudenberger wrote: > > > On 30.01.19 19:32, Sebastian Ott wrote: > > > On Wed, 30 Jan 2019, Tony Krowiak wrote: > > > >> /* > > >> +* A config change has happened, Force an ap bus re

Re: [PATCH 4/6] lib/test_bitmap: switch test_bitmap_parselist to ktime_get()

2019-02-21 Thread Yury Norov
On Wed, Feb 20, 2019 at 05:20:48PM +0300, Yury Norov wrote: > On Wed, Feb 20, 2019 at 03:52:36PM +0200, Andy Shevchenko wrote: > > On Wed, Feb 20, 2019 at 03:51:01PM +0200, Andy Shevchenko wrote: > > > On Wed, Feb 20, 2019 at 11:37:03AM +0300, Yury Norov wrote: > > > > test_bitmap_parselist current

Re: [PATCH v2 1/1] s390: vfio_ap: link the vfio_ap devices to the vfio_ap bus subsystem

2019-02-21 Thread Christian Borntraeger
On 21.02.2019 13:51, Pierre Morel wrote: > On 21/02/2019 13:35, Christian Borntraeger wrote: >> >> [..] >> Go ahead and send this as v3? >> > > OK > CC stable ? Yes, also add a "Fixes:" tag.

Re: [PATCH v2 2/2] drm/qxl: kick out vgacon

2019-02-21 Thread Gerd Hoffmann
On Thu, Feb 21, 2019 at 01:20:11PM +0100, Daniel Vetter wrote: > On Thu, Feb 21, 2019 at 12:35:34PM +0100, Gerd Hoffmann wrote: > > Problem: qxl switches from native mode back into vga compatibility mode > > when it notices someone is accessing vga registers. And vgacon does > > exactly that befo

Re: [PATCH v2 1/2] drm: move i915_kick_out_vgacon to drm_fb_helper

2019-02-21 Thread Jani Nikula
On Thu, 21 Feb 2019, Gerd Hoffmann wrote: > It'll be useful for other drivers too, so move it to drm_fb_helper.c > (and rename it of course). Also add docs. > > Signed-off-by: Gerd Hoffmann > --- > include/drm/drm_fb_helper.h | 2 ++ > drivers/gpu/drm/drm_fb_helper.c | 39 +

Re: [PATCH v2] x86/asm: Pin sensitive CR4 bits

2019-02-21 Thread Solar Designer
On Wed, Feb 20, 2019 at 01:20:58PM -0800, Kees Cook wrote: > On Wed, Feb 20, 2019 at 10:49 AM Solar Designer wrote: > > > > On Wed, Feb 20, 2019 at 10:09:34AM -0800, Kees Cook wrote: > > > + if (WARN_ONCE((val & cr4_pin) != cr4_pin, "cr4 bypass attempt?!\n")) > > > + goto again; >

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

2019-02-21 Thread Stephen Rothwell
Hi Takashi, In commit de73e99af971 ("ALSA: hda/realtek: Enable audio jacks of ASUS UX362FA with ALC294") Fixes tag Fixes: 4e0511067 ("ALSA: hda/realtek: Enable audio jacks of ASUS UX533FD with ALC294") has these problem(s): - SHA1 should be at least 12 digits long Can be fixed by

Re: [PATCH] net: dsa: add missing phy address offset

2019-02-21 Thread Andrew Lunn
> Thank you very much for your hints. Yes that works indeed too. I > just assumed it was intended to work automatically with the > built-in phys as it does with the other switches I am using. Hi Marcel The basic assumption is there is a one to one mapping of port number to PHY address. All the o

Re: [EXT] [PATCH v6 2/2] mtd: spi-nor: cadence-quadspi: Add support for Octal SPI controller

2019-02-21 Thread Vignesh R
On 21/02/19 4:11 PM, Bean Huo (beanhuo) wrote: > Hi, Vignesh > >> >> Cadence OSPI controller IP supports Octal IO (x8 IO lines), It also has an >> integrated PHY. IP register layout is very similar to existing QSPI IP >> except for >> additional bits to support Octal and Octal DDR mode. Theref

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

2019-02-21 Thread Takashi Iwai
On Thu, 21 Feb 2019 14:10:29 +0100, Stephen Rothwell wrote: > > Hi Takashi, > > In commit > > de73e99af971 ("ALSA: hda/realtek: Enable audio jacks of ASUS UX362FA with > ALC294") > > Fixes tag > > Fixes: 4e0511067 ("ALSA: hda/realtek: Enable audio jacks of ASUS UX533FD > with ALC294") >

[PATCH] x86/fpu: Parse comma separated list passed in clearcpuid

2019-02-21 Thread Prarit Bhargava
Users cannot disable multiple CPU features with the kernel parameter clearcpuid=. For example, "clearcpuid=154 clearcpuid=227" only disables CPUID bit 154. Previous to commit 0c2a3913d6f5 ("x86/fpu: Parse clearcpuid= as early XSAVE argument") it was possible to pass multiple clearcpuid options as

Re: linux-next: build failure after merge of the xarray tree

2019-02-21 Thread Leon Romanovsky
On Thu, Feb 21, 2019 at 11:48:01PM +1100, Stephen Rothwell wrote: > Hi Leon, > > On Thu, 21 Feb 2019 12:34:42 + Leon Romanovsky > wrote: > > > > Matthew, really? change of API in -rc7? And it after you pushed us to > > base our -next on -rc5 after another API change? What should we do now? >

Re: [PATCH] kbuild: compute false-positive -Wmaybe-uninitialized cases in Kconfig

2019-02-21 Thread Arnd Bergmann
On Thu, Feb 21, 2019 at 10:45 AM Masahiro Yamada wrote: > On Thu, Feb 21, 2019 at 6:23 PM Arnd Bergmann wrote: > > On Thu, Feb 21, 2019 at 5:14 AM Masahiro Yamada > > wrote: > > > > I like how this cleans up the logic and documents it better. > > I've had my own plans to move this (and most othe

[PATCH v2 0/5] iio: imu: adis16480: Add support for ADIS1649x family of devices

2019-02-21 Thread Stefan Popa
This series has as main goal to add support for ADIS1649x family of devices as part of the already existing adis16480, but on the way it also deals with some outstanding items: * Make drdy pin configurable * Add OF device ID table * Deal with the temperature max scale in a generic way * Add missin

[PATCH v2 2/5] iio: imu: adis16480: Add OF device ID table

2019-02-21 Thread Stefan Popa
The driver does not have a struct of_device_id table, but supported devices are registered via Device Trees. This patch adds OF device ID table. Signed-off-by: Stefan Popa --- drivers/iio/imu/adis16480.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/iio/imu/adis16480.c

[PATCH 1/2] regulator: s5m8767: Constify s5m8767_opmode_reg

2019-02-21 Thread Axel Lin
The s5m8767_opmode_reg should never change, make it const. Signed-off-by: Axel Lin --- drivers/regulator/s5m8767.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/s5m8767.c b/drivers/regulator/s5m8767.c index b581f01f3395..5b0e1fe6723f 100644 --- a/drivers/r

[PATCH v2 4/5] iio: imu: adis16480: Add support for ADIS1649x family of devices

2019-02-21 Thread Stefan Popa
The ADIS16495 and ADIS16497 are inertial systems that include a triaxis gyroscope and a triaxis accelerometer. The serial peripheral interface (SPI) provide a simple interface for data collection and configuration control. The devices are similar to ADIS16475, ADIS16480, ADIS16485 and ADIS16488, th

[PATCH v2 1/5] iio: imu: adis16480: Add support for configurable drdy indicator

2019-02-21 Thread Stefan Popa
The FNCTIO_CTRL register provides configuration control for each I/O pin (DIO1, DIO2, DIO3 and DIO4). This patch adds the option to configure each DIOx pin as data ready indicator with positive or negative polarity by reading the 'interrupts' and 'interrupt-names' properties from the devicetree. T

[PATCH v2 3/5] iio: imu: adis16480: Treat temperature scale in a generic way

2019-02-21 Thread Stefan Popa
All supported devices provide internal temperature measurement from -40 C to +85 C, with +25 C representing value 0x00. This patch treats the temperature scale in a generic way, similar to the accelerometer and gyroscope scales. So far, there are no temperature max scale differences between the su

[PATCH 2/2] regulator: s5m8767: Simplify s5m8767_set_voltage_time_sel implementation

2019-02-21 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/s5m8767.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/regulator/s5m8767.c b/drivers/regulator/s5m8767.c index 5b0e1fe6723f..bb9d1a083299 100644 --- a/drivers/regulator/s5m8767.c +++ b/drivers/regulator/s5m8767.c @@

[PATCH v2 5/5] iio: imu: adis16480: Add docs for ADIS16480 IMU

2019-02-21 Thread Stefan Popa
Document support for ADIS16480 Inertial Measurement Unit. Signed-off-by: Stefan Popa --- .../devicetree/bindings/iio/imu/adi,adis16480.txt | 49 ++ MAINTAINERS| 1 + 2 files changed, 50 insertions(+) create mode 100644 Documentation/

Re: [PATCH v2 1/1] s390: vfio_ap: link the vfio_ap devices to the vfio_ap bus subsystem

2019-02-21 Thread Pierre Morel
On 21/02/2019 14:01, Christian Borntraeger wrote: On 21.02.2019 13:51, Pierre Morel wrote: On 21/02/2019 13:35, Christian Borntraeger wrote: [..] Go ahead and send this as v3? OK CC stable ? Yes, also add a "Fixes:" tag. Yes, I will not forget this time :) Thanks Pierre -- Pierre

Re: [PATCH 1/2] regulator: s5m8767: Constify s5m8767_opmode_reg

2019-02-21 Thread Krzysztof Kozlowski
On Thu, 21 Feb 2019 at 14:17, Axel Lin wrote: > > The s5m8767_opmode_reg should never change, make it const. > > Signed-off-by: Axel Lin > --- > drivers/regulator/s5m8767.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof

Re: [PATCH 1/2] platform/x86: intel_cht_int33fe: Provide fwnode for the USB connector

2019-02-21 Thread Andy Shevchenko
On Thu, Feb 21, 2019 at 11:35 AM Heikki Krogerus wrote: > > On Wed, Feb 20, 2019 at 05:55:21PM +0200, Andy Shevchenko wrote: > > On Tue, Feb 19, 2019 at 2:00 PM Heikki Krogerus > > wrote: > > > > > > In ACPI, and now also in DT, the USB connectors usually have > > > their own device nodes. In cas

Re: linux-next: build failure after merge of the xarray tree

2019-02-21 Thread Stephen Rothwell
Hi Leon, On Thu, 21 Feb 2019 13:16:31 + Leon Romanovsky wrote: > > > The xarray API changes (to xa_alloc and __xa_alloc) have been in > > linux-next for about 2 weeks ... > > I looked on the latest update of pulled branch > http://git.infradead.org/users/willy/linux-dax.git/shortlog/refs/h

Re: m88e6390_config_aneg will always reset the phy

2019-02-21 Thread Andrew Lunn
On Thu, Feb 21, 2019 at 06:55:54PM +0800, Rundong Ge wrote: > Hi Andrew > > Before the "net: phy: marvell: Errata for mv88e6390 internal PHYs", > phydev will only be soft reset when register value was changed. > But after this patch, the phydev will always be reset when entering > the "m88e6390_co

Re: [PATCH v2 1/2] drm: move i915_kick_out_vgacon to drm_fb_helper

2019-02-21 Thread Gerd Hoffmann
On Thu, Feb 21, 2019 at 03:08:39PM +0200, Jani Nikula wrote: > On Thu, 21 Feb 2019, Gerd Hoffmann wrote: > > It'll be useful for other drivers too, so move it to drm_fb_helper.c > > (and rename it of course). Also add docs. > > > > Signed-off-by: Gerd Hoffmann > > --- > > include/drm/drm_fb_hel

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