[PATCH v9 09/12] mm: Document ZONE_DEVICE memory-model implications

2019-06-05 Thread Dan Williams
Explain the general mechanisms of 'ZONE_DEVICE' pages and list the users of 'devm_memremap_pages()'. Cc: Jonathan Corbet Reported-by: Mike Rapoport Signed-off-by: Dan Williams --- Documentation/vm/memory-model.rst | 39 + 1 file changed, 39 insertions(+)

[PATCH v9 11/12] libnvdimm/pfn: Fix fsdax-mode namespace info-block zero-fields

2019-06-05 Thread Dan Williams
At namespace creation time there is the potential for the "expected to be zero" fields of a 'pfn' info-block to be filled with indeterminate data. While the kernel buffer is zeroed on allocation it is immediately overwritten by nd_pfn_validate() filling it with the current contents of the on-media

[PATCH v9 10/12] mm/devm_memremap_pages: Enable sub-section remap

2019-06-05 Thread Dan Williams
Teach devm_memremap_pages() about the new sub-section capabilities of arch_{add,remove}_memory(). Effectively, just replace all usage of align_start, align_end, and align_size with res->start, res->end, and resource_size(res). The existing sanity check will still make sure that the two separate rem

[PATCH v9 07/12] mm/sparsemem: Prepare for sub-section ranges

2019-06-05 Thread Dan Williams
Prepare the memory hot-{add,remove} paths for handling sub-section ranges by plumbing the starting page frame and number of pages being handled through arch_{add,remove}_memory() to sparse_{add,remove}_one_section(). This is simply plumbing, small cleanups, and some identifier renames. No intended

[PATCH v9 12/12] libnvdimm/pfn: Stop padding pmem namespaces to section alignment

2019-06-05 Thread Dan Williams
Now that the mm core supports section-unaligned hotplug of ZONE_DEVICE memory, we no longer need to add padding at pfn/dax device creation time. The kernel will still honor padding established by older kernels. Reported-by: Jeff Moyer Signed-off-by: Dan Williams --- drivers/nvdimm/pfn.h |

[PATCH v9 06/12] mm: Kill is_dev_zone() helper

2019-06-05 Thread Dan Williams
Given there are no more usages of is_dev_zone() outside of 'ifdef CONFIG_ZONE_DEVICE' protection, kill off the compilation helper. Cc: Michal Hocko Cc: Logan Gunthorpe Acked-by: David Hildenbrand Reviewed-by: Oscar Salvador Reviewed-by: Pavel Tatashin Signed-off-by: Dan Williams --- include

Re: [PATCH v20 15/28] x86/sgx: Add the Linux SGX Enclave Driver

2019-06-05 Thread Sean Christopherson
On Wed, Jun 05, 2019 at 04:25:37PM -0500, Dr. Greg wrote: > On Wed, Jun 05, 2019 at 07:52:19AM -0700, Sean Christopherson wrote: > > Good afternoon to everyone. > > > At this point I don't see the access control stuff impacting the LKM > > decision. > > > > Irrespetive of the access control thin

[PATCH v6 0/4] Fix jack detection for Chromebook Pixel

2019-06-05 Thread Fletcher Woodruff
Headphone/mic jack detection doesn't work on the Chromebook Pixel 2015. This patch changes the irq implementation to support polarity flipping and fixes the configuration code so that correct GPIO pins are read from ACPI. With this series, plugging and unplugging the headphone jack switches betwe

[PATCH v6 1/4] ASoC: rt5677: fall back to DT prop names on error

2019-06-05 Thread Fletcher Woodruff
The rt5677 driver uses ACPI-style property names to read from the device API. However, these do not match the property names in _DSD used on the Chromebook Pixel 2015, which are closer to the Device Tree style. Unify the two functions for reading from the device API so that they try ACPI-style nam

[PATCH v6 2/4] ASoC: rt5677: move jack-detect init to i2c probe

2019-06-05 Thread Fletcher Woodruff
This patch moves the code to select the gpios for jack detection from rt5677_probe to rt5677_init_irq (called from rt5677_i2c_probe). It also sets some registers to fix bugs related to jack detection, and adds some constants and comments to make it easier to understand what certain register settin

[PATCH v6 4/4] ASoC: rt5677: handle concurrent interrupts

2019-06-05 Thread Fletcher Woodruff
From: Ben Zhang The rt5677 driver writes to the IRQ control register within the IRQ handler in order to flip the polarity of the interrupts that have been signalled. If an interrupt fires in the interval between the regmap_read and the regmap_write, it will not trigger a new call to rt5677_irq.

[PATCH v6 3/4] ASoC: rt5677: clear interrupts by polarity flip

2019-06-05 Thread Fletcher Woodruff
From: Ben Zhang The rt5677 jack detection function has a requirement that the polarity of an interrupt be flipped after it fires in order to clear the interrupt. This patch implements an irq_chip with irq_domain directly instead of using regmap-irq, so that interrupt source line polarities can b

linux-next: build failure after merge of the hwmon-fixes tree

2019-06-05 Thread Stephen Rothwell
Hi Guenter, After merging the hwmon-fixes tree, today's linux-next build (x86_64 allmodconfig) failed like this: In file included from include/linux/notifier.h:14, from arch/x86/include/asm/uprobes.h:13, from include/linux/uprobes.h:49, from incl

Re: [PATCH 0/6] watchdog/hpwdt: cleanups and kdump accommodations

