Re: [RFC PATCH 00/11] Introduce writeback connectors

2016-10-11 Thread Daniel Vetter
On Tue, Oct 11, 2016 at 10:24:23PM +0100, Brian Starkey wrote: > On Tue, Oct 11, 2016 at 10:02:43PM +0200, Daniel Vetter wrote: > > The problem with just that is that there's lots of different things > > that can feed into the overall needs_modeset variable. That's why we > > split it up into multi

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

2016-10-11 Thread Tan Jui Nee
Adding Intel codename Apollo Lake platform device IDs for PCH. Signed-off-by: Tan Jui Nee --- Changes in V8: - No change drivers/mfd/lpc_ich_core.c | 6 ++ include/linux/mfd/lpc_ich.h | 1 + 2 files changed, 7 insertions(+) diff --git a/drivers/mfd/lpc_ich_core.c b/drivers/mfd/lpc

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

2016-10-11 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

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

2016-10-11 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 --- Changes in V8: - No change drivers/mfd/lpc_ich_core.c | 71 - include/linux/mfd/lpc_ich.h | 71 ++

Re: igb driver can cause cache invalidation of non-owned memory?

2016-10-11 Thread Nikita Yushchenko
>>> The main reason why this isn't a concern for the igb driver is because >>> we currently pass the page up as read-only. We don't allow the stack >>> to write into the page by keeping the page count greater than 1 which >>> means that the page is shared. It isn't until we unmap the page that >>

Re: [PATCH v6] net: ip, diag -- Add diag interface for raw sockets

2016-10-11 Thread Cyrill Gorcunov
On Wed, Oct 12, 2016 at 01:50:22AM -0400, David Miller wrote: > > Macros that look like function calls and are also lvalues tend to be > troublesome. > > I know what you're trying to achieve, you want a named way to access > this so that the intent and semantics are clear. > > But I'd rather you

Re: [PATCH 2/4] mm: prevent double decrease of nr_reserved_highatomic

2016-10-11 Thread Mel Gorman
On Fri, Oct 07, 2016 at 02:45:34PM +0900, Minchan Kim wrote: > There is race between page freeing and unreserved highatomic. > > CPU 0CPU 1 > > free_hot_cold_page > mt = get_pfnblock_migratetype > set_pcppage_migratetype(page, mt) >

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

2016-10-11 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 --- Changes in V8: - Rename source file lpc_ich-apl.c to lpc_ich_apl.c (suggested by Mika). Changes in V7: - Add author information an

[PATCH RFC V2 2/2] KVM: x86: Support using the VMX preemption timer for APIC Timer periodic/oneshot mode

2016-10-11 Thread Wanpeng Li
From: Wanpeng Li Most windows guests still utilize APIC Timer periodic/oneshot mode instead of tsc-deadline mode, and the APIC Timer periodic/oneshot mode are still emulated by high overhead hrtimer on host. This patch converts the expected expire time of the periodic/oneshot mode to guest dea

[PATCH RFC V2 1/2] KVM: lapic: introduce start_sw_period() to handle oneshot/periodic mode

2016-10-11 Thread Wanpeng Li
From: Wanpeng Li Extract start_sw_period() to handle periodic/oneshot mode, it will be used by later patch. Cc: Paolo Bonzini Cc: Radim Krčmář Cc: Yunhong Jiang Signed-off-by: Wanpeng Li --- arch/x86/kvm/lapic.c | 89 +++- 1 file changed, 47

Re: [RFC PATCH 1/1] mm/percpu.c: fix memory leakage issue when allocate a odd alignment area

2016-10-11 Thread Michal Hocko
On Wed 12-10-16 08:28:17, zijun_hu wrote: > On 2016/10/12 1:22, Michal Hocko wrote: > > On Tue 11-10-16 21:24:50, zijun_hu wrote: > >> From: zijun_hu > >> > >> the LSB of a chunk->map element is used for free/in-use flag of a area > >> and the other bits for offset, the sufficient and necessary co

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

2016-10-11 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 RFC V2 0/2] KVM: x86: Support using the VMX preemption timer for APIC Timer periodic/oneshot mode

2016-10-11 Thread Wanpeng Li
Most windows guests which I have on hand currently still utilize APIC Timer periodic/oneshot mode instead of APIC Timer tsc-deadline mode: - windows 2008 server r2 - windows 2012 server r2 - windows 7 - windows 10 This patchset adds the support using the VMX preemption timer for APIC Timer peri

Re: [PATCH] iwlwifi: pcie: reduce "unsupported splx" to a warning

2016-10-11 Thread Paul Bolle
Luca, On Wed, 2016-10-12 at 09:11 +0300, Luca Coelho wrote: > By "platform" I meant the PC you are using.  The ACPI table is created > by the OEM, so different PCs have different tables. Like Chris I use a Dell XPS 13 (9350), but mine came with an AC 8260 out of it's assembly plant:     Detected

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

2016-10-11 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 v8 2/6] mfd: lpc_ich: Rename lpc-ich driver

