Re: [PATCH v5 0/4] Charge loop device i/o to issuing cgroup

2020-05-26 Thread Christoph Hellwig
On Tue, May 26, 2020 at 10:28:03AM -0400, Dan Schatzberg wrote: > Will do - I'll split out the lock-use refactor into a separate > patch. Do you have particular concerns about re-using the existing > spinlock? Its existing use is not contended so I didn't see any harm > in extending its use. I'll a

Re: [PATCH bpf-next] libbpf: Export bpf_object__load_vmlinux_btf

2020-05-26 Thread Andrii Nakryiko
On Tue, May 26, 2020 at 7:09 PM Daniel Xu wrote: > > Right now the libbpf model encourages loading the entire object at once. > In this model, libbpf handles loading BTF from vmlinux for us. However, > it can be useful to selectively load certain maps and programs inside an > object without loadin

Re: [PATCH] media: omap3isp: Shuffle cacheflush.h and include mm.h

2020-05-26 Thread Christoph Hellwig
On Tue, May 26, 2020 at 09:34:27PM -0700, Nathan Chancellor wrote: > After mm.h was removed from the asm-generic version of cacheflush.h, > s390 allyesconfig shows several warnings of the following nature: Hmm, I'm pretty sure I sent the same fix a few days ago in response to a build bot report.

Re: KVM broken after suspend in most recent kernels.

2020-05-26 Thread Sean Christopherson
On Mon, May 25, 2020 at 09:15:57PM +0800, Brad Campbell wrote: > >When you mean that KVM is broken after suspend, you mean that you can't > >start new VMs after suspend, or do VMs that were running before suspend > >break? I see the later on my machine. I have AMD system though, so most > >likely

Re: [PATCH 1/1] nvme-pci: avoid race between nvme_reap_pending_cqes() and nvme_poll()

2020-05-26 Thread Keith Busch
Fixes: fa46c6fb5d61 ("nvme/pci: move cqe check after device shutdown")

Re: [PATCH 01/16] block: add disk/bio-based accounting helpers

2020-05-26 Thread Christoph Hellwig
On Mon, May 25, 2020 at 03:28:07PM +0300, Konstantin Khlebnikov wrote: > I think it would be better to leave this jiffies legacy nonsense in > callers and pass here request duration in nanoseconds. jiffies is what the existing interfaces uses. But now that they come from the start helper fixing t

Re: [PATCH v4 3/7] KVM: PPC: Remove redundant kvm_run from vcpu_arch

2020-05-26 Thread Tianjia Zhang
On 2020/5/27 12:20, Paul Mackerras wrote: On Mon, Apr 27, 2020 at 12:35:10PM +0800, Tianjia Zhang wrote: The 'kvm_run' field already exists in the 'vcpu' structure, which is the same structure as the 'kvm_run' in the 'vcpu_arch' and should be deleted. Signed-off-by: Tianjia Zhang Thanks,

[PATCH 03/16] rsxx: use bio_{start,end}_io_acct

2020-05-26 Thread Christoph Hellwig
Switch rsxx to use the nicer bio accounting helpers. Signed-off-by: Christoph Hellwig Reviewed-by: Konstantin Khlebnikov --- drivers/block/rsxx/dev.c | 19 ++- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/drivers/block/rsxx/dev.c b/drivers/block/rsxx/dev.c inde

[PATCH 10/16] block: move update_io_ticks to blk-core.c

2020-05-26 Thread Christoph Hellwig
All callers are in blk-core.c, so move update_io_ticks over. Signed-off-by: Christoph Hellwig Reviewed-by: Konstantin Khlebnikov --- block/bio.c | 16 block/blk-core.c | 15 +++ block/blk.h | 1 - 3 files changed, 15 insertions(+), 17 deletions(-) diff -

[PATCH 16/16] block: reduce part_stat_lock() scope

2020-05-26 Thread Christoph Hellwig
We only need the stats lock (aka preempt_disable()) for updating the states, not for looking up or dropping the hd_struct reference. Signed-off-by: Christoph Hellwig Reviewed-by: Konstantin Khlebnikov --- block/blk-core.c | 5 +++-- block/blk-merge.c | 3 ++- 2 files changed, 5 insertions(+),

[PATCH 13/16] block: add a blk_account_io_merge_bio helper

2020-05-26 Thread Christoph Hellwig
From: Konstantin Khlebnikov Move the non-"new_io" branch of blk_account_io_start() into separate function. Fix merge accounting for discards (they were counted as write merges). The new blk_account_io_merge_bio() doesn't call update_io_ticks() unlike blk_account_io_start(), as there is no reaso

[PATCH 04/16] lightnvm/pblk: use bio_{start,end}_io_acct

2020-05-26 Thread Christoph Hellwig
Switch rsxx to use the nicer bio accounting helpers. Signed-off-by: Christoph Hellwig Reviewed-by: Konstantin Khlebnikov --- drivers/lightnvm/pblk-cache.c | 8 +++- drivers/lightnvm/pblk-read.c | 11 --- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/drivers/light

[PATCH 01/16] block: add disk/bio-based accounting helpers

2020-05-26 Thread Christoph Hellwig
Add two new helpers to simplify I/O accounting for bio based drivers. Currently these drivers use the generic_start_io_acct and generic_end_io_acct helpers which have very cumbersome calling conventions, don't actually return the time they started accounting, and try to deal with accounting for par

[PATCH 11/16] block: always use a percpu variable for disk stats

