Re: [PATCH 1/2] [RESEND] of: provide of_n_{addr,size}_cells wrappers for !CONFIG_OF

2017-09-19 Thread Geert Uytterhoeven
Hi Rob, On Mon, Sep 18, 2017 at 11:28 PM, Rob Herring wrote: > On Mon, Sep 11, 2017 at 3:07 PM, Arnd Bergmann wrote: >> The pci-rcar driver is enabled for compile tests, and this has >> shown that the driver cannot build without CONFIG_OF, >> following the inclusion of f8f2fe7355fb "PCI: rcar: U

Re: [PATCH] block,bfq: Disable writeback throttling

2017-09-19 Thread Paolo Valente
> Il giorno 14 set 2017, alle ore 09:14, oleksa...@natalenko.name ha scritto: > > Tested-by: Oleksandr Natalenko > >> Similarly to CFQ, BFQ has its write-throttling heuristics, and it >> is better not to combine them with further write-throttling >> heuristics of a different nature. >> So this

[RESEND PATCH v4 2/6] libsas: shut down the PHY if events reached the threshold

2017-09-19 Thread Jason Yan
If the PHY burst too many events, we will alloc a lot of events for the worker. This may leads to memory exhaustion. Dan Williams suggested to shut down the PHY if the events reached the threshold, because in this case the PHY may have gone into some erroneous state. Users can re-enable the PHY by

[RESEND PATCH v4 1/6] libsas: Use dynamic alloced work to avoid sas event lost

