[PATCH 00/11] PowerPC-KVM: Fine-tuning for some function implementations

2017-01-20 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 20 Jan 2017 19:07:21 +0100 Some update suggestions were taken into account from static source code analysis. Markus Elfring (11): Move assignments for the variable "err" in kvm_htab_write() Improve a size determination in kvmppc_alloc_hpt() Move error code a

Re: [PATCH v2 1/2] ARM: davinci: Allocate extra interrupts

2017-01-20 Thread David Lechner
On 01/20/2017 05:50 AM, Sekhar Nori wrote: On Wednesday 18 January 2017 10:27 PM, David Lechner wrote: On 01/18/2017 03:50 AM, Sekhar Nori wrote: On Saturday 14 January 2017 01:30 AM, David Lechner wrote: This allocates extra interrupts for mach-davinci. These extra interrupts are need for thi

[PATCH 01/11] KVM: PPC: Book3S HV: Move assignments for the variable "err" in kvm_htab_write()

2017-01-20 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 19 Jan 2017 22:45:56 +0100 * A local variable was set to an error code in five cases before a concrete error situation was detected. Thus move the corresponding assignments into if branches to indicate a software failure there. This issue was detected by u

[PATCH 02/11] KVM: PPC: Book3S HV: Improve a size determination in kvmppc_alloc_hpt()

2017-01-20 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 20 Jan 2017 10:00:13 +0100 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Mar

Re: [RFC] dmaengine: Add DW AXI DMAC driver

2017-01-20 Thread Eugeniy Paltsev
Hi Andy, thanks for respond. I'm agree with most of the comments. My comments below. On Fri, 2017-01-20 at 15:38 +0200, Andy Shevchenko wrote: > On Fri, 2017-01-20 at 13:50 +0300, Eugeniy Paltsev wrote: > > > > This patch adds support for the DW AXI DMAC controller. > > > > DW AXI DMAC is a par

[PATCH 03/11] KVM: PPC: Book3S HV: Move error code assignments in two functions

2017-01-20 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 20 Jan 2017 10:30:26 +0100 A local variable was set to an error code in a few cases before a concrete error situation was detected. Thus move the corresponding assignments into if branches to indicate a software failure there. This issue was detected by using the

[PATCH 07/11] KVM: PPC: Book3S HV: Improve size determinations in five functions

2017-01-20 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 20 Jan 2017 16:23:30 +0100 Replace the specification of data structures by pointer dereferences as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Marku

[PATCH 06/11] KVM: PPC: Book3S HV: Use kcalloc() in kvmppc_alloc_host_rm_ops()

2017-01-20 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 20 Jan 2017 16:20:43 +0100 * A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "kcalloc". This issue was detected by using the Coccinelle softwar

[PATCH 09/11] KVM: PPC: Book3S: Improve a size determination in two functions

2017-01-20 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 20 Jan 2017 16:28:43 +0100 Replace the specification of data structures by pointer dereferences as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Marku

[PATCH 10/11] KVM: PPC: e500: Use kcalloc() in e500_mmu_host_init()

2017-01-20 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 20 Jan 2017 16:30:18 +0100 * A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "kcalloc". This issue was detected by using the Coccinelle softwar

[PATCH 04/11] KVM: PPC: Book3S HV: Use common error handling code in kvmppc_clr_passthru_irq()

2017-01-20 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 20 Jan 2017 11:00:08 +0100 Add a jump target so that a bit of exception handling can be better reused at the end of this function. Signed-off-by: Markus Elfring --- arch/powerpc/kvm/book3s_hv.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff

Re: [PATCH 36/37] ARM: DRA7: clockdomain: Change the CLKTRCTRL of CM_PCIE_CLKSTCTRL to SW_WKUP

2017-01-20 Thread Tony Lindgren
* Kishon Vijay Abraham I [170115 22:06]: > Hi Tony, > > On Friday 13 January 2017 10:45 PM, Tony Lindgren wrote: > > * Kishon Vijay Abraham I [170112 02:35]: > >> The PCIe programming sequence in TRM suggests CLKSTCTRL of PCIe should > >> be set to SW_WKUP. There are no issues when CLKSTCTRL is

Re: [PATCH 37/37] ARM: dts: DRA7: Add pcie1 dt node for EP mode

2017-01-20 Thread Tony Lindgren
* Kishon Vijay Abraham I [170112 02:34]: > Add pcie1 dt node in order for the controller to operate in > endpoint mode. However since none of the dra7 based boards have > slots configured to operate in endpoint mode, keep EP mode > disabled. Can this be merged separately later on without breaking

[PATCH 11/11] KVM: PPC: Return directly after a failed copy_from_user() in two functions

2017-01-20 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 20 Jan 2017 18:00:35 +0100 * Return directly after a call of the function "copy_from_user" (or two other checks) failed in a case block. This issue was detected by using the Coccinelle software. * Delete the jump label "out" which became unnecessary with th

Re: [patch 4/5] PTP: add PTP_SYS_OFFSET emulation via cross timestamps infrastructure

2017-01-20 Thread Radim Krcmar
2017-01-20 15:23+0100, Paolo Bonzini: > On 20/01/2017 15:02, Radim Krcmar wrote: >> 2017-01-20 14:36+0100, Paolo Bonzini: >>> On 20/01/2017 14:07, Marcelo Tosatti wrote: On Fri, Jan 20, 2017 at 01:55:27PM +0100, Paolo Bonzini wrote: > > > On 20/01/2017 13:20, Marcelo Tosatti wrote:

