[PATCH v6 RESEND] r8152: Add support for setting pass through MAC address on RTL8153-AD

2016-07-11 Thread Mario Limonciello
The RTL8153-AD supports a persistent system specific MAC address. This means a device plugged into two different systems with host side support will show different (but persistent) MAC addresses. This information for the system's persistent MAC address is burned in when the system HW is built and

[PATCH] kprobes: include instead of

2016-07-11 Thread Christoph Hellwig
asm-generic headers are generic implementations for architecture specific code and should not be included by common code. Thus use the asm/ version of sections.h to get at the linker sections. Signed-off-by: Christoph Hellwig --- kernel/kprobes.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti

RE: Hi, Ingo, would you please help drop the TSC MSR calibration patch

2016-07-11 Thread Chen, Yu C
Hi, > -Original Message- > From: Pan, Jacob jun > Sent: Tuesday, July 12, 2016 5:19 AM > To: Ingo Molnar > Cc: Chen, Yu C; 'Len Brown'; Jacob Pan; H. Peter Anvin; Peter Zijlstra; > x...@kernel.org; linux-kernel@vger.kernel.org; Pan, Jacob jun > Subject: Re: Hi, Ingo, would you please help

[PATCH] printk: include instead of

2016-07-11 Thread Christoph Hellwig
asm-generic headers are generic implementations for architecture specific code and should not be included by common code. Thus use the asm/ version of sections.h to get at the linker sections. Signed-off-by: Christoph Hellwig --- kernel/printk/printk.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [lkp] [ACPI / APEI] a3e2acc5e3: kmsg.BERT:Can't_request_iomem_region<#-#>

2016-07-11 Thread Ye Xiaolong
On Sun, Jul 10, 2016 at 08:28:37PM -0700, Tony Luck wrote: >I'm very surprised that there was a BERT table on an Atom machine. More >details about the machine please. Also BIOS version. Hi, ying Could you tell me what's BERT table? and how to check the BIOS version? Thanks, Xiaolong > >Sent fr

[PATCH] DMA-API-HOWTO: is no more

2016-07-11 Thread Christoph Hellwig
So don't mention it. Signed-off-by: Christoph Hellwig --- Documentation/DMA-API-HOWTO.txt | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Documentation/DMA-API-HOWTO.txt b/Documentation/DMA-API-HOWTO.txt index 781024e..494ffac 100644 --- a/Documentation/DMA-API-HOWTO.tx

Re: [PATCH] vfs: check i_count under lock in evict_inodes

2016-07-11 Thread Al Viro
On Mon, Jul 11, 2016 at 05:15:04PM -0700, Chunwei Chen wrote: > We need to check i_count again with i_lock held, because iput might re-add > i_count when lazytime is on. Without this check, we could end up with > double-free or use-after-free. Details, please. Ideally - with a reproducer. Who is

Re: [PATCH] usb:solve resume usb device identification problem

2016-07-11 Thread Lu Baolu
Hi, On 07/11/2016 08:57 PM, Pengcheng Li wrote: > A usb device in the connection state. Then host is suspend and resume. > But the usb device could not be at the right speed. We should be reset > the reset. Have you tried applying XHCI_RESET_ON_RESUME quirk to your host controller driver? Is your

Re: [PATCH v2 4/4] ACPI / button: Add document for ACPI control method lid device restrictions

2016-07-11 Thread Dmitry Torokhov
On Mon, Jul 11, 2016 at 01:34:08PM +0200, Benjamin Tissoires wrote: > On Fri, Jul 8, 2016 at 7:51 PM, Dmitry Torokhov > wrote: > > On Fri, Jul 08, 2016 at 11:17:39AM +0200, Benjamin Tissoires wrote: > >> Hi, > >> > >> On Thu, Jul 7, 2016 at 9:11 AM, Lv Zheng wrote: > >> > There are many AML table

Re: [PATCH] amba: Support clk parents and rates assigned in DT

2016-07-11 Thread Jorge Ramirez
On 07/11/2016 11:08 PM, Stephen Boyd wrote: Add the call to of_clk_set_defaults() into the amba probe path so that devices on the amba bus can use the assigned rates and parents feature of the common clock framework. Cc: Michael Turquette Cc: Jorge Ramirez Ortiz Signed-off-by: Stephen Boyd

[PATCH v2] xen_pvscsi: reclaim the ring request when the prepairing failed

2016-07-11 Thread Bin Wu
During scsi command queueing or exception handling, if prepairing fails, we need to reclaim the failed request. Otherwise, the garbage request will be pushed into the ring for the backend to work. Signed-off-by: Bin Wu --- drivers/scsi/xen-scsifront.c | 4 ++-- 1 file changed, 2 insertions(+), 2

Re: [Xen-devel] [PATCH] xen_pvscsi: reclaim the ring request when mapping data failed

2016-07-11 Thread Bin Wu
On 2016/7/11 17:53, Juergen Gross wrote: On 11/07/16 11:50, David Vrabel wrote: On 11/07/16 10:33, Juergen Gross wrote: On 11/07/16 04:51, Bin Wu wrote: During scsi command queueing, if mapping data fails, we need to reclaim the failed request. Otherwise, the garbage request will be pushed int

[PATCH v2 1/3] Documentation: dtb: xgene: Add hwmon dts binding documentation

2016-07-11 Thread Hoan Tran
This patch adds the APM X-Gene hwmon device tree node documentation. Signed-off-by: Hoan Tran --- .../devicetree/bindings/hwmon/apm-xgene-hwmon.txt | 14 ++ 1 file changed, 14 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/apm-xgene-hwmon.txt diff

