Re: [PATCH v1 7/7] nvmet: allow overriding the NVMe VS via configfs

2017-06-01 Thread Hannes Reinecke
On 06/01/2017 08:52 AM, Christoph Hellwig wrote: > On Wed, May 31, 2017 at 03:32:17PM +0200, Johannes Thumshirn wrote: >> Allow overriding the announced NVMe Version of a via configfs. >> >> This is particularly helpful when debugging new features for the host >> or target side without bumping the

[PATCH 2/3] x86-32: Expand static copy_to_user()

2017-06-01 Thread Chris Wilson
For known compile-time fixed sizes, teach x86-32 copy_to_user() to convert them to the simpler put_user and inline it similar to the optimisation applied to copy_from_user() and already used by x86-64. Signed-off-by: Chris Wilson Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" --- ar

[PATCH 1/3] x86-32: Teach copy_from_user to unroll .size=6/8

2017-06-01 Thread Chris Wilson
Two exception handling register moves are faster to inline than a call to __copy_user_ll(). We already apply the conversion for a get_user() call, so for symmetry we should also apply the optimisation to copy_from_user. Signed-off-by: Chris Wilson Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Pet

Re: [PATCH v3 1/4] dt-bindings: power: supply: add battery charge voltage/current

2017-06-01 Thread Liam Breck
Hi Enric, On Sat, May 27, 2017 at 1:11 PM, Enric Balletbo Serra wrote: > Hi Liam, > > 2017-05-26 23:20 GMT+02:00 Liam Breck : >> Hi Enric, >> >> On Fri, May 26, 2017 at 4:04 AM, Enric Balletbo i Serra >> wrote: >>> Add charging voltage and current characteristics to the battery DT for >>> proper

Re: linux-next: Tree for May 31

2017-06-01 Thread Michael Ellerman
Michael Ellerman writes: > Stephen Rothwell writes: > >> Hi all, >> >> Changes since 20170530: >> >> The mfd tree gained a build failure so I used the version from >> next-20170530. >> >> The drivers-x86 tree gained the same build failure as the mfd tree so >> I used the version from next-201705

[PATCH-v2] target/iblock: Convert WRITE_SAME to blkdev_issue_zeroout

2017-06-01 Thread Nicholas A. Bellinger
From: Nicholas Bellinger The people who are actively using iblock_execute_write_same_direct() are doing so in the context of ESX VAAI BlockZero, together with EXTENDED_COPY and COMPARE_AND_WRITE primitives. In practice though I've not seen any users of IBLOCK WRITE_SAME for anything other than V

Re: linux-next: Tree for May 31

