Re: [PATCH] perf/x86: Fix overlap counter scheduling bug

2016-11-10 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Wed, Nov 09, 2016 at 03:25:15PM +0100, Robert Richter wrote: > > On 08.11.16 19:27:39, Peter Zijlstra wrote: > > > The comment with EVENT_CONSTRAINT_OVERLAP states: "This is the case if > > > the counter mask of such an event is not a subset of any other counter > >

Re: [PATCH v2 1/3] firmware: qcom: scm: add a video command for state setting

2016-11-10 Thread Stanimir Varbanov
Hi, On 11/10/2016 03:52 AM, Stephen Boyd wrote: > On 11/07, Stanimir Varbanov wrote: >> diff --git a/drivers/firmware/qcom_scm.c b/drivers/firmware/qcom_scm.c >> index d95c70227c05..7e364691a87c 100644 >> --- a/drivers/firmware/qcom_scm.c >> +++ b/drivers/firmware/qcom_scm.c >> @@ -320,6 +320,22 @

Re: [PATCH] um: Fix compile failure due to current_text_address() definition

2016-11-10 Thread Richard Weinberger
Keno, On 10.11.2016 02:53, Keno Fischer wrote: > Fixes the following link error: > ``` > /usr/bin/ld: net/built-in.o: relocation R_X86_64_32S against `.text' > can not be used when making a shared object; recompile with -fPIC > ``` > > This is the same definition used on some other architectures.

[RFD] sched/deadline: Support single CPU affinity

2016-11-10 Thread Peter Zijlstra
Add support for single CPU affinity to SCHED_DEADLINE; the supposed reason for wanting single CPU affinity is better QoS than provided by G-EDF. Therefore the aim is to provide harder guarantees, similar to UP, for single CPU affine tasks. This then leads to a mixed criticality scheduling requir

Re: [PATCH 1/2] backlight: arcxcnn: add support for ArticSand devices

2016-11-10 Thread Lee Jones
On Wed, 09 Nov 2016, Lee Jones wrote: > Jingoo? Ah, it looks like you used the wrong address. I should have been: jingooh...@gmail.com I'll CC him from here. > On Wed, 26 Oct 2016, Olimpiu Dejeu wrote: > > > Resubmition of arcxcnn backliught driver adding devicetree entries > > for all regis

Re: [PATCH v2] video: backlight: pwm_bl: Initialize fb_bl_on[x] and use_count during pwm_backlight_probe()

2016-11-10 Thread Lee Jones
On Tue, 08 Nov 2016, Lukasz Majewski wrote: > Dear All, > > > The commit a55944ca82d2 ("backlight: update bd state & fb_blank > > properties when necessary") has posed some extra restrictions on > > blanking and unblanking frame buffer device. > > > > Unfortunately, pwm_bl driver's probe did not

Re: [PATCH v2] video: backlight: pwm_bl: Initialize fb_bl_on[x] and use_count during pwm_backlight_probe()

2016-11-10 Thread Lee Jones
Adding Jingoo. On Tue, 01 Nov 2016, Lukasz Majewski wrote: > The commit a55944ca82d2 ("backlight: update bd state & fb_blank properties > when necessary") has posed some extra restrictions on blanking and > unblanking frame buffer device. > > Unfortunately, pwm_bl driver's probe did not initiali

Re: [PATCH] perf tools pt: Remove obsolete paragraph in intel-pt.c

2016-11-10 Thread Adrian Hunter
On 09/11/16 16:44, Arnaldo Carvalho de Melo wrote: > Em Wed, Nov 09, 2016 at 04:01:12PM +0200, Adrian Hunter escreveu: >> On 09/11/16 15:59, Arnaldo Carvalho de Melo wrote: >>> Em Wed, Nov 09, 2016 at 10:14:26AM -0300, Arnaldo Carvalho de Melo escreveu: >>> +++ b/tools/perf/Documentation/intel-pt.t

[PATCH v3 5/6] usb: dwc3: use bus->sysdev for DMA configuration

2016-11-10 Thread Sriram Dash
From: Arnd Bergmann The dma ops for dwc3 devices are not set properly. So, use a physical device sysdev, which will be inherited from parent, to set the hardware / firmware parameters like dma. Signed-off-by: Arnd Bergmann Signed-off-by: Sriram Dash --- Changes in v3: - No update Changes in

[PATCH v3 0/6] inherit dma configuration from parent dev

2016-11-10 Thread Sriram Dash
For xhci-hcd platform device, all the DMA parameters are not configured properly, notably dma ops for dwc3 devices. The idea here is that you pass in the parent of_node along with the child device pointer, so it would behave exactly like the parent already does. The difference is that it also hand

[PATCH v3 1/6] usb: separate out sysdev pointer from usb_bus

2016-11-10 Thread Sriram Dash
From: Arnd Bergmann For xhci-hcd platform device, all the DMA parameters are not configured properly, notably dma ops for dwc3 devices. The idea here is that you pass in the parent of_node along with the child device pointer, so it would behave exactly like the parent already does. The differenc

[PATCH v3 3/6] usb: ehci: fsl: use bus->sysdev for DMA configuration

2016-11-10 Thread Sriram Dash
From: Arnd Bergmann For the dual role ehci fsl driver, sysdev will handle the dma config. Signed-off-by: Arnd Bergmann Signed-off-by: Sriram Dash --- Changes in v3: - fix compile errors Changes in v2: - fix compile warnings drivers/usb/host/ehci-fsl.c | 4 ++-- 1 file changed, 2 insertio

