[PATCH net-next] net: stmmac: Re-word Kconfig entry

2019-07-02 Thread Jose Abreu
We support many speeds and it doesn't make much sense to list them all in the Kconfig. Let's just call it Multi-Gigabit. Suggested-by: David S. Miller Signed-off-by: Jose Abreu Cc: Joao Pinto Cc: David S. Miller Cc: Giuseppe Cavallaro Cc: Alexandre Torgue ---

[PATCH] thermal: mediatek: add suspend/resume callback

2019-07-02 Thread michael.kao
From: Louis Yu Add suspend/resume callback to disable/enable Mediatek thermal sensor respectively. Since thermal power domain is off in suspend, thermal driver needs re-initialization during resume. Signed-off-by: Louis Yu Signed-off-by: Michael Kao --- This patch series base on these patches

[PATCH] scsi: libfc: fix null pointer dereference on a null lport

2019-07-02 Thread Colin King
From: Colin Ian King Currently if lport is null then the null lport pointer is dereference when printing out debug via the FC_LPORT_DB macro. Fix this by using the more generic FC_LIBFC_DBG debug macro instead that does not use lport. Addresses-Coverity: ("Dereference after null check") Fixes:

[PATCH] KVM: LAPIC: Fix pending interrupt in IRR blocked by software disable LAPIC

2019-07-02 Thread Wanpeng Li
From: Wanpeng Li Thomas reported that: | Background: | |In preparation of supporting IPI shorthands I changed the CPU offline |code to software disable the local APIC instead of just masking it. |That's done by clearing the APIC_SPIV_APIC_ENABLED bit in the APIC_SPIV |

Re: [PATCH v3] dmaengine: tegra-apb: Support per-burst residue granularity

2019-07-02 Thread Dmitry Osipenko
27.06.2019 22:47, Dmitry Osipenko пишет: > Tegra's APB DMA engine updates words counter after each transferred burst > of data, hence it can report transfer's residual with more fidelity which > may be required in cases like audio playback. In particular this fixes > audio stuttering during

Re: Very Urgent

2019-07-02 Thread Tansoba kanbu
-- Hello Dear Friend, My name is Mr.Tansoba kanbu. I have decided to seek a confidential co-operation with you in the execution of the deal described here-under for our both mutual benefit and I hope you will keep it a top secret because of the nature of the transaction, During the course of

Re: [PATCH] nvme: fix multipath crash when ANA deactivated

2019-07-02 Thread Hannes Reinecke
On 7/1/19 12:10 PM, Marta Rybczynska wrote: > Fix a crash with multipath activated. It happends when ANA log > page is larger than MDTS and because of that ANA is disabled. > When connecting the target, the driver in nvme_parse_ana_log > then tries to access nvme_mpath_init.ctrl->ana_log_buf that

Re: [PATCH v2] sched/fair: fix imbalance due to CPU affinity

2019-07-02 Thread Valentin Schneider
On 01/07/2019 16:47, Vincent Guittot wrote: > The load_balance() has a dedicated mecanism to detect when an imbalance > is due to CPU affinity and must be handled at parent level. In this case, > the imbalance field of the parent's sched_group is set. > > The description of sg_imbalanced() gives

Re: INFO: task hung in exit_mm

2019-07-02 Thread Peter Zijlstra
On Tue, Jul 02, 2019 at 11:06:08AM +0200, Peter Zijlstra wrote: > On Mon, Jul 01, 2019 at 05:14:12PM -0700, Andrew Morton wrote: > > On Mon, 01 Jul 2019 01:27:04 -0700 syzbot > > wrote: > > > > > Hello, > > > > > > syzbot found the following crash on: > > > > At a guess I'd say that

Re: [PATCH v2 1/1] ARM: dts: colibri: introduce dts with UHS-I support enabled

2019-07-02 Thread Igor Opaniuk
Hi Marco, On Tue, Jul 2, 2019 at 10:27 AM Marco Felsch wrote: > > Hi Igor, > > On 19-05-14 17:38, Igor Opaniuk wrote: > > Introduce DTS for Colibri iMX6S/DL V1.1x re-design, where UHS-I support was > > added. Provide proper configuration for VGEN3, which allows that rail to > > be automatically

[PATCH 3/3] add driver and MAINTAINERS for poweroff

2019-07-02 Thread Frank Wunderlich
From: Josef Friedl poweroff for BPI-R2 Suggested-by: Frank Wunderlich Signed-off-by: Josef Friedl --- MAINTAINERS | 1 + drivers/mfd/mt6397-core.c | 40 +++--- drivers/power/reset/Kconfig | 10 +++ drivers/power/reset/Makefile

[PATCH 0/3] implement poweroff for mt6323/6397

2019-07-02 Thread Frank Wunderlich
i got this Patchset from josef friedl and want got get it in mainline tested on bananapi-r2 (mt7623) with this Patchset real power off (in mailine only "system halted") and reboot by power-key is working Josef Friedl (3): add doc and MAINTAINERS for poweroff add dts for poweroff add

[PATCH 1/3] add doc and MAINTAINERS for poweroff

2019-07-02 Thread Frank Wunderlich
From: Josef Friedl poweroff for BPI-R2 Suggested-by: Frank Wunderlich Signed-off-by: Josef Friedl --- .../devicetree/bindings/mfd/mt6397.txt| 10 ++- .../bindings/power/reset/mt6323-poweroff.txt | 20 + .../devicetree/bindings/rtc/rtc-mt6397.txt| 29

