[PATCH v2] PCIE/PME: fix possible use-after-free on remove

2019-03-01 Thread Sven Van Asbroeck
In remove(), ensure that the pme work cannot run after kfree() is called. Otherwise, this could result in a use-after-free. This issue was detected with the help of Coccinelle. Cc: Sinan Kaya Cc: Frederick Lawler Cc: Mika Westerberg Cc: Keith Busch Cc: Rafael J. Wysocki Signed-off-by: Sven V

RE: [PATCH v3] cfi: fix deadloop in cfi_cmdset_0002.c do_write_buffer

2019-03-01 Thread Tokunori Ikegami
Hi Boris-san, > -Original Message- > From: linux-mtd [mailto:linux-mtd-boun...@lists.infradead.org] On Behalf > Of Boris Brezillon > Sent: Saturday, March 2, 2019 1:07 AM > To: Tokunori Ikegami > Cc: 'Tokunori Ikegami'; keesc...@chromium.org; bbrezil...@kernel.org; > ikeg...@allied-telesis

Re: [PATCH 2/2] x86/unwind: add hardcoded ORC entry for NULL

2019-03-01 Thread Jann Horn
On Fri, Mar 1, 2019 at 5:29 PM Josh Poimboeuf wrote: > > On Fri, Mar 01, 2019 at 10:24:18AM -0600, Josh Poimboeuf wrote: > > > Is there a reason why the top-level Makefile only sets > > > -fno-optimize-sibling-calls if CONFIG_FRAME_POINTER is set? > > > I suspect that this is just a historical thi

Re: [PATCH 2/3] dt-bindings: mmc: Add a new property disable-cqe-dcmd.

2019-03-01 Thread Philipp Tomsich
> On 01.03.2019, at 17:43, Christoph Muellner > wrote: > > This patch documents the new proprty disable-cqe-dcmd typo: proprty -> property > for the Arasan eMMC 5.1 driver. > > Signed-off-by: Christoph Muellner > Signed-off-by: Philipp Tomsich > --- > Documentation/devicetree/bindings/mm

[git pull] IOMMU Fixes for Linux v5.0-rc8

2019-03-01 Thread Joerg Roedel
Hi Linus, The following changes since commit 8950dcd83ae7d62bdc2a60507949acebd85399f2: iommu/vt-d: Leave scalable mode default off (2019-01-30 17:23:58 +0100) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git tags/iommu-fix-v5.0-rc8 for y

Re: [PATCH 2/2] arm64: allwinner: a64: Add Oceanic A64-5inMFD initial support

2019-03-01 Thread Jagan Teki
On Fri, Mar 1, 2019 at 8:27 PM Maxime Ripard wrote: > > On Wed, Feb 27, 2019 at 09:49:23PM +0530, Jagan Teki wrote: > > On Wed, Feb 27, 2019 at 9:03 PM Maxime Ripard > > wrote: > > > > > > Hi, > > > > > > On Tue, Feb 26, 2019 at 11:32:40AM +0530, Jagan Teki wrote: > > > > Oceanic A64-5inMFD is a

Re: [PATCH v10 07/12] fs, arm64: untag user pointers in fs/userfaultfd.c

2019-03-01 Thread Catalin Marinas
On Tue, Feb 26, 2019 at 03:39:08PM +0100, Andrey Konovalov wrote: > On Sat, Feb 23, 2019 at 12:06 AM Dave Hansen wrote: > > > > On 2/22/19 4:53 AM, Andrey Konovalov wrote: > > > userfaultfd_register() and userfaultfd_unregister() use provided user > > > pointers for vma lookups, which can only by

Re: [RFC] perf/x86/rapl: Getting zero on energy-cores event

2019-03-01 Thread Liang, Kan
On 3/1/2019 6:42 AM, Jiri Olsa wrote: hi, I'm getting zero counts for energy-cores event on broadwell-x server (model 0x4f) I checked intel_rapl powercap driver and it won't export the counter if it rdmsr returns zero on it the SDM also says the rdmsr returns zero for some models I made cha

Re: [PATCH 1/3] phy: rockchip-emmc: Allow to set drive impedance via DTS.

2019-03-01 Thread Philipp Tomsich
Doug, > On 01.03.2019, at 17:48, Doug Anderson wrote: > > Hi, > > On Fri, Mar 1, 2019 at 7:37 AM Christoph Muellner > wrote: >> >> The rockchip-emmc PHY can be configured with different >> drive impedance values. Currenlty a value of 50 Ohm is >> hard coded into the driver. >> >> This patch

Re: [RFC net-next 1/8] subdev: Introducing subdev bus

2019-03-01 Thread Greg KH
On Fri, Mar 01, 2019 at 04:35:46PM +, Parav Pandit wrote: > Hi Greg, > > > -Original Message- > > From: Greg KH > > Sent: Friday, March 1, 2019 1:17 AM > > To: Parav Pandit > > Cc: net...@vger.kernel.org; linux-kernel@vger.kernel.org; > > michal.l...@markovi.net; da...@davemloft.net;

RE: [PATCH v3] cfi: fix deadloop in cfi_cmdset_0002.c do_write_buffer

2019-03-01 Thread Tokunori Ikegami
> [...] > > In function do_write_buffer(), in the for loop, there is a case > > chip_ready() returns 1 while chip_good() returns 0, so it never break > > the loop. > > To fix this, chip_good() is enough and it should timeout if it stay > > bad for a while. > > > > Fixes:

Re: [PATCH 2/7] MAINTAINERS: Update files for PSCI

2019-03-01 Thread Mark Rutland
On Thu, Feb 28, 2019 at 02:59:14PM +0100, Ulf Hansson wrote: > The files for the PSCI firmware driver were moved to a sub-directory, let's > update MAINTAINERS to reflect that. > > Suggested-by: Mark Rutland > Signed-off-by: Ulf Hansson Acked-by: Mark Rutland Mark. > --- > MAINTAINERS | 2 +

