[PATCH v2 04/12] ppc64/kexec_file: avoid stomping memory used by special regions

2020-07-02 Thread Hari Bathini
crashkernel region could have an overlap with special memory regions like opal, rtas, tce-table & such. These regions are referred to as exclude memory ranges. Setup this ranges during image probe in order to avoid them while finding the buffer for different kdump segments. Override arch_kexec_loc

[PATCH v2 05/12] powerpc/drmem: make lmb walk a bit more flexible

2020-07-02 Thread Hari Bathini
Currently, numa & prom are the users of drmem lmb walk code. Loading kdump with kexec_file also needs to walk the drmem LMBs to setup the usable memory ranges for kdump kernel. But there are couple of issues in using the code as is. One, walk_drmem_lmb() code is built into the .init section current

[PATCH v2 03/12] powerpc/kexec_file: add helper functions for getting memory ranges

2020-07-02 Thread Hari Bathini
In kexec case, the kernel to be loaded uses the same memory layout as the running kernel. So, passing on the DT of the running kernel would be good enough. But in case of kdump, different memory ranges are needed to manage loading the kdump kernel, booting into it and exporting the elfcore of the

[PATCH v2 02/12] powerpc/kexec_file: mark PPC64 specific code

2020-07-02 Thread Hari Bathini
Some of the kexec_file_load code isn't PPC64 specific. Move PPC64 specific code from kexec/file_load.c to kexec/file_load_64.c. Also, rename purgatory/trampoline.S to purgatory/trampoline_64.S in the same spirit. Signed-off-by: Hari Bathini --- Changes in v2: * No changes. arch/powerpc/includ

[PATCH v2 00/12] ppc64: enable kdump support for kexec_file_load syscall

2020-07-02 Thread Hari Bathini
This patch series enables kdump support for kexec_file_load system call (kexec -s -p) on PPC64. The changes are inspired from kexec-tools code but heavily modified for kernel consumption. There is scope to expand purgatory to verify sha256 digest along with other improvements in purgatory code. Wil

Re: [PATCH v2] tpm: tpm2-space: Resize session and context buffers dynamically

2020-07-02 Thread Jarkko Sakkinen
On Fri, Jun 26, 2020 at 08:16:45AM -0400, Stefan Berger wrote: > On 6/26/20 7:48 AM, Jarkko Sakkinen wrote: > > On Thu, Jun 25, 2020 at 05:27:50PM -0400, Stefan Berger wrote: > > > On 6/25/20 5:25 PM, Jarkko Sakkinen wrote: > > > > On Thu, Jun 25, 2020 at 08:41:18AM -0400, Stefan Berger wrote: > >

[PATCH v2 01/12] kexec_file: allow archs to handle special regions while locating memory hole

2020-07-02 Thread Hari Bathini
Some architectures may have special memory regions, within the given memory range, which can't be used for the buffer in a kexec segment. Implement weak arch_kexec_locate_mem_hole() definition which arch code may override, to take care of special regions, while trying to locate a memory hole. Also

Re: objtool clac/stac handling change..

2020-07-02 Thread Linus Torvalds
On Thu, Jul 2, 2020 at 6:32 AM Michael Ellerman wrote: > > Probably the simplest option for us is to just handle it in our > unsafe_op_wrap(). I'll try and come up with something tomorrow. IMy suggestion was to basically just always handle it in all exception cases. And note that IU don't mean t

Re: Tracing: rb_head_page_deactivate() caught in an infinite loop

2020-07-02 Thread rananta
Hi Steven, Thank you for responding. On 2020-07-01 19:03, Steven Rostedt wrote: On Wed, 01 Jul 2020 10:07:06 -0700 rana...@codeaurora.org wrote: Hi Steven and Mingo, Hi Raghavendra, While trying to adjust the buffer size (echo > /sys/kernel/debug/tracing/buffer_size_kb), we see that th

Re: linux-next: umh: fix processed error when UMH_WAIT_PROC is used seems to break linux bridge on s390x (bisected)

2020-07-02 Thread Luis Chamberlain
On Thu, Jul 02, 2020 at 01:26:53PM +0900, Tetsuo Handa wrote: > On 2020/07/02 0:38, Luis Chamberlain wrote: > > @@ -156,6 +156,18 @@ static void call_usermodehelper_exec_sync(struct > > subprocess_info *sub_info) > > */ > > if (KWIFEXITED(ret)) > > sub_

Re: weird loadavg on idle machine post 5.7

2020-07-02 Thread Dave Jones
On Thu, Jul 02, 2020 at 01:15:48PM -0400, Dave Jones wrote: > When I upgraded my firewall to 5.7-rc2 I noticed that on a mostly > idle machine (that usually sees loadavg hover in the 0.xx range) > that it was consistently above 1.00 even when there was nothing running. > All that perf showed wa

Re: [PATCH tip/core/rcu 03/17] rcu/tree: Skip entry into the page allocator for PREEMPT_RT

2020-07-02 Thread Uladzislau Rezki
On Thu, Jul 02, 2020 at 04:12:16PM +0200, Sebastian Andrzej Siewior wrote: > On 2020-06-30 11:35:34 [-0700], Paul E. McKenney wrote: > > > This is not going to work together with the "wait context validator" > > > (CONFIG_PROVE_RAW_LOCK_NESTING). As of -rc3 it should complain about > > > printk() w

Re: [PATCH v4] selftests: tpm: upgrade TPM2 tests from Python 2 to Python 3

