[PATCH v2 3/4] mm, compaction: raise compaction priority after it withdrawns

2019-08-05 Thread Mike Kravetz
From: Vlastimil Babka Mike Kravetz reports that "hugetlb allocations could stall for minutes or hours when should_compact_retry() would return true more often then it should. Specifically, this was in the case where compact_result was COMPACT_DEFERRED and COMPACT_PARTIAL_SKIPPED and no progress

[PATCH v2 4/4] hugetlbfs: don't retry when pool page allocations start to fail

2019-08-05 Thread Mike Kravetz
When allocating hugetlbfs pool pages via /proc/sys/vm/nr_hugepages, the pages will be interleaved between all nodes of the system. If nodes are not equal, it is quite possible for one node to fill up before the others. When this happens, the code still attempts to allocate pages from the full

[PATCH v2 1/4] mm, reclaim: make should_continue_reclaim perform dryrun detection

2019-08-05 Thread Mike Kravetz
From: Hillf Danton Address the issue of should_continue_reclaim returning true too often for __GFP_RETRY_MAYFAIL attempts when !nr_reclaimed and nr_scanned. This was observed during hugetlb page allocation causing stalls for minutes or hours. We can stop reclaiming pages if compaction reports

[PATCH v2 0/4] address hugetlb page allocation stalls

2019-08-05 Thread Mike Kravetz
Allocation of hugetlb pages via sysctl or procfs can stall for minutes or hours. A simple example on a two node system with 8GB of memory is as follows: echo 4096 > /sys/devices/system/node/node1/hugepages/hugepages-2048kB/nr_hugepages echo 4096 > /proc/sys/vm/nr_hugepages Obviously, both

Re: [PATCH resend v2] lib: scatterlist: Fix to support no mapped sg

2019-08-05 Thread Zhou Wang
On 2019/7/29 9:44, Zhou Wang wrote: > On 2019/7/24 11:54, Zhou Wang wrote: >> In function sg_split, the second sg_calculate_split will return -EINVAL >> when in_mapped_nents is 0. >> >> Indeed there is no need to do second sg_calculate_split and sg_split_mapped >> when in_mapped_nents is 0, as

Re: [PATCH 2/2] mm/zsmalloc.c: Fix race condition in zs_destroy_pool

2019-08-05 Thread Minchan Kim
On Mon, Aug 05, 2019 at 10:34:41AM -0700, Henry Burns wrote: > On Sun, Aug 4, 2019 at 9:28 PM Minchan Kim wrote: > > > > Hi Henry, > > > > On Thu, Aug 01, 2019 at 06:53:32PM -0700, Henry Burns wrote: > > > In zs_destroy_pool() we call flush_work(>free_work). However, we > > > have no guarantee

[PATCH] rtl8712: rtl871x_ioctl_linux.c: fix unnecessary typecast

2019-08-05 Thread Jose Carlos Cazarin Filho
Fix checkpath warning: WARNING: Unnecessary typecast of c90 int constant Signed-off-by: Jose Carlos Cazarin Filho --- Hello all! This is my first commit to the Linux Kernel, I'm doing this to learn and be able to contribute more in the future Peace all!

Re: [PATCH v2 0/4] per-cgroup numa suite

2019-08-05 Thread 王贇
Hi, Folks Please feel free to comment if you got any concerns :-) Hi, Peter How do you think about this version? Please let us know if it's still not good enough to be accepted :-) Regards, Michael Wang On 2019/7/16 上午11:38, 王贇 wrote: > During our torturing on numa stuff, we found problems

[PATCH net-next v4] net: can: Fix compiling warnings for two functions

2019-08-05 Thread Mao Wenan
There are two warnings in net/can, fix them by setting bcm_sock_no_ioctlcmd and raw_sock_no_ioctlcmd as static. net/can/bcm.c:1683:5: warning: symbol 'bcm_sock_no_ioctlcmd' was not declared. Should it be static? net/can/raw.c:840:5: warning: symbol 'raw_sock_no_ioctlcmd' was not declared.

Re: [PATCH v4 00/10] implement KASLR for powerpc/fsl_booke/32

2019-08-05 Thread Jason Yan
Hi Christophe , Can you take a look at patch 6,7,9 of this version? Thank you, Jason On 2019/8/5 14:43, Jason Yan wrote: This series implements KASLR for powerpc/fsl_booke/32, as a security feature that deters exploit attempts relying on knowledge of the location of kernel internals. Since

Re: [PATCH 4.4 00/22] 4.4.188-stable review

2019-08-05 Thread shuah
On 8/5/19 7:02 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.4.188 release. There are 22 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

Re: [PATCH 4.9 00/42] 4.9.188-stable review

2019-08-05 Thread shuah
On 8/5/19 7:02 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.9.188 release. There are 42 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

Re: Let's talk about the elephant in the room - the Linux kernel's inability to gracefully handle low memory pressure