2017-06-01 Thread Michael Ellerman
Stephen Rothwell writes: > Hi Michael, > > On Thu, 01 Jun 2017 16:07:51 +1000 Michael Ellerman > wrote: >> >> Stephen Rothwell writes: >> >> > Changes since 20170530: >> > >> > Non-merge commits (relative to Linus' tree): 3325 >> > 3598 files changed, 135000 insertions(+), 72065 deletions(-)

Re: [PATCH] target: Avoid target_shutdown_sessions loop during queue_depth change

2017-06-01 Thread Nicholas A. Bellinger
On Thu, 2017-06-01 at 08:57 +0200, Christoph Hellwig wrote: > How about this slightly easier to read version? Fine by me. Applied.

Re: signals: Bug or manpage inconsistency?

2017-06-01 Thread Eric W. Biederman
Thomas Gleixner writes: > While trying to address the longstanding FIXME in the posix timer code > related to ignored signals, I stumbled over the following issue: > > I blocked the signal of the timer, then installed the SIG_IGN handler, > created and started the timer. After a short sleep the t

[PATCH V2] ivtv: Fix a sleep-in-atomic bug in snd_ivtv_pcm_hw_free

2017-06-01 Thread Jia-Ju Bai
The driver may sleep under a spin lock, and the function call path is: snd_ivtv_pcm_hw_free (acquire the lock by spin_lock_irqsave) vfree --> may sleep To fix it, the "substream->runtime->dma_area" is passed to a temporary value, and mark it NULL when holding the lock. The memory is freed by vfr

Re: [-next] memory hotplug regression

2017-06-01 Thread Michal Hocko
On Thu 01-06-17 08:49:54, Heiko Carstens wrote: > On Wed, May 31, 2017 at 08:24:40AM +0200, Michal Hocko wrote: > > > # cat /sys/devices/system/memory/memory16/valid_zones > > > Normal Movable > > > # echo online_movable > /sys/devices/system/memory/memory16/state > > > # cat /sys/devices/system/me

Re: [PATCH v2 6/7] gpio: mockup: improve the error message

2017-06-01 Thread Bartosz Golaszewski
2017-05-31 17:26 GMT+02:00 Bartosz Golaszewski : > 2017-05-31 17:00 GMT+02:00 Andy Shevchenko : >> On Wed, May 31, 2017 at 1:54 PM, Bartosz Golaszewski wrote: >>> 2017-05-30 20:59 GMT+02:00 Andy Shevchenko : On Tue, May 30, 2017 at 11:58 AM, Bartosz Golaszewski wrote: > Indicate th

[PATCH] mfd: tc6393xb: Handle return value of clk_prepare_enable

2017-06-01 Thread Arvind Yadav
clk_prepare_enable() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/mfd/tc6393xb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/tc6393xb.c b/drivers/mfd/tc6393xb.c index d16e71b..0c9f039 100644 --- a/drivers/mfd/tc6

[PATCH] cx18: Fix a sleep-in-atomic bug in snd_cx18_pcm_hw_free

2017-06-01 Thread Jia-Ju Bai
The driver may sleep under a spin lock, and the function call path is: snd_cx18_pcm_hw_free (acquire the lock by spin_lock_irqsave) vfree --> may sleep To fix it, the "substream->runtime->dma_area" is passed to a temporary value, and mark it NULL when holding the lock. The memory is freed by vfr

Re: [PATCH] clk: sunxi-ng: select SUNXI_CCU_MULT for sun8i-a83t

2017-06-01 Thread Stephen Boyd
On 05/23, Arnd Bergmann wrote: > On Tue, May 23, 2017 at 9:19 AM, Chen-Yu Tsai wrote: > > On Mon, May 22, 2017 at 05:55:53PM -0700, Stephen Boyd wrote: > >> On 05/22, Arnd Bergmann wrote: > >> > We get a link error when CCU_MULT is not set with the > >> > newly added driver: > >> > > >> > drivers/

Re: [RFC][PATCHv3 2/5] printk: introduce printing kernel thread

2017-06-01 Thread Sergey Senozhatsky
On (05/31/17 16:30), Sergey Senozhatsky wrote: > On (05/29/17 14:12), Jan Kara wrote: > [..] > > Actually I had something very similar in old versions of my patch set. And > > it didn't work very well. The problem was that e.g. sometimes scheduler > > decided that printk kthread should run on the s

Re: [RFC][PATCHv3 2/5] printk: introduce printing kernel thread

2017-06-01 Thread Sergey Senozhatsky
On (06/01/17 16:21), Sergey Senozhatsky wrote: > On (05/31/17 16:30), Sergey Senozhatsky wrote: > > On (05/29/17 14:12), Jan Kara wrote: > > [..] > > > Actually I had something very similar in old versions of my patch set. And > > > it didn't work very well. The problem was that e.g. sometimes sche

Re: [PATCH v2] clk: mvebu: add support for 1866MHz variants

2017-06-01 Thread Stephen Boyd
On 05/23, Ralph Sennhauser wrote: > The Linksys WRT3200ACM CPU is clocked at 1866MHz. Add 1866MHz to the > list of supported CPU frequencies. Also update multiplier and divisor > for the l2clk and ddrclk. > > Noticed by the following warning: > [0.00] Selected CPU frequency (16) unsupporte

Re: [PATCH v3] clk: mvebu: armada-38x: add support for 1866MHz variants

2017-06-01 Thread Stephen Boyd
On 05/24, Ralph Sennhauser wrote: > The Linksys WRT3200ACM CPU is clocked at 1866MHz. Add 1866MHz to the > list of supported CPU frequencies. Also update multiplier and divisor > for the l2clk and ddrclk. > > Noticed by the following warning: > [0.00] Selected CPU frequency (16) unsupporte

[PATCH V2 1/2] leds: leds-qti-rgb: Add LED driver for QTI TRI_LED module

2017-06-01 Thread fenglinw
From: Fenglin Wu QTI TRI_LED module has 3 current sinks for LED driver and each is controlled by a PWM channel used for LED dimming or blinking. Add the driver to support it. Signed-off-by: Fenglin Wu --- .../devicetree/bindings/leds/leds-qti-rgb.txt | 46 ++ drivers/leds/Kconfig

Re: [RESEND PATCH] irq_work: Don't reinvent the wheel but use existing llist API

2017-06-01 Thread Byungchul Park
On Wed, May 31, 2017 at 04:04:17PM +0200, Frederic Weisbecker wrote: > On Tue, May 30, 2017 at 02:29:20PM +0900, Byungchul Park wrote: > > On Fri, May 12, 2017 at 09:45:35AM +0900, Byungchul Park wrote: > > > Although llist provides proper APIs, they are not used. Make them used. > > > > +to pet..

Re: [PATCH v5] KVM: x86: avoid large stack allocations in em_fxrstor

2017-06-01 Thread Paolo Bonzini
On 01/06/2017 03:05, Nick Desaulniers wrote: > On Wed, May 31, 2017 at 07:01:29AM -0400, Paolo Bonzini wrote: >>> + size = offsetof(struct fxregs_state, xmm_space[16]); >> This still has the same issue (it should be multiplied by 4). > > I'm still misunderstanding the math here. > > W

Re: [PATCH] ARM: cpuidle: Support asymmetric idle definition

2017-06-01 Thread Daniel Lezcano
On 31/05/2017 19:33, Sudeep Holla wrote: > > > On 31/05/17 17:40, Daniel Lezcano wrote: > >> Hi Sudeep, Lorenzo, >> >> I have been thinking and looking at the domain-idle-state and I don't >> see an obvious connection between what is describing the power domain, >> the cpu idle driver and what w

Re: Oops with commit 6d18c73 bridge: start hello_timer when enabling KERNEL_STP in br_stp_start

2017-06-01 Thread Xin Long
On Thu, Jun 1, 2017 at 12:32 AM, Sebastian Ott wrote: [...] > > A system running v4.12-rc3-11-gf511c0b on s390 hangs after boot with no > messages on the console. The message buffer obtained via a system dump > looked like this: > > [...] > [ 17.870712] virbr0: port 1(virbr0-nic) entered disable

[PATCH V2] rxe: Fix a sleep-in-atomic bug in post_one_send

2017-06-01 Thread Jia-Ju Bai
The driver may sleep under a spin lock, and the function call path is: post_one_send (acquire the lock by spin_lock_irqsave) init_send_wqe copy_from_user --> may sleep To fix it, the lock is released before copy_from_user, and the lock is acquired again after this function. The parameter "fl

Re: [PATCH v4 2/2] clk: at91: Add sama5d2 suspend/resume

2017-06-01 Thread Stephen Boyd
On 05/12, Alexandre Belloni wrote: > On sama5d2, VDD core maybe be cut while in suspend. This means registers > will be lost. Ensure they are saved and restored properly. > > Signed-off-by: Alexandre Belloni > --- > Changes in v4: > - only save and restore PCR for used ids > > drivers/clk/at91

Re: [PATCH] drm/rockchip: gem: add the lacks lock and trivial changes

2017-06-01 Thread Mark yao
On 2017年05月31日 10:14, Caesar Wang wrote: As the allocation and free buffer that need to add mutex lock for drm mm, but it lacks the locking on error path in rockchip_gem_iommu_map(). Also, the trivial changes like The comment should be placed in the kerneldoc and unused blank line. Signed-off-b

Re: [PATCH v4 1/2] clk: at91: fix clk-generated parenting

2017-06-01 Thread Stephen Boyd
On 05/30, Alexandre Belloni wrote: > On 18/05/2017 at 18:33:02 -0700, Stephen Boyd wrote: > > On 05/12, Alexandre Belloni wrote: > > > clk_generated_startup is called after clk_hw_register. So the first call > > > to > > > get_parent will not have the correct value (i.e. 0) and because this is > >

Re: [tip:x86/urgent] x86/PAT: Fix Xorg regression on CPUs that don't support PAT

2017-06-01 Thread Ian W MORRISON
On 31 May 2017 at 10:53, Doug Smythies wrote: > Note Before: > I might not have the address list correct, as I have re-created this > e-mail from the web page archive, having found the thread after bisecting the > kernel. > > On 2017.05.29 18:50:57 -0400 (EDT) Mikulas Patocka wrote: >> On Sun, 28

Re: [PATCH linux-next v3 1/1] spi: imx: dynamic burst length adjust for PIO mode

2017-06-01 Thread Jiada Wang
Hello Fabio On 05/29/2017 04:07 AM, Fabio Estevam wrote: Hi Jiada, On Fri, May 26, 2017 at 2:02 AM, wrote: From: Jiada Wang previously burst length (BURST_LENGTH) is always set to equal to bits_per_word, causes a 10us gap between each word in transfer, which significantly affects performance

Re: [PATCH v2 0/8] NFC: fix device allocation and nfcmrvl crashes

2017-06-01 Thread Johan Hovold
Hi Samuel, On Tue, May 16, 2017 at 11:42:29AM +0200, Johan Hovold wrote: > On Thu, Apr 27, 2017 at 12:42:38AM +0200, Samuel Ortiz wrote: > > Hi Johan, > > > > On Thu, Mar 30, 2017 at 12:15:34PM +0200, Johan Hovold wrote: > > > This started out with the observation that the nfcmrvl_uart driver >

[PATCH v2 2/2] arm64: tegra: Add CCPLEX_CLUSTER area in Tegra186

2017-06-01 Thread Mikko Perttunen
The Tegra186 CCPLEX_CLUSTER area contains memory-mapped registers that initiate CPU frequency/voltage transitions. Signed-off-by: Mikko Perttunen --- arch/arm64/boot/dts/nvidia/tegra186.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra186.dtsi b/ar

[PATCH v2 1/2] dt-bindings: Add bindings for nvidia,tegra186-ccplex-cluster

2017-06-01 Thread Mikko Perttunen
The Tegra186 CCPLEX_CLUSTER area contains memory-mapped registers that initiate CPU frequency/voltage transitions. Signed-off-by: Mikko Perttunen --- .../arm/tegra/nvidia,tegra186-ccplex-cluster.txt| 17 + 1 file changed, 17 insertions(+) create mode 100644 Documentatio

[PATCH v2 0/2] Device tree changes for Tegra186 cpufreq

2017-06-01 Thread Mikko Perttunen
Hi, these are the device tree and bindings changes for the Tegra186 cpufreq driver that was recently merged. The patches are the same as those that were originally posted with the driver. Mikko Perttunen (2): dt-bindings: Add bindings for nvidia,tegra186-ccplex-cluster arm64: tegra: Add CCPLE

Re: [PATCH] dmi: Make dmi_walk and dmi_walk_early return real error codes

2017-06-01 Thread Jean Delvare
Hi Darren, On Fri, 26 May 2017 16:59:17 -0700, Darren Hart wrote: > From: Andy Lutomirski > > Currently they return -1 on error, which will confuse callers if > they try to interpret it as a normal negative error code. I thought would had fixed this already, but apparently not. > Signed-off-by

Re: [PATCH] mm: introduce MADV_CLR_HUGEPAGE

2017-06-01 Thread Michal Hocko
On Thu 01-06-17 09:53:02, Mike Rapoport wrote: > On Tue, May 30, 2017 at 04:39:41PM +0200, Michal Hocko wrote: > > On Tue 30-05-17 16:04:56, Andrea Arcangeli wrote: > > > > > > UFFDIO_COPY while not being a major slowdown for sure, it's likely > > > measurable at the microbenchmark level because i

RE: [PATCH V2] rxe: Fix a sleep-in-atomic bug in post_one_send

2017-06-01 Thread Amrani, Ram
> The driver may sleep under a spin lock, and the function call path is: > post_one_send (acquire the lock by spin_lock_irqsave) > init_send_wqe > copy_from_user --> may sleep > > To fix it, the lock is released before copy_from_user, and the lock is > acquired again after this function. The

Re: [RFC v2 PATCH] x86/boot: Add the secdata section to the setup header

2017-06-01 Thread Gary Lin
On Fri, May 12, 2017 at 04:05:34PM +0800, Gary Lin wrote: > A new section, secdata, in the setup header is introduced to store the > distro-specific security version which is designed to help the > bootloader to warn the user when loading a less secure or vulnerable > kernel. The secdata section ca

Re: [PATCH v8 2/5] usb: early: add driver for xhci debug capability

2017-06-01 Thread Vlastimil Babka
On 06/01/2017 05:37 AM, Lu Baolu wrote: > Hi, > > On 05/31/2017 05:38 PM, Vlastimil Babka wrote: >> On 05/31/2017 05:27 AM, Lu Baolu wrote: >>> Hi, >>> >>> On 05/30/2017 09:46 PM, Vlastimil Babka wrote: On 03/21/2017 09:01 AM, Lu Baolu wrote: Did you forget to remove the #define XDBC_TRA

[PATCH] qlcnic: Fix a sleep-in-atomic bug in qlcnic_82xx_hw_write_wx_2M and qlcnic_82xx_hw_read_wx_2M

2017-06-01 Thread Jia-Ju Bai
The driver may sleep under a write spin lock, and the function call path is: qlcnic_82xx_hw_write_wx_2M (acquire the lock by write_lock_irqsave) crb_win_lock qlcnic_pcie_sem_lock usleep_range qlcnic_82xx_hw_read_wx_2M (acquire the lock by write_lock_irqsave) crb_win_lock qlcnic_p

[PATCH v1 4/9] mm: hugetlb: soft-offline: dissolve source hugepage after successful migration

2017-06-01 Thread Naoya Horiguchi
From: Anshuman Khandual Currently hugepage migrated by soft-offline (i.e. due to correctable memory errors) is contained as a hugepage, which means many non-error pages in it are unreusable, i.e. wasted. This patch solves this issue by dissolving source hugepages into buddy. As done in previous

[PATCH v1 0/9] mm: hwpoison: fixlet for hugetlb migration

2017-06-01 Thread Naoya Horiguchi
Hi everyone, I wrote the patchset updating hwpoison/hugetlb code to address the 2 reported issues. One is madvise(MADV_HWPOISON) failure reported by Intel's lkp robot (see http://lkml.kernel.org/r/20170417055948.GM31394@yexl-desktop.) First half was already fixed in mainline, and another half abo

[PATCH v1 6/9] mm: hwpoison: introduce memory_failure_hugetlb()

2017-06-01 Thread Naoya Horiguchi
memory_failure() is a big function and hard to maintain. Handling hugetlb- and non-hugetlb- case in a single function is not good, so this patch separates PageHuge() branch into a new function, which saves many PageHuge() check. Signed-off-by: Naoya Horiguchi --- mm/memory-failure.c | 134 ++

[PATCH v1 1/9] mm: hugetlb: prevent reuse of hwpoisoned free hugepages

2017-06-01 Thread Naoya Horiguchi
We no longer use MIGRATE_ISOLATE to prevent reuse of hwpoison hugepages as we did before. So current dequeue_huge_page_node() doesn't work as intended because it still uses is_migrate_isolate_page() for this check. This patch fixes it with PageHWPoison flag. Signed-off-by: Naoya Horiguchi --- mm

[PATCH v1 7/9] mm: hwpoison: dissolve in-use hugepage in unrecoverable memory error

2017-06-01 Thread Naoya Horiguchi
Currently me_huge_page() relies on dequeue_hwpoisoned_huge_page() to keep the error hugepage away from the system, which is OK but not good enough because the hugepage still has a refcount and unpoison doesn't work on the error hugepage (PageHWPoison flags are cleared but pages are still leaked.)

[PATCH v1 9/9] mm: hwpoison: introduce idenfity_page_state

2017-06-01 Thread Naoya Horiguchi
Factoring duplicate code into a function. Signed-off-by: Naoya Horiguchi --- mm/memory-failure.c | 57 +++-- 1 file changed, 25 insertions(+), 32 deletions(-) diff --git v4.12-rc3/mm/memory-failure.c v4.12-rc3_patched/mm/memory-failure.c index 850

[PATCH v1 8/9] mm: hugetlb: delete dequeue_hwpoisoned_huge_page()

2017-06-01 Thread Naoya Horiguchi
dequeue_hwpoisoned_huge_page() is no longer used, so let's remove it. Signed-off-by: Naoya Horiguchi --- include/linux/hugetlb.h | 6 -- mm/hugetlb.c| 34 -- mm/memory-failure.c | 11 --- 3 files changed, 51 deletions(-) diff --git v4

[PATCH v1 5/9] mm: soft-offline: dissolve free hugepage if soft-offlined

2017-06-01 Thread Naoya Horiguchi
Now we have code to rescue most of healthy pages from a hwpoisoned hugepage. So let's apply it to soft_offline_free_page too. Signed-off-by: Naoya Horiguchi --- mm/memory-failure.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git v4.12-rc3/mm/memory-failure.c v4.12-rc3_patched/

[PATCH v1 3/9] mm: hwpoison: change PageHWPoison behavior on hugetlb pages

2017-06-01 Thread Naoya Horiguchi
We'd like to narrow down the error region in memory error on hugetlb pages. However, currently we set PageHWPoison flags on all subpages in the error hugepage and add # of subpages to num_hwpoison_pages, which doesn't fit our purpose. So this patch changes the behavior and we only set PageHWPoiso

[PATCH v1 2/9] mm: hugetlb: return immediately for hugetlb page in __delete_from_page_cache()

2017-06-01 Thread Naoya Horiguchi
We avoid calling __mod_node_page_state(NR_FILE_PAGES) for hugetlb page now, but it's not enough because later code doesn't handle hugetlb properly. Actually in our testing, WARN_ON_ONCE(PageDirty(page)) at the end of this function fires for hugetlb, which makes no sense. So we should return immed

Re: [PATCH v3 1/4] dt-bindings: power: supply: add battery charge voltage/current

2017-06-01 Thread Enric Balletbo Serra
Hi Liam, 2017-06-01 9:01 GMT+02:00 Liam Breck : > Hi Enric, > > On Sat, May 27, 2017 at 1:11 PM, Enric Balletbo Serra > wrote: >> Hi Liam, >> >> 2017-05-26 23:20 GMT+02:00 Liam Breck : >>> Hi Enric, >>> >>> On Fri, May 26, 2017 at 4:04 AM, Enric Balletbo i Serra >>> wrote: Add charging volt

Re: CLK_OF_DECLARE advice required

2017-06-01 Thread Phil Elwell
On 01/06/2017 07:39, Stephen Boyd wrote: > On 05/31, Phil Elwell wrote: >> On 31/05/2017 16:58, Stefan Wahren wrote: >>> Am 31.05.2017 um 17:27 schrieb Stephen Warren: On 05/30/2017 06:23 AM, Phil Elwell wrote: > Hi, > > I've run into a problem using the fixed-factor clock on Raspb

Re: [PATCH v7 16/34] [media] add Omnivision OV5640 sensor driver

2017-06-01 Thread Sakari Ailus
Hi Pavel, On Wed, May 31, 2017 at 09:58:21PM +0200, Pavel Machek wrote: > Hi! > > > +/* min/typical/max system clock (xclk) frequencies */ > > +#define OV5640_XCLK_MIN 600 > > +#define OV5640_XCLK_MAX 2400 > > + > > +/* > > + * FIXME: there is no subdev API to set the MIPI CSI-2 > > + *

[PATCH V3] rxe: Fix a sleep-in-atomic bug in post_one_send

2017-06-01 Thread Jia-Ju Bai
The driver may sleep under a spin lock, and the function call path is: post_one_send (acquire the lock by spin_lock_irqsave) init_send_wqe copy_from_user --> may sleep To fix it, the lock is released before copy_from_user, and the lock is acquired again after this function. The parameter "fl

Re: [PATCH 1/2 v2] dt-bindings: qoriq-clock: Add coreclk

2017-06-01 Thread Stephen Boyd
On 03/20, Yuantian Tang wrote: > From: Scott Wood > > ls1012a has separate input root clocks for core PLLs versus the platform > PLL, with the latter described as sysclk in the hw docs. > Update the qoriq-clock binding to allow a second input clock, named > "coreclk". If present, this clock will

[v4.12-rc3] Early boot panic on Broadwell

2017-06-01 Thread Chris Wilson
Hi guys, I hit an early boot panic on a Broadwell laptop (xps13-9343) that I bisected to: commit cbed27cdf0e3f7ea3b2259e86b9e34df02be3fe4 Author: Mikulas Patocka Date: Tue Apr 18 15:07:11 2017 -0400 x86/PAT: Fix Xorg regression on CPUs that don't support PAT In the file arch/x86/

Re: [PATCH 1/2 v2] dt-bindings: qoriq-clock: Add coreclk

2017-06-01 Thread sb...@codeaurora.org
On 04/17, Andy Tang wrote: > Hi Stephen and Michael, > > This patch set has been pending for more than two months since it was first > sent. > I have not received any response from you until now. > > Could you give some comments on it? > Hmm I think it was sent near the merge window so I put i

Re: [PATCH 2/2 v2] clk: qoriq: Separate root input clock for core PLLs on ls1012a

2017-06-01 Thread Stephen Boyd
On 03/20, Yuantian Tang wrote: > From: Scott Wood > > ls1012a has separate input root clocks for core PLLs versus the > platform PLL, with the latter described as sysclk in the hw docs. > If a second input clock, named "coreclk", is present, this clock will be > used for the core PLLs. > > Signe

[PATCH] Support POWER8+ PVR

2017-06-01 Thread Shriya
Add support for POWER8+ PVR 004c0100 for Garrison Signed-off-by: Shriya --- tools/perf/pmu-events/arch/powerpc/mapfile.csv | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/pmu-events/arch/powerpc/mapfile.csv b/tools/perf/pmu-events/arch/powerpc/mapfile.csv index e925baa..f03aec7 1

RE: [PATCH 2/2 v2] clk: qoriq: Separate root input clock for core PLLs on ls1012a

2017-06-01 Thread Andy Tang
Hi Stephen, Thanks for your applying. There are other two patches sent on April 6, 2017: https://patchwork.kernel.org/patch/9665973/ https://patchwork.kernel.org/patch/9665977/ Hope they are in your review queue. Please give it a review. Regards, Andy -Original Message- From: Stephen B

Re: [PATCH v3 4/9] mtd: nand: sharpsl.c: take in account partition parser types

2017-06-01 Thread Wolfram Sang
> + data->types ? data->types : NULL, This is equal to just 'data_types'. > + NULL, > + data->partitions ? > + data->partitions : NULL, > +

Re: [PATCH] mm: introduce MADV_CLR_HUGEPAGE

2017-06-01 Thread Mike Rapoport
On Thu, Jun 01, 2017 at 10:09:09AM +0200, Michal Hocko wrote: > On Thu 01-06-17 09:53:02, Mike Rapoport wrote: > > On Tue, May 30, 2017 at 04:39:41PM +0200, Michal Hocko wrote: > > > On Tue 30-05-17 16:04:56, Andrea Arcangeli wrote: > > > > > > > > UFFDIO_COPY while not being a major slowdown for

[PATCH 0/2] memory hotplug follow up fixes

2017-06-01 Thread Michal Hocko
Hi Andrew, Heiko Carstens has noticed an unexpected memory online behavior for the default onlining (aka MMOP_ONLINE_KEEP) and also online_kernel to other kernel zones than ZONE_NORMAL. Both fixes are rather straightforward so could you add them to the memory hotplug rewrite pile please? Shortlog

Re: [PATCH v3 5/9] mtd: nand: tmio_nand.c: take in account partition parser types

2017-06-01 Thread Wolfram Sang
> - retval = mtd_device_parse_register(mtd, NULL, NULL, > + retval = mtd_device_parse_register(mtd, > +data->types ? data->types : NULL, This is superfluous. You want to check against 'data' instead as it is done below. Otherwis you might get a NULL

[PATCH 1/2] mm, memory_hotplug: fix MMOP_ONLINE_KEEP behavior

2017-06-01 Thread Michal Hocko
From: Michal Hocko Heiko Carstens has noticed that the MMOP_ONLINE_KEEP is broken currently $ grep . memory3?/valid_zones memory34/valid_zones:Normal Movable memory35/valid_zones:Normal Movable memory36/valid_zones:Normal Movable memory37/valid_zones:Normal Movable $ echo online_movable > memory

[PATCH 2/2] mm, memory_hotplug: do not assume ZONE_NORMAL is default kernel zone

2017-06-01 Thread Michal Hocko
From: Michal Hocko Heiko Carstens has noticed that he can generate overlapping zones for ZONE_DMA and ZONE_NORMAL: DMA [mem 0x-0x7fff] Normal [mem 0x8000-0x00017fff] $ cat /sys/devices/system/memory/block_size_bytes 1000 $ cat /sys/devic

Re: [PATCH v3 1/3] rtmutex: update rt-mutex-design

2017-06-01 Thread Alex Shi
On 05/25/2017 01:26 PM, Alex Shi wrote: > Reviewers: Ingo Molnar, Thomas Gleixner, Thomas Duetsch, and Randy Dunlap > > @@ -779,3 +554,4 @@ Updates > --- > > This document was originally written for 2.6.17-rc3-mm1 > +was updated on 4.12-rc1 > -- This is the only change from v2 versi

Re: [PATCH v3 3/9] mfd: tmio.h: support partition parser types

2017-06-01 Thread Wolfram Sang
On Thu, Jun 01, 2017 at 12:40:52AM +0200, Andrea Adami wrote: > Signed-off-by: Andrea Adami Acked-by: Wolfram Sang signature.asc Description: PGP signature

exposure vs. exposure_absolute was Re: [PATCH v7 16/34] [media] add Omnivision OV5640 sensor driver

2017-06-01 Thread Pavel Machek
Hi! > > > + /* Auto/manual exposure */ > > > + ctrls->auto_exp = v4l2_ctrl_new_std_menu(hdl, ops, > > > + V4L2_CID_EXPOSURE_AUTO, > > > + V4L2_EXPOSURE_MANUAL, 0, > > > + V4L2

Re: [v3 0/9] parallelized "struct page" zeroing

2017-06-01 Thread Michal Hocko
On Wed 31-05-17 23:35:48, Pasha Tatashin wrote: > >OK, so why cannot we make zero_struct_page 8x 8B stores, other arches > >would do memset. You said it would be slower but would that be > >measurable? I am sorry to be so persistent here but I would be really > >happier if this didn't depend on the

Re: [PATCH v2 2/2] clk: bcm2835: Minimise clock jitter for PCM clock

2017-06-01 Thread Phil Elwell
On 31/05/2017 22:36, Eric Anholt wrote: > Phil Elwell writes: > >> Fractional clock dividers generate accurate average frequencies but >> with jitter, particularly when the integer divisor is small. >> >> Introduce a new metric of clock accuracy to penalise clocks with a good >> average but worse

Re: [RFC v2 PATCH] x86/boot: Add the secdata section to the setup header

2017-06-01 Thread Ard Biesheuvel
On 1 June 2017 at 08:11, Gary Lin wrote: > On Fri, May 12, 2017 at 04:05:34PM +0800, Gary Lin wrote: >> A new section, secdata, in the setup header is introduced to store the >> distro-specific security version which is designed to help the >> bootloader to warn the user when loading a less secure

Re: [PATCH 1/2] clk: bcm2835: Limit PCM clock to OSC and PLLD_PER

2017-06-01 Thread Phil Elwell
On 31/05/2017 22:24, Eric Anholt wrote: > Phil Elwell writes: > >> Restrict clock sources for the PCM peripheral to the oscillator and >> PLLD_PER because other source may have varying rates or be switched off. >> Prevent other sources from being selected by replacing their names in >> the list o

[PATCH] Documentation: clock: address more for clock-cells property

2017-06-01 Thread Chunyan Zhang
The value of property 'clock-cells' is not determined only by the number of clock outputs in one clock node, it is actually determined by whether the clock output in this node can be referenced directly without index. If the output clock has to be referenced by a index, the clock-cell of this cloc

[PATCH] misc: atmel-ssc: Handle return value of clk_prepare_enable and clk_prepare

2017-06-01 Thread Arvind Yadav
clk_prepare_enable() and clk_prepare() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/misc/atmel-ssc.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/misc/atmel-ssc.c b/drivers/misc/atmel-ssc.c index b2a0340..4

[PATCH 1/1] KVM: SVM: do not zero out segment attributes if segment is unusable or not present

2017-06-01 Thread Roman Pen
This is a fix for the problem [1], where VMCB.CPL was set to 0 and interrupt was taken on userspace stack. The root cause lies in the specific AMD CPU behaviour which manifests itself as unusable segment attributes on SYSRET. The corresponding work around for the kernel is the following: 61f01dd9

Re: [PATCH 1/2] power: reset: at91-poweroff: fix clobber list

2017-06-01 Thread Nicolas Ferre
Le 31/05/2017 à 11:49, Alexandre Belloni a écrit : > Assembly in at91_lpddr_poweroff has r0 in the clobber list but uses r6. > > Reported-by: Ben Hutchings > Signed-off-by: Alexandre Belloni Acked-by: Nicolas Ferre > --- > drivers/power/reset/at91-poweroff.c | 2 +- > 1 file changed, 1 inser

[-next] f2fs: remove the unnecessary cast for PTR_ERR

2017-06-01 Thread Zhang Shengju
It's not necessary to specify 'int' casting for PTR_ERR. Signed-off-by: Zhang Shengju --- fs/f2fs/acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/acl.c b/fs/f2fs/acl.c index 8f48769..a140c5e 100644 --- a/fs/f2fs/acl.c +++ b/fs/f2fs/acl.c @@ -233,7 +233,7 @@ stat

Re: [PATCH 2/2] power: reset: at91-sama5d2_shdwc: fix clobber list

2017-06-01 Thread Nicolas Ferre
Le 31/05/2017 à 11:49, Alexandre Belloni a écrit : > Assembly in at91_lpddr_poweroff has r0 in the clobber list but uses r6. > > Reported-by: Ben Hutchings > Signed-off-by: Alexandre Belloni Acked-by: Nicolas Ferre > --- > drivers/power/reset/at91-sama5d2_shdwc.c | 2 +- > 1 file changed, 1

Re: [PATCH 4/7] RISC-V: arch/riscv/include

2017-06-01 Thread Arnd Bergmann
On Thu, Jun 1, 2017 at 2:56 AM, Palmer Dabbelt wrote: > On Tue, 23 May 2017 05:55:15 PDT (-0700), Arnd Bergmann wrote: >> On Tue, May 23, 2017 at 2:41 AM, Palmer Dabbelt wrote: >>> +#ifndef _ASM_RISCV_CACHE_H >>> +#define _ASM_RISCV_CACHE_H >>> + >>> +#define L1_CACHE_SHIFT 6 >>> + >>>

[PATCH 1/2] perf tools: Decompress kernel module when reading DSO data

2017-06-01 Thread Namhyung Kim
Currently perf decompresses kernel modules when loading symbol table but it missed to do it when reading raw data. Move decompress_kmodule() to util/dso.c and do not unlink it immediately. Signed-off-by: Namhyung Kim --- tools/perf/util/dso.c| 56

[PATCH 2/2] perf test: Decompress kernel module before objdump

2017-06-01 Thread Namhyung Kim
If a kernel modules is compressed, it should be decompressed before running objdump to parse binary data correctly. This fixes a failure of object code reading test for me. Signed-off-by: Namhyung Kim --- tools/perf/tests/code-reading.c | 29 - 1 file changed, 28 ins

Re: [PATCH] clk: sunxi-ng: select SUNXI_CCU_MULT for sun8i-a83t

2017-06-01 Thread Arnd Bergmann
On Thu, Jun 1, 2017 at 9:17 AM, Stephen Boyd wrote: > On 05/23, Arnd Bergmann wrote: >> On Tue, May 23, 2017 at 9:19 AM, Chen-Yu Tsai wrote: >> An alternative would be to remove all the dependencies as 'lib-y' >> in the Makefile and remove the individual Kconfig symbols. That >> way, we would alw

[PATCH] perf sort: only insert overhead && overhead_children when no overhead* field given

2017-06-01 Thread changbin . du
From: Changbin Du If we always insert 'overhead' and 'overhead_children' as sort keys, this make it impossible to sort as overhead (which displayed as Self) first.Ths will be a problem if the data is collected with call-graph enabled. Then we never can sort the result as self-overhead on this dat

Re: [PATCH] usb: serial: upd78f0730: Make constants static

2017-06-01 Thread Johan Hovold
On Mon, Apr 24, 2017 at 12:59:53PM +0300, Maksim Salau wrote: > Some local constants don't change from call to call and are good > candidates to become static. This will prevent copying of these > constants to stack during runtime. > > Signed-off-by: Maksim Salau Now applied, thanks. Johan

[PATCH v3 0/2] clk: bcm2835: PCM clock improvements

2017-06-01 Thread Phil Elwell
The switch to using the upstream bcm2835_cprman clock driver caused a few problems for users of PCM (I2S) peripherals. Audio applications require accurate, stable clocks, and the cprman driver wasn't conservative enough in its choice of clock sources. These patches restrict the clock sources for t

[PATCH v3 1/2] clk: bcm2835: Limit PCM clock to OSC and PLLD_PER

2017-06-01 Thread Phil Elwell
Restrict clock sources for the PCM peripheral to the oscillator and PLLD_PER because other source may have varying rates or be switched off. Prevent other sources from being selected by replacing their names in the list of potential parents with dummy entries (entry index is significant). Signed-o

[PATCH v3 2/2] clk: bcm2835: Minimise clock jitter for PCM clock

2017-06-01 Thread Phil Elwell
Fractional clock dividers generate accurate average frequencies but with jitter, particularly when the integer divisor is small. Introduce a new metric of clock accuracy to penalise clocks with a good average but worse jitter compared to clocks with an average which is no better but with lower jit

Re: [PATCH] clk: Re-evaluate clock rate on min/max update

2017-06-01 Thread Stephen Boyd
On 04/13, Peter De Schrijver wrote: > On Wed, Apr 12, 2017 at 09:46:05AM -0700, Stephen Boyd wrote: > > On 03/21, Peter De Schrijver wrote: > > > Whenever a user change its min or max rate limit of a clock, we need to > > > re-evaluate the current clock rate and possibly change it if the new > > >

Re: [PATCH] clk: scpi: fix return type of __scpi_dvfs_round_rate

2017-06-01 Thread Stephen Boyd
On 05/18, Sudeep Holla wrote: > The frequencies above the maximum value of signed integer(i.e. 2^31 -1) > will overflow with the current code. > > This patch fixes the return type of __scpi_dvfs_round_rate from 'int' > to 'unsigned long'. > > Fixes: cd52c2a4b5c4 ("clk: add support for clocks prov

Re: [PATCH 05/14] mwifiex: re-register wiphy across reset

2017-06-01 Thread Kalle Valo
Brian Norris writes: > In general, it's helpful to use the same code for device removal as for > device reset, as this tends to have fewer bugs. Let's move the wiphy > unregistration code into the common reset and removal code. > > In particular, it's very hard to properly handle the reset sequen

[BUG] ntb: Sleep in interrupt handling

2017-06-01 Thread Jia-Ju Bai
According to ntb_transport.c, the driver may sleep in interrupt handling. The function call path is: ntb_transport_rxc_db (tasklet_init indicates it handles interrupt) ntb_process_rxc ntb_async_rx ntb_async_rx_submit schedule_timeout --> may sleep This bug is found by my stati

Re: [PATCH v6 5/6] drm/i915/gvt: Dmabuf support for GVT-g

2017-06-01 Thread Chris Wilson
On Sat, May 27, 2017 at 04:38:51PM +0800, Xiaoguang Chen wrote: > dmabuf for GVT-g can be exported to users who can use the dmabuf to show > the desktop of vm which use intel vgpu. > > Currently we provide query and create new dmabuf operations. > > Users of dmabuf can cache some created dmabufs

Re: [RFC][PATCHv3 2/5] printk: introduce printing kernel thread

2017-06-01 Thread Sergey Senozhatsky
On (06/01/17 16:21), Sergey Senozhatsky wrote: > On (05/31/17 16:30), Sergey Senozhatsky wrote: > > On (05/29/17 14:12), Jan Kara wrote: > > [..] > > > Actually I had something very similar in old versions of my patch set. And > > > it didn't work very well. The problem was that e.g. sometimes sche

Re: [PATCH 1/1] KVM: SVM: do not zero out segment attributes if segment is unusable or not present

2017-06-01 Thread Paolo Bonzini
On 01/06/2017 10:55, Roman Pen wrote: > This is a fix for the problem [1], where VMCB.CPL was set to 0 and interrupt > was taken on userspace stack. The root cause lies in the specific AMD CPU > behaviour which manifests itself as unusable segment attributes on SYSRET. > The corresponding work a

Re: [PATCH v2 1/3] firmware: dmi: Add DMI_PRODUCT_FAMILY identification string

2017-06-01 Thread Jean Delvare
Hi all, Sorry for the late reply. On Wed, 17 May 2017 13:25:12 +0300, Mika Westerberg wrote: > Sometimes it is more convenient to be able to match a whole family of > products, like in case of bunch of Chromebooks based on Intel_Strago to > apply a driver quirk instead of quirking each machine on

Re: [PATCH V2] rxe: Fix a sleep-in-atomic bug in post_one_send

2017-06-01 Thread kbuild test robot
Hi Jia-Ju, [auto build test WARNING on rdma/master] [also build test WARNING on v4.12-rc3 next-20170601] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Jia-Ju-Bai/rxe-Fix-a-sleep-in-atomic-bug

Re: [PATCH v2 2/3] pinctrl: cherryview: Add terminate entry for dmi_system_id tables

2017-06-01 Thread Jean Delvare
On Wed, 17 May 2017 13:25:13 +0300, Mika Westerberg wrote: > From: Wei Yongjun > > Make sure dmi_system_id tables are NULL terminated. > > Fixes: 703650278372 ("pinctrl: cherryview: Add a quirk to make Acer > Chromebook keyboard work again") > Signed-off-by: Wei Yongjun > Signed-off-by: Mika W

Re: [PATCH V3] rxe: Fix a sleep-in-atomic bug in post_one_send

2017-06-01 Thread Moni Shoua
On Thu, Jun 1, 2017 at 11:28 AM, Jia-Ju Bai wrote: > The driver may sleep under a spin lock, and the function call path is: > post_one_send (acquire the lock by spin_lock_irqsave) > init_send_wqe > copy_from_user --> may sleep > > To fix it, the lock is released before copy_from_user, and th

[PATCH] oss: Fix a sleep-in-atomic bug in midi_outc

2017-06-01 Thread Jia-Ju Bai
The driver may sleep under a spin lock, and the function call path is: midi_outc (acquire the lock by spin_lock_irqsave) oss_broken_sleep_on schedule_timeout --> may sleep To fix it, the lock is released before oss_broken_sleep_on, and the lock is acquired again after this function. Signed

  1   2   3   4   5   6   7   8   9   10   >