2019-06-05 Thread Jerry Hoemann
On Fri, May 17, 2019 at 02:59:37PM -0600, Jerry Hoemann wrote: > First two changes makes hpwdt more generic. > Next two changes make hpwdt work better with kdump. > Hi Guenter, Did you have feedback on this patch set? Thanks Jerry > > Jerry Hoemann (6): > watchdog/hpwdt: Stop hpwdt on unr

[PATCH] firmware: ti_sci: Add support for processor control

2019-06-05 Thread Suman Anna
Texas Instrument's System Control Interface (TI-SCI) Message Protocol is used in Texas Instrument's System on Chip (SoC) such as those in K3 family AM654 SoC to communicate between various compute processors with a central system controller entity. The system controller provides various services i

Re: [PATCH v3 0/6] sched: Add new tracepoints required for EAS testing

2019-06-05 Thread Qais Yousef
On 06/04/19 23:17, Christoph Hellwig wrote: > > The following patches add the bare minimum tracepoints required to perform > > EAS > > testing in Lisa[1]. > > What is EAS? Whhy is "Lisa" not part of the patch submission? > submission. EAS is Energy Aware Scheduling. It was merged in 5.0. Lisa

Re: [PATCH v2 0/4] Read battery voltage from G403 and G900 mice

2019-06-05 Thread Filipe Laíns
On Wed, 2019-06-05 at 15:45 -0400, Pedro Vanzella wrote: > The gaming line of Logitech devices doesn't use the old hidpp20 > feature > for battery level reporting. Instead, they report the current voltage > of the battery, in millivolts. > > This patch set handles this case by adding a quirk to th

Re: [PATCH] ocfs2/dlm: use struct_size() helper

2019-06-05 Thread Joseph Qi
On 19/6/6 04:49, Gustavo A. R. Silva wrote: > 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 dlm_migratable_lockres

Re: linux-next: build failure after merge of the hwmon-fixes tree

2019-06-05 Thread Guenter Roeck
On Thu, Jun 06, 2019 at 08:30:34AM +1000, Stephen Rothwell wrote: > Hi Guenter, > > After merging the hwmon-fixes tree, today's linux-next build > (x86_64 allmodconfig) failed like this: > > In file included from include/linux/notifier.h:14, > from arch/x86/include/asm/uprobes.h:

Re: [PATCH v2 2/3] mmc: core: API for temporarily disabling auto-retuning due to errors

2019-06-05 Thread Doug Anderson
Hi, On Wed, Jun 5, 2019 at 12:54 AM Arend Van Spriel wrote: > > On 6/3/2019 8:37 PM, Douglas Anderson wrote: > > Normally when the MMC core sees an "-EILSEQ" error returned by a host > > controller then it will trigger a retuning of the card. This is > > generally a good idea. > > > > However, i

Re: [PATCH 0/6] watchdog/hpwdt: cleanups and kdump accommodations

2019-06-05 Thread Guenter Roeck
On Wed, Jun 05, 2019 at 04:31:03PM -0600, Jerry Hoemann wrote: > On Fri, May 17, 2019 at 02:59:37PM -0600, Jerry Hoemann wrote: > > First two changes makes hpwdt more generic. > > Next two changes make hpwdt work better with kdump. > > > > Hi Guenter, > > Did you have feedback on this patch set?

[BISECTED REGRESSION] b43legacy broken on G4 PowerBook

2019-06-05 Thread Aaro Koskinen
Hi, When upgrading from v5.0 -> v5.1 on G4 PowerBook, I noticed WLAN does not work anymore: [ 42.004303] b43legacy-phy0: Loading firmware version 0x127, patch level 14 (2005-04-18 02:36:27) [ 42.184837] b43legacy-phy0 debug: Chip initialized [ 42.184873] b43legacy-phy0 ERROR: The machine/k

Re: [PATCH] net: sctp: drop unneeded likely() call around IS_ERR()

2019-06-05 Thread Enrico Weigelt, metux IT consult
On 05.06.19 21:50, Marcelo Ricardo Leitner wrote: On Wed, Jun 05, 2019 at 11:03:27PM +0200, Enrico Weigelt, metux IT consult wrote: From: Enrico Weigelt IS_ERR() already calls unlikely(), so this extra unlikely() call around IS_ERR() is not needed. Signed-off-by: Enrico Weigelt Hi, This

Re: [PATCH 3/3 v2] arm64: dts: qcom: pm8998: Use qcom,pm8998-pon binding for second gen pon

2019-06-05 Thread Bjorn Andersson
On Mon 03 Jun 15:23 PDT 2019, John Stultz wrote: > This changes pm8998 to use the new qcom,pm8998-pon compatible > string for the pon in order to support the gen2 pon > functionality properly. > > Cc: Andy Gross > Cc: David Brown > Cc: Bjorn Andersson > Cc: Amit Pundir > Cc: Rob Herring > Cc

[PATCH] RISC-V: Break load reservations during switch_to

2019-06-05 Thread Palmer Dabbelt
The comment describes why in detail. This was found because QEMU never gives up load reservations, the issue is unlikely to manifest on real hardware. Thanks to Carlos Eduardo for finding the bug! Signed-off-by: Palmer Dabbelt --- arch/riscv/kernel/entry.S | 18 ++ 1 file chang

Re: [PATCH v4 1/2] HID: quirks: Refactor ELAN 400 and 401 handling

2019-06-05 Thread Jeffrey Hugo
On Tue, May 21, 2019 at 10:42 AM Bjorn Andersson wrote: > > On Tue 23 Apr 09:06 PDT 2019, Jeffrey Hugo wrote: > > > There needs to be coordination between hid-quirks and the elan_i2c driver > > about which devices are handled by what drivers. Currently, both use > > whitelists, which results in v