2019-08-05 Thread Suren Baghdasaryan
On Mon, Aug 5, 2019 at 12:31 PM Johannes Weiner wrote: > > On Mon, Aug 05, 2019 at 02:13:16PM +0200, Vlastimil Babka wrote: > > On 8/4/19 11:23 AM, Artem S. Tashkinov wrote: > > > Hello, > > > > > > There's this bug which has been bugging many people for many years > > > already and which is

Re: [PATCH 4.14 00/53] 4.14.137-stable review

2019-08-05 Thread shuah
On 8/5/19 7:02 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.14.137 release. There are 53 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

Re: list corruption in deferred_split_scan()

2019-08-05 Thread Qian Cai
> On Aug 5, 2019, at 6:15 PM, Yang Shi wrote: > > > > On 7/25/19 2:46 PM, Yang Shi wrote: >> >> >> On 7/24/19 2:13 PM, Qian Cai wrote: >>> On Wed, 2019-07-10 at 17:43 -0400, Qian Cai wrote: Running LTP oom01 test case with swap triggers a crash below. Revert the series

Re: [PATCH 4.19 00/74] 4.19.65-stable review

2019-08-05 Thread shuah
On 8/5/19 7:02 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.19.65 release. There are 74 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

[PATCH 01/17] soundwire: intel: prevent possible dereference in hw_params

2019-08-05 Thread Pierre-Louis Bossart
This should not happen in production systems but we should test for all callback arguments before invoking the config_stream callback. Update the prototype to clarify that the first argument is mandatory. Also use local variable instead of multiple dereferences to improve readability.

[PATCH 07/17] soundwire: include mod_devicetable.h to avoid compiling warnings

2019-08-05 Thread Pierre-Louis Bossart
From: Bard liao When integrating SoundWire, kbuild throws this warning with randconfig: >> include/linux/soundwire/sdw.h:571:17: warning: 'struct sdw_device_id' declared inside parameter list will not be visible outside of this definition or declaration const struct sdw_device_id

[PATCH 08/17] soundwire: stream: fix disable sequence

2019-08-05 Thread Pierre-Louis Bossart
When we disable the stream and then call hw_free, two bank switches will be handled and as a result we re-enable the stream on hw_free. Make sure the stream is disabled on both banks. TODO: we need to completely revisit all this and make sure we have a mirroring mechanism between current and

[PATCH 12/17] soundwire: cadence_master: make use of mclk_freq property

2019-08-05 Thread Pierre-Louis Bossart
Now that the prototype and Intel implementation are enabled, use this property to avoid hard-coded values. For example for ICL the mclk_freq value is 38.4 MHz while on CNL/CML it's 24 MHz. The mclk_freq should not be confused with the max_clk_freq, which si the maximum bus clock. The mclk_freq is

[PATCH 06/17] soundwire: cadence_master: use firmware defaults for frame shape

2019-08-05 Thread Pierre-Louis Bossart
Remove hard-coding and use firmware (BIOS/DT) values. If they are wrong use default 48x2 frame shape. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/cadence_master.c | 26 +++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git

[PATCH 11/17] soundwire: intel: read mclk_freq property from firmware

2019-08-05 Thread Pierre-Louis Bossart
The BIOS provides an Intel-specific property, let's use it to avoid hard-coded clock dividers. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/intel.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c

[PATCH 13/17] soundwire: cadence_master: fix divider setting in clock register

2019-08-05 Thread Pierre-Louis Bossart
From: Rander Wang The existing code uses an OR operation which would mix the original divider setting with the new one, resulting in an invalid configuration that can make codecs hang. Add the mask definition and use cdns_updatel to update divider Signed-off-by: Rander Wang Signed-off-by:

[PATCH 10/17] soundwire: add new mclk_freq field for properties

2019-08-05 Thread Pierre-Louis Bossart
To help pass platform-specific values, add a new field that can either be set by the Master driver or read from firmware (BIOS/DT). Signed-off-by: Pierre-Louis Bossart --- include/linux/soundwire/sdw.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/soundwire/sdw.h

[PATCH 03/17] soundwire: cadence_master: revisit interrupt settings

2019-08-05 Thread Pierre-Louis Bossart
Adding missing interrupt masks (parity, etc) and missing checks. Clarify which masks are for which usage. Signed-off-by: Bard Liao Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/cadence_master.c | 29 + 1 file changed, 25 insertions(+), 4 deletions(-)

[PATCH 14/17] soundwire: intel: handle disabled links

2019-08-05 Thread Pierre-Louis Bossart
On most hardware platforms, SoundWire interfaces are pin-muxed with other interfaces (typically DMIC or I2S) and the status of each link needs to be checked at boot time. For Intel platforms, the BIOS provides a menu to enable/disable the links separately, and the information is provided to the

[PATCH 05/17] soundwire: export helpers to find row and column values

2019-08-05 Thread Pierre-Louis Bossart
Add a prefix for common tables and export 2 helpers to set the frame shapes based on row/col values. These changes simplify bandwidth allocation algorithms as well as the Cadence parts which all need to convert from frame shape to indices used by the standard. These helpers are used in the

[PATCH 16/17] soundwire: cadence_master: add kernel parameter to override interrupt mask