Re: [PATCH 1/7] drivers: firmware: psci: Move psci to separate directory

2019-03-01 Thread Mark Rutland
On Thu, Feb 28, 2019 at 02:59:13PM +0100, Ulf Hansson wrote: > Some following changes extends the PSCI driver with some additional new > files. Let's avoid to continue cluttering the toplevel firmware directory > and first move the PSCI files into a PSCI sub-directory. > > Suggested-by: Mark Rutl

Re: [PATCH v2] usb: core: make default autosuspend delay configurable

2019-03-01 Thread Greg Kroah-Hartman
On Fri, Mar 01, 2019 at 04:43:20PM +, Mans Rullgard wrote: > Make the default autosuspend delay configurable at build time. > This is useful for systems that require a non-standard value as > it avoids relying on the command line being properly set. > > Signed-off-by: Mans Rullgard > --- > Ch

Re: [PATCH 1/2] clk: meson-g12a: add cpu clock bindings

2019-03-01 Thread Martin Blumenstingl
Hi Neil, On Fri, Mar 1, 2019 at 5:43 PM Neil Armstrong wrote: > > Hi Martin, > > On 01/03/2019 16:26, Martin Blumenstingl wrote: > > Hi Neil, > > > > On Fri, Mar 1, 2019 at 11:22 AM Neil Armstrong > > wrote: > >> > >> Add Amlogic G12A Family CPU clocks bindings, only export CPU_CLK since > >> i

Re: [PATCH v2] Documentation/locking/lockdep: Drop last two chars of sample states