2016-10-11 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 --- Changes in V8: - Update new file name with lpc_ich_core.c at description of source file. - Rework Makefile with new source file name lpc_ich_apl.c.

Re: [PATCH]"drm: change DRM_MIPI_DSI module type from "bool" to "tristate".

2016-10-11 Thread Daniel Vetter
On Wed, Oct 12, 2016 at 03:08:24AM +, Sun, Jing A wrote: > Interestingly, I am able to reload i915 and drm. Our CI has tests for > i915 unload/reload, but does not check drm. In any case the config > problem should not impact the reloadability of i915. > == > Sorry that I didn't make myself

Re: [PATCH v1 00/10] *** imx-sdma: misc fix ***

2016-10-11 Thread Jiada Wang
Hello Are there any comments for this patch set? Thanks, Jiada On 05/17/2016 12:48 PM, Jiada Wang wrote: this patch set contains the following changes 1. fix issues in cyclic dma 2. add support to SYNC DMA termination 3. avoid system hang, when SDMA channel 0 timeouts 4. add lock to prevent ra

Re: [PATCHv3 13/41] truncate: make sure invalidate_mapping_pages() can discard huge pages

2016-10-11 Thread Jan Kara
On Wed 12-10-16 00:53:49, Kirill A. Shutemov wrote: > On Tue, Oct 11, 2016 at 05:58:15PM +0200, Jan Kara wrote: > > On Thu 15-09-16 14:54:55, Kirill A. Shutemov wrote: > > > invalidate_inode_page() has expectation about page_count() of the page > > > -- if it's not 2 (one to caller, one to radix-tr

Re: [PATCH 6/6] cpufreq: pxa: convert to clock API

2016-10-11 Thread Viresh Kumar
On 12-10-16, 08:22, Robert Jarzmik wrote: > Viresh Kumar writes: > > > On 10-10-16, 22:09, Robert Jarzmik wrote: > >> As the clock settings have been introduced into the clock pxa drivers, > >> which are now available to change the CPU clock by themselves, remove > >> the clock handling from this

Re: [PATCH 6/6] cpufreq: pxa: convert to clock API

2016-10-11 Thread Robert Jarzmik
Viresh Kumar writes: > On 10-10-16, 22:09, Robert Jarzmik wrote: >> As the clock settings have been introduced into the clock pxa drivers, >> which are now available to change the CPU clock by themselves, remove >> the clock handling from this driver, and rely on pxa clock drivers. >> >> Signed-

[patch] drm/amdgpu: potential NULL dereference in debugfs code

2016-10-11 Thread Dan Carpenter
debugfs_create_file() returns NULL on error, it only returns error pointers if debugfs isn't enabled in the config and we checked for that earlier so it can't happen. Fixes: 4f4824b55650 ('drm/amd/amdgpu: Convert ring debugfs entries to binary') Signed-off-by: Dan Carpenter diff --git a/drivers/

Re: [PATCH] iwlwifi: pcie: reduce "unsupported splx" to a warning

2016-10-11 Thread Luca Coelho
Hi Paul, On Tue, 2016-10-11 at 12:11 +0200, Paul Bolle wrote: > On Mon, 2016-10-10 at 17:02 +0300, Luca Coelho wrote: > > On Mon, 2016-10-10 at 02:19 -0500, Chris Rorvick wrote: > > This is not coming from the NIC itself, but from the platform's ACPI > > tables.  Can you tell us which platform you

Re: [PATCH 32/41] staging: lustre: llite: restart short read/write for normal IO

2016-10-11 Thread Greg Kroah-Hartman
On Wed, Oct 12, 2016 at 12:22:35AM +0100, James Simmons wrote: > > > On Sun, Oct 02, 2016 at 10:28:28PM -0400, James Simmons wrote: > > > From: Bobi Jam > > > > > > If normal IO got short read/write, we'd restart the IO from where > > > we've accomplished until we meet EOF or error happens. > >

Re: [PATCH] drivers: staging: greybus: audio_topology.c: Fixed CHECKS for brace issues

2016-10-11 Thread Vaibhav Agarwal
On Wed, Oct 12, 2016 at 5:19 AM, Chase Metzger wrote: > Added braces for else and else if statements where checkpatch complained. > > Signed-off-by: Chase Metzger > --- > drivers/staging/greybus/audio_topology.c | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/driv

[PATCH 0/4] ARM64: More flexible HW watchpoint

2016-10-11 Thread Pratyush Anand
Currently, we do not support all the byte select option provided by ARM64 specs for a HW watchpoint. This patch set will help user to instrument a watchpoint with all possible byte select options. Pratyush Anand (4): hw_breakpoint: Allow watchpoint of length 3,5,6 and 7 arm64: Allow hw watchp

Re: [PATCH] strparser: Propagate correct error code in strp_recv()

