[RFC][PATCH 0/4] x86, mpx: Support larger address space (MAWA)

2017-01-26 Thread Dave Hansen
Kirill is chugging right along getting his 5-level paging[1] patch set ready to be merged. I figured I'd share an early draft of the MPX support that will to go along with it. Background: there is a lot more detail about what bounds tables are in the changelog for fe3d197f843. But, basically

[RFC][PATCH 2/4] x86, mpx: update MPX to grok larger bounds tables

2017-01-26 Thread Dave Hansen
As mentioned repeatedly, larger address spaces mean larger MPX bounds tables. The MPX code in the kernel needs to walk these tables in order to populate them on demand as well as unmap them when memory is freed. This updates the bounds table walking code to understand how to walk the larger

Re: perf/jit doesn't cope well with mprotect() to jit containing pages

2017-01-26 Thread Peter Zijlstra
On Mon, Dec 12, 2016 at 09:49:03AM +0100, Peter Zijlstra wrote: > > BTW, it's also a bit weird that those MMAP2 records triggered by > > mprotect/mmap, have prot set to 0... > > Yes, mprotect() does: vma->vm_flags = newflags; before calling > perf_event_mmap(vma); which then looks at

[PATCH linux v4 1/6] hwmon: Add core On-Chip Controller support for POWER CPUs

2017-01-26 Thread eajames . ibm
From: "Edward A. James" Add core support for polling the OCC for it's sensor data and parsing that data into sensor-specific information. Signed-off-by: Edward A. James Signed-off-by: Andrew Jeffery --- Documentation/hwmon/occ| 40

Re: mm, vmscan: commit makes PAE kernel crash nightly (bisected)

2017-01-26 Thread Trevor Cordes
On 2017-01-24 Michal Hocko wrote: > On Sun 22-01-17 18:45:59, Trevor Cordes wrote: > [...] > > Also, completely separate from your patch I ran mhocko's 4.9 tree > > with mem=2G to see if lower ram amount would help, but it didn't. > > Even with 2G the system oom and hung same as usual. So far the

Re: [PATCH] clk: meson8b: fix clk81 register address

2017-01-26 Thread Stephen Boyd
On 01/25, Jerome Brunet wrote: > During meson8b clock probe, clk81 register address is fixed twice. > First using the meson8b_clk_gates array, then by directly changing > meson8b_clk81 register. > > As a result meson8b_clk81.reg = HHI_MPEG_CLK_CNTL + clk_base + clk_base. > > Fixed by just

Re: [PATCH v2] clk: qcom: gdsc: Fix handling of hw control enable/disable

2017-01-26 Thread Stephen Boyd
On 01/23, Rajendra Nayak wrote: > Once a gdsc is brought in and out of HW control, there is a > power down and up cycle which can take upto 1us. Polling on > the gdsc status immediately after the hw control enable/disable > can mislead software/firmware to belive the gdsc is already either on > or

[GIT PULL] Power management fixes for v4.10-rc6

2017-01-26 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-4.10-rc6 with top-most commit ff7e593c9cf3ccceaab7ac600cbd52cb9ff4c57a Merge branches 'pm-sleep' and 'pm-cpufreq' on top of commit 7a308bb3016f57e5be11a677d15b821536419d36 Linux

[PATCH linux v4 6/6] hwmon: occ: Add callbacks for parsing P9 OCC datastructures

2017-01-26 Thread eajames . ibm
From: "Edward A. James" Add functions to parse the data structures that are specific to the OCC on the POWER9 processor. These are the sensor data structures, including temperature, frequency, power, and "caps." Signed-off-by: Edward A. James

[PATCH linux v4 5/6] hwmon: occ: Add hwmon implementation for the P8 OCC

2017-01-26 Thread eajames . ibm
From: "Edward A. James" Add code to tie the hwmon sysfs code and the POWER8 OCC code together, as well as probe the entire driver from the I2C bus. I2C is the communication method between the BMC and the P8 OCC. Signed-off-by: Edward A. James

[PATCH linux v4 0/6] drivers: hwmon: Add On-Chip Controller drive

2017-01-26 Thread eajames . ibm
From: "Edward A. James" This patchset adds a hwmon driver to support the OCC (On-Chip Controller) on the IBM POWER8 and POWER9 processors, from a BMC (Baseboard Management Controller). The OCC is an embedded processor that provides real time power and thermal monitoring. The

[PATCH linux v4 4/6] hwmon: occ: Add callbacks for parsing P8 OCC datastructures

2017-01-26 Thread eajames . ibm
From: "Edward A. James" Add functions to parse the data structures that are specific to the OCC on the POWER8 processor. These are the sensor data structures, including temperature, frequency, power, and "caps." Signed-off-by: Edward A. James

Re: [PATCH 12/22] ARM: gemini: DT for the Cortina Gemini SoC platforms

2017-01-26 Thread Arnd Bergmann
On Sunday, January 22, 2017 1:22:36 PM CET Linus Walleij wrote: > + > +/* Can we just use CONFIG_DEBUG_UART_PHYS and CONFIG_DEBUG_UART_VIRT? */ > +#define GEMINI_UART_BASE 0x4200 > +#define GEMINI_UART_VBASE 0xf420 > + > +/* This is needed for LL-debug/earlyprintk/debug-macro.S */ >