[PATCH v2 2/3] hwmon: xgene: Add hwmon driver

2016-07-11 Thread Hoan Tran
This patch adds hardware temperature and power reading support for APM X-Gene SoC using the mailbox communication interface. Signed-off-by: Hoan Tran --- Documentation/hwmon/xgene-hwmon | 30 ++ drivers/hwmon/Kconfig | 7 + drivers/hwmon/Makefile | 1 + drivers/hwmon/xgen

[PATCH v2 3/3] arm64: dts: apm: Add X-Gene SoC hwmon to device tree

2016-07-11 Thread Hoan Tran
This patch adds DT node to enable hwmon driver for APM X-Gene SoC. Signed-off-by: Hoan Tran --- arch/arm64/boot/dts/apm/apm-shadowcat.dtsi | 5 + arch/arm64/boot/dts/apm/apm-storm.dtsi | 5 + 2 files changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/apm/apm-shadowcat.dtsi

[PATCH v2 0/3] hwmon: xgene: Add support for X-Gene hwmon driver

2016-07-11 Thread Hoan Tran
This patch set adds hardware temperature and power reading support ​for APM X-Gene SoC using the mailbox communication interface. For device tree, it is the standard DT mailbox. For ACPI, it is the PCC mailbox. For ACPI, tested with this patch[1] which supports PCC subspace 2 [1] http://www.spinic

[PATCH] media: s5p-mfc remove void function return statement

2016-07-11 Thread Shuah Khan
Remove void function return statement Signed-off-by: Shuah Khan --- drivers/media/platform/s5p-mfc/s5p_mfc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c index c96421f..b6fde20 100644 --- a/drivers/media/p

[PATCH v1 3/3] seccomp: Remove 2-phase API documentation

2016-07-11 Thread Mickaël Salaün
Fixes: 8112c4f140fa ("seccomp: remove 2-phase API") Signed-off-by: Mickaël Salaün Cc: Kees Cook Cc: Andy Lutomirski Cc: James Morris --- arch/Kconfig | 11 --- 1 file changed, 11 deletions(-) diff --git a/arch/Kconfig b/arch/Kconfig index d794384a0404..96e434638767 100644 --- a/arch/

Re: [PATCH] drm/vc4: remove redundant ret status check

2016-07-11 Thread Eric Anholt
Colin King writes: > From: Colin Ian King > > At the current point where ret is being checked for non-zero it has > not changed since it was initialized to zero, hence the check and the > label unref are redundant and can be removed. Reviewed-by: Eric Anholt I'll put this in my next pull requ

[PATCH] vfs: check i_count under lock in evict_inodes

2016-07-11 Thread Chunwei Chen
We need to check i_count again with i_lock held, because iput might re-add i_count when lazytime is on. Without this check, we could end up with double-free or use-after-free. Cc: Alexander Viro Cc: linux-fsde...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: sta...@vger.kernel.org Signed-o

Re: [PATCH] PNP: make pnpbios core explicitly non-modular

2016-07-11 Thread Rafael J. Wysocki
On 7/3/2016 8:20 PM, Paul Gortmaker wrote: The Kconfig currently controlling compilation of this code is: config PNPBIOS bool "Plug and Play BIOS support" ...meaning that it currently is not being built as a module by anyone. Lets remove the couple traces of modularity, so that when r

Re: [PATCH 2/2] trace-cmd: Use tracecmd_peek_next_data() in fgraph_ent_handler

2016-07-11 Thread Namhyung Kim
Hi Steve, On Mon, Jul 11, 2016 at 12:55:22PM -0400, Steven Rostedt wrote: > On Fri, 8 Jul 2016 14:56:12 +0900 > Namhyung Kim wrote: > > > When a task was migrated to other cpu in the middle of a function, the > > fgraph_exit record will be in a different cpu than the enter record. > > But curre

Re: [PATCH V2 2/2] usb: phy: phy-brcm-usb: Add Broadcom STB USB Phy driver

2016-07-11 Thread Florian Fainelli
+Kishon, On 05/27/2016 12:57 PM, Al Cooper wrote: > Add a new USB Phy driver for Broadcom STB SoCs. This driver > supports all Broadcom STB ARM SoCs. This driver in combination > with the generic ohci, ehci and xhci platform drivers will enable > USB1.1, USB2.0 and USB3.0 support. This Phy driver

Re: [PATCH 3/3] crypto: Added Chelsio Menu to the Kconfig file

