[PATCH v1 0/3] console, serial8250: Disable PM and DMA ops

2018-05-15 Thread Andy Shevchenko
Kernel console is sensitive to any kind of complex work needed to print out anything on it. One such case is emergency print during Oops. This series proposes to disable runtime PM and DMA operations on 8250 serial console. More detailed explanation why is provided in patch 2. The series has bee

Re: [PATCH v2] ARM: dts: am437x-sk-evm: add wilink8 support

2018-05-15 Thread Tony Lindgren
* Eyal Reizer [180506 01:00]: > enable mmc3 used for wlan and uart1 used for bluetooth > configure the gpios used for wlan and bluetooth controls > add fixed voltage regulator used for wlan power control Applying into omap-for-v4.18/dt thanks. Tony

Re: [PATCH] clk: boston: fix memory leak of 'onecell' on error return paths

2018-05-15 Thread Stephen Boyd
Quoting Dan Carpenter (2018-05-09 23:59:51) > It would be nice to make things static check clean. One idea would be > that the static checker could ignore resource leaks in __init functions. > Typically if the stuff is so important that it doesn't work without it then we throw in a panic() or a

Re: [PATCH 00/14] Modify action API for implementing lockless actions

2018-05-15 Thread Jamal Hadi Salim
On 14/05/18 04:46 PM, Vlad Buslov wrote: On Mon 14 May 2018 at 18:03, Jamal Hadi Salim wrote: On 14/05/18 10:27 AM, Vlad Buslov wrote: Hello Jamal, I'm trying to run tdc, but keep getting following error even on clean branch without my patches: Vlad, not sure if you saw my email: Apply

[PATCH net-next 01/10] net: hns3: Fix for deadlock problem occurring when unregistering ae_algo

2018-05-15 Thread Salil Mehta
From: Fuyun Liang When hnae3_unregister_ae_algo is called by PF, pci_disable_sriov is called. And then, hns3_remove is called by VF. We get deadlocked in this case. Since VF pci device is dependent on PF pci device, When PF pci device is removed, VF pci device must be removed. Also, To solve the

[PATCH net-next 04/10] net: hns3: Change return type of hnae3_register_ae_dev

2018-05-15 Thread Salil Mehta
From: Fuyun Liang If hclge.ko has not been inserted, the value of ret always is zero in hnae3_register_ae_dev. If hclge.ko has been inserted, the value of ret is zero or non zero. Different execution ways have different results. It is confusing. The ae_dev which is initialized failed can be rein

[PATCH net-next 02/10] net: hns3: Fix for the null pointer problem occurring when initializing ae_dev failed

2018-05-15 Thread Salil Mehta
From: Fuyun Liang When initializing ae_dev failed during loading hclge.ko, the drvdata will be set to null. When removing hns3.ko, we get a null ae_dev. It causes the null pointer problem. This patch removes pci_set_drvdata from error handle of hclge_init_ae_dev to fix the bug, since pci_set_drv

[PATCH net-next 03/10] net: hns3: Add a check for client instance init state

2018-05-15 Thread Salil Mehta
From: Fuyun Liang If the client instance is initializd failed, we do not need to uninit it. This patch adds a state check to check init state of client instance. Fixes: 38caee9d3ee8 ("net: hns3: Add support of the HNAE3 framework") Signed-off-by: Fuyun Liang Signed-off-by: Peng Li Signed-off-b

[PATCH net-next 05/10] net: hns3: Change return type of hnae3_register_ae_algo

2018-05-15 Thread Salil Mehta
From: Fuyun Liang The ae_algo is used by many ae_devs. It is not only belong to just a ae_dev. Initializing ae_dev failed does not represent registering ae_algo failed. Because the action of registering ae_algo just is adding ae_algo to the ae_algo list and it is always is true, it make no sense

Re: [PATCH] clk: stm32mp1: Add CLK_IGNORE_UNUSED to ck_sys_dbg clock

2018-05-15 Thread Stephen Boyd
Quoting gabriel.fernan...@st.com (2018-04-24 00:58:43) > From: Gabriel Fernandez > > Don't disable the dbg clock if was set by bootloader. > > Signed-off-by: Gabriel Fernandez > --- Applied to clk-next

Re: [PATCH v8 04/10] drivers: qcom: rpmh: add RPMH helper functions

