Re: [PATCH 2/3] zram: support page-based parallel write

2016-10-20 Thread Sergey Senozhatsky
On (09/22/16 15:42), Minchan Kim wrote: > +static ssize_t use_aio_store(struct device *dev, > + struct device_attribute *attr, const char *buf, size_t len) > +{ > + int ret; > + u16 do_async; > + struct zram *zram = dev_to_zram(dev); > + > + ret = kstrtou16(buf, 10, &do

Re: [PATCH 2/3] zram: support page-based parallel write

2016-10-20 Thread Sergey Senozhatsky
Hello Minchan, On (10/17/16 14:04), Minchan Kim wrote: > Hi Sergey, > > On Fri, Oct 07, 2016 at 03:33:22PM +0900, Minchan Kim wrote: > > < snip > > > > > so the question is -- can we move this parallelization out of zram > > > and instead flush bdi in more than one kthread? how bad that would >

Re: [PATCH 3.12 0/5] 3.12.66-stable review

2016-10-20 Thread Jiri Slaby
On 10/20/2016, 01:34 PM, Guenter Roeck wrote: > On 10/20/2016 01:44 AM, Jiri Slaby wrote: >> This is the start of the stable review cycle for the 3.12.66 release. >> There are 5 patches in this series, all will be posted as a response >> to this one. If anyone has any issues with these being appli

Re: [PATCH V3 2/2] PCI/ACPI: hisi: Add ACPI support for HiSilicon SoCs Host Controllers

2016-10-20 Thread Dongdong Liu
Hi Rafael Thanks for your review. 在 2016/10/20 20:27, Rafael J. Wysocki 写道: On Thu, Oct 20, 2016 at 5:10 AM, Dongdong Liu wrote: PCIe controller in Hip05/HIP06/HIP07 SoCs is not ECAM compliant. It is non ECAM only for the RC bus config space;for any other bus underneath the root bus we suppor

[PATCH] usb: dwc3: Fix error handling for core init

2016-10-20 Thread Vivek Gautam
Fixing the sequence of events in dwc3_core_init() error exit path. dwc3_core_exit() call is removed from the error path since, whatever it's doing is already done. Signed-off-by: Vivek Gautam Cc: Felipe Balbi --- Based on usb-next. drivers/usb/dwc3/core.c | 5 ++--- 1 file changed, 2 insertio

Re: [PATCH v4 2/5] drivers/of: do not add memory for unavailable nodes

2016-10-20 Thread Alistair Popple
Hi Reza, On Thu, 6 Oct 2016 01:36:32 PM Reza Arbab wrote: > Respect the standard dt "status" property when scanning memory nodes in > early_init_dt_scan_memory(), so that if the node is unavailable, no > memory will be added. What happens if a kernel without this patch is booted on a system with

Re: [PATCH 3/3] zram: adjust the number of zram thread

2016-10-20 Thread Sergey Senozhatsky
On (09/22/16 15:42), Minchan Kim wrote: [..] > +static int __zram_cpu_notifier(void *dummy, unsigned long action, > + unsigned long cpu) > { > struct zram_worker *worker; > > - while (!list_empty(&workers.worker_list)) { > + switch (action) { > + cas

Re: [PATCH] mm, compaction: fix NR_ISOLATED_* stats for pfn based migration

2016-10-20 Thread Michal Hocko
On Thu 20-10-16 20:16:06, Andrew Morton wrote: > On Wed, 19 Oct 2016 10:02:40 +0200 Michal Hocko wrote: > > > Since bda807d44454 ("mm: migrate: support non-lru movable page > > migration") isolate_migratepages_block) can isolate !PageLRU pages which > > would acct_isolated account as NR_ISOLATED_

[PATCH] Hexagon-setup: Combine four seq_printf() calls into one call in show_cpuinfo()

2016-10-20 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 21 Oct 2016 08:18:38 +0200 Some data were printed into a sequence by four separate function calls. Print the same data by a single function call instead. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- arch/hexagon/ke

Re: [PATCH v3] [media] vb2: Add support for capture_dma_bidirectional queue flag

2016-10-20 Thread Sakari Ailus
Hi Thierry, On Thu, Oct 20, 2016 at 10:56:04AM +0200, Thierry Escande wrote: > From: Pawel Osciak > > When this flag is set for CAPTURE queues by the driver on calling > vb2_queue_init(), it forces the buffers on the queue to be > allocated/mapped with DMA_BIDIRECTIONAL direction flag instead of

[RESEND PATCH v3 kernel 0/7] Extend virtio-balloon for fast (de)inflating & fast live migration

2016-10-20 Thread Liang Li
This patch set contains two parts of changes to the virtio-balloon. One is the change for speeding up the inflating & deflating process, the main idea of this optimization is to use bitmap to send the page information to host instead of the PFNs, to reduce the overhead of virtio data transmission

[RESEND PATCH v3 kernel 2/7] virtio-balloon: define new feature bit and page bitmap head

2016-10-20 Thread Liang Li
Add a new feature which supports sending the page information with a bitmap. The current implementation uses PFNs array, which is not very efficient. Using bitmap can improve the performance of inflating/deflating significantly The page bitmap header will used to tell the host some information abo

[RESEND PATCH v3 kernel 5/7] mm: add the related functions to get unused page

2016-10-20 Thread Liang Li
Save the unused page info into page bitmap. The virtio balloon driver call this new API to get the unused page bitmap and send the bitmap to hypervisor(QEMU) for speeding up live migration. During sending the bitmap, some the pages may be modified and are no free anymore, this inaccuracy can be cor

[RESEND PATCH v3 kernel 1/7] virtio-balloon: rework deflate to add page to a list

2016-10-20 Thread Liang Li
Will allow faster notifications using a bitmap down the road. balloon_pfn_to_page() can be removed because it's useless. Signed-off-by: Liang Li Signed-off-by: Michael S. Tsirkin Cc: Paolo Bonzini Cc: Cornelia Huck Cc: Amit Shah --- drivers/virtio/virtio_balloon.c | 22 --

[RESEND PATCH v3 kernel 6/7] virtio-balloon: define feature bit and head for misc virt queue

2016-10-20 Thread Liang Li
Define a new feature bit which supports a new virtual queue. This new virtual qeuque is for information exchange between hypervisor and guest. The VMM hypervisor can make use of this virtual queue to request the guest do some operations, e.g. drop page cache, synchronize file system, etc. And the V

[RESEND PATCH v3 kernel 4/7] virtio-balloon: speed up inflate/deflate process

2016-10-20 Thread Liang Li
The implementation of the current virtio-balloon is not very efficient, the time spends on different stages of inflating the balloon to 7GB of a 8GB idle guest: a. allocating pages (6.5%) b. sending PFNs to host (68.3%) c. address translation (6.1%) d. madvise (19%) It takes about 4126ms for the

[RESEND PATCH v3 kernel 3/7] mm: add a function to get the max pfn

2016-10-20 Thread Liang Li
Expose the function to get the max pfn, so it can be used in the virtio-balloon device driver. Simply include the 'linux/bootmem.h' is not enough, if the device driver is built to a module, directly refer the max_pfn lead to build failed. Signed-off-by: Liang Li Cc: Andrew Morton Cc: Mel Gorman

[RESEND PATCH v3 kernel 7/7] virtio-balloon: tell host vm's unused page info

2016-10-20 Thread Liang Li
Support the request for vm's unused page information, response with a page bitmap. QEMU can make use of this bitmap and the dirty page logging mechanism to skip the transportation of these unused pages, this is very helpful to speed up the live migration process. Signed-off-by: Liang Li Cc: Micha

Re: [PATCH 1/2] mm: memcontrol: use special workqueue for creating per-memcg caches

2016-10-20 Thread Michal Hocko
On Thu 20-10-16 20:44:35, Andrew Morton wrote: > On Tue, 4 Oct 2016 16:14:17 +0300 Vladimir Davydov > wrote: > > > Creating a lot of cgroups at the same time might stall all worker > > threads with kmem cache creation works, because kmem cache creation is > > done with the slab_mutex held. The p

[3.8 Regression] backporting "[PATCH stable pre 3.9] mm, gup: close FOLL MAP_PRIVATE race"

2016-10-20 Thread Brian Norris
(Preface: this wasn't a clean backport, I'm a bit under the weather, and it's getting late here. So forgive me if my head's not on straight.) Hi, I'm not sure the best way to report this, but the Chrome OS test infrastructure noticed some problems when testing the following patch backported to ou

Re: [PATCH] net: cpsw: fix obtaining mac address for am3517

2016-10-20 Thread Tony Lindgren
* Jeroen Hofstee [161020 12:57]: > Commit b6745f6e4e63 ("drivers: net: cpsw: davinci_emac: move reading mac > id to common file") did not only move the code for an am3517, it also > added the slave parameter, resulting in a invalid (all zero) mac address > being returned. So change it back to alwa

[PATCH v5] mmc: sdhci-msm: Add pm_runtime and system PM support

2016-10-20 Thread Pramod Gurav
Provides runtime PM callbacks to enable and disable clock resources when idle. Also support system PM callbacks to be called during system suspend and resume. Reviewed-by: Ritesh Harjani Reviewed-by: Georgi Djakov Tested-by: Ritesh Harjani Signed-off-by: Pramod Gurav --- Tested on DB410C. Cha

Re: [RFC][PATCH v3] cgroup: Use CAP_SYS_RESOURCE to allow a process to migrate other tasks between cgroups

2016-10-20 Thread Michael Kerrisk (man-pages)
Hi John, On 10/21/2016 03:24 AM, John Stultz wrote: > This patch adds logic to allows a process to migrate other tasks > between cgroups if they have CAP_SYS_RESOURCE. This appears to be a patch against your previous patch, rather than against mainline. Was that intended? Cheers, Michael > I

Re: [3.8 Regression] backporting "[PATCH stable pre 3.9] mm, gup: close FOLL MAP_PRIVATE race"

2016-10-20 Thread Michal Hocko
On Thu 20-10-16 23:39:39, Brian Norris wrote: > (Preface: this wasn't a clean backport, I'm a bit under the weather, and > it's getting late here. So forgive me if my head's not on straight.) > > Hi, > > I'm not sure the best way to report this, but the Chrome OS test > infrastructure noticed som

Re: [patch] perf_event_open.2: update time_shift sample code

2016-10-20 Thread Michael Kerrisk (man-pages)
On 10/21/2016 06:38 AM, Vince Weaver wrote: > > Linux 4.3 (b20112edeadf0b8a1416de061caa4beb11539902) improved > the accuracy of the clock/ns conversion routines. As a result > the shift factor can now be 32. This value is directly > exported in the perf_event_open() mmap page, and this > potenti

Re: [PATCH V3 0/3] Add support for session ID user filtering

2016-10-20 Thread Richard Guy Briggs
On 2016-10-20 15:27, Paul Moore wrote: > On Thursday, August 18, 2016 01:43:12 PM Richard Guy Briggs wrote: > > https://github.com/linux-audit/audit-kernel/wiki/RFE-Session-ID-User-Filter > > RFE Session ID User Filter > > > > https://github.com/linux-audit/audit-kernel/issues/4 > > RFE: add a ses

Re: [PATCH 2/2] mmc: sdhci-of-at91: Fix module autoload

2016-10-20 Thread Ludovic Desroches
On Mon, Oct 17, 2016 at 01:13:45PM -0300, Javier Martinez Canillas wrote: > If the driver is built as a module, autoload won't work because the module > alias information is not filled. So user-space can't match the registered > device with the corresponding module. > > Export the module alias inf

Re: [PATCH v4 1/2] timers: Fix usleep_range() in the context of wake_up_process()

2016-10-20 Thread Thomas Gleixner
On Thu, 20 Oct 2016, Doug Anderson wrote: > On Thu, Oct 20, 2016 at 2:27 PM, Thomas Gleixner wrote: > > On Thu, 20 Oct 2016, Douglas Anderson wrote: > > > > Please wait for a full review and do not send out patches 5 seconds after > > the first mail hits your inbox. > > Since you had previously c

Re: [PATCH net-next v2 7/9] net: use core MTU range checking in misc drivers

2016-10-20 Thread Rémi Denis-Courmont
Acked-by: Rémi Denis-Courmont -- Rémi Denis-Courmont http://www.remlab.net/CV.pdf

Re: [PATCH v2] PM / OPP: fix debug/error messages in dev_pm_opp_of_get_sharing_cpus()

2016-10-20 Thread Viresh Kumar
On 20-10-16, 15:59, Masahiro Yamada wrote: > These log messages are wrong because _of_get_opp_desc_node() returns > an operating-points-v2 node. > > Commit a6eed752f5fb ("PM / OPP: passing NULL to PTR_ERR()") fixed > static checker warnings, and reworded the messages at the same time > (but the la

[PATCH v3] PM / OPP: fix debug/error messages in dev_pm_opp_of_get_sharing_cpus()

2016-10-20 Thread Masahiro Yamada
These log messages are wrong because _of_get_opp_desc_node() returns an operating-points-v2 node. Commit a6eed752f5fb ("PM / OPP: passing NULL to PTR_ERR()") fixed static checker warnings, and reworded the messages at the same time (but the latter was not mentioned in the git-log). Restore the co

Re: [PATCH v3] PM / OPP: fix debug/error messages in dev_pm_opp_of_get_sharing_cpus()

2016-10-20 Thread Viresh Kumar
On 20-10-16, 16:12, Masahiro Yamada wrote: > These log messages are wrong because _of_get_opp_desc_node() returns > an operating-points-v2 node. > > Commit a6eed752f5fb ("PM / OPP: passing NULL to PTR_ERR()") fixed > static checker warnings, and reworded the messages at the same time > (but the la

[PATCH 0/7] pstore: Improve performance of ftrace backend with ramoops

2016-10-20 Thread Joel Fernandes
Currently ramoops uses a single zone to store function traces. To make this work, it has to uses locking to synchronize accesses to the buffers. Recently the synchronization was completely moved from a cmpxchg mechanism to raw spinlocks due to difficulties in using cmpxchg on uncached memory and al

[PATCH 7/7] pstore: Merge per-CPU ftrace zones into one zone for output

2016-10-20 Thread Joel Fernandes
Up until this patch, each of the per CPU buffers appear as a separate ftrace-ramoops-N file. In this patch we merge all the zones into one and populate the ftrace-ramoops-0 file. Signed-off-by: Joel Fernandes --- fs/pstore/ram.c | 91 + 1 f

[PATCH] sched: correct a typo

2016-10-20 Thread Chao Gao
correct a typo. Signed-off-by: Chao Gao --- kernel/sched/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 94732d1..02f8f9a 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -6976,7 +6976,7 @@ struct sched_domai

[PATCH 2/7] pstore: locking: dont lock unless caller asks to

2016-10-20 Thread Joel Fernandes
In preparation of not locking at all for certain buffers depending on if there's contention, make locking optional depending if caller requested it. Signed-off-by: Joel Fernandes --- fs/pstore/ram.c| 10 +- fs/pstore/ram_core.c | 27 --- include/

Re: the dp helper would try to enable the i2c channel for rockchip-edp

2016-10-20 Thread Tomeu Vizoso
On 19 October 2016 at 15:52, Randy Li wrote: > Hello, > > Recently, I want to use a eDP panel in my RK3288 platform, but I got the > following message: > > [8.935918] i2c i2c-6: of_i2c: modalias failure on /dp@ff97/ports > [8.936018] rockchip-drm display-subsystem: bound ff97.dp

[PATCH 4/7] pstore: Make ramoops_init_przs generic for other prz arrays

2016-10-20 Thread Joel Fernandes
Currently ramoops_init_przs is hard wired only for panic dump zone array. In preparation for the ftrace zone array (one zone per-cpu), make the function more generic to be able to handle this case. Add a new ramoops_init_dump_przs function and use the generic function for the dump prz array. Sign

[PATCH 1/7] pstore: Make spinlock per zone instead of global

2016-10-20 Thread Joel Fernandes
Currently pstore has a global spinlock for all zones. Since the zones are independent and modify different areas of memory, there's no need to have a global lock, so we should use a per-zone lock as introduced here. Also, ramoops's ftrace usecase has a FTRACE_PER_CPU flag introduced in this patch s

[PATCH 6/7] pstore: Add support to store timestamp counter in ftrace records

2016-10-20 Thread Joel Fernandes
In preparation for merging the per CPU buffers into one buffer when we retrieve the pstore ftrace data, we store the timestamp as a counter in the ftrace pstore record. We store the CPU number as well if !PSTORE_CPU_IN_IP, in this case we shift the counter and may lose ordering there but we preser

[PATCH 5/7] ramoops: Split ftrace buffer space into per-CPU zones

2016-10-20 Thread Joel Fernandes
If FTRACE_PER_CPU flag is passed to ramoops pdata, split the space into multiple zones depending on the number of CPUs. This speeds up the performance of function tracing by about 280% in my tests as we avoid the locking. The trade off being lesser space available per CPU. Let the ramoops user de

[PATCH 3/7] pstore: Warn for the case of PSTORE_TYPE_PMSG write using deprecated function

2016-10-20 Thread Joel Fernandes
PMSG now uses ramoops_pstore_write_buf_user instead of ramoops_pstore_write_buf Print a ratelimited warning if the ramoops_pstore_write_buf is called. Signed-off-by: Joel Fernandes --- fs/pstore/ram.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/pstore/ram.c b/fs/

Re: [RFC PATCH 1/1] mm/vmalloc.c: correct logic errors when insert vmap_area

2016-10-20 Thread zijun_hu
On 10/13/2016 02:39 PM, zijun_hu wrote: Hi Nicholas, could you give some comments for this patch? thanks a lot > Hi Nicholas, > > i find __insert_vmap_area() is introduced by you > could you offer comments for this patch related to that funciton > > thanks > > On 10/12/2016 10:46 PM, Michal Ho

Re: bio linked list corruption.

2016-10-20 Thread Thomas Gleixner
On Thu, 20 Oct 2016, Ingo Molnar wrote: > * Linus Torvalds wrote: > > So I don't think it's related. Yours looks like some subtle timer base > > race. It smells like a locking problem with timers. I'm not seeing > > what it might be, but it *might* have been fixed by doing the > > TIMER_MIGRATING

[PATCH v5 7/7] iommu/exynos: Use device dependency links to control runtime pm

2016-10-20 Thread Marek Szyprowski
This patch uses recently introduced device dependency links to track the runtime pm state of the master's device. This way each SYSMMU controller is set to runtime active only when its master's device is active and can restore or save its state instead of being activated all the time when attached

[PATCH v5 0/7] Exynos IOMMU: proper runtime PM support (use device dependencies)

2016-10-20 Thread Marek Szyprowski
Hello, This is another update of the patchset for adding proper runtime PM support to Exynos IOMMU driver. This has been achieved by using recently introduced device links, which lets SYSMMU controller's runtime PM to follow master's device runtime PM state (the device which actually performs DMA

[PATCH v5 4/7] iommu/exynos: Set master device once on boot

2016-10-20 Thread Marek Szyprowski
To avoid possible races, set master device pointer in each SYSMMU controller once on boot. Suspend/resume callbacks now properly relies on the configured iommu domain to enable or disable SYSMMU controller. While changing the code, also update the sleep debug messages and make them conditional. Si

[PATCH v5 2/7] iommu/exynos: Remove dead code

2016-10-20 Thread Marek Szyprowski
__sysmmu_enable/disable functions were designed to do ref-count based operations, but current code always calls them only once, so the code for checking the conditions and invalid conditions can be simply removed without any influence to the driver operation. Signed-off-by: Marek Szyprowski ---

Re: [PATCH] sched: correct a typo

2016-10-20 Thread Ingo Molnar
* Chao Gao wrote: > correct a typo. > > Signed-off-by: Chao Gao > --- > kernel/sched/core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/sched/core.c b/kernel/sched/core.c > index 94732d1..02f8f9a 100644 > --- a/kernel/sched/core.c > +++ b/kernel/sched/core

[PATCH v5 5/7] iommu/exynos: Rework and fix internal locking

2016-10-20 Thread Marek Szyprowski
This patch reworks locking in the exynos_iommu_attach/detach_device functions to ensure that all entries of the sysmmu_drvdata and exynos_iommu_owner structure are updated under the respective spinlocks, while runtime pm functions are called without any spinlocks held. Signed-off-by: Marek Szyprow

[PATCH v5 3/7] iommu/exynos: Simplify internal enable/disable functions

2016-10-20 Thread Marek Szyprowski
Remove remaining leftovers of the ref-count related code in the __sysmmu_enable/disable functions inline __sysmmu_enable/disable_nocount to them. Suspend/resume callbacks now checks if master device is set for given SYSMMU controller instead of relying on the activation count. Signed-off-by: Marek

[PATCH v5 6/7] iommu/exynos: Add runtime pm support

2016-10-20 Thread Marek Szyprowski
This patch adds runtime pm implementation, which is based on previous suspend/resume code. SYSMMU controller is now being enabled/disabled mainly from the runtime pm callbacks. System sleep callbacks relies on generic pm_runtime_force_suspend/pm_runtime_force_resume helpers. To ensure internal stat

[PATCH v5 1/7] iommu/exynos: Remove excessive, useless debug

2016-10-20 Thread Marek Szyprowski
Remove excessive, useless debug about skipping TLB invalidation, which is a normal situation when more aggressive power management is enabled. Signed-off-by: Marek Szyprowski --- drivers/iommu/exynos-iommu.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/iommu/exynos-iommu.c b/dri

Re: [PATCH v9 01/12] vfio: Mediated device Core driver

2016-10-20 Thread Jike Song
On 10/18/2016 05:22 AM, Kirti Wankhede wrote: > diff --git a/drivers/vfio/mdev/mdev_core.c b/drivers/vfio/mdev/mdev_core.c > new file mode 100644 > index ..7db5ec164aeb > --- /dev/null > +++ b/drivers/vfio/mdev/mdev_core.c > @@ -0,0 +1,372 @@ > +/* > + * Mediated device Core Driver > +

Re: [4.9-rc1] Build-time 2x slower

2016-10-20 Thread Sedat Dilek
On Wed, Oct 19, 2016 at 6:59 PM, Jörg Otte wrote: > 2016-10-19 17:29 GMT+02:00 Linus Torvalds : >> On Wed, Oct 19, 2016 at 4:07 AM, Jörg Otte wrote: >>> >>> Additional info: I usally use schedutil governor. >>> If I switch to performance governor problems go away. >>> Maybe a cpufreq problem? >>

Re: [PATCH v9 0/2] J-Core timer support

2016-10-20 Thread Daniel Lezcano
On Wed, Oct 19, 2016 at 09:22:25PM -0400, Rich Felker wrote: > On Mon, Oct 17, 2016 at 11:30:13AM +0200, Daniel Lezcano wrote: > > On Thu, Oct 13, 2016 at 09:51:06PM +, Rich Felker wrote: > > > This version of the patch makes the changes requested by Daniel > > > Lezcano in review of v8. > > >

[PATCH v2 6/7] pstore: Add support to store timestamp counter in ftrace records

2016-10-20 Thread Joel Fernandes
In preparation for merging the per CPU buffers into one buffer when we retrieve the pstore ftrace data, we store the timestamp as a counter in the ftrace pstore record. We store the CPU number as well if !PSTORE_CPU_IN_IP, in this case we shift the counter and may lose ordering there but we preser

[PATCH v2 7/7] pstore: Merge per-CPU ftrace zones into one zone for output

2016-10-20 Thread Joel Fernandes
Up until this patch, each of the per CPU buffers appear as a separate ftrace-ramoops-N file. In this patch we merge all the zones into one and populate the ftrace-ramoops-0 file. Signed-off-by: Joel Fernandes --- fs/pstore/ram.c | 91 + 1 f

[PATCH v2 4/7] pstore: Make ramoops_init_przs generic for other prz arrays

2016-10-20 Thread Joel Fernandes
Currently ramoops_init_przs is hard wired only for panic dump zone array. In preparation for the ftrace zone array (one zone per-cpu), make the function more generic to be able to handle this case. Add a new ramoops_init_dump_przs function and use the generic function for the dump prz array. Sign

[PATCH v2 2/7] pstore: locking: dont lock unless caller asks to

2016-10-20 Thread Joel Fernandes
In preparation of not locking at all for certain buffers depending on if there's contention, make locking optional depending if caller requested it. Signed-off-by: Joel Fernandes --- fs/pstore/ram.c| 10 +- fs/pstore/ram_core.c | 27 --- include/

[PATCH v2 5/7] ramoops: Split ftrace buffer space into per-CPU zones

2016-10-20 Thread Joel Fernandes
If FTRACE_PER_CPU flag is passed to ramoops pdata, split the space into multiple zones depending on the number of CPUs. This speeds up the performance of function tracing by about 280% in my tests as we avoid the locking. The trade off being lesser space available per CPU. Let the ramoops user de

[PATCH v2 1/7] pstore: Make spinlock per zone instead of global

2016-10-20 Thread Joel Fernandes
Currently pstore has a global spinlock for all zones. Since the zones are independent and modify different areas of memory, there's no need to have a global lock, so we should use a per-zone lock as introduced here. Also, ramoops's ftrace usecase has a FTRACE_PER_CPU flag introduced in this patch s

[PATCH v2 3/7] pstore: Warn for the case of PSTORE_TYPE_PMSG write using deprecated function

2016-10-20 Thread Joel Fernandes
PMSG now uses ramoops_pstore_write_buf_user instead of ramoops_pstore_write_buf Print a ratelimited warning if the ramoops_pstore_write_buf is called. Signed-off-by: Joel Fernandes --- fs/pstore/ram.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/pstore/ram.c b/fs/

[PATCH v2 0/7] pstore: Improve performance of ftrace backend with ramoops

2016-10-20 Thread Joel Fernandes
Currently ramoops uses a single zone to store function traces. To make this work, it has to uses locking to synchronize accesses to the buffers. Recently the synchronization was completely moved from a cmpxchg mechanism to raw spinlocks due to difficulties in using cmpxchg on uncached memory and al

Re: [PATCH] kbuild: provide include/asm/asm-prototypes.h for ARM

2016-10-20 Thread Geert Uytterhoeven
On Wed, Oct 19, 2016 at 5:32 PM, Russell King - ARM Linux wrote: > I'm not in favour of this. > >+extern void mmioset(void *, unsigned int, size_t); >+extern void mmiocpy(void *, const void *, size_t); >+ > #ifndef __ARMBE__ > static inline void memset_io(volatile void __iomem

Re: Challenges around the usage of different "HOSTCFLAGS" for kernel build configuration and module generation

2016-10-20 Thread SF Markus Elfring
> Don't forget -r when running objdump on an object file. Thanks for your reminder. > But, you want to use make drivers/md/whatever.s if you want to see > the assembler code. Thanks for your advice! This is one kind of "generation convenience" I was looking for. Was my software development

Re: the dp helper would try to enable the i2c channel for rockchip-edp

2016-10-20 Thread Randy Li
On 10/20/2016 03:18 PM, Tomeu Vizoso wrote: On 19 October 2016 at 15:52, Randy Li wrote: Hello, Recently, I want to use a eDP panel in my RK3288 platform, but I got the following message: [8.935918] i2c i2c-6: of_i2c: modalias failure on /dp@ff97/ports [8.936018] rockchip-drm

Re: [4.9-rc1] Build-time 2x slower

2016-10-20 Thread Sedat Dilek
On Wed, Oct 19, 2016 at 10:55 PM, Rafael J. Wysocki wrote: > On Wednesday, October 19, 2016 06:59:35 PM Jörg Otte wrote: >> 2016-10-19 17:29 GMT+02:00 Linus Torvalds : >> > On Wed, Oct 19, 2016 at 4:07 AM, Jörg Otte wrote: >> >> >> >> Additional info: I usally use schedutil governor. >> >> If I s

Re: [PATCH v2 1/6] clk: stm32f4: Add LSI & LSE clocks

2016-10-20 Thread Gabriel Fernandez
Hi Stephen, Many thanks for reviewing. On 10/19/2016 10:24 PM, Stephen Boyd wrote: On 10/14, gabriel.fernan...@st.com wrote: @@ -292,8 +298,110 @@ static int stm32f4_rcc_lookup_clk_idx(u8 primary, u8 secondary) return clks[i]; } +static struct regmap *pdrm; This can't be part of

Re: [4.9-rc1] Build-time 2x slower

2016-10-20 Thread Sedat Dilek
On Wed, Oct 19, 2016 at 5:29 PM, Linus Torvalds wrote: > On Wed, Oct 19, 2016 at 4:07 AM, Jörg Otte wrote: >> >> Additional info: I usally use schedutil governor. >> If I switch to performance governor problems go away. >> Maybe a cpufreq problem? > > Oh, I completely misread the original bug rep

Re: [PATCH v2 4/6] clk: stm32f4: Add RTC clock

2016-10-20 Thread Gabriel Fernandez
Hi Stephen, Thanks for reviewing. Ok for all yours remarks On 10/19/2016 10:45 PM, Stephen Boyd wrote: On 10/14, gabriel.fernan...@st.com wrote: @@ -310,6 +310,15 @@ static inline void enable_power_domain_write_protection(void) regmap_update_bits(pdrm, 0x00, (1 << 8), (0 << 8)); }

Re: [PATCH v2 0/6] STM32F4 Add RTC & QSPI clocks

2016-10-20 Thread Gabriel Fernandez
Hi Stephen, On 10/19/2016 10:29 PM, Stephen Boyd wrote: On 10/19, Gabriel Fernandez wrote: Hi Stephen, On 10/19/2016 01:51 AM, Stephen Boyd wrote: On 10/14, gabriel.fernan...@st.com wrote: Gabriel Fernandez (6): clk: stm32f4: Add LSI & LSE clocks ARM: dts: stm32f429: add LSI and LSE

Re: [PATCH 0/5] ACPI / gpio: Updates to properties

2016-10-20 Thread Mika Westerberg
On Wed, Oct 19, 2016 at 11:22:03PM +0200, Rafael J. Wysocki wrote: > On Wed, Oct 19, 2016 at 2:41 PM, Mika Westerberg > wrote: > > On Fri, Sep 23, 2016 at 05:57:05PM +0300, Mika Westerberg wrote: > >> Hi, > >> > >> This series brings couple of useful GPIO related properties from Device > >> Tree t

Re: [PATCH v2 4/6] clk: stm32f4: Add RTC clock

2016-10-20 Thread Gabriel Fernandez
Hi Stephen, On 10/19/2016 10:45 PM, Stephen Boyd wrote: On 10/14, gabriel.fernan...@st.com wrote: @@ -310,6 +310,15 @@ static inline void enable_power_domain_write_protection(void) regmap_update_bits(pdrm, 0x00, (1 << 8), (0 << 8)); } +static inline void sofware_reset_backup_doma

Re: [v4.8-rc1 Regression] sched/fair: Apply more PELT fixes

2016-10-20 Thread Morten Rasmussen
On Wed, Oct 19, 2016 at 07:41:36PM +0200, Vincent Guittot wrote: > On 19 October 2016 at 15:30, Morten Rasmussen > wrote: > > On Tue, Oct 18, 2016 at 01:56:51PM +0200, Vincent Guittot wrote: > >> Le Tuesday 18 Oct 2016 à 12:34:12 (+0200), Peter Zijlstra a écrit : > >> > On Tue, Oct 18, 2016 at 11

Re: [4.9-rc1] Build-time 2x slower

2016-10-20 Thread Jörg Otte
2016-10-19 22:55 GMT+02:00 Rafael J. Wysocki : > On Wednesday, October 19, 2016 06:59:35 PM Jörg Otte wrote: >> 2016-10-19 17:29 GMT+02:00 Linus Torvalds : >> > On Wed, Oct 19, 2016 at 4:07 AM, Jörg Otte wrote: >> >> >> >> Additional info: I usally use schedutil governor. >> >> If I switch to perf

Re: [4.9-rc1] Build-time 2x slower

2016-10-20 Thread Sedat Dilek
On Thu, Oct 20, 2016 at 9:57 AM, Jörg Otte wrote: > 2016-10-19 22:55 GMT+02:00 Rafael J. Wysocki : >> On Wednesday, October 19, 2016 06:59:35 PM Jörg Otte wrote: >>> 2016-10-19 17:29 GMT+02:00 Linus Torvalds : >>> > On Wed, Oct 19, 2016 at 4:07 AM, Jörg Otte wrote: >>> >> >>> >> Additional info:

Re: the dp helper would try to enable the i2c channel for rockchip-edp

2016-10-20 Thread Tomeu Vizoso
On 20 October 2016 at 09:38, Randy Li wrote: > > > On 10/20/2016 03:18 PM, Tomeu Vizoso wrote: >> >> On 19 October 2016 at 15:52, Randy Li wrote: >>> >>> Hello, >>> >>> Recently, I want to use a eDP panel in my RK3288 platform, but I got >>> the >>> following message: >>> >>> [8.935918] i2c

[PATCH][v12] PM / hibernate: Verify the consistent of e820 memory map by md5 digest

2016-10-20 Thread Chen Yu
On some platforms, there is occasional panic triggered when trying to resume from hibernation, a typical panic looks like: "BUG: unable to handle kernel paging request at 880085894000 IP: [] load_image_lzo+0x8c2/0xe70" Investigation carried out by Lee Chun-Yi shows that this is because e820 m

[PATCH] ARM: dts: rockchip: add i2c-bus subnode to edp

2016-10-20 Thread Tomeu Vizoso
Add an empty 'i2c-bus' subnode to the edp node just so that the I2C core doesn't attemp to parse the 'ports' subnode as containing i2c devices. This is to avoid spurious failure messages such as: i2c i2c-6: of_i2c: modalias failure on /dp@ff97/ports Signed-off-by: Tomeu Vizoso Cc: Randy Li

[PATCH 1/3] ARM: dts: sun8i: Add common dtsi file for NanoPi SBCs

2016-10-20 Thread Milo Kim
This patch provides a common file for NanoPi M1 and Neo SBC. Those have common features below. * UART0 * 2 LEDs * USB host (EHCI3, OHCI3) and PHY * MicroSD * GPIO key switch Cc: James Pettigrew Signed-off-by: Milo Kim --- arch/arm/boot/dts/sun8i-h3-nanopi.dtsi | 143 +

[PATCH 0/3] ARM: dts: sun8i: Support NanoPi SBCs

2016-10-20 Thread Milo Kim
NanoPi M1 and NEO have common features, so duplicate properties can be moved into new dtsi file. Milo Kim (3): ARM: dts: sun8i: Add common dtsi file for NanoPi SBCs ARM: dts: sun8i: Use the common file in NanoPi NEO SBC ARM: dts: sun8i: Add dts file for NanoPi M1 SBC arch/arm/boot/dts/sun

[PATCH 3/3] ARM: dts: sun8i: Add dts file for NanoPi M1 SBC

2016-10-20 Thread Milo Kim
NanoPi M1 is the Allwinner H3 based board. This patch enables UART for debug console, LEDs, GPIO key switch, 3 USB host ports, a micro SD slot and related power and pin controls. Cc: James Pettigrew Signed-off-by: Milo Kim --- arch/arm/boot/dts/sun8i-h3-nanopi-m1.dts | 64 ++

[PATCH 2/3] ARM: dts: sun8i: Use the common file in NanoPi NEO SBC

2016-10-20 Thread Milo Kim
Cc: James Pettigrew Signed-off-by: Milo Kim --- arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts | 79 +-- 1 file changed, 1 insertion(+), 78 deletions(-) diff --git a/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts b/arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts index 3d64caf..8d2c

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

2016-10-20 Thread Lu Baolu
Hi Peter, Thanks for your comments. On 10/19/2016 09:09 PM, Peter Zijlstra wrote: > On Wed, Oct 19, 2016 at 08:18:22AM +0800, Lu Baolu wrote: >> +++ b/drivers/usb/early/xhci-dbc.c >> +static int xdbc_bulk_write(const char *bytes, int size) >> +{ >> +unsigned long flags; >> +int ret, timeo

Re: [RESEND][PATCHv2] cpupower: Correct return type of cpu_power_is_cpu_online in cpufreq

2016-10-20 Thread Shilpasri G Bhat
On 10/20/2016 04:23 AM, Laura Abbott wrote: > When converting to a shared library in ac5a181d065d ("cpupower: Add > cpuidle parts into library"), cpu_freq_cpu_exists was converted to > cpupower_is_cpu_online. cpu_req_cpu_exists returned 0 on success and > -ENOSYS on failure whereas cpupower_is_cp

[PATCH] checkpatch: don't match against empty $const_structs

2016-10-20 Thread Jerome Forissier
When $conststructsfile does not exist or is empty, we may get false warnings such as: WARNING: struct should normally be const Fix that by not running the string match if $const_structs is empty. Signed-off-by: Jerome Forissier --- scripts/checkpatch.pl | 3 ++- 1 file changed, 2 insertions(+)

[PATCH 0/8] ARM: gr8: Add support for the CHIP Pro

2016-10-20 Thread Maxime Ripard
Hi, This is a serie introducing the CHIP Pro support. The most exciting thing about this is that it's the first board we'll be able to enable the NAND on, benefiting from the awesome work Boris did over the last couple of years. This is possible because the NAND chip is an SLC one, for which we

[PATCH 7/8] ARM: gr8: Add UART3 pins

2016-10-20 Thread Maxime Ripard
The UART3 pins were missing from the DTSI. Add them. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/ntc-gr8.dtsi | 14 ++ 1 file changed, 14 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/ntc-gr8.dtsi b/arch/arm/boot/dts/ntc-gr8.dtsi index 52c150592953..4480ffadc42

[PATCH 8/8] ARM: gr8: Add CHIP Pro support

2016-10-20 Thread Maxime Ripard
The CHIP Pro is a small embeddable board. It features a GR8, an AXP209 PMIC, a 512MB SLC NAND and a WiFi/BT chip. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/Makefile | 1 +- arch/arm/boot/dts/ntc-gr8-chip-pro.dts | 266 ++- 2 files changed, 267 inser

Re: [PATCH 4.8 0/4] 4.8.3-stable review

2016-10-20 Thread Greg Kroah-Hartman
On Wed, Oct 19, 2016 at 06:44:01PM -0700, Guenter Roeck wrote: > On 10/19/2016 11:31 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.8.3 release. > > There are 4 patches in this series, all will be posted as a response > > to this one. If anyone has any iss

[PATCH 1/8] mtd: nand: sunxi: fix support for 512bytes ECC chunks

2016-10-20 Thread Maxime Ripard
From: Boris Brezillon The driver is incorrectly assuming that the ECC block size is always 1k which is not always true. Also take the other cases into account. Signed-off-by: Boris Brezillon Signed-off-by: Maxime Ripard --- drivers/mtd/nand/sunxi_nand.c | 4 1 file changed, 4 insertions

[PATCH 2/8] mtd: nand: add support for the TC58NVG2S0H chip

2016-10-20 Thread Maxime Ripard
From: Boris Brezillon Add the description of the Toshiba TC58NVG2S0H SLC nand to the nand_ids table so we can use the NAND ECC infos and the ONFI timings. Signed-off-by: Boris Brezillon Signed-off-by: Maxime Ripard --- drivers/mtd/nand/nand_ids.c | 3 +++ 1 file changed, 3 insertions(+), 0 de

[PATCH 4/8] ARM: gr8: Fix typo in the i2s mclk pin group

2016-10-20 Thread Maxime Ripard
There was a dumb copy and paste mistake here, fix it. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/ntc-gr8.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/ntc-gr8.dtsi b/arch/arm/boot/dts/ntc-gr8.dtsi index d7cf6be2549c..74aff795e723 100644 --- a/

[PATCH 3/8] ARM: gr8: Add the UART3

2016-10-20 Thread Maxime Ripard
The GR8 has access to the UART3 controller, which was missing in the DTSI. Add it. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/ntc-gr8.dtsi | 10 ++ 1 file changed, 10 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/ntc-gr8.dtsi b/arch/arm/boot/dts/ntc-gr8.dtsi index

Re: [RFC] ppc64le: Enable emulation support for simple Load/Store instructions

2016-10-20 Thread Greg KH
On Thu, Oct 20, 2016 at 12:01:55PM +0530, Ravi Bangoria wrote: > emulate_step() uses a number of underlying kernel functions that were > initially not enabled for LE. This has been rectified since. So, fix > emulate_step() for LE for the corresponding instructions. > > Reported-by: Anton Blanchard

Re: [PATCH 4.8 0/4] 4.8.3-stable review

2016-10-20 Thread Greg Kroah-Hartman
On Wed, Oct 19, 2016 at 04:30:05PM -0600, Shuah Khan wrote: > On 10/19/2016 12:31 PM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.8.3 release. > > There are 4 patches in this series, all will be posted as a response > > to this one. If anyone has any issues

[PATCH 5/8] ARM: gr8: Add missing pwm channel 1 pin

2016-10-20 Thread Maxime Ripard
The PWM controller has two different channels, but only the first pin was exposed in the DTSI. Add the other one. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/ntc-gr8.dtsi | 7 +++ 1 file changed, 7 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/ntc-gr8.dtsi b/arch/arm/b

Re: [PATCH] checkpatch: don't match against empty $const_structs

2016-10-20 Thread Joe Perches
On Thu, 2016-10-20 at 10:12 +0200, Jerome Forissier wrote: > When $conststructsfile does not exist or is empty, we may get false > warnings such as: > WARNING: struct should normally be const > > Fix that by not running the string match if $const_structs is empty. Why should $const_structs ever

[PATCH 6/8] ARM: gr8: Add UART2 pins

2016-10-20 Thread Maxime Ripard
The UART2 pins were missing from the DTSI. Add them. Signed-off-by: Maxime Ripard --- arch/arm/boot/dts/ntc-gr8.dtsi | 14 ++ 1 file changed, 14 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/ntc-gr8.dtsi b/arch/arm/boot/dts/ntc-gr8.dtsi index fad7381630f3..52c15059295

<    1   2   3   4   5   6   7   8   9   10   >