2020-05-26 Thread Christoph Hellwig
percpu variables have a perfectly fine working stub implementation for UP kernels, so use that. Signed-off-by: Christoph Hellwig Reviewed-by: Konstantin Khlebnikov --- block/blk.h | 2 +- block/genhd.c | 12 +++-- block/partitions/core.c | 5 ++-- include/linux

[PATCH 02/16] drbd: use bio_{start,end}_io_acct

2020-05-26 Thread Christoph Hellwig
Switch drbd to use the nicer bio accounting helpers. Signed-off-by: Christoph Hellwig Reviewed-by: Konstantin Khlebnikov --- drivers/block/drbd/drbd_req.c | 27 --- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/drivers/block/drbd/drbd_req.c b/drivers/blo

[PATCH 06/16] dm: use bio_{start,end}_io_acct

2020-05-26 Thread Christoph Hellwig
Switch dm to use the nicer bio accounting helpers. Signed-off-by: Christoph Hellwig Reviewed-by: Konstantin Khlebnikov --- drivers/md/dm.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/md/dm.c b/drivers/md/dm.c index f215b86664484..3f39fa1ac756e 100644 ---

[PATCH 15/16] block: use __this_cpu_add() instead of access by smp_processor_id()

2020-05-26 Thread Christoph Hellwig
From: Konstantin Khlebnikov Most architectures have fast path to access percpu for current cpu. The required preempt_disable() is provided by part_stat_lock(). Signed-off-by: Konstantin Khlebnikov [hch: rebased] Signed-off-by: Christoph Hellwig --- include/linux/part_stat.h | 2 +- 1 file cha

[PATCH 08/16] zram: nvdimm: use bio_{start,end}_io_acct and disk_{start,end}_io_acct

2020-05-26 Thread Christoph Hellwig
Switch zram to use the nicer bio accounting helpers, and as part of that ensure each bio is counted as a single I/O request. Signed-off-by: Christoph Hellwig Reviewed-by: Konstantin Khlebnikov --- drivers/block/zram/zram_drv.c | 24 ++-- 1 file changed, 10 insertions(+), 14

[PATCH 07/16] nvdimm: use bio_{start,end}_io_acct

2020-05-26 Thread Christoph Hellwig
Switch dm to use the nicer bio accounting helpers. Signed-off-by: Christoph Hellwig Reviewed-by: Konstantin Khlebnikov --- drivers/nvdimm/blk.c | 6 -- drivers/nvdimm/btt.c | 6 -- drivers/nvdimm/nd.h | 19 --- drivers/nvdimm/pmem.c | 6 -- 4 files changed, 12

[PATCH 09/16] block: remove generic_{start,end}_io_acct

2020-05-26 Thread Christoph Hellwig
Remove these now unused functions. Signed-off-by: Christoph Hellwig Reviewed-by: Konstantin Khlebnikov --- block/bio.c | 39 --- include/linux/bio.h | 6 -- 2 files changed, 45 deletions(-) diff --git a/block/bio.c b/block/bio.c index 9c101a0572

[PATCH 05/16] bcache: use bio_{start,end}_io_acct

2020-05-26 Thread Christoph Hellwig
Switch bcache to use the nicer bio accounting helpers, and call the routines where we also sample the start time to give coherent accounting results. Signed-off-by: Christoph Hellwig Reviewed-by: Konstantin Khlebnikov Acked-by: Coly Li --- drivers/md/bcache/request.c | 18 -- 1

block I/O accounting improvements v2

2020-05-26 Thread Christoph Hellwig
Hi Jens, they series contains various improvement for block I/O accounting. The first bunch of patches switch the bio based drivers to better accounting helpers compared to the current mess. The end contains a fix and various performanc improvements. Most of this comes from a series Konstantin

[PATCH 12/16] block: account merge of two requests

2020-05-26 Thread Christoph Hellwig
From: Konstantin Khlebnikov Also rename blk_account_io_merge() into blk_account_io_merge_request() to distinguish it from merging request and bio. Signed-off-by: Konstantin Khlebnikov [hch: rebased] Signed-off-by: Christoph Hellwig --- block/blk-merge.c | 12 +--- 1 file changed, 5 in

[PATCH 14/16] block: remove rcu_read_lock() from part_stat_lock()

2020-05-26 Thread Christoph Hellwig
From: Konstantin Khlebnikov The RCU lock is required only in disk_map_sector_rcu() to lookup the partition. After that request holds reference to related hd_struct. Replace get_cpu() with preempt_disable() - returned cpu index is unused. Signed-off-by: Konstantin Khlebnikov [hch: rebased] Sig

[PATCH 2/2] MIPS: Loongso64: select NO_EXCEPT_FILL

2020-05-26 Thread Jiaxun Yang
Loongson64 load kernel at 0x8200 and allocate exception vectors by ebase. So we don't need to reserve space for exception vectors at head of kernel. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig inde

[PATCH 0/2] Bugy bootloader woraround

2020-05-26 Thread Jiaxun Yang
Jiaxun Yang (2): MIPS: head.S: Always jump to kernel_entry at head of text MIPS: Loongso64: select NO_EXCEPT_FILL arch/mips/Kconfig | 1 + arch/mips/kernel/head.S | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) -- 2.27.0.rc0

[PATCH 1/2] MIPS: head.S: Always jump to kernel_entry at head of text

2020-05-26 Thread Jiaxun Yang
Buggy loaders like early version of PMON2000 sometimes ignore elf_entry and goto start of text directly. That would help with dealing with these loaders. Signed-off-by: Jiaxun Yang --- arch/mips/kernel/head.S | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/mips/kernel/head.S b/arch/mi