2019-08-05 Thread Pierre-Louis Bossart
The code has a set of defaults which may not be relevant in all cases, add kernel parameter as a helper - mostly for early board bring-up. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/cadence_master.c | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH 15/17] soundwire: intel_init: add kernel module parameter to filter out links

2019-08-05 Thread Pierre-Louis Bossart
The hardware and ACPI info may report the presence of links that are not physically enabled (e.g. due to pin-muxing or hardware reworks), which in turn can result in errors being thrown. This shouldn't be the case for production devices but will happen a lot on development devices - even more so

[PATCH 17/17] soundwire: intel: move shutdown() callback and don't export symbol

2019-08-05 Thread Pierre-Louis Bossart
All DAI callbacks are in intel.c except for shutdown. Move and remove export symbol Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/cadence_master.c | 14 -- drivers/soundwire/cadence_master.h | 2 -- drivers/soundwire/intel.c | 17 +++-- 3 files

[PATCH 09/17] soundwire: stream: remove unnecessary variable initializations

2019-08-05 Thread Pierre-Louis Bossart
A number of variables don't need to be initialized. In a couple of cases where we loop on a list of runtimes, the code handling of the 'bus' variable leads to warnings that it may not be initialized. Add a specific error case to trap such cases. Signed-off-by: Pierre-Louis Bossart ---

[PATCH 04/17] soundwire: bus: improve dynamic debug comments for enumeration

2019-08-05 Thread Pierre-Louis Bossart
update comments to provide better understanding of enumeration flows. Signed-off-by: Pierre-Louis Bossart --- drivers/soundwire/bus.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/soundwire/bus.c b/drivers/soundwire/bus.c index 89d5f1537d9b..40f7d0dc59a6 100644

[PATCH 02/17] soundwire: intel: fix channel number reported by hardware

2019-08-05 Thread Pierre-Louis Bossart
On all released Intel controllers (CNL/CML/ICL), PDI2 reports an invalid count, force the correct hardware-supported value This may have to be revisited with platform-specific values if the hardware changes, but for now this is good enough. Signed-off-by: Pierre-Louis Bossart ---

[PATCH 00/17] soundwire: fixes for 5.4

2019-08-05 Thread Pierre-Louis Bossart
This series provides an update on the initial RFC. Debugfs and Intel updates will be provided in follow-up patches. The order of patches was changed since the RFC so detailed change logs are provided below. Changes since RFC: patch1: feedback from Vinod and Cezary use local variable to reduce

Re: [PATCH 5.2 000/131] 5.2.7-stable review

2019-08-05 Thread shuah
On 8/5/19 7:01 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.2.7 release. There are 131 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

Re: [PATCH v1 1/3] net: hisilicon: make hip04_tx_reclaim non-reentrant

2019-08-05 Thread Jakub Kicinski
On Sat, 3 Aug 2019 20:31:39 +0800, Jiangfeng Xiao wrote: > If hip04_tx_reclaim is interrupted while it is running > and then __napi_schedule continues to execute > hip04_rx_poll->hip04_tx_reclaim, reentrancy occurs > and oops is generated. So you need to mask the interrupt > during the

Re: [PATCH] phy: qcom-qmp: Correct READY_STATUS poll break condition

2019-08-05 Thread Bjorn Andersson
On Fri 19 Jul 08:50 PDT 2019, Marc Gonzalez wrote: > On 13/06/2019 11:10, Marc Gonzalez wrote: > > > Here are my observations for a 8998 board: > > > > 1) If I apply only the readl_poll_timeout() fix (not the mask_pcs_ready > > fixup) > > qcom_pcie_probe() fails with a timeout in phy_init. > >

[PATCH] phy: qcom-qmp: Correct ready status, again

2019-08-05 Thread Bjorn Andersson
Despite extensive testing of 885bd765963b ("phy: qcom-qmp: Correct READY_STATUS poll break condition") I failed to conclude that the PHYSTATUS bit of the PCS_STATUS register used in PCIe and USB3 falls as the PHY gets ready. Similar to the prior bug with UFS the code will generally get past the

Re: [PATCH v4 2/2] mmc: Add support for the ASPEED SD controller

2019-08-05 Thread Andrew Jeffery
On Mon, 5 Aug 2019, at 23:08, Adrian Hunter wrote: > On 5/08/19 5:51 AM, Andrew Jeffery wrote: > > Add a minimal driver for ASPEED's SD controller, which exposes two > > SDHCIs. > > > > The ASPEED design implements a common register set for the SDHCIs, and > > moves some of the standard

Re: [PATCH v4 1/6] KVM: Fix leak vCPU's VMCS value into other pCPU

2019-08-05 Thread Wanpeng Li
On Tue, 6 Aug 2019 at 07:17, Paolo Bonzini wrote: > > On 05/08/19 04:03, Wanpeng Li wrote: > > From: Wanpeng Li > > > > After commit d73eb57b80b (KVM: Boost vCPUs that are delivering interrupts), > > a > > five years old bug is exposed. Running ebizzy benchmark in three 80 vCPUs > > VMs > > on