[PATCH 2/3] add dts for poweroff

2019-07-02 Thread Frank Wunderlich
From: Josef Friedl poweroff for BPI-R2 Suggested-by: Frank Wunderlich Signed-off-by: Josef Friedl --- arch/arm/boot/dts/mt6323.dtsi | 27 +++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/boot/dts/mt6323.dtsi b/arch/arm/boot/dts/mt6323.dtsi index

Re: [PATCH] usb: image: microtek: Unneeded variable: "err". Return "0" on line 616

2019-07-02 Thread Oliver Neukum
Am Montag, den 01.07.2019, 23:29 +0530 schrieb Hariprasad Kelam: > Fix below issue reported by coccicheck > drivers/usb/image/microtek.c:569:5-8: Unneeded variable: "err". Return > "0" on line 616 > > We can not change return type of mts_scsi_queuecommand_lck as it is part > of DEF_SCSI_QCMD > >

Re: [BUG] kvm: APIC emulation problem - was Re: [LKP] [x86/hotplug] ...

2019-07-02 Thread Wanpeng Li
On Tue, 2 Jul 2019 at 14:40, Thomas Gleixner wrote: > > Wanpeng, > > On Tue, 2 Jul 2019, Wanpeng Li wrote: > > On Tue, 2 Jul 2019 at 06:44, Thomas Gleixner wrote: > > > > > > While that CPU0 hotplug test case is surely an esoteric issue, the APIC > > > emulation is still wrong, Even if the

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

2019-07-02 Thread Masami Hiramatsu
Hello, On Thu, 27 Jun 2019 19:58:17 +0900 Masami Hiramatsu wrote: > Hi Rob, > > On Wed, 26 Jun 2019 15:58:50 -0600 > Rob Herring wrote: > > > On Fri, Jun 21, 2019 at 10:18 AM Masami Hiramatsu > > wrote: > > > > > > Hi, > > > > > > Here is an RFC series of patches to add boot-time tracing

Re: [RFC PATCH 1/5] dt-bindings: soundwire: add slave bindings

2019-07-02 Thread Vinod Koul
On 02-07-19, 09:22, Srinivas Kandagatla wrote: > Thanks Vinod for taking time to review, > > On 01/07/2019 07:11, Vinod Koul wrote: > > On 11-06-19, 11:40, Srinivas Kandagatla wrote: > > > This patch adds bindings for Soundwire Slave devices which includes how > > > SoundWire enumeration address

Re: [RFC V3 12/18] arm64: assembler: Add macro to annotate asm function having non standard stack-frame.

2019-07-02 Thread Raphael Gault
Hi, On 7/1/19 3:40 PM, Catalin Marinas wrote: On Mon, Jun 24, 2019 at 10:55:42AM +0100, Raphael Gault wrote: --- a/arch/arm64/include/asm/assembler.h +++ b/arch/arm64/include/asm/assembler.h @@ -752,4 +752,17 @@ USER(\label, icivau, \tmp2)// invalidate I line PoU

[PATCH] brcmfmac: Replace two seq_printf() calls in brcmf_feat_fwcap_debugfs_read()

2019-07-02 Thread Markus Elfring
From: Markus Elfring Date: Tue, 2 Jul 2019 11:31:07 +0200 A line break and a single string should be put into a sequence. Thus use the corresponding output functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

Re: [PATCH v1] media: si2168: Refactor command setup code

2019-07-02 Thread Jonathan Neuschäfer
Hi, On Mon, Jul 01, 2019 at 01:44:09PM +0200, Marc Gonzalez wrote: > By refactoring the command setup code, we can let the compiler > determine the size of each command. I like the idea, it definitely saves some code. The conversion also looks correct. > Signed-off-by: Marc Gonzalez > --- >

Re: [PATCH 2/4] input: keyboard/mouse/touchscreen/misc: Use dev_get_drvdata()

2019-07-02 Thread Andy Shevchenko
On Tue, Jul 2, 2019 at 11:20 AM Fuqian Huang wrote: > > I am not an expert on this. I just write a coccinelle script to search > this kind of misuse and fix it in a naive way. > Could you tell me about how to use the proper bus accessors? Then I > will fix it up and resend a v2 patch set. First,

Re: [PATCH] brcmfmac: Replace two seq_printf() calls in brcmf_feat_fwcap_debugfs_read()

2019-07-02 Thread Arend Van Spriel
On 7/2/2019 11:50 AM, Markus Elfring wrote: From: Markus Elfring Date: Tue, 2 Jul 2019 11:31:07 +0200 A line break and a single string should be put into a sequence. Thus use the corresponding output functions. This issue was detected by using the Coccinelle software. pot-ato, po-tato

linux-next: Tree for Jul 2

2019-07-02 Thread Stephen Rothwell
Hi all, Changes since 20190701: New trees: iomap, djw-vfs The m68knommu tree gained conflicts against the m68k tree. The xfs tree lost its build failure. The pm tree lost its build failure. The rdma tree still had its build failures so I used the version from next-20190628. The net-next

Re: [RFC 01/11] soc: amlogic: meson-gx-socinfo: Add SM1 and S905X3 IDs