Re: [PATCH] perf jvmti: remove redundant jitdump line table entries

2020-05-26 Thread Nick Gasson
On 05/26/20 19:55 PM, Jiri Olsa wrote: > On Fri, May 22, 2020 at 02:53:30PM +0800, Nick Gasson wrote: >> For each PC/BCI pair in the JVMTI compiler inlining record table, the >> jitdump plugin emits debug line table entries for every source line in >> the method preceding that BCI. Instead only emi

Re: [PATCH] gpiolib: add GPIO_SET_DEBOUNCE_IOCTL

2020-05-26 Thread Linus Walleij
On Mon, May 25, 2020 at 5:17 PM Kent Gibson wrote: > > I suppose gpiolib would have to steal or intercept the interrupt > > by using e.g. IRQF_SHARED and then just return IRQ_HANDLED > > on the first IRQ so the underlying irq handler does not get called. > > And how would gpiolib ensure that it w

[RESEND PATCH v2 3/4] clk: sprd: add dt-bindings include for mipi_csi_xx clocks

2020-05-26 Thread Chunyan Zhang
From: Chunyan Zhang mipi_csi_xx clocks are used by camera sensors. Signed-off-by: Chunyan Zhang Acked-by: Rob Herring --- include/dt-bindings/clock/sprd,sc9863a-clk.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/dt-bindings/clock/sprd,sc9863a-clk.h b/include/dt-bindings/c

[RESEND PATCH v2 0/4] add mipi_csi_xx gate clocks for SC9863A

2020-05-26 Thread Chunyan Zhang
From: Chunyan Zhang mipi_csi_xx clocks are used by camera sensors. These clocks cannot be accessed (even read) if their parent gate clock is disabled. So this patchset also add a check to parent clocks when reading these gate clocks which marked with the specific flag (SPRD_GATE_NON_AON). change

[RESEND PATCH v2 2/4] dt-bindings: clk: sprd: add mipi_csi_xx clocks for SC9863A

2020-05-26 Thread Chunyan Zhang
From: Chunyan Zhang mipi_csi_xx clocks are used by camera sensors. Signed-off-by: Chunyan Zhang Acked-by: Rob Herring --- Documentation/devicetree/bindings/clock/sprd,sc9863a-clk.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/clock/sprd,sc9863a-clk.

[RESEND PATCH v2 1/4] clk: sprd: check its parent status before reading gate clock

2020-05-26 Thread Chunyan Zhang
From: Chunyan Zhang Some clocks only can be accessed if their parent is enabled. mipi_csi_xx clocks on SC9863A are an examples. We have to ensure the parent clock is enabled when reading those clocks. Signed-off-by: Chunyan Zhang --- drivers/clk/sprd/gate.c | 7 +++ drivers/clk/sprd/gate.h

[RESEND PATCH v2 4/4] clk: sprd: add mipi_csi_xx gate clocks

2020-05-26 Thread Chunyan Zhang
From: Chunyan Zhang mipi_csi_xx clocks are used by camera sensors. Signed-off-by: Chunyan Zhang --- drivers/clk/sprd/sc9863a-clk.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/clk/sprd/sc9863a-clk.c b/drivers/clk/sprd/sc9863a-clk.c index a0631f7

Re: [PATCH V2] PCI: qcom: Improve exception handling in qcom_pcie_probe()

2020-05-26 Thread Markus Elfring
> 1. pm_runtime_put() … … > 2. pm_runtime_disable() … How do you think about to add blank lines for such enumeration items and to indent the text below the numbers? > Co-developed-by: Markus Elfring Will our collaboration evolve in more ways besides patch review? Regards, Markus

Re: [RFC] perf/core: allow ftrace for functions in kernel/event/core.c