Re: [PATCH] perf pmu-events: Fix the missing "cpu_clk_unhalted.core"

2019-08-05 Thread Jin, Yao
On 7/30/2019 9:43 AM, Jin, Yao wrote: On 7/30/2019 2:16 AM, Andi Kleen wrote: diff --git a/tools/perf/pmu-events/jevents.c b/tools/perf/pmu-events/jevents.c index 1a91a197cafb..d413761621b0 100644 --- a/tools/perf/pmu-events/jevents.c +++ b/tools/perf/pmu-events/jevents.c @@ -453,6 +453,7

Re: [PATCH v2] perf diff: Report noisy for cycles diff

2019-08-05 Thread Jin, Yao
Hi, Any comments for this version? Thanks Jin Yao On 7/25/2019 6:14 AM, Jin Yao wrote: This patch prints the stddev and hist for the cycles diff of program block. It can help us to understand if the cycles diff is noisy or not. This patch is inspired by Andi Kleen's patch

Re: [PATCH net-next v3] net: phy: broadcom: add 1000Base-X support for BCM54616S

2019-08-05 Thread Tao Ren
On 8/5/19 1:45 PM, Heiner Kallweit wrote: > On 04.08.2019 21:22, Vladimir Oltean wrote: >> On Sun, 4 Aug 2019 at 19:07, Heiner Kallweit wrote: >>> >>> On 04.08.2019 17:59, Vladimir Oltean wrote: On Sun, 4 Aug 2019 at 17:52, Andrew Lunn wrote: > >>> The patchset looks better now. But

[PATCH] Input: applespi - use struct_size() helper

2019-08-05 Thread Gustavo A. R. Silva
One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. For example: struct touchpad_protocol { ... struct tp_fingerfingers[0]; };

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

2019-08-05 Thread Saravana Kannan
On Sun, Aug 4, 2019 at 9:56 PM Stephen Rothwell wrote: > > Hi all, > > On Mon, 5 Aug 2019 13:04:03 +1000 Stephen Rothwell > wrote: > > > > After merging the driver-core tree, today's linux-next build (powerpc > > ppc64_defconfig) produced this warning: > > > > drivers/of/platform.c:674:12:

Re: Bisected: Kernel 4.14 + has 3 times higher write IO latency than Kernel 4.4 with raid1

2019-08-05 Thread NeilBrown
On Mon, Aug 05 2019, Jinpu Wang wrote: > Hi Neil, > > For the md higher write IO latency problem, I bisected it to these commits: > > 4ad23a97 MD: use per-cpu counter for writes_pending > 210f7cd percpu-refcount: support synchronous switch to atomic mode. > > Do you maybe have an idea? How can we

[PATCH] coresight: tmc-etr: Fix updating buffer in not-snapshot mode.

2019-08-05 Thread Yabin Cui
TMC etr always copies all available data to perf aux buffer, which may exceed the available space in perf aux buffer. It isn't suitable for not-snapshot mode, because: 1) It may overwrite previously written data. 2) It may make the perf_event_mmap_page->aux_head report having more or less data

[PATCH 03/22] media: entity: Convert media_entity_get_fwnode_pad() args to const

2019-08-05 Thread Steve Longerbeam
The function media_entity_get_fwnode_pad() can be passed the const local_fwnode member from a struct fwnode_endpoint, so the fwnode argument should be a const pointer. Change the direction_flags argument to const in the process. Signed-off-by: Steve Longerbeam --- drivers/media/mc/mc-entity.c |

[PATCH 15/22] media: imx7-media-csi: Create media links in bound notifier

2019-08-05 Thread Steve Longerbeam
Implement a notifier bound op to register media links from the remote sub-device's source pad(s) to the CSI sink pad. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx7-media-csi.c | 24 ++ 1 file changed, 24 insertions(+) diff --git

[PATCH 05/22] media: entity: Add functions to convert fwnode endpoints to media links

2019-08-05 Thread Steve Longerbeam
Adds two functions: media_create_fwnode_pad_links(), which converts fwnode endpoints that connect a local pad to all pads on a remote entity into media links. media_create_fwnode_links(), which converts fwnode endpoints that connect all pads from a local entity to all pads on a remote entity

[PATCH 13/22] media: imx: mipi csi-2: Create media links in bound notifier

2019-08-05 Thread Steve Longerbeam
Implement a notifier bound op to register media links from the remote sub-device's source pad(s) to the mipi csi-2 receiver sink pad. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx6-mipi-csi2.c | 24 ++ 1 file changed, 24 insertions(+) diff --git

[PATCH 14/22] media: imx7-mipi-csis: Create media links in bound notifier

2019-08-05 Thread Steve Longerbeam
Implement a notifier bound op to register media links from the remote sub-device's source pad(s) to the mipi csi-2 receiver sink pad. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx7-mipi-csis.c | 25 ++ 1 file changed, 25 insertions(+) diff --git

[PATCH 10/22] media: st-mipid02: Fix fwnode media link creation