2016-10-11 Thread David Miller
From: Geert Uytterhoeven Date: Thu, 6 Oct 2016 15:41:49 +0200 > With m68k-linux-gnu-gcc-4.1: > > net/strparser/strparser.c: In function ‘strp_recv’: > net/strparser/strparser.c:98: warning: ‘err’ may be used uninitialized in > this function > > Pass "len" (which is an error code when

[PATCH 1/4] hw_breakpoint: Allow watchpoint of length 3,5,6 and 7

2016-10-11 Thread Pratyush Anand
We only support breakpoint/watchpoint of length 1, 2, 4 and 8. If we can support other length as well, then user may watch more data with less number of watchpoints (provided hardware supports it). For example: if we have to watch only 4th, 5th and 6th byte from a 64 bit aligned address, we will ha

Re: [PATCH] drivers: staging: greybus: audio_manager_sysfs.c: Fixed CHECK for brace issue

2016-10-11 Thread Vaibhav Agarwal
On Wed, Oct 12, 2016 at 4:52 AM, Chase Metzger wrote: > Added braces to else and else if statements where checkpatch complained. > > Signed-off-by: Chase Metzger > --- > drivers/staging/greybus/audio_manager_sysfs.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/dr

[PATCH 4/4] selftests: arm64: add test for unaligned watchpoint address handling

2016-10-11 Thread Pratyush Anand
ARM64 hardware expects 64bit aligned address for watchpoint invocation. However, it provides byte selection method to select any number of consecutive byte set within the range of 1-8. This patch adds support to test all such byte selection option for different memory write sizes. Signed-off-by:

[PATCH 2/4] arm64: Allow hw watchpoint at varied offset from base address

2016-10-11 Thread Pratyush Anand
ARM64 hardware supports watchpoint at any double word aligned address. However, it can select any consecutive bytes from offset 0 to 7 from that base address. For example, if base address is programmed as 0x420030 and byte select is 0x1C, then access of 0x420032,0x420033 and 0x420034 will generate

[PATCH 3/4] arm64: Allow hw watchpoint of length 3,5,6 and 7

2016-10-11 Thread Pratyush Anand
Since, arm64 can support all offset within a double word limit. Therefore, now support other lengths within that range as well. Signed-off-by: Pratyush Anand --- arch/arm64/include/asm/hw_breakpoint.h | 4 arch/arm64/kernel/hw_breakpoint.c | 36 ++ 2 fi

Re: [PATCH v6] net: ip, diag -- Add diag interface for raw sockets

2016-10-11 Thread David Miller
From: Cyrill Gorcunov Date: Thu, 6 Oct 2016 13:00:55 +0300 > v6: > - use sdiag_raw_protocol() helper which will access @pad >structure used for raw sockets protocol specification: >we can't simply rename this member without breaking uapi. Macros that look like function calls and are als

Re: [PATCH] Don't touch single threaded PTEs which are on the right node

2016-10-11 Thread Mel Gorman
On Tue, Oct 11, 2016 at 01:28:58PM -0700, Andi Kleen wrote: > From: Andi Kleen > > We had some problems with pages getting unmapped in single threaded > affinitized processes. It was tracked down to NUMA scanning. > > In this case it doesn't make any sense to unmap pages if the > process is sing

Re: [PATCH 1/4] mm: adjust reserved highatomic count

2016-10-11 Thread Mel Gorman
On Tue, Oct 11, 2016 at 01:19:16PM +0900, Minchan Kim wrote: > From 4a0b6a74ebf1af7f90720b0028da49e2e2a2b679 Mon Sep 17 00:00:00 2001 > From: Minchan Kim > Date: Thu, 6 Oct 2016 13:38:35 +0900 > Subject: [PATCH] mm: don't steal highatomic pageblock > > In page freeing path, migratetype is racy so

Re: [PATCH v2 2/2] net: stmmac: use new api ethtool_{get|set}_link_ksettings

2016-10-11 Thread David Miller
From: Philippe Reynes Date: Mon, 3 Oct 2016 08:28:20 +0200 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH] net: dsa: slave: use new api ethtool_{get|set}_link_ksettings

2016-10-11 Thread David Miller
From: Philippe Reynes Date: Sun, 9 Oct 2016 17:00:53 +0200 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH] net: usb: lan78xx: use new api ethtool_{get|set}_link_ksettings

2016-10-11 Thread David Miller
From: Philippe Reynes Date: Sun, 9 Oct 2016 12:07:04 +0200 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH v2 1/2] net: stmmac: use phydev from struct net_device

2016-10-11 Thread David Miller
From: Philippe Reynes Date: Mon, 3 Oct 2016 08:28:19 +0200 > The private structure contain a pointer to phydev, but the structure > net_device already contain such pointer. So we can remove the pointer > phydev in the private structure, and update the driver to use the > one contained in struct

Re: [PATCH] net: ti: cpsw: use new api ethtool_{get|set}_link_ksettings

2016-10-11 Thread David Miller
From: Philippe Reynes Date: Sat, 8 Oct 2016 17:46:15 +0200 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH] net: ti: netcp_ethss: use new api ethtool_{get|set}_link_ksettings

2016-10-11 Thread David Miller
From: Philippe Reynes Date: Sat, 8 Oct 2016 19:48:15 +0200 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH 1/2] net: mv643xx_eth: use phydev from struct net_device