2020-05-26 Thread Masami Hiramatsu
On Tue, 26 May 2020 21:46:29 + Song Liu wrote: > > > > On May 26, 2020, at 2:39 PM, Peter Zijlstra wrote: > > > > On Tue, May 26, 2020 at 02:28:26PM -0700, Song Liu wrote: > >> It is useful to trace functions in kernel/event/core.c. Allow ftrace for > >> them by removing $(CC_FLAGS_FTRACE

Re: [PATCH] perf jvmti: remove redundant jitdump line table entries

2020-05-26 Thread Nick Gasson
On 05/27/20 13:03 PM, Ian Rogers wrote: > > Great result, thanks! I note there is a lack of symbolization when > benchmarking a few Java applications. I'll try to see if there's a > sensible resolution for those. > I noticed it loses information when the Hotspot code cache is resized. I've been wo

general protection fault in start_creating

2020-05-26 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:c11d28ab Add linux-next specific files for 20200522 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1135d53c10 kernel config: https://syzkaller.appspot.com/x/.config?x=3f6dbdea4159fb66 dashboard

[PATCH v6 0/5] remoteproc: qcom: PIL info support

2020-05-26 Thread Bjorn Andersson
Introduce support for filling out the relocation information in IMEM, to aid post mortem debug tools to locate the various remoteprocs. Bjorn Andersson (5): dt-bindings: remoteproc: Add Qualcomm PIL info binding remoteproc: qcom: Introduce helper to store pil info in IMEM remoteproc: qcom: U

Re: [PATCH] clk: versatile: remove redundant assignment to pointer clk

2020-05-26 Thread Linus Walleij
On Wed, May 27, 2020 at 12:41 AM Colin King wrote: > From: Colin Ian King > > The pointer clk is being initialized with a value that is never read > and is being updated with a new value later on. The initialization > is redundant and can be removed. > > Addresses-Coverity: ("Unused value") > Si

[PATCH v6 1/5] dt-bindings: remoteproc: Add Qualcomm PIL info binding

2020-05-26 Thread Bjorn Andersson
Add a devicetree binding for the Qualcomm peripheral image loader relocation information region found in the IMEM. Reviewed-by: Mathieu Poirier Reviewed-by: Rob Herring Reviewed-by: Stephen Boyd Reviewed-by: Vinod Koul Signed-off-by: Bjorn Andersson --- Changes since v5: - Picked up reviewed

[PATCH v6 3/5] remoteproc: qcom: Update PIL relocation info on load

2020-05-26 Thread Bjorn Andersson
Update the PIL relocation information in IMEM with information about where the firmware for various remoteprocs are loaded. Reviewed-by: Vinod Koul Signed-off-by: Bjorn Andersson --- Changes since v5: - Added select QCOM_PIL_INFO to all relevant Kconfig options - Replaced mem_reloc with mem_phy

[PATCH v6 5/5] arm64: dts: qcom: sdm845: Add IMEM and PIL info region

2020-05-26 Thread Bjorn Andersson
Add a simple-mfd representing IMEM on SDM845 and define the PIL relocation info region, so that post mortem tools will be able to locate the loaded remoteprocs. Reviewed-by: Stephen Boyd Reviewed-by: Vinod Koul Signed-off-by: Bjorn Andersson --- Changes since v5: - Picked up reviewed-bys arc

[PATCH v6 4/5] arm64: dts: qcom: qcs404: Add IMEM and PIL info region

2020-05-26 Thread Bjorn Andersson
Add a simple-mfd representing IMEM on QCS404 and define the PIL relocation info region, so that post mortem tools will be able to locate the loaded remoteprocs. Reviewed-by: Stephen Boyd Reviewed-by: Vinod Koul Signed-off-by: Bjorn Andersson --- Changes since v5: - Picked up reviewed-bys arc

[PATCH v6 2/5] remoteproc: qcom: Introduce helper to store pil info in IMEM

2020-05-26 Thread Bjorn Andersson
A region in IMEM is used to communicate load addresses of remoteproc to post mortem debug tools. Implement a helper function that can be used to store this information in order to enable these tools to process collected ramdumps. Reviewed-by: Mathieu Poirier Reviewed-by: Vinod Koul Signed-off-by

Re: [PATCH V4 6/8] fs/ext4: Make DAX mount option a tri-state

2020-05-26 Thread Xiao Yang
On 2020/5/22 3:13, ira.we...@intel.com wrote: > From: Ira Weiny > > We add 'always', 'never', and 'inode' (default). '-o dax' continues to > operate the same which is equivalent to 'always'. This new > functionality is limited to ext4 only. > > Specifically we introduce a 2nd DAX mount flag EXT

Re: [PATCH v1 2/5] clk: Introduce clk_round_rate_unboundly()

2020-05-26 Thread Stephen Boyd
Quoting Dmitry Osipenko (2020-03-30 16:16:14) > In same cases it may be desired to round clock's rate without taking into > account current min/max requests made by the clock's users. One example is > building up OPP table based on a possible clock rates. Shouldn't the OPP table come from firmware

Re: [PATCH v1 2/5] clk: Introduce clk_round_rate_unboundly()

2020-05-26 Thread Stephen Boyd
Quoting Dmitry Osipenko (2020-03-30 16:16:14) > In same cases it may be desired to round clock's rate without taking into > account current min/max requests made by the clock's users. One example is > building up OPP table based on a possible clock rates. > > Signed-off-by: Dmitry Osipenko > ---

Re: [RFC PATCH] gpio: uapi: v2 proposal

2020-05-26 Thread Linus Walleij
On Mon, May 25, 2020 at 4:19 PM Kent Gibson wrote: > > > +struct gpioline_config { > > > + __u8 default_values[GPIOLINES_MAX]; > > > > So 32 bytes > > > > Actually that one is 64 bytes, which is the same as v1, i.e. GPIOLINES_MAX > is the same as GPIOHANDLES_MAX - just renamed. > > On the s

Re: [PATCH 0/2] Bugy bootloader woraround

2020-05-26 Thread Jiaxun Yang
On Wed, 27 May 2020 13:27:17 +0800 Jiaxun Yang wrote: > Jiaxun Yang (2): > MIPS: head.S: Always jump to kernel_entry at head of text > MIPS: Loongso64: select NO_EXCEPT_FILL Please ignore the noise. Something went wrong with my keyboard... > > arch/mips/Kconfig | 1 + > arch/mip

Re: [PATCH] sparc32: register memory occupied by kernel as memblock.memory

2020-05-26 Thread David Miller
From: Mike Rapoport Date: Wed, 27 May 2020 07:52:19 +0300 > Andrew, David, > > Any comments on this? No objections from me: Acked-by: David S. Miller

Re: [PATCH v8 4/6] dt-bindings: MIPS: Document Ingenic SoCs binding.

2020-05-26 Thread Zhou Yanjie
在 2020/5/27 上午3:29, Rob Herring 写道: On Tue, May 19, 2020 at 10:35:21PM +0800, 周琰杰 (Zhou Yanjie) wrote: Document the available properties for the SoC root node and the CPU nodes of the devicetree for the Ingenic XBurst SoCs. Tested-by: H. Nikolaus Schaller Tested-by: Paul Boddie Signed-off-b

Re: [PATCH] ipc/msg.c: wake up senders until there is a queue empty capacity

2020-05-26 Thread Manfred Spraul
Hello Artur, On 5/26/20 9:56 AM, Artur Barsegyan wrote: Hello, Manfred! Thank you, for your review. I've reviewed your patch. I forgot about the case with different message types. At now with your patch, a sender will force message consuming if that doesn't hold own capacity. I have measured

Re: [PATCH v3 1/3] riscv: Move kernel mapping to vmalloc zone

2020-05-26 Thread Zong Li
On Wed, May 27, 2020 at 1:06 AM Alex Ghiti wrote: > > Hi Zong, > > Le 5/26/20 à 5:43 AM, Zong Li a écrit : > > On Sun, May 24, 2020 at 4:54 PM Alexandre Ghiti wrote: > >> This is a preparatory patch for relocatable kernel. > >> > >> The kernel used to be linked at PAGE_OFFSET address and used to

[PATCH] vdpa: fix typos in the comments for __vdpa_alloc_device()

2020-05-26 Thread Jason Wang
Fix two typos in the comments for __vdpa_alloc_device(). Signed-off-by: Jason Wang --- drivers/vdpa/vdpa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vdpa/vdpa.c b/drivers/vdpa/vdpa.c index ff6562f602e0..de211ef3738c 100644 --- a/drivers/vdpa/vdpa.c +++ b/drivers

RE: [RFC PATCH v12 07/11] psci: Add hypercall service for kvm ptp.

2020-05-26 Thread Jianyong Wu
Hi Steven, > -Original Message- > From: Steven Price > Sent: Tuesday, May 26, 2020 7:02 PM > To: Jianyong Wu ; net...@vger.kernel.org; > yangbo...@nxp.com; john.stu...@linaro.org; t...@linutronix.de; > pbonz...@redhat.com; sean.j.christopher...@intel.com; m...@kernel.org; > richardcoch...

Re: [PATCH 1/1] dt-bindings: MIPS: Document Ingenic SoCs binding.

2020-05-26 Thread Zhou Yanjie
Hi Paul, 在 2020/5/27 上午3:10, Paul Cercueil 写道: Hi Zhou, Le mer. 27 mai 2020 à 1:07, 周琰杰 (Zhou Yanjie) a écrit : Document the available properties for the SoC root node and the CPU nodes of the devicetree for the Ingenic XBurst SoCs. Tested-by: H. Nikolaus Schaller Tested-by: Paul Boddie S

[PATCH] MIPS: Fix IRQ tracing when call handle_fpe() and handle_msa_fpe()

2020-05-26 Thread YuanJunQing
Register "a1" is unsaved in this function, when CONFIG_TRACE_IRQFLAGS is enabled, the TRACE_IRQS_OFF macro will call trace_hardirqs_off(), and this may change register "a1". The changed register "a1" as argument will be send to do_fpe() and do_msa_fpe(). Signed-off-by: YuanJunQing --- arch

[v3,1/1] hwmon:(nct7904) Set default timeout

2020-05-26 Thread yuechao.zhao
From: Yuechao Zhao The timeout module parameter should not be used for setting the default timeout. Because, if you set the timeout = 0, the default timeout will be meaningless. And the timeout module parameter of 0 means "no timeout module paraameter specified". Signed-off-by: Yuechao Zhao ---

Re: [PATCH] HID: multitouch: enable multi-input as a quirk for some devices

2020-05-26 Thread Kai-Heng Feng
> On May 26, 2020, at 23:07, Benjamin Tissoires > wrote: > > Two touchpad/trackstick combos are currently not behaving properly. > They define a mouse emulation collection, as per Win8 requirements, > but also define a separate mouse collection for the trackstick. > > The way the kernel curr

不況に強い社会福祉事業 新規参入オンラインセミナー

2020-05-26 Thread 社会福祉プロジェクト
代表者様 社会福祉事業を応援するメディアを運営しております 社会福祉プロジェクトと申します。 今、新規事業をお考えの経営者様を対象に 社会福祉事業が大変注目されているのを ご存知でしょうか? 今月複数回にわたって開催された 社会福祉プロジェクトオンラインセミナーも 大変な盛会のうちに終える事となりました。 社会福祉プロジェクトセミナーを少しのぞいてみる。 https://fukushi-service.work/seminar/ 実際にセミナーに参加された方からも 「福祉総合企業というビジネスモデルが 印象的でした。」 「リピート率が高い、高収益、貢献ビジネス。 青山先生の

Re: [PATCH] macvlan: Skip loopback packets in RX handler

2020-05-26 Thread David Miller
From: Alexander A Sverdlin Date: Tue, 26 May 2020 14:27:51 +0200 > From: Alexander Sverdlin > > Ignore loopback-originatig packets soon enough and don't try to process L2 > header where it doesn't exist. The very similar br_handle_frame() in bridge > code performs exactly the same check. > > T

Re: [PATCH] HID: multitouch: Remove MT_CLS_WIN_8_DUAL

2020-05-26 Thread Kai-Heng Feng
> On May 26, 2020, at 16:43, Benjamin Tissoires > wrote: > > On Tue, May 26, 2020 at 10:24 AM Jiri Kosina wrote: >> >> On Tue, 14 Apr 2020, Kai-Heng Feng wrote: >> >>> After commit c23e2043d5f7 ("HID: multitouch: do not filter mice nodes"), >>> MT_CLS_WIN_8 also supports mouse nodes, hence

[PATCH V2] mfd: sprd: Add wakeup capability for PMIC irq

2020-05-26 Thread Chunyan Zhang
From: Baolin Wang When changing to use suspend-to-idle to save power, the PMIC irq can not wakeup the system due to lack of wakeup capability, which will cause the sub-irqs (such as power key) of the PMIC can not wake up the system. Thus we can add the wakeup capability for PMIC irq to solve this

Re: [PATCH v2 0/4] x86/boot: Remove runtime relocations from compressed kernel

2020-05-26 Thread Sedat Dilek
On Tue, May 26, 2020 at 5:31 PM Arvind Sankar wrote: > > On Tue, May 26, 2020 at 05:07:24PM +0200, Sedat Dilek wrote: > > > > > > > > > > Maybe this should be: > > > > > > [ arch/x86/boot/compressed/Makefile ] > > > > > > -KBUILD_CFLAGS += -include hidden.h > > > +KBUILD_CFLAGS += -include ./hidde

Re: [PATCH v4 6/7] KVM: MIPS: clean up redundant 'kvm_run' parameters

2020-05-26 Thread Tianjia Zhang
On 2020/4/27 13:40, Huacai Chen wrote: Reviewed-by: Huacai Chen On Mon, Apr 27, 2020 at 12:35 PM Tianjia Zhang wrote: In the current kvm version, 'kvm_run' has been included in the 'kvm_vcpu' structure. For historical reasons, many kvm-related function parameters retain the 'kvm_run' and

[PATCH] iommu/iova: Free global iova rcache on iova alloc failure

2020-05-26 Thread vjitta
From: Vijayanand Jitta When ever an iova alloc request fails we free the iova ranges present in the percpu iova rcaches and then retry but the global iova rcache is not freed as a result we could still see iova alloc failure even after retry as global rcache is still holding the iova's which can

[PATCH v2] clk: mediatek: assign the initial value to clk_init_data of mtk_mux

2020-05-26 Thread Weiyi Lu
When some new clock supports are introduced, e.g. [1] it might lead to an error although it should be NULL because clk_init_data is on the stack and it might have random values if using without initialization. Add the missing initial value to clk_init_data. [1] https://android-review.googlesource.

[PATCH v3 3/4] kdb: Make kdb_printf robust to run in NMI context

2020-05-26 Thread Sumit Garg
While rounding up CPUs via NMIs, its possible that a rounded up CPU maybe holding a console port lock leading to kgdb master CPU stuck in a deadlock during invocation of console write operations. So in order to avoid such a deadlock, enable oops_in_progress prior to invocation of console handlers.

[PATCH v3 2/4] kdb: Check status of console prior to invoking handlers

2020-05-26 Thread Sumit Garg
Check if a console is enabled prior to invoking corresponding write handler. Suggested-by: Sergey Senozhatsky Signed-off-by: Sumit Garg --- kernel/debug/kdb/kdb_io.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/debug/kdb/kdb_io.c b/kernel/debug/kdb/kdb_io.c index f6b4d47..349dfc

[PATCH v3 0/4] kdb: Improve console handling

2020-05-26 Thread Sumit Garg
This patch-set is aimed to improve console handling especially when kdb operates in NMI context. Brief description of enhancements: - Add status check for console prior to invoking corresponding handler. - Fixup to avoid possible deadlock in NMI context due to usage of locks in the console handl

[PATCH v3 4/4] kdb: Switch kdb_msg_write() to use safer polling I/O

2020-05-26 Thread Sumit Garg
In kgdb NMI context, calling console handlers isn't safe due to locks used in those handlers which could lead to a deadlock. Although, using oops_in_progress increases the chance to bypass locks in most console handlers but it might not be sufficient enough in case a console uses more locks (VT/TTY

Re: [PATCH v2] net: phy: at803x: add cable diagnostics support for ATH9331 and ATH8032

2020-05-26 Thread David Miller
From: Oleksij Rempel Date: Wed, 27 May 2020 07:08:43 +0200 > Add support for Atheros 100Base-T PHYs. The only difference seems to be > the ability to test 2 pairs instead of 4 and the lack of 1000Base-T > specific register. > > Only the ATH9331 was tested with this patch. > > Signed-off-by: Ole

Re: [PATCH v2 0/4] x86/boot: Remove runtime relocations from compressed kernel

2020-05-26 Thread Sedat Dilek
On Tue, May 26, 2020 at 5:36 PM Arvind Sankar wrote: > > On Tue, May 26, 2020 at 04:50:38PM +0200, Sedat Dilek wrote: > > On Tue, May 26, 2020 at 4:47 PM Arvind Sankar wrote: > > > > > > On Tue, May 26, 2020 at 02:44:29PM +0200, Sedat Dilek wrote: > > > > > > > > Are those diffs correct when usin

[PATCH v3 1/4] kdb: Re-factor kdb_printf() message write code

2020-05-26 Thread Sumit Garg
Re-factor kdb_printf() message write code in order to avoid duplication of code and thereby increase readability. Signed-off-by: Sumit Garg --- kernel/debug/kdb/kdb_io.c | 61 +-- 1 file changed, 32 insertions(+), 29 deletions(-) diff --git a/kernel/d

Re: [PATCH] power: reset: vexpress: fix build issue

2020-05-26 Thread Anders Roxell
On Tue, 26 May 2020 at 17:41, Rob Herring wrote: > > " On Mon, May 25, 2020 at 11:38 PM Nathan Chancellor > wrote: > > > > On Mon, May 25, 2020 at 07:37:45PM -0400, Valdis Klētnieks wrote: > > > On Sun, 24 May 2020 15:20:25 -0700, Nathan Chancellor said: > > > > > > > arm-linux-gnueabi-ld: driver

[PATCH V7 0/3] Convert QUP bindings to YAML and add ICC, pin swap doc

2020-05-26 Thread Akash Asthana
Changes in V6: - As per Rob's suggestion moved pin swap documentation from QUP to serial.yaml file[PATCH V6 3/3]. Changes in V4: - Add interconnect binding patch. - Add UART pin swap binding patch. Akash Asthana (3): dt-bindings: geni-se: Convert QUP geni-se bindings to YAML dt-bindings

[PATCH V7 3/3] dt-bindings: serial: Add binding for UART pin swap

2020-05-26 Thread Akash Asthana
Add documentation to support RX-TX & CTS-RTS GPIO pin swap in HW. Signed-off-by: Akash Asthana Reviewed-by: Stephen Boyd --- Changes in V7: - As per Rob's comment, added type: boolean to properties. Documentation/devicetree/bindings/serial/serial.yaml | 8 1 file changed, 8 insertion

Re: [PATCH v1 2/2] Add PWM driver for LGM

2020-05-26 Thread Tanwar, Rahul
Hi Uwe, Thanks for review. On 22/5/2020 4:56 pm, Uwe Kleine-König wrote: > Hello, > > On Fri, May 22, 2020 at 03:41:59PM +0800, Rahul Tanwar wrote: >> Add PWM controller driver for Intel's Lightning Mountain(LGM) SoC. >> >> Signed-off-by: Rahul Tanwar >> --- >> drivers/pwm/Kconfig |

[PATCH V7 2/3] dt-bindings: geni-se: Add interconnect binding for GENI QUP

2020-05-26 Thread Akash Asthana
Add documentation for the interconnect and interconnect-names properties for the GENI QUP. Signed-off-by: Akash Asthana Reviewed-by: Stephen Boyd --- Changes in V5: - Add interconnect property for QUP wrapper (parent node). - Add minItems = 2 for interconnect property in child nodes Changes i

[PATCH V7 1/3] dt-bindings: geni-se: Convert QUP geni-se bindings to YAML

2020-05-26 Thread Akash Asthana
Convert QUP geni-se bindings to DT schema format using json-schema. Signed-off-by: Akash Asthana Reviewed-by: Rob Herring Reviewed-by: Stephen Boyd --- Changes in V2: - As per Stephen's comment corrected defintion of interrupts for UART node. Any valid UART node must contain atleast 1 inter

Re: [PATCH v6 2/5] remoteproc: qcom: Introduce helper to store pil info in IMEM

2020-05-26 Thread Stephen Boyd
Quoting Bjorn Andersson (2020-05-26 22:48:46) > diff --git a/drivers/remoteproc/qcom_pil_info.c > b/drivers/remoteproc/qcom_pil_info.c > new file mode 100644 > index ..0785c7cde2d3 > --- /dev/null > +++ b/drivers/remoteproc/qcom_pil_info.c > @@ -0,0 +1,124 @@ > +// SPDX-License-Identif

Re: [PATCH v2 1/2] perf evlist: Ensure grouped events with same cpu map

2020-05-26 Thread Jin, Yao
Hi Jiri, On 5/27/2020 11:20 AM, Jin, Yao wrote: Hi Jiri, On 5/26/2020 7:51 PM, Jiri Olsa wrote: On Mon, May 25, 2020 at 02:55:58PM +0800, Jin Yao wrote: SNIP diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c index 2a9de6491700..1161cffc0688 100644 --- a/tools/perf/util/evlist

Re: [PATCH v6 3/5] remoteproc: qcom: Update PIL relocation info on load

2020-05-26 Thread Stephen Boyd
Quoting Bjorn Andersson (2020-05-26 22:48:47) > Update the PIL relocation information in IMEM with information about > where the firmware for various remoteprocs are loaded. > > Reviewed-by: Vinod Koul > Signed-off-by: Bjorn Andersson > --- Reviewed-by: Stephen Boyd

Re: KMSAN: uninit-value in bpf_skb_load_helper_32

2020-05-26 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:94bc4cd0 net: bpf: kmsan: disable CONFIG_BPF_JIT under KMSAN git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=149b3d4a10 kernel config: https://syzkall

Re: [RFC PATCH v4 01/13] ptrace: Use regset_size() for dynamic regset size.

2020-05-26 Thread Greentime Hu
Oleg Nesterov 於 2020年5月26日 週二 下午10:00寫道: > > On 05/26, Greentime Hu wrote: > > > > @@ -882,13 +882,18 @@ static int ptrace_regset(struct task_struct *task, > > int req, unsigned int type, > > const struct user_regset_view *view = task_user_regset_view(task); > > const struct user_regs

[PATCH v2 2/3] MIPS: Move kernel head into a standalone section

2020-05-26 Thread Jiaxun Yang
That's what already done by Arm64 and other architectures. That would allow us put more things like PE headers safely into the header. Signed-off-by: Jiaxun Yang --- arch/mips/kernel/head.S| 4 ++-- arch/mips/kernel/vmlinux.lds.S | 8 ++-- 2 files changed, 8 insertions(+), 4 deletion

[PATCH v2 1/3] MIPS: head.S: Always jump to kernel_entry at head of text

2020-05-26 Thread Jiaxun Yang
Buggy loaders like early version of PMON2000 sometimes ignore elf_entry and goto start of text directly. That would help with dealing with these loaders. Signed-off-by: Jiaxun Yang --- arch/mips/kernel/head.S | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/mips/kernel/head.S b/arch/mi

[PATCH v2 0/3] Buggy bootloader workaround v2

2020-05-26 Thread Jiaxun Yang
v2: Fixed typo due to keyboard failure. Jiaxun Yang (3): MIPS: head.S: Always jump to kernel_entry at head of text MIPS: Move kernel head into a standalone section MIPS: Loongson64: select NO_EXCEPT_FILL arch/mips/Kconfig | 1 + arch/mips/kernel/head.S| 6 ++ arch/

[PATCH v2 3/3] MIPS: Loongson64: select NO_EXCEPT_FILL

2020-05-26 Thread Jiaxun Yang
Loongson64 load kernel at 0x8200 and allocate exception vectors by ebase. So we don't need to reserve space for exception vectors at head of kernel. Signed-off-by: Jiaxun Yang --- arch/mips/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig inde

Re: [PATCH v4] workqueue: Remove unnecessary kfree() call in rcu_free_wq()

2020-05-26 Thread Markus Elfring
> The callback function "rcu_free_wq" could be called after memory > was released for "wq->rescuer" already and assignment is empty. so > remove unnecessary kfree(NULL). I have got the impression that also this wording approach contains weaknesses. How do you think about a wording variant like the

Re: [PATCH] clk: versatile: remove redundant assignment to pointer clk

2020-05-26 Thread Stephen Boyd
Quoting Colin King (2020-05-26 15:41:16) > From: Colin Ian King > > The pointer clk is being initialized with a value that is never read > and is being updated with a new value later on. The initialization > is redundant and can be removed. > > Addresses-Coverity: ("Unused value") > Signed-off-b

Re: [RESEND PATCH v2 2/4] dt-bindings: clk: sprd: add mipi_csi_xx clocks for SC9863A

2020-05-26 Thread Stephen Boyd
Quoting Chunyan Zhang (2020-05-26 22:36:36) > From: Chunyan Zhang > > mipi_csi_xx clocks are used by camera sensors. > > Signed-off-by: Chunyan Zhang > Acked-by: Rob Herring > --- Applied to clk-next

Re: [RESEND PATCH v2 1/4] clk: sprd: check its parent status before reading gate clock

2020-05-26 Thread Stephen Boyd
Quoting Chunyan Zhang (2020-05-26 22:36:35) > From: Chunyan Zhang > > Some clocks only can be accessed if their parent is enabled. mipi_csi_xx > clocks on SC9863A are an examples. We have to ensure the parent clock is > enabled when reading those clocks. > > Signed-off-by: Chunyan Zhang > ---

Re: [RESEND PATCH v2 3/4] clk: sprd: add dt-bindings include for mipi_csi_xx clocks

2020-05-26 Thread Stephen Boyd
Quoting Chunyan Zhang (2020-05-26 22:36:37) > From: Chunyan Zhang > > mipi_csi_xx clocks are used by camera sensors. > > Signed-off-by: Chunyan Zhang > Acked-by: Rob Herring > --- Applied to clk-next

Re: [RESEND PATCH v2 4/4] clk: sprd: add mipi_csi_xx gate clocks

2020-05-26 Thread Stephen Boyd
Quoting Chunyan Zhang (2020-05-26 22:36:38) > From: Chunyan Zhang > > mipi_csi_xx clocks are used by camera sensors. > > Signed-off-by: Chunyan Zhang > --- Applied to clk-next

Re: [PATCH v1 1/1] PCI/ERR: Handle fatal error recovery for non-hotplug capable devices

2020-05-26 Thread Yicong Yang
On 2020/5/27 12:04, Kuppuswamy, Sathyanarayanan wrote: > > > On 5/26/20 8:50 PM, Yicong Yang wrote: >> Hi, >> >> >> On 2020/5/27 9:31, Kuppuswamy, Sathyanarayanan wrote: >>> Hi, >>> >>> On 5/21/20 7:56 PM, Yicong Yang wrote: On 2020/5/22 3:31, Kuppuswamy, Sathyanarayanan wrote: >>>

Re: [PATCH v11 00/56] atmel_mxt_ts misc

2020-05-26 Thread Dmitry Torokhov
Hi Jiada, On Thu, May 07, 2020 at 10:56:00PM -0700, Jiada Wang wrote: > This patch-set forward ports Nick Dyer's work in ndyer/linux github > repository as long as some other features and fixes Sorry for ignoring the series for quite a while. I guess my biggest issue with the series is that quite

Re: [PATCH 01/11] mm/page_isolation: prefer the node of the source page

2020-05-26 Thread Joonsoo Kim
> > > mm/page_isolation.c | 4 +++- > > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > > > diff --git a/mm/page_isolation.c b/mm/page_isolation.c > > > index 2c11a38..7df89bd 100644 > > > --- a/mm/page_isolation.c > > > +++ b/mm/page_isolation.c > > > @@ -300,5 +300,7 @@ int test_pages_i

[PATCH v2 01/12] mm/page_isolation: prefer the node of the source page

2020-05-26 Thread js1304
From: Joonsoo Kim For locality, it's better to migrate the page to the same node rather than the node of the current caller's cpu. Acked-by: Roman Gushchin Signed-off-by: Joonsoo Kim --- mm/page_isolation.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mm/page_isolati

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