2019-08-05 Thread Steve Longerbeam
mipid02_async_bound() passes the bound subdev's sd->fwnode to media_entity_get_fwnode_pad(). This is likely not an endpoint fwnode as required by media_entity_get_fwnode_pad(), for most subdevices it is the port parent of endpoint fwnode(s). This has only worked before because no entities have

[PATCH 09/22] media: sun6i: Fix fwnode media link creation

2019-08-05 Thread Steve Longerbeam
sun6i_csi_link_entity() passes the bound subdev's sd->fwnode to media_entity_get_fwnode_pad(). This is likely not an endpoint fwnode as required by media_entity_get_fwnode_pad(), for most subdevices it is the port parent of endpoint fwnode(s). This has only worked before because no entities have

[PATCH 19/22] media: imx: csi: Lookup endpoint fwnode with media_entity_get_fwnode_pad

2019-08-05 Thread Steve Longerbeam
Fix the 1:1 port-id:pad-index assumption for the upstream subdevice connected to a CSI via one of the subdevice's pads, by searching the upstream subdevice's endpoints for one that maps to the pad's index, using media_entity_get_fwnode_pad(). This is carried out by a new reverse mapping function

[PATCH 02/22] media: entity: Modify default behavior of media_entity_get_fwnode_pad

2019-08-05 Thread Steve Longerbeam
Modify the default behavior of media_entity_get_fwnode_pad() (when the entity does not provide the get_fwnode_pad op) to first assume the entity implements a 1:1 mapping between fwnode port number and media pad index. If the 1:1 mapping is not valid, e.g. the port number falls outside the

[PATCH 18/22] media: imx: csi: Create media links in bound notifier

2019-08-05 Thread Steve Longerbeam
Implement a notifier bound op to register media links from the remote sub-device's source pad(s) to the CSI sink pad. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-csi.c | 24 +++ 1 file changed, 24 insertions(+) diff --git

[PATCH 21/22] media: imx: Use media_create_fwnode_links for external links

2019-08-05 Thread Steve Longerbeam
The entities external to the i.MX6 IPU and i.MX7 now create the links to their fwnode-endpoint connected entities in their notifier bound callbacks. This should mean that there is no longer a need for the imx-media driver to create these external fwnode-endpoint based links. But the v4l2-async

[PATCH 01/22] media: entity: Pass entity to get_fwnode_pad operation

2019-08-05 Thread Steve Longerbeam
Add a missing pointer to the entity in the media_entity operation get_fwnode_pad. Fixes: ae45cd5efc120 ("[media] media: entity: Add get_fwnode_pad entity operation") Signed-off-by: Steve Longerbeam --- drivers/media/mc/mc-entity.c | 2 +- include/media/media-entity.h | 3 ++- 2 files changed,

[PATCH 12/22] media: video-mux: Create media links in bound notifier

2019-08-05 Thread Steve Longerbeam
Implement a notifier bound op to register media links from the remote sub-device's source pads to all of the video-mux sink pads. Signed-off-by: Steve Longerbeam --- drivers/media/platform/video-mux.c | 24 1 file changed, 24 insertions(+) diff --git

[PATCH 16/22] media: imx: csi: Implement get_fwnode_pad

2019-08-05 Thread Steve Longerbeam
The CSI does not have a 1:1 relationship between fwnode port numbers and pad indexes. In fact the CSI fwnode device is itself a port which is the sink, containing only a single fwnode endpoint. Implement media_entity operation get_fwnode_pad to first verify the given endpoint is the CSI's sink

[PATCH 07/22] media: rcar-csi2: Fix fwnode media link creation

2019-08-05 Thread Steve Longerbeam
rcsi2_notify_bound() passes the bound subdev's match fwnode to media_entity_get_fwnode_pad() to determine the subdev's source pad for creating the media link to it. When the bound subdev is the adv748x-csi2 transmitter, this is in fact correctly the endpoint fwnode. For other subdevices this

[PATCH 20/22] media: imx: Add is_ipu_internal_subdev()

2019-08-05 Thread Steve Longerbeam
Add a convenience inline function that returns true if the given subdevice is one of the i.MX5/6 IPU-internal subdevices. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media.h | 8 1 file changed, 8 insertions(+) diff --git a/drivers/staging/media/imx/imx-media.h

[PATCH 04/22] media: Move v4l2_fwnode_parse_link from v4l2 to driver base

2019-08-05 Thread Steve Longerbeam
There is nothing v4l2-specific about v4l2_fwnode_{parse|put}_link(). Make these functions more generally available by moving them to driver base, with the appropriate name changes to the functions and struct. In the process embed a 'struct fwnode_endpoint' in 'struct fwnode_link' for both sides

[PATCH 06/22] media: adv748x: csi2: Implement get_fwnode_pad

2019-08-05 Thread Steve Longerbeam
If the given endpoint fwnode passed to the .get_fwnode_pad() op is the adv748x-csi2 TXA/TXB source endpoint, return the associated media pad index ADV748X_CSI2_SOURCE. The adv748x-csi2 has no other media pads that are associated with fwnode endpoints. Signed-off-by: Steve Longerbeam ---