[PATCH 02/13] mmc: bcm2835: use bcm2835_read_wait_sdcmd in bcm2835_send_command

2017-01-26 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- drivers/mmc/host/bcm2835.c | 28 +++- 1 file changed, 7 insertions(+), 21 deletions(-) diff --git a/drivers/mmc/host/bcm2835.c b/drivers/mmc/host/bcm2835.c index ceee4cf..ffb9140 100644 --- a/drivers/mmc/host/bcm2835.c

[PATCH 05/13] mmc: bcm2835: call bcm2835_block_irq from irqthread

2017-01-26 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- drivers/mmc/host/bcm2835.c | 31 ++- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/drivers/mmc/host/bcm2835.c b/drivers/mmc/host/bcm2835.c index d25b85a..8270c76 100644 ---

[PATCH 06/13] mmc: bcm2835: add bcm2835_check_cmd_error

2017-01-26 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- drivers/mmc/host/bcm2835.c | 58 -- 1 file changed, 35 insertions(+), 23 deletions(-) diff --git a/drivers/mmc/host/bcm2835.c b/drivers/mmc/host/bcm2835.c index 8270c76..33eaebd 100644 ---

[PATCH 01/13] mmc: bcm2835: add bcm2835_read_wait_sdcmd

2017-01-26 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- drivers/mmc/host/bcm2835.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/drivers/mmc/host/bcm2835.c b/drivers/mmc/host/bcm2835.c index 9744517..ceee4cf 100644 --- a/drivers/mmc/host/bcm2835.c +++

Re: fs, net: deadlock between bind/splice on af_unix

2017-01-26 Thread Mateusz Guzik
On Tue, Jan 17, 2017 at 01:21:48PM -0800, Cong Wang wrote: > On Mon, Jan 16, 2017 at 1:32 AM, Dmitry Vyukov wrote: > > On Fri, Dec 9, 2016 at 7:41 AM, Al Viro wrote: > >> On Thu, Dec 08, 2016 at 10:32:00PM -0800, Cong Wang wrote: > >> > >>> > Why do

[PATCH 10/13] mmc: bcm2835: work queue is dead code now, zap

2017-01-26 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- drivers/mmc/host/bcm2835.c | 24 1 file changed, 24 deletions(-) diff --git a/drivers/mmc/host/bcm2835.c b/drivers/mmc/host/bcm2835.c index 5c588d9..6a1fef3 100644 --- a/drivers/mmc/host/bcm2835.c +++

[PATCH 13/13] mmc: bcm2835: use bcm2835_read_wait_sdcmd in bcm2835_finish_command

2017-01-26 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- drivers/mmc/host/bcm2835.c | 56 +- 1 file changed, 1 insertion(+), 55 deletions(-) diff --git a/drivers/mmc/host/bcm2835.c b/drivers/mmc/host/bcm2835.c index 82caddc..64a2334 100644 ---

[PATCH 04/13] mmc: bcm2835: add bcm2835_check_data_error

2017-01-26 Thread Gerd Hoffmann
Factor out common code. Signed-off-by: Gerd Hoffmann --- drivers/mmc/host/bcm2835.c | 30 -- 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/drivers/mmc/host/bcm2835.c b/drivers/mmc/host/bcm2835.c index 6f9fb12..d25b85a 100644 ---

[PATCH 03/13] mmc: bcm2835: add bcm2835_threaded_irq

2017-01-26 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- drivers/mmc/host/bcm2835.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/bcm2835.c b/drivers/mmc/host/bcm2835.c index ffb9140..6f9fb12 100644 --- a/drivers/mmc/host/bcm2835.c +++

[PATCH 12/13] mmc: bcm2835: move timeout to thread context

2017-01-26 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- drivers/mmc/host/bcm2835.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/mmc/host/bcm2835.c b/drivers/mmc/host/bcm2835.c index fc2d02f..82caddc 100644 --- a/drivers/mmc/host/bcm2835.c +++

[PATCH 11/13] mmc: bcm2835: kill tasklet

2017-01-26 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- drivers/mmc/host/bcm2835.c | 53 -- 1 file changed, 14 insertions(+), 39 deletions(-) diff --git a/drivers/mmc/host/bcm2835.c b/drivers/mmc/host/bcm2835.c index 6a1fef3..fc2d02f 100644 ---

[PATCH 09/13] mmc: bcm2835: switch locking to mutex

2017-01-26 Thread Gerd Hoffmann
so we can sleep now in most bcm2835 code. especially bcm2835_finish_command can always sleep. FIXME: timeout timer seems to run in irq context. FIXME: tasklet seems to run in irq context too. Signed-off-by: Gerd Hoffmann --- drivers/mmc/host/bcm2835.c | 74

[PATCH 08/13] mmc: bcm2835: split bcm2835_data_irq

2017-01-26 Thread Gerd Hoffmann
pio transfers stay in irq handler. handle finished xfers moved to threaded handler. most bcm2835 code runs in thread context now. Signed-off-by: Gerd Hoffmann --- drivers/mmc/host/bcm2835.c | 32 ++-- 1 file changed, 26 insertions(+), 6