2018-05-15 Thread Doug Anderson
Hi, On Tue, May 15, 2018 at 10:47 AM, Lina Iyer wrote: > On Fri, May 11 2018 at 14:17 -0600, Doug Anderson wrote: >> >> Hi, >> >> On Wed, May 9, 2018 at 10:01 AM, Lina Iyer wrote: >>> >>> +int rpmh_write(const struct device *dev, enum rpmh_state state, >>> + const struct tcs_cmd *cm

[PATCH net-next 08/10] net: hns3: Fix for fiber link up problem

2018-05-15 Thread Salil Mehta
From: Yunsheng Lin When hclge_ae_start is called, hdev->hw.mac.link may be set to one after up/down multi-times, which does not correspond to the link state of netdev when the netdev is up. This fixes it by setting hdev->hw.mac.link to zero when hclge_ae_start is called. Fixes: 46a3df9f9718 ("n

Re: [PATCH] clk: divider: Use round off divisor instead of round up

2018-05-15 Thread Stephen Boyd
Quoting Tejas Patel (2018-05-03 02:25:35) > divider_get_val() is used to find clock divisor which is > giving round up value. So even though actual divisor is closer to > round down integer value it will return round up integer value. > This can result into large variation between expected clock ra

[PATCH net-next 07/10] net: hns3: Fixes the back pressure setting When sriov is enabled

2018-05-15 Thread Salil Mehta
From: Yunsheng Lin When sriov is enabled, the Qset and tc mapping is not longer one to one relation. This patch fixes it by mapping all pf and vf's Qset to tc. Fixes: 848440544b41 ("net: hns3: Add support of TX Scheduler & Shaper to HNS3 driver") Signed-off-by: Yunsheng Lin Signed-off-by: Pen

[PATCH net-next 09/10] net: hns3: Add support of .sriov_configure in HNS3 driver

2018-05-15 Thread Salil Mehta
From: Peng Li As HNS3 driver will enable SRIOV default and enable all VFs the HW support, if PF and VF driver compiled to kernel, VF driver will work on host default, it is not right. This patch adds support for hns3_driver.sriov_configure to support user configs the VF_num, and do not enable sr

[PATCH net-next 06/10] net: hns3: Change return value in hnae3_register_client

2018-05-15 Thread Salil Mehta
From: Fuyun Liang A client includes many client instance. Just like ae_algo, Initializing client instance failed does not represent registering client failed. The action of registering client just is adding client to the client list and the result always is true. This patch changes the return val

[PATCH net-next 10/10] net: hns3: Fixes the missing PCI iounmap for various legs

2018-05-15 Thread Salil Mehta
From: Fuyun Liang We call pcim_iomap in hclge_pci_init, pcim_iounmap should be called in error handle of hclge_init_ae_dev. We call pcim_iomap in hclge_pci_init, but do not call pcim_iounmap in hclge_pci_uninit. When we remove the hclge.ko and insert it again, a problem that pci can not map will

[PATCH net-next 00/10] Misc. Bug Fixes and clean-ups for HNS3 Driver

2018-05-15 Thread Salil Mehta
This patch-set mainly introduces various bug fixes, cleanups and one very small enhancement to existing HN3 driver code. Fuyun Liang (7): net: hns3: Fix for deadlock problem occurring when unregistering ae_algo net: hns3: Fix for the null pointer problem occurring when initializing ae_

Re: [tip:locking/core] locking/atomics: Simplify the op definitions in atomic.h some more

2018-05-15 Thread Peter Zijlstra
On Tue, May 15, 2018 at 08:11:36PM +0200, Peter Zijlstra wrote: > On Tue, May 15, 2018 at 06:53:08PM +0100, Mark Rutland wrote: > > > > # name metaargs... > > > > # > > > > # Where meta contains a string of: > > > > # * B - bool: returns bool, fully ordered > > > > # * V - void: returns void,

Re: [PATCH 0/4] ARM: dts: am437x boards: Correct (again) tps65218 irq type

2018-05-15 Thread Tony Lindgren
* Keerthy [180509 04:03]: > > > On Tuesday 08 May 2018 07:46 PM, Tony Lindgren wrote: > > * Peter Ujfalusi [180508 13:22]: > >> Hi, > >> > >> While based on the datasheet of tps65218 the INT is low active, the GIC_SPI > >> does not support anythin but IRQ_TYPE_LEVEL_HIGH or IRQ_TYPE_EDGE_RISING

Re: [tip:locking/core] locking/atomics: Simplify the op definitions in atomic.h some more

2018-05-15 Thread Peter Zijlstra
On Tue, May 15, 2018 at 06:53:08PM +0100, Mark Rutland wrote: > On Tue, May 15, 2018 at 07:10:21PM +0200, Peter Zijlstra wrote: > > On Tue, May 15, 2018 at 04:43:33PM +0100, Mark Rutland wrote: > > > I *think* the table can encode enough info to generate atomic-long.h, > > > atomic-instrumented.h,

Re: [PATCH IB/core 2/2] IB/cm: Send authentic pkey in REQ msg and check eligibility of the pkeys

2018-05-15 Thread Håkon Bugge
> On 15 May 2018, at 02:38, Hal Rosenstock wrote: > > On 5/14/2018 5:02 PM, Jason Gunthorpe wrote: >> On Thu, May 10, 2018 at 05:16:28PM +0200, Håkon Bugge wrote: >> >>> We are talking about two things here. The PKey in the BTH and the >>> PKey in the CM REQ payload. They differ. >>> >>> I am

[GIT PULL rcu/next] RCU commits for 4.18

2018-05-15 Thread Paul E. McKenney
Hello, Ingo! This pull request contains the following changes: 1. Updates to the handling of expedited grace periods, perhaps most notably parallelizing their initialization. Other changes include fixes from Boqun Feng. http://lkml.kernel.org/r/20180423022047.ga20..

Re: [PATCH v3 2/2] locking/percpu-rwsem: Annotate rwsem ownership transfer by setting RWSEM_OWNER_UNKNOWN

2018-05-15 Thread Amir Goldstein
On Tue, May 15, 2018 at 9:02 PM, Waiman Long wrote: > On 05/15/2018 01:58 PM, Peter Zijlstra wrote: >> On Tue, May 15, 2018 at 01:38:04PM -0400, Waiman Long wrote: >>> +/* >>> + * Owner value to indicate the rwsem's owner is not currently known. >>> + */ >>> +#define RWSEM_OWNER_UNKNOWN ((struct t

[PATCH v1] x86/mtrr: Convert to use strncpy_from_user() helper

2018-05-15 Thread Andy Shevchenko
Replace the open coded string fetch from the user. Signed-off-by: Andy Shevchenko --- arch/x86/kernel/cpu/mtrr/if.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/arch/x86/kernel/cpu/mtrr/if.c b/arch/x86/kernel/cpu/mtrr/if.c index e4adad68b5e5..3cbae60663fa 100

[PATCH 2/6] swiotlb: do not panic on mapping failures

2018-05-15 Thread Christoph Hellwig
We now have error handling in map_single/map_page callers (most of them anyway). As swiotlb_tbl_map_single already prints a useful warning when running out of swiotlb pool swace we can also remove swiotlb_full entirely as it serves no purpose now. Signed-off-by: Christoph Hellwig --- lib/swiotlb

Re: [PATCH v3 2/2] locking/percpu-rwsem: Annotate rwsem ownership transfer by setting RWSEM_OWNER_UNKNOWN

2018-05-15 Thread Peter Zijlstra
On Tue, May 15, 2018 at 11:02:19AM -0700, Matthew Wilcox wrote: > On Tue, May 15, 2018 at 07:58:05PM +0200, Peter Zijlstra wrote: > > On Tue, May 15, 2018 at 01:38:04PM -0400, Waiman Long wrote: > > > +/* > > > + * Owner value to indicate the rwsem's owner is not currently known. > > > + */ > > > +

[PATCH 3/6] swiotlb: merge swiotlb_unmap_page and unmap_single

2018-05-15 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- lib/swiotlb.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/lib/swiotlb.c b/lib/swiotlb.c index 4d36340bc4f9..2ebbc7204061 100644 --- a/lib/swiotlb.c +++ b/lib/swiotlb.c @@ -814,9 +814,9 @@ dma_addr_t swiotlb_map_page(str

Re: [PATCH v3 2/2] locking/percpu-rwsem: Annotate rwsem ownership transfer by setting RWSEM_OWNER_UNKNOWN

2018-05-15 Thread Peter Zijlstra
On Tue, May 15, 2018 at 02:02:00PM -0400, Waiman Long wrote: > On 05/15/2018 01:58 PM, Peter Zijlstra wrote: > > On Tue, May 15, 2018 at 01:38:04PM -0400, Waiman Long wrote: > >> +/* > >> + * Owner value to indicate the rwsem's owner is not currently known. > >> + */ > >> +#define RWSEM_OWNER_UNKNO

[PATCH 6/6] swiotlb: respect DMA_ATTR_NO_WARN in __swiotlb_map_page

2018-05-15 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- lib/swiotlb.c | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/lib/swiotlb.c b/lib/swiotlb.c index 5becc2fc680a..5cf88e090cb6 100644 --- a/lib/swiotlb.c +++ b/lib/swiotlb.c @@ -608,8 +608,11 @@ __swiotlb_map_page(struct devi

Re: [PATCH] clk: qcom: Add some missing gcc clks for msm8996

2018-05-15 Thread Stephen Boyd
Quoting Bjorn Andersson (2018-04-17 17:09:26) > @@ -3350,6 +3522,7 @@ static struct clk_regmap *gcc_msm8996_clocks[] = { > [GCC_AGGRE0_CNOC_AHB_CLK] = &gcc_aggre0_cnoc_ahb_clk.clkr, > [GCC_SMMU_AGGRE0_AXI_CLK] = &gcc_smmu_aggre0_axi_clk.clkr, > [GCC_SMMU_AGGRE0_AHB_CLK] = &g

[PATCH 5/6] swiotlb: share more code between map_page and map_sg

2018-05-15 Thread Christoph Hellwig
Refactor all the common code into what previously was map_single, which is now renamed to __swiotlb_map_page. This also improves the map_sg error handling and diagnostics to match the map_page ones. Signed-off-by: Christoph Hellwig --- lib/swiotlb.c | 114 +++

[PATCH 4/6] swiotlb: mark is_swiotlb_buffer static

2018-05-15 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- include/linux/swiotlb.h | 1 - lib/swiotlb.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h index 965be92c33b5..7ef541ce8f34 100644 --- a/include/linux/swiotlb.h +++ b/include/l

swiotlb cleanup

2018-05-15 Thread Christoph Hellwig
Hi Konrad, below are a few swiotlb patches. Mostly just cleanups, but the removal of the panic option is an actual change in (rarely used) functionality.

[PATCH 1/6] swiotlb: remove a pointless comment

2018-05-15 Thread Christoph Hellwig
This comments describes an aspect of the map_sg interface that isn't even exploited by swiotlb. Signed-off-by: Christoph Hellwig --- lib/swiotlb.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/lib/swiotlb.c b/lib/swiotlb.c index 16ace0e25d52..721f93677eee 100644 --- a/lib/swiotlb.c ++

Re: [PATCH v8 09/10] drivers: qcom: rpmh: add support for batch RPMH request

2018-05-15 Thread Lina Iyer
On Tue, May 15 2018 at 10:50 -0600, Doug Anderson wrote: Hi, On Tue, May 15, 2018 at 9:23 AM, Lina Iyer wrote: On Tue, May 15 2018 at 09:52 -0600, Doug Anderson wrote: Hi, On Mon, May 14, 2018 at 12:59 PM, Lina Iyer wrote: /** @@ -77,12 +82,14 @@ struct rpmh_request { * @cache: the li

Re: [PATCH v3 1/2] locking/rwsem: Add a new RWSEM_ANONYMOUSLY_OWNED flag

2018-05-15 Thread Peter Zijlstra
On Tue, May 15, 2018 at 01:38:03PM -0400, Waiman Long wrote: > diff --git a/kernel/locking/rwsem-xadd.c b/kernel/locking/rwsem-xadd.c > index e795908..a27dbb4 100644 > --- a/kernel/locking/rwsem-xadd.c > +++ b/kernel/locking/rwsem-xadd.c > @@ -357,11 +357,8 @@ static inline bool rwsem_can_spin_on_o

Re: [PATCH v3 2/2] locking/percpu-rwsem: Annotate rwsem ownership transfer by setting RWSEM_OWNER_UNKNOWN

2018-05-15 Thread Matthew Wilcox
On Tue, May 15, 2018 at 07:58:05PM +0200, Peter Zijlstra wrote: > On Tue, May 15, 2018 at 01:38:04PM -0400, Waiman Long wrote: > > +/* > > + * Owner value to indicate the rwsem's owner is not currently known. > > + */ > > +#define RWSEM_OWNER_UNKNOWN((struct task_struct *)-1) > > It might

Re: [PATCH v3 2/2] locking/percpu-rwsem: Annotate rwsem ownership transfer by setting RWSEM_OWNER_UNKNOWN

2018-05-15 Thread Waiman Long
On 05/15/2018 01:58 PM, Peter Zijlstra wrote: > On Tue, May 15, 2018 at 01:38:04PM -0400, Waiman Long wrote: >> +/* >> + * Owner value to indicate the rwsem's owner is not currently known. >> + */ >> +#define RWSEM_OWNER_UNKNOWN ((struct task_struct *)-1) > It might be nice to comment that this wor

Re: [PATCH] clk: meson: use SPDX license identifiers consistently

2018-05-15 Thread Stephen Boyd
Quoting Jerome Brunet (2018-05-15 09:42:29) > diff --git a/drivers/clk/meson/clk-audio-divider.c > b/drivers/clk/meson/clk-audio-divider.c > index f7ab5b1db342..ac0743cd0f2f 100644 > --- a/drivers/clk/meson/clk-audio-divider.c > +++ b/drivers/clk/meson/clk-audio-divider.c > @@ -1,18 +1,7 @@ > +//

[PATCH v2] x86/mtrr: Convert to use match_string() helper

2018-05-15 Thread Andy Shevchenko
The helper returns index of the matching string in an array. Replace the open coded array lookup. Signed-off-by: Andy Shevchenko --- - reword commit message arch/x86/kernel/cpu/mtrr/if.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/arch/x86/kernel

Re: [PATCH v3 2/2] locking/percpu-rwsem: Annotate rwsem ownership transfer by setting RWSEM_OWNER_UNKNOWN

2018-05-15 Thread Peter Zijlstra
On Tue, May 15, 2018 at 01:38:04PM -0400, Waiman Long wrote: > +/* > + * Owner value to indicate the rwsem's owner is not currently known. > + */ > +#define RWSEM_OWNER_UNKNOWN ((struct task_struct *)-1) It might be nice to comment that this works and relies on having that ANON_OWNER bit set.

Re: [PATCH v3 1/2] locking/rwsem: Add a new RWSEM_ANONYMOUSLY_OWNED flag

2018-05-15 Thread Waiman Long
On 05/15/2018 01:55 PM, Peter Zijlstra wrote: > On Tue, May 15, 2018 at 01:52:06PM -0400, Waiman Long wrote: >> On 05/15/2018 01:48 PM, Peter Zijlstra wrote: >>> On Tue, May 15, 2018 at 01:38:03PM -0400, Waiman Long wrote: diff --git a/kernel/locking/rwsem.c b/kernel/locking/rwsem.c index

Re: [PATCH v3 1/2] locking/rwsem: Add a new RWSEM_ANONYMOUSLY_OWNED flag

2018-05-15 Thread Peter Zijlstra
On Tue, May 15, 2018 at 01:52:06PM -0400, Waiman Long wrote: > On 05/15/2018 01:48 PM, Peter Zijlstra wrote: > > On Tue, May 15, 2018 at 01:38:03PM -0400, Waiman Long wrote: > >> diff --git a/kernel/locking/rwsem.c b/kernel/locking/rwsem.c > >> index 30465a2..b7208e1 100644 > >> --- a/kernel/lockin

Re: [tip:locking/core] locking/atomics: Simplify the op definitions in atomic.h some more

2018-05-15 Thread Mark Rutland
On Tue, May 15, 2018 at 07:10:21PM +0200, Peter Zijlstra wrote: > On Tue, May 15, 2018 at 04:43:33PM +0100, Mark Rutland wrote: > > I *think* the table can encode enough info to generate atomic-long.h, > > atomic-instrumented.h, and the atomic.h ordering fallbacks. I'll need to > > flesh out the ta

SCM_RIGHTS and file descriptor limits

2018-05-15 Thread Andres Freund
Hi, I'm not sure if this is a documentation omission, kernel code bug, missing understanding on my part, or all of the above. I'm looking at recvmsg()'s behaviour for AF_UNIX, where the sender has sent an fd using SCM_RIGHTS, and the receiving process has already exceeded RLIMIT_NOFILE. By my re

[PATCH v5] mm: don't allow deferred pages with NEED_PER_CPU_KM

2018-05-15 Thread Pavel Tatashin
It is unsafe to do virtual to physical translations before mm_init() is called if struct page is needed in order to determine the memory section number (see SECTION_IN_PAGE_FLAGS). This is because only in mm_init() we initialize struct pages for all the allocated memory when deferred struct pages a

Re: [PATCH v3 1/2] locking/rwsem: Add a new RWSEM_ANONYMOUSLY_OWNED flag

2018-05-15 Thread Waiman Long
On 05/15/2018 01:48 PM, Peter Zijlstra wrote: > On Tue, May 15, 2018 at 01:38:03PM -0400, Waiman Long wrote: >> diff --git a/kernel/locking/rwsem.c b/kernel/locking/rwsem.c >> index 30465a2..b7208e1 100644 >> --- a/kernel/locking/rwsem.c >> +++ b/kernel/locking/rwsem.c >> @@ -130,7 +130,8 @@ void u

Re: linux-next: build warning after merge of the netfilter-next tree

2018-05-15 Thread Florian Westphal
Geert Uytterhoeven wrote: > On Tue, May 8, 2018 at 9:17 AM, Florian Westphal wrote: > > Stephen Rothwell wrote: > >> On Mon, 7 May 2018 10:55:19 +1000 Stephen Rothwell > >> wrote: > >> > > >> > After merging the netfilter-next tree, today's linux-next build (x86_64 > >> > allmodconfig) produce

Re: [PATCH RFC v5] pidns: introduce syscall translate_pid

2018-05-15 Thread Nagarathnam Muthusamy
On 05/15/2018 10:40 AM, Nagarathnam Muthusamy wrote: On 05/15/2018 10:36 AM, Konstantin Khlebnikov wrote: On 15.05.2018 20:19, Nagarathnam Muthusamy wrote: On 04/24/2018 10:36 PM, Konstantin Khlebnikov wrote: On 23.04.2018 20:37, Nagarathnam Muthusamy wrote: On 04/05/2018 12:02 AM,

Re: [PATCH 01/11] media: tm6000: fix potential Spectre variant 1

2018-05-15 Thread Gustavo A. R. Silva
nks, Mauro. Possibly... There was an ancient bug in Smatch's function pointer handling. I just pushed a fix for it now so the warning is there on linux-next. Dan, These are all the Spectre media issues I see smatch is reporting in linux-next-20180515: drivers/media/cec/cec-pin-

Re: [PATCH v3 1/2] locking/rwsem: Add a new RWSEM_ANONYMOUSLY_OWNED flag

2018-05-15 Thread Peter Zijlstra
On Tue, May 15, 2018 at 01:38:03PM -0400, Waiman Long wrote: > diff --git a/kernel/locking/rwsem.c b/kernel/locking/rwsem.c > index 30465a2..b7208e1 100644 > --- a/kernel/locking/rwsem.c > +++ b/kernel/locking/rwsem.c > @@ -130,7 +130,8 @@ void up_read(struct rw_semaphore *sem) > void up_write(str

Re: [PATCH v3 1/2] locking/rwsem: Add a new RWSEM_ANONYMOUSLY_OWNED flag

2018-05-15 Thread Waiman Long
On 05/15/2018 01:46 PM, Peter Zijlstra wrote: > On Tue, May 15, 2018 at 01:38:03PM -0400, Waiman Long wrote: >> +#define WSEM_ANONYMOUSLY_OWNED ((struct task_struct >> *)__RWSEM_ANONYMOUSLY_OWNED) > typoed and unused.. Sorry about the typo. I know it is not used. I include it for completenes

Re: [PATCH 5/6] udf: Simplify calls to udf_disk_stamp_to_time

2018-05-15 Thread Deepa Dinamani
On Mon, May 14, 2018 at 6:57 AM, Jan Kara wrote: > Hello, > > On Fri 11-05-18 21:59:20, Deepa Dinamani wrote: >> Subsequent patches in the series convert inode timestamps >> to use struct timespec64 instead of struct timespec as >> part of solving the y2038 problem. >> >> commit fd3cfad374d4 ("udf

Re: [PATCH v8 04/10] drivers: qcom: rpmh: add RPMH helper functions

2018-05-15 Thread Lina Iyer
On Fri, May 11 2018 at 14:17 -0600, Doug Anderson wrote: Hi, On Wed, May 9, 2018 at 10:01 AM, Lina Iyer wrote: +int rpmh_write(const struct device *dev, enum rpmh_state state, + const struct tcs_cmd *cmd, u32 n) +{ + DECLARE_COMPLETION_ONSTACK(compl); + DEFINE_RPMH_MSG

Re: [PATCH v3 1/2] locking/rwsem: Add a new RWSEM_ANONYMOUSLY_OWNED flag

2018-05-15 Thread Peter Zijlstra
On Tue, May 15, 2018 at 01:38:03PM -0400, Waiman Long wrote: > +#define WSEM_ANONYMOUSLY_OWNED ((struct task_struct > *)__RWSEM_ANONYMOUSLY_OWNED) typoed and unused..

Re: [PATCH RFC v5] pidns: introduce syscall translate_pid

2018-05-15 Thread Nagarathnam Muthusamy
On 05/15/2018 10:36 AM, Konstantin Khlebnikov wrote: On 15.05.2018 20:19, Nagarathnam Muthusamy wrote: On 04/24/2018 10:36 PM, Konstantin Khlebnikov wrote: On 23.04.2018 20:37, Nagarathnam Muthusamy wrote: On 04/05/2018 12:02 AM, Konstantin Khlebnikov wrote: On 05.04.2018 01:29, Eric

Re: linux-next: manual merge of the rcu tree with Linus' tree

2018-05-15 Thread Paul E. McKenney
On Mon, May 14, 2018 at 01:46:36PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the rcu tree got a conflict in: > > drivers/nvme/host/core.c > > between commit: > > 12d9f07022dc ("nvme: fix use-after-free in nvme_free_ns_head") > > from Linus' tree and commit: >

Re: [PATCH v2] pstore: Convert internal records to timespec64

2018-05-15 Thread Deepa Dinamani
Acked-by: Deepa Dinamani I think for 4.18, I can include it as part of my series. Thanks, -Deepa On Mon, May 14, 2018 at 3:50 PM, Kees Cook wrote: > This prepares pstore for converting the VFS layer to timespec64. > > Signed-off-by: Kees Cook > --- > I can carry this for v4.18 unless you'd li

[PATCH v3 1/2] locking/rwsem: Add a new RWSEM_ANONYMOUSLY_OWNED flag

2018-05-15 Thread Waiman Long
There are use cases where a rwsem can be acquired by one task, but released by another task. In thess cases, optimistic spinning may need to be disabled. One example will be the filesystem freeze/thaw code where the task that freezes the filesystem will acquire a rwsem and then un-owns it before r

Re: [PATCH v2] ARM: dts: exynos: Add support for audio over HDMI for Odroid X/X2/U3

2018-05-15 Thread Krzysztof Kozlowski
On Mon, May 14, 2018 at 10:01:48AM +0200, Sylwester Nawrocki wrote: > This patch switches Odroid X/X2/U3 to use dedicated Odroid audio subsystem > DT bindings instead of the simple-card in order to add support for audio > over HDMI. > > Signed-off-by: Sylwester Nawrocki > --- > arch/arm/boot/dts

[PATCH v3 0/2] locking/rwsem: Fix DEBUG_RWSEM warning from thaw_super()

2018-05-15 Thread Waiman Long
v3: - Modify patch 1 to not expose any new rwsem owner related function. - Modify patch 2 to make percpu_rwsem_release() and percpu_rwsem_acquire() set the owner field directly, if applicable. This patchset aims to fix the DEBUG_RWSEM warning in the filesystem freezing/thawing code. A new mac

[PATCH v3 2/2] locking/percpu-rwsem: Annotate rwsem ownership transfer by setting RWSEM_OWNER_UNKNOWN

2018-05-15 Thread Waiman Long
The filesystem freezing code needs to transfer ownership of a rwsem embedded in a percpu-rwsem from the task that does the freezing to another one that does the thawing by calling percpu_rwsem_release() after freezing and percpu_rwsem_acquire() before thawing. However, the new rwsem debug code run

Re: [PATCH RFC v5] pidns: introduce syscall translate_pid

2018-05-15 Thread Konstantin Khlebnikov
On 15.05.2018 20:19, Nagarathnam Muthusamy wrote: On 04/24/2018 10:36 PM, Konstantin Khlebnikov wrote: On 23.04.2018 20:37, Nagarathnam Muthusamy wrote: On 04/05/2018 12:02 AM, Konstantin Khlebnikov wrote: On 05.04.2018 01:29, Eric W. Biederman wrote: Nagarathnam Muthusamy writes: On

Re: [PATCH] input: fix coding style issues in input.c

2018-05-15 Thread Dmitry Torokhov
On Sat, May 12, 2018 at 02:01:20AM +0300, Nick Simonov wrote: > Wed, May 09, 2018 at 05:33:13PM -0700, Dmitry Torokhov wrote: > > Hi NIck, > > > > On Wed, May 09, 2018 at 05:07:14PM +0300, Nick Simonov wrote: > > > This is a patch to the input.c file that fixes > > > up warning found by checkpatc

[PATCH v3] device property: Get rid of union aliasing

2018-05-15 Thread Andy Shevchenko
The commit 318a19718261 ("device property: refactor built-in properties support") went way too far and brought a union aliasing. Partially revert it here to get rid of union aliasing. Note, all Apple properties are considered as u8 arrays. To get a value of any of them the caller must use devi

Re: [PATCH 09/15] x86/split_lock: Explicitly enable or disable #AC for split locked accesses

2018-05-15 Thread Fenghua Yu
On Tue, May 15, 2018 at 09:15:16AM -0700, Dave Hansen wrote: > On 05/14/2018 11:52 AM, Fenghua Yu wrote: > > By default, we don't set or clear the bit 29 in TEST_CTL MSR 0x33 and > > the bit is inherited from BIOS/hardware setting. > > > > The kernel parameter "split_lock_ac=on/off" explicitly set

Re: [PATCH v4 0/6] clocksource: rework Atmel TCB timer driver

2018-05-15 Thread Sebastian Andrzej Siewior
On 2018-05-02 20:10:46 [+0200], Alexandre Belloni wrote: > > > As said below, this is solving multiple issues, including the one for > > > SoCs that don't have the PIT. > > will the PIT be removed? Where it needs the PIT? > > > > The last patch is unselecting the PIT driver so by default it is no

Re: [PATCH 3/3] sched/fair: schedutil: explicit update only when required

2018-05-15 Thread Patrick Bellasi
On 15-May 18:53, Peter Zijlstra wrote: > On Tue, May 15, 2018 at 03:53:43PM +0100, Patrick Bellasi wrote: > > On 15-May 12:19, Vincent Guittot wrote: > > > On 14 May 2018 at 18:32, Patrick Bellasi wrote: > > What about adding a new explicit callback at the end of: > >update_blocked_averages()

Re: [PATCH RFC v5] pidns: introduce syscall translate_pid

2018-05-15 Thread Nagarathnam Muthusamy
On 04/24/2018 10:36 PM, Konstantin Khlebnikov wrote: On 23.04.2018 20:37, Nagarathnam Muthusamy wrote: On 04/05/2018 12:02 AM, Konstantin Khlebnikov wrote: On 05.04.2018 01:29, Eric W. Biederman wrote: Nagarathnam Muthusamy writes: On 04/04/2018 12:11 PM, Konstantin Khlebnikov wrote: Ea

Re: [PATCH 1/3] ARM: dra762: hwmod: Add MCAN support

2018-05-15 Thread Tony Lindgren
* Tony Lindgren [180515 17:20]: > * Tony Lindgren [180515 17:17]: > > * Faiz Abbas [180515 06:05]: > > > Hi Tony, > > > > > > On Tuesday 01 May 2018 08:56 PM, Tony Lindgren wrote: > > > > Hi, > > > > > > > > * Faiz Abbas [180408 09:59]: > > > >> From: Lokesh Vutla > > > >> > > > >> Add MCAN

Re: [PATCH v3 4/4] KVM: arm64: Add support for PUD hugepages at stage 2

2018-05-15 Thread Catalin Marinas
On Mon, May 14, 2018 at 03:43:04PM +0100, Punit Agrawal wrote: > KVM only supports PMD hugepages at stage 2. Extend the stage 2 fault > handling to add support for PUD hugepages. > > Addition of pud hugepage support enables additional hugepage > sizes (e.g., 1G with 4K granule) which can be useful

Re: for_each_cpu() is buggy for UP kernel?

2018-05-15 Thread Linus Torvalds
On Mon, May 14, 2018 at 8:02 PM Dexuan Cui wrote: > If you're OK with the below fix (not tested yet), I'll submit a patch for it: > --- a/kernel/time/tick-broadcast.c > +++ b/kernel/time/tick-broadcast.c > @@ -616,6 +616,10 @@ static void tick_handle_oneshot_broadcast(struct clock_event_device *

Re: [PATCH V3] Input: pm8941-pwrkey: add resin key capabilities

2018-05-15 Thread Dmitry Torokhov
On Mon, May 07, 2018 at 11:46:59AM -0700, Bjorn Andersson wrote: > On Fri 04 May 17:10 PDT 2018, Dmitry Torokhov wrote: > > > Hi Tirupathi, > > > > On Fri, Mar 23, 2018 at 11:53:12AM +0530, Tirupathi Reddy wrote: > > > Add resin key support to handle different types of key events > > > defined in

Re: [PATCH 03/15] x86/split_lock: Handle #AC exception for split lock in kernel mode

2018-05-15 Thread Fenghua Yu
On Tue, May 15, 2018 at 08:51:24AM -0700, Dave Hansen wrote: > On 05/14/2018 11:52 AM, Fenghua Yu wrote: > > +#definedelay_ms1 > > That seems like a dangerously-generic name that should not be a #define > anyway. Sure. I will change it to #define split_lock_delay_ms 1 > > > +sta

Re: use memcpy_mcsafe() for copy_to_iter() (was: Re: [PATCH v3 0/9] Series short description)

2018-05-15 Thread Dan Williams
On Mon, May 14, 2018 at 11:49 PM, Ingo Molnar wrote: > > * Dan Williams wrote: > >> On Mon, May 14, 2018 at 12:26 AM, Ingo Molnar wrote: >> > >> > * Dan Williams wrote: >> > >> >> Ingo, Thomas, Al, any concerns with this series? >> > >> > Yeah, so: >> > >> >"[PATCH v3 0/9] Series short desc

Re: [PATCH v3 2/3] ACPI: ensure acpi_parse_entries_array() does not access non-existent table data

2018-05-15 Thread Rafael J. Wysocki
On Tue, May 1, 2018 at 2:39 AM, Al Stone wrote: > For ACPI tables that have subtables, acpi_parse_entries_array() gets used > to step through each of the subtables in memory. The primary loop for this > was checking that the beginning location of the subtable being examined > plus the length of s

Re: [PATCH 1/3] ARM: dra762: hwmod: Add MCAN support

2018-05-15 Thread Tony Lindgren
* Tony Lindgren [180515 17:17]: > * Faiz Abbas [180515 06:05]: > > Hi Tony, > > > > On Tuesday 01 May 2018 08:56 PM, Tony Lindgren wrote: > > > Hi, > > > > > > * Faiz Abbas [180408 09:59]: > > >> From: Lokesh Vutla > > >> > > >> Add MCAN hwmod data and register it for dra762 silicons. > > >>

Re: [PATCH v9 06/11] arm64: kexec_file: allow for loading Image-format kernel

2018-05-15 Thread James Morse
Hi Akashi, On 15/05/18 06:13, AKASHI Takahiro wrote: > On Fri, May 11, 2018 at 06:07:06PM +0100, James Morse wrote: >> On 07/05/18 08:21, AKASHI Takahiro wrote: >>> On Tue, May 01, 2018 at 06:46:11PM +0100, James Morse wrote: On 25/04/18 07:26, AKASHI Takahiro wrote: > This patch provides

Re: [PATCH v9 07/11] arm64: kexec_file: add crash dump support

2018-05-15 Thread James Morse
Hi guys, (CC: +RobH, devicetree list) On 25/04/18 07:26, AKASHI Takahiro wrote: > Enabling crash dump (kdump) includes > * prepare contents of ELF header of a core dump file, /proc/vmcore, > using crash_prepare_elf64_headers(), and > * add two device tree properties, "linux,usable-memory-range"

Re: [PATCH 2/3] ARM: dts: dra762: Add MCAN clock support

2018-05-15 Thread Tony Lindgren
* Faiz Abbas [180408 09:59]: > From: Lokesh Vutla > > MCAN is clocked by H14 divider of DPLL_GMAC. Unlike other > DPLL dividers this DPLL_GMAC H14 divider is controlled by > control module. Adding support for these clocks. Adding Tero to Cc on this one. > Signed-off-by: Lokesh Vutla > Signed-

Re: [PATCH 1/3] ARM: dra762: hwmod: Add MCAN support

2018-05-15 Thread Tony Lindgren
* Faiz Abbas [180515 06:05]: > Hi Tony, > > On Tuesday 01 May 2018 08:56 PM, Tony Lindgren wrote: > > Hi, > > > > * Faiz Abbas [180408 09:59]: > >> From: Lokesh Vutla > >> > >> Add MCAN hwmod data and register it for dra762 silicons. > >> > >> Signed-off-by: Lokesh Vutla > >> Signed-off-by: F

Re: [PATCH v9 02/12] drivers: base: cacheinfo: setup DT cache properties early

2018-05-15 Thread Jeremy Linton
Hi Greg, Have you had a chance to look at the cachinfo parts of this patch? Comments? Thanks, On 05/11/2018 06:57 PM, Jeremy Linton wrote: The original intent in cacheinfo was that an architecture specific populate_cache_leaves() would probe the hardware and then cache_shared_cpu_map_setup

Re: [PATCH v9 07/11] arm64: kexec_file: add crash dump support

2018-05-15 Thread James Morse
Hi Akashi, On 25/04/18 07:26, AKASHI Takahiro wrote: > Enabling crash dump (kdump) includes > * prepare contents of ELF header of a core dump file, /proc/vmcore, > using crash_prepare_elf64_headers(), and > * add two device tree properties, "linux,usable-memory-range" and > "linux,elfcorehdr",

Re: [PATCH v2 4/4] KVM: arm64: Add support for PUD hugepages at stage 2

2018-05-15 Thread Punit Agrawal
Catalin Marinas writes: > On Tue, May 01, 2018 at 11:26:59AM +0100, Punit Agrawal wrote: >> KVM currently supports PMD hugepages at stage 2. Extend the stage 2 >> fault handling to add support for PUD hugepages. >> >> Addition of pud hugepage support enables additional hugepage >> sizes (e.g., 1

Re: [tip:locking/core] locking/atomics: Simplify the op definitions in atomic.h some more

2018-05-15 Thread Peter Zijlstra
On Tue, May 15, 2018 at 04:43:33PM +0100, Mark Rutland wrote: > I put together the following while trying to avoid bash magic (i.e the > arrays, and keeping the option of naming the params. My local copy of > dash seems happy with it. Very nice; clearly your sh foo is stronger than mine ;-) > I *

Re: [PATCH 4.14 49/62] Bluetooth: btusb: Only check needs_reset_resume DMI table for QCA rome chipsets

2018-05-15 Thread Brian Norris
+ Guenter On Mon, May 14, 2018 at 08:49:05AM +0200, Greg Kroah-Hartman wrote: > 4.14-stable review patch. If anyone has any objections, please let me know. FYI, this backport is wrong. See below. > -- > > From: Hans de Goede > > commit fc54910280eb38bde923cdf0898e74687d8e6989

Re: [PATCH] selftests: cgroup/memcontrol: add basic test for swap controls

2018-05-15 Thread Shuah Khan
On 05/15/2018 10:40 AM, Tejun Heo wrote: > On Tue, May 15, 2018 at 07:05:53PM +0300, Mike Rapoport wrote: >> The new test verifies that memory.swap.max and memory.swap.current behave >> as expected for simple allocation scenarios >> >> Signed-off-by: Mike Rapoport > > Looks good to me. > > Acked

Re: [PATCH] clk: meson: use SPDX license identifiers consistently

2018-05-15 Thread Fabio Estevam
On Tue, May 15, 2018 at 1:42 PM, Jerome Brunet wrote: > diff --git a/drivers/clk/meson/clk-audio-divider.c > b/drivers/clk/meson/clk-audio-divider.c > index f7ab5b1db342..ac0743cd0f2f 100644 > --- a/drivers/clk/meson/clk-audio-divider.c > +++ b/drivers/clk/meson/clk-audio-divider.c > @@ -1,18 +1

Re: [PATCH] selftests: cgroup/memcontrol: add basic test for swap controls

2018-05-15 Thread Roman Gushchin
On Tue, May 15, 2018 at 07:05:53PM +0300, Mike Rapoport wrote: > The new test verifies that memory.swap.max and memory.swap.current behave > as expected for simple allocation scenarios > > Signed-off-by: Mike Rapoport > --- > > The patch is against kselftest/next branch Hi Mike! Looks good to

Re: [PATCH v2 4/4] KVM: arm64: Add support for PUD hugepages at stage 2

2018-05-15 Thread Catalin Marinas
On Tue, May 01, 2018 at 11:26:59AM +0100, Punit Agrawal wrote: > KVM currently supports PMD hugepages at stage 2. Extend the stage 2 > fault handling to add support for PUD hugepages. > > Addition of pud hugepage support enables additional hugepage > sizes (e.g., 1G with 4K granule) which can be u

Re: [PATCH] vsprintf: Fix memory barriers of ptr_key to have_filed_random_ptr_key

2018-05-15 Thread Linus Torvalds
On Tue, May 15, 2018 at 7:06 AM Steven Rostedt wrote: > - smp_mb(); > + smp_wmb(); > WRITE_ONCE(have_filled_random_ptr_key, true); > + /* Read ptr_key after reading have_filled_random_ptr_key */ > + smp_rmb(); > + > #ifdef CONFIG_64BIT > hashval = (uns

[PATCH] sched/cfs: correct path to documentation

2018-05-15 Thread Sebastian Andrzej Siewior
The `tip' prefix probably referred to the tip tree and is not required. Remove it. Signed-off-by: Sebastian Andrzej Siewior --- init/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/Kconfig b/init/Kconfig index f013afc74b11..18b151f0ddc1 100644 --- a/init/Kconfig

Re: [PATCH 3/3] sched/fair: schedutil: explicit update only when required

2018-05-15 Thread Peter Zijlstra
On Tue, May 15, 2018 at 03:53:43PM +0100, Patrick Bellasi wrote: > On 15-May 12:19, Vincent Guittot wrote: > > On 14 May 2018 at 18:32, Patrick Bellasi wrote: > > Yes se becomes NULL only when you reach root domain root group; domains are something else again ;-) > Thus, the scheduler knows tha

Re: [PATCH v8 09/10] drivers: qcom: rpmh: add support for batch RPMH request

2018-05-15 Thread Doug Anderson
Hi, On Tue, May 15, 2018 at 9:23 AM, Lina Iyer wrote: > On Tue, May 15 2018 at 09:52 -0600, Doug Anderson wrote: >> >> Hi, >> >> On Mon, May 14, 2018 at 12:59 PM, Lina Iyer wrote: >> > /** > @@ -77,12 +82,14 @@ struct rpmh_request { > * @cache: the list of cached requests >

Re: [PATCH v4 6/8] PCI: Rework of_pci_get_host_bridge_resources() to devm_of_pci_get_host_bridge_resources()

2018-05-15 Thread Andy Shevchenko
On Tue, May 15, 2018 at 7:48 PM, Andy Shevchenko wrote: > On Tue, May 15, 2018 at 12:07 PM, Jan Kiszka wrote: >> + devm_kfree(dev, res); devm_kfree() makes my eyes hurt. > res = devm_kmemdump(); devm_kmemdup(&tmp...); -- With Best Regards, Andy Shevchenko

Re: [PATCH v4 6/8] PCI: Rework of_pci_get_host_bridge_resources() to devm_of_pci_get_host_bridge_resources()

2018-05-15 Thread Andy Shevchenko
On Tue, May 15, 2018 at 12:07 PM, Jan Kiszka wrote: > From: Jan Kiszka > > of_pci_get_host_bridge_resources() allocates the resource structures it > fills dynamically, but none of its callers care to release them so far. > Rather than requiring everyone to do this explicitly, convert the > existi

Re: `ucsi_acpi: probe of USBC000:00 failed with error -12` on Dell XPS 13 9370

2018-05-15 Thread Paul Menzel
Dear Greg, As always, thank you for the prompt response. On 05/15/18 18:00, Greg KH wrote: On Tue, May 15, 2018 at 04:34:03PM +0200, Paul Menzel wrote: Linux 4.17-rc5 shows the error below on the Dell XPS 13 9370 with Debian Sid/unstable. ``` […] [0.440240] usb: port power management

Re: [PATCH v2 2/2] clk: meson: axg: let mpll clocks round closest

2018-05-15 Thread Neil Armstrong
On 15/05/2018 18:36, Jerome Brunet wrote: > Let the mpll dividers achieve the closest rate possible, even if > it means rounding the requested rate up. > > This is done to improve the accuracy of the rates provided by these > plls to the audio subsystem > > Signed-off-by: Jerome Brunet > --- >

Re: [patch-rt] sched,fair: Fix CFS bandwidth control lockdep DEADLOCK report

2018-05-15 Thread Sebastian Andrzej Siewior
On 2018-05-04 10:48:02 [-0400], Steven Rostedt wrote: > On Fri, 04 May 2018 08:14:38 +0200 > Mike Galbraith wrote: > … > Looks good to me. > > Acked-by: Steven Rostedt (VMware) trimmed commit message, tagged stable, applied. > -- Steve Sebastian

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