[PATCH 08/22] media: cadence: csi2rx: Fix fwnode media link creation

2019-08-05 Thread Steve Longerbeam
csi2rx_async_bound() passes the bound subdev's sd->fwnode to media_entity_get_fwnode_pad(). This is likely not an endpoint fwnode as required by media_entity_get_fwnode_pad(), for most subdevices it is the port parent of endpoint fwnode(s). This has only worked before because no entities have

[PATCH 11/22] media: v4l2-fwnode: Pass notifier to v4l2_async_register_fwnode_subdev()

2019-08-05 Thread Steve Longerbeam
Instead of allocating a notifier in v4l2_async_register_fwnode_subdev(), have the caller provide one. This allows the caller to implement notifier ops (bind, unbind). The caller is now responsible for first initializing its notifier with a call to v4l2_async_notifier_init(). Signed-off-by: Steve

[PATCH 22/22] media: imx: TODO: Remove issues regarding media link creation

2019-08-05 Thread Steve Longerbeam
Remove the TODO items regarding media link creation, these issues are resolved after exporting media link creation to individual entity bound callbacks and the use of media_create_fwnode_links(), media_create_fwnode_pad_links(), and media_entity_get_fwnode_pad(). Signed-off-by: Steve Longerbeam

[PATCH 17/22] media: imx: csi: Embed notifier in struct csi_priv

2019-08-05 Thread Steve Longerbeam
Embed the notifier in 'struct csi_priv', instead of dynamically allocating it, to make it possible to retrieve csi_priv in a notifier callback op. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-csi.c | 25 +-- 1 file changed, 10 insertions(+), 15

Re: [PATCH v7 3/3] PM / wakeup: Show wakeup sources stats in sysfs