Re: [PATCH 0/3] misc: sram: Introduce protect-exec region type

2017-01-20 Thread Tony Lindgren
* Dave Gerlach [170112 12:54]: > Hi, > There are several instances when one would want to execute out of on-chip > SRAM, such as PM code on ARM platforms, so once again revisiting this > series to allow that in a generic manner. Seems that having a solution for > allowing SRAM to be mapped as exec

[PATCH 05/11] KVM: PPC: Book3S HV: Adjust nine checks for null pointers

2017-01-20 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 20 Jan 2017 11:25:48 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script "checkpatch.pl" pointed information out like the following. Comparison to NULL could be written … Thus fix affected source code places.

Re: [PATCH] serial: omap: Add omapserial earlycon

2017-01-20 Thread Tony Lindgren
* Lokesh Vutla [170119 02:02]: > Add DT earlycon for omap_serial driver. This boot console is included > with CONFIG_SERIAL_EARLYCON=y, CONFIG_OF=y, CONFIG_SERIAL_OMAP=y, and > CONFIG_OF_EARLY_FLATTREE=y. > > This boot console is enabled with the command line option "earlycon" > (without "=...")

[PATCH 08/11] KVM: PPC: Book3S: Use seq_puts() in xics_debug_show()

2017-01-20 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 20 Jan 2017 16:26:51 +0100 A string which did not contain data format specifications should be put into a sequence. Thus use the corresponding function "seq_puts". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- arch/

Re: [PATCH 0/6] ARM: dts: am335x-sl50: Update to new hardware

2017-01-20 Thread Tony Lindgren
* Enric Balletbo Serra [170116 12:54]: > Hi Tony, > > 2017-01-16 18:41 GMT+01:00 Tony Lindgren : > > * Enric Balletbo i Serra [170116 08:58]: > >> Hi Tony, > >> > >> The following patches updates the device tree file for the SL50 device, > >> there > >> are few v1 boards and IMHO doesn't make s

Re: [PATCH v3 2/3] NFC: trf7970a: Add device tree option of 1.8 Volt IO voltage

2017-01-20 Thread Mark Greer
On Wed, Dec 21, 2016 at 11:18:33PM -0500, Geoff Lansberry wrote: > The TRF7970A has configuration options for supporting hardware designs > with 1.8 Volt or 3.3 Volt IO. This commit adds a device tree option, > using a fixed regulator binding, for setting the io voltage to match > the hardware co

Re: [PATCH v3 00/24] i.MX Media Driver

2017-01-20 Thread Steve Longerbeam
Hi Hans, Philipp, On 01/20/2017 08:31 AM, Philipp Zabel wrote: Hi Hans, On Fri, 2017-01-20 at 14:52 +0100, Hans Verkuil wrote: Hi Steve, Philipp, On 01/07/2017 03:11 AM, Steve Longerbeam wrote: In version 3: Changes suggested by Rob Herring : - prepended FIM node properties with vendor

Re: [PATCH v2 5/7] Input: pwm-beeper - suppress error message on probe defer

2017-01-20 Thread David Lechner
On 01/20/2017 04:16 AM, Thierry Reding wrote: On Thu, Jan 19, 2017 at 02:40:55PM -0800, Dmitry Torokhov wrote: From: David Lechner This suppress printing an error message when pwm_get returns -EPROBE_DEFER. Otherwise you get a bunch of noise in the kernel log. Signed-off-by: David Lechner Pa

[PATCH] USB: Add quirk for WORLDE easykey.25 MIDI keyboard

2017-01-20 Thread Lukáš Lalinský
Add a quirk for WORLDE easykey.25 MIDI keyboard (idVendor=0218, idProduct=0401). The device reports that it has config string descriptor at index 3, but when the system selects the configuration and tries to get the description, it returns a -EPROTO error, the communication restarts and this keeps

[PATCH v7 5/5] phy: Add support for Qualcomm's USB HS phy

2017-01-20 Thread Stephen Boyd
The high-speed phy on qcom SoCs is controlled via the ULPI viewport. Cc: Acked-by: Rob Herring Signed-off-by: Stephen Boyd --- phy_set_mode() hook split up to toggle two bits independently with new set_vbus() hook. .../devicetree/bindings/phy/qcom,usb-hs-phy.txt| 78 +++ drivers/phy

[PATCH v7 3/5] phy: Add set_vbus callback

2017-01-20 Thread Stephen Boyd
Some USB PHYs need to be told about vbus changing state explicitly. For example the qcom USB HS PHY needs to toggle a bit when vbus goes from low to high (VBUSVLDEXT) to cause the "session valid" signal to toggle. This signal will pull up D+ when the phy starts running. If the vbus signal isn't rou

[PATCH v7 4/5] usb: chipidea: Signal vbus state to phy

2017-01-20 Thread Stephen Boyd
Some USB PHYs need to be told about vbus changing state explicitly. For example the qcom USB HS PHY needs to toggle a bit when vbus goes from low to high (VBUSVLDEXT) to cause the "session valid" signal to toggle. This signal will pull up D+ when the phy starts running. Add the appropriate phy_set_

[PATCH v7 0/5] Support qcom's HSIC USB and rewrite USB2 HS support