Re: [PATCH V2 03/12] clk: tegra: save and restore PLLs state for system

2019-06-05 Thread Stephen Boyd
Quoting Sowjanya Komatineni (2019-05-31 12:52:44) > > On 5/29/19 4:28 PM, Stephen Boyd wrote: > > Quoting Sowjanya Komatineni (2019-05-28 16:08:47) > >> + WARN_ON(1); > >> + return; > >> + } > >> + > >> + parent_rate = clk_hw_get_rate(parent); > >> + > >> +

Re: [PATCH V3 1/4] dt-bindings: imx: Add clock binding doc for i.MX8MN

2019-06-05 Thread Stephen Boyd
Quoting anson.hu...@nxp.com (2019-06-03 18:59:25) > From: Anson Huang > > Add the clock binding doc for i.MX8MN. > > Signed-off-by: Anson Huang > --- > No changes. > --- > .../devicetree/bindings/clock/imx8mn-clock.txt | 29 +++ Can this be yaml? > include/dt-bindings/clock/imx8mn-clock

Re: [PATCH v2 0/4] Read battery voltage from G403 and G900 mice

2019-06-05 Thread Pedro Vanzella
> On Jun 5, 2019, at 6:24 PM, Filipe Laíns wrote: > >> On Wed, 2019-06-05 at 15:45 -0400, Pedro Vanzella wrote: >> The gaming line of Logitech devices doesn't use the old hidpp20 >> feature >> for battery level reporting. Instead, they report the current voltage >> of the battery, in millivolts

memory leak in vhost_net_ioctl

2019-06-05 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:788a0249 Merge tag 'arc-5.2-rc4' of git://git.kernel.org/p.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15dc9ea6a0 kernel config: https://syzkaller.appspot.com/x/.config?x=d5c73825cbdc7326 da

Re: [PATCH v5 2/3] media: uapi: Add MEDIA_BUS_FMT_RGB888_3X8 media bus format

2019-06-05 Thread Mauro Carvalho Chehab
Em Thu, 6 Jun 2019 00:22:46 +0200 Paul Cercueil escreveu: > This patch adds MEDIA_BUS_FMT_RGB888_3X8, used for the GiantPlus > GPM940B0 24-bit TFT panel, where the RGB components are transferred > sequentially on a 8-bit bus. > > Signed-off-by: Paul Cercueil Looks ok to me. Feel free to apply

Re: [PATCH v10 1/1] Add support for IPMB driver

2019-06-05 Thread Corey Minyard
On Wed, Jun 05, 2019 at 03:09:30PM -0400, Asmaa Mnebhi wrote: > Support receiving IPMB requests on a Satellite MC from the BMC. > Once a response is ready, this driver will send back a response > to the BMC via the IPMB channel. A lot of comments inline. -corey SNIP... > +// SPDX-License-Identif

Re: [PATCH][next] nfp: flower: use struct_size() helper

2019-06-05 Thread David Miller
From: "Gustavo A. R. Silva" Date: Wed, 5 Jun 2019 15:38:27 -0500 > 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 nfp

Re: [PATCH] net: ipv4: drop unneeded likely() call around IS_ERR()

2019-06-05 Thread David Miller
From: "Enrico Weigelt, metux IT consult" Date: Wed, 5 Jun 2019 23:09:05 +0200 > From: Enrico Weigelt > > IS_ERR() already calls unlikely(), so this extra unlikely() call > around IS_ERR() is not needed. > > Signed-off-by: Enrico Weigelt Applied.

Re: [PATCH] net: sctp: drop unneeded likely() call around IS_ERR()

2019-06-05 Thread David Miller
From: "Enrico Weigelt, metux IT consult" Date: Wed, 5 Jun 2019 23:03:27 +0200 > From: Enrico Weigelt > > IS_ERR() already calls unlikely(), so this extra unlikely() call > around IS_ERR() is not needed. > > Signed-off-by: Enrico Weigelt Skipping this because of the overlap...

Re: [PATCH] net: ipv6: drop unneeded likely() call around IS_ERR()

2019-06-05 Thread David Miller
From: "Enrico Weigelt, metux IT consult" Date: Wed, 5 Jun 2019 23:11:34 +0200 > From: Enrico Weigelt > > IS_ERR() already calls unlikely(), so this extra unlikely() call > around IS_ERR() is not needed. > > Signed-off-by: Enrico Weigelt Applied.

Re: [PATCH] drivers: net: vxlan: drop unneeded likely() call around IS_ERR()

2019-06-05 Thread David Miller
From: "Enrico Weigelt, metux IT consult" Date: Wed, 5 Jun 2019 23:19:13 +0200 > From: Enrico Weigelt > > IS_ERR() already calls unlikely(), so this extra likely() call > around the !IS_ERR() is not needed. > > Signed-off-by: Enrico Weigelt Applied.

Re: [PATCH] net: socket: drop unneeded likely() call around IS_ERR()

2019-06-05 Thread David Miller
From: "Enrico Weigelt, metux IT consult" Date: Wed, 5 Jun 2019 22:58:50 +0200 > From: Enrico Weigelt > > IS_ERR() already calls unlikely(), so this extra likely() call > around the !IS_ERR() is not needed. > > Signed-off-by: Enrico Weigelt Applied.

Re: [PATCH] net: openvswitch: drop unneeded likely() call around IS_ERR()