2017-09-19 Thread Jason Yan
Now libsas hotplug work is static, every sas event type has its own static work, LLDD driver queues the hotplug work into shost->work_q. If LLDD driver burst posts lots hotplug events to libsas, the hotplug events may pending in the workqueue like shost->work_q new work[PORTE_BYTES_DMAED] --> |[PH

[RESEND PATCH v4 5/6] libsas: libsas: use flush_workqueue to process disco events synchronously

2017-09-19 Thread Jason Yan
Use flush_workqueue to insure the disco and revalidate events processed synchronously. Signed-off-by: Jason Yan CC: John Garry CC: Johannes Thumshirn CC: Ewan Milne CC: Christoph Hellwig CC: Tomas Henzl CC: Dan Williams --- drivers/scsi/libsas/sas_port.c | 4 1 file changed, 4 insert

[RESEND PATCH v4 6/6] libsas: direct call probe and destruct

2017-09-19 Thread Jason Yan
In commit 87c8331f ([SCSI] libsas: prevent domain rediscovery competing with ata error handling) introduced disco mutex to prevent rediscovery competing with ata error handling and put the whole revalidation in the mutex. But the rphy add/remove needs to wait for the error handling which also grabs

[RESEND PATCH v4 3/6] libsas: make the event threshold configurable

2017-09-19 Thread Jason Yan
Add a sysfs attr that LLDD can configure it for every host. We made a example in hisi_sas. Other LLDDs using libsas can implement it if they want. Suggested-by: Hannes Reinecke Signed-off-by: Jason Yan CC: John Garry CC: Johannes Thumshirn CC: Ewan Milne CC: Christoph Hellwig CC: Tomas Henzl

[RESEND PATCH v4 4/6] libsas: Use new workqueue to run sas event and disco event

2017-09-19 Thread Jason Yan
Now all libsas works are queued to scsi host workqueue, include sas event work post by LLDD and sas discovery work, and a sas hotplug flow may be divided into several works, e.g libsas receive a PORTE_BYTES_DMAED event, currently we process it as following steps: sas_form_port --- run in work in s

[RESEND PATCH v4 0/6] Enhance libsas hotplug feature

2017-09-19 Thread Jason Yan
Thanks Martin K. Petersen for applied some of the tidy-up patches. So I do not have to maintain these patches out of the tree. I will only send the reset of them in the next days if needed. Now the libsas hotplug has some issues, Dan Williams report a similar bug here before https://www.mail-archi

[PATCH v4] iio: dac: ds4422/ds4424 dac driver

2017-09-19 Thread Ismail Kose
From: "Ismail H. Kose" This patch provides an iio device driver for DS4422/DS4424 chips that support two/four channel 7-bit Sink/Source Current DAC. Signed-off-by: Ismail Kose --- v4: * Removed unnecessary code and space optimization * Alphabetic order in Kcobfig and Makefile v3

Re: [PATCH] iommu/ipmmu-vmsa: Do not replace bus IOMMU ops on driver init.

2017-09-19 Thread Laurent Pinchart
Hi Liviu, Thank you for the patch. On Monday, 18 September 2017 13:04:44 EEST Liviu Dudau wrote: > If the IPMMU driver is compiled in the kernel it will replace the > platform bus IOMMU ops on running the ipmmu_init() function, regardless > if there is any IPMMU hardware present or not. This scre

[PATCH] hexagon/time: make rtos_timer_device __initdata

2017-09-19 Thread Bhumika Goyal
Make this __initdata as it is only modified during the init phase and after that the structure and its fields are not referenced anywhere. Signed-off-by: Bhumika Goyal --- Hexagon architecture was not found while cross-compiling, so the file is not compile-tested. arch/hexagon/kernel/time.c |

[PATCH v2 0/4] skip swapcache for super fast device

2017-09-19 Thread Minchan Kim
With fast swap storage, platform want to use swap more aggressively and swap-in is crucial to application latency. The rw_page based synchronous devices like zram, pmem and btt are such fast storage. When I profile swapin performance with zram lz4 decompress test, S/W overhead is more than 70%. Ma

[PATCH v2 2/4] bdi: introduce BDI_CAP_SYNCHRONOUS_IO

2017-09-19 Thread Minchan Kim
By discussion[1], someday we will remove rw_page function. If so, we need something to detect such super-fast storage which synchronous IO operation like current rw_page is always win. This patch introduces BDI_CAP_SYNCHRONOUS_IO to indicate such devices. With it, we could use various optimization

[PATCH v2 4/4] mm:swap: skip swapcache for swapin of synchronous device

2017-09-19 Thread Minchan Kim
With fast swap storage, platform want to use swap more aggressively and swap-in is crucial to application latency. The rw_page based synchronous devices like zram, pmem and btt are such fast storage. When I profile swapin performance with zram lz4 decompress test, S/W overhead is more than 70%. Ma

[PATCH v2 1/4] zram: set BDI_CAP_STABLE_WRITES once

2017-09-19 Thread Minchan Kim
[1] fixed weird thing(i.e., reset BDI_CAP_STABLE_WRITES flag unconditionally whenever revalidat_disk is called) so zram doesn't need to reset the flag any more whenever revalidating the bdev. Instead, set the flag just once when the zram device is created. It shouldn't change any behavior. [1] 19

[PATCH v2 3/4] mm:swap: introduce SWP_SYNCHRONOUS_IO

2017-09-19 Thread Minchan Kim
If rw-page based fast storage is used for swap devices, we need to detect it to enhance swap IO operations. This patch is preparation for optimizing of swap-in operation with next patch. Cc: Hugh Dickins Signed-off-by: Minchan Kim --- include/linux/swap.h | 3 ++- mm/swapfile.c| 3 +++

Re: [PATCH 16/16] thunderbolt: Add support for networking over Thunderbolt cable

2017-09-19 Thread Mika Westerberg
On Tue, Sep 19, 2017 at 01:21:44AM +0200, Andrew Lunn wrote: > On Mon, Sep 18, 2017 at 06:30:49PM +0300, Mika Westerberg wrote: > > From: Amir Levy > > > > ThunderboltIP is a protocol created by Apple to tunnel IP/ethernet > > traffic over a Thunderbolt cable. The protocol consists of configurati

Re: [PATCH 1/2] fpga: altera-cvp: remove DRIVER_ATTR() usage

2017-09-19 Thread Greg Kroah-Hartman
On Mon, Sep 18, 2017 at 03:40:13PM -0500, Alan Tull wrote: > On Mon, Sep 18, 2017 at 11:42 AM, Moritz Fischer wrote: > > On Mon, Sep 18, 2017 at 12:17:36PM +0200, Greg Kroah-Hartman wrote: > >> It's better to be explicit and use the DRIVER_ATTR_RW() macro when > >> defining a driver's sysfs file.

[PATCH] MN10300: make resource __initconst

2017-09-19 Thread Bhumika Goyal
Make code_resource and data_resource __initdata as these are only modified during the init phase and after that the structures and their fields are not referenced anywhere. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- arch/mn10300/kernel/setup.c | 4 ++-- 1 file changed, 2 insertions(

[PATCH v5] iio: dac: ds4422/ds4424 dac driver

2017-09-19 Thread Ismail Kose
From: "Ismail H. Kose" This patch provides an iio device driver for DS4422/DS4424 chips that support two/four channel 7-bit Sink/Source Current DAC. Signed-off-by: Ismail Kose --- v5: * Removed unused variable v4: * Removed unnecessary code and space optimization * Alpha

Re: [PATCH] ALSA: asihpi: fix a potential double-fetch bug when copying puhm

2017-09-19 Thread Takashi Iwai
On Tue, 19 Sep 2017 07:21:56 +0200, Meng Xu wrote: > > The hm->h.size is intended to hold the actual size of the hm struct > that is copied from userspace and should always be <= sizeof(*hm). > > However, after copy_from_user(hm, puhm, hm->h.size), since userspace > process has full control over

[PATCH] sysctl: remove duplicate UINT_MAX check on do_proc_douintvec_conv()

2017-09-19 Thread Luis R. Rodriguez
do_proc_douintvec_conv() has two UINT_MAX checks, we can remove one. This has no functional changes other than fixing a compiler warning: kernel/sysctl.c:2190]: (warning) Identical condition '*lvalp>UINT_MAX', second condition is always false Reported-by: David Binderman Signed-off-by: Luis R.

Re: [PATCH v5 3/3] media: ov7670: Add the s_power operation

2017-09-19 Thread Sakari Ailus
Hi Wenyou, On Tue, Sep 19, 2017 at 08:45:09AM +0800, Wenyou Yang wrote: > Add the s_power operation which is responsible for manipulating the > power dowm mode through the PWDN pin and the reset operation through > the RESET pin. This is still broken: accessing controls through the sub-device nod

[PATCH v2] MN10300: make resource __initdata

2017-09-19 Thread Bhumika Goyal
Make code_resource and data_resource __initdata as these are only modified during the init phase and after that the structures and their fields are not referenced anywhere. Signed-off-by: Bhumika Goyal --- Changes in v2: * Replace __initconst with __initdata in the subject line. arch/mn10300/ke

Re: [PATCH 06/16] thunderbolt: Add support for XDomain discovery protocol

2017-09-19 Thread Mika Westerberg
On Mon, Sep 18, 2017 at 06:30:39PM +0300, Mika Westerberg wrote: > +What:/sys/bus/thunderbolt/devices/./key > +Date:Dec 2017 > +KernelVersion: 4.14 I forgot to update these to 4.15. I'll fix them in v2.

[PATCH] m32r: make resource __initdata

2017-09-19 Thread Bhumika Goyal
Make code_resource and data_resource __initdata as these are only modified during the init phase and after that the structures and their fields are not referenced anywhere. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- arch/m32r/kernel/setup.c | 4 ++-- 1 file changed, 2 insertions(+),

Re: [PATCH RFC 2/3] pipe: protect pipe_max_size access with a mutex

2017-09-19 Thread Mikulas Patocka
On Fri, 15 Sep 2017, Joe Lawrence wrote: > On 09/14/2017 07:09 PM, Mikulas Patocka wrote: > > On Tue, 5 Sep 2017, Joe Lawrence wrote: > >> pipe_max_size is assigned directly via procfs sysctl: > >> > >> static struct ctl_table fs_table[] = { > >> ... > >> { > >>

Re: [PATCH 1/1] acpi: unbreak ACPI_HANDLE(), encapsulate fwnode_operations

2017-09-19 Thread Mika Westerberg
On Fri, Sep 15, 2017 at 05:35:27PM -0700, john.hubb...@gmail.com wrote: > From: John Hubbard > > Due to commit db3e50f3234b ("device property: Get rid of struct > fwnode_handle type field"), ACPI_HANDLE() inadvertently became > a GPL-only call. The call path that led to that was: > > ACPI_HANDLE

NULL pointer dereference in call_fext_func [fujitsu_laptop]

2017-09-19 Thread Jiri Slaby
Hi, we have this report from 4.13.1: BUG: unable to handle kernel NULL pointer dereference at 0004 IP: call_fext_func.isra.3+0x82/0xf0 [fujitsu_laptop] *pdpt = 35e79001 *pde = Oops: [#1] PREEMPT SMP Modules linked in: ppdev ipw2200(+) libipw lib80211 cfg80211 sms

Re:Re: [PATCH] net/packet: fix race condition between fanout_add and __unregister_prot_hook

2017-09-19 Thread Nixiaoming
On Fri, Sep 15, 2017 at 10:46 AM, Willem de Bruijn wrote: > > In case of failure we also need to unlink and free match. I > sent the following: > > http://patchwork.ozlabs.org/patch/813945/ + spin_lock(&po->bind_lock); + if (po->running && + match->type == type &&

Re: [PATCH 0/2] ARM: owl: Add CubieBoard6

2017-09-19 Thread Andreas Färber
Am 11.09.2017 um 02:58 schrieb Andreas Färber: > Andreas Färber (2): > dt-bindings: arm: actions: Add CubieBoard6 > ARM: dts: owl-s500: Add CubieBoard6 > > Documentation/devicetree/bindings/arm/actions.txt | 1 + > arch/arm/boot/dts/Makefile| 1 + > arch/arm/boot/dts

Re: [PATCH 1/2] clocksource: stm32: rework driver to use only one timer

2017-09-19 Thread Benjamin Gaignard
2017-09-18 23:30 GMT+02:00 Daniel Lezcano : > On 14/09/2017 09:56, Benjamin Gaignard wrote: >> Rework driver code to use only one timer for both clocksource >> and clockevent. >> This patch also forbids to use 16 bits timers because they are >> not enough accurate. >> Do some clean up in structures

Re: [PATCH 1/1] iommu/iova: Make rcache flush optional on IOVA allocation failure

2017-09-19 Thread Tomasz Nowicki
Hi Robin, On 18.09.2017 18:02, Robin Murphy wrote: Hi Tomasz, On 18/09/17 11:56, Tomasz Nowicki wrote: Since IOVA allocation failure is not unusual case we need to flush CPUs' rcache in hope we will succeed in next round. However, it is useful to decide whether we need rcache flush step becau

Re: NULL pointer dereference in call_fext_func [fujitsu_laptop]

2017-09-19 Thread Andy Shevchenko
On Tue, Sep 19, 2017 at 10:56 AM, Jiri Slaby wrote: > Hi, > > we have this report from 4.13.1: > BUG: unable to handle kernel NULL pointer dereference at 0004 > IP: call_fext_func.isra.3+0x82/0xf0 [fujitsu_laptop] > *pdpt = 35e79001 *pde = Thanks for report. Isn't it

[PATCH net-next] net: dsa: lan9303: Add adjust_link() method

2017-09-19 Thread Egil Hjelmeland
Make the driver react to device tree "fixed-link" declaration on CPU port. - turn off autonegotiation - force speed 10 or 100 mb/s - force duplex mode Signed-off-by: Egil Hjelmeland --- drivers/net/dsa/lan9303-core.c | 40 1 file changed, 40 insertions(+

Re: [PATCH 1/1] iommu/iova: Make rcache flush optional on IOVA allocation failure

2017-09-19 Thread Tomasz Nowicki
Hi Nate, On 19.09.2017 04:57, Nate Watterson wrote: Hi Tomasz, On 9/18/2017 12:02 PM, Robin Murphy wrote: Hi Tomasz, On 18/09/17 11:56, Tomasz Nowicki wrote: Since IOVA allocation failure is not unusual case we need to flush CPUs' rcache in hope we will succeed in next round. However, it is

Re: [PATCH v2 1/2] mfd: fsl-imx25: set irq handler and data in one go

2017-09-19 Thread Lucas Stach
Am Dienstag, den 19.09.2017, 08:23 +0200 schrieb Martin Kaiser: > Replace the two separate calls for setting the irq handler and data with > a single irq_set_chained_handler_and_data() call. > > Signed-off-by: Martin Kaiser Reviewed-by: Lucas Stach > --- > changes in v2: none > > drivers/mfd

Re: [PATCH RFC V2 00/10] perf top optimization

2017-09-19 Thread Jiri Olsa
On Mon, Sep 18, 2017 at 10:01:00AM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Sep 18, 2017 at 10:57:08AM +0200, Jiri Olsa escreveu: > > On Sun, Sep 10, 2017 at 07:23:13PM -0700, kan.li...@intel.com wrote: > > > From: Kan Liang > > > > > > The patch series intends to fix the severe performan

Re: [PATCH v2 resend 0/4] sh: sh7722/sh7757i/sh7264/sh7269: Fix pinctrl registration

2017-09-19 Thread Linus Walleij
On Tue, Sep 12, 2017 at 10:40 AM, Geert Uytterhoeven wrote: > Hi Andrew, > > I'm resending this to you due to unresponsiveness from the SuperH > maintainers (v2 sent before on May 11, pinged on June 30 and August 14). I'm happy to take this into the pinctrl tree if need be. It is pinctr

Re: NULL pointer dereference in call_fext_func [fujitsu_laptop]

2017-09-19 Thread Jonathan Woithe
On Tue, Sep 19, 2017 at 11:07:29AM +0300, Andy Shevchenko wrote: > On Tue, Sep 19, 2017 at 10:56 AM, Jiri Slaby wrote: > > we have this report from 4.13.1: > > BUG: unable to handle kernel NULL pointer dereference at 0004 > > IP: call_fext_func.isra.3+0x82/0xf0 [fujitsu_laptop] > > *pdpt = 000

Re: [PATCH] nvmem: sunxi-sid: add support for A64/H5's SID controller

2017-09-19 Thread Maxime Ripard
On Mon, Sep 18, 2017 at 11:42:04PM +0800, Icenowy Zheng wrote: > Allwinner A64/H5 SoCs come with a SID controller like the one in H3, but > without the silicon bug that makes the initial value at 0x200 wrong, so > the value at 0x200 can be directly read. > > Add support for this kind of SID contro

Re: [PATCH V1] pinctrl: qcom: spmi-gpio: Update GPIO EN_CTL when setting pin config

2017-09-19 Thread Linus Walleij
On Tue, Sep 12, 2017 at 2:32 AM, wrote: > From: Fenglin Wu > > GPIO is expected to be disabled iff PIN_CONFIG_BIAS_HIGH_IMPEDANCE is > configured. Update is_enabled flag in config_set() so that it can > reflect GPIO status correctly. Also modify EN_CTL register based on > is_enabled flag in con

Re: NULL pointer dereference in call_fext_func [fujitsu_laptop]

2017-09-19 Thread Jonathan Woithe
On Tue, Sep 19, 2017 at 09:56:47AM +0200, Jiri Slaby wrote: > we have this report from 4.13.1: > BUG: unable to handle kernel NULL pointer dereference at 0004 > IP: call_fext_func.isra.3+0x82/0xf0 [fujitsu_laptop] > *pdpt = 35e79001 *pde = > : > It looks like fext is NU

Re: [PATCH v2 2/2] mfd: fsl-imx25: clean up irq settings during removal

2017-09-19 Thread Lucas Stach
Am Dienstag, den 19.09.2017, 08:23 +0200 schrieb Martin Kaiser: > When fsl-imx25-tsadc is compiled as a module, loading, unloading and > reloading the module will lead to a crash. > > Unable to handle kernel paging request at virtual address bf005430 > [] (irq_find_matching_fwspec) >from [] (o

Re: [PATCH v2 0/7] swait: Introduce and use swq_has_sleeper()

2017-09-19 Thread Christian Borntraeger
On 09/15/2017 01:53 PM, Paolo Bonzini wrote: > On 13/09/2017 22:08, Davidlohr Bueso wrote: >> The following patches fix and/or justify (in baby steps) some of the >> callers. The main exception is s390, which I didn't follow how ->valid_wakeup >> can get hoisted as kvm_vcpu_block does not use tha

Re: [PATCH] mm: memcontrol: use vmalloc fallback for large kmem memcg arrays

2017-09-19 Thread Michal Hocko
On Mon 18-09-17 14:49:19, Johannes Weiner wrote: > For quick per-memcg indexing, slab caches and list_lru structures > maintain linear arrays of descriptors. As the number of concurrent > memory cgroups in the system goes up, this requires large contiguous > allocations (8k cgroups = order-5, 16k c

[RFC PATCH 0/3] Introduce kernel small arrays (KSA)

2017-09-19 Thread Ilya Matveychikov
Hi guys, Please review the approach of using small fixed-sized arrays to improve parsing of values like get_options() does. This comes to me after fixing an overflow in get_options(). See the thread for details: https://lkml.org/lkml/2017/5/22/581 If the approach is OK I’ll suggest to replace al

Re: [PATCH v2 resend 0/4] sh: sh7722/sh7757i/sh7264/sh7269: Fix pinctrl registration

2017-09-19 Thread Geert Uytterhoeven
Hi Linus, On Tue, Sep 19, 2017 at 10:19 AM, Linus Walleij wrote: > On Tue, Sep 12, 2017 at 10:40 AM, Geert Uytterhoeven > wrote: >> I'm resending this to you due to unresponsiveness from the SuperH >> maintainers (v2 sent before on May 11, pinged on June 30 and August 14). > > I'm happy to take

[RFC PATCH 1/3] ksmall_array: introduce kernel small arrays

2017-09-19 Thread Ilya Matveychikov
Signed-off-by: Ilya V. Matveychikov --- include/linux/small_array.h | 35 +++ lib/Makefile| 2 +- lib/cmdline.c | 4 +++- lib/ksmall_array.c | 26 ++ 4 files changed, 65 insertions(+), 2 deletions(-)

[RFC PATCH 2/3] net/dev/core.c: use ksa_parse_ints instead of get_options

2017-09-19 Thread Ilya Matveychikov
Signed-off-by: Ilya V. Matveychikov --- net/core/dev.c | 20 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/net/core/dev.c b/net/core/dev.c index 8515f8f..acda9ac 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -144,6 +144,7 @@ #include #include #incl

Re: [PATCH v2] mm: introduce validity check on vm dirtiness settings

2017-09-19 Thread Jan Kara
On Tue 19-09-17 06:53:00, Yafang Shao wrote: > we can find the logic in domain_dirty_limits() that > when dirty bg_thresh is bigger than dirty thresh, > bg_thresh will be set as thresh * 1 / 2. > if (bg_thresh >= thresh) > bg_thresh = thresh / 2; > > But actually we can set vm

[PATCH][V3] libata: make static arrays const, reduces object code size

2017-09-19 Thread Colin King
From: Colin Ian King Don't populate const arrayis on the stack, instead make them static. Makes the object code smaller by over 260 bytes: Before: textdata bss dec hex filename 6486459484128 74940 124bc drivers/ata/libata-scsi.o After: textdata bss

Re: [PATCH 4/6] [media] go7007: Use common error handling code in s2250_probe()

2017-09-19 Thread Dan Carpenter
On Mon, Sep 18, 2017 at 03:57:21PM +0200, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 18 Sep 2017 13:50:45 +0200 > > Adjust jump targets so that a bit of exception handling can be better > reused at the end of this function. > > This refactoring might fix also an error situation

Re: [PATCH v2] net: stmmac: dwmac-sun8i: Use reset exclusive

2017-09-19 Thread Maxime Ripard
On Mon, Sep 18, 2017 at 08:30:43PM +0200, Corentin Labbe wrote: > The current dwmac_sun8i module cannot be rmmod/modprobe due to that > the reset controller was not released when removed. > > This patch remove ambiguity, by using of_reset_control_get_exclusive and > add the missing reset_control_p

[PATCH] usb: gadget: core: fix ->udc_set_speed() logic

2017-09-19 Thread Roger Quadros
Consider the following case: udc controller supports SuperSpeed. If we first load a HighSpeed gadget followed by a SuperSpeed gadget, the SuperSpeed gadget will be limited to HighSpeed as UDC core driver doesn't call ->udc_set_speed() in the second case. Call ->udc_set_speed() unconditionally to

Re: [PATCH] perf/core: Update cgroup time with descendants

2017-09-19 Thread Jiri Olsa
On Tue, Sep 19, 2017 at 10:02:50AM +0800, Lin Xiulei wrote: > Add steps of reproducing > > 1 > ``` > mkdir /sys/fs/cgroup/perf_event/root1 > mkdir /sys/fs/cgroup/perf_event/root1/leaf1 > ``` > 2 $pid is any running process > ``` > echo $pid > /sys/fs/cgroup/perf_event/root1/cgroup.procs > ``` >

Re: [PATCH 5/6] [media] go7007: Use common error handling code in go7007_snd_init()

2017-09-19 Thread Dan Carpenter
On Mon, Sep 18, 2017 at 03:58:37PM +0200, SF Markus Elfring wrote: > diff --git a/drivers/media/usb/go7007/snd-go7007.c > b/drivers/media/usb/go7007/snd-go7007.c > index 68e421bf38e1..7ae4d03ed3f7 100644 > --- a/drivers/media/usb/go7007/snd-go7007.c > +++ b/drivers/media/usb/go7007/snd-go7007.c >

RE: [RESEND PATCH] ARM: dts: ls1021a: Add support for QSPI with ls1021a SoC

2017-09-19 Thread 林上智
> Add QSPI node support, and this function is disabled by default This setting > could be overwritten > in board-level definitions > > Signed-off-by: SZ Lin > --- This is a resend patch [1]. Any feedback would be greatly appreciated! ref: [1]: https://patchwork.kernel.org/patch/9889431/ Best

[PATCH V6 1/3] dma-mapping: Introduce device_is_coherent() as a helper

2017-09-19 Thread Huacai Chen
We will use device_is_coherent() as a helper function, which will be used in the next patch. There is a MIPS-specific plat_device_is_coherent(), but we need a more generic solution, so add and use a new function pointer in dma_map_ops. Cc: sta...@vger.kernel.org Signed-off-by: Huacai Chen --- a

[PATCH V6 2/3] dma-mapping: Rework dma_get_cache_alignment() function

2017-09-19 Thread Huacai Chen
Make dma_get_cache_alignment() to accept a 'dev' argument. As a result, it can return different alignments due to different devices' I/O cache coherency. For compatibility, make all existing callers pass a NULL dev argument. Cc: sta...@vger.kernel.org Signed-off-by: Huacai Chen --- drivers/infin

[PATCH V6 3/3] scsi: Align block queue to dma_get_cache_alignment()

2017-09-19 Thread Huacai Chen
In non-coherent DMA mode, kernel uses cache flushing operations to maintain I/O coherency, so scsi's block queue should be aligned to ARCH_DMA_MINALIGN. Otherwise, it will cause data corruption, at least on MIPS: Step 1, dma_map_single Step 2, cache_invalidate (no writeback)

Re: [linux-sunxi] Re: [PATCH] nvmem: sunxi-sid: add support for A64/H5's SID controller

2017-09-19 Thread Icenowy Zheng
于 2017年9月19日 GMT+08:00 下午4:20:19, Maxime Ripard 写到: >On Mon, Sep 18, 2017 at 11:42:04PM +0800, Icenowy Zheng wrote: >> Allwinner A64/H5 SoCs come with a SID controller like the one in H3, >but >> without the silicon bug that makes the initial value at 0x200 wrong, >so >> the value at 0x200 can

Re: [alsa-devel] [PATCH RESEND1 00/12] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-09-19 Thread Oleksandr Andrushchenko
Hi, all! We did some work on implementing the idea with feedback events from the backend to the frontend. Please see attached the changes to the existing sndif protocol [1]: 1. Introduced a new event channel from back to front 2. New event with number of bytes played/captured (XENSND_EVT_CUR_

[PATCH 3/6] staging: fsl-dpaa2/ethsw: Add ethtool support

2017-09-19 Thread Razvan Stefanescu
Add driver information, link details and hardware statistics to be reported via ethtool -S. Signed-off-by: Razvan Stefanescu --- drivers/staging/fsl-dpaa2/ethsw/Makefile| 2 +- drivers/staging/fsl-dpaa2/ethsw/dpsw-cmd.h | 13 ++ drivers/staging/fsl-dpaa2/ethsw/dpsw.c |

[PATCH 6/6] staging: fsl-dpaa2/ethsw: Add TODO

2017-09-19 Thread Razvan Stefanescu
Add a TODO file describing what needs to be added/changed before the driver can be moved out of staging. Signed-off-by: Razvan Stefanescu --- drivers/staging/fsl-dpaa2/ethsw/TODO | 14 ++ 1 file changed, 14 insertions(+) create mode 100644 drivers/staging/fsl-dpaa2/ethsw/TODO diff

[PATCH 0/6] staging: Introduce DPAA2 Ethernet Switch driver

2017-09-19 Thread Razvan Stefanescu
This patchset introduces the Ethernet Switch Driver for Freescale/NXP SoCs with DPAA2 (DataPath Acceleration Architecture v2). The driver manages switch objects discovered on the fsl-mc bus. A description of the driver can be found in the associated README file. The patchset consists of: * A set o

[PATCH 5/6] staging: fsl-dpaa2/ethsw: Add README

2017-09-19 Thread Razvan Stefanescu
Add a README file describing the driver architecture, components and interfaces. Signed-off-by: Razvan Stefanescu --- drivers/staging/fsl-dpaa2/ethsw/README | 106 + 1 file changed, 106 insertions(+) create mode 100644 drivers/staging/fsl-dpaa2/ethsw/README diff

[PATCH 4/6] staging: fsl-dpaa2/ethsw: Add maintainer for Ethernet Switch driver

2017-09-19 Thread Razvan Stefanescu
Signed-off-by: Razvan Stefanescu --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2281af4..cfd4f74 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4297,6 +4297,12 @@ L: linux-kernel@vger.kernel.org S: Maintained F: drivers/st

[PATCH 1/6] staging: fsl-dpaa2/ethsw: Add APIs for DPSW object

2017-09-19 Thread Razvan Stefanescu
Add the command build/parse APIs for operating on DPSW objects through the DPAA2 Management Complex. Signed-off-by: Razvan Stefanescu --- drivers/staging/fsl-dpaa2/Kconfig |8 + drivers/staging/fsl-dpaa2/Makefile |1 + drivers/staging/fsl-dpaa2/ethsw/Makefile |7 +

[PATCH 2/6] staging: fsl-dpaa2/ethsw: Add Freescale DPAA2 Ethernet Switch driver

2017-09-19 Thread Razvan Stefanescu
Introduce the DPAA2 Ethernet Switch driver, which manages Datapath Switch (DPSW) objects discovered on the MC bus. Suggested-by: Alexandru Marginean Signed-off-by: Razvan Stefanescu --- drivers/staging/fsl-dpaa2/ethsw/Makefile |2 +- drivers/staging/fsl-dpaa2/ethsw/ethsw.c | 1523 +

[PATCH] scripts/spelling.txt: add more spelling mistakes to spelling.txt

2017-09-19 Thread Colin King
From: Colin Ian King Here are some of the more spelling mistakes and typos that I've found while fixing up spelling mistakes in kernel error message text over the past eight weeks. Signed-off-by: Colin Ian King --- scripts/spelling.txt | 33 + 1 file changed, 33

Re: alpha runtime warnings due to commit 0e4c2eeb758 ("alpha/PCI: Replace pci_fixup_irqs() call with host ...")

2017-09-19 Thread Lorenzo Pieralisi
On Mon, Sep 18, 2017 at 07:00:55PM -0700, Guenter Roeck wrote: > Hi, > > I see the following runtime warnings in mainline when running alpha images in > qemu. > > > Floppy drive(s): fd0 is 2.88M > ide0: disabled, no IRQ > ide0: failed to initialize IDE interface > ide0: disabling port > cmd64x

Re: [patch 00/52] x86: Rework the vector management

2017-09-19 Thread Yu Chen
On Wed, Sep 13, 2017 at 11:29:02PM +0200, Thomas Gleixner wrote: > Sorry for the large CC list, but this is a major surgery. > > The vector management in x86 including the surrounding code is a > conglomorate of ancient bits and pieces which have been subject to > 'modernization' and featuritis ov

Re: linux-next: Signed-off-by missing for commits in the renesas tree

2017-09-19 Thread Simon Horman
On Tue, Sep 19, 2017 at 07:39:50AM +1000, Stephen Rothwell wrote: > Hi Simon, > > Commits > > 5cb3ee61cab3 ("ARM: dts: iwg20d-q7: Add SDHI1 support") > 39b87a4ae6f5 ("ARM: dts: r8a7745: Add MMC interface support") > > are missing a Signed-off-by from their committer. Hi Stephen, sorry for

Re: linux-4.14-rc1/drivers/clk/clk-stm32h7.c: 2 * possible typo ?

2017-09-19 Thread Gabriel FERNANDEZ
Hi David, I confirm it's typo issue. I 'm ready to send a fix for that. Many Thank's Gabriel > Hello there, > > 1. > > linux-4.14-rc1/drivers/clk/clk-stm32h7.c:387]: (style) Same expression > on both sides of '&&'. > > Source code is > >     if (gcfg->mux && gcfg->mux) { > > 2. > > [linux-4.1

Re: linux-4.14-rc1/drivers/clk/clk-stm32h7.c: 2 * possible typo ?

2017-09-19 Thread Gabriel FERNANDEZ
I missed David ... On 09/19/2017 11:22 AM, Gabriel FERNANDEZ wrote: > Hi David, > > I confirm it's typo issue. I 'm ready to send a fix for that. > > Many Thank's > > Gabriel > >> Hello there, >> >> 1. >> >> linux-4.14-rc1/drivers/clk/clk-stm32h7.c:387]: (style) Same expression >> on both sides o

Re: [PATCH v2 8/9] atmel_flexcom: Support backup mode

2017-09-19 Thread Nicolas Ferre
On 15/09/2017 at 16:04, Romain Izard wrote: > The controller used by a flexcom module is configured at boot, and left > alone after this. As the configuration will be lost after backup mode, > restore the state of the flexcom driver on resume. > > Signed-off-by: Romain Izard Tested-by: Nicolas F

Re: [PATCH v2 0/2] Dual MMU support for TI DRA7xx DSPs

2017-09-19 Thread Joerg Roedel
On Tue, Sep 05, 2017 at 05:56:16PM -0500, Suman Anna wrote: > Suman Anna (2): > iommu/omap: Change the attach detection logic > iommu/omap: Add support to program multiple iommus > > drivers/iommu/omap-iommu.c | 375 > ++--- > drivers/iommu/omap-iommu.

Re: [PATCH v4] [DVB][FRONTEND] Added a new ioctl for optimizing frontend property set operation

2017-09-19 Thread Mauro Carvalho Chehab
Em Mon, 18 Sep 2017 05:35:45 -0400 Satendra Singh Thakur escreveu: > Hello Mr Chehab, > It seems that there is a mismatch among tab spacing > in local patch on my PC, the patch in email > and the patch in lkml site. > This is causing alignment problem. Even if I fix alignment problem > in my PC,

Re: [PATCH v3 0/2] Fixup for discontiguous/sparse numa nodes

2017-09-19 Thread Satheesh Rajendran
Hi Arnaldo, Please let me know if any further comments. Thanks in advance :-) Regards, -Satheesh.On Mon, 2017-08-21 at 15:45 +0530, sathn...@linux.vnet.ibm.com wrote: > From: Satheesh Rajendran > > Certain systems would have sparse/discontinguous > numa nodes. > perf bench numa doesnt work well

[Patch v3 1/3] ipv4: Namespaceify tcp_fastopen knob

2017-09-19 Thread Haishuang Yan
Different namespace application might require enable TCP Fast Open feature independently of the host. This patch series continues making more of the TCP Fast Open related sysctl knobs be per net-namespace. Reported-by: Luca BRUNO Signed-off-by: Haishuang Yan Change since v3: * Split the patc

[Patch v3 2/3] ipv4: Namespaceify tcp_fastopen_key knob

2017-09-19 Thread Haishuang Yan
Different namespace application might require different tcp_fastopen_key independently of the host. Tested: 1. Container namespace: # cat /proc/sys/net/ipv4/tcp_fastopen_key: 2817fff2-f803cf97-eadfd1f3-78c0992b cookie key in tcp syn packets: Fast Open Cookie Kind: TCP Fast Open Cookie (34)

[Patch v3 3/3] ipv4: Namespaceify tcp_fastopen_blackhole_timeout knob

2017-09-19 Thread Haishuang Yan
Different namespace application might require different time period in second to disable Fastopen on active TCP sockets. Tested: Simulate following similar situation that the server's data gets dropped after 3WHS. C syn-data ---> S C <--- syn/ack - S C ack > S S (accept & wri

Re: [PATCH] staging: ion: create one device entry per heap

2017-09-19 Thread Dan Carpenter
On Mon, Sep 18, 2017 at 04:58:46PM +0200, Benjamin Gaignard wrote: > -static int validate_ioctl_arg(unsigned int cmd, union ion_ioctl_arg *arg) > +static int validate_ioctl_arg(struct file *filp, > + unsigned int cmd, union ion_ioctl_arg *arg) > { > int ret = 0; > +

Re: [PATCH] iommu/amd: Use raw_cpu_ptr() instead of get_cpu_ptr() for ->flush_queue

2017-09-19 Thread Joerg Roedel
Hi Sebastian, On Wed, Sep 06, 2017 at 12:34:59PM +0200, Sebastian Andrzej Siewior wrote: > get_cpu_ptr() disables preemption and returns the ->flush_queue object > of the current CPU. raw_cpu_ptr() does the same except that it not > disable preemption which means the scheduler can move it to anoth

Re: [PATCH] iommu: Add missing dependencies

2017-09-19 Thread Joerg Roedel
On Sun, Sep 10, 2017 at 01:43:37PM -0700, Guenter Roeck wrote: > parisc:allmodconfig, xtensa:allmodconfig, and possibly others generate > the following Kconfig warning. > > warning: (IPMMU_VMSA && ARM_SMMU && ARM_SMMU_V3 && QCOM_IOMMU) selects > IOMMU_IO_PGTABLE_LPAE which has unmet direct depende

[PATCH net-next 1/3] virtio-net: remove unnecessary parameter of virtnet_xdp_xmit()

2017-09-19 Thread Jason Wang
CC: John Fastabend Signed-off-by: Jason Wang --- drivers/net/virtio_net.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 511f833..a0ef4b0 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -3

[PATCH net-next 3/3] virtio-net: support XDP_REDIRECT

2017-09-19 Thread Jason Wang
This patch tries to add XDP_REDIRECT for virtio-net. The changes are not complex as we could use exist XDP_TX helpers for most of the work. The rest is passing the XDP_TX to NAPI handler for implementing batching. Cc: John Fastabend Signed-off-by: Jason Wang --- drivers/net/virtio_net. | 0 d

[PATCH net-next 2/3] virtio-net: add packet len average only when needed during XDP

2017-09-19 Thread Jason Wang
There's no need to add packet len average in the case of XDP_PASS since it will be done soon after skb is created. Cc: John Fastabend Signed-off-by: Jason Wang --- drivers/net/virtio_net.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/virtio_net.c b/drive

[PATCH 0/5] arm64: add ls1012a and ls1046a pcie support

2017-09-19 Thread Zhiqiang Hou
From: Hou Zhiqiang This patch set adds ls1012a MSI and PCIe support, including driver and device tree nodes. The ls1046a's MSI support patch and PCIe driver patch has been applied, so only adds the PCIe device tree nodes. Hou Zhiqiang (5): irqchip/ls-scfg-msi: add LS1012a MSI support arm64:

[PATCH 3/5] PCI: layerscape: Add support for ls1012a

2017-09-19 Thread Zhiqiang Hou
From: Hou Zhiqiang Signed-off-by: Hou Zhiqiang --- Documentation/devicetree/bindings/pci/layerscape-pci.txt | 1 + drivers/pci/dwc/pci-layerscape.c | 1 + 2 files changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/pci/layerscape-pci.txt b/Documenta

[PATCH 5/5] arm64: dts: ls1046a: add PCIe controller DT nodes

2017-09-19 Thread Zhiqiang Hou
From: Hou Zhiqiang LS1046a implements 3 PCIe 3.0 controllers. Signed-off-by: Hou Zhiqiang --- arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 75 ++ 1 file changed, 75 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi b/arch/arm64/boot/dts/fre

[PATCH 2/5] arm64: dts: ls1012a: Add MSI controller DT node

2017-09-19 Thread Zhiqiang Hou
From: Hou Zhiqiang Add MSI controller node for ls1012a platform. Signed-off-by: Hou Zhiqiang --- arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1012a

[PATCH 4/5] arm64: dts: ls1012a: Add PCIe controller DT node

2017-09-19 Thread Zhiqiang Hou
From: Hou Zhiqiang Add PCIe controller node for ls1012a platform. Signed-off-by: Hou Zhiqiang --- arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 24 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi b/arch/arm64/boot/dts/f

Re: [PATCH] iommu: dmar: fix harmless section mismatch warning

2017-09-19 Thread Joerg Roedel
On Tue, Sep 12, 2017 at 10:10:21PM +0200, Arnd Bergmann wrote: > Building with gcc-4.6 results in this warning due to > dmar_table_print_dmar_entry being inlined as in newer compiler versions: > > WARNING: vmlinux.o(.text+0x5c8bee): Section mismatch in reference from the > function dmar_walk_rema

Re: [PATCH] mm, memory_hotplug: do not back off draining pcp free pages from kworker context

2017-09-19 Thread Michal Hocko
On Mon 18-09-17 20:38:22, Tejun Heo wrote: > Hello, Sorry about the delay. > > On Thu, Aug 31, 2017 at 07:33:42AM +0200, Michal Hocko wrote: > > > > Michal, are you sure that this patch does not cause deadlock? > > > > > > > > As shown in "[PATCH] mm: Use WQ_HIGHPRI for mm_percpu_wq." thread, >

Re: [PATCH] iommu/ipmmu-vmsa: Do not replace bus IOMMU ops on driver init.

2017-09-19 Thread Liviu Dudau
On Tue, Sep 19, 2017 at 10:07:58AM +0300, Laurent Pinchart wrote: > Hi Liviu, > > Thank you for the patch. > > On Monday, 18 September 2017 13:04:44 EEST Liviu Dudau wrote: > > If the IPMMU driver is compiled in the kernel it will replace the > > platform bus IOMMU ops on running the ipmmu_init()

[PATCH 1/5] irqchip/ls-scfg-msi: add LS1012a MSI support

2017-09-19 Thread Zhiqiang Hou
From: Hou Zhiqiang The ls1012a implement only 1 msi controller, and it is the same as ls1043a. Signed-off-by: Hou Zhiqiang --- .../devicetree/bindings/interrupt-controller/fsl,ls-scfg-msi.txt | 1 + drivers/irqchip/irq-ls-scfg-msi.c| 1 + 2 files

Re: [PATCH v2 3/4] iommu/iova: Extend rbtree node caching

2017-09-19 Thread Leizhen (ThunderTown)
On 2017/7/31 19:42, Robin Murphy wrote: > Hi Nate, > > On 29/07/17 04:57, Nate Watterson wrote: >> Hi Robin, >> I am seeing a crash when performing very basic testing on this series >> with a Mellanox CX4 NIC. I dug into the crash a bit, and think this >> patch is the culprit, but this rcache bu

  1   2   3   4   5   6   7   8   9   10   >