2019-03-01 Thread Paul E. McKenney
On Fri, Mar 01, 2019 at 10:40:52AM +0100, Geert Uytterhoeven wrote: > Since the removal of FS_RECLAIM annotations, lockdep states contain four > characters, not six. > > Fixes: e5684bbfc3f03480 ("Documentation/locking/lockdep: Update info about > states") > Fixes: d92a8cfcb37ecd13 ("locking/lockd

Re: [PATCH 3/7] drivers: firmware: psci: Split psci_dt_cpu_init_idle()

2019-03-01 Thread Mark Rutland
On Thu, Feb 28, 2019 at 02:59:15PM +0100, Ulf Hansson wrote: > Let's split the psci_dt_cpu_init_idle() function into two functions. This > makes the code clearer and provides better re-usability. > > Cc: Lina Iyer > Co-developed-by: Lina Iyer > Signed-off-by: Ulf Hansson Acked-by: Mark Rutland

[PATCH] platform/x86: touchscreen_dmi: Add info for the CHUWI Hi10 Air tablet

2019-03-01 Thread me
From: Christian Oder Add touchscreen info for the CHUWUI Hi10 Air tablet. Signed-off-by: Christian Oder --- drivers/platform/x86/touchscreen_dmi.c | 27 ++ 1 file changed, 27 insertions(+) diff --git a/drivers/platform/x86/touchscreen_dmi.c b/drivers/platform/x86/tou

[PATCH v2] arm64: dts: allwinner: a64-amarula-relic: Add STLM75 sensor

2019-03-01 Thread Jagan Teki
Amarula A64 Relic has STLM75 sensor for digital temperature and thermal watchdog. Add support for it. Signed-off-by: Jagan Teki --- Changes for v2: - change node name from temp to sensor - compatible patches applied in linux-next, fyi: https://git.kernel.org/pub/scm/linux/kernel/git/next/l

Re: [PATCH v5 03/10] arm64: add sysfs vulnerability show for meltdown

2019-03-01 Thread Catalin Marinas
On Fri, Mar 01, 2019 at 10:53:50AM -0600, Jeremy Linton wrote: > On 3/1/19 10:20 AM, Catalin Marinas wrote: > > On Fri, Mar 01, 2019 at 10:12:09AM -0600, Jeremy Linton wrote: > > > On 3/1/19 1:11 AM, Andre Przywara wrote: > > > > On 2/26/19 7:05 PM, Jeremy Linton wrote: > > > > > +ssize_t cpu_show_

[PATCH] fuse: Add ioctl flag for compat ioctl with 64-bit time_t

2019-03-01 Thread Ian Abbott
Currently, a CUSE server running on a 64-bit kernel can tell when an ioctl request comes from a process running a 32-bit ABI, but cannot tell whether the requesting process is using legacy IA32 emulation or x32 ABI, for example. In particular, the server does not know the size of the client proces

Re: [PATCH v3 1/2] Provide in-kernel headers for making it easy to extend the kernel

2019-03-01 Thread Joel Fernandes
On Fri, Mar 01, 2019 at 03:25:05PM +0900, Masahiro Yamada wrote: [...] > > > I am guessing the user will run these commands > > > on the target system. > > > In other words, external modules are native-compiled. > > > So, > > > > > > target-arch: arm64 > > > host-arch: arm64 > > > > > > > > >

[PATCH RESEND v3] crypto: caam - add missing put_device() call

2019-03-01 Thread Horia Geantă
From: Wen Yang The of_find_device_by_node() takes a reference to the underlying device structure, we should release that reference. Fixes: 35af64038623 ("crypto: caam - Check for CAAM block presence before registering with crypto layer") Fixes: b189817cf789 ("crypto: caam/qi - add ablkcipher an

RE: [RFC net-next 8/8] net/mlx5: Add subdev driver to bind to subdev devices

2019-03-01 Thread Parav Pandit
> -Original Message- > From: Greg KH > Sent: Friday, March 1, 2019 1:22 AM > To: Parav Pandit > Cc: net...@vger.kernel.org; linux-kernel@vger.kernel.org; > michal.l...@markovi.net; da...@davemloft.net; Jiri Pirko > > Subject: Re: [RFC net-next 8/8] net/mlx5: Add subdev driver to bind

Re: [PATCH v3 1/2] Provide in-kernel headers for making it easy to extend the kernel

2019-03-01 Thread Joel Fernandes
On Fri, Mar 01, 2019 at 04:03:09PM +0900, Masami Hiramatsu wrote: > Hi Joel, > > On Thu, 28 Feb 2019 22:26:11 -0500 > Joel Fernandes wrote: > > > On Fri, Mar 01, 2019 at 11:28:26AM +0900, Masami Hiramatsu wrote: [..] > > There are many usecases for this, I have often run into issues with Linux >

Re: Realtek r8822be kernel module does not negotiate 802.11ac connection

2019-03-01 Thread Larry Finger
On 2/28/19 8:32 PM, David R. Bergstein wrote: Tony, Thanks for your response.  Can you advise as to the availability of the new rtw88 driver?  As it appears to be under development, I could not locate a copy of the code for local compilation. David, Use the command 'git clone http://github.co

Re: [PATCH 7/7] drivers: firmware: psci: Announce support for OS initiated suspend mode

2019-03-01 Thread Stephen Boyd
Quoting Ulf Hansson (2019-02-28 05:59:19) > PSCI firmware v1.0+, supports two different modes for CPU_SUSPEND. The > Platform Coordinated mode, which is the default and mandatory mode, while > support for the OS initiated (OSI) mode is optional. > > In some cases it's interesting for the user/deve

Re: [PATCH 5/7] drivers: firmware: psci: Simplify state node parsing

2019-03-01 Thread Mark Rutland
On Thu, Feb 28, 2019 at 02:59:17PM +0100, Ulf Hansson wrote: > Instead of iterating through all the state nodes in DT, to find out how > many states that needs to be allocated, let's use the number already known > by the cpuidle driver. In this way we can drop the iteration altogether. > > Signed-

Re: Regression: ASoC: soc-core: clear platform pointers on error

2019-03-01 Thread Curtis Malainey
On Fri, Mar 1, 2019 at 4:07 AM Jon Hunter wrote: > > Hi Mark, Curtis, > > I am seeing a regression on -next where the soundcard on one of our > Tegra boards fails to initialise following a probe deferral. The bisect > points to the commit 78a24e10cd94420f1b4e2dc5923ae7109e2aaba1 ('ASoC: > soc-core

Re: [PATCH v5 03/10] arm64: add sysfs vulnerability show for meltdown

2019-03-01 Thread Andre Przywara
Hi, On 3/1/19 10:53 AM, Jeremy Linton wrote: Hi, On 3/1/19 10:20 AM, Catalin Marinas wrote: On Fri, Mar 01, 2019 at 10:12:09AM -0600, Jeremy Linton wrote: On 3/1/19 1:11 AM, Andre Przywara wrote: On 2/26/19 7:05 PM, Jeremy Linton wrote: Display the mitigation status if active, otherwise ass

Re: [PATCH v2 03/10] clk: sunxi-ng: sun50i: Mark the msgbox clock as critical

2019-03-01 Thread Stephen Boyd
Quoting Samuel Holland (2019-02-28 21:29:40) > The msgbox clock is critical because the hardware is shared between > Linux and system firmware. The message box may be used by the EL3 secure > monitor's PSCI implementation. On 64-bit sunxi SoCs, this is provided by > ARM TF-A; 32-bit SoCs use a diff

Re: [PATCH 4/7] ARM/ARM64: cpuidle: Let back-end init ops take the driver as input

2019-03-01 Thread Mark Rutland
On Thu, Feb 28, 2019 at 02:59:16PM +0100, Ulf Hansson wrote: > To allow arch back-end init ops to operate on the cpuidle driver for the > corresponding CPU, let's pass along a pointer to the struct cpuidle_driver* > and forward it the relevant layers of callbacks for ARM/ARM64. > > Following chang

Re: [PATCH 7/7] drivers: firmware: psci: Announce support for OS initiated suspend mode

2019-03-01 Thread Mark Rutland
On Thu, Feb 28, 2019 at 02:59:19PM +0100, Ulf Hansson wrote: > PSCI firmware v1.0+, supports two different modes for CPU_SUSPEND. The > Platform Coordinated mode, which is the default and mandatory mode, while > support for the OS initiated (OSI) mode is optional. > > In some cases it's interestin

Re: [PATCH 1/3] phy: rockchip-emmc: Allow to set drive impedance via DTS.

2019-03-01 Thread Christoph Müllner
Hi Robin, > On 01.03.2019, at 17:51, Robin Murphy wrote: > > On 01/03/2019 15:33, Christoph Muellner wrote: >> The rockchip-emmc PHY can be configured with different >> drive impedance values. Currenlty a value of 50 Ohm is >> hard coded into the driver. >> This patch introduces the DTS property

[PATCH 0/2] meson-nand: two small memory related fixes

2019-03-01 Thread Martin Blumenstingl
While trying to add support for older Meson SoCs to the meson-nand driver I was experiencing a crash in meson_nfc_read_buf(). While trying to find out why that happened I inspected the code in that function and found that there's: - a missing check on the return value of a kzalloc() call - a potent

[PATCH 2/2] mtd: rawnand: meson: fix a potential memory leak in meson_nfc_read_buf

2019-03-01 Thread Martin Blumenstingl
meson_nfc_dma_buffer_setup() is called with the "info" buffer which is allocated a few lines before using kzalloc(). If meson_nfc_dma_buffer_setup() fails we need to free the allocated "info" buffer instead of only freeing it upon success. Fixes: 8fae856c53500a ("mtd: rawnand: meson: add support f

[PATCH 1/2] mtd: rawnand: meson: add missing ENOMEM check in meson_nfc_read_buf()

2019-03-01 Thread Martin Blumenstingl
kzalloc() can return NULL if memory could not be allocated. Check the return value of the kzalloc() call in meson_nfc_read_buf() to make it consistent with other memory allocations within the meson_nand driver. Fixes: 8fae856c53500a ("mtd: rawnand: meson: add support for Amlogic NAND flash contro

Re: [RFT][PATCH 0/2] cpufreq: intel_pstate: Handle _PPC updates on global turbo disable/enable

2019-03-01 Thread Srinivas Pandruvada
On Fri, 2019-03-01 at 13:43 +0100, Rafael J. Wysocki wrote: > Hi All, > > This is how I would fix the issue reported in BZ 200759 (see this > patch series > from Yu too: https://marc.info/?l=linux-pm&m=155137672924029&w=2). > > Patch [1/2] causes intel_pstate to update all policies if it gets a >

Re: [PATCH v3] cfi: fix deadloop in cfi_cmdset_0002.c do_write_buffer

2019-03-01 Thread Boris Brezillon
On Sat, 2 Mar 2019 01:59:41 +0900 "Tokunori Ikegami" wrote: > > [...] > > > In function do_write_buffer(), in the for loop, there is a > > > case chip_ready() returns 1 while chip_good() returns 0, so > > > it never break the loop. > > > To fix this, chip_good() is enough and it

[PATCH] cpu/hotplug: Create SMT sysfs interface for all arches

2019-03-01 Thread Josh Poimboeuf
Make the /sys/devices/system/cpu/smt/* files available on all arches, so user space has a consistent way to detect whether SMT is enabled. The 'control' file now shows 'notsupported' for architectures which don't yet have CONFIG_HOTPLUG_SMT. Signed-off-by: Josh Poimboeuf --- .../ABI/testing/sys

Re: [PATCH v4 03/10] drm/arm/malidp: Set the AFBC register bits if the framebuffer has AFBC modifier

2019-03-01 Thread Liviu Dudau
On Tue, Feb 26, 2019 at 04:20:54PM +, Ayan Halder wrote: > From: Ayan Kumar Halder > > Added the AFBC decoder registers for DP500 , DP550 and DP650. > These registers control the processing of AFBC buffers. It controls various > features like AFBC decoder enable, lossless transformation and b

Re: [PATCH] perf auxtrace: Improve address filter error message when there is no DSO

2019-03-01 Thread Arnaldo Carvalho de Melo
Em Fri, Mar 01, 2019 at 02:29:02PM +0200, Adrian Hunter escreveu: > The message does not indicate the possibility that the symbol is not > found because the file does not exist. > > Before: > > $ perf record -e intel_pt//u --filter 'filter strcmp / strcpy @ foo ' ls > Symbol 'strcmp' not foun

Re: [PATCH RFC] mm/vmscan: try to protect active working set of cgroup from reclaim.

2019-03-01 Thread Johannes Weiner
Hello Andrey, On Fri, Mar 01, 2019 at 01:38:26PM +0300, Andrey Ryabinin wrote: > On 2/26/19 3:50 PM, Andrey Ryabinin wrote: > > On 2/22/19 10:15 PM, Johannes Weiner wrote: > >> On Fri, Feb 22, 2019 at 08:58:25PM +0300, Andrey Ryabinin wrote: > >>> In a presence of more than 1 memory cgroup in the

Re: [PATCH] perf intel-pt: Fix divide by zero

2019-03-01 Thread Arnaldo Carvalho de Melo
Em Fri, Mar 01, 2019 at 12:35:36PM +0200, Adrian Hunter escreveu: > When tsc is not available, "timeless" decoding is used but a divide by > zero occurs if perf_time_to_tsc() is called. Ensure the divisor is not > zero. Thanks, applied. - Arnaldo > Signed-off-by: Adrian Hunter > Cc: sta...@vge

Re: [PATCH 1/8] perf db-export: Add calls parent_id

2019-03-01 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 28, 2019 at 03:00:24PM +0200, Adrian Hunter escreveu: > The call_path can be used to find the parent symbol for a call but not the > exact parent call. To do that add parent_id to the call_return export. This > enables the creation of a call tree from the exported data. Thanks, applied

Will is away until April

2019-03-01 Thread Will Deacon
Hi all, Just to let you know that I've got March off work, so I'll be disconnecting for a month to catch trout and brew beer. Catalin will be handling arm64 fixes, as per the usual pattern. On my return, I will probably Read Mail - Really Fast. See you all at -rc3, Will

Re: [PATCH 2/8] perf scripts python: export-to-sqlite.py: Export calls parent_id

2019-03-01 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 28, 2019 at 03:00:25PM +0200, Adrian Hunter escreveu: > Export to the 'calls' table the newly created 'parent_id'. > > Signed-off-by: Adrian Hunter Thanks, applied. - Arnaldo > --- > tools/perf/scripts/python/export-to-sqlite.py | 12 > 1 file changed, 8 insertions(+)

Re: [PATCH net-next] net: dsa: Do not configure VLAN ID 0

2019-03-01 Thread Florian Fainelli
On 3/1/19 2:34 AM, Michal Vokáč wrote: > On 01. 03. 19 0:49, Florian Fainelli wrote: >> Because we skip the prepare phase, we would not get a chance to have the >> port_vlan_prepare() callback return -EOPNOTSUPP and tell us about that. >> This causes problems with mv88e6xxx which specifically check

Re: [PATCH v4 4/4] hugetlb: allow to free gigantic pages regardless of the configuration

2019-03-01 Thread Mike Kravetz
On 3/1/19 5:21 AM, Alexandre Ghiti wrote: > On 03/01/2019 07:25 AM, Alex Ghiti wrote: >> On 2/28/19 5:26 PM, Mike Kravetz wrote: >>> On 2/28/19 12:23 PM, Dave Hansen wrote: On 2/28/19 11:50 AM, Mike Kravetz wrote: > On 2/28/19 11:13 AM, Dave Hansen wrote: >>> +if (hstate_is_giganti

Re: [PATCH 3/8] perf scripts python: export-to-postgresql.py: Fix invalid input syntax for integer error

2019-03-01 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 28, 2019 at 03:00:26PM +0200, Adrian Hunter escreveu: > Fix SQL query error "invalid input syntax for integer": > > Traceback (most recent call last): > File "tools/perf/scripts/python/export-to-postgresql.py", line 465, in > > do_query(query, 'CREATE VIEW calls_view AS '

Re: [PATCH v2 05/10] drm/arm/malidp:- Define a common list of AFBC format modifiers supported for DP500, DP550 and DP650

2019-03-01 Thread Liviu Dudau
On Tue, Feb 26, 2019 at 04:20:56PM +, Ayan Halder wrote: > From: Ayan Kumar Halder > > We need to define a common list of format modifiers supported by each of > the Mali display processors. > > The following are the constraints with AFBC:- > > 1. AFBC is not supported for the formats defin

Re: [PATCH net-next] net: dsa: Do not configure VLAN ID 0

2019-03-01 Thread Florian Fainelli
On 3/1/19 9:52 AM, Florian Fainelli wrote: [snip] >> Tested-by: Michal Vokáč >> >> I am not sure what was the original problem as I could not find the >> thread where Heiner reported the issue but with the latest version >> next-20190228 I get this error with QCA8334 switch: > > Thanks Michal.

Re: [PATCH 4/8] perf scripts python: export-to-postgresql.py: Export calls parent_id

2019-03-01 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 28, 2019 at 03:00:27PM +0200, Adrian Hunter escreveu: > Export to the 'calls' table the newly created 'parent_id' and create an > index for it. Thanks, applied. - Arnaldo > Signed-off-by: Adrian Hunter > --- > tools/perf/scripts/python/export-to-postgresql.py | 14 +- >

Re: [PATCH v3] f2fs: rebuild nat_bits during umount

2019-03-01 Thread Jaegeuk Kim
On 02/28, Chao Yu wrote: > Ping, > > Could you please try this new version? It's in the queue, and I'll test this after the next pull request. > > On 2019/2/17 6:26, Chao Yu wrote: > > From: Chao Yu > > > > If all free_nat_bitmap are available, we can rebuild nat_bits from > > free_nat_bitmap

Re: [PATCH 5/8] perf scripts python: exported-sql-viewer.py: Factor out TreeWindowBase

2019-03-01 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 28, 2019 at 03:00:28PM +0200, Adrian Hunter escreveu: > Factor out a base class TreeWindowBase from CallGraphWindow, so that > TreeWindowBase can be reused. Thanks, applied. - Arnaldo > Signed-off-by: Adrian Hunter > --- > .../scripts/python/exported-sql-viewer.py | 50 +++

Re: [PATCH v4] f2fs: add bio cache for IPU

2019-03-01 Thread Jaegeuk Kim
On 02/28, Chao Yu wrote: > Ping, Ditto. > > On 2019/2/19 16:15, Chao Yu wrote: > > SQLite in Wal mode may trigger sequential IPU write in db-wal file, after > > commit d1b3e72d5490 ("f2fs: submit bio of in-place-update pages"), we > > lost the chance of merging page in inner managed bio cache, r

Re: [PATCH 6/8] perf scripts python: exported-sql-viewer.py: Improve TreeModel abstraction

2019-03-01 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 28, 2019 at 03:00:29PM +0200, Adrian Hunter escreveu: > Instead of passing the tree root, get it from a method that can be > implemented in any derived class. Thanks, applied. - Arnaldo > Signed-off-by: Adrian Hunter > --- > .../perf/scripts/python/exported-sql-viewer.py | 17 +++

Re: [PATCH 7/8] perf scripts python: exported-sql-viewer.py: Factor out CallGraphModelBase

2019-03-01 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 28, 2019 at 03:00:30PM +0200, Adrian Hunter escreveu: > Factor out a base class CallGraphModelBase from CallGraphModel, so that > CallGraphModelBase can be reused. Thanks, applied. - Arnaldo > Signed-off-by: Adrian Hunter > --- > .../scripts/python/exported-sql-viewer.py | 100

[RFC PATCH 1/2] ceph: factor out ceph_lookup_inode()

2019-03-01 Thread Luis Henriques
This function will be used by __fh_to_dentry and by the quotas code, to find quota realm inodes that are not visible in the mountpoint. The only functional change is that an error is also returned if ceph_mdsc_do_request() fails. Signed-off-by: Luis Henriques --- fs/ceph/export.c | 14 +

[RFC PATCH 0/2] fix quota subdir mounts

2019-03-01 Thread Luis Henriques
Hi! As reported recently in the ceph-users mailing-list[1], the kernel client behaves differently from the fuse client regarding mounting subdirs where quotas are in effect. I've also created a bug to track this issue[2]. The following patches are a possible way of fixing this issue. The perfor

[RFC PATCH 2/2] ceph: quota: fix quota subdir mounts

2019-03-01 Thread Luis Henriques
The CephFS kernel client doesn't enforce quotas that are set in a directory that isn't visible in the mount point. For example, given the path '/dir1/dir2', if quotas are set in 'dir1' and the mount is done in with mount -t ceph ::/dir1/ /mnt then the client can't access the 'dir1' inode from

Re: [PATCH RESEND v3 2/3] drivers: qcom: rpmh-rsc: return if the controller is idle

2019-03-01 Thread Stephen Boyd
Quoting Lina Iyer (2019-02-27 14:29:13) > Hi Stephen, > > On Tue, Feb 26 2019 at 17:49 -0700, Stephen Boyd wrote: > >Quoting Raju P.L.S.S.S.N (2019-02-21 04:18:26) > >> diff --git a/drivers/soc/qcom/rpmh-rsc.c b/drivers/soc/qcom/rpmh-rsc.c > >> index d6b834eeeb37..9cc303e88a06 100644 > >> --- a/dr

[PATCH v7 00/11] crypto: add EC-RDSA (GOST 34.10) algorithm

2019-03-01 Thread Vitaly Chikunov
This patchset changes akcipher API to support ECDSA style signature verification, augments x509 parser to make it work with EC-RDSA certificates, and, finally, implements EC-RDSA (GOST 34.10) signature verification and its integration with IMA. This patchset should be applied over cryptodev commit

[PATCH v7 05/11] KEYS: do not kmemdup digest in {public,tpm}_key_verify_signature

2019-03-01 Thread Vitaly Chikunov
Treat (struct public_key_signature)'s digest same as its signature (s). Since digest should be already in the kmalloc'd memory do not kmemdup digest value before calling {public,tpm}_key_verify_signature. Patch is split from the previous as suggested by Herbert Xu. Suggested-by: David Howells Cc

[PATCH v7 06/11] X.509: parse public key parameters from x509 for akcipher

2019-03-01 Thread Vitaly Chikunov
Some public key algorithms (like EC-DSA) keep in parameters field important data such as digest and curve OIDs (possibly more for different EC-DSA variants). Thus, just setting a public key (as for RSA) is not enough. Append parameters into the key stream for akcipher_set_{pub,priv}_key. Appended

[PATCH v7 09/11] crypto: ecrdsa - add EC-RDSA (GOST 34.10) algorithm

2019-03-01 Thread Vitaly Chikunov
Add Elliptic Curve Russian Digital Signature Algorithm (GOST R 34.10-2012, RFC 7091, ISO/IEC 14888-3) is one of the Russian (and since 2018 the CIS countries) cryptographic standard algorithms (called GOST algorithms). Only signature verification is supported, with intent to be used in the IMA. Su

[PATCH v7 10/11] crypto: ecrdsa - add EC-RDSA test vectors to testmgr

2019-03-01 Thread Vitaly Chikunov
Add testmgr test vectors for EC-RDSA algorithm for every of five supported parameters (curves). Because there are no officially published test vectors for the curves, the vectors are generated by gost-engine. Signed-off-by: Vitaly Chikunov --- crypto/testmgr.c | 6 +++ crypto/testmgr.h | 154 +

[PATCH v7 03/11] crypto: rsa - unimplement sign/verify for raw RSA backends

2019-03-01 Thread Vitaly Chikunov
In preparation for new akcipher verify call remove sign/verify callbacks from RSA backends and make PKCS1 driver call encrypt/decrypt instead. This also complies with the well-known idea that raw RSA should never be used for sign/verify. It only should be used with proper padding scheme such as PK

[PATCH v7 11/11] integrity: support EC-RDSA signatures for asymmetric_verify

2019-03-01 Thread Vitaly Chikunov
Allow to use EC-RDSA signatures for IMA by determining signature type by the hash algorithm name. This works good for EC-RDSA since Streebog and EC-RDSA should always be used together. Cc: Mimi Zohar Cc: Dmitry Kasatkin Cc: linux-integr...@vger.kernel.org Signed-off-by: Vitaly Chikunov --- sec

[PATCH v7 04/11] crypto: akcipher - new verify API for public key algorithms

2019-03-01 Thread Vitaly Chikunov
Previous akcipher .verify() just `decrypts' (using RSA encrypt which is using public key) signature to uncover message hash, which was then compared in upper level public_key_verify_signature() with the expected hash value, which itself was never passed into verify(). This approach was incompatibl

[PATCH v7 08/11] crypto: ecc - make ecc into separate module

2019-03-01 Thread Vitaly Chikunov
ecc.c have algorithms that could be used togeter by ecdh and ecrdsa. Make it separate module. Add CRYPTO_ECC into Kconfig. EXPORT_SYMBOL and document to what seems appropriate. Move structs ecc_point and ecc_curve from ecc_curve_defs.h into ecc.h. No code changes. Signed-off-by: Vitaly Chikunov

[PATCH v7 02/11] crypto: akcipher - check the presence of callback before the call

2019-03-01 Thread Vitaly Chikunov
Because with introduction of EC-RDSA and change in workings of RSA in regard to sign/verify, akcipher could have not all callbacks defined, check the presence of callbacks before calling them to increase robustness. Signed-off-by: Vitaly Chikunov --- include/crypto/akcipher.h | 25 ++

[PATCH v7 01/11] KEYS: report to keyctl only actually supported key ops

2019-03-01 Thread Vitaly Chikunov
Because with the introduction of EC-RDSA and change in workings of RSA in regard to sign/verify, akcipher may have not all callbacks defined, report to keyctl only actually supported ops determined by the presence of the akcipher callbacks. Cc: David Howells Cc: keyri...@vger.kernel.org Signed-of

[PATCH v7 07/11] crypto: Kconfig - create Public-key cryptography section

2019-03-01 Thread Vitaly Chikunov
Group RSA, DH, and ECDH into Public-key cryptography config section. Signed-off-by: Vitaly Chikunov --- crypto/Kconfig | 48 +--- 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/crypto/Kconfig b/crypto/Kconfig index bbab6bf33519..370cbd

Re: [PATCH 1/3] phy: rockchip-emmc: Allow to set drive impedance via DTS.

2019-03-01 Thread Christoph Müllner
Hi Doug, > On 01.03.2019, at 17:48, Doug Anderson wrote: > > Hi, > > On Fri, Mar 1, 2019 at 7:37 AM Christoph Muellner > wrote: >> >> The rockchip-emmc PHY can be configured with different >> drive impedance values. Currenlty a value of 50 Ohm is >> hard coded into the driver. >> >> This pat

Re: [PATCH] cxgb4: fix undefined behavior in mem.c

2019-03-01 Thread Christopher Lameter
On Thu, 28 Feb 2019, Shaobo He wrote: > I think maybe the more problematic issue is that the value of a freed pointer > is intermediate. The pointer is not affected by freeing the data it points to. Thus it definitely has the same value as before and is not indeterminate. The pointer points now

Re: [PATCH 1/3] dt-bindings: mmc: Add DTS property to disable DCMDs on Arasan controllers

2019-03-01 Thread Heiko Stuebner
Am Freitag, 1. März 2019, 17:43:45 CET schrieb Christoph Muellner: > Direct commands (DCMDs) are an optional feature of eMMC 5.1's command > queue engine (CQE). The Arasan eMMC 5.1 controller uses the CQHCI, > which exposes a control register bit to enable the feature. > The current implementation

Re: [PATCH] wusb: Remove unnecessary static function ckhdid_printf

2019-03-01 Thread Nick Desaulniers
On Thu, Feb 28, 2019 at 8:38 PM Joe Perches wrote: > > This static inline is unnecessary and can be removed > by using the vsprintf %ph extension. > > This reduces overall object size by more than 2K. > > Signed-off-by: Joe Perches Deserves a reported by tag from (https://lkml.org/lkml/2019/2/28

Re: [PATCH 1/3] dt-bindings: mmc: Add DTS property to disable DCMDs on Arasan controllers

2019-03-01 Thread Christoph Müllner
> On 01.03.2019, at 19:17, Heiko Stuebner wrote: > > Am Freitag, 1. März 2019, 17:43:45 CET schrieb Christoph Muellner: >> Direct commands (DCMDs) are an optional feature of eMMC 5.1's command >> queue engine (CQE). The Arasan eMMC 5.1 controller uses the CQHCI, >> which exposes a control regis

Re: [PATCH 8/8] perf scripts python: exported-sql-viewer.py: Add call tree

2019-03-01 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 28, 2019 at 03:00:31PM +0200, Adrian Hunter escreveu: > Add a new report to display a call tree. The Call Tree report is very > similar to the Context-Sensitive Call Graph, but the data is not > aggregated. Also the 'Count' column, which would be always 1, is replaced > by the 'Call Tim

Re: Clang warning in drivers/net/ethernet/intel/igc/igc_ethtool.c

2019-03-01 Thread Nick Desaulniers
On Fri, Feb 8, 2019 at 6:34 AM Michal Kubecek wrote: > > On Thu, Feb 07, 2019 at 10:09:21PM -0700, Nathan Chancellor wrote: > > Hi all, > > > > After commit 8c5ad0dae93c ("igc: Add ethtool support"), Clang warns: > > > > drivers/net/ethernet/intel/igc/igc_ethtool.c:9:19: warning: variable > > 'ig

Re: [PATCH 02/15] ARM: bcm: fix a leaked reference by addingmissing of_node_put

2019-03-01 Thread Florian Fainelli
On 3/1/19 12:56 AM, Wen Yang wrote: > The call to of_get_next_child returns a node pointer with refcount > incremented thus it must be explicitly decremented after the last > usage. > > Detected by coccinelle with the following warnings: > ./arch/arm/mach-bcm/board_bcm281xx.c:43:2-8: ERROR: missin

[RFC PATCH nand-next 0/2] meson-nand: support for older SoCs

2019-03-01 Thread Martin Blumenstingl
re details. Can you please help me on this one? I'd like to know whether: - the meson-nand driver works for you on GXL or AXG on linux-next? (I was running these patches on top of next-20190301 on my M8S board which uses a 32-bit Meson8m2 SoC. I don't have any board using a GXL SoC whi

Re: [PATCH] percpu/module resevation: change resevation size iff X86_VSMP is set

2019-03-01 Thread Barret Rhoden
Hi - On 01/21/2019 06:47 AM, Eial Czerwacki wrote: > Your main issue was that you only sent this patch to LKML, but not the maintainers of the file. If you don't, your patch might get lost. To get the appropriate people and lists, run: scripts/get_maintainer.pl YOUR_PATCH.patch. F

[RFC PATCH nand-next 1/2] dt-bindings: nand: meson: add support for more SoCs

2019-03-01 Thread Martin Blumenstingl
Older Amlogic SoCs have a slightly different integration of the NFC (NAND flash controller) than the new ones (GXL, GXM, AXG). On GXL, AXG and newer the "NAND device clock" is shared with sd_emmc_c. This requires muxing the signal of that clock between the sd_emmc_c controller and the NAND control

[RFC PATCH nand-next 2/2] mtd: rawnand: meson: support for older SoCs up to Meson8

2019-03-01 Thread Martin Blumenstingl
This adds support for the following SoCs to the meson-nand driver: - Meson8 (assuming Meson8m2 uses the same IP block revision) - Meson8b - GXBB The clock setup is the only difference between GXL and the older SoCs. Compared to GXL and AXG these older SoCs: - have a dedicated NAND clock instead of

Re: [PATCH V5 1/2] watchdog: imx_sc: Add i.MX system controller watchdog support

2019-03-01 Thread Guenter Roeck
On Fri, Mar 01, 2019 at 06:35:31AM +, Anson Huang wrote: > i.MX8QXP is an ARMv8 SoC which has a Cortex-M4 system controller > inside, the system controller is in charge of controlling power, > clock and watchdog etc.. > > This patch adds i.MX system controller watchdog driver support, > watchd

Re: [PATCH] drm/vkms: Solve bug on kms_crc_cursor tests

2019-03-01 Thread Shayenne Moura
Em sex, 1 de mar de 2019 às 12:26, Ville Syrjälä escreveu: > > On Fri, Mar 01, 2019 at 11:55:11AM -0300, Shayenne Moura wrote: > > Em qui, 28 de fev de 2019 às 11:03, Ville Syrjälä > > escreveu: > > > > > > On Thu, Feb 28, 2019 at 11:11:07AM +0100, Daniel Vetter wrote: > > > > On Mon, Feb 25, 201

Re: [PATCH v10 07/12] fs, arm64: untag user pointers in fs/userfaultfd.c

2019-03-01 Thread Dave Hansen
On 3/1/19 8:59 AM, Catalin Marinas wrote: >>> So, we have to patch all these sites before the tagged values get to the >>> point of hitting the vma lookup functions. Dumb question: Why don't we >>> just patch the vma lookup functions themselves instead of all of these >>> callers? >> That might be

[PATCH net-next v2] net: dsa: Use prepare/commit phase in dsa_slave_vlan_rx_add_vid()

2019-03-01 Thread Florian Fainelli
We were skipping the prepare phase which causes some problems with at least a couple of drivers: - mv88e6xxx chooses to skip programming VID = 0 with -EOPNOTSUPP in the prepare phase, but we would still try to force this VID since we would only call the commit phase and so we would get the dri

[PATCH] net: fixup address-space warnings in compat_mc_{get,set}sockopt()

2019-03-01 Thread Ben Dooks
Add __user attributes in some of the casts in this function to avoid the following sparse warnings: net/compat.c:592:57: warning: cast removes address space of expression net/compat.c:592:57: warning: incorrect type in initializer (different address spaces) net/compat.c:592:57:expected struct

Re: [PATCH 1/3] phy: rockchip-emmc: Allow to set drive impedance via DTS.

2019-03-01 Thread Philipp Tomsich
> On 01.03.2019, at 19:09, Christoph Müllner > wrote: > > Hi Doug, > >> On 01.03.2019, at 17:48, Doug Anderson wrote: >> >> Hi, >> >> On Fri, Mar 1, 2019 at 7:37 AM Christoph Muellner >> wrote: >>> >>> The rockchip-emmc PHY can be configured with different >>> drive impedance values. Cu

Re: [PATCH] drm/vkms: Solve bug on kms_crc_cursor tests

2019-03-01 Thread Ville Syrjälä
On Fri, Mar 01, 2019 at 03:35:35PM -0300, Shayenne Moura wrote: > Em sex, 1 de mar de 2019 às 12:26, Ville Syrjälä > escreveu: > > > > On Fri, Mar 01, 2019 at 11:55:11AM -0300, Shayenne Moura wrote: > > > Em qui, 28 de fev de 2019 às 11:03, Ville Syrjälä > > > escreveu: > > > > > > > > On Thu, Fe

Re: [PATCH] pcie: qcom: Add support for sdm845 PCIe controller

2019-03-01 Thread Bjorn Andersson
On Fri 01 Mar 04:53 PST 2019, Stanimir Varbanov wrote: > Hi Bjorn, > > Thanks for the patch! > > On 2/26/19 9:01 AM, Bjorn Andersson wrote: > > The SDM845 has one Gen2 and one Gen3 controller, add support for these. > > > > Due to lack of hardware only the Gen2 controller has been verified. > >

[PATCH 2/3] auxdisplay: charlcd: simplify init message display

2019-03-01 Thread Mans Rullgard
If CONFIG_PANEL_CHANGE_MESSAGE is set, CONFIG_PANEL_BOOT_MESSAGE will also be defined, so the double ifdef is pointless. Simplify the code further by using an intermediate macro rather duplicating most of the line. Signed-off-by: Mans Rullgard --- drivers/auxdisplay/charlcd.c | 15 -

[PATCH 1/3] auxdisplay: deconfuse configuration

2019-03-01 Thread Mans Rullgard
The auxdisplay Kconfig is confusing. It creates two separate menus even though the settings are closely related. Moreover, the options for setting the boot message depend on CONFIG_PARPORT even though they are used by drivers that do not. Clear up the confustion by moving the "Parallel port LCD/

[PATCH 3/3] auxdisplay: charlcd: make backlight initial state configurable

2019-03-01 Thread Mans Rullgard
The charlcd driver currently flashes the backlight once on init. This may not be desirable. Thus, add options for turning the backlight off or on as well. Signed-off-by: Mans Rullgard --- drivers/auxdisplay/Kconfig | 21 + drivers/auxdisplay/charlcd.c | 10 +- 2 fi

[PATCH v6 2/4] can: m_can: Rename m_can_priv to m_can_classdev

2019-03-01 Thread Dan Murphy
Rename the common m_can_priv class structure to m_can_classdev as this is more descriptive. Signed-off-by: Dan Murphy --- v6 - No changes only rebase changes possibly can squash into the first patch - https://lore.kernel.org/patchwork/patch/1042444/ drivers/net/can/m_can/m_can.c | 94

[PATCH v6 3/4] dt-bindings: can: tcan4x5x: Add DT bindings for TCAN4x5X driver

2019-03-01 Thread Dan Murphy
DT binding documentation for TI TCAN4x5x driver. Signed-off-by: Dan Murphy --- v6 - No changes - https://lore.kernel.org/patchwork/patch/1042445/ .../devicetree/bindings/net/can/tcan4x5x.txt | 37 +++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetre

[PATCH v6 1/4] can: m_can: Create a m_can platform framework

2019-03-01 Thread Dan Murphy
Create a m_can platform framework that peripherial devices can register to and use common code and register sets. The peripherial devices may provide read/write and configuration support of the IP. Signed-off-by: Dan Murphy --- v6 - Squashed platform patch to this patch for bissectablity, fixed

<    1   2   3   4   5   6   7   8   >