2016-10-11 Thread David Miller
From: Philippe Reynes Date: Sun, 2 Oct 2016 12:06:48 +0200 > The private structure contain a pointer to phydev, but the structure > net_device already contain such pointer. So we can remove the pointer > phydev in the private structure, and update the driver to use the > one contained in struct

Re: [PATCH 2/2] net: mv643xx_eth: use new api ethtool_{get|set}_link_ksettings

2016-10-11 Thread David Miller
From: Philippe Reynes Date: Sun, 2 Oct 2016 12:06:49 +0200 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH v3 2/3] cpufreq: brcmstb-avs-cpufreq: AVS CPUfreq driver for Broadcom STB SoCs

2016-10-11 Thread Viresh Kumar
On 07-10-16, 16:21, Markus Mayer wrote: > +static int brcm_avs_cpufreq_exit(struct cpufreq_policy *policy) > +{ > + struct private_data *priv = policy->driver_data; > + > + iounmap(priv->base); > + iounmap(priv->avs_intr_base); > + > + return 0; > +} Shouldn't the above be done in

[PATCH v2 0/4] use up highorder free pages before OOM

2016-10-11 Thread Minchan Kim
I got OOM report from production team with v4.4 kernel. It had enough free memory but failed to allocate GFP_KERNEL order-0 page and finally encountered OOM kill. It occured during QA process which launches several apps, switching and so on. It happned rarely. IOW, In normal situation, it was not a

[PATCH v2 2/4] mm: prevent double decrease of nr_reserved_highatomic

2016-10-11 Thread Minchan Kim
There is race between page freeing and unreserved highatomic. CPU 0 CPU 1 free_hot_cold_page mt = get_pfnblock_migratetype set_pcppage_migratetype(page, mt) unreserve_highatomic_pageblock

[PATCH v2 4/4] mm: make unreserve highatomic functions reliable

2016-10-11 Thread Minchan Kim
Currently, unreserve_highatomic_pageblock bails out if it found highatomic pageblock regardless of really moving free pages from the one so that it could mitigate unreserve logic's goal which saves OOM of a process. This patch makes unreserve functions bail out only if it moves some pages out of !

[PATCH v2 1/4] mm: don't steal highatomic pageblock

2016-10-11 Thread Minchan Kim
In page freeing path, migratetype is racy so that a highorderatomic page could free into non-highorderatomic free list. If that page is allocated, VM can change the pageblock from higorderatomic to something. In that case, highatomic pageblock accounting is broken so it doesn't work(e.g., VM cannot

[PATCH v2 3/4] mm: try to exhaust highatomic reserve before the OOM

2016-10-11 Thread Minchan Kim
It's weird to show that zone has enough free memory above min watermark but OOMed with 4K GFP_KERNEL allocation due to reserved highatomic pages. As last resort, try to unreserve highatomic pages again and if it has moved pages to non-highatmoc free list, retry reclaim once more. Signed-off-by: Mi

[RFC][PATCH 2/2 v3] ASoC: hisilicon: Add hi6210 i2s audio driver

2016-10-11 Thread John Stultz
From: Andy Green Add driver for hi6210 i2s controller found on hi6220 boards. This is just another spin trying to address earlier review feedback. Additional feedback or suggestions would be quite welcome. thanks -john Cc: Zhangfei Gao Cc: Liam Girdwood Cc: Mark Brown Cc: Jaroslav Kysela C

[RFC][PATCH 1/2 v3] ASoC: add hi6210-i2s DT bindings

2016-10-11 Thread John Stultz
Adds DT bindings documentation for the hi6210-i2s driver. Cc: Zhangfei Gao Cc: Liam Girdwood Cc: Mark Brown Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Wei Xu Cc: Rob Herring Cc: Andy Green Cc: Dave Long Cc: Guodong Xu Signed-off-by: John Stultz --- v3: * Simplified and reworked dt binding

Re: [mm] c4344e8035: WARNING: CPU: 0 PID: 101 at mm/memory.c:303 __tlb_remove_page_size+0x25/0x99

2016-10-11 Thread Aneesh Kumar K.V
kernel test robot writes: > FYI, we noticed the following commit: > > https://github.com/0day-ci/linux > Aneesh-Kumar-K-V/mm-Use-the-correct-page-size-when-removing-the-page/20161012-013446 > commit c4344e80359420d7574b3b90fddf53311f1d24e6 ("mm: Remove the page size > change check in tlb_remove

Re: [PATCH] iwlwifi: pcie: reduce "unsupported splx" to a warning

2016-10-11 Thread Chris Rorvick
On Tue, Oct 11, 2016 at 5:11 AM, Paul Bolle wrote: > For what it's worth, on my machine I have twenty (!) SPLX entries, all > reading: > Name (SPLX, Package (0x04) > { > Zero, > Package (0x03) > { > 0x8000, > 0x8000, > 0x8

Re: [PATCH 3/4] PCI: dra7xx: Add support to force RC to work in GEN1 mode