2019-07-02 Thread Jerome Brunet
On Mon 01 Jul 2019 at 12:46, Neil Armstrong wrote: > Add the SoC IDs for the S905X3 Amlogic SM1 SoC. > > Signed-off-by: Neil Armstrong Reviewed-by: Jerome Brunet > --- > drivers/soc/amlogic/meson-gx-socinfo.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git

Re: [PATCH] nvme: fix multipath crash when ANA deactivated

2019-07-02 Thread Marta Rybczynska
- On 2 Jul, 2019, at 11:31, Hannes Reinecke h...@suse.de wrote: > On 7/1/19 12:10 PM, Marta Rybczynska wrote: >> Fix a crash with multipath activated. It happends when ANA log >> page is larger than MDTS and because of that ANA is disabled. >> When connecting the target, the driver in

Re: [PATCH v2] mm/z3fold.c: Lock z3fold page before __SetPageMovable()

2019-07-02 Thread Vitaly Wool
On Tue, Jul 2, 2019 at 3:51 AM Henry Burns wrote: > > __SetPageMovable() expects it's page to be locked, but z3fold.c doesn't > lock the page. Following zsmalloc.c's example we call trylock_page() and > unlock_page(). Also makes z3fold_page_migrate() assert that newpage is > passed in locked, as

[PATCH] staging: rtl8192e: remove redundant initialization of rtstatus

2019-07-02 Thread Colin King
From: Colin Ian King Variable rtstatus is being initialized with a value that is never read as it is being overwritten inside a do-while loop. Clean up the code by removing the redundant initialization. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King ---

[PATCH] virtio-mmio: add error check for platform_get_irq

2019-07-02 Thread Ihor Matushchak
in vm_find_vqs() irq has a wrong type so, in case of no IRQ resource defined, wrong parameter will be passed to request_irq() Signed-off-by: Ihor Matushchak --- drivers/virtio/virtio_mmio.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/virtio/virtio_mmio.c

Re: [PATCH v2] sched/fair: fix imbalance due to CPU affinity

2019-07-02 Thread Vincent Guittot
On Tue, 2 Jul 2019 at 11:34, Valentin Schneider wrote: > > On 01/07/2019 16:47, Vincent Guittot wrote: > > The load_balance() has a dedicated mecanism to detect when an imbalance > > is due to CPU affinity and must be handled at parent level. In this case, > > the imbalance field of the parent's

Re: [PATCH 1/3] add doc and MAINTAINERS for poweroff

2019-07-02 Thread Ryder Lee
+Sean On Tue, 2019-07-02 at 11:40 +0200, Frank Wunderlich wrote: > From: Josef Friedl > > poweroff for BPI-R2 > Suggested-by: Frank Wunderlich > > Signed-off-by: Josef Friedl > --- > .../devicetree/bindings/mfd/mt6397.txt| 10 ++- > .../bindings/power/reset/mt6323-poweroff.txt

Re: [PATCH v2 1/2] ASoC: tas5720.c: cleanup variant management

2019-07-02 Thread Nikolaus Voss
On Mon, 1 Jul 2019, Andrew F. Davis wrote: On 7/1/19 11:35 AM, Nikolaus Voss wrote: On Mon, 1 Jul 2019, Andrew F. Davis wrote: On 7/1/19 9:42 AM, Nikolaus Voss wrote: Replace enum tas572x_type with struct tas5720_variant which aggregates variant specific stuff and can be directly referenced

[PATCH] bpf, libbpf: Smatch: Fix potential NULL pointer dereference