2019-06-05 Thread David Miller
From: "Enrico Weigelt, metux IT consult" Date: Wed, 5 Jun 2019 23:06:40 +0200 > From: Enrico Weigelt > > IS_ERR() already calls unlikely(), so this extra likely() call > around the !IS_ERR() is not needed. > > Signed-off-by: Enrico Weigelt Applied.

Re: [RFC PATCH 6/9] x86/sgx: Require userspace to provide allowed prots to ADD_PAGES

2019-06-05 Thread Sean Christopherson
On Wed, Jun 05, 2019 at 04:10:44AM -0700, Ayoun, Serge wrote: > > From: Christopherson, Sean J > > Sent: Saturday, June 01, 2019 02:32 > > > > /** > > * struct sgx_enclave_add_pages - parameter structure for the > > *%SGX_IOC_ENCLAVE_ADD_PAGES ioctl > > @@ -39,

Re: [v2, PATCH 0/4] complete dwmac-mediatek driver and fix flow control issue

2019-06-05 Thread David Miller
From: Biao Huang Date: Mon, 3 Jun 2019 09:58:02 +0800 > Changes in v2: > > patch#1: there is no extra action in mediatek_dwmac_remove, remove it > >

Re: [PATCH -mm 1/1] signal: simplify set_user_sigmask/restore_user_sigmask

2019-06-05 Thread kbuild test robot
Hi Oleg, I love your patch! Perhaps something to improve: [auto build test WARNING on mmotm/master] url: https://github.com/0day-ci/linux/commits/Oleg-Nesterov/signal-simplify-set_user_sigmask-restore_user_sigmask/20190606-062512 base: git://git.cmpxchg.org/linux-mmotm.git master config: m

Re: [PATCH] ASoC: fsl_esai: fix the channel swap issue after xrun

2019-06-05 Thread Nicolin Chen
Hello Shengjiu, On Wed, Jun 05, 2019 at 10:29:37AM +, S.j. Wang wrote: > > > ETDR is not volatile, if we mark it is volatile, is it correct? > > > > Well, you have a point -- it might not be ideally true, but it sounds like a > > correct fix to me according to this comments. > > > > We can

Re: [PATCH V3 1/2] zpool: Add malloc_support_movable to zpool_driver

2019-06-05 Thread Vitaly Wool
Hi Shakeel, On Wed, Jun 5, 2019 at 6:31 PM Shakeel Butt wrote: > > On Wed, Jun 5, 2019 at 3:06 AM Hui Zhu wrote: > > > > As a zpool_driver, zsmalloc can allocate movable memory because it > > support migate pages. > > But zbud and z3fold cannot allocate movable memory. > > > > Cc: Vitaly thanks

linux-next: manual merge of the hwmon-staging tree with Linus' tree

2019-06-05 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the hwmon-staging tree got a conflict in: drivers/hwmon/nct7904.c between commit: c942fddf8793 ("treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157") from Linus' tree and commit: 7394ec51cf51 ("hwmon: (nct7904) Fix the incorrect value

linux-next: build warnings after merge of the hwmon-staging tree

2019-06-05 Thread Stephen Rothwell
Hi all, After merging the hwmon-staging tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/hwmon/nct7904.c: In function 'nct7904_in_is_visible': drivers/hwmon/nct7904.c:313:6: warning: this statement may fall through [-Wimplicit-fallthrough=] if (channel > 0 &

linux-next: build warning after merge of the hwmon-staging tree

2019-06-05 Thread Stephen Rothwell
Hi all, After merging the hwmon-staging tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/hwmon/pmbus/adm1275.c: In function 'adm1275_write_pmon_config': drivers/hwmon/pmbus/adm1275.c:179:23: warning: unused variable 'data' [-Wunused-variable] struct adm1275_d

Re: [PATCH 0/3] (Qualcomm) UFS device reset support

2019-06-05 Thread Bjorn Andersson
On Wed 05 Jun 02:32 PDT 2019, Avri Altman wrote: > > > > On Tue 04 Jun 22:50 PDT 2019, Avri Altman wrote: > > > > > Hi, > > > > > > > > > > > On Tue, Jun 4, 2019 at 12:22 AM Bjorn Andersson > > > > wrote: > > > > > > > > > > This series exposes the ufs_reset line as a gpio, adds support for >

Re: [PATCH] fs: cifs: drop unneeded likely() call around IS_ERR()

2019-06-05 Thread Enrico Weigelt, metux IT consult
On 05.06.19 21:52, Steve French wrote: This duplicates a patch submitted earlier by Kefeng Wang which I plan to merge later today into cifs-2.6.git for-next Great :) Just ignore my patch. --mtx -- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -

linux-next: manual merge of the v4l-dvb tree with Linus' tree

2019-06-05 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the v4l-dvb tree got conflicts in: drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.h drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_pm.c drive

Re: [PATCH v6 07/10] mm: synchronize access to kmem_cache dying flag using a spinlock

2019-06-05 Thread Roman Gushchin
On Wed, Jun 05, 2019 at 03:02:03PM -0700, Roman Gushchin wrote: > On Wed, Jun 05, 2019 at 12:56:16PM -0400, Johannes Weiner wrote: > > On Tue, Jun 04, 2019 at 07:44:51PM -0700, Roman Gushchin wrote: > > > Currently the memcg_params.dying flag and the corresponding > > > workqueue used for the async

Re: [PATCH 0/6] mailbox: arm_mhu: add support to use in doorbell mode

2019-06-05 Thread Jassi Brar
On Wed, Jun 5, 2019 at 2:46 PM Mark Brown wrote: > > On Tue, Jun 04, 2019 at 10:44:24AM +0100, Sudeep Holla wrote: > > On Mon, Jun 03, 2019 at 08:39:46PM +0100, Mark Brown wrote: > > > > > > It feels like the issues with sharing access to the hardware and with the > > > API for talking to doorbell

Re: [BISECTED REGRESSION] b43legacy broken on G4 PowerBook

2019-06-05 Thread Benjamin Herrenschmidt
On Thu, 2019-06-06 at 01:50 +0300, Aaro Koskinen wrote: > Hi, > > When upgrading from v5.0 -> v5.1 on G4 PowerBook, I noticed WLAN does > not work anymore: > > [ 42.004303] b43legacy-phy0: Loading firmware version 0x127, patch level 14 > (2005-04-18 02:36:27) > [ 42.184837] b43legacy-phy0 de

Re: [RFC PATCH 7/9] x86/sgx: Enforce noexec filesystem restriction for enclaves

2019-06-05 Thread Sean Christopherson
On Wed, Jun 05, 2019 at 06:10:18PM +0300, Jarkko Sakkinen wrote: > On Tue, Jun 04, 2019 at 01:25:10PM -0700, Andy Lutomirski wrote: > > On Tue, Jun 4, 2019 at 9:26 AM Jarkko Sakkinen > > wrote: > > > > > > On Fri, May 31, 2019 at 04:31:57PM -0700, Sean Christopherson wrote: > > > > Do not allow an

[PATCH v2 0/3] (Qualcomm) UFS device reset support

2019-06-05 Thread Bjorn Andersson
This series exposes the ufs_reset line as a gpio, adds support for ufshcd to acquire and toggle this and then adds this to SDM845 MTP. Bjorn Andersson (3): pinctrl: qcom: sdm845: Expose ufs_reset as gpio scsi: ufs: Allow resetting the UFS device arm64: dts: qcom: sdm845-mtp: Specify UFS devi

[PATCH v2 3/3] arm64: dts: qcom: sdm845-mtp: Specify UFS device-reset GPIO

2019-06-05 Thread Bjorn Andersson
Specify the UFS device-reset gpio, so that the controller will issue a reset of the UFS device. Tested-by: John Stultz Signed-off-by: Bjorn Andersson --- Changes since v1: - None arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/

[PATCH v2 1/3] pinctrl: qcom: sdm845: Expose ufs_reset as gpio

2019-06-05 Thread Bjorn Andersson
The ufs_reset pin is expected to be wired to the reset pin of the primary UFS memory but is pretty much just a general purpose output pinr Reorder the pins and expose it as gpio 150, so that the UFS driver can toggle it. Tested-by: John Stultz Signed-off-by: Bjorn Andersson --- Changes since v

[PATCH v2 2/3] scsi: ufs: Allow resetting the UFS device

2019-06-05 Thread Bjorn Andersson
Acquire the device-reset GPIO and toggle this to reset the UFS device during initialization and host reset. Based on downstream support implemented by Subhash Jadavani . Tested-by: John Stultz Signed-off-by: Bjorn Andersson --- Changes since v1: - Added gpio to DT binding document - Fixed spel

Re: [PATCH v2] ARM: dts: Introduce the NXP LS1021A-TSN board

2019-06-05 Thread Shawn Guo
On Thu, May 30, 2019 at 01:12:22AM +0300, Vladimir Oltean wrote: > The LS1021A-TSN is a development board built by VVDN/Argonboards in > partnership with NXP. > > It features the LS1021A SoC and the first-generation SJA1105T Ethernet > switch for prototyping implementations of a subset of IEEE 802

Re: [PATCH v2 0/7] perf diff: diff cycles at basic block level

2019-06-05 Thread Jin, Yao
On 6/5/2019 7:44 PM, Jiri Olsa wrote: On Mon, Jun 03, 2019 at 10:36:10PM +0800, Jin Yao wrote: In some cases small changes in hot loops can show big differences. But it's difficult to identify these differences. perf diff currently can only diff symbols (functions). We can also expand it to

Re: [PATCH -mm 1/1] signal: simplify set_user_sigmask/restore_user_sigmask

2019-06-05 Thread kbuild test robot
Hi Oleg, I love your patch! Perhaps something to improve: [auto build test WARNING on mmotm/master] url: https://github.com/0day-ci/linux/commits/Oleg-Nesterov/signal-simplify-set_user_sigmask-restore_user_sigmask/20190606-062512 base: git://git.cmpxchg.org/linux-mmotm.git master config: s

Re: [BACKPORT 4.4.y] PM / sleep: prohibit devices probing during suspend/hibernation

2019-06-05 Thread Sasha Levin
On Wed, Jun 05, 2019 at 07:14:12PM +0800, Chunyan Zhang wrote: From: "Strashko, Grygorii" [ Upstream commit 013c074f8642d8e815ad670601f8e27155a74b57 ] It is unsafe [1] if probing of devices will happen during suspend or hibernation and system behavior will be unpredictable in this case. So, le

Re: [PATCH] Input: alps: Drop unlikely before IS_ERR(_OR_NULL)

2019-06-05 Thread Kefeng Wang
On 2019/6/5 22:42, Pali Rohár wrote: > On Wednesday 05 June 2019 22:24:28 Kefeng Wang wrote: >> IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag, >> so no need to do that again from its callers. Drop it. > Hi! I already reviewed this patch and rejected it, see: > https://patchwork.ker

Re: [PATCH v7 0/6] Introduced new Cadence USBSS DRD Driver.

2019-06-05 Thread Lars Melin
On 6/5/2019 17:03, Pawel Laszczak wrote: This patch introduces new Cadence USBSS DRD driver to Linux kernel. The Cadence USBSS DRD Driver is a highly configurable IP Core which can be instantiated as Dual-Role Device (DRD), Peripheral Only and Host Only (XHCI)configurations. The driver is not

RE: [PATCH V3 1/4] dt-bindings: imx: Add clock binding doc for i.MX8MN

2019-06-05 Thread Anson Huang
Hi, Stephen > -Original Message- > From: Stephen Boyd > Sent: Thursday, June 6, 2019 7:33 AM > To: Anson Huang ; Abel Vesa > ; Aisheng Dong ; > bjorn.anders...@linaro.org; catalin.mari...@arm.com; > devicet...@vger.kernel.org; dingu...@kernel.org; > enric.balle...@collabora.com; feste...@

Re: [PATCH v2] ARM: dts: Introduce the NXP LS1021A-TSN board

2019-06-05 Thread Vladimir Oltean
On Thu, 6 Jun 2019 at 04:04, Shawn Guo wrote: > > On Thu, May 30, 2019 at 01:12:22AM +0300, Vladimir Oltean wrote: > > The LS1021A-TSN is a development board built by VVDN/Argonboards in > > partnership with NXP. > > > > It features the LS1021A SoC and the first-generation SJA1105T Ethernet > > sw

Re: [PATCH v2 4/7] perf diff: Use hists to manage basic blocks per symbol

2019-06-05 Thread Jin, Yao
On 6/5/2019 7:44 PM, Jiri Olsa wrote: On Mon, Jun 03, 2019 at 10:36:14PM +0800, Jin Yao wrote: SNIP diff --git a/tools/perf/util/sort.h b/tools/perf/util/sort.h index 43623fa..d1641da 100644 --- a/tools/perf/util/sort.h +++ b/tools/perf/util/sort.h @@ -79,6 +79,9 @@ struct hist_entry_diff {

[PATCH v4] KVM: x86: Add Intel CPUID.1F cpuid emulation support

2019-06-05 Thread Like Xu
Add support to expose Intel V2 Extended Topology Enumeration Leaf for some new systems with multiple software-visible die within each package. Because unimplemented and unexposed leaves should be explicitly reported as zero, there is no need to limit cpuid.0.eax to the maximum value of feature con

[PATCH v19 2/3] x86,/proc/pid/arch_status: Add AVX-512 usage elapsed time

2019-06-05 Thread Aubrey Li
AVX-512 components use could cause core turbo frequency drop. So it's useful to expose AVX-512 usage elapsed time as a heuristic hint for the user space job scheduler to cluster the AVX-512 using tasks together. Tensorflow example: $ while [ 1 ]; do cat /proc/tid/arch_status | grep AVX512; sleep 1

[PATCH v19 1/3] proc: add /proc//arch_status

2019-06-05 Thread Aubrey Li
The architecture specific information of the running processes could be useful to the userland. Add /proc//arch_status interface support to examine process architecture specific information externally. v3: Add a /proc//arch_state interface to expose per-task cpu specific state values. v5: Ch

[PATCH v19 3/3] Documentation/filesystems/proc.txt: add arch_status file

2019-06-05 Thread Aubrey Li
Added /proc//arch_status file, and added AVX512_elapsed_ms in /proc//arch_status. Report it in Documentation/filesystems/proc.txt Signed-off-by: Aubrey Li Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Andi Kleen Cc: Tim Chen Cc: Dave Hansen Cc: Arjan van de Ven Cc: Alexey Dobriyan Cc: Andrew

Re: [PATCH v2 4/7] perf diff: Use hists to manage basic blocks per symbol

2019-06-05 Thread Jin, Yao
On 6/5/2019 7:44 PM, Jiri Olsa wrote: On Mon, Jun 03, 2019 at 10:36:14PM +0800, Jin Yao wrote: SNIP sort_compute); } +static int64_t +hist_entry__cmp_cycles_idx(struct perf_hpp_fmt *fmt __maybe_unused, + struct hist_e

[Patch v2] x86/cpu: Add Ice Lake NNPI to Intel family

2019-06-05 Thread Rajneesh Bhardwaj
Add the CPUID model number of Ice Lake Neural Network Processor for Deep Learning Inference (ICL-NNPI) to the Intel family list. Ice Lake NNPI uses model number 0x9D and this will be documented in a future version of Intel Software Development Manual. Cc: Borislav Petkov Cc: Dave Hansen Cc: Andy

Re: [RESEND PATCH v3] KVM: x86: Add Intel CPUID.1F cpuid emulation support

2019-06-05 Thread Like Xu
On 2019/6/4 3:18, Sean Christopherson wrote: On Mon, Jun 03, 2019 at 06:56:17PM +0200, Radim Krčmář wrote: + break; + } entry->eax = min(entry->eax, (u32)(f_intel_pt ? 0x14 : 0xd)); Similarly in the existing code. If we don't have f_intel_pt

Re: [PATCH v4 17/18] kernel/sysctl-test: Add null pointer test for sysctl.c:proc_dointvec()

2019-06-05 Thread Iurii Zaikin
On Fri, May 17, 2019 at 11:22 AM Stephen Boyd wrote: > > Quoting Brendan Higgins (2019-05-14 15:17:10) > > diff --git a/kernel/sysctl-test.c b/kernel/sysctl-test.c > > new file mode 100644 > > index 0..fe0f2bae66085 > > --- /dev/null > > +++ b/kernel/sysctl-test.c > > @@ -0,0 +1,293 @@

[PATCH V4 3/4] clk: imx: Add support for i.MX8MN clock driver

2019-06-05 Thread Anson . Huang
From: Anson Huang This patch adds i.MX8MN clock driver support. Signed-off-by: Anson Huang --- No changes. --- drivers/clk/imx/Kconfig | 6 + drivers/clk/imx/Makefile | 1 + drivers/clk/imx/clk-imx8mn.c | 630 +++ 3 files changed, 637 insert

[PATCH V4 4/4] arm64: defconfig: Select CONFIG_CLK_IMX8MN by default

2019-06-05 Thread Anson . Huang
From: Anson Huang Enable CONFIG_CLK_IMX8MN to support i.MX8MN clock driver. Signed-off-by: Anson Huang --- No changes. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 8d4f25c..ae17f45 100644

[PATCH V4 1/4] dt-bindings: imx: Add clock binding doc for i.MX8MN

2019-06-05 Thread Anson . Huang
From: Anson Huang Add the clock binding doc for i.MX8MN. Signed-off-by: Anson Huang --- Changes since V3: - switch binding doc from .txt to .yaml. --- .../devicetree/bindings/clock/imx8mn-clock.yaml| 115 +++ include/dt-bindings/clock/imx8mn-clock.h | 215

[PATCH V4 2/4] clk: imx8mm: Make 1416X/1443X PLL macro definitions common for usage

2019-06-05 Thread Anson . Huang
From: Anson Huang 1416X/1443X PLL are used on i.MX8MM and i.MX8MN and maybe other i.MX8M series SoC later, the macro definitions of these PLLs' initialization should be common for usage. Signed-off-by: Anson Huang --- No changes. --- drivers/clk/imx/clk-imx8mm.c | 17 - drivers

linux-next: manual merge of the net-next tree with the bpf tree

2019-06-05 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: tools/testing/selftests/bpf/Makefile between commit: 25a7991c84f6 ("selftests/bpf: move test_lirc_mode2_user to TEST_GEN_PROGS_EXTENDED") from the bpf tree and commit: 2d2a3ad872f8 ("selftests/bpf: add btf_dump BT

Re: [PATCH] scsi: libsas, lldds: Use dev_is_expander()

2019-06-05 Thread Jason Yan
On 2019/6/6 0:12, John Garry wrote: Many times in libsas, and in LLDDs which use libsas, the check for an expander device is re-implemented or open coded. Use dev_is_expander() instead. We rename this from sas_dev_type_is_expander() to not spill so many lines in referencing. Signed-off-by: J

Re: [PATCH v2] ARM: dts: Introduce the NXP LS1021A-TSN board

2019-06-05 Thread Shawn Guo
On Thu, Jun 06, 2019 at 04:15:00AM +0300, Vladimir Oltean wrote: > On Thu, 6 Jun 2019 at 04:04, Shawn Guo wrote: > > > > On Thu, May 30, 2019 at 01:12:22AM +0300, Vladimir Oltean wrote: > > > The LS1021A-TSN is a development board built by VVDN/Argonboards in > > > partnership with NXP. > > > > >

Re: [PATCH net-next] net: Drop unlikely before IS_ERR(_OR_NULL)

2019-06-05 Thread Kefeng Wang
On 2019/6/6 0:13, Jesse Brandeburg wrote: > On Wed, 5 Jun 2019 22:24:26 +0800 Kefeng wrote: >> IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag, >> so no need to do that again from its callers. Drop it. >> > > >> segs = __skb_gso_segment(skb, features, false); >> -if (unlike

[PATCH RFC 03/10] mm/gup: Pass flags down to __gup_device_huge* calls

2019-06-05 Thread ira . weiny
From: Ira Weiny In order to support checking for a layout lease on a FS DAX inode these calls need to know if FOLL_LONGTERM was specified. Prepare for this with this patch. Signed-off-by: Ira Weiny --- mm/gup.c | 26 +- 1 file changed, 17 insertions(+), 9 deletions(-)

[PATCH RFC 01/10] fs/locks: Add trace_leases_conflict

2019-06-05 Thread ira . weiny
From: Ira Weiny Signed-off-by: Ira Weiny --- fs/locks.c | 20 ++- include/trace/events/filelock.h | 35 + 2 files changed, 50 insertions(+), 5 deletions(-) diff --git a/fs/locks.c b/fs/locks.c index ec1e4a5df629..0cc2b9f30e22

[PATCH RFC 04/10] mm/gup: Ensure F_LAYOUT lease is held prior to GUP'ing pages

2019-06-05 Thread ira . weiny
From: Ira Weiny On FS DAX files users must inform the file system they intend to take long term GUP pins on the file pages. Failure to do so should result in an error. Ensure that a F_LAYOUT lease exists at the time the GUP call is made. If not return EPERM. Signed-off-by: Ira Weiny --- fs/l

[PATCH RFC 10/10] mm/gup: Remove FOLL_LONGTERM DAX exclusion

2019-06-05 Thread ira . weiny
From: Ira Weiny Now that there is a mechanism for users to safely take LONGTERM pins on FS DAX pages, remove the FS DAX exclusion from GUP with FOLL_LONGTERM. Special processing remains in effect for CONFIG_CMA Signed-off-by: Ira Weiny --- mm/gup.c | 78 ++-

[PATCH RFC 08/10] fs/xfs: Teach xfs to use new dax_layout_busy_page()

2019-06-05 Thread ira . weiny
From: Ira Weiny dax_layout_busy_page() can now operate on a sub-range of the address_space provided. Have xfs specify the sub range to dax_layout_busy_page() Signed-off-by: Ira Weiny --- fs/xfs/xfs_file.c | 19 +-- fs/xfs/xfs_inode.h | 5 +++-- fs/xfs/xfs_ioctl.c | 15 ++

[PATCH RFC 09/10] fs/xfs: Fail truncate if pages are GUP pinned

2019-06-05 Thread ira . weiny
From: Ira Weiny If pages are actively gup pinned fail the truncate operation. To support an application who wishes to removing a pin upon SIGIO reception we must change the order of breaking layout leases with respect to DAX layout leases. Check for a GUP pin on the page being truncated and ret

[PATCH RFC 05/10] fs/ext4: Teach ext4 to break layout leases

2019-06-05 Thread ira . weiny
From: Ira Weiny ext4 needs to break a layout lease if it is held to inform a user holding a layout lease that a truncate is about to happen. This allows the user knowledge of, and choice in how to handle, some other thread attempting to modify a file they are actively using. Split out the logic

[PATCH RFC 02/10] fs/locks: Export F_LAYOUT lease to user space

2019-06-05 Thread ira . weiny
From: Ira Weiny GUP longterm pins of non-pagecache file system pages (eg FS DAX) are currently disallowed because they are unsafe. The danger for pinning these pages comes from the fact that hole punch and/or truncate of those files results in the pages being mapped and pinned by a user space pr

[PATCH RFC 07/10] fs/ext4: Fail truncate if pages are GUP pinned

2019-06-05 Thread ira . weiny
From: Ira Weiny If pages are actively gup pinned fail the truncate operation. Signed-off-by: Ira Weiny --- fs/ext4/inode.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 75f543f384e4..1ded83ec08c0 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.

[PATCH RFC 00/10] RDMA/FS DAX truncate proposal

2019-06-05 Thread ira . weiny
From: Ira Weiny ... V1,000,000 ;-) Pre-requisites: John Hubbard's put_user_pages() patch series.[1] Jan Kara's ext4_break_layouts() fixes[2] Based on the feedback from LSFmm and the LWN article which resulted. I've decided to take a slightly different tack on this problem. T

[PATCH RFC 06/10] fs/ext4: Teach dax_layout_busy_page() to operate on a sub-range

2019-06-05 Thread ira . weiny
From: Ira Weiny Callers of dax_layout_busy_page() are only rarely operating on the entire file of concern. Teach dax_layout_busy_page() to operate on a sub-range of the address_space provided. Specifying 0 - ULONG_MAX however, will continue to operate on the "entire file" and XFS is split out t

Re: [PATCH v2 4/7] perf diff: Use hists to manage basic blocks per symbol

2019-06-05 Thread Jin, Yao
On 6/5/2019 7:44 PM, Jiri Olsa wrote: On Mon, Jun 03, 2019 at 10:36:14PM +0800, Jin Yao wrote: SNIP data__for_each_file_new(i, d) { pair = get_pair_data(he, d); if (!pair) @@ -510,6 +683,9 @@ static void hists__precompute(struc

[PATCH v2 0/3] MSM8998 GPUCC Support

2019-06-05 Thread Jeffrey Hugo
The Adreno GPU on MSM8998 has its own clock controller, which is a dependency for bringing up the GPU. This series gets the gpucc all in place as another step on the road to getting the GPU enabled. v2: -drop desd code Jeffrey Hugo (3): dt-bindings: clock: Document gpucc for msm8998 clk: qco

[PATCH] staging: rtl8723bs: CleanUp to remove the error reported by checkpatch

2019-06-05 Thread Shobhit Kukreti
Cleaned up the code to remove the error "(foo*)" should be "(foo *)" reported by checkpatch from the file rtl8723bs/os_dep/ioctl_linux.c Signed-off-by: Shobhit Kukreti --- drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 32 +- 1 file changed, 16 insertions(+), 16 deletio

Re: [PATCH v2] ARM: config: Remove left-over BACKLIGHT_LCD_SUPPORT

2019-06-05 Thread Shawn Guo
On Tue, Jun 04, 2019 at 09:24:21AM +0200, Krzysztof Kozlowski wrote: > The CONFIG_BACKLIGHT_LCD_SUPPORT was removed in commit 8c5dc8d9f19c > ("video: backlight: Remove useless BACKLIGHT_LCD_SUPPORT kernel > symbol"). Options protected by CONFIG_BACKLIGHT_LCD_SUPPORT are now > available directly. >

[PATCH v2 1/3] dt-bindings: clock: Document gpucc for msm8998

2019-06-05 Thread Jeffrey Hugo
The GPU for msm8998 has its own clock controller. Document it. Signed-off-by: Jeffrey Hugo --- .../devicetree/bindings/clock/qcom,gpucc.txt | 4 ++- .../dt-bindings/clock/qcom,gpucc-msm8998.h| 29 +++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 inc

[PATCH v2 2/3] clk: qcom: Add MSM8998 GPU Clock Controller (GPUCC) driver

2019-06-05 Thread Jeffrey Hugo
The GPUCC manages the clocks for the Adreno GPU found on MSM8998. Signed-off-by: Jeffrey Hugo --- drivers/clk/qcom/Kconfig | 8 + drivers/clk/qcom/Makefile| 1 + drivers/clk/qcom/gpucc-msm8998.c | 356 +++ 3 files changed, 365 insertions(+) create

<    3   4   5   6   7   8   9   10   >