[PATCH 07/13] mmc: bcm2835: call bcm2835_busy_irq from irqthread

2017-01-26 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- drivers/mmc/host/bcm2835.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/mmc/host/bcm2835.c b/drivers/mmc/host/bcm2835.c index 33eaebd..814812b 100644 ---

RE: [patch 0/2] tsc/adjust: Cure suspend/resume issues and prevent TSC deadline timer irq storm

2017-01-26 Thread Stanton, Kevin B
On Thurs, 15 Dec 2016, Thomas Gleixner wrote: >See the SDM. It suggests that the deadline is compared to the TSC value. >I don't care how it is implemented, but I very much care about it being >documented in the way it is implemented, which is obviously not the case. The TSC_DEADLINE behavior

Re: [PATCH v4 3/4] dt-bindings: phy: Add support for QMP phy

2017-01-26 Thread Stephen Boyd
On 01/24, Vivek Gautam wrote: > > Below is one binding that works for me. > >phy@34000 { > compatible = "qcom,msm8996-qmp-pcie-phy"; > reg = <0x034000 0x488>; > #clock-cells = <1>; >

Re: [PATCH] clk: gxbb: fix CLKID_ETH defined twice

2017-01-26 Thread Stephen Boyd
On 01/26, Jerome Brunet wrote: > CLKID_ETH is define in the dt-bindings but has not be commented out in the > clock driver. Just do it now. > > Fixes: 738f66d3211d ("clk: gxbb: add AmLogic GXBB clk controller driver") > Signed-off-by: Jerome Brunet > --- Acked-by: Stephen

Re: [PATCH] Revert "regulator: fixed: add support for ACPI interface"

2017-01-26 Thread Rafael J. Wysocki
On Thu, Jan 26, 2017 at 1:31 PM, Mark Brown wrote: > On Thu, Jan 26, 2017 at 11:56:07AM +0100, Rafael J. Wysocki wrote: > >> Did it actually go to linux-acpi, BTW? > > Don't think so. Well, that may be why it wasn't caught, then. It generally is a good idea to request patch

Re: [PATCH 01/13] mmc: bcm2835: add bcm2835_read_wait_sdcmd

2017-01-26 Thread Florian Fainelli
On 01/26/2017 03:37 PM, Gerd Hoffmann wrote: > Signed-off-by: Gerd Hoffmann Few things with your submission: - if you send more than one patch, a cover letter is a welcome to explain your changes - try to provide commit messages for things that are not obvious (in fact, most

Re: perf/jit doesn't cope well with mprotect() to jit containing pages

2017-01-26 Thread Andres Freund
Hi, On 2017-01-26 13:34:35 -0800, Stephane Eranian wrote: > On Thu, Jan 26, 2017 at 1:22 PM, Andres Freund wrote: > > > > On 2017-01-26 13:17:56 -0800, Stephane Eranian wrote: > > > > Nope, not yet. I didn't want to submit an implementation that has the > > > > ugly hack of

[PATCH V3 net-next 06/14] net/ena: fix NULL dereference when removing the driver after device reset failed

2017-01-26 Thread Netanel Belgazal
If for some reason the device stops responding, and the device reset failes to recover the device, the mmio register read data structure will not be reinitialized. On driver removal, the driver will also try to reset the device, but this time the mmio data structure will be NULL. To solve this

[PATCH V3 net-next 07/14] net/ena: refactor ena_get_stats64 to be atomic context safe

2017-01-26 Thread Netanel Belgazal
ndo_get_stat64() can be called from atomic context, but the current implementation sends an admin command to retrieve the statistics from the device. This admin command can sleep. This patch re-factors the implementation of ena_get_stats64() to use the {rx,tx}bytes/count from the driver's inner

[PATCH V3 net-next 04/14] net/ena: fix ethtool RSS flow configuration

2017-01-26 Thread Netanel Belgazal
ena_flow_data_to_flow_hash and ena_flow_hash_to_flow_type treat the ena_flow_hash_to_flow_type enum as power of two values. Change the values of ena_admin_flow_hash_fields to be power of two values. This bug effect the ethtool set/get rxnfc. ethtool will report wrong values hash fields for get

[PATCH V3 net-next 09/14] net/ena: use napi_complete_done() return value

2017-01-26 Thread Netanel Belgazal
Do not unamsk interrupts if we are in busy poll mode. Signed-off-by: Netanel Belgazal --- drivers/net/ethernet/amazon/ena/ena_netdev.c | 44 ++-- 1 file changed, 29 insertions(+), 15 deletions(-) diff --git

[PATCH V3 net-next 03/14] net/ena: fix queues number calculation

2017-01-26 Thread Netanel Belgazal
The ENA driver tries to open a queue per vCPU. To determine how many vCPUs the instance have it uses num_possible_cpus() while it should have use num_online_cpus() instead. Signed-off-by: Netanel Belgazal --- drivers/net/ethernet/amazon/ena/ena_netdev.c | 2 +- 1 file

[PATCH 2/4] irqchip: Add IRQCHIP_DECLARE_DRIVER macro

2017-01-26 Thread Andrey Smirnov
Add IRQCHIP_DECLARE_DRIVER macro to allow having driver code that both registers irqchip and a platform driver. Based on analogous code of CLK_OF_DECLARE_DRIVER. Cc: yurov...@gmail.com Cc: Shawn Guo Cc: Thomas Gleixner Cc: Jason Cooper

Re: [PATCH] [linux-next] Doc: Fix double words in Documentation

2017-01-26 Thread Jonathan Corbet
On Tue, 24 Jan 2017 21:45:15 +0900 Masanari Iida wrote: > This patch fix some double words found in Documentation. Applied, thanks. jon

[RFC][PATCH 4/4] x86, mpx: context-switch new MPX address size MSR

2017-01-26 Thread Dave Hansen
As mentioned in previous patches, larger address spaces mean larger MPX tables. But, the entire system is either entirely using 5-level paging, or not. We do not mix pagetable formats. If the size of the MPX tables depended soley on the paging mode, old binaries would break because the format

[RFC][PATCH 1/4] x86, mpx: introduce per-mm MPX table size tracking

2017-01-26 Thread Dave Hansen
Larger address spaces mean larger MPX bounds table sizes. This tracks which size tables we are using. "MAWA" is what the hardware documentation calls this feature: MPX Address-Width Adjust. We will carry that nomenclature throughout this series. The new field will be optimized and get packed

Re: [PATCH v2 1/3] zh_CN/CodingStyle: improve translation

2017-01-26 Thread Jonathan Corbet
On Wed, 25 Jan 2017 12:14:31 +0800 Andy Deng wrote: > Some of the sentences in Chapters 19 and 20 are re-translated: > > - Fixed translation errors in Section 2 of Chapter 19 to prevent > misleading readers; > - Retranslate some sentences to make the translation more

[RFC][PATCH 3/4] x86, mpx: extend MPX prctl() to pass in size of bounds directory

2017-01-26 Thread Dave Hansen
The MPX bounds tables are indexed by virtual address. A larger virtual address space means that we need larger tables. But, we need to ensure that userspace and the kernel agree about the size of these tables. To do this, we require that userspace pass in the size of the tables if they want a

Re: [PATCHv3 4/5] arm: mvebu: Add device tree for 98DX3236 SoCs

2017-01-26 Thread Chris Packham
On 27/01/17 09:24, Chris Packham wrote: > On 27/01/17 04:10, Gregory CLEMENT wrote: >>> + internal-regs { > > [snip] > >>> + >>> + dfx-registers { >> node label >> > > [snip] > >>> + switch { >> node label >> > > These are peers to the internal-regs, i.e. parts of the

Re: perf/jit doesn't cope well with mprotect() to jit containing pages

2017-01-26 Thread Andres Freund
On 2017-01-26 23:15:08 +0100, Peter Zijlstra wrote: > On Mon, Dec 12, 2016 at 09:49:03AM +0100, Peter Zijlstra wrote: > > > > BTW, it's also a bit weird that those MMAP2 records triggered by > > > mprotect/mmap, have prot set to 0... > > > > Yes, mprotect() does: vma->vm_flags = newflags; before

Re: perf/jit doesn't cope well with mprotect() to jit containing pages

2017-01-26 Thread Andres Freund
Hi Stephane, On 2017-01-26 14:51:02 -0800, Stephane Eranian wrote: > Ok, I think I see the problem now (sorry was slow): No worries ;) > the timeline is as follows as seen from the user in your case: > > T0: mmap(0x1000) for func1() > T1 mmap(0x2000) for func1(); > T3: jit emits info

Re: perf/jit doesn't cope well with mprotect() to jit containing pages

2017-01-26 Thread Stephane Eranian
On Thu, Jan 26, 2017 at 3:09 PM, Andres Freund wrote: > Hi Stephane, > > > On 2017-01-26 14:51:02 -0800, Stephane Eranian wrote: >> Ok, I think I see the problem now (sorry was slow): > > No worries ;) > > >> the timeline is as follows as seen from the user in your case:

Re: [PATCH v4 3/3] p54: convert to sysdata API

2017-01-26 Thread Linus Torvalds
On Thu, Jan 26, 2017 at 1:50 PM, Luis R. Rodriguez wrote: > > OK I've added a respective helper call which would map 1-1 with the > old sync mechanism to enable a 1-1 change, this will be called > driver_data_request_simple(), but let me know if there is a preference > for

[PATCH 1/3] virtio_pci: Use kcalloc() in vp_request_msix_vectors()

2017-01-26 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 26 Jan 2017 22:10:18 +0100 A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus reuse the corresponding function "kcalloc". This issue was detected by

[PATCH 0/4] GPCv2 power domain support

2017-01-26 Thread Andrey Smirnov
Hi everyone, This patchset adds code for basic power domain subsystem integration of GPCv2 IP block (found on i.MX7) as well as a couple of small related changes. This code is developed as a part of ongoing effort to upstream i.MX7 PCIe support, full source code of which is avalible here:

Re: [PATCH v2 2/2] virtio_scsi: Implement fc_host

2017-01-26 Thread Michael S. Tsirkin
On Thu, Jan 26, 2017 at 11:41:09AM +0800, Fam Zheng wrote: > This implements the VIRTIO_SCSI_F_FC_HOST feature by reading the config > fields and presenting them as sysfs fc_host attributes. The config > change handler is added here because primary_active will toggle during > migration. Looks

[PATCH 4/4] irqchip/imx-gpcv2: Add power domain support

2017-01-26 Thread Andrey Smirnov
Add code allowing for control of various power domains managed by GPCv2 IP block found in i.MX7 series of SoCs. Power domains covered by this patch are: - PCIE PHY - MIPI PHY - USB HSIC PHY - USB OTG1/2 PHY Support for any other power domain controlled by GPC is not

Re: ibmvtpm byteswapping inconsistency

2017-01-26 Thread Jason Gunthorpe
On Thu, Jan 26, 2017 at 09:22:48PM +0100, Michal Such??nek wrote: > This is repeated a few times in the driver so I added memset to quiet > gcc and make behavior deterministic in case the unused fields get some > meaning in the future. Yep, reserved certainly needs to be zeroed.. Can you send a

[PATCH V3 net-next 01/14] net/ena: remove ntuple filter support from device feature list

2017-01-26 Thread Netanel Belgazal
Remove NETIF_F_NTUPLE from netdev->features. The ENA device driver does not support ntuple filtering. Signed-off-by: Netanel Belgazal --- drivers/net/ethernet/amazon/ena/ena_netdev.c | 1 - 1 file changed, 1 deletion(-) diff --git

Re: perf/jit doesn't cope well with mprotect() to jit containing pages

2017-01-26 Thread Peter Zijlstra
On Thu, Jan 26, 2017 at 01:00:52PM -0800, Andres Freund wrote: > The problem is that (quoted below) without that hack the subsequent > mmaps just expand the previous VMAs which leads to perf loosing its > (address,range) -> symbol mappings for previously (in the same expanded > range) known

[PATCH V3 net-next 13/14] net/ena: change condition for host attribute configuration

2017-01-26 Thread Netanel Belgazal
Move the host info config to be the first admin command that is executed. This change require the driver to remove the 'feature check' from host info configuration flow. The check is removed since the supported features bitmask field is retrieved only after calling ENA_ADMIN_DEVICE_ATTRIBUTES

[PATCH V3 net-next 12/14] net/ena: change driver's default timeouts

2017-01-26 Thread Netanel Belgazal
The timeouts were too agressive and sometimes cause false alarms. Signed-off-by: Netanel Belgazal --- drivers/net/ethernet/amazon/ena/ena_com.c| 4 ++-- drivers/net/ethernet/amazon/ena/ena_netdev.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff

[PATCH V3 net-next 11/14] net/ena: reduce the severity of ena printouts

2017-01-26 Thread Netanel Belgazal
Signed-off-by: Netanel Belgazal --- drivers/net/ethernet/amazon/ena/ena_com.c| 27 +-- drivers/net/ethernet/amazon/ena/ena_netdev.c | 14 +++--- 2 files changed, 28 insertions(+), 13 deletions(-) diff --git

[PATCH V3 net-next 10/14] net/ena: use READ_ONCE to access completion descriptors

2017-01-26 Thread Netanel Belgazal
Completion descriptors are accessed from the driver and from the device. To avoid reading the old value, use READ_ONCE macro. Signed-off-by: Netanel Belgazal --- drivers/net/ethernet/amazon/ena/ena_com.h | 1 + drivers/net/ethernet/amazon/ena/ena_eth_com.c | 8

[PATCH V3 net-next 02/14] net/ena: fix error handling when probe fails

2017-01-26 Thread Netanel Belgazal
When driver fails in probe, it will release all resources, including adapter. In case of probe failure, ena_remove should not try to free the adapter resources. Signed-off-by: Netanel Belgazal --- drivers/net/ethernet/amazon/ena/ena_netdev.c | 1 + 1 file changed, 1

[PATCH V3 net-next 14/14] net/ena: update driver version to 1.1.2

2017-01-26 Thread Netanel Belgazal
Signed-off-by: Netanel Belgazal --- drivers/net/ethernet/amazon/ena/ena_netdev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/amazon/ena/ena_netdev.h b/drivers/net/ethernet/amazon/ena/ena_netdev.h index efe0ea1..ed62d8e

[PATCH V3 net-next 00/14] Bug Fixes in ENA driver.

2017-01-26 Thread Netanel Belgazal
Changes between V3 and V2: * Fix typos and correct alignment in commit messages. * use napi_complete_done() return value to determine when the napi handler needs to unmask the interrupts rather than implementing non standard solution. * Remove new features from this patchset and leave bug fixes

Re: [PATCH] kernel-doc: Handle returning pointers to pointers

2017-01-26 Thread Jonathan Corbet
On Mon, 23 Jan 2017 00:18:10 -0800 Matthew Wilcox wrote: > Clearly nobody ever tried to build the documentation for the radix tree > before: > > include/linux/radix-tree.h:400: warning: cannot understand function > prototype: 'void ** radix_tree_iter_init(struct

Re: perf/jit doesn't cope well with mprotect() to jit containing pages

2017-01-26 Thread Stephane Eranian
On Thu, Jan 26, 2017 at 2:19 PM, Peter Zijlstra wrote: > On Thu, Jan 26, 2017 at 01:00:52PM -0800, Andres Freund wrote: >> The problem is that (quoted below) without that hack the subsequent >> mmaps just expand the previous VMAs which leads to perf loosing its >>

Re: perf/jit doesn't cope well with mprotect() to jit containing pages

2017-01-26 Thread Andres Freund
On 2017-01-26 14:26:12 -0800, Stephane Eranian wrote: > On Thu, Jan 26, 2017 at 2:19 PM, Peter Zijlstra wrote: > > On Thu, Jan 26, 2017 at 01:00:52PM -0800, Andres Freund wrote: > >> The problem is that (quoted below) without that hack the subsequent > >> mmaps just expand

[PATCH 1/4] drivers/irqchip: Enable IMX_GPCV2 on i.MX7 by default

2017-01-26 Thread Andrey Smirnov
Cc: yurov...@gmail.com Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier Cc: Shawn Guo Signed-off-by: Andrey Smirnov --- drivers/irqchip/Kconfig | 2 +- 1 file changed, 1

Re: [PATCH 2/2] base/memory, hotplug: fix a kernel oops in show_valid_zones()

2017-01-26 Thread Kani, Toshimitsu
On Thu, 2017-01-26 at 13:52 -0800, Andrew Morton wrote: > On Thu, 26 Jan 2017 14:44:15 -0700 Toshi Kani > wrote: > > > Reading a sysfs memoryN/valid_zones file leads to the following > > oops when the first page of a range is not backed by struct page. > > show_valid_zones()

Re: ibmvtpm byteswapping inconsistency

2017-01-26 Thread Michal Suchanek
On 26 January 2017 at 23:05, Jason Gunthorpe wrote: > On Thu, Jan 26, 2017 at 09:22:48PM +0100, Michal Such??nek wrote: > >> This is repeated a few times in the driver so I added memset to quiet >> gcc and make behavior deterministic in case the unused fields get

Re: perf/jit doesn't cope well with mprotect() to jit containing pages

2017-01-26 Thread Stephane Eranian
On Thu, Jan 26, 2017 at 2:38 PM, Andres Freund wrote: > On 2017-01-26 14:26:12 -0800, Stephane Eranian wrote: >> On Thu, Jan 26, 2017 at 2:19 PM, Peter Zijlstra wrote: >> > On Thu, Jan 26, 2017 at 01:00:52PM -0800, Andres Freund wrote: >> >> The problem

[PATCH] PCI/ASPM: reconfigure ASPM following hotplug

2017-01-26 Thread Sinan Kaya
When the operating system is booted with the default ASPM policy, the current code is determining the ASPM policy by querying the enable/disable states from ASPM registers. In the case of hotplug removal, the ASPM registers get cleared by calling the exit function. An insertion following remove

Re: [PATCH 8/8] asus-wmi: Don't register rfkill if ASHS and user bit are present

2017-01-26 Thread Joe Perches
On Thu, 2017-01-26 at 10:30 -0500, João Paulo Rechi Vita wrote: > Some Asus laptops that have an airplane-mode indicator LED, also have > the WMI WLAN user bit set, and the following bits in their DSDT: style trivia: > diff --git a/drivers/platform/x86/asus-wmi.c

Re: Cherryview wake up events

2017-01-26 Thread Andy Shevchenko
On Tue, Jan 24, 2017 at 9:23 PM, Johannes Stezenbach wrote: > On Tue, Jan 24, 2017 at 04:28:29PM +0200, Andy Shevchenko wrote: >> They probably release just almost all One Big Ugly patch from official >> BSP, which by some reason, includes all Intel MID SoCs, Baytrail. >> I think

[PATCH V2 1/2] netfilter: ctnetlink: Fix regression in CTA_STATUS processing

2017-01-26 Thread Kevin Cernekee
The libnetfilter_conntrack userland library always sets IPS_CONFIRMED when building a CTA_STATUS attribute. If this toggles the bit from 0->1, the parser will return an error. On Linux 4.4+ this will cause any NFQA_EXP attribute in the packet to be ignored. This breaks conntrackd's userland

[PATCH V2 2/2] netfilter: ctnetlink: Fix regression in CTA_HELP processing

2017-01-26 Thread Kevin Cernekee
Prior to Linux 4.4, it was usually harmless to send a CTA_HELP attribute containing the name of the current helper. That is no longer the case: as of Linux 4.4, if ctnetlink_change_helper() returns an error from the ct->master check, processing of the request will fail, skipping the NFQA_EXP

Re: ibmvtpm byteswapping inconsistency

2017-01-26 Thread Ashley Lai
Adding Vicky from IBM. On 01/26/2017 04:05 PM, Jason Gunthorpe wrote: On Thu, Jan 26, 2017 at 09:22:48PM +0100, Michal Such??nek wrote: This is repeated a few times in the driver so I added memset to quiet gcc and make behavior deterministic in case the unused fields get some meaning in the

Re: [RFC][PATCH 7/7] kref: Implement using refcount_t

2017-01-26 Thread Kees Cook
On Mon, Nov 14, 2016 at 9:39 AM, Peter Zijlstra wrote: > Provide refcount_t, an atomic_t like primitive built just for > refcounting. > > It provides overflow and underflow checks as well as saturation > semantics such that when it overflows, we'll never attempt to free it >

[PATCH linux v4 2/6] hwmon: occ: Add sysfs interface

2017-01-26 Thread eajames . ibm
From: "Edward A. James" Add a generic mechanism to expose the sensors provided by the OCC in sysfs. Signed-off-by: Edward A. James Signed-off-by: Andrew Jeffery --- Documentation/hwmon/occ | 62 ++

[PATCH linux v4 3/6] hwmon: occ: Add I2C transport implementation for SCOM operations

2017-01-26 Thread eajames . ibm
From: "Edward A. James" Add functions to send SCOM operations over I2C bus. The BMC can communicate with the Power8 host processor over I2C, but needs to use SCOM operations in order to access the OCC register space. Signed-off-by: Edward A. James

[PATCH] x86/events: Add an AMD-specific makefile

2017-01-26 Thread Borislav Petkov
From: Borislav Petkov Move the AMD pieces from the generic Makefile so that $ make arch/x86/events/amd/.s can work too. Otherwise you get $ make arch/x86/events/amd/ibs.s scripts/Makefile.build:44: arch/x86/events/amd/Makefile: No such file or directory make[1]: *** No rule to make

Re: [Bug fix]mips 64bits checksum error -- csum_tcpudp_nofold

2017-01-26 Thread Ralf Baechle
On Wed, Jan 25, 2017 at 10:13:32AM -0800, Alexander Duyck wrote: > On Tue, Jan 24, 2017 at 8:35 PM, Mark Zhang wrote: > > If the input parameters as saddr = 0xc0a8fd60,daddr = 0xc0a8fda1,len = > > 80, proto = 17, sum =0x7eae049d. > > The correct result should be 1, but original function return

Re: [PATCH 2/2] x86/fpu: copy MXCSR & MXCSR_FLAGS with SSE/YMM state

2017-01-26 Thread Ingo Molnar
* r...@redhat.com wrote: > From: Rik van Riel > > On Skylake CPUs I noticed that XRSTOR is unable to deal with states > created by copyout_from_xsaves if the xstate has only SSE/YMM state, and > no FP state. That is, xfeatures had XFEATURE_MASK_SSE set, but not > XFEATURE_MASK_FP. > > The

Re: [PATCH v5 1/4] usb: dbc: early driver for xhci debug capability

2017-01-26 Thread Ingo Molnar
* Lu Baolu wrote: > Hi Ingo, > > On 01/26/2017 03:19 PM, Ingo Molnar wrote: > > * Lu Baolu wrote: > > > >> Fair enough. > >> > >> USB connection is stable enough, unless the user unplugs the > >> USB cable during debugging. > > What does the hardware do in this case? The XHCI registers are in

[PATCH] x86/fpu: Rename copyin_to_xsaves()/copyout_from_xsaves() to copy_user_to_xstate()/copy_xstate_to_user()

2017-01-26 Thread Ingo Molnar
* Ingo Molnar wrote: > 1) > > the 'copyin/copyout' nomenclature needlessly departs from what the modern FPU > code > uses, which is: The patch below implements this first step. Untested. Thanks, Ingo > >From c9459f7130a33c9d0108ca1f93306fb71772038f Mon Sep 17 00:00:00 2001

Re: [PATCH 6/7] drm/exynos/decon5433: signal vblank only on odd fields

2017-01-26 Thread Andrzej Hajda
On 25.01.2017 15:06, Ville Syrjälä wrote: > On Mon, Jan 23, 2017 at 10:15:16AM +0100, Andrzej Hajda wrote: >> On 20.01.2017 14:55, Ville Syrjälä wrote: >>> On Fri, Jan 20, 2017 at 07:52:24AM +0100, Andrzej Hajda wrote: In case of interlace mode irq is generated for odd and even fields, but

Re: [PATCH v3 2/4] mpt3sas: Fix for Crusader to achieve product targets with SAS devices.

2017-01-26 Thread Johannes Thumshirn
On Mon, Jan 23, 2017 at 03:26:08PM +0530, Chaitra P B wrote: > Small glitch/degraded performance in Crusader is improved with SAS > drives by removing unnecessary spinlocks while clearing scsi command > in drivers internal lookup table. > > Signed-off-by: Chaitra P B > Signed-off-by: Suganath

Re: [PATCH v3 1/4] mpt3sas: Added print to notify cable running at a degraded speed.

2017-01-26 Thread Johannes Thumshirn
On Mon, Jan 23, 2017 at 03:26:07PM +0530, Chaitra P B wrote: > Driver processes the event MPI26_EVENT_ACTIVE_CABLE_DEGRADED > when a cable is present and is running at a degraded speed > (below the SAS3 12 Gb/s rate). Prints added > to inform the user that the cable is not running at > optimal

RE: [PATCH] Drivers: hv: vmbus: finally fix hv_need_to_signal_on_read()

2017-01-26 Thread Dexuan Cui
> From: gre...@linuxfoundation.org [mailto:gre...@linuxfoundation.org] > > > > It's interesting v4.4.44 is not impacted, but actually it needs both > > > > the 2 > patches: > > > > i.e. this patch, and the previous one: > > > > Commit a389fcfd2cb5 ("Drivers: hv: vmbus: Fix signaling logic in > >

[PATCH v2 6/8] mfd: exynos-lpass: Add support for clocks

2017-01-26 Thread Marek Szyprowski
Exynos LPASS requires some clocks to be enabled to make any access to its registers. This patch adds code for handling such clocks. For current set of registers it is enough to keep sfr0_ctrl clock enabled. Till now it worked only because those clocks were enabled by bootloader and driver probe()

[PATCH v2 1/8] soc: samsung: pmu: Add dummy support for Exynos5433 SoC

2017-01-26 Thread Marek Szyprowski
Add compatible for Exynos5433 SoC, so the driver will bind and let other drivers to use PMU regmap. Signed-off-by: Marek Szyprowski --- drivers/soc/samsung/exynos-pmu.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/soc/samsung/exynos-pmu.c

[PATCH v2 2/8] pinctrl: samsung: Ensure that pad retention is disabled on driver init

2017-01-26 Thread Marek Szyprowski
When pin controller device is a part of power domain, there is no guarantee that the power domain was not turned off and then on during boot process before probing of the pin control driver. If it happened, then pin control driver should ensure that pad retention is turned off during its probe

Re: [PATCH v2 2/2] virtio_scsi: Implement fc_host

2017-01-26 Thread Christoph Hellwig
On Thu, Jan 26, 2017 at 11:41:09AM +0800, Fam Zheng wrote: > This implements the VIRTIO_SCSI_F_FC_HOST feature by reading the config > fields and presenting them as sysfs fc_host attributes. The config > change handler is added here because primary_active will toggle during > migration. This

[PATCH v2 8/8] mfd: exynos-lpass: Add runtime PM support

2017-01-26 Thread Marek Szyprowski
Convert exisitng lpass-suspend/resume callbacks into runtime PM callbacks. This way Exynos LPASS driver will be ready for use with power domains enabled. LPASS will be runtime resumed/suspended as a result of its child devices runtime PM transitions. Signed-off-by: Marek Szyprowski Acked-by:

[PATCH v2 0/8] Pad retentions support for Exynos5433

2017-01-26 Thread Marek Szyprowski
Hello, This patchset is a first step to add support for all power domains on Exynos5433 SoCs. This patchset contains patches for Exynos pin control driver and Exynos LPASS MFD driver, which are needed to make the platform ready for adding power domains support. Patches in this patchset depends

[PATCH v2 7/8] mfd: exynos-lpass: Add missing remove() function

2017-01-26 Thread Marek Szyprowski
Disable device on driver remove and release allocated regmap. Signed-off-by: Marek Szyprowski --- drivers/mfd/exynos-lpass.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/mfd/exynos-lpass.c b/drivers/mfd/exynos-lpass.c index be264988bdc9..9dbbedad916f 100644 ---

[PATCH v2 5/8] mfd: exynos-lpass: Remove pad retention control

2017-01-26 Thread Marek Szyprowski
Pad retention should be controlled from pin control driver, so remove it from Exynos LPASS driver. After this change, no more access to PMU regmap is needed, so remove also the code for handling PMU regmap. Signed-off-by: Marek Szyprowski Acked-by: Krzysztof Kozlowski ---

Re: [PATCH RESEND] pinctrl: intel: Turn Baytrail support to tristate

2017-01-26 Thread Heikki Krogerus
On Wed, Jan 25, 2017 at 04:26:08PM +0100, Jean Delvare wrote: > The pinctrl-baytrail driver builds just fine as a module so give > users this option. > > Signed-off-by: Jean Delvare > Cc: Mika Westerberg > Cc: Heikki Krogerus OK by me. FWIW. Reviewed-by: Heikki Krogerus Thanks, --

Re: [PATCH v20 2/4] mailbox: mediatek: Add Mediatek CMDQ driver

2017-01-26 Thread Horng-Shyang Liao
Hi Jassi, On Thu, 2017-01-26 at 10:08 +0530, Jassi Brar wrote: > On Wed, Jan 4, 2017 at 8:36 AM, HS Liao wrote: > > > diff --git a/drivers/mailbox/mtk-cmdq-mailbox.c > > b/drivers/mailbox/mtk-cmdq-mailbox.c > > new file mode 100644 > > index 000..747bcd3 > > --- /dev/null > > +++

[PATCH v2 3/8] pinctrl: samsung: Add support for pad retention control for Exynos5433 SoCs

2017-01-26 Thread Marek Szyprowski
This patch adds support for retention control for Exynos5433 SoCs. Three groups of pins has been defined for retention control: common shared group for ALIVE, CPIF, eSE, FINGER, IMEM, NFC, PERIC, TOUCH pin banks and separate control for FSYS and AUD pin banks, for which PMU retention registers

[PATCH v2 4/8] arm64: dts: exynos: Add clocks to Exynos5433 LPASS module

2017-01-26 Thread Marek Szyprowski
Exynos5433 LPASS module requires some clocks for proper operation with power domain. Signed-off-by: Marek Szyprowski --- arch/arm64/boot/dts/exynos/exynos5433.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/exynos5433.dtsi

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