2017-01-20 Thread Stephen Boyd
This patch series continues the usb chipidea rewrite for Qualcommm platforms. I've dropped the patches that were applied to Peter's tree for chipidea. Now the phy drivers are left, along with a new hook to set the vbus in the phy and changes to chipidea to call the new hook. I've left the HSIC ph

[PATCH v7 1/5] phy: Add support for Qualcomm's USB HSIC phy

2017-01-20 Thread Stephen Boyd
The HSIC USB controller on qcom SoCs has an integrated all digital phy controlled via the ULPI viewport. Acked-by: Rob Herring Cc: Signed-off-by: Stephen Boyd --- No changes. .../devicetree/bindings/phy/qcom,usb-hsic-phy.txt | 65 + drivers/phy/Kconfig

[PATCH v7 2/5] usb: chipidea: msm: Configure phy for appropriate mode

2017-01-20 Thread Stephen Boyd
When the qcom chipidea controller is used with an extcon, we need to signal device mode or host mode to the phy so it can configure itself for the correct mode. This should be done after the phy is powered up, so that the register writes work correctly. Add in the appropriate phy_set_mode() call he

Re: [PATCH v2] xen-netfront: Fix Rx stall during network stress and OOM

2017-01-20 Thread David Miller
From: Vineeth Remanan Pillai Date: Thu, 19 Jan 2017 08:35:39 -0800 > From: Vineeth Remanan Pillai > > During an OOM scenario, request slots could not be created as skb > allocation fails. So the netback cannot pass in packets and netfront > wrongly assumes that there is no more work to be done

Re: [PATCH v3 0/3] input: pwm-beeper: add feature to set volume level

2017-01-20 Thread David Lechner
On 01/19/2017 03:37 PM, Dmitry Torokhov wrote: On Thu, Jan 19, 2017 at 04:24:07PM +0100, Frieder Schrempf wrote: Make the driver accept switching volume levels via sysfs. This can be helpful if the beep/bell sound intensity needs to be adapted to the environment of the device. The number of vol

Re: [PATCH 3/3] btmrvl: use dt's irqflags for wakeup pin

2017-01-20 Thread Brian Norris
On Fri, Jan 20, 2017 at 07:14:20PM +0800, Jeffy Chen wrote: > Use irqflags parsed from dt. > > Signed-off-by: Jeffy Chen > --- > > drivers/bluetooth/btmrvl_sdio.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/bluetooth/btmrvl_sdio.c b/drivers/bluetooth/btmr

[PATCH v6 1/2] tpm: implement TPM 2.0 capability to get active PCR banks

2017-01-20 Thread Nayna Jain
This patch implements the TPM 2.0 capability TPM_CAP_PCRS to retrieve the active PCR banks from the TPM. This is needed to enable extending all active banks as recommended by TPM 2.0 TCG Specification. Signed-off-by: Nayna Jain Reviewed-by: Jarkko Sakkinen --- drivers/char/tpm/tpm.h | 5 +

Re: [PATCH v5 0/2] Add support for the ethernet switch on the ESPRESSObin

2017-01-20 Thread David Miller
From: Gregory CLEMENT Date: Thu, 19 Jan 2017 22:49:32 +0100 > I created a new family for this switch and filled the ops structure > by selecting which seems the more appropriate functions. I rebased > the series on net-next/master which allowed me to benefit to the > eeprom functions introduced f

Re: [PATCH 2/3] btmrvl: set irq_bt to -1 when failed to parse it

2017-01-20 Thread Brian Norris
On Fri, Jan 20, 2017 at 07:14:19PM +0800, Jeffy Chen wrote: > The irq_of_parse_and_map will return 0 as a invalid irq. irq_of_parse_and_map() is weird to me. In general, Linux IRQ numbers *can* be 0, but it looks like the OF framework understands that device-tree based interrupts will not get mapp

Re: [PATCH 1/3] btmrvl: avoid double-disable_irq() race

2017-01-20 Thread Brian Norris
On Fri, Jan 20, 2017 at 07:14:18PM +0800, Jeffy Chen wrote: > It's much the same as what we did for mwifiex in: > b9da4d2 mwifiex: avoid double-disable_irq() race You could still stand to borrow some of the explanation for your commit message here... > Signed-off-by: Jeffy Chen Fix looks good:

Re: [PATCH 00/12] Cqm2: Intel Cache quality monitoring fixes

2017-01-20 Thread Stephane Eranian
On Thu, Jan 19, 2017 at 6:32 PM, Vikas Shivappa wrote: > > Resending including Thomas , also with some changes. Sorry for the spam > > Based on Thomas and Peterz feedback Can think of two design > variants which target: > > -Support monitoring and allocating using the same resctrl group. > user ca

Re: Nokia N900: microphone mixers

2017-01-20 Thread Pavel Machek
On Fri 2017-01-20 15:04:04, Pali Rohár wrote: > On Friday 20 January 2017 15:00:47 Pavel Machek wrote: > > On Fri 2017-01-20 14:38:30, Pali Rohár wrote: > > > On Friday 20 January 2017 14:31:59 Pavel Machek wrote: > > > > Hi! > > > > > > > > Do you have any idea how to control the microphone? I'd

Re: [PATCH] xfs: do not call xfs_buf_hash_destroy on a NULL pag

2017-01-20 Thread Eric Sandeen
On 1/20/17 8:26 AM, Colin King wrote: > From: Colin Ian King > > If pag cannot be allocated, the current error exit path will trip > a null pointer deference error when calling xfs_buf_hash_destroy > with a null pag. Fix this by adding a new error exit lable and > jumping to this, avoiding the h