2016-10-11 Thread Shawn Lin
On 2016/10/11 20:58, Kishon Vijay Abraham I wrote: PCIe in AM57x/DRA7x devices is by default configured to work in GEN2 mode. However there may be situations when working in GEN1 mode is desired. One example is limitation i925 (PCIe GEN2 mode not supported at junction temperatures < 0C). Just

Re: [RFC 6/6] drivers: staging: ion: add ION_IOC_TAG ioctl

2016-10-11 Thread Hillf Danton
On Wednesday, October 12, 2016 7:50 AM Ruchi Kandoi wrote: > +/** > + * struct ion_fd_data - metadata passed from userspace for a handle s/fd/tag/ ? > + * @handle: a handle > + * @tag: a string describing the buffer > + * > + * For ION_IOC_TAG userspace populates the handle field with > + * the

Re: [PATCH] cpufreq: CPPC: Correct desired_perf calculation

2016-10-11 Thread Viresh Kumar
On 11-10-16, 14:12, Hoan Tran wrote: > The desired_perf is an abstract performance number. Its value should > be in the range of [lowest perf, highest perf] of CPPC. > The correct calculation is > desired_perf = freq * cppc_highest_perf / cppc_dmi_max_khz > > Signed-off-by: Hoan Tran > --- > d

Re: [PATCH] cpufreq: skip invalid entries when searching the frequency

2016-10-11 Thread Viresh Kumar
On 11-10-16, 00:38, Aaro Koskinen wrote: > Skip invalid entries when searching the frequency. This fixes cpufreq > at least on loongson2 MIPS board. > > Fixes: da0c6dc00c69 ("cpufreq: Handle sorted frequency tables more > efficiently") > Signed-off-by: Aaro Koskinen > --- > include/linux/cpufre

[PATCH V2] cpufreq: skip invalid entries when searching the frequency

2016-10-11 Thread Viresh Kumar
From: Aaro Koskinen Skip invalid entries when searching the frequency. This fixes cpufreq at least on loongson2 MIPS board. Fixes: da0c6dc00c69 ("cpufreq: Handle sorted frequency tables more efficiently") Signed-off-by: Aaro Koskinen Signed-off-by: Viresh Kumar --- V1->V2: - Use cpufreq_freque

RE: [PATCH]"drm: change DRM_MIPI_DSI module type from "bool" to "tristate".

2016-10-11 Thread Sun, Jing A
Interestingly, I am able to reload i915 and drm. Our CI has tests for i915 unload/reload, but does not check drm. In any case the config problem should not impact the reloadability of i915. == Sorry that I didn't make myself clear. In order to replace the default i915 module with an updated o

Re: [PATCHv2] cephfs: Fix scheduler warning due to nested blocking

2016-10-11 Thread Yan, Zheng
> On 11 Oct 2016, at 17:16, Nikolay Borisov wrote: > > try_get_cap_refs can be used as a condition in a wait_event* calls. > This is all fine until it has to call __ceph_do_pending_vmtruncate, > which in turn acquires the i_truncate_mutex. This leads to a situation > in which a task's state is !

linux-next: Tree for Oct 12

2016-10-11 Thread Stephen Rothwell
Hi all, Please do *not* add any v4.10 material to your linux-next included trees until v4.9-rc1 has been released i.e. the merge window closes. Changes since 20161011: The akpm-current tree gained some build failures for which I applied 2 patches. Non-merge commits (relative to Linus'

Re: [REGRESSION v4.7] i915 / drm crash when undocking from DP monitors

2016-10-11 Thread Vadim Lobanov
Certainly, done and done. The bug is filed at: https://bugs.freedesktop.org/show_bug.cgi?id=98211 Thanks! On Tue, Oct 11, 2016 at 6:55 AM, Jani Nikula wrote: > On Sat, 08 Oct 2016, Vadim Lobanov wrote: >> I'm seeing a repeatable crash on my HP EliteBook 840 G2/2216 when >> booting it while in a

linux-next: build failure after merge of the akpm-current tree

2016-10-11 Thread Stephen Rothwell
Hi Andrew, After merging the akpm-current tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: In file included from include/linux/list.h:8:0, from include/linux/kobject.h:20, from include/linux/device.h:17, from arch/powerp

[PATCH 1/2] Staging: greybus: gpio: Use gbphy_dev->dev instead of bundle->dev

2016-10-11 Thread Viresh Kumar
Some of the print messages are using the incorrect device pointer, fix them. Signed-off-by: Viresh Kumar --- drivers/staging/greybus/gpio.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/greybus/gpio.c b/drivers/staging/greybus/gpio.c index 5e06e4229e42

[PATCH 2/2] Staging: greybus: uart: Use gbphy_dev->dev instead of bundle->dev

2016-10-11 Thread Viresh Kumar
Some of the print messages are using the incorrect device pointer, fix them. Signed-off-by: Viresh Kumar --- drivers/staging/greybus/uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/greybus/uart.c b/drivers/staging/greybus/uart.c index 5ee7954bd9f9..2633

[PATCH v2.1 03/31] cinergyT2-core: handle error code on RC query

2016-10-11 Thread Mauro Carvalho Chehab
There's no sense on decoding and generating a RC key code if there was an error on the URB control message. Signed-off-by: Mauro Carvalho Chehab diff --git a/drivers/media/usb/dvb-usb/cinergyT2-core.c b/drivers/media/usb/dvb-usb/cinergyT2-core.c index d85c0c4d4042..8ac825413d5a 100644 --- a/dri

Re: [PATCH 6/6] cpufreq: pxa: convert to clock API

2016-10-11 Thread Viresh Kumar
On 10-10-16, 22:09, Robert Jarzmik wrote: > As the clock settings have been introduced into the clock pxa drivers, > which are now available to change the CPU clock by themselves, remove > the clock handling from this driver, and rely on pxa clock drivers. > > Signed-off-by: Robert Jarzmik > ---

[git pull] vfs.git uaccess.h preparations

2016-10-11 Thread Al Viro
Preparations to tree-wide switch to use of linux/uaccess.h (which, obviously, will allow to start unifying stuff for real). The last step there (i.e PATT='^[[:blank:]]*#[[:blank:]]*include[[:blank:]]*' sed -i -e "s!$PATT!#include !" \ `git grep -l "$PATT"|grep -v ^inclu

[PATCH] mm: page_alloc: Use KERN_CONT where appropriate

2016-10-11 Thread Joe Perches
Recent changes to printk require KERN_CONT uses to continue logging messages. So add KERN_CONT where necessary. Signed-off-by: Joe Perches --- mm/page_alloc.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index ca423cc20b5

Re: [PATCH v2] RFC: staging: greybus: shape up greybus GPIO

2016-10-11 Thread Viresh Kumar
I was looking to exactly do thanks, thanks for doing it before us :) On 10-10-16, 10:39, Linus Walleij wrote: > static int gb_gpio_probe(struct gbphy_device *gbphy_dev, >const struct gbphy_device_id *id) > { > @@ -690,7 +556,6 @@ static int gb_gpio_probe(struct gbphy_devi

Re: [PATCH v2 28/31] cpia2_usb: don't use stack for DMA

2016-10-11 Thread Mauro Carvalho Chehab
Em Tue, 11 Oct 2016 22:56:06 + Kosuke Tatsukawa escreveu: > Hi, > > > The USB control messages require DMA to work. We cannot pass > > a stack-allocated buffer, as it is not warranted that the > > stack would be into a DMA enabled area. > > > > Signed-off-by: Mauro Carvalho Chehab > > Sign

[PATCH v2 .1 28/31] cpia2_usb: don't use stack for DMA

2016-10-11 Thread Mauro Carvalho Chehab
The USB control messages require DMA to work. We cannot pass a stack-allocated buffer, as it is not warranted that the stack would be into a DMA enabled area. Signed-off-by: Mauro Carvalho Chehab -- v2.1: As pointed by Kosuke Tatsukawa, I forgot to replace "registers" var to "buf" at one of th

Re: fyi: Recent commits require printk("fmt", ...) -> printk(PR_CONT/pr_cont( conversions

2016-10-11 Thread Mauro Carvalho Chehab
Em Tue, 11 Oct 2016 18:29:42 -0700 Joe Perches escreveu: > Linus merged this recently (unfortunately without cc'ing LKML) > > > commit 563873318d328d9bbab4b00dfd835ac7c7e28697 > Merge: 24532f768121 bfd8d3f23b51 > Author

Re: [PATCH 0/8] PM / OPP: Multiple regulator support

2016-10-11 Thread Viresh Kumar
On 10-10-16, 14:20, Dave Gerlach wrote: > Cool, I'm reviewing these patches still but I definitely plan to test them > out on the TI platforms requiring multi-regulator support. At first glance > it looks like it does give us the hooks we need. I believe we can use > cpufreq-dt as is and just provi

[PATCH V2 7/8] PM / OPP: Allow platform specific custom opp_set_rate() callbacks

2016-10-11 Thread Viresh Kumar
The generic opp_set_rate() handler isn't sufficient for platforms with complex DVFS. For example, some TI platforms have multiple regulators for a CPU device. The order in which various supplies need to be programmed is only known to the platform code and its best to leave it to it. This patch im

Re: [PATCH] ACPI: fix the process flow for 0 which return from acpi_register_gsi

2016-10-11 Thread Hanjun Guo
On 2016/10/12 9:20, MaJun wrote: > The return value 0 from acpi_register_gsi() means irq mapping failed. > So, we should process this case in else branch. > > Signed-off-by: MaJun > --- > drivers/acpi/resource.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/acpi

Re: [PATCH 5/5] i2c: i2c-piix4: coding style fix - quoted string split across lines

2016-10-11 Thread Joe Perches
On Tue, 2016-10-11 at 18:34 +0100, Carlos Palminha wrote: [] > diff --git a/drivers/i2c/busses/i2c-piix4.c b/drivers/i2c/busses/i2c-piix4.c [] > @@ -260,7 +260,8 @@ static int piix4_setup(struct pci_dev *PIIX4_dev, > else if ((temp & 0x0E) == 0) > dev_dbg(&PIIX4_dev->dev, "Using

[PATCH] ext4: super.c: Update logging style using PR_CONT

2016-10-11 Thread Joe Perches
Recent commit require line continuing printks to use PR_CONT. Update super.c to use PR_CONT and use vsprintf extension %pV to avoid a printk/vprintk/printk("\n") sequence as well. Signed-off-by: Joe Perches --- fs/ext4/super.c | 21 +++-- 1 file changed, 11 insertions(+), 10 del

fyi: Recent commits require printk("fmt", ...) -> printk(PR_CONT/pr_cont( conversions

2016-10-11 Thread Joe Perches
Linus merged this recently (unfortunately without cc'ing LKML) commit 563873318d328d9bbab4b00dfd835ac7c7e28697 Merge: 24532f768121 bfd8d3f23b51 Author: Linus Torvalds Date:   Mon Oct 10 09:29:50 2016 -0700 Merge branch

[PATCH] ACPI: fix the process flow for 0 which return from acpi_register_gsi

2016-10-11 Thread MaJun
The return value 0 from acpi_register_gsi() means irq mapping failed. So, we should process this case in else branch. Signed-off-by: MaJun --- drivers/acpi/resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/resource.c b/drivers/acpi/resource.c index 56241

Re: [PATCH] kvm: x86: correct the misleading comment in vmx_handle_external_intr

2016-10-11 Thread Longpeng (Mike)
Hi Radim, On 2016/10/12 2:23, Radim Krčmář wrote: > This part is acceptable as it gives a new information code, yet the > function does not modify flags, which makes it unremarkable. > And dependencies on the caller would be better described in a header > (if we cannot express them well in the co

Re: [regression, 4.9, pmem] memmap= command line, pmem device creation behaviour changed

2016-10-11 Thread Dan Williams
On Tue, Oct 11, 2016 at 4:31 PM, Dave Chinner wrote: > Hi Dan, > > I boot my DAX test machine with "memmap=8G!16G,8G!24G" on the kernel > command line to give me two 8GB pmem devices. This has worked fine > on all kernels including 4.8. I just updated that test machine to a > TOT linus kernel (4.9

Re: [RFC 0/6] Module for tracking/accounting shared memory buffers

2016-10-11 Thread Rob Clark
On Tue, Oct 11, 2016 at 7:50 PM, Ruchi Kandoi wrote: > This patchstack introduces a new "memtrack" module for tracking and accounting > memory exported to userspace as shared buffers, like dma-buf fds or GEM > handles. btw, I wouldn't care much about the non-dmabuf case.. dri2/flink is kind of l

Re: [PATCH 1/7] f2fs: split free nid list

2016-10-11 Thread Chao Yu
Hi Jaegeuk, On 2016/10/12 1:09, Jaegeuk Kim wrote: > Hi Chao, > > On Tue, Oct 11, 2016 at 10:31:30PM +0800, Chao Yu wrote: >> From: Chao Yu >> >> During free nid allocation, in order to do preallocation, we will tag free >> nid entry as allocated one and still leave it in free nid list, for othe

Re: [git pull] drm pull for v4.9

2016-10-11 Thread Linus Torvalds
On Tue, Oct 11, 2016 at 2:14 PM, Dave Airlie wrote: > > this email is all in small letters because my gpg key expired so I couldn't > sign the tag, and it's too early in the morning for me to go do gpg stuff. I'm happy that you have found alternative identity management model, but I'm not sure th

Re: [RFC PATCH v1 2/2] printk: external log buffer (CONFIG_LOGBUFFER)

2016-10-11 Thread Sean Hudson
On 10/5/2016 2:48 PM, Petr Mladek wrote: > On Tue 2016-10-04 12:55:35, Sean Hudson wrote: >> On 10/4/2016 6:27 AM, Petr Mladek wrote: >>> On Fri 2016-09-30 23:06:49, Sean Hudson wrote: On 9/30/2016 7:39 AM, Petr Mladek wrote: > >> Note, there is a small window of time during early boot

Re: [RFC 0/6] Module for tracking/accounting shared memory buffers

2016-10-11 Thread Al Viro
On Tue, Oct 11, 2016 at 04:50:04PM -0700, Ruchi Kandoi wrote: > memtrack maintains a per-process list of shared buffer references, which is > exported to userspace as /proc/[pid]/memtrack. Buffers can be optionally > "tagged" with a short string: for example, Android userspace would use this > ta

Re: [RFC PATCH 1/1] mm/percpu.c: fix memory leakage issue when allocate a odd alignment area

2016-10-11 Thread zijun_hu
On 2016/10/12 1:22, Michal Hocko wrote: > On Tue 11-10-16 21:24:50, zijun_hu wrote: >> From: zijun_hu >> >> the LSB of a chunk->map element is used for free/in-use flag of a area >> and the other bits for offset, the sufficient and necessary condition of >> this usage is that both size and alignme

Re: [PATCH] kexec: Export memory sections virtual addresses to vmcoreinfo

2016-10-11 Thread Baoquan He
On 10/11/16 at 04:19pm, Dave Young wrote: > On 10/11/16 at 03:41pm, Baoquan He wrote: > > Hi Eric, > > > > Thanks a lot for your reviewing! Sorry for late reply. > > > > On 10/06/16 at 03:07pm, Eric W. Biederman wrote: > > > Baoquan He writes: > > > > > > > KASLR memory randomization can random

[RFC 4/6] memtrack: Adds the accounting to keep track of all mmaped/unmapped pages.

2016-10-11 Thread Ruchi Kandoi
Since mmaped pages will be accounted by the PSS, memtrack needs a way to differentiate the total memory that hasn't been accounted for. Signed-off-by: Ruchi Kandoi Signed-off-by: Greg Hackmann --- drivers/misc/memtrack.c | 175 -- drivers/staging/an

[RFC 3/6] dma-buf: add memtrack support

2016-10-11 Thread Ruchi Kandoi
Signed-off-by: Greg Hackmann Signed-off-by: Ruchi Kandoi --- drivers/dma-buf/dma-buf.c | 37 ++ drivers/staging/android/ion/ion.c | 14 + drivers/staging/android/ion/ion_priv.h | 2 ++ include/linux/dma-buf.h| 5

[RFC 2/6] drivers: misc: add memtrack

2016-10-11 Thread Ruchi Kandoi
Shared-buffer allocators like ion or GEM traditionally call into CMA or alloc_pages() to get backing memory, meaning these allocations will not show up in any process's mm counters. But since these allocations are often used for things like graphics buffers that can be extremely large, the user ju

[PATCH] drivers: staging: greybus: audio_topology.c: Fixed CHECKS for brace issues

2016-10-11 Thread Chase Metzger
Added braces for else and else if statements where checkpatch complained. Signed-off-by: Chase Metzger --- drivers/staging/greybus/audio_topology.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/staging/greybus/audio_topology.c b/drivers/staging/greybus/audio

[RFC 5/6] memtrack: Add memtrack accounting for forked processes.

2016-10-11 Thread Ruchi Kandoi
When a process is forked, all the buffers are shared with the forked process too. Adds the functionality to add memtrack accounting for the forked processes. Forked process gets a copy of the mapped pages of the parent process. This patch makes sure that the new mapped pages are attributed to the

[RFC 6/6] drivers: staging: ion: add ION_IOC_TAG ioctl

2016-10-11 Thread Ruchi Kandoi
From: Greg Hackmann ION_IOC_TAG provides a userspace interface for tagging buffers with their memtrack usage after allocation. Signed-off-by: Ruchi Kandoi --- drivers/staging/android/ion/ion-ioctl.c | 17 + drivers/staging/android/uapi/ion.h | 25 +

[RFC 0/6] Module for tracking/accounting shared memory buffers

2016-10-11 Thread Ruchi Kandoi
This patchstack introduces a new "memtrack" module for tracking and accounting memory exported to userspace as shared buffers, like dma-buf fds or GEM handles. Any process holding a reference to these buffers will keep the kernel from reclaiming its backing pages. mm counters don't provide a comp

[RFC 1/6] fs: add installed and uninstalled file_operations

2016-10-11 Thread Ruchi Kandoi
These optional file_operations notify a file implementation when it is installed or uninstalled from a task's fd table. This can be used for accounting of file-backed shared resources like dma-buf. This involves some changes to the __fd_install() and __close_fd() APIs to actually pass along the r

[PATCH] ideapad-laptop: Add Lenovo Yoga 910-13IKB to no_hw_rfkill dmi list

2016-10-11 Thread Brian Masney
The Lenovo Yoga 910-13IKB does not have a hw rfkill switch, and trying to read the hw rfkill switch through the ideapad module causes it to always report as blocked. This commit adds the Lenovo Yoga 910-13IKB to the no_hw_rfkill dmi list, fixing the WiFI breakage. Signed-off-by: Brian Masney ---

Re: [PATCH 1/8] vfs - change d_manage() to take a struct path

2016-10-11 Thread Ian Kent
On Tue, 2016-10-11 at 11:04 -0500, Eric W. Biederman wrote: > Ian Kent writes: > > > For the autofs module to be able to reliably check if a dentry is a > > mountpoint in a multiple namespace environment the ->d_manage() dentry > > operation will need to take a path argument instead of a dentry.

[PATCH] perf/core: do not set cpuctx->cgrp for unscheduled cgroups

2016-10-11 Thread David Carrillo-Cisneros
commit db4a835601b7 ("perf/core: Set cgroup in CPU contexts for new cgroup events") fails to verify that event->cgrp is actually the scheduled cgroup in a CPU before setting cpuctx->cgrp. This patch fixes that. The bug only impacts the first cgroup that is created in a CPU. Now that there is a di

  1   2   3   4   5   6   7   8   >