2016-07-11 Thread kbuild test robot
Hi, [auto build test WARNING on net-next/master] [also build test WARNING on v4.7-rc7 next-20160711] [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/commits/Yeshaswi-M-R-Gowda/crypto-chcr-Add-Chelsio

Re: [PATCH V2 1/2] soc: brcmstb: Add Product ID and Family ID helper functions

2016-07-11 Thread Florian Fainelli
On 05/27/2016 12:57 PM, Al Cooper wrote: > Signed-off-by: Al Cooper > --- > drivers/soc/brcmstb/common.c| 12 > include/linux/soc/brcmstb/brcmstb.h | 10 ++ > 2 files changed, 22 insertions(+) > > diff --git a/drivers/soc/brcmstb/common.c b/drivers/soc/brcmstb/common

Re: [PATCH v4] gpio: add Intel WhiskeyCove GPIO driver

2016-07-11 Thread Bin Gao
On Wed, Jul 06, 2016 at 10:57:19AM +0200, Linus Walleij wrote: > > + gpiochip_irqchip_add(&wg->chip, &wcove_irqchip, 0, > > +handle_simple_irq, IRQ_TYPE_NONE); > > Reexamine the use of handle_simple_irq() here. We have two kinds of > irq hardware: those with one r

[PATCH v5] gpio: add Intel WhiskeyCove GPIO driver

2016-07-11 Thread Bin Gao
This patch introduces a separate GPIO driver for Intel WhiskeyCove PMIC. This driver is based on gpio-crystalcove.c. Signed-off-by: Ajay Thomas Signed-off-by: Bin Gao --- Changes in v5: - Revisited the interrupt handler code to iterate until all pending interrupts are handled. This change is

Re: [PATCH 3/7] security,overlayfs: Provide security hook for copy up of xattrs for overlay file

2016-07-11 Thread Stephen Rothwell
Hi Vivek, On Mon, 11 Jul 2016 09:40:04 -0400 Vivek Goyal wrote: > > On Sat, Jul 09, 2016 at 01:41:38AM +0800, kbuild test robot wrote: > > Hi, > > > > [auto build test ERROR on next-20160708] > > [also build test ERROR on v4.7-rc6] > > [cannot apply to pcmoore-selinux/next security/next v4.7-rc6

linux-next: manual merge of the tegra tree with the samsung-krzk tree

2016-07-11 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tegra tree got a conflict in: arch/arm64/configs/defconfig between commit: 426f754be0bc ("arm64: defconfig: Enable more IP blocks for Exynos7 and Exynos5433") from the samsung-krzk tree and commit: 10a7b37b5b96 ("arm64: Update default configurati

[PATCH v2] ARM: brcmstb: Add earlyprintk support using run-time checks

2016-07-11 Thread Florian Fainelli
The SUN_TOP_CTRL_FAMILY_ID register is at a fixed absolute address for all of our supported chips, so utilize its value to determine what the UARTA base address should be based on the value we read. Since the code is called both during decompressor when the MMU is off, and after the MMU has been

Re: [PATCH] arm64: Add Broadcom Set Top Box Kconfig entry point

2016-07-11 Thread Florian Fainelli
On 06/29/2016 12:49 PM, Markus Mayer wrote: > From: Florian Fainelli > > Add an ARCH_BRCMSTB Kconfig symbol which allows us not to update the > dependencies for all STB-related drivers. Select BRCMSTB_L2_IRQ and > GENERIC_IRQ_CHIP which are required for proper functioning. > > Signed-off-by: Dou

RE: [PATCH v2] pmem: add pmem support codes on ARM64

2016-07-11 Thread kwangwoo....@sk.com
Thank you very much, Mark! In linux-nvdimm list, Dan Williams posted patch series which introduced nvdimm_flush() and nvdimm_has_flush() which assumes ARS(Asynchronous DRAM Refresh) feature or using Flush Hint in NFIT to get persistency. And.. arch_wmb_pmem() has been killed in the patch. Wit

Re: [PATCH 1/2] crypto: vmx - Adding asm subroutines for XTS

2016-07-11 Thread Stephen Rothwell
Hi Paulo, On Mon, 11 Jul 2016 16:07:39 -0300 Paulo Flabiano Smorigo wrote: > > diff --git a/drivers/crypto/vmx/aesp8-ppc.pl b/drivers/crypto/vmx/aesp8-ppc.pl > index 2280539..813ffcc 100644 > --- a/drivers/crypto/vmx/aesp8-ppc.pl > +++ b/drivers/crypto/vmx/aesp8-ppc.pl > @@ -1,4 +1,11 @@ > -#!/u

[PATCH v1 2/3] um/ptrace: Fix the syscall number update after a ptrace

2016-07-11 Thread Mickaël Salaün
Update the syscall number after earch PTRACE_SETREGS on ORIG_*AX. This is needed to get the potentially altered syscall number in the seccomp filters after RET_TRACE. This fix four seccomp_bpf tests: > [ RUN ] TRACE_syscall.skip_after_RET_TRACE > seccomp_bpf.c:1560:TRACE_syscall.skip_after_R

Re: divide error: 0000 [#1] SMP in task_numa_migrate - handle_mm_fault vanilla 4.4.6

2016-07-11 Thread Greg KH
On Thu, Jul 07, 2016 at 09:42:32AM +0200, Peter Zijlstra wrote: > On Thu, Jul 07, 2016 at 11:20:36AM +1200, Campbell Steven wrote: > > > > commit 8974189222159154c55f24ddad33e3613960521a > > > Author: Peter Zijlstra > > > Date: Thu Jun 16 10:50:40 2016 +0200 > > > Since these early reports fro

Re: [PATCH v4] Axi-usb: Add support for 64-bit addressing.

2016-07-11 Thread gre...@linuxfoundation.org
On Mon, Jul 11, 2016 at 10:07:31AM +, Nava kishore Manne wrote: > Ping!! > > This email and any attachments are intended for the sole use of the named > recipient(s) and contain(s) confidential information that may be proprietary, > privileged or copyrighted under applicable law. If you a

Re: [PATCH v1] module: Fully remove the kernel_module_from_file hook

2016-07-11 Thread Greg Kroah-Hartman
On Sat, Jul 09, 2016 at 08:19:15PM +0200, Mickaël Salaün wrote: > Fixes: a1db74209483 ("module: replace copy_module_from_fd with kernel > version") It's not a "fix", it's a "cleanup remaining bits"

Re: [PATCH 2/2] i2c-dev: Don't block the adapter from unregistering

2016-07-11 Thread Greg KH
On Mon, Jul 11, 2016 at 02:22:09PM +0200, Jean Delvare wrote: > Hi Viresh, > > On Wed, 6 Jul 2016 13:55:40 -0700, Viresh Kumar wrote: > > On 06-07-16, 19:12, Jean Delvare wrote: > > > Well well... I don't like this patch at all to be honest. > > > > Sure, I didn't like it much as well. I just wan

[PATCH 2/3] befs: in memory free_node_ptr and max_size never read

2016-07-11 Thread Luis de Bethencourt
The only place the values of free_node_ptr and max_size are read is in befs_dump_index_entry(), which both times it is called, it is passed the on disk superblock. Removing assignment of unused values. Signed-off-by: Luis de Bethencourt --- Hi, Noticed this when reading befs' btree code. Thanks

[PATCH 3/3] befs: fix typo in befs_bt_read_node documentation

2016-07-11 Thread Luis de Bethencourt
Fixing a grammatical error in the documentation. Signed-off-by: Luis de Bethencourt --- Hi, Since befs_bt_read_node() calls befs_read_datastream(), and was touched in the first commit of the series I decided to send a fix for the grammatical error I had noticed there a while ago. Thanks for all

[PATCH 1/3] befs: remove off argument of befs_read_datastream

2016-07-11 Thread Luis de Bethencourt
befs_read_datastream() is used to read the inode from the disk, off is meant to provide the offset of the data in the buffer head. But the only function using this argument already knows the starting offset of the node, so this argument isn't needed. Signed-off-by: Luis de Bethencourt --- Hi, I

Re: [patch] mm, compaction: make sure freeing scanner isn't persistently expensive

2016-07-11 Thread David Rientjes
On Thu, 30 Jun 2016, Joonsoo Kim wrote: > We need to find a root cause of this problem, first. > > I guess that this problem would happen when isolate_freepages_block() > early stop due to watermark check (if your patch is applied to your > kernel). If scanner meets, cached pfn will be reset and

Re: lustre sendmsg stuff

2016-07-11 Thread Oleg Drokin
On Jul 10, 2016, at 9:03 PM, Al Viro wrote: > On Mon, Jul 11, 2016 at 02:01:13AM +0100, Al Viro wrote: >> On Sun, Jul 10, 2016 at 07:14:18PM +0100, James Simmons wrote: >> >>> [ 111.210818] [] kiblnd_send+0x51d/0x9e0 [ko2iblnd] >> >> Mea culpa - in kiblnd_send() this >>if (payload_kio

Re: [PATCH 1/3] regulator: qcom_smd: Fix voltage ranges for pm8x41

2016-07-11 Thread Andy Gross
On Mon, Jul 11, 2016 at 02:50:07PM -0700, Stephen Boyd wrote: > The voltage ranges listed here are wrong. The correct ranges can > be seen in the "native" spmi regulator driver > qcom_spmi-regulator.c at pldo_ranges[], ftsmps_ranges[] and > boost_ranges[] for the pldo, ftsmps, and boost type regula

Re: [Query] Preemption (hogging) of the work handler

2016-07-11 Thread Viresh Kumar
On 12-07-16, 00:44, Rafael J. Wysocki wrote: > On Monday, July 11, 2016 03:35:01 PM Viresh Kumar wrote: > > Hi Sergey and Jan, > > > > On 12-07-16, 00:44, Sergey Senozhatsky wrote: > > > right. apart from cases when the existing console_unlock() behaviour can > > > simply "block" a process to flus

Re: [PATCH v3 1/7] lib: string: add functions to case-convert strings

2016-07-11 Thread Markus Mayer
On 9 July 2016 at 08:30, Markus Mayer wrote: > On 9 July 2016 at 05:04, Luis de Bethencourt wrote: >> On 08/07/16 23:43, Markus Mayer wrote: >>> Add a collection of generic functions to convert strings to lowercase >>> or uppercase. >>> >>> Changing the case of a string (with or without copying i

Re: [Query] Preemption (hogging) of the work handler

2016-07-11 Thread Rafael J. Wysocki
On Monday, July 11, 2016 03:35:01 PM Viresh Kumar wrote: > Hi Sergey and Jan, > > On 12-07-16, 00:44, Sergey Senozhatsky wrote: > > right. apart from cases when the existing console_unlock() behaviour can > > simply "block" a process to flush the log_buf to slow serial consoles > > (regardless the

Re: [PATCH 3/3] regulator: qcom_smd: Avoid overlapping linear voltage ranges

2016-07-11 Thread Andy Gross
On Mon, Jul 11, 2016 at 02:50:09PM -0700, Stephen Boyd wrote: > The pm8x41_hfsmps ranges overlap. The first range is from 375000 > to 1562500: > > 375000 + (95 * 12500) == 1562500 > > and the second range starts at 155. Interestingly, the second > range ends at the correct value when it's se

[PATCH] media: s5p-mfc Fix misspelled error message and checkpatch errors

2016-07-11 Thread Shuah Khan
Fix misspelled error message and existing checkpatch errors in the error message conditional. WARNING: suspect code indent for conditional statements (8, 24) if (ctx->state != MFCINST_HEAD_PARSED && [...] + mfc_err("Can not get crop information\n"); Signed-off-by: Shuah Khan

Re: [PATCH 2/3] regulator: qcom_smd: Fix voltage ranges for pma8084 ftsmps and pldo

2016-07-11 Thread Andy Gross
On Mon, Jul 11, 2016 at 02:50:08PM -0700, Stephen Boyd wrote: > The voltage ranges listed here are wrong. The pma8084 pldo > supports three different overlapping voltage ranges with > differing step sizes and the pma8084 ftsmps supports two. These > ranges can be seen in the "native" spmi regulator

Re: [PATCH] Bluetooth: Add support of 13d3:3490 AR3012 device

2016-07-11 Thread Marcel Holtmann
Hi Dmitry, > T: Bus=01 Lev=01 Prnt=01 Port=07 Cnt=05 Dev#= 5 Spd=12 MxCh= 0 > D: Ver= 1.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1 > P: Vendor=13d3 ProdID=3490 Rev=00.01 > C: #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=100mA > I: If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb > I: If#= 1 A

[PATCH] Bluetooth: Add support of 13d3:3490 AR3012 device

2016-07-11 Thread Dmitry Tunin
T: Bus=01 Lev=01 Prnt=01 Port=07 Cnt=05 Dev#= 5 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=13d3 ProdID=3490 Rev=00.01 C: #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=100mA I: If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb I: If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlc

Re: [Query] Preemption (hogging) of the work handler

2016-07-11 Thread Viresh Kumar
Hi Sergey and Jan, On 12-07-16, 00:44, Sergey Senozhatsky wrote: > right. apart from cases when the existing console_unlock() behaviour can > simply "block" a process to flush the log_buf to slow serial consoles > (regardless the process execution context) and make the system less > responsive, I

[PATCH v1 0/3] Fix seccomp for UM (next)

2016-07-11 Thread Mickaël Salaün
Hi, This series fix the recent seccomp update for the User-mode Linux architecture (32-bit and 64-bit) since commit 26703c636c1f3272b39bd0f6d04d2e970984f1b6 (close the hole where ptrace can change a syscall out from under seccomp). Regards, Mickaël Salaün (3): um/ptrace: Fix the syscall_trace_

[PATCH v1 1/3] um/ptrace: Fix the syscall_trace_leave call

2016-07-11 Thread Mickaël Salaün
Keep the same semantic as before the commit 26703c636c1f: deallocate audit context and fake a proper syscall exit. This fix a kernel panic triggered by the seccomp_bpf test: > [ RUN ] global.ERRNO_valid > BUG: failure at kernel/auditsc.c:1504/__audit_syscall_entry()! > Kernel panic - not sync

Re: [PATCH] mm, vmscan: Give up balancing node for high order allocations earlier

2016-07-11 Thread Andrew Morton
On Wed, 29 Jun 2016 13:42:12 +0800 "Hillf Danton" wrote: > To avoid excessive reclaim, we give up rebalancing for high order > allocations right after reclaiming enough pages. hm. What are the observed runtime effects of this change? Any testing results?

Re: [PATCH v8 1/9] clk: ti: am335x/am4372: Add tbclk to pwm node

2016-07-11 Thread Michael Turquette
Quoting Franklin S Cooper Jr (2016-05-03 08:56:47) > Add tblck to the pwm nodes. This insures that the ehrpwm driver has access s/tblck/tbclk/ I see you have acks already. What tree should this patch go through? Regards, Mike > to the time-based clk. > > Do not remove similar entries for ehrpw

[PATCH] ACPI / PCI: make pci_slot explicitly non-modular

2016-07-11 Thread Paul Gortmaker
The Kconfig for this file is: drivers/acpi/Kconfig:config ACPI_PCI_SLOT drivers/acpi/Kconfig: bool "PCI slot detection driver" ...and so it is not built as a module. Hence including module.h and everything that comes with it just for the no-op MODULE_LICENSE and friends is rather heavy handed.

[Patch v2] rpaphp: fix slot registration for multiple slots under a PHB

2016-07-11 Thread Tyrel Datwyler
PowerVM seems to only ever provide a single hotplug slot per PHB. The under lying slot hotplug registration code assumed multiple slots, but the actual implementation is broken for multiple slots. This went unnoticed for years due to the nature of PowerVM as mentioned previously. Under qemu/kvm the

Re: [PATCH v2 04/10] clk: add Clock driver for nuc970

2016-07-11 Thread Michael Turquette
Quoting Wan Zongshun (2016-07-10 00:27:24) > diff --git a/drivers/clk/nuc900/clk-apll.c b/drivers/clk/nuc900/clk-apll.c > new file mode 100644 > index 000..a05aec7 > --- /dev/null > +++ b/drivers/clk/nuc900/clk-apll.c > @@ -0,0 +1,168 @@ > +/* > + * Copyright 2016 Wan Zongshun > + * > + * The

Re: [PATCH] capabilities: audit capability use

2016-07-11 Thread Eric W. Biederman
Topi Miettinen writes: > There are many basic ways to control processes, including capabilities, > cgroups and resource limits. However, there are far fewer ways to find > out useful values for the limits, except blind trial and error. > > Currently, there is no way to know which capabilities are

Re: [PATCH v2 18/22] usb: chipidea: msm: Add reset controller for PHY POR bit

2016-07-11 Thread Stephen Boyd
On 10 July 2016 at 22:32, Peter Chen wrote: > On Thu, Jul 07, 2016 at 03:21:09PM -0700, Stephen Boyd wrote: >> @@ -40,11 +43,38 @@ struct ci_hdrc_msm { >> struct clk *iface_clk; >> struct clk *fs_clk; >> struct ci_hdrc_platform_data pdata; >> + struct reset_controller_dev rcd

[PATCH] ACPI / PMIC: remove modular references from non-modular code

2016-07-11 Thread Paul Gortmaker
The Kconfig currently controlling compilation of these files are: drivers/acpi/Kconfig:menuconfig PMIC_OPREGION drivers/acpi/Kconfig: bool "PMIC (Power Management Integrated Circuit) operation region support" drivers/acpi/Kconfig:config BXT_WC_PMIC_OPREGION drivers/acpi/Kconfig: bool "ACPI o

Re: [PATCH v6] r8152: Add support for setting pass through MAC address on RTL8153-AD

2016-07-11 Thread David Miller
From: Date: Mon, 11 Jul 2016 21:54:07 + > Please let me know what else can be done for this patch to make it > acceptable so we can have parity for Linux. Just resubmit it and I'll apply it, I'm so tired of hearing about this...

Re: [PATCH v2 15/22] usb: chipidea: msm: Mux over secondary phy at the right time

2016-07-11 Thread Stephen Boyd
On 10 July 2016 at 21:43, Peter Chen wrote: > On Thu, Jul 07, 2016 at 03:21:06PM -0700, Stephen Boyd wrote: >> diff --git a/drivers/usb/chipidea/ci_hdrc_msm.c >> b/drivers/usb/chipidea/ci_hdrc_msm.c >> index 7e870a253f55..7708bee3ff3e 100644 >> --- a/drivers/usb/chipidea/ci_hdrc_msm.c >> +++ b/dr

Re: [PATCH v2 10/22] usb: chipidea: Add support for ULPI PHY bus

2016-07-11 Thread Stephen Boyd
On 10 July 2016 at 20:10, Peter Chen wrote: > On Thu, Jul 07, 2016 at 03:21:01PM -0700, Stephen Boyd wrote: >> @@ -418,6 +427,17 @@ static inline bool ci_otg_is_fsm_mode(struct ci_hdrc >> *ci) >> #endif >> } >> >> +#if IS_ENABLED(CONFIG_USB_CHIPIDEA_ULPI) >> +int ci_ulpi_init(struct ci_hdrc *ci

[PATCH] drm/i915/skl: Add support for the SAGV, fix underrun hangs

2016-07-11 Thread Lyude
Since the watermark calculations for Skylake are still broken, we're apt to hitting underruns very easily under multi-monitor configurations. While it would be lovely if this was fixed, it's not. Another problem that's been coming from this however, is the mysterious issue of underruns causing full

Re: arm64: implement live patching

2016-07-11 Thread Jessica Yu
+++ Miroslav Benes [11/07/16 16:03 +0200]: On Mon, 27 Jun 2016, Torsten Duwe wrote: diff --git a/arch/arm64/include/asm/livepatch.h b/arch/arm64/include/asm/livepatch.h new file mode 100644 index 000..6b9a3d1 --- /dev/null +++ b/arch/arm64/include/asm/livepatch.h @@ -0,0 +1,37 @@ +/* + * l

Re: [PATCH 6/8] arm64: Introduce raw_{d,i}cache_line_size

2016-07-11 Thread Geoff Levand
On Fri, 2016-07-08 at 12:37 +0100, Suzuki K Poulose wrote: > On systems with mismatched i/d cache min line sizes, we need to use > the smallest size possible across all CPUs. This will be done by fetching > the system wide safe value from CPU feature infrastructure. > However the some special users

RE: [PATCH v6] r8152: Add support for setting pass through MAC address on RTL8153-AD

2016-07-11 Thread Mario_Limonciello
> David, > > Did you have any more thoughts about this? I'm happy to make some other > adjustments to the patch, if you have some recommendations. Hi, I just wanted to share that the maintenance BIOSes released for the Dell platforms with Type-C this past week enables the MAC address pass thr

[PATCH 2/3] regulator: qcom_smd: Fix voltage ranges for pma8084 ftsmps and pldo

2016-07-11 Thread Stephen Boyd
The voltage ranges listed here are wrong. The pma8084 pldo supports three different overlapping voltage ranges with differing step sizes and the pma8084 ftsmps supports two. These ranges can be seen in the "native" spmi regulator driver (qcom_spmi-regulator.c) at pldo_ranges[] and ftsmps_ranges[] r

[PATCH 3/3] regulator: qcom_smd: Avoid overlapping linear voltage ranges

2016-07-11 Thread Stephen Boyd
The pm8x41_hfsmps ranges overlap. The first range is from 375000 to 1562500: 375000 + (95 * 12500) == 1562500 and the second range starts at 155. Interestingly, the second range ends at the correct value when it's set to be the appropriate start value, 1575000: 1575000 + ((158 - 96) * 2500

[PATCH 1/3] regulator: qcom_smd: Fix voltage ranges for pm8x41

2016-07-11 Thread Stephen Boyd
The voltage ranges listed here are wrong. The correct ranges can be seen in the "native" spmi regulator driver qcom_spmi-regulator.c at pldo_ranges[], ftsmps_ranges[] and boost_ranges[] for the pldo, ftsmps, and boost type regulators. Port these ranges over to the RPM SMD regulator driver so that w

[PATCH 0/3] Fixes for RPM SMD regulator voltage ranges

2016-07-11 Thread Stephen Boyd
The voltage ranges listed in the RPM SMD regulator driver aren't correct. This series makes the voltage range tables match what the hardware supports. That fixes a problem where pm8941 l24 fails to be set at 3.075V when the hardware really supports it. Stephen Boyd (3): regulator: qcom_smd: Fix

[PATCH] drm: exynos: avoid unused function warning

2016-07-11 Thread Arnd Bergmann
When CONFIG_PM is not set, we get a warning about an unused function: drivers/gpu/drm/exynos/exynos_drm_gsc.c:1219:12: error: 'gsc_clk_ctrl' defined but not used [-Werror=unused-function] static int gsc_clk_ctrl(struct gsc_context *ctx, bool enable) ^~~~ This removes the two

[PATCH] HID: logitech-hidpp: select CONFIG_POWER_SUPPLY

2016-07-11 Thread Arnd Bergmann
A recent commit added barry support to this driver, but that causes a link failure when CONFIG_POWER_SUPPLY is not set: drivers/hid/built-in.o: In function `hidpp_battery_get_property': :(.text+0x1a834): undefined reference to `power_supply_get_drvdata' drivers/hid/built-in.o: In function `hidpp_r

[PATCH] dmaengine: zynqmp: avoid cast warning

2016-07-11 Thread Arnd Bergmann
The newly added zynqmp_dma driver produces a warning on 32-bit architectures when dma_addr_t is 64-bit wide: drivers/dma/xilinx/zynqmp_dma.c: In function 'zynqmp_dma_config_sg_ll_desc': drivers/dma/xilinx/zynqmp_dma.c:321:9: error: cast from pointer to integer of different size [-Werror=pointer-t

[PATCH] rtc: isl12057: remove unused variables

2016-07-11 Thread Arnd Bergmann
A cleanup patch introduced a harmless warning about now unused local variables: drivers/rtc/rtc-isl12057.c: In function 'isl12057_rtc_read_alarm': drivers/rtc/rtc-isl12057.c:249:26: error: unused variable 'alarm_secs' [-Werror=unused-variable] unsigned long rtc_secs, alarm_secs;

Re: linux-next: manual merge of the pwm tree with the regulator tree

2016-07-11 Thread Thierry Reding
On Mon, Jul 11, 2016 at 11:30:59PM +0200, Thierry Reding wrote: > On Mon, Jul 11, 2016 at 09:47:34AM -0700, Doug Anderson wrote: > > Hi, > > > > On Sun, Jul 10, 2016 at 11:56 PM, Stephen Rothwell > > wrote: > > > Hi Thierry, > > > > > > Today's linux-next merge of the pwm tree got a conflict in:

[PATCH] [media] mtk-vcodec: fix type mismatches

2016-07-11 Thread Arnd Bergmann
The newly added mtk-vcodec driver produces a number of warnings in an ARM allmodconfig build, mainly since it assumes that dma_addr_t is 32-bit wide: mtk-vcodec/venc/venc_vp8_if.c: In function 'vp8_enc_alloc_work_buf': mtk-vcodec/venc/venc_vp8_if.c:212:191: error: cast to pointer from integer of

Re: [PATCH 2/2] clk: sunxi-ng: h3: Fix Kconfig symbol typo

2016-07-11 Thread Michael Turquette
Quoting Maxime Ripard (2016-07-11 13:34:48) > The Kconfig symbol for the sun8i SoC family was mistyped. Fix that. > > Signed-off-by: Maxime Ripard Applied. Regards, Mike > --- > drivers/clk/sunxi-ng/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/clk/

Re: [PATCH 1/2] clk: sunxi-ng: h3: Fix audio clock divider offset

2016-07-11 Thread Michael Turquette
Quoting Maxime Ripard (2016-07-11 13:34:47) > The code had a typo and got the wrong offset for the hardcoded divider, fix > that. > > Signed-off-by: Maxime Ripard > Reported-by: Jean-Francois Moine > Reported-by: Chen-Yu Tsai Applied. Regards, Mike > --- > drivers/clk/sunxi-ng/ccu-sun8i-h3.

Re: linux-next: manual merge of the pwm tree with the regulator tree

2016-07-11 Thread Thierry Reding
On Mon, Jul 11, 2016 at 09:47:34AM -0700, Doug Anderson wrote: > Hi, > > On Sun, Jul 10, 2016 at 11:56 PM, Stephen Rothwell > wrote: > > Hi Thierry, > > > > Today's linux-next merge of the pwm tree got a conflict in: > > > > drivers/regulator/pwm-regulator.c > > > > between commit: > > > > 8

[PATCH] virtio-net: Remove more stack DMA

2016-07-11 Thread Andy Lutomirski
VLAN and MQ control was doing DMA from the stack. Fix it. Cc: Michael S. Tsirkin Cc: "net...@vger.kernel.org" Signed-off-by: Andy Lutomirski --- I tested VLAN addition and removal with CONFIG_VMAP_STACK=y, CONFIG_DEBUG_SG=y and it got rid of the warnings I saw. I haven't tested the MQ part b

Re: linux-next: build warning after merge of the rtc tree

2016-07-11 Thread Alexandre Belloni
On 11/07/2016 at 10:23:51 +0200, Uwe Kleine-König wrote : > Hello, > > On Mon, Jul 11, 2016 at 06:12:08PM +1000, Stephen Rothwell wrote: > > After merging the rtc tree, today's linux-next build (x86 64_allmodconfig) > > produced this warning: > > > > drivers/rtc/rtc-isl12057.c: In function 'isl12

[PATCH] ACPI / lpat: make it explicitly non-modular

2016-07-11 Thread Paul Gortmaker
The Makefile for building this is "acpi-y" and so it is not built as a module. Hence including module.h and everything that comes with it just for the no-op MODULE_LICENSE is rather heavy handed. The license info is found at the top of the file, so we just remove the MODULE_LICENSE and the includ

Re: Hi, Ingo, would you please help drop the TSC MSR calibration patch

2016-07-11 Thread Jacob Pan
On Mon, 11 Jul 2016 21:31:04 +0200 Ingo Molnar wrote: > > * Jacob Pan wrote: > > > On Mon, 11 Jul 2016 07:59:19 -0700 > > "Chen, Yu C" wrote: > > > > > Currently it is in your x86/timer tree: > > > > > > commit fc273eeef314cdaf0ac992b400d126f8184a4d1c > > > Author: Len Brown > > > Date:

Re: [PATCH] mm: gup: Re-define follow_page_mask output parameter page_mask usage

2016-07-11 Thread Andrew Morton
On Sun, 10 Jul 2016 01:17:05 +0800 cheng...@emindsoft.com.cn wrote: > For a pure output parameter: > > - When callee fails, the caller should not assume the output parameter >is still valid. > > - And callee should not assume the pure output parameter must be >provided by caller -- cal

Re: [PATCH V8 2/2] regulator: mt6323: Add support for MT6323 regulator

2016-07-11 Thread Mark Brown
On Mon, Jul 11, 2016 at 02:29:39PM +0200, John Crispin wrote: > +static const struct of_device_id mt6323_of_match[] = { > + { .compatible = "mediatek,mt6323-regulator", }, > + { /* sentinel */ }, > +}; > +MODULE_DEVICE_TABLE(of, mt6323_of_match); This may have been answered last time but

Re: [CRIU] Introspecting userns relationships to other namespaces?

2016-07-11 Thread Andrew Vagin
On Mon, Jul 11, 2016 at 06:06:48AM +0900, James Bottomley wrote: > On Sun, 2016-07-10 at 15:29 -0500, Eric W. Biederman wrote: > > Andrew Vagin writes: > > > > > On Fri, Jul 08, 2016 at 10:13:08PM -0500, Eric W. Biederman wrote: > > > > "W. Trevor King" writes: > > > > > > > > > On Thu, Jul 07,

[PATCH] amba: Support clk parents and rates assigned in DT

2016-07-11 Thread Stephen Boyd
Add the call to of_clk_set_defaults() into the amba probe path so that devices on the amba bus can use the assigned rates and parents feature of the common clock framework. Cc: Michael Turquette Cc: Jorge Ramirez Ortiz Signed-off-by: Stephen Boyd --- drivers/amba/bus.c | 5 + 1 file change

Re: [PATCH V8 1/2] regulator: Add document for MT6323 regulator

2016-07-11 Thread Mark Brown
On Mon, Jul 11, 2016 at 10:31:45PM +0200, John Crispin wrote: > maybe i am missing something here, but i can see the dependencies inside > the for-next branch of > git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git. is > this not the tree i should base patches on for v4.8 ? Oh, s

Re: [PATCH] firmware: qcom: scm: Change initcall to subsys

2016-07-11 Thread Stephen Boyd
On 07/01, Andy Gross wrote: > The patch changes the initcall for SCM to use subsys_initcall > instead of arch_initcall. This corrects the order so that we don't > probe defer when trying to get clks which causes issues later when > the spm driver makes calls to qcom_set_warm_boot_addr(). > > The

[PATCH v5 03/32] x86/cpa: In populate_pgd, don't set the pgd entry until it's populated

2016-07-11 Thread Andy Lutomirski
This avoids pointless races in which another CPU or task might see a partially populated global pgd entry. These races should normally be harmless, but, if another CPU propagates the entry via vmalloc_fault and then populate_pgd fails (due to memory allocation failure, for example), this prevents

Re: [PATCH 1/2] tty: amba-pl011: add support for clock frequency setting via dt

2016-07-11 Thread Stephen Boyd
On 07/10, Jorge Ramirez Ortiz wrote: > On 9 July 2016 at 08:42, Jorge Ramirez > > um, I retested again this morning and it is all good - I was also a bit > > surprised when things failed yesterday (it seems one of the wires on my > > board was loose, sorry). > > > > So AFAIC your patch addresses

[PATCH v5 01/32] bluetooth: Switch SMP to crypto_cipher_encrypt_one()

2016-07-11 Thread Andy Lutomirski
SMP does ECB crypto on stack buffers. This is complicated and fragile, and it will not work if the stack is virtually allocated. Switch to the crypto_cipher interface, which is simpler and safer. Cc: Marcel Holtmann Cc: Gustavo Padovan Cc: Johan Hedberg Cc: "David S. Miller" Cc: linux-blueto

[PATCH v5 05/32] mm: Track NR_KERNEL_STACK in KiB instead of number of stacks

2016-07-11 Thread Andy Lutomirski
Currently, NR_KERNEL_STACK tracks the number of kernel stacks in a zone. This only makes sense if each kernel stack exists entirely in one zone, and allowing vmapped stacks could break this assumption. Since frv has THREAD_SIZE < PAGE_SIZE, we need to track kernel stack allocations in a unit that

Re: [PATCH] iio: temperature: mcp9808: add Microchip MCP9808 temperature sensor

2016-07-11 Thread Alison Schofield
On Sun, Jul 10, 2016 at 02:23:27PM +0100, Jonathan Cameron wrote: > On 03/07/16 22:04, Alison Schofield wrote: > > IIO driver, perhaps a reference driver, since this sensor is already > > supported in hwmon/jc42 driver. > > > > Driver supports continuous conversion, resolution changes and > > susp

[PATCH v5 04/32] x86/mm: Remove kernel_unmap_pages_in_pgd() and efi_cleanup_page_tables()

2016-07-11 Thread Andy Lutomirski
kernel_unmap_pages_in_pgd() is dangerous: if a pgd entry in init_mm.pgd were to be cleared, callers would need to ensure that the pgd entry hadn't been propagated to any other pgd. Its only caller was efi_cleanup_page_tables(), and that, in turn, was unused, so just delete both functions. This le

[PATCH v5 06/32] mm: Fix memcg stack accounting for sub-page stacks

2016-07-11 Thread Andy Lutomirski
We should account for stacks regardless of stack size, and we need to account in sub-page units if THREAD_SIZE < PAGE_SIZE. Change the units to kilobytes and Move it into account_kernel_stack(). Fixes: 12580e4b54ba8 ("mm: memcontrol: report kernel stack usage in cgroup2 memory.stat") Cc: Vladimi

<    1   2   3   4   5   6   7   8   9   >