Re: [patch 5/5] PTP: add kvm PTP driver

2017-01-20 Thread Marcelo Tosatti
On Fri, Jan 20, 2017 at 07:08:49PM +0100, Radim Krcmar wrote: > 2017-01-20 13:00-0200, Marcelo Tosatti: > > On Fri, Jan 20, 2017 at 03:12:56PM +0100, Radim Krcmar wrote: > >> 2017-01-20 10:20-0200, Marcelo Tosatti: > >> > +do { > >> > +/* > >> > + * We are me

Re: [PATCH v2 1/7] Input: pwm-beeper - remove calls to legacy pwm_request API

2017-01-20 Thread David Lechner
On 01/19/2017 04:40 PM, Dmitry Torokhov wrote: There are no more users of pwm-beeper driver in mainline relying on this legacy API, so let's remove it and simplify the driver code. Signed-off-by: Dmitry Torokhov --- I've tested this patch series on LEGO MINDSTORMS EV3 and it looks good to m

Re: [PATCH v2] drm: Clean up the 1366x768 fixup codes

2017-01-20 Thread Ville Syrjälä
On Tue, Jan 17, 2017 at 05:43:29PM +0100, Takashi Iwai wrote: > This is just a cleanup, no functional change. > > The fixup code for 1366x768 in drm_mode_create_from_cmdline_mode() is > basically a copy of the existing code in drm_edid.c. Make the latter > code public so that it can be called fro

Re: [PATCH 2/2] misc: amd-sp: introduce the AMD Secure Processor device

2017-01-20 Thread kbuild test robot
Hi Brijesh, [auto build test ERROR on cryptodev/master] [also build test ERROR on next-20170120] [cannot apply to char-misc/char-misc-testing v4.10-rc4] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

Re: [PATCH 2/3] ftrace: Expose ftrace_hash_empty and ftrace_lookup_ip

2017-01-20 Thread Steven Rostedt
On Fri, 20 Jan 2017 11:44:46 +0900 Namhyung Kim wrote: > --- a/kernel/trace/trace.h > +++ b/kernel/trace/trace.h > @@ -787,6 +787,20 @@ extern void __trace_graph_return(struct trace_array *tr, >struct ftrace_graph_ret *trace, >unsig

Re: [PATCH v2] jump_label: reduce the size of struct static_key

2017-01-20 Thread Jason Baron
On 01/20/2017 02:19 AM, Ingo Molnar wrote: * Jason Baron wrote: struct static_key { atomic_t enabled; +/* + * bit 0 => 1 if key is initially true + * 0 if initially false + * bit 1 => 1 if points to struct static_key_mod + * 0 if points to struct jump_entry + */ +

[PATCH] mmc: s3cmci: include linux/interrupt.h for tasklet_struct

2017-01-20 Thread Arnd Bergmann
I got this new build error on today's linux-next drivers/mmc/host/s3cmci.h:69:24: error: field 'pio_tasklet' has incomplete type struct tasklet_struct pio_tasklet; drivers/mmc/host/s3cmci.c: In function 's3cmci_enable_irq': drivers/mmc/host/s3cmci.c:390:4: error: implicit declaration of function

Re: [PATCH 1/4] phy: qcom-ufs: Don't kfree devres resource

2017-01-20 Thread Subhash Jadavani
On 2017-01-19 02:47, Bjorn Andersson wrote: Upon failing to acquire regulator supplies the qcom-ufs driver calls kfree() on the devm allocated memory used to store the name of the regulator, leading to devres corruption. Rather than switching to using the appropriate free function the patch ackn

Re: [PATCH 00/12] Cqm2: Intel Cache quality monitoring fixes

2017-01-20 Thread David Carrillo-Cisneros
On Fri, Jan 20, 2017 at 5:29 AM Thomas Gleixner wrote: > > On Thu, 19 Jan 2017, David Carrillo-Cisneros wrote: > > > > If resctrl groups could lift the restriction of one resctl per CLOSID, > > then the user can create many resctrl in the way perf cgroups are > > created now. The advantage is that

Re: [PATCH v7] tpm: Check size of response before accessing data

2017-01-20 Thread Jarkko Sakkinen
On Fri, Jan 20, 2017 at 07:55:22PM +0200, Jarkko Sakkinen wrote: > On Fri, Jan 20, 2017 at 06:21:58PM +0200, Jarkko Sakkinen wrote: > > On Fri, Jan 20, 2017 at 03:36:30PM +0200, Jarkko Sakkinen wrote: > > > On Thu, Jan 19, 2017 at 07:19:12AM -0500, Stefan Berger wrote: > > > > Make sure that we hav

[PATCH] iio: pressure: ms5611: claim direct mode during oversampling changes

2017-01-20 Thread Alison Schofield
Driver was checking for direct mode before changing oversampling ratios, but was not locking it. Use the claim/release helper functions to guarantee the device stays in direct mode while the oversampling ratios are being updated. Continue to use the drivers private state lock to protect against c

Re: [PATCH 00/12] Cqm2: Intel Cache quality monitoring fixes

2017-01-20 Thread David Carrillo-Cisneros
On Fri, Jan 20, 2017 at 12:30 AM, Thomas Gleixner wrote: > On Thu, 19 Jan 2017, David Carrillo-Cisneros wrote: >> On Thu, Jan 19, 2017 at 9:41 AM, Thomas Gleixner wrote: >> > Above you are talking about the same CLOSID and different RMIDS and not >> > about changing both. >> >> The scenario I tal

Re: [patch 4/5] PTP: add PTP_SYS_OFFSET emulation via cross timestamps infrastructure

2017-01-20 Thread Richard Cochran
On Fri, Jan 20, 2017 at 10:20:29AM -0200, Marcelo Tosatti wrote: > Emulate PTP_SYS_OFFSET by using an arithmetic mean of the > realtime samples from ->getcrosststamp callback. This change log is not very informative. Yes, I can see that the new code calculates a mean. But WHY is this needed? An

Re: [PATCH v3 1/6] dt-bindings: add device tree binding for Allwinner V3s pinctrl

2017-01-20 Thread Maxime Ripard
On Fri, Jan 20, 2017 at 01:54:43AM +0800, Icenowy Zheng wrote: > Allwinner V3s SoC has a pin controller like other Allwinner SoCs and got > supported by the sunxi-pinctrl driver now. > > Add a device tree binding for it. > > Signed-off-by: Icenowy Zheng Acked-by: Maxime Ripard Thanks, Maxime

[PATCH 05/16] x86/microcode/AMD: Shorten function parameter's name

2017-01-20 Thread Borislav Petkov
From: Borislav Petkov The whole driver calls this "mc", do that here too. No functionality change. Signed-off-by: Borislav Petkov Reviewed-by: Thomas Gleixner --- arch/x86/kernel/cpu/microcode/amd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/cpu

[PATCH] serial: 8250_omap: Fix probe and remove for PM runtime

2017-01-20 Thread Tony Lindgren
Otherwise the interconnect related code implementing PM runtime will produce these errors on a failed probe: omap_uart 48066000.serial: omap_device: omap_device_enable() called from invalid state 1 omap_uart 48066000.serial: use pm_runtime_put_sync_suspend() in driver? Note that we now also need

[PATCH 10/16] x86/microcode/AMD: Use find_microcode_in_initrd()

2017-01-20 Thread Borislav Petkov
From: Borislav Petkov Use the generic helper instead of semi-open-coding the procedure. Signed-off-by: Borislav Petkov Reviewed-by: Thomas Gleixner --- arch/x86/kernel/cpu/microcode/amd.c | 16 +--- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/arch/x86/kernel/cpu

Re: [PATCH v3 4/6] dt-bindings: add device binding for the CCU of Allwinner V3s

2017-01-20 Thread Maxime Ripard
On Fri, Jan 20, 2017 at 01:54:46AM +0800, Icenowy Zheng wrote: > Allwinner V3s is now driven by sunxi-ng CCU driver. > > Add devicetree binding for it. > > Signed-off-by: Icenowy Zheng Applied. Thanks, Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-e

Re: [PATCH] seccomp: dump core when using SECCOMP_RET_KILL

2017-01-20 Thread Kees Cook
On Thu, Jan 19, 2017 at 8:28 PM, Mike Frysinger wrote: > From: Mike Frysinger > > The SECCOMP_RET_KILL mode is documented as immediately killing the > process as if a SIGSYS had been sent and not caught (similar to a > SIGKILL). However, a SIGSYS is documented as triggering a coredump > which do

Re: [PATCH V7 04/10] arm64: exception: handle Synchronous External Abort

2017-01-20 Thread Baicar, Tyler
On 1/19/2017 10:55 AM, James Morse wrote: Hi Tyler, On 18/01/17 23:26, Baicar, Tyler wrote: On 1/17/2017 3:31 AM, James Morse wrote: On 12/01/17 18:15, Tyler Baicar wrote: SEA exceptions are often caused by an uncorrected hardware error, and are handled when data abort and instruction abort e

Re: [PATCH 00/12] Cqm2: Intel Cache quality monitoring fixes

2017-01-20 Thread Shivappa Vikas
On Thu, 19 Jan 2017, David Carrillo-Cisneros wrote: On Thu, Jan 19, 2017 at 6:32 PM, Vikas Shivappa wrote: Resending including Thomas , also with some changes. Sorry for the spam Based on Thomas and Peterz feedback Can think of two design variants which target: -Support monitoring and allo

Re: [PATCH v3 00/24] i.MX Media Driver

2017-01-20 Thread Hans Verkuil
On 01/20/2017 07:40 PM, Steve Longerbeam wrote: > Hi Hans, Philipp, > > > On 01/20/2017 08:31 AM, Philipp Zabel wrote: >> Hi Hans, >> >> On Fri, 2017-01-20 at 14:52 +0100, Hans Verkuil wrote: >>> Hi Steve, Philipp, >>> >>> On 01/07/2017 03:11 AM, Steve Longerbeam wrote: In version 3: >>

Re: [PATCH v3 3/6] clk: sunxi-ng: add support for V3s CCU

2017-01-20 Thread Maxime Ripard
On Fri, Jan 20, 2017 at 01:54:45AM +0800, Icenowy Zheng wrote: > V3s has a similar but cut-down CCU to H3. Some muxes, especially clocks > about CSI, are different, which makes it to need a new CCU driver. > > Add such a new driver for it. > > Signed-off-by: Icenowy Zheng > --- Having a changel

[PATCH 0/3] arm64: Add ARCH_THUNDER2

2017-01-20 Thread Jayachandran C
This patchset adds support for the new ThunderX2 CN99XX processor family. Changes are to add the config option, the required device tree files, the device tree bindings documentation and the defconfig entry. JC. Jayachandran C (3): arm64: add THUNDER2 processor family dt-bindings: arm64 ARCH

Re: [PATCH] xfs: do not call xfs_buf_hash_destroy on a NULL pag

2017-01-20 Thread Darrick J. Wong
On Fri, Jan 20, 2017 at 01:26:12PM -0600, Eric Sandeen wrote: > On 1/20/17 8:26 AM, Colin King wrote: > > From: Colin Ian King > > > > If pag cannot be allocated, the current error exit path will trip > > a null pointer deference error when calling xfs_buf_hash_destroy > > with a null pag. Fix t

[PATCH] iio: magnetometer: mag3110: claim direct mode during raw writes

2017-01-20 Thread Alison Schofield
Driver was checking for direct mode but not locking it. Use claim/release helper functions to guarantee the device stays in direct mode during raw writes. Signed-off-by: Alison Schofield --- drivers/iio/magnetometer/mag3110.c | 30 -- 1 file changed, 20 insertions(+)

Re: [PATCH v6 0/2] enhance TPM 2.0 extend function to support multiple PCR banks

2017-01-20 Thread Jarkko Sakkinen
On Fri, Jan 20, 2017 at 12:05:11PM -0500, Nayna Jain wrote: > IMA extends its hash measurements in the TPM PCRs, based on policy. > The existing in-kernel TPM extend function extends only the SHA1 > PCR bank. TPM 2.0 defines multiple PCR banks, to support different > hash algorithms. The TCG TPM 2.

Re: [tpmdd-devel] [PATCH 1/2] tpm2: add session handle isolation to tpm spaces

2017-01-20 Thread Jarkko Sakkinen
On Fri, Jan 20, 2017 at 09:27:25AM -0500, Ken Goldman wrote: > On 1/20/2017 8:23 AM, Jarkko Sakkinen wrote: > > > > I'm talking about not trying to detect if something gets deleted. When > > something gets created you would go through the global list of sessions > > and check if it is used. If so,

Re: [PATCH v3 6/6] ARM: dts: sunxi: add support for Lichee Pi Zero board

2017-01-20 Thread Maxime Ripard
On Fri, Jan 20, 2017 at 01:54:48AM +0800, Icenowy Zheng wrote: > Lichee Pi Zero is a small-sized V3s board, which is > breadboard-compatible, and with a MicroUSB port with both OTG function > and power function. > > Signed-off-by: Icenowy Zheng Applied, thanks Maxime -- Maxime Ripard, Free Ele

Re: powerpc/nvram: Move an assignment for the variable "ret" in dev_nvram_write()

2017-01-20 Thread Tyrel Datwyler
On 01/19/2017 11:08 PM, SF Markus Elfring wrote: >> I think you really could have squashed patches 1-3 into a single patch >> that returns directly after any failure. > > Thanks for your constructive feedback. > > I have got software development concerns around such patch squashing. > > >> At t

Re: [PATCH V7 05/10] acpi: apei: handle SEA notification type for ARMv8

2017-01-20 Thread Baicar, Tyler
On 1/19/2017 10:57 AM, James Morse wrote: Hi Tyler, On 18/01/17 23:51, Baicar, Tyler wrote: On 1/18/2017 7:50 AM, James Morse wrote: On 12/01/17 18:15, Tyler Baicar wrote: ARM APEI extension proposal added SEA (Synchrounous External Abort) notification type for ARMv8. Add a new GHES error sou

[PATCH] eeprom: fix platform_no_drv_owner.cocci warnings

2017-01-20 Thread Julia Lawall
No need to set .owner here. The core will do it. Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci CC: Serge Semin Signed-off-by: Julia Lawall Signed-off-by: Fengguang Wu --- tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git char-misc-testing head: 7a

[PATCH v3 02/37] treewide: Move dma_ops from struct dev_archdata into struct device

2017-01-20 Thread Bart Van Assche
Some but not all architectures provide set_dma_ops(). Move dma_ops from struct dev_archdata into struct device such that it becomes possible on all architectures to configure dma_ops per device. Signed-off-by: Bart Van Assche Acked-by: Greg Kroah-Hartman Cc: Benjamin Herrenschmidt Cc: Boris Ost

[PATCH v3 01/37] treewide: Constify most dma_map_ops structures

2017-01-20 Thread Bart Van Assche
Most dma_map_ops structures are never modified. Constify these structures such that these can be write-protected. This patch has been generated as follows: git grep -l 'struct dma_map_ops' | xargs -d\\n sed -i \ -e 's/struct dma_map_ops/const struct dma_map_ops/g' \ -e 's/const struct dm

Re: [tpmdd-devel] [PATCH RFC v3 5/5] tpm2: expose resource manager via a device link /dev/tpms

2017-01-20 Thread Jarkko Sakkinen
On Fri, Jan 20, 2017 at 03:39:14PM +0200, Jarkko Sakkinen wrote: > On Thu, Jan 19, 2017 at 07:19:40AM -0500, James Bottomley wrote: > > On Thu, 2017-01-19 at 12:49 +0200, Jarkko Sakkinen wrote: > > > On Wed, Jan 18, 2017 at 10:01:03AM -0500, James Bottomley wrote: > > > > On Mon, 2017-01-16 at 15:1

[PATCH 2/3] dt-bindings: arm64 ARCH_THUNDER2 platform documentation

2017-01-20 Thread Jayachandran C
Add documentation for Cavium ThunderX2 CN99XX ARM64 processor family. The processor core will use cavium,thunder2 as ID and the SoC will use cavium,thunder-99xx Signed-off-by: Jayachandran C --- Documentation/devicetree/bindings/arm/cavium-thunder2.txt | 5 + Documentation/devicetree/binding

[PATCH 1/3] arm64: add THUNDER2 processor family

2017-01-20 Thread Jayachandran C
Add support for ThunderX2 CN99XX arm64 server processors. Introduce a new arm64 platform config option ARCH_THUNDER2 for these processors. Add device tree files boot/dts/cavium/thunder-99xx.dtsi for on-chip devices and boot/dts/cavium/thunder-99xx.dts for the evaluation board. Signed-off-by: Jaya

[PATCH 3/3] arm64: add ARCH_THUNDER2 to defconfig

2017-01-20 Thread Jayachandran C
This will allow the default kernel build to boot on Cavium ThunderX2 CN99XX processors. Signed-off-by: Jayachandran C --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 33b744d..7a9c262 100644 ---

Re: [RFC] dmaengine: Add DW AXI DMAC driver

2017-01-20 Thread Andy Shevchenko
On Fri, Jan 20, 2017 at 8:21 PM, Eugeniy Paltsev wrote: > Hi Andy, > thanks for respond. > > I'm agree with most of the comments. > My comments below. So my answers! > On Fri, 2017-01-20 at 15:38 +0200, Andy Shevchenko wrote: >> On Fri, 2017-01-20 at 13:50 +0300, Eugeniy Paltsev wrote: >> > >> >

Re: [PATCH 00/12] Cqm2: Intel Cache quality monitoring fixes

2017-01-20 Thread Shivappa Vikas
On Fri, 20 Jan 2017, David Carrillo-Cisneros wrote: On Fri, Jan 20, 2017 at 5:29 AM Thomas Gleixner wrote: On Thu, 19 Jan 2017, David Carrillo-Cisneros wrote: If resctrl groups could lift the restriction of one resctl per CLOSID, then the user can create many resctrl in the way perf cgrou

Re: [PATCH v3 5/6] ARM: dts: sunxi: add dtsi file for V3s SoC

2017-01-20 Thread Maxime Ripard
On Fri, Jan 20, 2017 at 01:54:47AM +0800, Icenowy Zheng wrote: > As we have the pinctrl and clock support for the V3s SoC, it's now to > run a mainline Linux on it. > > So add a .dtsi file for it. > > Signed-off-by: Icenowy Zheng Next time, please provide a description of what that SoC in your

Re: [PATCH] leds: gpio: Add pinctrl PM select sleep,default state in suspend/resume

2017-01-20 Thread Andy Shevchenko
On Fri, Jan 20, 2017 at 6:45 PM, Enric Balletbo i Serra wrote: > This patch allows users to use an alternate pinctrl "sleep" in order to > clamp outputs to a wanted state at suspend. > +#ifdef CONFIG_PM_SLEEP > +static int gpio_led_suspend(struct device *dev) Switch to __maybe_unused -- With B

RE: [PATCH] hv: use substraction to update ring buffer index

2017-01-20 Thread Long Li
> -Original Message- > From: Dexuan Cui > Sent: Sunday, January 15, 2017 7:12 PM > To: Long Li ; KY Srinivasan ; > Haiyang Zhang > Cc: de...@linuxdriverproject.org; linux-kernel@vger.kernel.org > Subject: RE: [PATCH] hv: use substraction to update ring buffer index > > > From: devel [ma

[PATCH v3 04/37] treewide: Consolidate get_dma_ops() implementations

2017-01-20 Thread Bart Van Assche
Introduce a new architecture-specific get_arch_dma_ops() function that takes a struct bus_type * argument. Add get_dma_ops() in . Signed-off-by: Bart Van Assche Cc: Benjamin Herrenschmidt Cc: Boris Ostrovsky Cc: David Woodhouse Cc: Juergen Gross Cc: H. Peter Anvin Cc: Ingo Molnar Cc: linux-

[PATCH v3 03/37] treewide: Consolidate set_dma_ops() implementations

2017-01-20 Thread Bart Van Assche
Now that all set_dma_ops() implementations are identical (ignoring BUG_ON() statements), remove the architecture specific definitions and add a definition in . Signed-off-by: Bart Van Assche Cc: Benjamin Herrenschmidt Cc: Chris Metcalf Cc: David Woodhouse Cc: linux-a...@vger.kernel.org Cc: lin

[GIT PULL] KVM fixes for v4.10-rc5

2017-01-20 Thread Radim Krčmář
Linus, The following changes since commit 49def1853334396f948dcb4cedb9347abb318df5: Linux 4.10-rc4 (2017-01-15 16:21:59 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus for you to fetch changes up to fec969012314ec452620516f8251f51

[PATCH 06/16] x86/microcode/AMD: Extend the container struct

2017-01-20 Thread Borislav Petkov
From: Borislav Petkov Make it into a container descriptor which is being passed around and stores important info like the matching container and the patch for the current CPU. Make it static too. Later patches will use this and thus get rid of a double container parsing. Signed-off-by: Borislav

[PATCH 11/16] x86/microcode: Remove local vendor variable

2017-01-20 Thread Borislav Petkov
From: Borislav Petkov Use x86_cpuid_vendor() directly. No functionality change. Signed-off-by: Borislav Petkov --- arch/x86/kernel/cpu/microcode/core.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/arch/x86/kernel/cpu/microcode/core.c b/arch/x86/kernel/cpu/mi

[PATCH 16/16] x86/microcode/AMD: Remove struct cont_desc.eq_id

2017-01-20 Thread Borislav Petkov
From: Borislav Petkov The equivalence ID was needed outside of the container scanning logic but now, after this has been cleaned up, not anymore. Now, cont_desc.mc is used to denote whether the container we're looking at has the proper microcode patch for this CPU or not. Signed-off-by: Borislav

Re: [PATCH 00/12] Cqm2: Intel Cache quality monitoring fixes

2017-01-20 Thread David Carrillo-Cisneros
On Fri, Jan 20, 2017 at 1:08 PM, Shivappa Vikas wrote: > > > On Fri, 20 Jan 2017, David Carrillo-Cisneros wrote: > >> On Fri, Jan 20, 2017 at 5:29 AM Thomas Gleixner >> wrote: >>> >>> >>> On Thu, 19 Jan 2017, David Carrillo-Cisneros wrote: If resctrl groups could lift the restricti

[PATCH 01/16] x86/microcode/intel: Drop stashed AP patch pointer optimization

2017-01-20 Thread Borislav Petkov
From: Borislav Petkov This was meant to save us the scanning of the microcode containter in the initrd since the first AP had already done that but it can also hurt us: Imagine a single hyperthreaded CPU (Intel(R) Atom(TM) CPU N270, for example) which updates the microcode on the BSP but since t

[PATCH 09/16] x86/microcode/AMD: Get rid of global this_equiv_id

2017-01-20 Thread Borislav Petkov
From: Borislav Petkov We have a container which we update/prepare each time before applying a microcode patch instead of using a global. Signed-off-by: Borislav Petkov Reviewed-by: Thomas Gleixner --- arch/x86/kernel/cpu/microcode/amd.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-

[PATCH 15/16] x86/microcode/AMD: Remove AP scanning optimization

2017-01-20 Thread Borislav Petkov
From: Borislav Petkov The idea was to not scan the microcode blob on each AP (Application Processor) during boot and thus save us some milliseconds. However, on architectures where the microcode engine is shared between threads, this doesn't work. Here's why: The microcode on CPU0, i.e., the fir

[PATCH 14/16] x86/microcode/AMD: Simplify saving from initrd

2017-01-20 Thread Borislav Petkov
From: Borislav Petkov No need to use the previously stashed info in the container - simply go ahead and parse the initrd once more. It simplifies and streamlines the code a whole lot. Signed-off-by: Borislav Petkov Reviewed-by: Thomas Gleixner --- arch/x86/kernel/cpu/microcode/amd.c | 43

Re: [PATCH v1 3/3] i2c: zx2967: add i2c controller driver for ZTE's zx2967 family

2017-01-20 Thread Andy Shevchenko
On Fri, Jan 20, 2017 at 10:43 AM, Baoyou Xie wrote: > This patch adds i2c controller driver for ZTE's zx2967 family. > > +config I2C_ZX2967 > + bool "ZTE zx2967 I2C support" No module? > + depends on ARCH_ZX > + default y Would architecture selects it instead? > + help

[PATCH 13/16] x86/microcode/AMD: Unify load_ucode_amd_ap()

2017-01-20 Thread Borislav Petkov
From: Borislav Petkov Use a version for both bitness by adding a helper which does the actual container finding and parsing which can be used on any CPU - BSP or AP. Streamlines the paths more. Signed-off-by: Borislav Petkov --- arch/x86/kernel/cpu/microcode/amd.c | 81 ++--

[PATCH 12/16] x86/microcode/AMD: Check patch level only on the BSP

2017-01-20 Thread Borislav Petkov
From: Borislav Petkov Check final patch levels for AMD only on the BSP. This way, we decide early and only once whether to continue loading or to leave the loader disabled on such systems. Simplify a lot. Signed-off-by: Borislav Petkov --- arch/x86/include/asm/microcode_amd.h | 2 - arch/x86

[PATCH 08/16] x86/microcode: Decrease CPUID use

2017-01-20 Thread Borislav Petkov
From: Borislav Petkov Get CPUID(1).EAX value once per CPU and propagate value into the callers instead of conveniently calling it every time. Signed-off-by: Borislav Petkov Reviewed-by: Thomas Gleixner --- arch/x86/kernel/cpu/microcode/amd.c | 52 +--- arch/x8

[PATCH 07/16] x86/microcode/AMD: Rework container parsing

2017-01-20 Thread Borislav Petkov
From: Borislav Petkov It was pretty clumsy before and the whole work of parsing the microcode containers was spread around the functions wrongly. Clean it up so that there's a main scan_containers() function which iterates over the microcode blob and picks apart the containers glued together. Fo

Re: [PATCH v2 2/2] perf/core: Remove perf_cpu_context::unique_pmu

2017-01-20 Thread David Carrillo-Cisneros
On Fri, Jan 20, 2017 at 1:20 AM, Peter Zijlstra wrote: > On Wed, Jan 18, 2017 at 11:24:54AM -0800, David Carrillo-Cisneros wrote: >> cpuctx->unique_pmu was originally introduced as a way to identify cpuctxs >> with shared pmus in order to avoid visiting the same cpuctx more than once >> in a for_e

<    1   2   3   4   5   6   7   8   >