Re: [PATCH v3 0/3] net: fddi: skfp: Use PCI generic definitions instead of private duplicates

2019-06-21 Thread Shuah Khan
On 6/21/19 9:20 AM, Alan Cox wrote: On Fri, 21 Jun 2019 15:16:04 +0530 Puranjay Mohan wrote: This patch series removes the private duplicates of PCI definitions in favour of generic definitions defined in pci_regs.h. Why bother ? It's an ancient obsolete card ? Do you even have one to test

Re: [RFC][PATCH] module: Propagate MODULE_STATE_COMING notifier errors

2019-06-21 Thread Jessica Yu
+++ Peter Zijlstra [19/06/19 13:23 +0200]: On Wed, Jun 19, 2019 at 01:12:12PM +0200, Miroslav Benes wrote: > @@ -3780,7 +3781,7 @@ static int load_module(struct load_info *info, const char __user *uargs, > >err = prepare_coming_module(mod); >if (err) > - goto bug_cleanup; > +

Re: [PATCH v4 5/5] uprobe: collapse THP pmd after removing all uprobes

2019-06-21 Thread Song Liu
> On Jun 21, 2019, at 6:45 AM, Song Liu wrote: > > > >> On Jun 21, 2019, at 6:36 AM, Kirill A. Shutemov wrote: >> >> On Fri, Jun 21, 2019 at 01:17:05PM +, Song Liu wrote: >>> >>> On Jun 21, 2019, at 5:48 AM, Kirill A. Shutemov wrote: On Thu, Jun 13, 2019 at

KASAN: slab-out-of-bounds Write in validate_chain

2019-06-21 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:abf02e29 Merge tag 'pm-5.2-rc6' of git://git.kernel.org/pu.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16894709a0 kernel config: https://syzkaller.appspot.com/x/.config?x=28ec3437a5394ee0

Re: [PATCH][next] lkdtm: remove redundant initialization of ret

2019-06-21 Thread Kees Cook
On Fri, Jun 21, 2019 at 04:05:09PM +0200, Greg Kroah-Hartman wrote: > On Fri, Jun 21, 2019 at 04:03:47PM +0200, Greg Kroah-Hartman wrote: > > On Fri, Jun 14, 2019 at 10:43:11AM +0100, Colin King wrote: > > > From: Colin Ian King > > > > > > The variable ret is being initialized with the value

[PATCH net-next] net: macb: use NAPI_POLL_WEIGHT

2019-06-21 Thread Antoine Tenart
Use NAPI_POLL_WEIGHT, the default NAPI poll() weight instead of redefining our own value (which turns out to be 64 as well). Signed-off-by: Antoine Tenart --- drivers/net/ethernet/cadence/macb_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[GIT PULL 4/4] intel_th: pci: Add Ice Lake NNPI support

2019-06-21 Thread Alexander Shishkin
This adds Ice Lake NNPI support to the Intel(R) Trace Hub. Signed-off-by: Alexander Shishkin Reviewed-by: Andy Shevchenko --- drivers/hwtracing/intel_th/pci.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/hwtracing/intel_th/pci.c b/drivers/hwtracing/intel_th/pci.c index

[GIT PULL 3/4] intel_th: msu: Fix single mode with disabled IOMMU

2019-06-21 Thread Alexander Shishkin
Commit 4e0eaf239fb3 ("intel_th: msu: Fix single mode with IOMMU") switched the single mode code to use dma mapping pages obtained from the page allocator, but with IOMMU disabled, that may lead to using SWIOTLB bounce buffers and without additional sync'ing, produces empty trace buffers. Fix this

[GIT PULL 2/4] intel_th: msu: Remove set but not used variable 'last'

2019-06-21 Thread Alexander Shishkin
From: YueHaibing Commit aad14ad3cf3a ("intel_th: msu: Add current window tracking") added the following gcc warning: > drivers/hwtracing/intel_th/msu.c: In function msc_win_switch: > drivers/hwtracing/intel_th/msu.c:1389:21: warning: variable last set but > not used [-Wunused-but-set-variable]

[GIT PULL 1/4] intel_th: msu: Fix unused variable warning on arm64 platform

2019-06-21 Thread Alexander Shishkin
From: Shaokun Zhang Commit ba39bd8306057 ("intel_th: msu: Switch over to scatterlist") introduced the following warnings on non-x86 architectures, as a result of reordering the multi mode buffer allocation sequence: > drivers/hwtracing/intel_th/msu.c: In function ‘msc_buffer_win_alloc’: >

[GIT PULL 0/4] intel_th: Fixes for v5.2

2019-06-21 Thread Alexander Shishkin
pulling or applying. Thanks! The following changes since commit a188339ca5a396acc588e5851ed7e19f66b0ebd9: Linux 5.2-rc1 (2019-05-19 15:47:09 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/ash/stm.git tags/intel_th-fixes-for-greg-20190621 for you

[RFC PATCH 07/11] dt-bindings: tracing: Add ftrace binding document

2019-06-21 Thread Masami Hiramatsu
Add a devicetree binding document for ftrace node. Signed-off-by: Masami Hiramatsu --- .../devicetree/bindings/tracing/ftrace.yaml| 170 1 file changed, 170 insertions(+) create mode 100644 Documentation/devicetree/bindings/tracing/ftrace.yaml diff --git

[RFC PATCH 11/11] tracing: of: Add synthetic event support

2019-06-21 Thread Masami Hiramatsu
Add synthetic event node support. The synthetic event node must be a child node of ftrace node, and the node must start with "synth@" prefix. The synth node requires fields string (not string array), which defines the fields as same as tracing/synth_events interface. Signed-off-by: Masami

[RFC PATCH 10/11] tracing: of: Add kprobe event support

2019-06-21 Thread Masami Hiramatsu
Add kprobe event support in event node. User can add probe definitions by "probes" property as a string array. Signed-off-by: Masami Hiramatsu --- kernel/trace/trace_kprobe.c |5 +++ kernel/trace/trace_of.c | 65 --- 2 files changed, 60

[RFC PATCH 08/11] tracing: of: Add setup tracing by devicetree support

2019-06-21 Thread Masami Hiramatsu
Setup tracing options by devicetree instead of kernel parameters. Since the kernel parameter is limited length, sometimes there is no space to setup the tracing options. This will read the tracing options from devicetree "ftrace" node and setup tracers at boot. Note that this is not replacing

[RFC PATCH 09/11] tracing: of: Add trace event settings

2019-06-21 Thread Masami Hiramatsu
Add per-event settings, which includes filter and actions. Signed-off-by: Masami Hiramatsu --- kernel/trace/trace_events_trigger.c |2 - kernel/trace/trace_of.c | 81 +++ 2 files changed, 82 insertions(+), 1 deletion(-) diff --git

Re: [PATCH] s390/cio: introduce driver_override on the css bus

2019-06-21 Thread Sebastian Ott
On Thu, 13 Jun 2019, Cornelia Huck wrote: > Sometimes, we want to control which of the matching drivers > binds to a subchannel device (e.g. for subchannels we want to > handle via vfio-ccw). > > For pci devices, a mechanism to do so has been introduced in > 782a985d7af2 ("PCI: Introduce new

[RFC PATCH 05/11] tracing: Accept different type for synthetic event fields

2019-06-21 Thread Masami Hiramatsu
Make the synthetic event accepts a different type field to record. However, the size and signed flag must be same. Signed-off-by: Masami Hiramatsu --- kernel/trace/trace_events_hist.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/kernel/trace/trace_events_hist.c

[RFC PATCH 06/11] tracing: Add NULL trace-array check in print_synth_event()

2019-06-21 Thread Masami Hiramatsu
Add NULL trace-array check in print_synth_event(), because if we enable tp_printk option, iter->tr can be NULL. Signed-off-by: Masami Hiramatsu --- kernel/trace/trace_events_hist.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/trace_events_hist.c

Re: [RFC][PATCH] module: Propagate MODULE_STATE_COMING notifier errors

2019-06-21 Thread Jessica Yu
+++ Miroslav Benes [19/06/19 13:12 +0200]: On Mon, 17 Jun 2019, Peter Zijlstra wrote: Some module notifiers; such as jump_label_module_notifier(), tracepoint_module_notify(); can fail the MODULE_STATE_COMING callback (due to -ENOMEM for example). However module.c:prepare_coming_module()

[RFC PATCH 03/11] tracing: Expose EXPORT_SYMBOL_GPL symbol

2019-06-21 Thread Masami Hiramatsu
Since ftrace_set_clr_event is already exported by EXPORT_SYMBOL_GPL, it should not be static. Signed-off-by: Masami Hiramatsu --- kernel/trace/trace_events.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index

[RFC PATCH 04/11] tracing: kprobes: Register to dynevent earlier stage

2019-06-21 Thread Masami Hiramatsu
Register kprobe event to dynevent in subsys_initcall level. This will allow kernel to register new kprobe events in fs_initcall level via trace_run_command. Signed-off-by: Masami Hiramatsu --- kernel/trace/trace_kprobe.c | 19 +++ 1 file changed, 15 insertions(+), 4

[RFC PATCH 02/11] tracing: kprobes: Output kprobe event to printk buffer

2019-06-21 Thread Masami Hiramatsu
Since kprobe-events use event_trigger_unlock_commit_regs() directly, that events doesn't show up in printk buffer if "tp_printk" is set. Use trace_event_buffer_commit() in kprobe events so that it can invoke output_printk() as same as other trace events. Signed-off-by: Masami Hiramatsu ---

[RFC PATCH 00/11] tracing: of: Boot time tracing using devicetree

2019-06-21 Thread Masami Hiramatsu
Hi, Here is an RFC series of patches to add boot-time tracing using devicetree. Currently, kernel support boot-time tracing using kernel command-line parameters. But that is very limited because of limited expressions and limited length of command line. Recently, useful features like histogram,

[RFC PATCH 01/11] tracing: Apply soft-disabled and filter to tracepoints printk

2019-06-21 Thread Masami Hiramatsu
Apply soft-disabled and the filter rule of the trace events to the printk output of tracepoints (a.k.a. tp_printk kernel parameter) as same as trace buffer output. Signed-off-by: Masami Hiramatsu --- kernel/trace/trace.c |7 +++ 1 file changed, 7 insertions(+) diff --git

Re: selftests: bpf: test_libbpf.sh failed at file test_l4lb.o

2019-06-21 Thread Dan Rue
On Thu, Jun 20, 2019 at 10:17:04PM -0700, Andrii Nakryiko wrote: > On Thu, Jun 20, 2019 at 1:08 AM Naresh Kamboju > wrote: > > > > selftests: bpf test_libbpf.sh failed running Linux -next kernel > > 20190618 and 20190619. > > > > Here is the log from x86_64, > > # selftests bpf test_libbpf.sh > >

Re: [PATCH] arm64: dts: mt8183: Enable CPU idle-states

2019-06-21 Thread Matthias Brugger
On 29/05/2019 10:25, James Liao wrote: > Enable mcdi-cpu and mcdi-cluster on MT8183 CPUs. > > Signed-off-by: James Liao Would you mind to rebase and resend? Regards, Matthias > --- > This patch bases on v5.1-rc1 and [1], adds idle-states for MT8183 CPUs. > > [1]

[PATCH] mips/kprobes: Export kprobe_fault_handler()

2019-06-21 Thread Anshuman Khandual
Generic kprobe_page_fault() calls into kprobe_fault_handler() which must be available with and without CONFIG_KPROBES. There is one stub implementation for !CONFIG_KPROBES. For CONFIG_KPROBES all subscribing archs must provide a kprobe_fault_handler() definition. Currently mips has an

[PATCH v2 4/4] ARM: dts: exynos: Use proper regulator for eMMC memory on Arndale Octa

2019-06-21 Thread Krzysztof Kozlowski
The eMMC memory is supplied by LDO18 (PVDD_EMMC_1V8) and buck10 (PVDD_EMMCF_2V8), not by LDO10. The LDO10 (PVDD_PRE_1V8) supplies instead VDDP_MMC pin of eMMC host interface and it is already marked as always on. This change only properly models the hardware and reflects in usage of regulators.

[PATCH v2 1/4] ARM: dts: exynos: Disable unused buck10 regulator on Odroid HC1 board

2019-06-21 Thread Krzysztof Kozlowski
The eMMC memory on Odroid XU3/XU4 boards is supplied by two regulators LDO18 and buck10 (and LDO13 for the host interface). However the Odroid HC1 board does not have eMMC connector so this regulator does not have to be always on. Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1.

[PATCH v2 2/4] ARM: dts: exynos: Add regulator suspend configuration to Arndale Octa board

2019-06-21 Thread Krzysztof Kozlowski
Add the PMIC regulator suspend configuration to Arndale Octa board to reduce power usage during suspend and keep necessary regulators on. The configuration is based on vendor (Insignal) reference kernel and the board datasheet. Comparing to vendor kernel, additionally turn off in suspend all

[PATCH v2 3/4] ARM: dts: exynos: Add regulator suspend configuration to Odroid XU3/XU4/HC1 family

2019-06-21 Thread Krzysztof Kozlowski
Add the PMIC regulator suspend configuration to entire Odroid XU3/XU4/HC1 family of boards to reduce power usage during suspend. The configuration is based on vendor (Hardkernel) reference kernel. Signed-off-by: Krzysztof Kozlowski Tested-by: Marek Szyprowski --- Tested on XU3 and HC1 with

[PATCH v2] ASoC: rk3399_gru_sound: Support 32, 44.1 and 88.2 kHz sample rates

2019-06-21 Thread Enric Balletbo i Serra
According to the datasheet the max98357a also supports 32, 44.1 and 88.2 kHz sample rate. This support was also introduced recently by commit fdf34366d324 ("ASoC: max98357a: add missing supported rates"). Actually the machine driver validates the supported sample rates but this is not really

Re: [PATCH v1 9/9] smaples: add vfio-mdev-pci driver

2019-06-21 Thread Alex Williamson
On Fri, 21 Jun 2019 10:23:10 + "Liu, Yi L" wrote: > Hi Alex, > > > From: Alex Williamson [mailto:alex.william...@redhat.com] > > Sent: Friday, June 21, 2019 5:08 AM > > To: Liu, Yi L > > Subject: Re: [PATCH v1 9/9] smaples: add vfio-mdev-pci driver > > > > On Thu, 20 Jun 2019 13:00:34

Re: [PATCH 01/16] mm: use untagged_addr() for get_user_pages_fast addresses

2019-06-21 Thread Jason Gunthorpe
On Fri, Jun 21, 2019 at 09:35:11AM -0600, Khalid Aziz wrote: > On 6/21/19 7:39 AM, Jason Gunthorpe wrote: > > On Tue, Jun 11, 2019 at 04:40:47PM +0200, Christoph Hellwig wrote: > >> This will allow sparc64 to override its ADI tags for > >> get_user_pages and get_user_pages_fast. > >> > >>

Re: [PATCH v11 0/6] Add basic node support for Mediatek MT8183 SoC

2019-06-21 Thread Matthias Brugger
On 27/05/2019 11:04, Erin Lo wrote: > MT8183 is a SoC based on 64bit ARMv8 architecture. > It contains 4 CA53 and 4 CA73 cores. > MT8183 share many HW IP with MT65xx series. > This patchset was tested on MT8183 evaluation board and use correct clock to > shell. > > Based on v5.2-rc1 >

Re: [PATCH v3 0/3] net: fddi: skfp: Use PCI generic definitions instead of private duplicates

2019-06-21 Thread Alan Cox
On Fri, 21 Jun 2019 15:16:04 +0530 Puranjay Mohan wrote: > This patch series removes the private duplicates of PCI definitions in > favour of generic definitions defined in pci_regs.h. Why bother ? It's an ancient obsolete card ? Do you even have one to test ? > > This driver only uses some

Re: [PATCH v5 1/1] EDAC, mellanox: Add ECC support for BlueField DDR4

2019-06-21 Thread James Morse
Hi Shravan, On 17/06/2019 19:41, Shravan Kumar Ramani wrote: > Add ECC support for Mellanox BlueField SoC DDR controller. > This requires SMC to the running Arm Trusted Firmware to report > what is the current memory configuration. > --- For a single patch, the changelog would usually be in

[PATCH v5 2/3] net: fddi: skfp: Include generic PCI definitions

2019-06-21 Thread Puranjay Mohan
Include the uapi/linux/pci_regs.h header file which contains the generic PCI defines. Signed-off-by: Puranjay Mohan --- drivers/net/fddi/skfp/drvfbi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/fddi/skfp/drvfbi.c b/drivers/net/fddi/skfp/drvfbi.c index

[PATCH v5 1/3] net: fddi: skfp: Rename local PCI defines to match generic PCI defines

2019-06-21 Thread Puranjay Mohan
Rename the PCI_REV_ID and other local defines to Generic PCI define names in skfbi.h and drvfbi.c to make it compatible with the pci_regs.h. Signed-off-by: Puranjay Mohan --- drivers/net/fddi/skfp/drvfbi.c | 2 +- drivers/net/fddi/skfp/h/skfbi.h | 4 ++-- 2 files changed, 3 insertions(+), 3

[PATCH v5 3/3] net: fddi: skfp: Remove unused private PCI definitions

2019-06-21 Thread Puranjay Mohan
Remove unused private PCI definitions from skfbi.h because generic PCI symbols are already included from pci_regs.h. Signed-off-by: Puranjay Mohan --- drivers/net/fddi/skfp/h/skfbi.h | 225 +--- 1 file changed, 1 insertion(+), 224 deletions(-) diff --git

[PATCH v5 0/3] net: fddi: skfp: Use PCI generic definitions instead of private duplicates

2019-06-21 Thread Puranjay Mohan
This patch series removes the private duplicates of PCI definitions in favour of generic definitions defined in pci_regs.h. This driver only uses some of the generic PCI definitons, which are included from pci_regs.h and thier private versions are removed from skfbi.h with all other private

RE: [PATCH V7 04/11] misc: xilinx_sdfec: Store driver config and state

2019-06-21 Thread Dragan Cvetic
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Friday 21 June 2019 15:15 > To: Dragan Cvetic > Cc: a...@arndb.de; Michal Simek ; > linux-arm-ker...@lists.infradead.org; robh...@kernel.org; > mark.rutl...@arm.com; devicet...@vger.kernel.org; >

Re: [PATCH v2 RESEND] fs: cramfs_fs.h: Fix shifting signed 32-bit value by 31 bits problem

2019-06-21 Thread Nicolas Pitre
On Tue, 18 Jun 2019, Puranjay Mohan wrote: > Fix CRAMFS_BLK_FLAG_UNCOMPRESSED to use "U" cast to avoid shifting signed > 32-bit value by 31 bits problem. This isn't a problem for kernel builds > with gcc. > > This could be problem since this header is part of public API which > could be included

RE: [PATCH] ARC: ARCv2: jump label: implement jump label patching

2019-06-21 Thread Alexey Brodkin
Hi Vineet, > -Original Message- > From: linux-snps-arc On Behalf > Of Vineet Gupta > Sent: Thursday, June 20, 2019 11:50 PM > To: Peter Zijlstra > Cc: linux-a...@vger.kernel.org; Ard Biesheuvel ; > Alexey Brodkin > ; linux-kernel@vger.kernel.org; Jason Baron > ; Paolo Bonzini > ;

[PATCH net-next 2/6] ocelot: Refactor common ocelot probing code to ocelot_init

2019-06-21 Thread Claudiu Manoil
This is just common path code that belogs to ocelot_init, it has nothing to do with a specific SoC/board instance. Add allocation err check in the process. Signed-off-by: Claudiu Manoil --- drivers/net/ethernet/mscc/ocelot.c | 6 ++ drivers/net/ethernet/mscc/ocelot_board.c | 4 2

[PATCH net-next 4/6] arm64: dts: fsl: ls1028a: Add Felix switch port DT node

2019-06-21 Thread Claudiu Manoil
Add the switch device node, available on PF5, so that the switch port sub-nodes (net devices) can be linked to corresponding board specific phy nodes (external ports) or have their link mode defined (internal ports). The switch device features 6 ports, 4 with external links and 2 internally facing

[PATCH net-next 5/6] dt-bindings: net: Add DT bindings for Microsemi Felix Switch

2019-06-21 Thread Claudiu Manoil
DT bindings for the Felix ethernet switch, consisting of the VSC9959 switch core integrated as a PCIe endpoint device. Signed-off-by: Claudiu Manoil --- .../devicetree/bindings/net/mscc-felix.txt| 77 +++ 1 file changed, 77 insertions(+) create mode 100644

[PATCH net-next 3/6] ocelot: Factor out resource ioremap and regmap init common code

2019-06-21 Thread Claudiu Manoil
Let's make this ioremap and regmap init code common. It should not be platform dependent as it should be usable by PCI devices too. Use better names where necessary to avoid clashes. Signed-off-by: Claudiu Manoil --- drivers/net/ethernet/mscc/ocelot.h | 4 +---

[PATCH net-next 0/6] Microsemi Felix switch support

2019-06-21 Thread Claudiu Manoil
This device is an ethernet switch core from Microsemi (VSC9959) integrated as PCIe endpoint into the LS1028a SoC. Though this switch core has some particularities (i.e. 6 ports, some register mapping differences), functionally this driver relies entirely on the Ocelot switch driver providing all

[PATCH net-next 6/6] net/mssc/ocelot: Add basic Felix switch driver

2019-06-21 Thread Claudiu Manoil
This supports a switch core ethernet device from Microsemi (VSC9959) that can be integrated on different SoCs as a PCIe endpoint device. The switchdev functionality is provided by the core Ocelot switch driver. In this regard, the current driver is an instance of Microsemi's Ocelot core driver.

[PATCH net-next 1/6] ocelot: Filter out ocelot SoC specific PCS config from common path

2019-06-21 Thread Claudiu Manoil
The adjust_link routine should be generic enough to be (re)used by any SoC that integrates a switch core compatible with the Ocelot core switch driver. Currently all configurations are generic except for the PCS settings that are SoC specific. Move these out to the Ocelot SoC/board instance.

[PATCH v4 4/4] timekeeping: rename getter functions to be consistent and intuitive

2019-06-21 Thread Jason A. Donenfeld
Several functions have been added, which all tried to conform to the function signature of their nearest neighbor, but those neighbors were also inconsistent with still others. This commit unifies things globally and adopts a more intuitive adjective ordering. The set of transformations are:

[PATCH v4 3/4] timekeeping: add missing _ns functions for coarse accessors

2019-06-21 Thread Jason A. Donenfeld
This further unifies the accessors for the fast and coarse functions, so that the same types of functions are available for each. There was also a bit of confusion with the documentation, which prior advertised a function that has never existed. Finally, the vanilla ktime_get_coarse() was omitted

[PATCH v4 1/4] timekeeping: add missing non-_ns functions for fast accessors

2019-06-21 Thread Jason A. Donenfeld
Previously there was no analogue to get proper ktime_t versions of the fast variety of ktime invocations. This commit makes the interface uniform with the other accessors. Signed-off-by: Jason A. Donenfeld Cc: Arnd Bergmann Cc: Thomas Gleixner --- Documentation/core-api/timekeeping.rst | 7

Re: [PATCH RFC 0/6] Produce ABI guide without escaping ReST source files

2019-06-21 Thread Mauro Carvalho Chehab
Em Fri, 21 Jun 2019 10:04:41 -0300 Mauro Carvalho Chehab escreveu: > Em Fri, 21 Jun 2019 09:39:15 -0300 > Mauro Carvalho Chehab escreveu: > > > Em Fri, 21 Jun 2019 09:32:00 -0300 > > Mauro Carvalho Chehab escreveu: > > > > > Hi Greg, > > > > > > As you proposed to give it a try on

[PATCH v4 2/4] timekeeping: use proper ktime_add when adding nsecs in coarse offset

2019-06-21 Thread Jason A. Donenfeld
While this doesn't actually amount to a real difference, since the macro evaluates to the same thing, every place else operates on ktime_t using these functions, so let's not break the pattern. Fixes: e3ff9c3678b4 ("timekeeping: Repair ktime_get_coarse*() granularity") Signed-off-by: Jason A.

Re: [PATCH 01/16] mm: use untagged_addr() for get_user_pages_fast addresses

2019-06-21 Thread Khalid Aziz
On 6/21/19 7:39 AM, Jason Gunthorpe wrote: > On Tue, Jun 11, 2019 at 04:40:47PM +0200, Christoph Hellwig wrote: >> This will allow sparc64 to override its ADI tags for >> get_user_pages and get_user_pages_fast. >> >> Signed-off-by: Christoph Hellwig >> mm/gup.c | 4 ++-- >> 1 file changed, 2

[PATCH net-next] net: macb: use GRO

2019-06-21 Thread Antoine Tenart
This patch updates the macb driver to use NAPI GRO helpers when receiving SKBs. This improves performances. Signed-off-by: Antoine Tenart --- drivers/net/ethernet/cadence/macb.h | 3 ++- drivers/net/ethernet/cadence/macb_main.c | 18 ++ 2 files changed, 12 insertions(+), 9

Re: NMI hardlock stacktrace deadlock [was Re: Linux 5.2-rc5]

2019-06-21 Thread Thomas Gleixner
On Wed, 19 Jun 2019, Linus Torvalds wrote: > On Wed, Jun 19, 2019 at 12:19 PM Chris Wilson > wrote: > > > > > Do you have the oops itself at all? > > > > An example at > > https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6310/fi-kbl-x1275/dmesg0.log > >

Re: [PATCH v7 2/2] iio: cros_ec: Add lid angle driver

2019-06-21 Thread Jonathan Cameron
On Wed, 19 Jun 2019 22:49:04 +0200 Enric Balletbo Serra wrote: > Missatge de Gwendal Grignou del dia dv., 14 de > juny 2019 a les 23:56: > > > > On Sat, May 18, 2019 at 2:53 AM Jonathan Cameron wrote: > > > > > > On Fri, 17 May 2019 16:38:56 -0700 > > > Gwendal Grignou wrote: > > > > > >

[PATCH v2] mm: avoid inconsistent "boosts" when updating the high and low watermarks

2019-06-21 Thread Alan Jenkins
When setting the low and high watermarks we use min_wmark_pages(zone). I guess this was to reduce the line length. Then this macro was modified to include zone->watermark_boost. So we needed to set watermark_boost before we set the high and low watermarks... but we did not. It seems mostly

Re: [PATCH v3 2/2] arch: wire-up clone3() syscall

2019-06-21 Thread Christian Brauner
On Fri, Jun 21, 2019 at 04:20:15PM +0200, Arnd Bergmann wrote: > On Fri, Jun 21, 2019 at 1:18 PM Christian Brauner > wrote: > > On Fri, Jun 21, 2019 at 11:37:50AM +0200, Arnd Bergmann wrote: > > > > > > I never really liked having __ARCH_WANT_SYS_CLONE here > > > because it was the only one that

[PATCH net] net: macb: do not copy the mac address if NULL

2019-06-21 Thread Antoine Tenart
This patch fixes the MAC address setup in the probe. The MAC address retrieved using of_get_mac_address was checked for not containing an error, but it may also be NULL which wasn't tested. Fix it by replacing IS_ERR with IS_ERR_OR_NULL. Fixes: 541ddc66d665 ("net: macb: support of_get_mac_address

Re: [PATCH v3 5/6] mm/memory_hotplug: Move and simplify walk_memory_blocks()

2019-06-21 Thread David Hildenbrand
On 20.06.19 20:31, David Hildenbrand wrote: > Let's move walk_memory_blocks() to the place where memory block logic > resides and simplify it. While at it, add a type for the callback function. > > Cc: Greg Kroah-Hartman > Cc: "Rafael J. Wysocki" > Cc: David Hildenbrand > Cc: Andrew Morton >

Re: [PATCH] drm/fourcc: Add Arm 16x16 block modifier

2019-06-21 Thread Daniel Vetter
On Fri, Jun 21, 2019 at 12:21 PM Raymond Smith wrote: > > Add the DRM_FORMAT_MOD_ARM_16X16_BLOCK_U_INTERLEAVED modifier to > denote the 16x16 block u-interleaved format used in Arm Utgard and > Midgard GPUs. > > Signed-off-by: Raymond Smith > --- > include/uapi/drm/drm_fourcc.h | 10 ++

Re: [PATCH -next v2] mm/page_alloc: fix a false memory corruption

2019-06-21 Thread Alexander Potapenko
On Fri, Jun 21, 2019 at 4:56 PM Qian Cai wrote: > > On Fri, 2019-06-21 at 16:37 +0200, Alexander Potapenko wrote: > > On Fri, Jun 21, 2019 at 2:26 PM Qian Cai wrote: > > > > > > On Fri, 2019-06-21 at 12:39 +0200, Alexander Potapenko wrote: > > > > On Fri, Jun 21, 2019 at 3:01 AM Kees Cook

[PATCH] pinctrl: Add device link between pin controller and GPIO

2019-06-21 Thread Thierry Reding
From: Thierry Reding When a GPIO controller registers a pin range with a pin controller, establish a device link between them in order to keep track of the dependency, which will help keep the right suspend/resume ordering. Signed-off-by: Thierry Reding --- drivers/pinctrl/core.c | 17

[PATCH] gpio: Add device link support

2019-06-21 Thread Thierry Reding
From: Thierry Reding Create a device link between a GPIO consumer and the GPIO supplier (i.e. the GPIO chip's parent). This makes the driver core aware of the dependency between the two devices so that it can properly order the suspend/resume sequence. As a side-effect the GPIO consumer will be

Re: [PATCH v3 0/6] mm: Further memory block device cleanups

2019-06-21 Thread David Hildenbrand
memoryc-get-rid-of-find_memory_block_hinted- > v3" > > [4.582081][T1] ACPI FADT declares the system doesn't support PCIe > ASPM, > so disable it > [4.590405][T1] ACPI: bus type PCI registered > [4.592908][T1] PCI: MMCONFIG for domain [bus 00-ff] at

[PATCH] staging: most: Fix error path of audio_init

2019-06-21 Thread YueHaibing
If most_register_configfs_subsys fails, call most_deregister_component to clean up. Fixes: 919c03ae11b9 ("staging: most: enable configfs support") Signed-off-by: YueHaibing --- drivers/staging/most/sound/sound.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v7 07/18] x86/fsgsbase/64: Preserve FS/GS state in __switch_to() if FSGSBASE is on

2019-06-21 Thread Thomas Gleixner
On Wed, 8 May 2019, Chang S. Bae wrote: > From: Andy Lutomirski > > With the new FSGSBASE instructions, we can efficiently read and write > the FSBASE and GSBASE in __switch_to(). Use that capability to preserve > the full state. > > This will enable user code to do whatever it wants with the

Re: [PATCH v1 2/2] drm/i2c: tda998x: remove indirect reg_read/_write() calls

2019-06-21 Thread Russell King - ARM Linux admin
On Mon, May 27, 2019 at 03:15:52PM -0400, Sven Van Asbroeck wrote: > -static void > -reg_set(struct tda998x_priv *priv, u16 reg, u8 val) > +static int > +reg_set(struct regmap *regmap, u16 reg, u8 val) I don't see the point of making this return an 'int' - you don't modify any of the callsites to

Re: [PATCH net-next] netfilter: fix nf_conntrack_bridge/ipv6 link error

2019-06-21 Thread Pablo Neira Ayuso
On Mon, Jun 17, 2019 at 03:15:04PM +0200, Arnd Bergmann wrote: > When CONFIG_IPV6 is disabled, the bridge netfilter code > produces a link error: > > ERROR: "br_ip6_fragment" [net/bridge/netfilter/nf_conntrack_bridge.ko] > undefined! > ERROR: "nf_ct_frag6_gather"

Re: [PATCH net-next] netfilter: ipv6: Fix build error without CONFIG_IPV6

2019-06-21 Thread Pablo Neira Ayuso
Actually, I'm going to take this one: https://patchwork.ozlabs.org/patch/1117011/ which looks more complete. Thanks a lot for reporting in any case.

Re: [PATCH 3/3] timekeeping: add missing _ns functions for coarse accessors

2019-06-21 Thread Arnd Bergmann
On Fri, Jun 21, 2019 at 5:07 PM Jason A. Donenfeld wrote: > > On Fri, Jun 21, 2019 at 4:58 PM Arnd Bergmann wrote: > > I care less about these since ktime_get_real_fast_ns() already > > exists. My preference would be leaving alons the _fast_ns() > > functions for now, but making everything else

Re: [PATCH v4 0/3] net: fddi: skfp: Use PCI generic definitions instead of private duplicates

2019-06-21 Thread Puranjay Mohan
On Fri, Jun 21, 2019 at 08:44:12PM +0530, Puranjay Mohan wrote: > This patch series removes the private duplicates of PCI definitions in > favour of generic definitions defined in pci_regs.h. > > This driver only uses some of the generic PCI definitons, > which are included from pci_regs.h and

[PATCH v3] driver: core: Allow subsystems to continue deferring probe

2019-06-21 Thread Thierry Reding
From: Thierry Reding Some subsystems, such as pinctrl, allow continuing to defer probe indefinitely. This is useful for devices that depend on resources provided by devices that are only probed after the init stage. One example of this can be seen on Tegra, where the DPAUX hardware contains

Re: [PATCH net-next] netfilter: ipv6: Fix build error without CONFIG_IPV6

2019-06-21 Thread Pablo Neira Ayuso
On Wed, Jun 12, 2019 at 04:47:15PM +0800, YueHaibing wrote: > If CONFIG_IPV6 is not set, building fails: > > net/bridge/netfilter/nf_conntrack_bridge.o: In function `nf_ct_bridge_pre': > nf_conntrack_bridge.c:(.text+0x41c): undefined symbol `nf_ct_frag6_gather' >

Re: [PATCH v1 1/2] drm/i2c: tda998x: access chip registers via a regmap

2019-06-21 Thread Russell King - ARM Linux admin
On Mon, May 27, 2019 at 03:15:51PM -0400, Sven Van Asbroeck wrote: > The tda988x i2c chip registers are accessed through a > paged register scheme. The kernel regmap abstraction > supports paged accesses. Replace this driver's > dedicated i2c access functions with a standard i2c > regmap. > >

Re: [PATCH v3 0/6] mm: Further memory block device cleanups

2019-06-21 Thread Qian Cai
ff] at [mem 0x8000-0x8fff] (base 0x8000) [4.601860][T1] PCI: MMCONFIG at [mem 0x8000-0x8fff] reserved in E820 [4.601860][T1] PCI: Using configuration type 1 for base access [   28.661336][   C16] watchdog: BUG: soft lockup - CPU#16 stuck for 22s! [swapper/0:1] [   28.67135

[PATCH v4 3/3] net: fddi: skfp: Remove unused private PCI definitions

2019-06-21 Thread Puranjay Mohan
Remove unused private PCI definitions from skfbi.h because generic PCI symbols are already included from pci_regs.h. Signed-off-by: Puranjay Mohan --- drivers/net/fddi/skfp/h/skfbi.h | 211 +--- 1 file changed, 1 insertion(+), 210 deletions(-) diff --git

[PATCH v4 0/3] net: fddi: skfp: Use PCI generic definitions instead of private duplicates

2019-06-21 Thread Puranjay Mohan
This patch series removes the private duplicates of PCI definitions in favour of generic definitions defined in pci_regs.h. This driver only uses some of the generic PCI definitons, which are included from pci_regs.h and thier private versions are removed from skfbi.h with all other private

[PATCH v4 1/3] net: fddi: skfp: Rename local PCI defines to match generic PCI defines

2019-06-21 Thread Puranjay Mohan
Rename the PCI_REV_ID and other local defines to Generic PCI define names in skfbi.h and drvfbi.c to make it compatible with the pci_regs.h. Signed-off-by: Puranjay Mohan --- drivers/net/fddi/skfp/drvfbi.c | 2 +- drivers/net/fddi/skfp/h/skfbi.h | 4 ++-- 2 files changed, 3 insertions(+), 3

[PATCH v4 2/3] net: fddi: skfp: Include generic PCI definitions

2019-06-21 Thread Puranjay Mohan
Include the uapi/linux/pci_regs.h header file which contains the generic PCI defines. Signed-off-by: Puranjay Mohan --- drivers/net/fddi/skfp/drvfbi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/fddi/skfp/drvfbi.c b/drivers/net/fddi/skfp/drvfbi.c index

Re: [PATCH 3/3] timekeeping: add missing _ns functions for coarse accessors

2019-06-21 Thread Jason A. Donenfeld
On Fri, Jun 21, 2019 at 4:58 PM Arnd Bergmann wrote: > I care less about these since ktime_get_real_fast_ns() already > exists. My preference would be leaving alons the _fast_ns() > functions for now, but making everything else consistent instead. > > Thomas created the _fast_ns() accessors with

[PATCH v3 4/4] timekeeping: rename getter functions to be consistent and intuitive

2019-06-21 Thread Jason A. Donenfeld
Several functions have been added, which all tried to conform to the function signature of their nearest neighbor, but those neighbors were also inconsistent with still others. This commit unifies things globally and adopts a more intuitive adjective ordering. The set of transformations are:

[PATCH v3 3/4] timekeeping: add missing _ns functions for coarse accessors

2019-06-21 Thread Jason A. Donenfeld
This further unifies the accessors for the fast and coarse functions, so that the same types of functions are available for each. There was also a bit of confusion with the documentation, which prior advertised a function that has never existed. Finally, the vanilla ktime_get_coarse() was omitted

[PATCH v3 2/4] timekeeping: use proper ktime_add when adding nsecs in coarse offset

2019-06-21 Thread Jason A. Donenfeld
While this doesn't actually amount to a real difference, since the macro evaluates to the same thing, every place else operates on ktime_t using these functions, so let's not break the pattern. Fixes: e3ff9c3678b4 ("timekeeping: Repair ktime_get_coarse*() granularity") Signed-off-by: Jason A.

[PATCH v3 1/4] timekeeping: add missing non-_ns functions for fast accessors

2019-06-21 Thread Jason A. Donenfeld
Previously there was no analogue to get proper ktime_t versions of the fast variety of ktime invocations. This commit makes the interface uniform with the other accessors. Signed-off-by: Jason A. Donenfeld Cc: Arnd Bergmann Cc: Thomas Gleixner --- Documentation/core-api/timekeeping.rst | 7

Re: [PATCH] mm/sparsemem: Cleanup 'section number' data types

2019-06-21 Thread David Hildenbrand
On 21.06.19 16:58, Matthew Wilcox wrote: > On Thu, Jun 20, 2019 at 05:06:46PM -0700, Dan Williams wrote: >> David points out that there is a mixture of 'int' and 'unsigned long' >> usage for section number data types. Update the memory hotplug path to >> use 'unsigned long' consistently for

Re: [RFC 3/5] livepatch: Allow to distinguish different version of system state changes

2019-06-21 Thread Joe Lawrence
On Fri, Jun 21, 2019 at 10:09:11AM -0400, Joe Lawrence wrote: > More word play: would it be any clearer to drop the use of > "modification" when talking about klp_states? Sometimes I read > modification to mean a change to a klp_state itself rather than the > system at large. After reading

[PATCH v8 5/5] arm64: dts: qcom: Add Asus NovaGo TP370QL

2019-06-21 Thread Jeffrey Hugo
This adds the initial DT for the Asus NovaGo TP370QL laptop. Supported functionality includes USB (host), microSD-card, keyboard, and trackpad. Signed-off-by: Jeffrey Hugo --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../dts/qcom/msm8998-asus-novago-tp370ql.dts | 47

Re: [PATCH 3/3] timekeeping: add missing _ns functions for coarse accessors

2019-06-21 Thread Arnd Bergmann
On Fri, Jun 21, 2019 at 4:46 PM Jason A. Donenfeld wrote: > On Fri, Jun 21, 2019 at 4:45 PM Arnd Bergmann wrote: > > I would prefer the 'coarse' on the other side, i.e. > > ktime_get_coarse_real_ns instead of ktime_get_real_coarse_ns, > > as this is what we already have with

Re: [PATCH] mm/sparsemem: Cleanup 'section number' data types

2019-06-21 Thread Matthew Wilcox
On Thu, Jun 20, 2019 at 05:06:46PM -0700, Dan Williams wrote: > David points out that there is a mixture of 'int' and 'unsigned long' > usage for section number data types. Update the memory hotplug path to > use 'unsigned long' consistently for section numbers. ... because we're seriously

[PATCH v8 4/5] arm64: dts: qcom: Add HP Envy x2

2019-06-21 Thread Jeffrey Hugo
This adds the initial DT for the HP Envy x2 laptop. Supported functionality includes USB (host), microSD-card, keyboard, and trackpad. Signed-off-by: Jeffrey Hugo --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/msm8998-hp-envy-x2.dts | 30 +++ 2

Re: linux-next: Fixes tags need some work in the arm64 tree

2019-06-21 Thread Catalin Marinas
On Fri, Jun 21, 2019 at 09:36:15PM +1000, Stephen Rothwell wrote: > In commit > > 86fc32fee888 ("arm64: Fix incorrect irqflag restore for priority masking") > > Fixes tag > > Fixes: commit 4a503217ce37 ("arm64: irqflags: Use ICC_PMR_EL1 for interrupt > masking") > > has these problem(s):

Re: [PATCH -next v2] mm/page_alloc: fix a false memory corruption

2019-06-21 Thread Qian Cai
On Fri, 2019-06-21 at 16:37 +0200, Alexander Potapenko wrote: > On Fri, Jun 21, 2019 at 2:26 PM Qian Cai wrote: > > > > On Fri, 2019-06-21 at 12:39 +0200, Alexander Potapenko wrote: > > > On Fri, Jun 21, 2019 at 3:01 AM Kees Cook wrote: > > > > > > > > On Thu, Jun 20, 2019 at 04:46:06PM -0400,

Re: [PATCH] RDMA/core: Fix race when resolving IP address

2019-06-21 Thread Jason Gunthorpe
On Fri, Jun 21, 2019 at 04:09:16PM +0200, Dag Moxnes wrote: > Use neighbour lock when copying MAC address from neighbour data struct > in dst_fetch_ha. > > When not using the lock, it is possible for the function to race with > neigh_update, causing it to copy an invalid MAC address. > > It is

Re: [PATCH v10 00/16] Add utilization clamping support

2019-06-21 Thread Patrick Bellasi
On 21-Jun 09:42, Patrick Bellasi wrote: > Hi all, this is a respin of: > > https://lore.kernel.org/lkml/20190515094459.10317-1-patrick.bell...@arm.com/ > > which addresses all Tejun's concerns: > > - rename cgroup attributes to be cpu.uclamp.{min,max} > - update initialization of subgroups

<    1   2   3   4   5   6   7   8   9   >