2019-07-02 Thread Leo Yan
Based on the following report from Smatch, fix the potential NULL pointer dereference check. tools/lib/bpf/libbpf.c:3493 bpf_prog_load_xattr() warn: variable dereferenced before check 'attr' (see line 3483) 3479 int bpf_prog_load_xattr(const struct bpf_prog_load_attr *attr, 3480

Re: [PATCH v5 net-next 1/6] xdp: allow same allocator usage

2019-07-02 Thread Ivan Khoronzhuk
On Mon, Jul 01, 2019 at 01:40:59PM +0200, Jesper Dangaard Brouer wrote: I'm very skeptical about this approach. On Sun, 30 Jun 2019 20:23:43 +0300 Ivan Khoronzhuk wrote: XDP rxqs can be same for ndevs running under same rx napi softirq. But there is no ability to register same allocator for

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

2019-07-02 Thread David Sterba
On Tue, Jul 02, 2019 at 03:33:02PM +1000, Stephen Rothwell wrote: > Hi all, > > After merging the tip tree, today's linux-next build (powerpc > ppc64_defconfig) failed like this: > > fs/btrfs/ctree.c: In function '__tree_mod_log_insert': > fs/btrfs/ctree.c:388:2: error: implicit declaration of

[PATCH v1 02/11] perf stat: Smatch: Fix use-after-freed pointer

2019-07-02 Thread Leo Yan
Based on the following report from Smatch, fix the use-after-freed pointer. tools/perf/builtin-stat.c:1353 add_default_attributes() warn: passing freed memory 'str'. The pointer 'str' has been freed but later it is still passed into the function parse_events_print_error(). This patch fixes

[PATCH v1 07/11] perf map: Smatch: Fix potential NULL pointer dereference

2019-07-02 Thread Leo Yan
Based on the following report from Smatch, fix the potential NULL pointer dereference check. tools/perf/util/map.c:479 map__fprintf_srccode() error: we previously assumed 'state' could be null (see line 466) tools/perf/util/map.c 465 /* Avoid redundant printing */ 466 if

[PATCH v1 00/11] perf: Fix errors detected by Smatch

2019-07-02 Thread Leo Yan
When I used static checker Smatch for perf building, the main target is to check if there have any potential issues in Arm cs-etm code. So finally I get many reporting for errors/warnings. I used below command for using static checker with perf building: # make VF=1 CORESIGHT=1 -C tools/perf/

[PATCH v1 01/11] perf report: Smatch: Fix potential NULL pointer dereference

2019-07-02 Thread Leo Yan
Based on the following report from Smatch, fix the potential NULL pointer dereference check. tools/perf/builtin-report.c:304 process_read_event() error: we previously assumed 'evsel' could be null (see line 301) tools/perf/builtin-report.c 301 const char *name = evsel ?

[PATCH v1 10/11] perf intel-pt: Smatch: Fix potential NULL pointer dereference

2019-07-02 Thread Leo Yan
Based on the following report from Smatch, fix the potential NULL pointer dereference check. tools/perf/util/intel-pt.c:3200 intel_pt_process_auxtrace_info() error: we previously assumed 'session->itrace_synth_opts' could be null (see line 3196) tools/perf/util/intel-pt.c:3206

[PATCH v1 04/11] perf annotate: Smatch: Fix dereferencing freed memory

2019-07-02 Thread Leo Yan
Based on the following report from Smatch, fix the potential dereferencing freed memory check. tools/perf/util/annotate.c:1125 disasm_line__parse() error: dereferencing freed memory 'namep' tools/perf/util/annotate.c 1100 static int disasm_line__parse(char *line, const char **namep, char

[PATCH v1 06/11] perf hists: Smatch: Fix potential NULL pointer dereference

2019-07-02 Thread Leo Yan
Based on the following report from Smatch, fix the potential NULL pointer dereference check. tools/perf/ui/browsers/hists.c:641 hist_browser__run() error: we previously assumed 'hbt' could be null (see line 625) tools/perf/ui/browsers/hists.c:3088 perf_evsel__hists_browse() error: we

[PATCH v1 08/11] perf session: Smatch: Fix potential NULL pointer dereference

2019-07-02 Thread Leo Yan
Based on the following report from Smatch, fix the potential NULL pointer dereference check. tools/perf/util/session.c:1252 dump_read() error: we previously assumed 'evsel' could be null (see line 1249) tools/perf/util/session.c 1240 static void dump_read(struct perf_evsel *evsel, union

[PATCH v1 05/11] perf trace: Smatch: Fix potential NULL pointer dereference

2019-07-02 Thread Leo Yan
Based on the following report from Smatch, fix the potential NULL pointer dereference check. tools/perf/builtin-trace.c:1044 thread_trace__new() error: we previously assumed 'ttrace' could be null (see line 1041). tools/perf/builtin-trace.c 1037 static struct thread_trace

[PATCH v1 03/11] perf top: Smatch: Fix potential NULL pointer dereference

2019-07-02 Thread Leo Yan
Based on the following report from Smatch, fix the potential NULL pointer dereference check. tools/perf/builtin-top.c:109 perf_top__parse_source() warn: variable dereferenced before check 'he' (see line 103) tools/perf/builtin-top.c:233 perf_top__show_details() warn: variable

[PATCH v1 09/11] perf intel-bts: Smatch: Fix potential NULL pointer dereference

2019-07-02 Thread Leo Yan
Based on the following report from Smatch, fix the potential NULL pointer dereference check. tools/perf/util/intel-bts.c:898 intel_bts_process_auxtrace_info() error: we previously assumed 'session->itrace_synth_opts' could be null (see line 894) tools/perf/util/intel-bts.c:899

[PATCH v1 11/11] perf cs-etm: Smatch: Fix potential NULL pointer dereference

2019-07-02 Thread Leo Yan
Based on the following report from Smatch, fix the potential NULL pointer dereference check. tools/perf/util/cs-etm.c:2545 cs_etm__process_auxtrace_info() error: we previously assumed 'session->itrace_synth_opts' could be null (see line 2541) tools/perf/util/cs-etm.c 2541 if

[PATCH] remove the initrd resource in /proc/iomem as the initrd has freed the reserved memblock.

2019-07-02 Thread Yi Wang
From: Junhua Huang The 'commit 50d7ba36b916 ("arm64: export memblock_reserve()d regions via /proc/iomem")' show the reserved memblock in /proc/iomem. But the initrd's reserved memblock will be freed in free_initrd_mem(), which executes after the reserve_memblock_reserved_regions(). So there

Re: [PATCH][next] regulator: lp87565: fix missing break in switch statement

2019-07-02 Thread Lee Jones
On Fri, 28 Jun 2019, Colin Ian King wrote: > On 28/06/2019 15:36, Mark Brown wrote: > > On Thu, Jun 27, 2019 at 02:16:39PM +0100, Colin King wrote: > >> From: Colin Ian King > >> > >> Currently the LP87565_DEVICE_TYPE_LP87561_Q1 case does not have a > >> break statement, causing it to fall

Re: linux-next: Tree for Jul 2

2019-07-02 Thread Zhangshaokun
+Cc: Will Deacon There is a compiler failure on arm64 platform, as follow: In file included from ./include/linux/list.h:9:0, from ./include/linux/kobject.h:19, from ./include/linux/of.h:17, from ./include/linux/irqdomain.h:35,

[GIT PULL v2] Immutable branch between MFD and Regulator due for the v5.3 merge window

2019-07-02 Thread Lee Jones
Mark, This is a subsequent pull which contains the /* fall-through */ fix. Enjoy! The following changes since commit a188339ca5a396acc588e5851ed7e19f66b0ebd9: Linux 5.2-rc1 (2019-05-19 15:47:09 -0700) are available in the Git repository at:

Re: [PATCH v2 4/4] vfs: don't allow most setxattr to immutable files

2019-07-02 Thread Amir Goldstein
On Mon, Jul 1, 2019 at 7:31 PM Darrick J. Wong wrote: > > From: Darrick J. Wong > > The chattr manpage has this to say about immutable files: > > "A file with the 'i' attribute cannot be modified: it cannot be deleted > or renamed, no link can be created to this file, most of the file's >

Re: single copy atomicity for double load/stores on 32-bit systems

2019-07-02 Thread Will Deacon
On Mon, Jul 01, 2019 at 08:05:51PM +, Vineet Gupta wrote: > On 5/31/19 1:21 AM, Peter Zijlstra wrote: > > On Thu, May 30, 2019 at 11:22:42AM -0700, Vineet Gupta wrote: > >> Had an interesting lunch time discussion with our hardware architects > >> pertinent to > >> "minimal guarantees

Re: buildbot status?

2019-07-02 Thread Rong Chen
On 6/30/19 9:49 PM, Philip Li wrote: On Sun, Jun 30, 2019 at 12:51:54PM +0300, Kalle Valo wrote: Christoph Hellwig writes: Hi buildbot maintainers, lately I usually get no, in some case a few very delayed build bot results for my repos. Is this as known issue? I have the same problem, I

[PATCH v2 0/3] ipinctrl: qcom: Add support for SM8150

2019-07-02 Thread Vinod Koul
This series adds binding and driver for SM8150 pinctrl block. Also fixes one binding missing gpio node for msm8998. Changes since v2: - Order the function names and squash functions - document gpio-ranges and gpio-reserved-ranges - change ufs reset to be after gpios - fix pin58 having

[PATCH v2 2/3] dt-bindings: pinctrl: qcom: Add SM8150 pinctrl binding

2019-07-02 Thread Vinod Koul
From: Prasad Sodagudi Add the binding for the TLMM pinctrl block found in the SM8150 platform. Signed-off-by: Prasad Sodagudi Signed-off-by: Isaac J. Manjarres [vkoul: add missing nodes of gpio range and reserved rewrote function names and order them] Signed-off-by: Vinod Koul ---

[PATCH v2 1/3] dt-bindings: pinctrl: qcom: Document missing gpio nodes

2019-07-02 Thread Vinod Koul
The bindings for msm8998-pinctrl was missing gpio-ranges and gpio-reserved-ranges, so document them as well Signed-off-by: Vinod Koul --- .../bindings/pinctrl/qcom,msm8998-pinctrl.txt | 10 ++ 1 file changed, 10 insertions(+) diff --git

[PATCH v2 3/3] pinctrl: qcom: Add SM8150 pinctrl driver

2019-07-02 Thread Vinod Koul
From: Prasad Sodagudi Add initial pinctrl driver to support pin configuration with pinctrl framework for SM8150 Signed-off-by: Prasad Sodagudi Signed-off-by: Isaac J. Manjarres [vkoul: modify to use upstream tile support use upstream code style order the functions and squash

Re: [PATCH v1 06/11] perf hists: Smatch: Fix potential NULL pointer dereference

2019-07-02 Thread Jiri Olsa
On Tue, Jul 02, 2019 at 06:34:15PM +0800, Leo Yan wrote: > Based on the following report from Smatch, fix the potential > NULL pointer dereference check. > > tools/perf/ui/browsers/hists.c:641 > hist_browser__run() error: we previously assumed 'hbt' could be > null (see line 625) > >

Re: [PATCH v1 00/11] perf: Fix errors detected by Smatch

2019-07-02 Thread Jiri Olsa
On Tue, Jul 02, 2019 at 06:34:09PM +0800, Leo Yan wrote: > When I used static checker Smatch for perf building, the main target is > to check if there have any potential issues in Arm cs-etm code. So > finally I get many reporting for errors/warnings. > > I used below command for using static

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

2019-07-02 Thread Lee Jones
On Tue, 02 Jul 2019, Stephen Rothwell wrote: > Hi all, > > On Thu, 27 Jun 2019 11:29:18 +0530 Keerthy wrote: > > > > On 27/06/19 10:41 AM, Stephen Rothwell wrote: > > > Hi Lee, > > > > > > After merging the mfd tree, today's linux-next build (x86_64 allmodconfig) > > > produced this warning: >

Re: [PATCH][next] regulator: lp87565: fix missing break in switch statement

2019-07-02 Thread Colin Ian King
On 02/07/2019 11:44, Lee Jones wrote: > On Fri, 28 Jun 2019, Colin Ian King wrote: > >> On 28/06/2019 15:36, Mark Brown wrote: >>> On Thu, Jun 27, 2019 at 02:16:39PM +0100, Colin King wrote: From: Colin Ian King Currently the LP87565_DEVICE_TYPE_LP87561_Q1 case does not have a

Re: [PATCH 4/4] devicetree: Add led-backlight binding

2019-07-02 Thread Jean-Jacques Hiblot
Daniel, On 02/07/2019 11:58, Daniel Thompson wrote: On Mon, Jul 01, 2019 at 05:14:23PM +0200, Jean-Jacques Hiblot wrote: From: Tomi Valkeinen Add DT binding for led-backlight. I think the patchset is in the wrong order; the DT bindings documentation should appear *before* the binding is

[PATCH v2] xhci: clear port_remote_wakeup after resume failure

2019-07-02 Thread Nicolas Saenz Julienne
This was seen on a Dell Precision 5520 using it's WD15 dock. The dock's Ethernet connectivity is provided though USB. While idle, both the Ethernet device and XHCI are suspended by runtime PM. To be then resumed on behalf of the Ethernet device, which has remote wake-up capabilities. The Ethernet

Re: [PATCH v3] dmaengine: tegra-apb: Support per-burst residue granularity

2019-07-02 Thread Jon Hunter
On 27/06/2019 20:47, Dmitry Osipenko wrote: > Tegra's APB DMA engine updates words counter after each transferred burst > of data, hence it can report transfer's residual with more fidelity which > may be required in cases like audio playback. In particular this fixes > audio stuttering during

Request

2019-07-02 Thread Ahmed Zama
Greetings I have a profiling amount in an excess of €15 million which I seek you to accommodate for me. You will be rewarded with 30% of the total sum for your partnership. Can you handle this? Your assistance and support is needed to transfer the €15 million Euros out of the Bank where I work,

Re: memory leak in nfs_get_client

2019-07-02 Thread Benjamin Coddington
On 2 Jul 2019, at 2:31, Eric Biggers wrote: On Tue, Jun 11, 2019 at 12:23:12PM -0400, Benjamin Coddington wrote: Ugh.. Now that you can cancel the wait, you have to also handle if "new" was allocated. I think this needs: diff --git a/fs/nfs/client.c b/fs/nfs/client.c index

[PATCH] pci/proc: Use seq_puts() in show_device()

2019-07-02 Thread Markus Elfring
From: Markus Elfring Date: Tue, 2 Jul 2019 13:21:33 +0200 A string which did not contain a data format specification should be put into a sequence. Thus use the corresponding function “seq_puts”. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

[PATCH] net: pci: Fix hotplug event timeout with shpchp

2019-07-02 Thread Miaohe Lin
Hotplug a network card would take more than 5 seconds in qemu + shpchp scene. It’s because 5 seconds delayed_work in func handle_button_press_event with case STATIC_STATE. And this will break some protocols with timeout within 5 seconds. Signed-off-by: Miaohe Lin ---

Re: [PATCH v3] dmaengine: tegra-apb: Support per-burst residue granularity

2019-07-02 Thread Dmitry Osipenko
02.07.2019 14:20, Jon Hunter пишет: > > On 27/06/2019 20:47, Dmitry Osipenko wrote: >> Tegra's APB DMA engine updates words counter after each transferred burst >> of data, hence it can report transfer's residual with more fidelity which >> may be required in cases like audio playback. In

Re: [PATCH v2] dt-binding: mmc: rename tmio_mmc.txt to renesas,sdhi.txt

2019-07-02 Thread Simon Horman
On Mon, Jun 24, 2019 at 04:03:45PM +0900, Masahiro Yamada wrote: > As commit b6147490e6aa ("mmc: tmio: split core functionality, DMA and > MFD glue") said, these MMC controllers use the IP from Panasonic. > > TMIO (Toshiba Mobile IO) MMC was the first upstreamed user of this IP. > The common

Re: [RFC 0/2] Add workaround for core wake-up on IPI for i.MX8MQ

2019-07-02 Thread Abel Vesa
On 19-07-02 08:47:19, Martin Kepplinger wrote: > On 28.06.19 10:54, Abel Vesa wrote: > > On 19-06-23 13:47:26, Martin Kepplinger wrote: > >> On 10.06.19 14:13, Abel Vesa wrote: > >>> This is another alternative for the RFC: > >>>

Re: [PATCH][next] regulator: lp87565: fix missing break in switch statement

2019-07-02 Thread Keerthy
On 02/07/19 5:01 PM, Lee Jones wrote: On Tue, 02 Jul 2019, Colin Ian King wrote: On 02/07/2019 11:44, Lee Jones wrote: On Fri, 28 Jun 2019, Colin Ian King wrote: On 28/06/2019 15:36, Mark Brown wrote: On Thu, Jun 27, 2019 at 02:16:39PM +0100, Colin King wrote: From: Colin Ian King

Re: [PATCH][next] regulator: lp87565: fix missing break in switch statement

2019-07-02 Thread Lee Jones
On Tue, 02 Jul 2019, Colin Ian King wrote: > On 02/07/2019 11:44, Lee Jones wrote: > > On Fri, 28 Jun 2019, Colin Ian King wrote: > > > >> On 28/06/2019 15:36, Mark Brown wrote: > >>> On Thu, Jun 27, 2019 at 02:16:39PM +0100, Colin King wrote: > From: Colin Ian King > > Currently

Re: [PATCH v5 net-next 6/6] net: ethernet: ti: cpsw: add XDP support

2019-07-02 Thread Ivan Khoronzhuk
On Mon, Jul 01, 2019 at 06:19:01PM +0200, Jesper Dangaard Brouer wrote: On Sun, 30 Jun 2019 20:23:48 +0300 Ivan Khoronzhuk wrote: +static int cpsw_ndev_create_xdp_rxq(struct cpsw_priv *priv, int ch) +{ + struct cpsw_common *cpsw = priv->cpsw; + int ret, new_pool = false; +

Re: [PATCH RT v2] Fix a lockup in wait_for_completion() and friends

2019-07-02 Thread Corey Minyard
On Tue, Jul 02, 2019 at 10:35:36AM +0200, Sebastian Andrzej Siewior wrote: > On 2019-07-02 09:04:18 [+0200], Kurt Kanzenbach wrote: > > > In fact, my system doesn't boot with this commit in 5.0-rt. > > > > > > If I revert 90e1b18eba2ae4a729 ("swait: Delete the task from after a > > > wakeup

[PATCH] arm64: dts: imx8mq: Add sai6 node

2019-07-02 Thread Andra Danciu
Cc: Daniel Baluta Signed-off-by: Andra Danciu --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index d09b808eff87..1ff664523f56 100644 ---

Re: [PATCH 2/4] input: keyboard/mouse/touchscreen/misc: Use dev_get_drvdata()

2019-07-02 Thread Fuqian Huang
Andy Shevchenko 於 2019年7月2日週二 下午5:51寫道: > > On Tue, Jul 2, 2019 at 11:20 AM Fuqian Huang wrote: > > > > I am not an expert on this. I just write a coccinelle script to search > > this kind of misuse and fix it in a naive way. > > Could you tell me about how to use the proper bus accessors? Then

[PATCH net-next v6 04/15] ethtool: introduce ethtool netlink interface

2019-07-02 Thread Michal Kubecek
Basic genetlink and init infrastructure for the netlink interface, register genetlink family "ethtool". Add CONFIG_ETHTOOL_NETLINK Kconfig option to make the build optional. Add initial overall interface description into Documentation/networking/ethtool-netlink.txt, further patches will add more

[PATCH net-next v6 02/15] netlink: rename nl80211_validate_nested() to nla_validate_nested()

2019-07-02 Thread Michal Kubecek
Function nl80211_validate_nested() is not specific to nl80211, it's a counterpart to nla_validate_nested_deprecated() with strict validation. For consistency with other validation and parse functions, rename it to nla_validate_nested(). Signed-off-by: Michal Kubecek --- include/net/netlink.h |

[PATCH net-next v6 00/15] ethtool netlink interface, part 1

2019-07-02 Thread Michal Kubecek
This is first part of netlink based alternative userspace interface for ethtool. It aims to address some long known issues with the ioctl interface, mainly lack of extensibility, raciness, limited error reporting and absence of notifications. The goal is to allow userspace ethtool utility to

[PATCH net-next v6 01/15] rtnetlink: provide permanent hardware address in RTM_NEWLINK

2019-07-02 Thread Michal Kubecek
Permanent hardware address of a network device was traditionally provided via ethtool ioctl interface but as Jiri Pirko pointed out in a review of ethtool netlink interface, rtnetlink is much more suitable for it so let's add it to the RTM_NEWLINK message. Add IFLA_PERM_ADDRESS attribute to

[PATCH net-next v6 05/15] ethtool: helper functions for netlink interface

2019-07-02 Thread Michal Kubecek
Add common request/reply header definition and helpers to parse request header and fill reply header. Provide ethnl_update_* helpers to update structure members from request attributes (to be used for *_SET requests). Signed-off-by: Michal Kubecek --- include/uapi/linux/ethtool_netlink.h | 23

[PATCH net-next v6 06/15] ethtool: netlink bitset handling

2019-07-02 Thread Michal Kubecek
The ethtool netlink code uses common framework for passing arbitrary length bit sets to allow future extensions. A bitset can be a list (only one bitmap) or can consist of value and mask pair (used e.g. when client want to modify only some bits). A bitset can use one of two formats: verbose (bit

[PATCH net-next v6 09/15] ethtool: generic handlers for GET requests

2019-07-02 Thread Michal Kubecek
Significant part of GET request processing is common for most request types but unfortunately it cannot be easily separated from type specific code as we need to alternate between common actions (parsing common request header, allocating message and filling netlink/genetlink headers etc.) and

[PATCH net-next v6 14/15] ethtool: set link settings and link modes with SETTINGS_SET request

2019-07-02 Thread Michal Kubecek
Implement SETTINGS_SET netlink request allowing to set link settings and advertised link modes as an alternative to ETHTOOL_SLINKSETTINGS and ETHTOOL_SSET ioctl commands. Only values which are intended to be set are to be included in the request. Omitted attributes will be left at current values.

[PATCH net-next v6 10/15] ethtool: provide string sets with STRSET_GET request

2019-07-02 Thread Michal Kubecek
Requests a contents of one or more string sets, i.e. indexed arrays of strings; this information is provided by ETHTOOL_GSSET_INFO and ETHTOOL_GSTRINGS commands of ioctl interface. Unlike ioctl interface, all information can be retrieved with one request and mulitple string sets can be requested

[PATCH net-next v6 11/15] ethtool: provide link mode names as a string set

2019-07-02 Thread Michal Kubecek
Unlike e.g. netdev features, the ethtool ioctl interface requires link mode table to be in sync between kernel and userspace for userspace to be able to display and set all link modes supported by kernel. The way arbitrary length bitsets are implemented in netlink interface, this is no longer

[PATCH net-next v6 08/15] ethtool: move string arrays into common file

2019-07-02 Thread Michal Kubecek
Introduce file net/ethtool/common.c for code shared by ioctl and netlink ethtool interface. Move name tables of features, RSS hash functions, tunables and PHY tunables into this file. Signed-off-by: Michal Kubecek --- net/ethtool/Makefile | 2 +- net/ethtool/common.c | 84

[PATCH net-next v6 13/15] ethtool: add standard notification handler

2019-07-02 Thread Michal Kubecek
The ethtool netlink notifications have the same format as related GET replies so that if generic GET handling framework is used to process GET requests, its callbacks and instance of struct get_request_ops can be also used to compose corresponding notification message. Provide function

[PATCH net-next v6 07/15] ethtool: support for netlink notifications

2019-07-02 Thread Michal Kubecek
Add infrastructure for ethtool netlink notifications. There is only one multicast group "monitor" which is used to notify userspace about changes and actions performed. Notification messages (types using suffix _NTF) share the format with replies to GET requests. Notifications are supposed to be

Re: [PATCH RT v2] Fix a lockup in wait_for_completion() and friends

2019-07-02 Thread Sebastian Andrzej Siewior
On 2019-07-02 06:40:28 [-0500], Corey Minyard wrote: > On Tue, Jul 02, 2019 at 10:35:36AM +0200, Sebastian Andrzej Siewior wrote: > > On 2019-07-02 09:04:18 [+0200], Kurt Kanzenbach wrote: > > > > In fact, my system doesn't boot with this commit in 5.0-rt. > > > > > > > > If I revert

Re: [RFC 1/3] rcu: Expedite the rcu quiescent state reporting if help needed

2019-07-02 Thread Joel Fernandes
On Mon, Jul 01, 2019 at 08:47:30PM -0700, Paul E. McKenney wrote: > On Mon, Jul 01, 2019 at 12:04:13AM -0400, Joel Fernandes (Google) wrote: > > The t->rcu_read_unlock_special union's need_qs bit can be set by the > > scheduler tick (in rcu_flavor_sched_clock_irq) to indicate that help is > >

Re: [PATCH] arm64: dts: imx8mq: Add sai6 node

2019-07-02 Thread Abel Vesa
On 19-07-02 14:41:02, Andra Danciu wrote: Missing commit message here. Please add one. > Cc: Daniel Baluta > Signed-off-by: Andra Danciu > --- > arch/arm64/boot/dts/freescale/imx8mq.dtsi | 14 ++ > 1 file changed, 14 insertions(+) > > diff --git

[PATCH net-next v6 03/15] ethtool: move to its own directory

2019-07-02 Thread Michal Kubecek
The ethtool netlink interface is going to be split into multiple files so that it will be more convenient to put all of them in a separate directory net/ethtool. Start by moving current ethtool.c with ioctl interface into this directory and renaming it to ioctl.c. Signed-off-by: Michal Kubecek

Re: [PATCH v2 3/3] augmented rbtree: rework the RB_DECLARE_CALLBACKS macro definition

2019-07-02 Thread Peter Zijlstra
On Tue, Jul 02, 2019 at 12:58:19AM -0700, Michel Lespinasse wrote: > - Change the definition of the RBCOMPUTE function. The propagate > callback repeatedly calls RBCOMPUTE as it moves from leaf to root. > it wants to stop recomputing once the augmented subtree information > doesn't change.

[PATCH 3/4] crypto: fips: add FIPS test failure notification chain

2019-07-02 Thread Gilad Ben-Yossef
Crypto test failures in FIPS mode cause an immediate panic, but on some system the cryptographic boundary extends beyond just the Linux controlled domain. Add a simple atomic notification chain to allow interested parties to register to receive notification prior to us kicking the bucket.

[PATCH net-next v6 15/15] ethtool: provide link state in SETTINGS_GET request

2019-07-02 Thread Michal Kubecek
Add information about device link state (as provided by ETHTOOL_GLINK ioctl command) into the SETTINGS_GET reply when ETHTOOL_IM_SETTINGS_LINKSTATE bit is set in the request info mask. We cannot use NLA_FLAG for link state as we need three states: off, on and unknown. The attribute is

Re: [PATCH v1 10/11] perf intel-pt: Smatch: Fix potential NULL pointer dereference

2019-07-02 Thread Adrian Hunter
On 2/07/19 1:34 PM, Leo Yan wrote: > Based on the following report from Smatch, fix the potential > NULL pointer dereference check. It never is NULL. Remove the NULL test if you want: - if (session->itrace_synth_opts && session->itrace_synth_opts->set) { + if

[PATCH 2/4] crypto: ccree: account for TEE not ready to report

2019-07-02 Thread Gilad Ben-Yossef
When ccree driver runs it checks the state of the Trusted Execution Environment CryptoCell driver before proceeding. We did not account for cases where the TEE side is not ready or not available at all. Fix it by only considering TEE error state after sync with the TEE side driver. Signed-off-by:

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