Re: [PATCH v2 05/12] mm: thp: add core routines for thp/pmd migration

2016-11-10 Thread Anshuman Khandual
On 11/08/2016 05:01 AM, Naoya Horiguchi wrote: > This patch prepares thp migration's core code. These code will be open when > unmap_and_move() stops unconditionally splitting thp and get_new_page() starts > to allocate destination thps. > Snip > Signed-off-by: Naoya Horiguchi > --- > ChangeLog

Re: [PATCH v2 03/12] mm: thp: introduce separate TTU flag for thp freezing

2016-11-10 Thread Anshuman Khandual
On 11/08/2016 05:01 AM, Naoya Horiguchi wrote: > TTU_MIGRATION is used to convert pte into migration entry until thp split > completes. This behavior conflicts with thp migration added later patches, Hmm, could you please explain why it conflicts with the PMD based migration without split ? Why TT

Re: [PATCH V5 1/3] ARM64 LPC: Indirect ISA port IO introduced

2016-11-10 Thread zhichang.yuan
Hi, Ben, On 2016/11/9 7:16, Benjamin Herrenschmidt wrote: > On Tue, 2016-11-08 at 12:03 +, Mark Rutland wrote: >> On Tue, Nov 08, 2016 at 11:47:07AM +0800, zhichang.yuan wrote: >>> >>> For arm64, there is no I/O space as other architectural platforms, such as >>> X86. Most I/O accesses are ac

Re: PM regression with LED changes in next-20161109

2016-11-10 Thread Hans de Goede
Hi, On 09-11-16 20:23, Tony Lindgren wrote: Hi, Looks like commit 883d32ce3385 ("leds: core: Add support for poll()ing the sysfs brightness attr for changes.") breaks runtime PM for me. On my omap dm3730 based test system, idle power consumption is over 70 times higher now with this patch! It

Re: [PATCH] perf/core: introduce context per CPU event list

2016-11-10 Thread Peter Zijlstra
Yes this is a problem, but no this cannot be done. We can't have per-cpu storage per task. That rapidly explodes. Mark is looking at replacing this stuff with an rb-tree for big-little, that would also allow improving this I think.

Re: [PATCH v2 07/12] mm: thp: check pmd migration entry in common path

2016-11-10 Thread Anshuman Khandual
On 11/08/2016 05:01 AM, Naoya Horiguchi wrote: > If one of callers of page migration starts to handle thp, memory management > code > start to see pmd migration entry, so we need to prepare for it before > enabling. > This patch changes various code point which checks the status of given pmds in

[PATCH v3 2/6] usb: chipidea: use bus->sysdev for DMA configuration

2016-11-10 Thread Sriram Dash
From: Arnd Bergmann Set the dma for chipidea from sysdev. This is inherited from its parent node. Also, do not set dma mask for child as it is not required now. Signed-off-by: Arnd Bergmann Signed-off-by: Sriram Dash Acked-by: Peter Chen --- Changes in v3: - No update Changes in v2: - in

Re: [PATCH V4] mfd: wm8994-core: Don't use managed regulator bulk get API

2016-11-10 Thread Lee Jones
On Thu, 27 Oct 2016, Viresh Kumar wrote: > The kernel WARNs and then crashes today if wm8994_device_init() fails > after calling devm_regulator_bulk_get(). > > That happens because there are multiple devices involved here and the > order in which managed resources are freed isn't correct. > > Th

[PATCH v3 4/6] usb: xhci: use bus->sysdev for DMA configuration

2016-11-10 Thread Sriram Dash
From: Arnd Bergmann For xhci-hcd platform device, all the DMA parameters are not configured properly, notably dma ops for dwc3 devices. So, set the dma for xhci from sysdev. sysdev is pointing to device that is known to the system firmware or hardware. Signed-off-by: Arnd Bergmann Signed-off-by

Re: [PATCH v2 08/12] mm: soft-dirty: keep soft-dirty bits over thp migration

2016-11-10 Thread Anshuman Khandual
On 11/08/2016 05:01 AM, Naoya Horiguchi wrote: > Soft dirty bit is designed to keep tracked over page migration. This patch Small nit here. s/tracked/track/

Re: [PATCH] PCI: mvebu: Take control of mbus windows setup by the firmware

2016-11-10 Thread Thomas Petazzoni
Hello, On Wed, 26 Oct 2016 11:44:40 -0600, Jason Gunthorpe wrote: > The firmware may setup the mbus to access PCI-E and indicate this > has happened with a ranges mapping for the PCI-E ID. If this happens > then the mbus setup and the pci dynamic setup conflict, creating > problems. > > Have PCI-

Re: [v4.9-rc4] dvb-usb/cinergyT2 NULL pointer dereference

2016-11-10 Thread Mauro Carvalho Chehab
Em Wed, 9 Nov 2016 11:07:35 -0800 Linus Torvalds escreveu: > On Wed, Nov 9, 2016 at 3:09 AM, Jörg Otte wrote: > > > > Tried patch with no success. Again a NULL ptr dereferece. > > That patch was pure garbage, I think. Pretty much all the other > drivers that use the same approach will have th

Re: [PATCH v5 2/5] driver core: Functional dependencies tracking support

