Re: [PATCH v8 2/4] i2c-smbus: add SMBus Host Notify support

2016-07-18 Thread Benjamin Tissoires
On Jul 18 2016 or thereabouts, Jean Delvare wrote: > [As it doesn't look like this message was delivered, I am sending it > again. I apologize if this is a duplicate for some of you.] > > Hi Benjamin, Wolfram, > > Sorry for being late to the party. I finally found some time to look at > the patch

[PATCH] irqchip: armada: avoid unused function warnings

2016-07-18 Thread Arnd Bergmann
When building with CONFIG_SMP disabled, we get some new harmless warnings: drivers/irqchip/irq-armada-370-xp.c:356:12: error: 'mpic_cascaded_starting_cpu' defined but not used [-Werror=unused-function] static int mpic_cascaded_starting_cpu(unsigned int cpu) ^~

[PATCH] kconfig: tinyconfig: provide whole choice blocks to avoid warnings

2016-07-18 Thread Arnd Bergmann
Using "make tinyconfig" produces a couple of annoying warnings that show up for build test machines all the time: .config:966:warning: override: NOHIGHMEM changes choice state .config:965:warning: override: SLOB changes choice state .config:963:warning: override: KERNEL_XZ changes choi

RE: [RFC PATCH 00/30] Kernel NET policy

2016-07-18 Thread Liang, Kan
> > > > It is a big challenge to get good network performance. First, the > > network performance is not good with default system settings. Second, > > it is too difficult to do automatic tuning for all possible workloads, > > since workloads have different requirements. Some workloads may want >

Re: [PATCH v3 1/2] ACPI / button: Add KEY_LID_CLOSE for new usage model

2016-07-18 Thread Bastien Nocera
On Mon, 2016-07-18 at 09:53 +0200, Benjamin Tissoires wrote: > > I don't think this is a good solution to have a kernel parameter. I > thought the final decision were to have userspace decide which event > was valid, and so we just need to export and emit both of events. > > _If_ you export a ke

Re: [PATCH v2 10/10] binfmt_flat: allow compressed flat binary format to work on MMU systems

2016-07-18 Thread Nicolas Pitre
On Mon, 18 Jul 2016, One Thousand Gnomes wrote: > On Sun, 17 Jul 2016 23:31:56 -0400 > Nicolas Pitre wrote: > > > Let's take the simple and obvious approach by decompressing the binary > > into a kernel buffer and then copying it to user space. Those who are > > looking for more performance on

Re: [PATCH v9 2/7] ACPI / processor_idle: Add support for Low Power Idle(LPI) states

2016-07-18 Thread Sudeep Holla
On 16/07/16 01:32, Rafael J. Wysocki wrote: On Friday, July 08, 2016 06:07:53 PM Sudeep Holla wrote: ACPI 6.0 introduced an optional object _LPI that provides an alternate method to describe Low Power Idle states. It defines the local power states for each node in a hierarchical processor topo

RE: Revert c5ad33184354260be6d05de57e46a5498692f6d6 "mm/swap.c: flush lru pvecs on compound page arrival" from stable tree? Was:[osstest-ad...@xenproject.org: [Xen-devel] [linux-4.1 bisection] complet

2016-07-18 Thread Odzioba, Lukasz
On Monday, July 18, 2016 5:31 PM, Konrad Rzeszutek Wilk wrote: > We found that your patch in the automated Xen test-case ends up > OOMing the box when trying to install guests. This worked prior > to your patch. > > See serial log: > http://logs.test-lab.xenproject.org/osstest/logs/97597/test-amd64

Re: [RFC PATCH 00/30] Kernel NET policy

2016-07-18 Thread Andi Kleen
> It seems strange to me to add such policies to the kernel. > Addmittingly, documentation of some settings is non-existent and one needs > various different tools to set this (sysctl, procfs, sysfs, ethtool, etc). The problem is that different applications need different policies. The only entit

Re: [PATCH v2] ARM: dts: add rk3288-firefly-reload

2016-07-18 Thread Randy Li
Hi Heiko: I use GPLv2 because of it looks more shorter, anyway I am back to allow X11 now. The modification request of io-domain have been included. Thank you for reviewing. Randy Li (1): ARM: dts: add rk3288-firefly-reload Documentation/devicetree/bindings/arm/rockchip.txt | 4 + arch/arm

Re: [PATCH 0/8] compaction-related cleanups v4

2016-07-18 Thread Mel Gorman
On Mon, Jul 18, 2016 at 01:22:54PM +0200, Vlastimil Babka wrote: > Hi, > > this is the splitted-off first part of my "make direct compaction more > deterministic" series [1], rebased on mmotm-2016-07-13-16-09-18. For the whole > series it's probably too late for 4.8 given some unresolved feedback,

[PATCH v2] drm/amdgpu: Disable RPM helpers while reprobing connectors on resume

2016-07-18 Thread Lyude
Just about all of amdgpu's connector probing functions try to acquire runtime PM refs. If we try to do this in the context of amdgpu_resume_kms by calling drm_helper_hpd_irq_event(), we end up deadlocking the system. Since we're guaranteed to be holding the spinlock for RPM in amdgpu_resume_kms, a

[PATCH] ARM: dts: add rk3288-firefly-reload

2016-07-18 Thread Randy Li
The Firefly RK3288 Reload is a combination Firefly rk3288 core board with the Reload baseboard. Add a dtsi for the Firefly rk3288 core which can be included into the dts for the various baseboards in the future and dts for Reload base board. Currently supported are serial console, wired networking

Is: Revert c5ad33184354260be6d05de57e46a5498692f6d6 "mm/swap.c: flush lru pvecs on compound page arrival" from stable tree? Was:[osstest-ad...@xenproject.org: [Xen-devel] [linux-4.1 bisection] complet

2016-07-18 Thread Konrad Rzeszutek Wilk
Hey Lukasz, We found that your patch in the automated Xen test-case ends up OOMing the box when trying to install guests. This worked prior to your patch. See serial log: http://logs.test-lab.xenproject.org/osstest/logs/97597/test-amd64-i386-qemut-rhel6hvm-amd/serial-pinot0.log Would it be OK to

Re: checkpatch: false positives for else after return

2016-07-18 Thread Joe Perches
On Mon, 2016-07-18 at 13:26 +0200, Thierry Reding wrote: > Hi, > > I've run across what I think is a false positive for checkpatch's > UNNECESSARY_ELSE check. The code that triggers it is in the > tegra_sor_probe() function in drivers/gpu/drm/tegra/sor.c. For > reference, here's the code: > >

[PATCH v2 2/2] crypto: vmx - Adding support for XTS

2016-07-18 Thread Paulo Flabiano Smorigo
From: "Leonidas S. Barbosa" This patch add XTS support using VMX-crypto driver. Signed-off-by: Leonidas S. Barbosa Signed-off-by: Paulo Flabiano Smorigo --- drivers/crypto/vmx/Makefile | 2 +- drivers/crypto/vmx/aes_xts.c | 190 +++ drivers/crypto/vm

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

2016-07-18 Thread Paulo Flabiano Smorigo
This patch add XTS subroutines using VMX-crypto driver. It gives a boost of 20 times using XTS. These code has been adopted from OpenSSL project in collaboration with the original author (Andy Polyakov ). Signed-off-by: Leonidas S. Barbosa Signed-off-by: Paulo Flabiano Smorigo --- drivers/cry

Re: RFC: silencing kvm unimplemented msr spew.

2016-07-18 Thread Paolo Bonzini
> kvm is pretty noisy when you have guests poking at MSRs that the kernel > doesn't implement. The conveniently named 'ignore_msrs' option initially > seemed > like it was what I was looking for, but it changes the printk instead > of eliding it. > > Untested patch below converts ignore_msrs to

Re: [PATCH] staging: lustre: o2iblnd: iov fixes for kiblnd_send

2016-07-18 Thread James Simmons
> On Jul 11, 2016, at 1:18 PM, James Simmons wrote: > > > With the move to iov_iter handling two issues merged > > for the ko2iblnd driver. The first fix address a simple > > typo of the wrong flag being used with iov_iter_kvec. > > The second fix adds the payload offset to the payload > > size.

Re: [PATCH 0/3] watchdog, sbsa_gwdt: Update SBSA watchdog with the new infrastructure of watchdog.

2016-07-18 Thread Fu Wei
Hi Wim, Guenter, Great thanks for your help :-) On 18 July 2016 at 03:51, Wim Van Sebroeck wrote: > Hi Fu, > >> From: Fu Wei >> >> This patchset: >> (1)Try to fix an issue about min and max timeout validity check: >> when max_hw_heartbeat_ms is defined, this check should be skipped. >>

Re: [PATCH v2] virtio_blk: Fix a slient kernel panic

2016-07-18 Thread Cornelia Huck
On Mon, 18 Jul 2016 22:01:29 +0800 Minfei Huang wrote: > We do a lot of memory allocation in function init_vq, and don't handle > the allocation failure properly. Then this function will return 0, > although initialization fails due to lacking memory. At that moment, > kernel will panic in guest

Re: System freezes after OOM

2016-07-18 Thread Johannes Weiner
CC Dave Chinner, who I recall had strong opinions on the mempool model The context is commit f9054c7 ("mm, mempool: only set __GFP_NOMEMALLOC if there are free elements"), which gives MEMALLOC/TIF_MEMDIE mempool allocations access to the system emergency reserves when there is no reserved object c

Re: [RFC PATCH 00/30] Kernel NET policy

2016-07-18 Thread Florian Westphal
kan.li...@intel.com wrote: > From: Kan Liang > > It is a big challenge to get good network performance. First, the network > performance is not good with default system settings. Second, it is too > difficult to do automatic tuning for all possible workloads, since workloads > have different req

Re: [PATCH v2 06/13] sched: Store maximum per-cpu capacity in root domain

2016-07-18 Thread Morten Rasmussen
On Mon, Jul 18, 2016 at 02:48:42PM +0200, Vincent Guittot wrote: > On 15 July 2016 at 18:02, Morten Rasmussen wrote: > > On Fri, Jul 15, 2016 at 03:39:05PM +0200, Vincent Guittot wrote: > >> On 15 July 2016 at 13:46, Morten Rasmussen > >> wrote: > >> > On Thu, Jul 14, 2016 at 04:15:20PM +0100, M

Re: [PATCH net-next] cdc_ether: Improve ZTE MF823/831/910 handling

2016-07-18 Thread Kristian Evensen
On Mon, Jul 18, 2016 at 4:14 PM, Oliver Neukum wrote: >> Ok, sounds good. So far, I have only seen the random MAC issue with >> the three previously mentioned devices, but who knows how many else is >> out there with the same error ... I don't think it should be in the >> core ethernet code, at le

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

2016-07-18 Thread Paul Gortmaker
[RE: [PATCH v6 1/3] x86/platform/p2sb: New Primary to Sideband bridge support driver for Intel SOC's] On 18/07/2016 (Mon 03:35) Tan, Jui Nee wrote: [...] > > > + > > > + return 0; > > > +} > > > +EXPORT_SYMBOL(p2sb_bar); > > > + > > > +MODULE_LICENSE("GPL"); > > > > ...the above is the on

Re: [RFCv2 4/4] perf: util: support sysfs supported_cpumask file

2016-07-18 Thread Mark Rutland
On Mon, Jul 18, 2016 at 04:30:18PM +0200, Jiri Olsa wrote: > On Fri, Jul 15, 2016 at 11:08:13AM +0100, Mark Rutland wrote: > > For system PMUs, the perf tools have long expected a cpumask file under > > sysfs, describing the single CPU which they support events being > > single cpu? it's cpumask..

Re: [PATCH v2 02/30] HID: wacom: store the type in wacom->shared for INTUOSHT and INTUOSHT2

2016-07-18 Thread Benjamin Tissoires
On Jul 14 2016 or thereabouts, Ping Cheng wrote: > On Wed, Jul 13, 2016 at 9:05 AM, Benjamin Tissoires > wrote: > > The type is never set but we check for it in wacom_wireless_irq(). > > Type was assigned in wacom_wireless_work [1] before we moved code > around. It somehow failed to get into waco

[PATCH 0/3] Follow-up fixes to node-lru series v3

2016-07-18 Thread Mel Gorman
This is another round of fixups to the node-lru series. The most important patch is the last one which deals with a highmem accounting issue. include/linux/mm_inline.h | 8 ++-- mm/vmscan.c | 25 +++-- 2 files changed, 13 insertions(+), 20 deletions(-) --

[PATCH 1/3] mm, vmscan: Remove redundant check in shrink_zones()

2016-07-18 Thread Mel Gorman
As pointed out by Minchan Kim, shrink_zones() checks for populated zones in a zonelist but a zonelist can never contain unpopulated zones. While it's not related to the node-lru series, it can be cleaned up now. Suggested-by: Minchan Kim Signed-off-by: Mel Gorman --- mm/vmscan.c | 3 --- 1 file

Re: [PATCH v3 7/8] Input: synaptics-rmi4: Handle incomplete input data

2016-07-18 Thread Benjamin Tissoires
On Jul 13 2016 or thereabouts, Andrew Duggan wrote: > Commit 5b65c2a02966 ("HID: rmi: check sanity of the incoming report") added > support for handling incomplete HID reports do to the input data being > corrupted in transit. This patch reimplements this functionality in the > function drivers so

[PATCH 2/3] mm, vmscan: Release/reacquire lru_lock on pgdat change

2016-07-18 Thread Mel Gorman
With node-lru, the locking is based on the pgdat. As Minchan pointed out, there is an opportunity to reduce LRU lock release/acquire in check_move_unevictable_pages by only changing lock on a pgdat change. Signed-off-by: Mel Gorman --- mm/vmscan.c | 22 +++--- 1 file changed, 11

[PATCH 3/3] mm, vmstat: remove zone and node double accounting by approximating retries -fix

2016-07-18 Thread Mel Gorman
As pointed out by Vlastimil, the atomic_add() functions are already assumed to be able to handle negative numbers. The atomic_sub handling was wrong anyway but this patch fixes it unconditionally. This is a fix to the mmotm patch mm-vmstat-remove-zone-and-node-double-accounting-by-approximating-re

Re: [PATCH v3 8/8] Input: synaptics-rmi4: Use the RMI_F11_REL_BYTES define in rmi_f11_rel_pos_report

2016-07-18 Thread Benjamin Tissoires
On Jul 13 2016 or thereabouts, Andrew Duggan wrote: > The size of relative data in F11 is already defined by RMI_F11_REL_BYTES. > Use the define in rmi_f11_rel_pos_report() to be consistent. > > Signed-off-by: Andrew Duggan > Reviewed-by: Nick Dyer Reviewed-by: Benjamin Tissoires > --- > This

[PATCH 3/6] radio: trust: Utilize the module_isa_driver macro

2016-07-18 Thread William Breathitt Gray
This driver does not do anything special in module init/exit. This patch eliminates the module init/exit boilerplate code by utilizing the module_isa_driver macro. Signed-off-by: William Breathitt Gray --- drivers/media/radio/radio-trust.c | 13 + 1 file changed, 1 insertion(+), 12 d

Re: [PATCH v3 1/8] Input: synaptics-rmi4: Use of_get_child_by_name() instead of of_find_node_by_name()

2016-07-18 Thread Benjamin Tissoires
On Jul 13 2016 or thereabouts, Andrew Duggan wrote: > Calling of_find_node_by_name() assumes that the caller has incremented > the refcount of the of_node being passed in. Currently, the caller is > not incrementing the refcount of the of_node which results in the node > being prematurely freed whe

[PATCH 4/6] radio: zoltrix: Utilize the module_isa_driver macro

2016-07-18 Thread William Breathitt Gray
This driver does not do anything special in module init/exit. This patch eliminates the module init/exit boilerplate code by utilizing the module_isa_driver macro. Signed-off-by: William Breathitt Gray --- drivers/media/radio/radio-zoltrix.c | 14 +- 1 file changed, 1 insertion(+), 1

[PATCH 2/6] radio: rtrack2: Utilize the module_isa_driver macro

2016-07-18 Thread William Breathitt Gray
This driver does not do anything special in module init/exit. This patch eliminates the module init/exit boilerplate code by utilizing the module_isa_driver macro. Signed-off-by: William Breathitt Gray --- drivers/media/radio/radio-rtrack2.c | 13 + 1 file changed, 1 insertion(+), 12

[PATCH 6/6] radio: aimslab: Utilize the module_isa_driver macro

2016-07-18 Thread William Breathitt Gray
This driver does not do anything special in module init/exit. This patch eliminates the module init/exit boilerplate code by utilizing the module_isa_driver macro. Cc: Hans Verkuil Signed-off-by: William Breathitt Gray --- drivers/media/radio/radio-aimslab.c | 13 + 1 file changed,

Re: [RESEND PATCH] arm: assabet_defconfig: disable IDE subsystem

2016-07-18 Thread Sekhar Nori
On Friday 15 July 2016 08:45 PM, Kevin Hilman wrote: > Arnd Bergmann writes: > >> On Wednesday, July 13, 2016 12:59:23 PM CEST Bartlomiej Zolnierkiewicz wrote: >>> >>> On Friday, July 08, 2016 10:23:48 PM Arnd Bergmann wrote: On Friday, July 8, 2016 5:24:41 PM CEST Bartlomiej Zolnierkiewicz

[PATCH 5/6] radio: aztech: Utilize the module_isa_driver macro

2016-07-18 Thread William Breathitt Gray
This driver does not do anything special in module init/exit. This patch eliminates the module init/exit boilerplate code by utilizing the module_isa_driver macro. Cc: Hans Verkuil Signed-off-by: William Breathitt Gray --- drivers/media/radio/radio-aztech.c | 13 + 1 file changed, 1

[PATCH 1/6] radio: terratec: Utilize the module_isa_driver macro

2016-07-18 Thread William Breathitt Gray
This driver does not do anything special in module init/exit. This patch eliminates the module init/exit boilerplate code by utilizing the module_isa_driver macro. Signed-off-by: William Breathitt Gray --- drivers/media/radio/radio-terratec.c | 14 +- 1 file changed, 1 insertion(+),

[PATCH 0/6] radio: Utilize the module_isa_driver macro

2016-07-18 Thread William Breathitt Gray
The module_isa_driver macro is a helper macro for ISA drivers which do not do anything special in module init/exit. This patchset eliminates a lot of ISA driver registration boilerplate code by utilizing module_isa_driver, which replaces module_init and module_exit. William Breathitt Gray (6): r

Re: [PATCH v3] drm/ttm: Delete an unnecessary check before the function call "ttm_tt_destroy"

2016-07-18 Thread Daniel Vetter
On Mon, Jul 18, 2016 at 04:10:36PM +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 18 Jul 2016 16:06:18 +0200 > > The ttm_tt_destroy() function tests whether its argument is NULL > and then returns immediately. Thus the test around the call is not needed. > > This issue was d

[RFC PATCH 06/30] net/netpolicy: get CPU information

2016-07-18 Thread kan . liang
From: Kan Liang Net policy also needs to know CPU information. Currently, online CPU number is enough. Signed-off-by: Kan Liang --- net/core/netpolicy.c | 5 + 1 file changed, 5 insertions(+) diff --git a/net/core/netpolicy.c b/net/core/netpolicy.c index 7c34c8a..075aaca 100644 --- a/net/

[RFC PATCH 02/30] net/netpolicy: init NET policy

2016-07-18 Thread kan . liang
From: Kan Liang This patch tries to initialize NET policy for all the devices in the system. However, not all device drivers have NET policy support. For those drivers who does not have NET policy support, the node will not be showed in /proc/net/netpolicy/. The device driver who has NET policy s

[RFC PATCH 01/30] net: introduce NET policy

2016-07-18 Thread kan . liang
From: Kan Liang This patch introduce NET policy subsystem. If proc is supported in the system, it creates netpolicy node in proc system. Signed-off-by: Kan Liang --- include/linux/netdevice.h | 7 +++ include/net/net_namespace.h | 3 ++ net/Kconfig | 7 +++ net/core/Mak

[RFC PATCH 05/30] i40e/netpolicy: implement ndo_get_irq_info

2016-07-18 Thread kan . liang
From: Kan Liang Implement ndo_get_irq_info in i40e driver to get irq information of rx and tx queues. Signed-off-by: Kan Liang --- drivers/net/ethernet/intel/i40e/i40e_main.c | 40 + 1 file changed, 40 insertions(+) diff --git a/drivers/net/ethernet/intel/i40e/i40e

[RFC PATCH 09/30] net/netpolicy: enable and disable net policy

2016-07-18 Thread kan . liang
From: Kan Liang This patch introduces functions to enable and disable net policy. For enabling, it collects device and cpu information, setup cpu/queue mapping, and set irq affinity accordingly. For disabling, it removes the irq affinity and mapping information. np_lock should protect the enable

[PATCH] ASoC: rockchip: correct the spdif clk

2016-07-18 Thread Chris Zhong
The spdif mclk should be 128 times of sample rate, and there is a internal divider, the real rate of spdif mclk is mclk / (div + 1). Hence, the original driver always get the good frequency for 48000/96000/44100/192000. But for 32000, the mclk is incorrect, it should be 32000*128, but get 48000*128

[RFC PATCH 07/30] net/netpolicy: create CPU and queue mapping

2016-07-18 Thread kan . liang
From: Kan Liang Current implementation forces CPU and queue 1:1 mapping. This patch introduces the function netpolicy_update_sys_map to create this mapping. The result is stored in netpolicy_sys_info. If the CPU count and queue count are different, the remaining CPUs/queues are not used. CPU hotp

Re: [RFCv2 1/4] perf stat: balance opening and reading events

2016-07-18 Thread Jiri Olsa
On Fri, Jul 15, 2016 at 11:08:10AM +0100, Mark Rutland wrote: > In create_perf_stat_counter, when a target CPU has not been provided, we > call __perf_evsel__open with empty_cpu_map, and open a single FD per > thread. However, in read_counter we assume that we opened events for > the product of thr

[RFC PATCH 08/30] net/netpolicy: set and remove irq affinity

2016-07-18 Thread kan . liang
From: Kan Liang This patches introduces functions to set and remove irq affinity according to cpu and queue mapping. The functions will not record the previous affinity status. After a set/remove cycles, it will set the affinity on all online cpu with irq balance enabling. Signed-off-by: Kan Lia

Re: [RFCv2 2/4] perf: util: Add more cpu_map helpers

2016-07-18 Thread Jiri Olsa
On Fri, Jul 15, 2016 at 11:08:11AM +0100, Mark Rutland wrote: > In some cases it's necessry to figure out the map-local index of a given > Linux logical CPU ID. Add a new helper, cpu_map__idx, to acquire this. > As the logic is largely the same as the existing cpu_map__has, this is > rewritten in t

[PATCH] pci: Add DMA alias quirk for Adaptec 3805

2016-07-18 Thread Alex Williamson
Just like the 3405 quirk added in commit d3d2ab43ddae ("PCI: Add DMA alias quirk for Adaptec 3405"). Signed-off-by: Alex Williamson Link: https://www.redhat.com/archives/vfio-users/2016-July/msg00046.html --- drivers/pci/quirks.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/

[RFC PATCH 16/30] net/netpolicy: net device hotplug

2016-07-18 Thread kan . liang
From: Kan Liang Support net device up/down/namechange in the netpolicy code. Signed-off-by: Kan Liang --- net/core/netpolicy.c | 66 +--- 1 file changed, 58 insertions(+), 8 deletions(-) diff --git a/net/core/netpolicy.c b/net/core/netpolicy.c i

Re: [RFCv2 3/4] perf: util: only open events on CPUs an evsel permits

2016-07-18 Thread Jiri Olsa
On Fri, Jul 15, 2016 at 11:08:12AM +0100, Mark Rutland wrote: > In systems with heterogeneous CPU PMUs, it's possible for each evsel to > cover a distinct set of CPUs, and hence the cpu_map associated with each > evsel may have a distinct idx<->id mapping. Any of these may be distinct from > the ev

Re: [PATCH v8 2/4] i2c-smbus: add SMBus Host Notify support

2016-07-18 Thread Jean Delvare
Hi Benjamin, Wolfram, Now that I have reviewed the i2c-i801 part of the implementation, I'm wondering... On Thu, 9 Jun 2016 16:53:48 +0200, Benjamin Tissoires wrote: > +/** > + * i2c_setup_smbus_host_notify - Allocate a new smbus_host_notify for the > given > + * I2C adapter. > + * @adapter: th

[RFC PATCH 03/30] i40e/netpolicy: Implement ndo_netpolicy_init

2016-07-18 Thread kan . liang
From: Kan Liang Support ndo_netpolicy_init in i40e driver. For i40e driver, there is no extra initialization work to do. It only needs to update the available policy bitmap. policy_param will be filled according to different policies later. Signed-off-by: Kan Liang --- drivers/net/ethernet/int

[RFC PATCH 17/30] net/netpolicy: support CPU hotplug

2016-07-18 Thread kan . liang
From: Kan Liang For CPU hotplug, the net policy module will rebuild the sys map and object list. Signed-off-by: Kan Liang --- net/core/netpolicy.c | 78 1 file changed, 78 insertions(+) diff --git a/net/core/netpolicy.c b/net/core/netpolicy

[RFC PATCH 15/30] i40e/netpolicy: add MIX policy support

2016-07-18 Thread kan . liang
From: Kan Liang Enable i40e MIX policy support. Based on the test, the MIX policy has better performance if increasing rx interrupt moderation a little bit. For evaluating the MIX policy performance, mixed workloads are tested. The mixed workloads are combination of throughput-first workload and

[RFC PATCH 11/30] net/netpolicy: set net policy by policy name

2016-07-18 Thread kan . liang
From: Kan Liang User can write policy name to /proc/net/netpolicy/$DEV/policy to enable net policy for specific device. When the policy is enabled, the module automatically disables irq balance and set irq affinity. The object list is also generated accordingly. np_lock will be used to protect

[RFC PATCH 00/30] Kernel NET policy

2016-07-18 Thread kan . liang
From: Kan Liang It is a big challenge to get good network performance. First, the network performance is not good with default system settings. Second, it is too difficult to do automatic tuning for all possible workloads, since workloads have different requirements. Some workloads may want high

[RFC PATCH 04/30] net/netpolicy: get driver information

2016-07-18 Thread kan . liang
From: Kan Liang Net policy needs to know device information. Currently, it's enough to only get irq information of rx and tx queues. This patch introduces ndo_get_irq_info to do so. Signed-off-by: Kan Liang --- include/linux/netdevice.h | 5 + include/linux/netpolicy.h | 7 +++ net/c

[RFC PATCH 19/30] net/netpolicy: implement netpolicy register

2016-07-18 Thread kan . liang
From: Kan Liang User can register itself in netpolicy module with specific policy. If it's the first time to register, an record will be created and inserted into RCU hash table. The record includes ptr, policy and object information. ptr is assigned by the user which is used as key to search the

[RFC PATCH 10/30] net/netpolicy: introduce netpolicy object

2016-07-18 Thread kan . liang
From: Kan Liang This patch introduces the concept of netpolicy object and policy object list. The netpolicy object is the instance of CPU/queue mapping. The object can be shared between different tasks/sockets. So besides CPU and queue information, the object also maintains a reference counter.

Re: [PATCH net-next] cdc_ether: Improve ZTE MF823/831/910 handling

2016-07-18 Thread Kristian Evensen
On Mon, Jul 18, 2016 at 4:14 PM, Oliver Neukum wrote: >> Ok, sounds good. So far, I have only seen the random MAC issue with >> the three previously mentioned devices, but who knows how many else is >> out there with the same error ... I don't think it should be in the >> core ethernet code, at le

[PATCH 1/4] input: tablet: pegasus_notetaker: Track usb control msg errors

2016-07-18 Thread Martin Kepplinger
Signed-off-by: Martin Kepplinger --- drivers/input/tablet/pegasus_notetaker.c | 26 ++ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/drivers/input/tablet/pegasus_notetaker.c b/drivers/input/tablet/pegasus_notetaker.c index 83aa583..27cb352 100644 --- a/dr

Re: [PATCH] HID: sony: disable descriptor fixup for FutureMax Dance Mat

2016-07-18 Thread Benjamin Tissoires
On Jul 17 2016 or thereabouts, Mikko Perttunen wrote: > From: Mikko Perttunen > > The FutureMax Dance Mat claims to be a SixAxis controller > but breaks if descriptor fixups are applied. Detect the > device using its USB product string and disable fixups > when it is detected. > > Signed-off-by:

[PATCH 3/4] input: tablet: pegasus_notetaker: Cancel workqueue's work in suspend()

2016-07-18 Thread Martin Kepplinger
Signed-off-by: Martin Kepplinger --- drivers/input/tablet/pegasus_notetaker.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/tablet/pegasus_notetaker.c b/drivers/input/tablet/pegasus_notetaker.c index fdbc5e8..07436c6 100644 --- a/drivers/input/tablet/pegasus_notetaker.c +++ b

[PATCH 2/4] input: tablet: pegasus_notetaker: Fix usb_autopm calls to be balanced

2016-07-18 Thread Martin Kepplinger
Signed-off-by: Martin Kepplinger --- drivers/input/tablet/pegasus_notetaker.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/drivers/input/tablet/pegasus_notetaker.c b/drivers/input/tablet/pegasus_notetaker.c index 27cb352..fdbc5e8 100644 --- a/drivers/i

Re: [RFCv2 4/4] perf: util: support sysfs supported_cpumask file

2016-07-18 Thread Jiri Olsa
On Fri, Jul 15, 2016 at 11:08:13AM +0100, Mark Rutland wrote: > For system PMUs, the perf tools have long expected a cpumask file under > sysfs, describing the single CPU which they support events being single cpu? it's cpumask.. > opened/handled on. Prior patches in this series have reworked th

[RFC PATCH 26/30] net/netpolicy: set per task policy by proc

2016-07-18 Thread kan . liang
From: Kan Liang Users may not want to change the source code to add per task net polic support. Or they may want to change a running task's net policy. prctl does not work for both cases. This patch adds an interface in /proc, which can be used to set and retrieve policy of already running tasks

Re: linux-next: build failure after merge of the tip tree

2016-07-18 Thread Paul Gortmaker
[linux-next: build failure after merge of the tip tree] On 18/07/2016 (Mon 18:29) Stephen Rothwell wrote: > Hi all, > > After merging the tip tree, today's linux-next build (x86_64 allnoconfig) > failed like this: > > In file included from arch/x86/kernel/x8664_ksyms_64.c:10:0: > arch/x86/inclu

Re: [PATCH] Documentation: add watermark_scale_factor to the list of vm systcl file

2016-07-18 Thread Jonathan Corbet
On Tue, 12 Jul 2016 12:05:59 +0200 "Jerome Marchand" wrote: > Commit 795ae7a0de6b ("mm: scale kswapd watermarks in proportion to > memory") properly added the description of the new knob to > Documentation/sysctl/vm.txt, but forgot to add it to the list of files > in /proc/sys/vm. Let's fix that.

[RFC PATCH 22/30] net/netpolicy: set tx queues according to policy

2016-07-18 Thread kan . liang
From: Kan Liang When the device tries to transmit a buffer, netdev_pick_tx is called to find the available tx queues. This patch checks the per socket net policy of the binding socket of the buffer. If net policy is set, it picks up the assigned tx queue from net policy module, and redirect the t

[RFC PATCH 21/30] net/policy: introduce netpolicy_pick_queue

2016-07-18 Thread kan . liang
From: Kan Liang This function will be used to get assigned queues by policy and ptr. If it's first time, get_avail_queue will be called to find the available object from the given policy object list. Signed-off-by: Kan Liang --- include/linux/netpolicy.h | 5 ++ net/core/netpolicy.c | 1

[RFC PATCH 13/30] i40e/netpolicy: add three new net policies

2016-07-18 Thread kan . liang
From: Kan Liang Introduce three net policies for i40e driver. CPU policy: configure for higher throughput and lower CPU%. BULK policy: configure for highest throughput. LATENCY policy: configure for lowest latency. Lots of tests are done for net policy on platforms with Intel Xeon E5 V2 and XL71

[RFC PATCH 23/30] i40e/ethtool: support RX_CLS_LOC_ANY

2016-07-18 Thread kan . liang
From: Kan Liang The existing special location RX_CLS_LOC_ANY flag is designed for the case which the caller does not know/care about the location. Now, this flag is only handled in ethtool user space. If the kernel directly calls the ETHTOOL_SRXCLSRLINS interface with RX_CLS_LOC_ANY flag set, it

Re: [PATCH 04/31] mm, vmscan: begin reclaiming pages on a per-node basis

2016-07-18 Thread Mel Gorman
On Mon, Jul 18, 2016 at 01:11:22PM +0100, Mel Gorman wrote: > The all_unreclaimable logic is related to the number of pages scanned > but currently pages skipped contributes to pages scanned. That is one > possibility. The other is that if all pages scanned are skipped then the > OOM killer can bel

[RFC PATCH 18/30] net/netpolicy: handle channel changes

2016-07-18 Thread kan . liang
From: Kan Liang User can uses ethtool to set the channel number. This patch handles the channel changes by rebuilding the object list. Signed-off-by: Kan Liang --- include/linux/netpolicy.h | 8 net/core/ethtool.c| 8 +++- net/core/netpolicy.c | 1 + 3 files changed,

[PATCH 4/4] input: tablet: pegasus_notetaker: Set device mode in reset_resume() if in use

2016-07-18 Thread Martin Kepplinger
Signed-off-by: Martin Kepplinger --- drivers/input/tablet/pegasus_notetaker.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/input/tablet/pegasus_notetaker.c b/drivers/input/tablet/pegasus_notetaker.c index 07436c6..b172247 100644 --- a/drivers/input/t

[RFC PATCH 20/30] net/netpolicy: introduce per socket netpolicy

2016-07-18 Thread kan . liang
From: Kan Liang The network socket is the most basic unit which control the network traffic. This patch introduces a new socket option SO_NETPOLICY to set/get net policy for socket. so that the application can set its own policy on socket to improve the network performance. Per socket net policy

[RFC PATCH 24/30] net/netpolicy: set rx queues according to policy

2016-07-18 Thread kan . liang
From: Kan Liang For setting rx queues, this patch add rules for Flow Director filters. Since we may not get all the information required for rule until the first package arrived, it will add the rule after recvmsg. The first several packages may not use the assigned queue. The dev information wil

[RFC PATCH 25/30] net/netpolicy: introduce per task net policy

2016-07-18 Thread kan . liang
From: Kan Liang Usually, application as a whole has specific requirement. Applying the net policy to all sockets one by one in the application is too complex. This patch introduces per task net policy to address this case. Once the per task net policy is applied, all the sockets in the applicatio

[RFC PATCH 28/30] net/netpolicy: optimize for queue pair

2016-07-18 Thread kan . liang
From: Kan Liang Some drivers like i40e driver does not support separate tx and rx queues as channels. Using rx queue to stand for the channels, if queue_pair is set by driver. Signed-off-by: Kan Liang --- drivers/net/ethernet/intel/i40e/i40e_main.c | 3 +++ include/linux/netpolicy.h

[RFC PATCH 30/30] Documentation/networking: Document net policy

2016-07-18 Thread kan . liang
From: Kan Liang Signed-off-by: Kan Liang --- Documentation/networking/netpolicy.txt | 158 + 1 file changed, 158 insertions(+) create mode 100644 Documentation/networking/netpolicy.txt diff --git a/Documentation/networking/netpolicy.txt b/Documentation/network

[RFC PATCH 27/30] net/netpolicy: fast path for finding the queues

2016-07-18 Thread kan . liang
From: Kan Liang Current implementation searches the hash table to get assigned object for each transmit/receive packet. It's not necessory, because the assigned object usually remain unchanged. This patch store the assigned queue into netpolicy_reg struct. So it doesnot need to search the hash t

[RFC PATCH 29/30] net/netpolicy: limit the total record number

2016-07-18 Thread kan . liang
From: Kan Liang NET policy can not fulfill users request without limit, because of the security consideration and device limitation. For security consideration, the attacker may fake millions of per task/socket request to crash the system. For device limitation, the flow director rules number is

[RFC PATCH 12/30] i40e/netpolicy: implement ndo_set_net_policy

2016-07-18 Thread kan . liang
From: Kan Liang Setting net policy for all tx and rx queues according to policy name. For i40e driver, the policy only changes per queue interrupt moderation. It uses new ethtool callback (per queue coalesce setting) to configure the driver. Signed-off-by: Kan Liang --- drivers/net/ethernet/in

[RFC PATCH 14/30] net/netpolicy: add MIX policy

2016-07-18 Thread kan . liang
From: Kan Liang MIX policy is combine of other policies. It allows different queue has different policy. If MIX policy is applied, /proc/net/netpolicy/$DEV/policy shows per queue policy. Usually, the workloads requires either high throughput or low latency. So for current implementation, MIX poli

Re: [PATCH 2/3] qemu: Implement virtio-pstore device

2016-07-18 Thread Namhyung Kim
Hello, On Mon, Jul 18, 2016 at 11:03:53AM +0100, Stefan Hajnoczi wrote: > On Mon, Jul 18, 2016 at 01:37:40PM +0900, Namhyung Kim wrote: > > From: Namhyung Kim > > > > Add virtio pstore device to allow kernel log files saved on the host. > > It will save the log files on the directory given by ps

DT connectors, thoughts

2016-07-18 Thread David Gibson
Hi, Here's some of my thoughts on how a connector format for the DT could be done. Sorry it's taken longer than I hoped - I've been pretty swamped in my day job. This is pretty early thoughts, but gives an outline of the approach I prefer. So.. start with an example of a board DT including a wi

Re: [PATCH net-next] cdc_ether: Improve ZTE MF823/831/910 handling

2016-07-18 Thread Oliver Neukum
On Mon, 2016-07-18 at 16:10 +0200, Kristian Evensen wrote: > On Mon, Jul 18, 2016 at 3:50 PM, Oliver Neukum wrote: > > No, you misunderstand me. I don't want quirks if we can avoid it. > > But if you need to do this for rndis_host and cdc_ether and maybe other > > drivers you should not be touchin

Re: 4.7.0-rc7 ext4 error in dx_probe

2016-07-18 Thread Johannes Stezenbach
On Mon, Jul 18, 2016 at 09:38:43AM -0400, Theodore Ts'o wrote: > On Mon, Jul 18, 2016 at 12:57:07PM +0200, Johannes Stezenbach wrote: > > > > I'm running 4.7.0-rc7 with ext4 on lvm on dm-crypt on SSD > > and out of the blue on idle machine the following error > > message appeared: > > > > [373851

Re: [PATCH v4 09/12] [media] vivid: Local optimization

2016-07-18 Thread Philipp Zabel
Hi Ricardo, Am Montag, den 18.07.2016, 15:21 +0200 schrieb Ricardo Ribalda Delgado: > Hi Philipp > > On Mon, Jul 18, 2016 at 3:13 PM, Philipp Zabel wrote: > > Since the constant expressions are evaluated at compile time, you are > > not actually removing shifts. The code generated for precalcula

Re: [PATCH] [media] vb2: map dmabuf for planes on driver queue instead of vidioc_qbuf

2016-07-18 Thread Javier Martinez Canillas
Hello Hans, Michael and Marek, Thanks a lot for your feedback. On 07/18/2016 04:34 AM, Hans Verkuil wrote: > On 07/15/2016 06:26 PM, Javier Martinez Canillas wrote: >> The buffer planes' dma-buf are currently mapped when buffers are queued >> from userspace but it's more appropriate to do the map

Re: [PATCH v9 1/2] i2c: i801: add support of Host Notify

2016-07-18 Thread Jean Delvare
Hi Benjamin, Once again, sorry for the late review. On Fri, 24 Jun 2016 16:39:49 +0200, Benjamin Tissoires wrote: > The i801 chip can handle the Host Notify feature since ICH 3 as mentioned > in > http://www.intel.com/content/dam/doc/datasheet/82801ca-io-controller-hub-3-datasheet.pdf > > Enabl

[PATCH v3] drm/ttm: Delete an unnecessary check before the function call "ttm_tt_destroy"

2016-07-18 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 18 Jul 2016 16:06:18 +0200 The ttm_tt_destroy() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- dr

Re: [PATCH net-next] cdc_ether: Improve ZTE MF823/831/910 handling

2016-07-18 Thread Kristian Evensen
On Mon, Jul 18, 2016 at 3:50 PM, Oliver Neukum wrote: > No, you misunderstand me. I don't want quirks if we can avoid it. > But if you need to do this for rndis_host and cdc_ether and maybe other > drivers you should not be touching drivers. This belongs into the core > ethernet code. Your code is

<    1   2   3   4   5   6   7   8   9   >