2020-07-02 Thread Jarkko Sakkinen
On Fri, Jun 26, 2020 at 11:40:52AM +0800, Pengfei Xu wrote: > Python 2 is no longer supported by the Python upstream project, so > upgrade TPM2 tests to Python 3. > > Signed-off-by: Pengfei Xu I think that it's perfect now. Thank you. Also 1. I checked that scripts/checkpatch.pl did not report

Re: [PATCH 1/2] moduleparams: Add hex type parameter

2020-07-02 Thread Linus Torvalds
On Thu, Jul 2, 2020 at 7:42 AM Christian König wrote: > > I'm just not sure how well this is received upstream because it only > covers u32 > > On the other hand that is probably also the most used. Not necessarily true. I'd argue that "unsigned long" is equally possible for some bit mask (or ot

Re: [PATCH 15/15] mmc: host: sdhci-iproc: Tell the compiler that ACPI functions may not be used

2020-07-02 Thread Scott Branden
Hi Lee, On 2020-07-01 5:47 a.m., Lee Jones wrote: ... as is the case when !CONFIG_ACPI. Fixes the following W=1 kernel build warning: mmc/host/sdhci-iproc.c:297:36: warning: ‘sdhci_iproc_acpi_ids’ defined but not used [-Wunused-const-variable=] Cc: Adrian Hunter Cc: Ray Jui Cc: Scott Bra

Re: [PATCH] igb: reinit_locked() should be called with rtnl_lock

2020-07-02 Thread Francesco Ruggeri
> Do not worry about the other Intel drivers, I have our developers looking at > each of our drivers for the locking issue. > > @David Miller - I am picking up this patch There seems to be a second race, independent from the original one, that results in a divide error: kworker reboot -f

Re: [PATCH v5 01/12] iommu: Change type of pasid to u32

2020-07-02 Thread Fenghua Yu
Hi, Felix, Thomas, Joerg and maintainers, On Tue, Jun 30, 2020 at 10:12:38PM -0400, Felix Kuehling wrote: > Am 2020-06-30 um 7:44 p.m. schrieb Fenghua Yu: > You didn't change the return types of amdgpu_pasid_alloc and > kfd_pasid_alloc. amdgpu_pasid_alloc returns int, because it can return > negat

[PATCH] MAINTAINERS: Add Shengjiu to reviewer list of sound/soc/fsl

2020-07-02 Thread Nicolin Chen
Add Shengjiu who's actively working on the latest fsl/nxp audio drivers. Signed-off-by: Nicolin Chen Cc: Shengjiu Wang --- To Shengjiu, please ack if you feel okay with this (your email address too). MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS inde

Re: [PATCH 2/2] arm64: Allocate crashkernel always in ZONE_DMA

2020-07-02 Thread Bhupesh Sharma
Hi Will, On Thu, Jul 2, 2020 at 1:20 PM Will Deacon wrote: > > On Thu, Jul 02, 2020 at 03:44:20AM +0530, Bhupesh Sharma wrote: > > commit bff3b04460a8 ("arm64: mm: reserve CMA and crashkernel in > > ZONE_DMA32") allocates crashkernel for arm64 in the ZONE_DMA32. > > > > However as reported by Pra

[PATCH v2 3/6] ASoC: fsl: fsl-asoc-card: fix kernel-doc

2020-07-02 Thread Pierre-Louis Bossart
Fix W=1 warnings. Kernel-doc syntax was not properly used. Acked-by: Nicolin Chen Signed-off-by: Pierre-Louis Bossart --- sound/soc/fsl/fsl-asoc-card.c | 21 + 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-as

[PATCH v2 4/6] ASoC: fsl: fsl_spdif: fix kernel-doc

2020-07-02 Thread Pierre-Louis Bossart
Fix W=1 warnings. kernel-doc syntax was not followed and missing parameter Acked-by: Nicolin Chen Signed-off-by: Pierre-Louis Bossart --- sound/soc/fsl/fsl_spdif.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_spdif.c b/sound/soc/fsl/fsl_spdif.c inde

[PATCH v2 5/6] ASoC: fsl: fsl_asrc: fix kernel-doc

2020-07-02 Thread Pierre-Louis Bossart
Fix W=1 warnings. fix kernel doc and describe arguments. Acked-by: Nicolin Chen Signed-off-by: Pierre-Louis Bossart --- sound/soc/fsl/fsl_asrc.c | 57 +++- 1 file changed, 39 insertions(+), 18 deletions(-) diff --git a/sound/soc/fsl/fsl_asrc.c b/sound/soc/fs

[PATCH v2 6/6] ASoC: fsl: fsl_esai: fix kernel-doc

2020-07-02 Thread Pierre-Louis Bossart
Fix W=1 warnings. Fix kernel-doc syntax and add missing parameters. Acked-by: Nicolin Chen Signed-off-by: Pierre-Louis Bossart --- sound/soc/fsl/fsl_esai.c | 32 ++-- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/sound/soc/fsl/fsl_esai.c b/sound/soc

[PATCH v2 2/6] ASoC: fsl: fsl_ssi: fix kernel-doc

2020-07-02 Thread Pierre-Louis Bossart
Fix W=1 warnings. The kernel-doc support is partial, add more descriptions and follow proper syntax Acked-by: Nicolin Chen Signed-off-by: Pierre-Louis Bossart --- sound/soc/fsl/fsl_ssi.c | 70 ++--- 1 file changed, 44 insertions(+), 26 deletions(-) diff --gi

[PATCH v2 1/6] ASoC: fsl: fsl_ssi_dbg: remove spurious kernel-doc comment start

2020-07-02 Thread Pierre-Louis Bossart
Fix W=1 warnings. There is no kernel-doc here. Acked-by: Nicolin Chen Signed-off-by: Pierre-Louis Bossart --- sound/soc/fsl/fsl_ssi_dbg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_ssi_dbg.c b/sound/soc/fsl/fsl_ssi_dbg.c index 2a20ee23dc52..2c46c55

Re: [net-next,PATCH 4/4] dt-bindings: mdio-ipq4019: add clock support

2020-07-02 Thread Robert Marko
On Thu, Jul 2, 2020 at 3:38 PM Andrew Lunn wrote: > > > + clock-frequency: > > +default: 1 > > IEEE 802.3 says the default should be 2.5MHz. Some PHYs will go > faster, but 100MHz seems unlikely! This MDIO controller has an internal divider, by default its set for 100MHz clock. In IPQ

[PATCH v4 9/9] arm64: dts: rockchip: add isp and sensors for Scarlet

2020-07-02 Thread Helen Koike
From: Eddie Cai Enable ISP and camera sensor ov2685 and ov5695 for Scarlet Chromebook Verified with: make ARCH=arm64 dtbs_check Signed-off-by: Shunqian Zheng Signed-off-by: Eddie Cai Signed-off-by: Tomasz Figa Signed-off-by: Helen Koike --- This patch is based on: https://chromium-revi

[PATCH v4 5/9] media: staging: rkisp1: remove unecessary clocks

2020-07-02 Thread Helen Koike
aclk_isp_wrap is a child of aclk_isp, and hclk_isp_wrap is a child of hclk_isp, thus we can remove parents from the list. Also, for the isp0, we only need the ISP clock, ACLK and HCLK. In the future we'll need a pixel clock for RK3288 and RK3399, and a JPEG clock for RK3288. So with the goal to c

[PATCH v4 8/9] arm64: dts: rockchip: add isp0 node for rk3399

2020-07-02 Thread Helen Koike
From: Shunqian Zheng RK3399 has two ISPs, but only isp0 was tested. Add isp0 node in rk3399 dtsi Verified with: make ARCH=arm64 dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/media/rockchip-isp1.yaml Signed-off-by: Shunqian Zheng Signed-off-by: Jacob Chen Signed-off-by: Helen K

[PATCH v4 7/9] media: MAINTAINERS: rkisp1: add path to dt-bindings

2020-07-02 Thread Helen Koike
The Rockchip ISP bindings was moved out of staging. Update MAINTAINERS file with the new path. Fields sorted according to output of ./scripts/parse-maintainers.pl --input=MAINTAINERS --output=MAINTAINERS --order Signed-off-by: Helen Koike --- V3: - Add line: L: linux-rockc...@lists.infrade

[PATCH v4 6/9] dt-bindings: media: rkisp1: move rockchip-isp1 bindings out of staging

2020-07-02 Thread Helen Koike
Move rkisp1 bindings to Documentation/devicetree/bindings/media Verified with: make ARCH=arm64 dt_binding_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/media/rockchip-isp1.yaml Signed-off-by: Helen Koike Acked-by: Rob Herring --- .../devicetree/bindings/media/rockchip-isp1.yaml

[PATCH v4 2/9] media: staging: dt-bindings: rkisp1: add required items in i2c example

2020-07-02 Thread Helen Koike
Add missing required items in Rockchip ISP1 dt-bindings example for a complete i2c node. Signed-off-by: Helen Koike --- Changes in v2: - new patch in the series --- .../devicetree/bindings/media/rockchip-isp1.yaml | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/sta

Re: [PATCH v3 2/2] ima: move APPRAISE_BOOTPARAM dependency on ARCH_POLICY to runtime

2020-07-02 Thread Bruno Meneguele
On Tue, Jun 30, 2020 at 02:00:43PM -0300, Bruno Meneguele wrote: > On Tue, Jun 30, 2020 at 07:00:48AM -0400, Mimi Zohar wrote: > > On Mon, 2020-06-29 at 20:47 -0300, Bruno Meneguele wrote: > > > > > > > > > I'm not if the "secure_boot" flag is available prior to calling > > > > default_appraise_s

[PATCH v4 3/9] media: staging: dt-bindings: rkisp1: re-order properties

2020-07-02 Thread Helen Koike
Organize properties order in dt-binbings to move it out of staging. On top: compatible, reg and interrupts. Then alphabetical order, then properties starting with '#'. Signed-off-by: Helen Koike --- V2: - this is a new patch in the series --- .../bindings/media/rockchip-isp1.yaml | 32

[PATCH v4 1/9] media: staging: dt-bindings: rkisp1: add missing required nodes

2020-07-02 Thread Helen Koike
Add missing required nodes in json-schema yaml file for Rockchip ISP1 dt-bindings. Signed-off-by: Helen Koike --- Changes in v2: - New patch in the series --- .../devicetree/bindings/media/rockchip-isp1.yaml | 8 1 file changed, 8 insertions(+) diff --git a/drivers/staging/m

[PATCH v4 0/9] move Rockchip ISP bindings out of staging / add ISP DT nodes for RK3399

2020-07-02 Thread Helen Koike
Move the bindings out of drivers/staging and place them in Documentation/devicetree/bindings instead. Also, add DT nodes for RK3399 and verify with make ARCH=arm64 dtbs_check and make ARCH=arm64 dt_binding_check. Tested by verifying images streamed from Scarlet Chromebook Changes in v4: - simpli

[PATCH v4 4/9] media: staging: dt-bindings: rkisp1: fix "no reg" error in parent node

2020-07-02 Thread Helen Koike
Fix the following error found with make ARCH=arm64 dt_binding_check: Documentation/devicetree/bindings/media/rockchip-isp1.example.dts:24.27-101.11: Warning (unit_address_vs_reg): /example-0/parent@0: node has a unit name, but no reg or ranges property Reported-by: Johan Jonker Signed-off-by: H

Re: [PATCH 1/2] bus: ti-sysc: Fix wakeirq sleeping function called from invalid context

2020-07-02 Thread Tony Lindgren
* Tony Lindgren [200702 19:03]: > * Suman Anna [200702 18:01]: > > Hi Tony, > > > > On 7/2/20 12:49 PM, Tony Lindgren wrote: > > > With CONFIG_DEBUG_ATOMIC_SLEEP enabled we can see the following with > > > wakeirqs and serial console idled: > > > > Which devices are these? I have one patch from

Re: [PATCH 0/5] RFC: connector: Add network namespace awareness

2020-07-02 Thread Christian Brauner
On Thu, Jul 02, 2020 at 08:17:38AM -0500, Eric W. Biederman wrote: > Matt Bennett writes: > > > Previously the connector functionality could only be used by processes > > running in the > > default network namespace. This meant that any process that uses the > > connector functionality > > coul

Re: [PATCH v4] IB/sa: Resolving use-after-free in ib_nl_send_msg

2020-07-02 Thread Jason Gunthorpe
On Tue, Jun 23, 2020 at 07:13:09PM -0700, Divya Indi wrote: > Commit 3ebd2fd0d011 ("IB/sa: Put netlink request into the request list before > sending")' > - > 1. Adds the query to the request list before ib_nl_snd_msg. > 2. Moves ib_nl_send_msg out of spinlock, hence safe to use gfp_mask as is. >

Re: [PATCH 0/5] RFC: connector: Add network namespace awareness

2020-07-02 Thread Eric W. Biederman
Matt Bennett writes: > Previously the connector functionality could only be used by processes > running in the > default network namespace. This meant that any process that uses the > connector functionality > could not operate correctly when run inside a container. This is a draft > patch ser

Re: [PATCH 6/6] ASoC: fsl: fsl_esai: fix kernel-doc

2020-07-02 Thread Pierre-Louis Bossart
On 7/2/20 1:55 PM, Nicolin Chen wrote: On Thu, Jul 02, 2020 at 12:22:27PM -0500, Pierre-Louis Bossart wrote: Fix W=1 warnings. Fix kernel-doc syntax and add missing parameters. Signed-off-by: Pierre-Louis Bossart + * fsl_esai_set_dai_sysclk - This function mainly configures the clock fr

Re: [PATCH 3/6] ASoC: fsl: fsl-asoc-card: fix kernel-doc

2020-07-02 Thread Pierre-Louis Bossart
On 7/2/20 1:47 PM, Nicolin Chen wrote: On Thu, Jul 02, 2020 at 12:22:24PM -0500, Pierre-Louis Bossart wrote: Fix W=1 warnings. Kernel-doc syntax was not properly used. Signed-off-by: Pierre-Louis Bossart --- sound/soc/fsl/fsl-asoc-card.c | 21 + 1 file changed, 9 inse

Re: [PATCH 1/2] bus: ti-sysc: Fix wakeirq sleeping function called from invalid context

2020-07-02 Thread Tony Lindgren
* Suman Anna [200702 18:01]: > Hi Tony, > > On 7/2/20 12:49 PM, Tony Lindgren wrote: > > With CONFIG_DEBUG_ATOMIC_SLEEP enabled we can see the following with > > wakeirqs and serial console idled: > > Which devices are these? I have one patch from Tero fixing similar errors in > OMAP IOMMU drive

Re: [PATCH v2 2/7] KVM: X86: Go on updating other CPUID leaves when leaf 1 is absent

2020-07-02 Thread Sean Christopherson
On Thu, Jul 02, 2020 at 11:54:03AM -0700, Sean Christopherson wrote: > On Tue, Jun 23, 2020 at 07:58:11PM +0800, Xiaoyao Li wrote: > > As handling of bits other leaf 1 added over time, kvm_update_cpuid() > > should not return directly if leaf 1 is absent, but should go on > > updateing other CPUID

Re: [PATCH v2 7/7] KVM: X86: Move kvm_apic_set_version() to kvm_update_vcpu_model()

2020-07-02 Thread Sean Christopherson
On Tue, Jun 23, 2020 at 07:58:16PM +0800, Xiaoyao Li wrote: > Obviously, kvm_apic_set_version() fits well in kvm_update_vcpu_model(). Same as the last patch, it would be nice to explicitly document that there are no dependencies between kvm_apic_set_version() and kvm_update_cpuid(). > Signed-off-

Re: [PATCH v2 6/7] KVM: X86: Move kvm_x86_ops.update_vcpu_model() into kvm_update_vcpu_model()

2020-07-02 Thread Sean Christopherson
On Tue, Jun 23, 2020 at 07:58:15PM +0800, Xiaoyao Li wrote: > kvm_x86_ops.update_vcpu_model() is used to update vmx/svm vcpu settings > based on updated CPUID settings. So it's supposed to be called after > CPUIDs are fully updated, i.e., kvm_update_cpuid(). > > Move it in kvm_update_vcpu_model().

[GIT PULL] tpmdd updates for Linux v5.8-rc4

2020-07-02 Thread Jarkko Sakkinen
Hi, These are just fixes for bugs found lately. All of them are small scale things here and there, and all of them are for previous kernel releases (the oldest appeared in v2.6.17). /Jarkko The following changes since commit cd77006e01b3198c75fb7819b3d0ff89709539bb: Merge tag 'hyperv-fixes-si

[PATCH v2 09/15] tools lib traceevent: Add more SVM exit reasons

2020-07-02 Thread Steven Rostedt
From: Jan Kiszka Exceptions require individual decoding (only feasible intercepts listed), XSETBV was missing and the AVIC brought in two new exit codes. Link: http://lkml.kernel.org/r/5741d822.3030...@web.de Link: http://lore.kernel.org/linux-trace-devel/20200625100516.365338-10-tz.stoya...@gm

[PATCH v2 01/15] tools lib traceevent: Add API to read time information from kbuffer

2020-07-02 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Add the functions kbuffer_subbuf_timestamp() and kbuffer_ptr_delta() to get the timing data stored in the ring buffer that is used to produced the time stamps of the records. This is useful for tools like trace-cmd to be able to display the content of the read da

[PATCH v2 04/15] tools lib traceevent: Add interface for options to plugins

2020-07-02 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" Add tep_plugin_add_option() and tep_plugin_print_options() to lib traceevent library that allows plugins to have their own options. For example, the function plugin by default does not print the parent, as it uses the parent to do the indenting. The "parent" op

[PATCH v2 08/15] tools lib traceevent: Add plugin for tlb_flush

2020-07-02 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" The tlb_flush tracepoints uses enums that are not yet known by the traceevent library. Add a plugin to handle that. Link: http://lore.kernel.org/linux-trace-devel/20200625100516.365338-9-tz.stoya...@gmail.com Signed-off-by: Steven Rostedt [ Ported from trace-c

[PATCH v2 14/15] tools lib traceevent: Change to SPDX License format

2020-07-02 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Replaced COPYING with a description of how the SPDX identifiers are used. Added a GPL-2.0 and LGPL-2.1 license file in the new LICENSES directory. Then removed all the license templates from the source files and replaced them with the corresponding SPDX identifier.

[PATCH v2 15/15] tools lib traceevent: Fix reporting of unknown SVM exit reasons

2020-07-02 Thread Steven Rostedt
From: Jan Kiszka On AMD, exist code -1 is also a possible value, but we use it for terminating the list of known exit reasons. This leads to EXIT_ERR being reported for unkown ones. Fix this by using an NULL string pointer as terminal. Link: http://lkml.kernel.org/r/5741d817.3070...@web.de Link:

[PATCH v2 11/15] tools lib traceevent: Add plugin for decoding syscalls/sys_enter_futex

2020-07-02 Thread Steven Rostedt
From: Julia Cartwright The futex syscall is a complicated one. It supports thirteen multiplexed operations, each with different semantics and encodings for the syscalls six arguments. Manually decoding these arguments is tedious and error prone. This plugin provides symbolic names for futex op

[PATCH v2 07/15] tools lib traceevent: Optimize pretty_print() function

2020-07-02 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" Each time the pretty_print() function is called to print an event, the event's format string is parsed. As this format string does not change, this parsing can be done only once - when the event struct is initialized. Link: https://lore.kernel.org/linux-trace

[PATCH v2 02/15] tools lib traceevent: Add proper KBUFFER_TYPE_TIME_STAMP handling

2020-07-02 Thread Steven Rostedt
From: Tom Zanussi Kernel commit dc4e2801d400 (ring-buffer: Redefine the unimplemented RINGBUF_TYPE_TIME_STAMP) changed the way the ring buffer timestamps work - after that commit the previously unimplemented RINGBUF_TYPE_TIME_STAMP type causes the time delta to be used as a timestamp rather than

Re: [PATCH v8 0/6] drm/meson: add support for Amlogic Video FBC

2020-07-02 Thread Kevin Hilman
Neil Armstrong writes: > Amlogic uses a proprietary lossless image compression protocol and format > for their hardware video codec accelerators, either video decoders or > video input encoders. > > It considerably reduces memory bandwidth while writing and reading > frames in memory. > > The und

[PATCH v2 06/15] tools lib traceevent: Add support for more printk format specifiers

2020-07-02 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" The printk format specifiers used in event's print format files extend the standard printf formats. There are a lot of new options related to printing pointers and kernel specific structures. Currently trace-cmd does not support many of them. Support for these

[PATCH v2 13/15] tools lib traceevent: Add builtin handler for trace_marker_raw

2020-07-02 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" When something is written into trace_marker_raw, it goes in as a binary. But the printk_fmt() of the event that is created (raw_data)'s format file only prints the first byte of data: print fmt: "id:%04x %08x", REC->id, (int)REC->buf[0] This is not very useful

[PATCH v2 12/15] tools lib traceevent: Move kernel_stack event handler to "function" plugin.

2020-07-02 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" The "kernel_stack" event handler does not depend on any trace-cmd context, it can be used aside from the application. The code is moved to libtraceevent "function" plugin. Link: http://lore.kernel.org/linux-trace-devel/20190726124308.18735-2-tz.stoya...@gmail

[PATCH v2 03/15] tools lib traceevent: Add tep_load_plugins_hook() API

2020-07-02 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" Add the API function tep_load_plugins_hook() to the traceevent API to allow tools a common method to load in the plugins that are part of the lib traceevent library. Link: http://lore.kernel.org/linux-trace-devel/20190802110101.14759-4-tz.stoya...@gmail.com L

[PATCH v2 05/15] tools lib traceevent: Introduced new traceevent API, for adding new plugins directories.

2020-07-02 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" Implement new traceevent plugin API, which can be used to add new plugins directories: enum tep_plugin_load_priority { TEP_PLUGIN_FIRST, TEP_PLUGIN_LAST, }; int tep_add_plugin_path(struct tep_handle *tep, char *path, enum

[PATCH v2 10/15] tools lib traceevent: Add offset option for function plugin

2020-07-02 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" When the offset option is set for the function plugin enabled, it will display the offset of the functions along with their names. This helps in finding exactly where a function was called by its parent. trace-cmd report -O parent -O offset [..] rcuc/163

[PATCH v2 00/15] tools lib traceevent: Patches from the trace-cmd repo

2020-07-02 Thread Steven Rostedt
Hi Arnaldo, I was missing a few patches, here's take two. I also changed some of the patches to state that they are coming from trace-cmd.git. -- Steve We noticed that the libtraceevent in trace-cmd.git is a bit out of sync with what is in the kernel. These patches can help bring it by in sync a

Re: [PATCH 6/6] ASoC: fsl: fsl_esai: fix kernel-doc

2020-07-02 Thread Nicolin Chen
On Thu, Jul 02, 2020 at 12:22:27PM -0500, Pierre-Louis Bossart wrote: > Fix W=1 warnings. Fix kernel-doc syntax and add missing parameters. > > Signed-off-by: Pierre-Louis Bossart > + * fsl_esai_set_dai_sysclk - This function mainly configures the clock > frequency of MCLK (HCKT/HCKR) Can drop

Re: [PATCH 1/2] mm/memcontrol: Fix OOPS inside mem_cgroup_get_nr_swap_pages()

2020-07-02 Thread Bhupesh Sharma
Hi Michal, On Thu, Jul 2, 2020 at 11:30 AM Michal Hocko wrote: > > On Thu 02-07-20 03:44:19, Bhupesh Sharma wrote: > > Prabhakar reported an OOPS inside mem_cgroup_get_nr_swap_pages() > > function in a corner case seen on some arm64 boards when kdump kernel > > runs with "cgroup_disable=memory" p

Re: [PATCH v2 2/7] KVM: X86: Go on updating other CPUID leaves when leaf 1 is absent

2020-07-02 Thread Sean Christopherson
On Tue, Jun 23, 2020 at 07:58:11PM +0800, Xiaoyao Li wrote: > As handling of bits other leaf 1 added over time, kvm_update_cpuid() > should not return directly if leaf 1 is absent, but should go on > updateing other CPUID leaves. > > Signed-off-by: Xiaoyao Li This should probably be marked for s

Re: [PATCH 5/6] ASoC: fsl: fsl_asrc: fix kernel-doc

2020-07-02 Thread Nicolin Chen
On Thu, Jul 02, 2020 at 12:22:26PM -0500, Pierre-Louis Bossart wrote: > Fix W=1 warnings. fix kernel doc and describe arguments. > > Signed-off-by: Pierre-Louis Bossart Acked-by: Nicolin Chen

Re: [PATCH 4/6] ASoC: fsl: fsl_spdif: fix kernel-doc

2020-07-02 Thread Nicolin Chen
On Thu, Jul 02, 2020 at 12:22:25PM -0500, Pierre-Louis Bossart wrote: > Fix W=1 warnings. kernel-doc syntax was not followed and missing parameter > > Signed-off-by: Pierre-Louis Bossart Acked-by: Nicolin Chen

Re: [PATCH 3/6] ASoC: fsl: fsl-asoc-card: fix kernel-doc

2020-07-02 Thread Nicolin Chen
On Thu, Jul 02, 2020 at 12:22:24PM -0500, Pierre-Louis Bossart wrote: > Fix W=1 warnings. Kernel-doc syntax was not properly used. > > Signed-off-by: Pierre-Louis Bossart > --- > sound/soc/fsl/fsl-asoc-card.c | 21 + > 1 file changed, 9 insertions(+), 12 deletions(-) > > dif

Re: [PATCH v3 6/7] sched/topology: Introduce SD metaflag for flags needing > 1 groups

2020-07-02 Thread Valentin Schneider
On 02/07/20 19:29, Dietmar Eggemann wrote: > On 01/07/2020 21:06, Valentin Schneider wrote: > > [...] > >> @@ -105,16 +122,18 @@ SD_FLAG(SD_SERIALIZE, 8, SDF_SHARED_PARENT) >> * Place busy tasks earlier in the domain >> * >> * SHARED_CHILD: Usually set on the SMT level. Technicall

Re: [PATCH v3 4/7] arm, sched/topology: Remove SD_SHARE_POWERDOMAIN

2020-07-02 Thread Valentin Schneider
On 02/07/20 17:44, Dietmar Eggemann wrote: > On 01/07/2020 21:06, Valentin Schneider wrote: >> This flag was introduced in 2014 by commit >> >> d77b3ed5c9f8 ("sched: Add a new SD_SHARE_POWERDOMAIN for sched_domain") >> >> but AFAIA it was never leveraged by the scheduler. The closest thing I ca

Re: [PATCH 2/6] ASoC: fsl: fsl_ssi: fix kernel-doc

2020-07-02 Thread Nicolin Chen
On Thu, Jul 02, 2020 at 12:22:23PM -0500, Pierre-Louis Bossart wrote: > Fix W=1 warnings. The kernel-doc support is partial, add more > descriptions and follow proper syntax > > Signed-off-by: Pierre-Louis Bossart Acked-by: Nicolin Chen

Re: [PATCH 1/6] ASoC: fsl: fsl_ssi_dbg: remove spurious kernel-doc comment start

2020-07-02 Thread Nicolin Chen
On Thu, Jul 02, 2020 at 12:22:22PM -0500, Pierre-Louis Bossart wrote: > Fix W=1 warnings. There is no kernel-doc here. > > Signed-off-by: Pierre-Louis Bossart Acked-by: Nicolin Chen

Re: [PATCH v6 0/2] Append new variables to vmcoreinfo (TCR_EL1.T1SZ for arm64 and MAX_PHYSMEM_BITS for all archs)

2020-07-02 Thread Bhupesh Sharma
On Thu, Jul 2, 2020 at 10:45 PM Catalin Marinas wrote: > > On Thu, 14 May 2020 00:22:35 +0530, Bhupesh Sharma wrote: > > Apologies for the delayed update. Its been quite some time since I > > posted the last version (v5), but I have been really caught up in some > > other critical issues. > > > >

Re: [PATCH 0/4] ASoC: fsl_asrc: allow selecting arbitrary clocks

2020-07-02 Thread Nicolin Chen
cks using > device-tree properties. We recent just merged a new change that auto-selecting internal clocks based on sample rates as the first option -- ideal ratio mode is the fallback mode now. Please refer to: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?h=next

Re: [PATCH RFC 0/7] CPU feature evaluation after microcode late loading

2020-07-02 Thread Sean Christopherson
On Thu, Jul 02, 2020 at 06:18:20PM +0300, Mihai Carabas wrote: > This RFC patch set aims to provide the ability to re-evaluate all CPU > features and take proper bug mitigation in place after a microcode > late loading. > > This was debated last year and this patch set implements a subset of > poi

Re: [RFC][PATCH] sched: Better document ttwu()

2020-07-02 Thread Valentin Schneider
Hi, On 02/07/20 13:52, Peter Zijlstra wrote: > Dave hit the problem fixed by commit: > > b6e13e85829f ("sched/core: Fix ttwu() race") > > and failed to understand much of the code involved. Per his request a > few comments to (hopefully) clarify things. > All of the below is already tremendou

Re: [PATCH v3 03/14] vfio/type1: Report iommu nesting info to userspace

2020-07-02 Thread Alex Williamson
On Wed, 24 Jun 2020 01:55:16 -0700 Liu Yi L wrote: > This patch exports iommu nesting capability info to user space through > VFIO. User space is expected to check this info for supported uAPIs (e.g. > PASID alloc/free, bind page table, and cache invalidation) and the vendor > specific format inf

Re: [PATCH] md: raid0/linear: fix dereference before null check on pointer mddev

2020-07-02 Thread Song Liu
On Thu, Jul 2, 2020 at 7:41 AM Guilherme Piccoli wrote: > > Great catch Colin, thanks! > Feel free to add my: > > Reviewed-by: Guilherme G. Piccoli Thanks Colin and Guilherme! Applied to md-next. > > > P.S. Not sure if it's only me, but the diff is soo much easier to > read when git is set to

Re: [PATCH] serial: sh-sci: Initialize spinlock for uart console

2020-07-02 Thread Lad, Prabhakar
Hi Geert, On Thu, Jul 2, 2020 at 3:39 PM Geert Uytterhoeven wrote: > > Hi Prabhakar, > > On Thu, Jul 2, 2020 at 4:05 PM Lad, Prabhakar > wrote: > > > Hi Geert, > > > > On Thu, Jul 2, 2020 at 1:52 PM Geert Uytterhoeven > > wrote: > > > > > > Hi Prabhakar, > > > > > > On Thu, Jul 2, 2020 at 1:42

Re: [PATCH V5 0/6] Support building i.MX ARMv7/ARMv8 platforms clock driver as module

2020-07-02 Thread Laurent Pinchart
Hi Anson, On Thu, Jul 02, 2020 at 11:23:55PM +0800, Anson Huang wrote: > Nowdays, there are more and more requirements of building SoC specific > drivers as modules, such as Android GKI (generic kernel image), this > patch set supports building i.MX ARMv6/ARMv7 SoCs clock drivers as modules, I'm

Re: [PATCH v3 6/7] sched/topology: Introduce SD metaflag for flags needing > 1 groups

2020-07-02 Thread Dietmar Eggemann
On 01/07/2020 21:06, Valentin Schneider wrote: [...] > @@ -105,16 +122,18 @@ SD_FLAG(SD_SERIALIZE, 8, SDF_SHARED_PARENT) > * Place busy tasks earlier in the domain > * > * SHARED_CHILD: Usually set on the SMT level. Technically could be set > further > - * up, but currently assum

Re: [PATCH v3 5/7] sched/topology: Add more flags to the SD degeneration mask

2020-07-02 Thread Dietmar Eggemann
On 01/07/2020 21:06, Valentin Schneider wrote: > I don't think it is going to change much in practice, but we were missing > those: > > o SD_BALANCE_WAKE: Used just like the other SD_BALANCE_* flags, so also > needs > 1 group. > o SD_ASYM_PACKING: Hinges on load balancing (periodic / wakeup), th

Re: [PATCH 1/8] ASoC: atmel: fix kernel-doc

2020-07-02 Thread Alexandre Belloni
On 02/07/2020 11:58:54-0500, Pierre-Louis Bossart wrote: > Fix W=1 warning > > Kernel-doc is not used in one file and missing argument in the second. > > Signed-off-by: Pierre-Louis Bossart Acked-by: Alexandre Belloni > --- > sound/soc/atmel/atmel-pcm-dma.c | 2 +- > sound/soc/atmel/atmel_ssc

[PATCH v2 02/11] xenbus: add freeze/thaw/restore callbacks support

2020-07-02 Thread Anchal Agarwal
From: Munehisa Kamata Since commit b3e96c0c7562 ("xen: use freeze/restore/thaw PM events for suspend/resume/chkpt"), xenbus uses PMSG_FREEZE, PMSG_THAW and PMSG_RESTORE events for Xen suspend. However, they're actually assigned to xenbus_dev_suspend(), xenbus_dev_cancel() and xenbus_dev_resume()

[PATCH v2 11/11] PM / hibernate: update the resume offset on SNAPSHOT_SET_SWAP_AREA

2020-07-02 Thread Anchal Agarwal
From: Aleksei Besogonov The SNAPSHOT_SET_SWAP_AREA is supposed to be used to set the hibernation offset on a running kernel to enable hibernating to a swap file. However, it doesn't actually update the swsusp_resume_block variable. As a result, the hibernation fails at the last step (after all th

Re: [RFC 0/4] Fix gfs2 readahead deadlocks

2020-07-02 Thread Andreas Gruenbacher
On Thu, Jul 2, 2020 at 8:11 PM Linus Torvalds wrote: > On Thu, Jul 2, 2020 at 9:51 AM Andreas Gruenbacher > wrote: > > > > Of this patch queue, either only the first patch or all four patches can > > be applied to fix gfs2's current issues in 5.8. Please let me know what > > you think. > > I th

[PATCH v2 10/11] xen: Update sched clock offset to avoid system instability in hibernation

2020-07-02 Thread Anchal Agarwal
Save/restore xen_sched_clock_offset in syscore suspend/resume during PM hibernation. Commit '867cefb4cb1012: ("xen: Fix x86 sched_clock() interface for xen")' fixes xen guest time handling during migration. A similar issue is seen during PM hibernation when system runs CPU intensive workload. Post

[PATCH v2 06/11] xen-blkfront: add callbacks for PM suspend and hibernation

2020-07-02 Thread Anchal Agarwal
From: Munehisa Kamata S4 power transisiton states are much different than xen suspend/resume. Former is visible to the guest and frontend drivers should be aware of the state transistions and should be able to take appropriate actions when needed. In transition to S4 we need to make sure that at

[PATCH v2 08/11] x86/xen: save and restore steal clock during PM hibernation

2020-07-02 Thread Anchal Agarwal
Save/restore steal times in syscore suspend/resume during PM hibernation. Commit '5e25f5db6abb9: ("xen/time: do not decrease steal time after live migration on xen")' fixes xen guest steal time handling during migration. A similar issue is seen during PM hibernation. Currently, steal time accountin

[PATCH v2 09/11] xen: Introduce wrapper for save/restore sched clock offset

2020-07-02 Thread Anchal Agarwal
Introduce wrappers for save/restore xen_sched_clock_offset to be used by PM hibernation code to avoid system instability during resume. Signed-off-by: Anchal Agarwal --- arch/x86/xen/time.c| 15 +-- arch/x86/xen/xen-ops.h | 2 ++ 2 files changed, 15 insertions(+), 2 deletions(-)

[PATCH v2 07/11] xen-netfront: add callbacks for PM suspend and hibernation

2020-07-02 Thread Anchal Agarwal
From: Munehisa Kamata Add freeze, thaw and restore callbacks for PM suspend and hibernation support. The freeze handler simply disconnects the frotnend from the backend and frees resources associated with queues after disabling the net_device from the system. The restore handler just changes the

[PATCH v2 04/11] x86/xen: add system core suspend and resume callbacks

2020-07-02 Thread Anchal Agarwal
From: Munehisa Kamata Add Xen PVHVM specific system core callbacks for PM hibernation support. The callbacks suspend and resume Xen primitives like shared_info, pvclock and grant table. These syscore_ops are specifically for domU hibernation. xen_suspend() calls syscore_suspend() during Xen suspe

[PATCH v2 03/11] x86/xen: Introduce new function to map HYPERVISOR_shared_info on Resume

2020-07-02 Thread Anchal Agarwal
Introduce a small function which re-uses shared page's PA allocated during guest initialization time in reserve_shared_info() and not allocate new page during resume flow. It also does the mapping of shared_info_page by calling xen_hvm_init_shared_info() to use the function. Changelog: v1->v2: Re

[PATCH v2 00/11] Fix PM hibernation in Xen guests

2020-07-02 Thread Anchal Agarwal
Hello, This series fixes PM hibernation for hvm guests running on xen hypervisor. The running guest could now be hibernated and resumed successfully at a later time. The fixes for PM hibernation are added to block and network device drivers i.e xen-blkfront and xen-netfront. Any other driver that n

Re: [PATCH 17/20] block: rename generic_make_request to submit_bio_noacct

2020-07-02 Thread Song Liu
On Wed, Jul 1, 2020 at 2:01 AM Christoph Hellwig wrote: > > generic_make_request has always been very confusingly misnamed, so rename > it to submit_bio_noacct to make it clear that it is submit_bio minus > accounting and a few checks. > > Signed-off-by: Christoph Hellwig > --- [...] > drivers/

[PATCH v2 05/11] genirq: Shutdown irq chips in suspend/resume during hibernation

2020-07-02 Thread Anchal Agarwal
From: Thomas Gleixner Many legacy device drivers do not implement power management (PM) functions which means that interrupts requested by these drivers stay in active state when the kernel is hibernated. This does not matter on bare metal and on most hypervisors because the interrupt is restore

[PATCH v2 01/11] xen/manage: keep track of the on-going suspend mode

2020-07-02 Thread Anchal Agarwal
From: Munehisa Kamata Guest hibernation is different from xen suspend/resume/live migration. Xen save/restore does not use pm_ops as is needed by guest hibernation. Hibernation in guest follows ACPI path and is guest inititated , the hibernation image is saved within guest as compared to later mo

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