2016-11-10 Thread Geert Uytterhoeven
On Thu, Nov 10, 2016 at 1:59 AM, Luis R. Rodriguez wrote: > On Wed, Nov 9, 2016 at 4:43 PM, Rafael J. Wysocki wrote: >> On Mon, Nov 7, 2016 at 10:22 PM, Luis R. Rodriguez wrote: >>> As clarified by Rafael at Plumbers, this functional dependencies >>> framework assumes your driver / subsystem sup

Re: PM regression with LED changes in next-20161109

2016-11-10 Thread Hans de Goede
Hi, On 09-11-16 21:45, Jacek Anaszewski wrote: Hi Tony, On 11/09/2016 08:23 PM, Tony Lindgren wrote: Hi, Looks like commit 883d32ce3385 ("leds: core: Add support for poll()ing the sysfs brightness attr for changes.") breaks runtime PM for me. On my omap dm3730 based test system, idle power c

[PATCH 1/3] PCI: hv: use the correct buffer size in new_pcichild_device()

2016-11-10 Thread Dexuan Cui
We don't really need such a big on-stack buffer. vmbus_sendpacket() here only uses sizeof(struct pci_child_message). Signed-off-by: Dexuan Cui CC: Jake Oshins Cc: KY Srinivasan CC: Haiyang Zhang CC: Vitaly Kuznetsov --- drivers/pci/host/pci-hyperv.c | 6 +++--- 1 file changed, 3 insertions(+

Re: [PATCH 0/4] x86: enable User-Mode Instruction Prevention