2019-08-05 Thread Stephen Boyd
Quoting Tri Vo (2019-08-05 10:58:48) > diff --git a/drivers/base/power/wakeup_stats.c > b/drivers/base/power/wakeup_stats.c > new file mode 100644 > index ..3a4f55028e27 > --- /dev/null > +++ b/drivers/base/power/wakeup_stats.c > @@ -0,0 +1,161 @@ [...] > +/** > + *

Re: [PATCH v4 1/6] KVM: Fix leak vCPU's VMCS value into other pCPU

2019-08-05 Thread Paolo Bonzini
On 05/08/19 04:03, Wanpeng Li wrote: > From: Wanpeng Li > > After commit d73eb57b80b (KVM: Boost vCPUs that are delivering interrupts), a > five years old bug is exposed. Running ebizzy benchmark in three 80 vCPUs VMs > on one 80 pCPUs Skylake server, a lot of rcu_sched stall warning splatting

arch/arm/mach-ep93xx/crunch.c:46:3: warning: this statement may fall through

2019-08-05 Thread kbuild test robot
tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux.git master head: 0eb0ce0a78e1f57082bca6cbdea6fd04feedb876 commit: a035d552a93bb9ef6048733bb9f2a0dc857ff869 Makefile: Globally enable fall-through warning date: 11 days ago config: arm-ep93xx_defconfig (attached

Re: [PATCH] soc: qcom: smp2p: Add of_node_put() at goto

2019-08-05 Thread Bjorn Andersson
On Sun 04 Aug 09:25 PDT 2019, Nishka Dasgupta wrote: > Each iteration of for_each_available_child_of_node puts the previous > node, but in the case of a goto from the middle of the loop, there is no > put, thus causing a memory leak. Hence make the gotos within the loop > first go to a new label

Re: [PATCH RFC] modpost: Support I2C Aliases from OF tables

2019-08-05 Thread Javier Martinez Canillas
Hello Masahiro-san, On 8/1/19 4:17 AM, Masahiro Yamada wrote: > Hi. > > On Thu, Aug 1, 2019 at 4:44 AM Wolfram Sang wrote: >> >> Hi Javier, >> >> thank you for providing the extra information. >> >> (And Kieran, thanks for the patch!) >> >>> The other option is to remove i2c_of_match_device()

[PATCH] ext4: set error return correctly when ext4_htree_store_dirent fails

2019-08-05 Thread Colin King
From: Colin Ian King Currently when the call to ext4_htree_store_dirent fails the error return variable 'ret' is is not being set to the error code and variable count is instead, hence the error code is not being returned. Fix this by assigning ret to the error return code. Addresses-Coverity:

Re: [PATCH v3 00/19] KVM RISC-V Support

2019-08-05 Thread Atish Patra
On Mon, 2019-08-05 at 18:05 +0200, Paolo Bonzini wrote: > On 05/08/19 15:42, Anup Patel wrote: > > This series adds initial KVM RISC-V support. Currently, we are able > > to boot > > RISC-V 64bit Linux Guests with multiple VCPUs. > > > > Few key aspects of KVM RISC-V added by this series are: > >

Re: [PATCH 2/6] dt-bindings: arm: amlogic: add bindings for G12B based S922X SoC

2019-08-05 Thread Rob Herring
On Mon, Aug 5, 2019 at 4:21 PM Rob Herring wrote: > > On Mon, Aug 5, 2019 at 3:46 PM Kevin Hilman wrote: > > > > Neil Armstrong writes: > > > > > Add a specific compatible for the Amlogic G12B family based S922X SoC > > > to differentiate with the A311D SoC from the same family. > > > > > >

Re: [PATCH v3 4/4] arm64: dts/sdm845: Enable FW implemented safe sequence handler on MTP

2019-08-05 Thread Bjorn Andersson
On Wed 12 Jun 00:15 PDT 2019, Vivek Gautam wrote: > Indicate on MTP SDM845 that firmware implements handler to > TLB invalidate erratum SCM call where SAFE sequence is toggled > to achieve optimum performance on real-time clients, such as > display and camera. > > Signed-off-by: Vivek Gautam >

Re: [PATCH RFC] modpost: Support I2C Aliases from OF tables

2019-08-05 Thread Javier Martinez Canillas
Hello Wolfram, On 7/31/19 9:44 PM, Wolfram Sang wrote: > Hi Javier, > > thank you for providing the extra information. > > (And Kieran, thanks for the patch!) > >> The other option is to remove i2c_of_match_device() and don't make OF match >> to fallback to i2c_of_match_device_sysfs(). This is

Re: [PATCH] Makefile: Convert -Wimplicit-fallthrough=3 to just -Wimplicit-fallthrough for clang

2019-08-05 Thread Nathan Chancellor
On Mon, Aug 05, 2019 at 03:11:15PM -0700, Joe Perches wrote: > A compilation -Wimplicit-fallthrough warning was enabled by > commit a035d552a93b ("Makefile: Globally enable fall-through warning") > > Even though clang 10.0.0 does not currently support this warning > without a patch, clang

Re: [PATCH 2/6] dt-bindings: arm: amlogic: add bindings for G12B based S922X SoC

2019-08-05 Thread Rob Herring
On Mon, Aug 5, 2019 at 3:46 PM Kevin Hilman wrote: > > Neil Armstrong writes: > > > Add a specific compatible for the Amlogic G12B family based S922X SoC > > to differentiate with the A311D SoC from the same family. > > > > Signed-off-by: Neil Armstrong > > --- > >

[PATCH 2/3] mm/mempolicy.c: convert put_page() to put_user_page*()

2019-08-05 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[PATCH 1/3] mm/mlock.c: convert put_page() to put_user_page*()

2019-08-05 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[PATCH 3/3] mm/ksm: convert put_page() to put_user_page*()

2019-08-05 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder

[PATCH 0/3] mm/: 3 more put_user_page() conversions

2019-08-05 Thread john . hubbard
From: John Hubbard Hi, Here are a few more mm/ files that I wasn't ready to send with the larger 34-patch set. John Hubbard (3): mm/mlock.c: convert put_page() to put_user_page*() mm/mempolicy.c: convert put_page() to put_user_page*() mm/ksm: convert put_page() to put_user_page*()

Re: [PATCH] MAINTAINERS: Update e-mail address for Andrea Parri

2019-08-05 Thread Paul E. McKenney
On Mon, Aug 05, 2019 at 11:09:28AM -0700, James Bottomley wrote: > On Mon, 2019-08-05 at 10:43 -0700, Paul E. McKenney wrote: > > On Mon, Aug 05, 2019 at 08:23:38AM -0700, James Bottomley wrote: > > > On Mon, 2019-08-05 at 17:15 +0200, Andrea Parri wrote: > > > > > Why don't you also add an entry

Re: [PATCH 1/3] dt-bindings: display: amlogic,meson-dw-hdmi: convert to yaml

2019-08-05 Thread Rob Herring
On Mon, Aug 5, 2019 at 7:43 AM Neil Armstrong wrote: > > Now that we have the DT validation in place, let's convert the device tree > bindings for the Amlogic Synopsys DW-HDMI specifics over to YAML schemas. > > The original example and usage of clock-names uses a reversed "isfr" > and "iahb"

Re: list corruption in deferred_split_scan()

2019-08-05 Thread Yang Shi
On 7/25/19 2:46 PM, Yang Shi wrote: On 7/24/19 2:13 PM, Qian Cai wrote: On Wed, 2019-07-10 at 17:43 -0400, Qian Cai wrote: Running LTP oom01 test case with swap triggers a crash below. Revert the series "Make deferred split shrinker memcg aware" [1] seems fix the issue. You might want to

Re: [PATCH v3] KEYS: trusted: allow module init if TPM is inactive or deactivated

2019-08-05 Thread Jarkko Sakkinen
On Mon, Aug 05, 2019 at 06:44:27PM +0200, Roberto Sassu wrote: > Commit c78719203fc6 ("KEYS: trusted: allow trusted.ko to initialize w/o a > TPM") allows the trusted module to be loaded even if a TPM is not found, to > avoid module dependency problems. > > However, trusted module initialization

Re: [PATCH 10/16] net: phy: adin: add EEE translation layer for Clause 22

2019-08-05 Thread Andrew Lunn
> +static int adin_cl22_to_adin_reg(int devad, u16 cl22_regnum) > +{ > + struct clause22_mmd_map *m; > + int i; > + > + if (devad == MDIO_MMD_VEND1) > + return cl22_regnum; > + > + for (i = 0; i < ARRAY_SIZE(clause22_mmd_map); i++) { > + m = _mmd_map[i]; > +

Re: [PATCH] KEYS: trusted: allow module init if TPM is inactive or deactivated

2019-08-05 Thread Jarkko Sakkinen
On Mon, Aug 05, 2019 at 04:50:35PM +0200, Roberto Sassu wrote: > I also don't think it is a good idea to remove this functionality. > > Jarkko, we were discussing about this issue in another thread, and your > answer then (https://lkml.org/lkml/2019/3/21/396) was that it is a > priority to fix

[PATCH] Makefile: Convert -Wimplicit-fallthrough=3 to just -Wimplicit-fallthrough for clang

2019-08-05 Thread Joe Perches
A compilation -Wimplicit-fallthrough warning was enabled by commit a035d552a93b ("Makefile: Globally enable fall-through warning") Even though clang 10.0.0 does not currently support this warning without a patch, clang currently does not support a value for this option. Link:

Re: [PATCH] dt-bindings: net: meson-dwmac: convert to yaml

2019-08-05 Thread Rob Herring
On Mon, Aug 5, 2019 at 6:26 AM Neil Armstrong wrote: > > Now that we have the DT validation in place, let's convert the device tree > bindings for the Synopsys DWMAC Glue for Amlogic SoCs over to a YAML schemas. > > Signed-off-by: Neil Armstrong > --- > Rob, > > I keep getting : >

Re: [Intel-wired-lan] [PATCH 1/2] ixgbe: Explicitly initialize reference count to 0

2019-08-05 Thread Alexander Duyck
On Mon, Aug 5, 2019 at 2:42 PM Bowers, AndrewX wrote: > > > -Original Message- > > From: Intel-wired-lan [mailto:intel-wired-lan-boun...@osuosl.org] On > > Behalf Of Chuhong Yuan > > Sent: Friday, August 2, 2019 3:55 AM > > Cc: net...@vger.kernel.org; Chuhong Yuan ; linux- > >

Re: [Intel-wired-lan] [PATCH 2/2] ixgbe: Use refcount_t for refcount

2019-08-05 Thread Alexander Duyck
On Fri, Aug 2, 2019 at 6:47 AM Willem de Bruijn wrote: > > On Fri, Aug 2, 2019 at 6:55 AM Chuhong Yuan wrote: > > > > refcount_t is better for reference counters since its > > implementation can prevent overflows. > > So convert atomic_t ref counters to refcount_t. > > > > Also convert refcount

Re: [Intel-wired-lan] [PATCH 2/2] ixgbe: Use refcount_t for refcount

2019-08-05 Thread Willem de Bruijn
On Mon, Aug 5, 2019 at 5:43 PM Bowers, AndrewX wrote: > > > -Original Message- > > From: Intel-wired-lan [mailto:intel-wired-lan-boun...@osuosl.org] On > > Behalf Of Chuhong Yuan > > Sent: Friday, August 2, 2019 3:55 AM > > Cc: net...@vger.kernel.org; Chuhong Yuan ; linux- > >

RE: [Intel-wired-lan] [PATCH][net-next] ice: fix potential infinite loop

2019-08-05 Thread Bowers, AndrewX
> -Original Message- > From: Intel-wired-lan [mailto:intel-wired-lan-boun...@osuosl.org] On > Behalf Of Colin King > Sent: Friday, August 2, 2019 8:52 AM > To: Kirsher, Jeffrey T ; David S . Miller > ; intel-wired-...@lists.osuosl.org; > net...@vger.kernel.org > Cc:

Re: [PATCH 1/6] soc: amlogic: meson-gx-socinfo: add A311D id

2019-08-05 Thread Kevin Hilman
Neil Armstrong writes: > From: Christian Hewitt > > Add the SoC ID for the A311D Amlogic SoC. > > Signed-off-by: Christian Hewitt > Signed-off-by: Neil Armstrong Queued for v5.4, Thanks, Kevin

Re: [PATCH 2/6] dt-bindings: arm: amlogic: add bindings for G12B based S922X SoC

2019-08-05 Thread Kevin Hilman
Neil Armstrong writes: > Add a specific compatible for the Amlogic G12B family based S922X SoC > to differentiate with the A311D SoC from the same family. > > Signed-off-by: Neil Armstrong > --- > Documentation/devicetree/bindings/arm/amlogic.yaml | 1 + > 1 file changed, 1 insertion(+) > >

Re: linux-next: Signed-off-by missing for commit in the net tree

2019-08-05 Thread David Miller
From: Stephen Rothwell Date: Tue, 6 Aug 2019 07:38:25 +1000 > Commit > > c3953a3c2d31 ("NFC: nfcmrvl: fix gpio-handling regression") > > is missing a Signed-off-by from its committer. That has to be the first time that's ever happened to me :-) And indeed as I check my command line history

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