2016-11-10 Thread Stas Sergeev
Hi! I don't know the context of that discussion, so I'll only comment on the dosemu part. 10.11.2016 09:46, Ricardo Neri пишет: I took a closer look at the dosemu code. It appears that it does not purposely utilize SGDT to obtain the descriptor table while in vm86. It does use SGDT (in protecte

[PATCH 2/3] PCI: hv: fix hv_pci_remove() for hot-remove

2016-11-10 Thread Dexuan Cui
1. We don't really need such a big on-stack buffer when sending the teardown_packet: vmbus_sendpacket() here only uses sizeof(struct pci_message). 2. In the hot-remove case (PCI_EJECT), after we send PCI_EJECTION_COMPLETE to the host, the host will send a RESCIND_CHANNEL message to us and the host

[PATCH v3 6/6] usb: dwc3: Do not set dma coherent mask

2016-11-10 Thread Sriram Dash
From: Arnd Bergmann The dma mask is correctly set up by the DT probe function, no need to override it any more. Signed-off-by: Arnd Bergmann Signed-off-by: Sriram Dash --- Changes in v3: - No update Changes in v2: - club the cleanup for dma coherent mask for device drivers/usb/dwc3/dwc3

Re: [PATCH 1/4] x86/cpufeature: Add User-Mode Instruction Prevention definitions

2016-11-10 Thread Borislav Petkov
On Wed, Nov 09, 2016 at 07:24:43PM -0800, Ricardo Neri wrote: > I intended this feature to be configurable at build time in case someone > wants to build a kernel without it; similar to other features such as > SMAP. Is this not needed? Should Linux be built with this feature always > enabled? > >

[GIT PULL] pin control fixes for v4.9

2016-11-10 Thread Linus Walleij
Hi Linus, here is a set of pin control fixes for the v4.9 cycle. All is about drivers, no core business going on. Details are in the signed tag. Please pull it in! Yours, Linus Walleij The following changes since commit a909d3e636995ba7c349e2ca5dbb528154d4ac30: Linux 4.9-rc3 (2016-10-29 1

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

2016-11-10 Thread Thomas Gleixner
On Thu, 10 Nov 2016, Lu Baolu wrote: > On 11/09/2016 05:37 PM, Thomas Gleixner wrote: > > On Tue, 1 Nov 2016, Lu Baolu wrote: > >> +static void early_xdbc_write(struct console *con, const char *str, u32 n) > >> +{ > >> + int chunk, ret; > >> + static char buf[XDBC_MAX_PACKET]; > >> + int use_cr

Re: [PATCH 22/25] x86/mcheck: Do the init in one place

2016-11-10 Thread Sebastian Andrzej Siewior
On 2016-11-09 18:37:23 [+], Luck, Tony wrote: > > That's why the hotplug callback mce_disable_cpu() doesn't fiddle with > > CR4 - it only clears the bits in MCi_CTL. And I think we should remain > > that way. > > N.B. See vendor_disable_error_reporting() ... on Intel we don't clear MCi_CTL. o

[PATCH v10 2/6] mfd: lpc_ich: Rename lpc-ich driver

2016-11-10 Thread Tan Jui Nee
This patch follows the example of mfd/wm831x to rename the driver from "lpc_ich" to "lpc_ich_core". Signed-off-by: Tan Jui Nee Reviewed-by: Mika Westerberg --- Changes in V10: - No change Changes in V9: - Remove the filename from the header of lpc_ich_core.c (suggested by Lee).

[PATCH v10 5/6] mfd: lpc_ich: Add Device IDs for Intel Apollo Lake PCH

2016-11-10 Thread Tan Jui Nee
Adding Intel codename Apollo Lake platform device IDs for PCH. Signed-off-by: Tan Jui Nee Acked-for-MFD-by: Lee Jones --- Changes in V10: - No change Changes in V9: - No change Changes in V8: - No change drivers/mfd/lpc_ich_core.c | 6 ++ include/linux/mfd/lpc_ic

[PATCH v10 0/6] pinctrl/broxton: enable platform device in the absent of ACPI enumeration

2016-11-10 Thread Tan Jui Nee
Hi, The patches are to cater the need for non-ACPI system whereby a platform device has to be created in order to bind with Apollo Lake Pinctrl GPIO platform driver. The MMIO BAR is accessed over the Primary to Sideband bridge (P2SB). Since the BIOS prevents the P2SB device from being enumerated b

[PATCH v10 4/6] mfd: move enum lpc_chipsets into lpc_ich.h

2016-11-10 Thread Tan Jui Nee
Move the enum's definition into a standalone header file which can be used wherever its definition is needed. Signed-off-by: Tan Jui Nee Reviewed-by: Mika Westerberg --- Changes in V10: - No change Changes in V9: - No change Changes in V8: - No change drivers/mfd/lpc_

[GIT PULL] STi DT update for v4.10 round 2

2016-11-10 Thread Patrice Chotard
Hi Arnd, Kevin, Olof PLease consider this second round of STi dts update for v4.10 : The following changes since commit 97a0b97f9e8197429eee5f87ce14373f73dbd9d3: ARM: dts: stih410-clocks: Add PROC_STFE as a critical clock (2016-10-20 16:20:26 +0200) are available in the git repository at:

[PATCH v10 6/6] mfd: lpc_ich: Add support for Intel Apollo Lake GPIO pinctrl in non-ACPI system

2016-11-10 Thread Tan Jui Nee
This driver uses the P2SB hide/unhide mechanism cooperatively to pass the PCI BAR address to the gpio platform driver. Signed-off-by: Tan Jui Nee Reviewed-by: Mika Westerberg --- Changes in V10: - No change Changes in V9: - No change Changes in V8: - Rename source file

[GIT PULL] STi defconfig updates for v4.10 round 2

2016-11-10 Thread Patrice Chotard
Hi Olof, Arnd and Kevin, Please consider the second round of multi_v7_defconfig updates for v4.10 : The following changes since commit 620c52f4db4d47e1f33c64e641392fe575d5397f: ARM: multi_v7_defconfig: Remove stih41x phy Kconfig symbol. (2016-10-20 17:05:08 +0200) are available in the git r

[PATCH v10 1/6] drivers/platform/x86/p2sb: New Primary to Sideband bridge support driver for Intel SOC's

2016-11-10 Thread Tan Jui Nee
From: Andy Shevchenko There is already one and at least one more user coming which require an access to Primary to Sideband bridge (P2SB) in order to get IO or MMIO bar hidden by BIOS. Create a driver to access P2SB for x86 devices. Signed-off-by: Yong, Jonathan Signed-off-by: Andy Shevchenko

[PATCH v10 3/6] x86/intel-ivi: Add Intel In-Vehicle Infotainment (IVI) systems used in cars support

2016-11-10 Thread Tan Jui Nee
Add support for non ACPI system, such as system that uses Advanced Boot Loader (ABL) whereby a platform device has to be created in order to bind with PINCTRL/GPIO. At the moment, Intel Apollo Lake SoC requires P2SB driver to hide and unhide P2SB to lookup P2SB BAR and pass the PCI BAR address to

Re: [PATCH 2/2] phy: qcom-qmp: new qmp phy driver for qcom-chipsets

2016-11-10 Thread Vivek Gautam
Hi Kishon, On Thu, Oct 27, 2016 at 1:41 AM, Kishon Vijay Abraham I wrote: > Hi, > > On Wednesday 19 October 2016 04:13 PM, Vivek Gautam wrote: >> Qualcomm SOCs have QMP phy controller that provides support >> to a number of controller, viz. PCIe, UFS, and USB. >> Add a new driver, based on gener

Re: [PATCH] z3fold: don't fail kernel build if z3fold_header is too big

2016-11-10 Thread kbuild test robot
Hi Vitaly, [auto build test WARNING on mmotm/master] [also build test WARNING on v4.9-rc4 next-20161110] [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/Vitaly-Wool/z3fold-don-t-fail-kernel

Re: [PATCH] z3fold: don't fail kernel build if z3fold_header is too big

2016-11-10 Thread kbuild test robot
Hi Vitaly, [auto build test WARNING on mmotm/master] [also build test WARNING on v4.9-rc4 next-20161110] [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/Vitaly-Wool/z3fold-don-t-fail-kernel

Re: Proposal: HAVE_SEPARATE_IRQ_STACK?

2016-11-10 Thread Thomas Gleixner
On Thu, 10 Nov 2016, Jason A. Donenfeld wrote: > Hey Thomas, > > On Wed, Nov 9, 2016 at 10:40 PM, Thomas Gleixner wrote: > > That preempt_disable() prevents merily preemption as the name says, but it > > wont prevent softirq handlers from running on return from interrupt. So > > what's the point

Re: [RFD] sched/deadline: Support single CPU affinity

2016-11-10 Thread luca abeni
Hi Peter, On Thu, 10 Nov 2016 09:08:07 +0100 Peter Zijlstra wrote: > Add support for single CPU affinity to SCHED_DEADLINE; the supposed > reason for wanting single CPU affinity is better QoS than provided by > G-EDF. This looks very interesting, thanks for sharing! I have some "theoretical" com

Re: [RFC] mem-hotplug: shall we skip unmovable node when doing numa balance?

2016-11-10 Thread Mel Gorman
On Thu, Nov 10, 2016 at 11:17:03AM +0800, Xishi Qiu wrote: > On 2016/11/9 19:58, Mel Gorman wrote: > > > On Tue, Nov 08, 2016 at 12:43:17PM +0800, Xishi Qiu wrote: > >> On mem-hotplug system, there is a problem, please see the following case. > >> > >> memtester xxG, the memory will be alloced on

Re: [PATCH 1/2] arm64: perf: Move ARMv8 PMU perf event definitions to asm/perf_event.h

2016-11-10 Thread Marc Zyngier
Hi Wei, On 09/11/16 19:57, Wei Huang wrote: > This patch moves ARMv8-related perf event definitions from perf_event.c > to asm/perf_event.h; so KVM code can use them directly. This also help > remove a duplicated definition of SW_INCR in perf_event.h. > > Signed-off-by: Wei Huang > --- > arch/a

Re: [PATCH v2 03/12] mm: thp: introduce separate TTU flag for thp freezing

2016-11-10 Thread Naoya Horiguchi
On Thu, Nov 10, 2016 at 02:01:56PM +0530, Anshuman Khandual wrote: > On 11/08/2016 05:01 AM, Naoya Horiguchi wrote: > > TTU_MIGRATION is used to convert pte into migration entry until thp split > > completes. This behavior conflicts with thp migration added later patches, > > Hmm, could you please

Re: [PATCH] drivers: tca8418: Change the interrupt type

2016-11-10 Thread Maxime Ripard
On Wed, Nov 09, 2016 at 08:02:08PM -0800, Dmitry Torokhov wrote: > On Wed, Nov 09, 2016 at 09:02:35AM +0100, Maxime Ripard wrote: > > Hello Dmitry, > > > > On Tue, Nov 08, 2016 at 04:04:00PM -0800, Dmitry Torokhov wrote: > > > On Mon, Nov 07, 2016 at 03:40:24PM +0100, Maxime Ripard wrote: > > > >

Re: [PATCH V5 3/3] ARM64 LPC: LPC driver implementation on Hip06

2016-11-10 Thread Arnd Bergmann
On Thursday, November 10, 2016 2:40:26 PM CET zhichang.yuan wrote: > On 2016/11/10 5:34, Arnd Bergmann wrote: > > On Wednesday, November 9, 2016 12:10:43 PM CET Gabriele Paoloni wrote: > >>> On Tuesday, November 8, 2016 11:47:09 AM CET zhichang.yuan wrote: > + /* > +* The fi

Re: [Xen PATCH] xen-netback: fix error handling output

2016-11-10 Thread Juergen Gross
On 08/11/16 14:34, Arnd Bergmann wrote: > The connect function prints an unintialized error code after an > earlier initialization was removed: > > drivers/net/xen-netback/xenbus.c: In function 'connect': > drivers/net/xen-netback/xenbus.c:938:3: error: 'err' may be used > uninitialized in this f

Re: [PATCH v2 07/12] mm: thp: check pmd migration entry in common path

2016-11-10 Thread Naoya Horiguchi
On Thu, Nov 10, 2016 at 02:06:14PM +0530, Anshuman Khandual wrote: > On 11/08/2016 05:01 AM, Naoya Horiguchi wrote: > > If one of callers of page migration starts to handle thp, memory management > > code > > start to see pmd migration entry, so we need to prepare for it before > > enabling. > >

Re: [PATCH v2 08/12] mm: soft-dirty: keep soft-dirty bits over thp migration

2016-11-10 Thread Naoya Horiguchi
On Thu, Nov 10, 2016 at 02:08:38PM +0530, Anshuman Khandual wrote: > On 11/08/2016 05:01 AM, Naoya Horiguchi wrote: > > Soft dirty bit is designed to keep tracked over page migration. This patch > > Small nit here. s/tracked/track/ > Fixed. thank you :) - Naoya

Re: [PATCH 22/25] x86/mcheck: Do the init in one place

2016-11-10 Thread Borislav Petkov
On Thu, Nov 10, 2016 at 10:00:38AM +0100, Sebastian Andrzej Siewior wrote: > okay. So I had a discussion with Boris and we agreed that we don't do > the init part in one place only the timer stuff will be moved. > If I understand Tony correctly then we undo something in > vendor_disable_error_repor

Re: [PATCH] phy: rockchip-inno-usb2: correct 480MHz output clock stable time

2016-11-10 Thread Heiko Stübner
Am Donnerstag, 10. November 2016, 10:54:49 schrieb wlf: > Hi Doug, > > 在 2016年11月10日 04:54, Doug Anderson 写道: > > Hi, > > > > On Mon, Nov 7, 2016 at 5:00 AM, William Wu wrote: > >> We found that the system crashed due to 480MHz output clock of > >> USB2 PHY was unstable after clock had been enab

Re: [PATCH v2 0/7] soc: renesas: Identify SoC and register with the SoC bus

2016-11-10 Thread Geert Uytterhoeven
Hi Ulf, On Wed, Nov 9, 2016 at 10:12 PM, Arnd Bergmann wrote: > On Wednesday, November 9, 2016 6:19:06 PM CET Geert Uytterhoeven wrote: >> On Wed, Nov 9, 2016 at 5:56 PM, Arnd Bergmann wrote: >> > On Wednesday, November 9, 2016 2:34:33 PM CET Geert Uytterhoeven wrote: >> >> > And Samsung. >> >>

Re: [PATCH v2 07/12] mm: thp: check pmd migration entry in common path

2016-11-10 Thread Naoya Horiguchi
Hi Hillf, On Thu, Nov 10, 2016 at 05:08:07PM +0800, Hillf Danton wrote: > On Tuesday, November 08, 2016 7:32 AM Naoya Horiguchi wrote: > > > > @@ -1013,6 +1027,9 @@ int do_huge_pmd_wp_page(struct fault_env *fe, pmd_t > > orig_pmd) > > if (unlikely(!pmd_same(*fe->pmd, orig_pmd))) > >

Re: [PATCH v2 07/12] mm: thp: check pmd migration entry in common path

2016-11-10 Thread Hillf Danton
On Tuesday, November 08, 2016 7:32 AM Naoya Horiguchi wrote: > > @@ -1013,6 +1027,9 @@ int do_huge_pmd_wp_page(struct fault_env *fe, pmd_t > orig_pmd) > if (unlikely(!pmd_same(*fe->pmd, orig_pmd))) > goto out_unlock; > > + if (unlikely(!pmd_present(orig_pmd))) > +

Re: [PATCH 1/3] kbuild: add -fno-PIE

2016-11-10 Thread Ingo Molnar
* Michal Marek wrote: > >>> +++ b/Makefile > >>> @@ -622,6 +622,8 @@ include arch/$(SRCARCH)/Makefile > >>> KBUILD_CFLAGS+= $(call cc-option,-fno-delete-null-pointer-checks,) > >>> KBUILD_CFLAGS+= $(call cc-disable-warning,maybe-uninitialized,) > >>> KBUILD_CFLAGS+= $(call cc-disa

[PATCH v3 05/28] staging: iio: tsl2583: remove unnecessary chip status checks in suspend/resume

2016-11-10 Thread Brian Masney
The device probing and the suspend/resume code checks a flag internal to the driver that determines whether or not the chip is in a working state. These checks are not needed. This patch removes the unnecessary checks. It will do no harm to the hardware if the chip is reinitialized if it is already

Re: [v16, 0/7] Fix eSDHC host version register bug

2016-11-10 Thread Geert Uytterhoeven
Hi Ulf, On Wed, Nov 9, 2016 at 7:27 PM, Ulf Hansson wrote: > On 9 November 2016 at 04:14, Yangbo Lu wrote: >> This patchset is used to fix a host version register bug in the >> T4240-R1.0-R2.0 >> eSDHC controller. To match the SoC version and revision, 15 previous version >> patchsets had tried

[PATCH v3 26/28] staging: iio: tsl2583: remove unnecessary variable initialization

2016-11-10 Thread Brian Masney
The ret variable in tsl2583_suspend() and tsl2583_resume() was initialized to 0. This is not necessary so this patch removes the initialization. Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2583.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/sta

[PATCH v3 27/28] staging: iio: tsl2583: add copyright and MODULE_AUTHOR

2016-11-10 Thread Brian Masney
Add Brian Masney's copyright to the header and to the MODULE_AUTHOR for all of the staging cleanups that has been done to this driver. The original MODULE_AUTHOR() did not have a space between his name and email address. This patch also adds the missing space. Signed-off-by: Brian Masney --- dr

[PATCH v3 23/28] staging: iio: tsl2583: clarified comment about clearing interrupts

2016-11-10 Thread Brian Masney
The comment that describes the code that clears the interrupt bit was vague and didn't provide much value. This patch adds more detail about why that bit needs to be cleared. Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2583.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletio

[PATCH v3 28/28] staging: iio: tsl2583: move out of staging

2016-11-10 Thread Brian Masney
Move tsl2580, tsl2581, tsl2583 driver out of staging into mainline. Signed-off-by: Brian Masney --- .../ABI/testing/sysfs-bus-iio-light-tsl2583| 20 + drivers/iio/light/Kconfig | 7 + drivers/iio/light/Makefile | 1 + drivers/iio/ligh

[PATCH v3 03/28] staging: iio: tsl2583: check if chip is suspended in in_illuminance_calibrate_store

2016-11-10 Thread Brian Masney
in_illuminance_calibrate_store() did not check to see if the chip is suspended. This patch adds the proper check. The return value from taos_als_calibrate() was also not checked in this function, so the proper check was also added while changes are being made here. Signed-off-by: Brian Masney ---

[PATCH v3 24/28] staging: iio: tsl2583: remove comment for tsl2583_probe()

2016-11-10 Thread Brian Masney
The comment for tsl2583_probe() does not provide any useful value. This patch removes the comment. Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2583.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/staging/iio/light/tsl2583.c b/drivers/staging/iio/light/tsl2583.c

[PATCH v3 17/28] staging: iio: tsl2583: moved code block inside else statement

2016-11-10 Thread Brian Masney
The check for ch1lux > ch0lux inside tsl2583_get_lux is only valid if the ratio is not equal to zero. Move the code block inside the else statement. This does away with the need to initialize the variables to zero. Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2583.c | 23

[PATCH v3 21/28] staging: iio: tsl2583: move from a global to a per device lux table

2016-11-10 Thread Brian Masney
The driver contains a global lux table that can be updated via sysfs. Change this to a per device lux table so that multiple devices can be hooked up to the same system with different lux tables. There are 10 entries, plus 1 for the termination segment, set aside for the entries in the lux table.

[PATCH] regulator: gpio: properly check return value of of_get_named_gpio

2016-11-10 Thread Jisheng Zhang
The function of_get_named_gpio() could return -ENOENT, -EPROBE_DEFER -EINVAL and so on. Currently, for the optional property "enable-gpio", we only check -EPROBE_DEFER, this is not enough since there may be misconfigured "enable-gpio" in the DTB, of_get_named_gpio() will return -EINVAL in this case

[PATCH v3 06/28] staging: iio: tsl2583: change current chip state from a tristate to a bool

2016-11-10 Thread Brian Masney
The current chip state is represented as a tristate (working, suspended, and unknown). The unknown state was not used. This patch changes the chip state so that it is now represented as a single boolean value (suspended). Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2583.c | 18 +

[PATCH v3 15/28] staging: iio: tsl2583: fix multiline comment syntax

2016-11-10 Thread Brian Masney
The definition of the tsl2583_device_lux struct has a series of single line comments. There are two other cases where the multiline comments did not have an initial blank line. Change these comments to use the proper multiline syntax. Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl

[PATCH v3 25/28] staging: iio: tsl2583: remove unnecessary memset call

2016-11-10 Thread Brian Masney
The entries in the lux table (als_device_lux) can be updated via sysfs through the function in_illuminance_lux_table_store(). The last row in the table must be terminated with values that are zero. The sysfs code already ensures that the last row is all zeros. The call to memset to clear out the ta

[PATCH v3 12/28] staging: iio: tsl2583: fix comparison between signed and unsigned integers

2016-11-10 Thread Brian Masney
Fixed warning found by make W=2: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2583.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/staging/iio/light/tsl2583.

[PATCH v3 04/28] staging: iio: tsl2583: remove unnecessary chip status check in taos_get_lux

2016-11-10 Thread Brian Masney
taos_get_lux checks to see if the chip is in a working state. This check is not necessary since it is only called from tsl2583_read_raw and in_illuminance_calibrate_store (via taos_als_calibrate). The chip state is already checked by these functions. Signed-off-by: Brian Masney --- drivers/stagi

[PATCH v3 19/28] staging: iio: tsl2583: remove unnecessary parentheses

2016-11-10 Thread Brian Masney
in_illuminance_lux_table_store() contains some unnecessary parentheses. This patch removes them since they provide no value. Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2583.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/iio/light/tsl25

[PATCH v3 18/28] staging: iio: tsl2583: change tsl2583_als_calibrate() to return 0 on success

2016-11-10 Thread Brian Masney
tsl2583_als_calibrate() returns the newly computed gain_trim if the calibration was successful. This function is only called by in_illuminance_calibrate_store() and the return value inside that sysfs attribute is only checked to see if an error was returned. This patch changes tsl2583_als_calibrate

Re: [PATCH v2 07/12] mm: thp: check pmd migration entry in common path

2016-11-10 Thread Hillf Danton
On Thursday, November 10, 2016 5:22 PM Naoya Horiguchi wrote: > On Thu, Nov 10, 2016 at 05:08:07PM +0800, Hillf Danton wrote: > > On Tuesday, November 08, 2016 7:32 AM Naoya Horiguchi wrote: > > > > > > @@ -1013,6 +1027,9 @@ int do_huge_pmd_wp_page(struct fault_env *fe, pmd_t > > > orig_pmd) > > >

[PATCH v3 22/28] staging: iio: tsl2583: add tsl2583 to list of supported devices in the header

2016-11-10 Thread Brian Masney
The header only listed the tsl2580 and tsl2581 devices as supported by this driver. This patch adds the tsl2583 since it is also supported by this driver. Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2583.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drive

[PATCH v3 20/28] staging: iio: tsl2583: don't assume an unsigned int is 32 bits

2016-11-10 Thread Brian Masney
in_illuminance_lux_table_store assumes that an unsigned int is 32 bits. Replace this with sizeof(unsigned int). Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2583.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/iio/light/tsl2583.c b/drivers/s

Re: [PATCH] ASoC: samsung: Makefile cleanup

2016-11-10 Thread Sylwester Nawrocki
On 11/10/2016 08:11 AM, Valentin Rothberg wrote: > Commit a076d418235f ("ASoC: samsung: Drop AC97 drivers") removed some > unused code and the associated Kconfig options, but left those options > referenced in the Makefile. Remove the leftover references in the > Makefile. > > Signed-off-by: Vale

[PATCH v3 13/28] staging: iio: tsl2583: change newlines to improve readability

2016-11-10 Thread Brian Masney
Add and remove newlines to improve code readability in preparation for moving the driver out of staging. Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2583.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/staging/iio/light/tsl2583.c b/

[PATCH v3 07/28] staging: iio: tsl2583: remove redundant write to the control register in taos_probe()

2016-11-10 Thread Brian Masney
taos_probe() calls i2c_smbus_write_byte() to select the control register, however there are no subsequent calls to i2c_smbus_read_byte(). The write call is unnecessary and is removed by this patch. Verified that the driver still functions correctly using a TSL2581 hooked up to a Raspberry Pi 2. S

[PATCH v3 16/28] staging: iio: tsl2583: updated code comment to match what the code does

2016-11-10 Thread Brian Masney
If channel 0 does not have any data, then the code sets the lux to zero. The corresponding comment says that the last value is returned. This updates the comment to correctly reflect what the code does. Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2583.c | 2 +- 1 file changed, 1

[PATCH v3 09/28] staging: iio: tsl2583: cleaned up logging

2016-11-10 Thread Brian Masney
There are several places in the code where the function name is hardcoded in the log message. Use the __func__ constant string to build the log message. This also clarifies some of the error messages to match the code and ensures that the correct priority is used since the message is already being

[PATCH v3 08/28] staging: iio: tsl2583: remove the FSF's mailing address

2016-11-10 Thread Brian Masney
Address warning from checkpatch: CHECK: Do not include the paragraph about writing to the Free Software Foundation's mailing address from the sample GPL notice. The FSF has changed addresses in the past, and may do so again. Linux already includes a copy of the GPL. Signed-off-by: Brian Masney -

[PATCH v3 11/28] staging: iio: tsl2583: fix alignment of #define values

2016-11-10 Thread Brian Masney
Most of the values in the #defines have their values aligned on a single column, but some do not. This changes the remaining defines to use consistent alignment with the majority to improve code readability. Signed-off-by: Brian Masney --- drivers/staging/iio/light/tsl2583.c | 10 +- 1 f

[PATCH v3 14/28] staging: iio: tsl2583: combine sysfs documentation

2016-11-10 Thread Brian Masney
There are two separate files describing the tsl2583 sysfs attributes. Combine the two files into one. Updated the name of the sysfs attributes to match the current ABI. Signed-off-by: Brian Masney Suggested-by: Peter Meerwald-Stadler --- .../Documentation/light/sysfs-bus-iio-light-tsl2583 | 16

Re: [PATCH v2 07/12] mm: thp: check pmd migration entry in common path

2016-11-10 Thread Naoya Horiguchi
On Thu, Nov 10, 2016 at 05:28:20PM +0800, Hillf Danton wrote: > On Thursday, November 10, 2016 5:22 PM Naoya Horiguchi wrote: > > On Thu, Nov 10, 2016 at 05:08:07PM +0800, Hillf Danton wrote: > > > On Tuesday, November 08, 2016 7:32 AM Naoya Horiguchi wrote: > > > > > > > > @@ -1013,6 +1027,9 @@ in

[PATCH v3 10/28] staging: iio: tsl2583: unify function and variable prefix to tsl2583_

2016-11-10 Thread Brian Masney
Some functions and variables were prefixed with either taos, tsl258x, taos2583, or tsl2583. Change everything to use the tsl2583 prefix since that is the name of the .c file. The taos_settings member inside the taos_settings struct was renamed to als_settings. Signed-off-by: Brian Masney --- dri

Re: [Intel-wired-lan] [PATCH] igb: use igb_adapter->io_addr instead of e1000_hw->hw_addr

2016-11-10 Thread Corinna Vinschen
On Nov 8 11:33, Alexander Duyck wrote: > On Tue, Nov 8, 2016 at 10:37 AM, Corinna Vinschen wrote: > > On Nov 8 09:16, Hisashi T Fujinaka wrote: > >> On Tue, 8 Nov 2016, Corinna Vinschen wrote: > >> > On Nov 8 15:06, Cao jin wrote: > >> > > When running as guest, under certain condition, it will

[PATCH v3 00/28] staging: iio: tsl2583: move out of staging

2016-11-10 Thread Brian Masney
This patch set continues my work to clean up the tsl2583 driver to move it out of staging. Some highlights include: - Eliminated some unnecessary i2c calls to the sensor. - Fixed issue with changes to calibscale and int_time not being set on the chip. - Moved from a global lux table to a per dev

[PATCH v3 01/28] staging: iio: tsl2583: split out functionality of taos_chip_on()

2016-11-10 Thread Brian Masney
taos_chip_on() reads an eight member array called taos_config that contains the desired state of the chip's registers. Only four of the registers actually need to be written to. The four that do not need to be written to are for the {low,high} byte of the lower interrupt threshold and the {low,high

Re: [PATCH] ARM: zynq: Reserve correct amount of non-DMA RAM

2016-11-10 Thread Nathan Rossi
On 10 November 2016 at 18:41, Michal Simek wrote: > + Nathan > > 2016-10-31 17:26 GMT+01:00 Kyle Roeschley : >> >> On Zynq, we haven't been reserving the correct amount of DMA-incapable >> RAM to keep DMA away from it (per the Zynq TRM Section 4.1, it should be >> the first 512k). In older kernels

[PATCH v3 02/28] staging: iio: tsl2583: fix issue with changes to calibscale and int_time not being set on the chip

2016-11-10 Thread Brian Masney
When updating the in_illuminance_calibscale and in_illuminance_integration_time sysfs attributes, these values were not actually written to the chip. The chip would continue to use the old parameters. Extracted out tsl2583_set_als_gain() and tsl2583_set_als_time() functions that are now called when

Re: [PATCH] iio: imu: inv_mpu6050: inform the i2c mux core about how it is used

2016-11-10 Thread Peter Rosin
On 2016-09-03 18:30, Jonathan Cameron wrote: > On 31/08/16 09:02, Peter Rosin wrote: >> The i2c mux core can then take appropriate action depending on if it is >> used for an actual i2c mux, or for an arbitrator or gate. In this case >> it is used as a gate. >> >> This will make devicetree bindings

Re: [PATCH v18 0/4] Introduce usb charger framework to deal with the usb gadget power negotation

2016-11-10 Thread Baolin Wang
Hi On 8 November 2016 at 04:36, NeilBrown wrote: > On Mon, Nov 07 2016, Baolin Wang wrote: > >> On 3 November 2016 at 09:25, NeilBrown wrote: >>> On Tue, Nov 01 2016, Baolin Wang wrote: >> >> I agree with your most opinions, but these are optimization. > > I see them as bug fixes, not optimizati

  1   2   3   4   5   6   7   8   9   10   >