Re: [RFC, WIP, v4 03/11] media: vidtv: implement a demodulator driver

2020-05-01 Thread Mauro Carvalho Chehab
Em Sat, 2 May 2020 00:22:08 -0300 "Daniel W. S. Almeida" escreveu: > From: "Daniel W. S. Almeida" > > Implement a I2C demodulator driver, simulating support for DVB-T, DVB-C > and DVB-S. > > This demodulator will periodically check the signal quality against a table > and drop the TS lock if

Re: [PATCH 5.6 000/106] 5.6.9-rc1 review

2020-05-01 Thread Greg Kroah-Hartman
On Fri, May 01, 2020 at 04:17:41PM +0100, Jon Hunter wrote: > > On 01/05/2020 14:22, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.6.9 release. > > There are 106 patches in this series, all will be posted as a response > > to this one. If anyone has any

Re: [PATCH 4.14 000/117] 4.14.178-rc1 review

2020-05-01 Thread Greg Kroah-Hartman
On Fri, May 01, 2020 at 02:59:36PM -0700, Guenter Roeck wrote: > On Fri, May 01, 2020 at 03:20:36PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.14.178 release. > > There are 117 patches in this series, all will be posted as a response > > to this

Dear0friend,,

2020-05-01 Thread mrs.chantal
Compliment of the day to you. I am Mrs.CHANTAL I am sending this brief letter to solicit your partnership to transfer $13.5 Million US Dollars.I shall send you more information and procedures when I receive positive response From you. Please send me a message in My private

Re: [PATCH hmm v2 1/5] mm/hmm: make CONFIG_DEVICE_PRIVATE into a select

2020-05-01 Thread John Hubbard
On 2020-05-01 11:20, Jason Gunthorpe wrote: From: Jason Gunthorpe There is no reason for a user to select this or not directly - it should be selected by drivers that are going to use the feature, similar to how CONFIG_HMM_MIRROR works. Yes, this is a nice touch. Reviewed-by: John Hubbard

CAFOD AID UK

2020-05-01 Thread CAFOD UK
-- CAFOD, Romero House, 55 Westminster Bridge Road, London, SE1 7JB www.cafod.org.uk Attn, Approved Coordinator The Catholic Agency for Overseas Development (Cafod) London UK has approved your Country as one of the Countries to be assisted for Humanitarian Empowerment to the less privilege

Re: [RFC, WIP, v4 02/11] media: vidtv: implement a tuner driver

2020-05-01 Thread Mauro Carvalho Chehab
Em Sat, 2 May 2020 00:22:07 -0300 "Daniel W. S. Almeida" escreveu: > From: "Daniel W. S. Almeida" > > The virtual DVB test driver serves as a reference DVB driver and helps > validate the existing APIs in the media subsystem. It can also aid developers > working on userspace applications. >

Re: [RFC, WIP, v4 01/11] media: vidtv: add Kconfig entry

2020-05-01 Thread Mauro Carvalho Chehab
Em Sat, 2 May 2020 00:22:06 -0300 "Daniel W. S. Almeida" escreveu: > From: "Daniel W. S. Almeida" > > Add the necessary Kconfig entries and a dummy Makefile to compile the new > virtual DVB test driver (vidtv). Patch looks good. Please notice that this should be the last patch at the

[PATCH v2] powerpc: Drop CONFIG_MTD_M25P80 in 85xx-hw.config

2020-05-01 Thread Bin Meng
From: Bin Meng Drop CONFIG_MTD_M25P80 that was removed in commit b35b9a10362d ("mtd: spi-nor: Move m25p80 code in spi-nor.c") Signed-off-by: Bin Meng --- Changes in v2: - correct the typo (5xx => 85xx) in the commit title arch/powerpc/configs/85xx-hw.config | 1 - 1 file changed, 1

Re: [PATCH v2 2/2] ftrace/selftest: make unresolved cases cause failure if --fail-unresolved set

2020-05-01 Thread Masami Hiramatsu
On Fri, 1 May 2020 08:25:50 -0600 shuah wrote: > On 5/1/20 3:42 AM, Masami Hiramatsu wrote: > > On Wed, 19 Feb 2020 20:39:41 +0900 > > Masami Hiramatsu wrote: > > > >> On Wed, 19 Feb 2020 09:33:30 + > >> Alan Maguire wrote: > >> > >>> Currently, ftracetest will return 1 (failure) if any

[RESEND PATCH v2 1/4] drivers: clk: zynqmp: Limit bestdiv with maxdiv

2020-05-01 Thread Amit Sunil Dhamne
From: Rajan Vaja Clock divider value should not be greater than maximum divider value. So use minimum of best divider or maximum divider value. Signed-off-by: Rajan Vaja Signed-off-by: Jolly Shah Signed-off-by: Amit Sunil Dhamne --- drivers/clk/zynqmp/divider.c | 2 ++ 1 file changed, 2

[RESEND PATCH v2 2/4] drivers: clk: zynqmp: Fix divider2 calculation

2020-05-01 Thread Amit Sunil Dhamne
From: Tejas Patel zynqmp_get_divider2_val() calculates, divider value of type DIV2 clock, considering best possible combination of DIV1 and DIV2. To find best possible values of DIV1 and DIV2, DIV1's parent rate should be consider and not DIV2's parent rate since it would rate of div1 clock.

[RESEND PATCH v2 4/4] drivers: clk: zynqmp: fix memory leak in zynqmp_register_clocks

2020-05-01 Thread Amit Sunil Dhamne
From: Quanyang Wang This is detected by kmemleak running on zcu102 board: unreferenced object 0xffc877e48180 (size 128): comm "swapper/0", pid 1, jiffies 4294892909 (age 315.436s) hex dump (first 32 bytes): 64 70 5f 76 69 64 65 6f 5f 72 65 66 5f 64 69 76 dp_video_ref_div 31 00 00 00 00 00

[RESEND PATCH v2 3/4] drivers: clk: zynqmp: Fix invalid clock name queries

2020-05-01 Thread Amit Sunil Dhamne
From: Rajan Vaja The clock driver makes EEMI call to get the name of invalid clk when executing versal_get_clock_info() function. This results in error messages. Added check for validating clock before saving clock attribute and calling zynqmp_pm_clock_get_name() in versal_get_clock_info()

[RESEND PATCH v2 0/4] drivers: clk: zynqmp: minor bux fixes for zynqmp clock driver

2020-05-01 Thread Amit Sunil Dhamne
This patchset includes below fixes for clock driver 1> Fix Divider2 calculation 2> Memory leak in clock registration 3> Fix invalid name queries 4> Limit bestdiv with maxdiv v2: - Updated subject for cover letter and patches to add prefix resend-v2: - -We have tried to ping Stephen several

[PATCH 05/10] KVM: nVMX: Avoid retpoline when writing DR7 during nested transitions

2020-05-01 Thread Sean Christopherson
Add a helper, nested_vmx_set_dr7(), to handle updating DR7 during nested transitions to avoid bouncing through kvm_update_dr7() and its potentially retpolined kvm_x86_ops.set_dr7() call. The duplicated code to adjust the architectural DR7 is minor, and losing the WARN_ON() when refreshing DR7

[PATCH 04/10] KVM: x86: Split guts of kvm_update_dr7() to separate helper

2020-05-01 Thread Sean Christopherson
Move the calculation of the effective DR7 into a separate helper, __kvm_update_dr7(), and make the helper visible to vendor code. It will be used in a future patch to avoid the retpoline associated with kvm_x86_ops.set_dr7() when stuffing DR7 during nested VMX transitions. No functional change

[PATCH 10/10] KVM: x86/mmu: Capture TDP level when updating CPUID

2020-05-01 Thread Sean Christopherson
Snapshot the TDP level now that it's invariant (SVM) or dependent only on host capabilities and guest CPUID (VMX). This avoids having to call kvm_x86_ops.get_tdp_level() when initializing a TDP MMU and/or calculating the page role, and thus avoids the associated retpoline. Drop the WARN in

[PATCH 03/10] KVM: x86: Make kvm_x86_ops' {g,s}et_dr6() hooks optional

2020-05-01 Thread Sean Christopherson
Make get_dr6() and set_dr6() optional and drop the VMX implementations, which are for all intents and purposes nops. This avoids a retpoline on VMX when reading/writing DR6, at minimal cost (~1 uop) to SVM. Signed-off-by: Sean Christopherson --- arch/x86/kvm/vmx/vmx.c | 11 ---

[PATCH 06/10] KVM: VMX: Add proper cache tracking for CR4

2020-05-01 Thread Sean Christopherson
Move CR4 caching into the standard register caching mechanism in order to take advantage of the availability checks provided by regs_avail. This avoids multiple VMREADs and retpolines (when configured) during nested VMX transitions as kvm_read_cr4_bits() is invoked multiple times on each

[PATCH 01/10] KVM: x86: Save L1 TSC offset in 'struct kvm_vcpu_arch'

2020-05-01 Thread Sean Christopherson
Save L1's TSC offset in 'struct kvm_vcpu_arch' and drop the kvm_x86_ops hook read_l1_tsc_offset(). This avoids a retpoline (when configured) when reading L1's effective TSC, which is done at least once on every VM-Exit. No functional change intended. Signed-off-by: Sean Christopherson ---

[PATCH 08/10] KVM: VMX: Add anti-retpoline accessors for RIP and RSP

2020-05-01 Thread Sean Christopherson
Add VMX specific accessors for RIP and RSP that are used if and only if CONFIG_RETPOLINE=y to avoid bouncing through kvm_x86_ops.cache_reg() and taking the associated retpoline hit. This eliminates a retpoline in the vast majority of exits by avoiding the RIP read needed to skip the emulated

[PATCH 07/10] KVM: VMX: Add proper cache tracking for CR0

2020-05-01 Thread Sean Christopherson
Move CR0 caching into the standard register caching mechanism in order to take advantage of the availability checks provided by regs_avail. This avoids multiple VMREADs in the (uncommon) case where kvm_read_cr0() is called multiple times in a single VM-Exit, and more importantly eliminates a

[PATCH 09/10] KVM: VMX: Move nested EPT out of kvm_x86_ops.get_tdp_level() hook

2020-05-01 Thread Sean Christopherson
Separate the "core" TDP level handling from the nested EPT path to make it clear that kvm_x86_ops.get_tdp_level() is used if and only if nested EPT is not in use (kvm_init_shadow_ept_mmu() calculates the level from the passed in vmcs12->eptp). Add a WARN_ON() to enforce that the kvm_x86_ops hook

[PATCH 02/10] KVM: nVMX: Unconditionally validate CR3 during nested transitions

2020-05-01 Thread Sean Christopherson
Unconditionally check the validity of the incoming CR3 during nested VM-Enter/VM-Exit to avoid invoking kvm_read_cr3() in the common case where the guest isn't using PAE paging. If vmcs.GUEST_CR3 hasn't yet been cached (common case), kvm_read_cr3() will trigger a VMREAD. The VMREAD (~30 cycles)

[PATCH 00/10] KVM: x86: Misc anti-retpoline optimizations

2020-05-01 Thread Sean Christopherson
A smattering of optimizations geared toward avoiding retpolines, though IMO most of the patches are worthwhile changes irrespective of retpolines. I can split this up into separate patches if desired, outside of the obvious combos there are no dependencies. I was mainly coming at this from a nVMX

[PATCH] m68k: Drop CONFIG_MTD_M25P80 in stmark2_defconfig

2020-05-01 Thread Bin Meng
From: Bin Meng Drop CONFIG_MTD_M25P80 that was removed in commit b35b9a10362d ("mtd: spi-nor: Move m25p80 code in spi-nor.c") Signed-off-by: Bin Meng --- arch/m68k/configs/stmark2_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/m68k/configs/stmark2_defconfig

[PATCH] powerpc: Drop CONFIG_MTD_M25P80 in 5xx-hw.config

2020-05-01 Thread Bin Meng
From: Bin Meng Drop CONFIG_MTD_M25P80 that was removed in commit b35b9a10362d ("mtd: spi-nor: Move m25p80 code in spi-nor.c") Signed-off-by: Bin Meng --- arch/powerpc/configs/85xx-hw.config | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/powerpc/configs/85xx-hw.config

[PATCH] sh: Drop CONFIG_MTD_M25P80 in sh7757lcr_defconfig

2020-05-01 Thread Bin Meng
From: Bin Meng Drop CONFIG_MTD_M25P80 that was removed in commit b35b9a10362d ("mtd: spi-nor: Move m25p80 code in spi-nor.c") Signed-off-by: Bin Meng --- arch/sh/configs/sh7757lcr_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/sh/configs/sh7757lcr_defconfig

[PATCH] mips: Drop CONFIG_MTD_M25P80 in various defconfig files

2020-05-01 Thread Bin Meng
From: Bin Meng Drop CONFIG_MTD_M25P80 that was removed in commit b35b9a10362d ("mtd: spi-nor: Move m25p80 code in spi-nor.c") Signed-off-by: Bin Meng --- arch/mips/configs/ath79_defconfig | 1 - arch/mips/configs/db1xxx_defconfig| 1 -

[PATCH] arm: Drop CONFIG_MTD_M25P80 in various defconfig files

2020-05-01 Thread Bin Meng
From: Bin Meng Drop CONFIG_MTD_M25P80 that was removed in commit b35b9a10362d ("mtd: spi-nor: Move m25p80 code in spi-nor.c") Signed-off-by: Bin Meng --- arch/arm/configs/axm55xx_defconfig | 1 - arch/arm/configs/davinci_all_defconfig | 1 - arch/arm/configs/dove_defconfig| 1 -

Re: [PATCH v2] MIPS: tools: Show result for loongson3-llsc-check

2020-05-01 Thread Jiaxun Yang
于 2020年5月2日 GMT+08:00 上午11:55:01, Tiezhu Yang 写到: >It is better to show the result before loongson3-llsc-check exit, >otherwise we can see nothing if the return status is EXIT_SUCCESS, >it seems confusing. > >E.g. without this patch: > >[loongson@localhost tools]$ ./loongson3-llsc-check

Re: [PATCH] net: fix memory leaks in flush_backlog() with RPS

2020-05-01 Thread Qian Cai
> On May 1, 2020, at 11:32 PM, Eric Dumazet wrote: > > kfree_skb() is supposed to call skb_dst_drop() (look in > skb_release_head_state()) > > If you think about it, we would have hundreds of similar bugs if this was not > the case. Thanks for quick response. Funny thing is that once I

[PATCH v2 net-next 0/3] ptp: Add adjust phase to support phase offset.

2020-05-01 Thread vincent.cheng.xh
From: Vincent Cheng This series adds adjust phase to the PTP Hardware Clock device interface. Some PTP hardware clocks have a write phase mode that has a built-in hardware filtering capability. The write phase mode utilizes a phase offset control word instead of a frequency offset control

Re: [GIT PULL] Please pull proc and exec work for 5.7-rc1

2020-05-01 Thread Bernd Edlinger
On 4/30/20 6:40 PM, Linus Torvalds wrote: > On Thu, Apr 30, 2020 at 7:29 AM Bernd Edlinger > wrote: >> >> Ah, now I see, that was of course not the intended effect, >> but that is not where the pseudo-deadlock happens at all, >> would returning -RESTARTNOINTR in this function make this >> patch

[PATCH v2 net-next 1/3] ptp: Add adjphase function to support phase offset control.

2020-05-01 Thread vincent.cheng.xh
From: Vincent Cheng Adds adjust phase function to take advantage of a PHC clock's hardware filtering capability that uses phase offset control word instead of frequency offset control word. Signed-off-by: Vincent Cheng --- drivers/ptp/ptp_clock.c | 3 +++

[PATCH v2 net-next 2/3] ptp: Add adjust_phase to ptp_clock_caps capability.

2020-05-01 Thread vincent.cheng.xh
From: Vincent Cheng Add adjust_phase to ptp_clock_caps capability to allow user to query if a PHC driver supports adjust phase with ioctl PTP_CLOCK_GETCAPS command. Signed-off-by: Vincent Cheng Reviewed-by: Richard Cochran --- drivers/ptp/ptp_chardev.c | 1 +

[PATCH v2 net-next 3/3] ptp: ptp_clockmatrix: Add adjphase() to support PHC write phase mode.

2020-05-01 Thread vincent.cheng.xh
From: Vincent Cheng Add idtcm_adjphase() to support PHC write phase mode. Signed-off-by: Vincent Cheng --- drivers/ptp/ptp_clockmatrix.c | 92 +++ drivers/ptp/ptp_clockmatrix.h | 8 +++- 2 files changed, 98 insertions(+), 2 deletions(-) diff --git

[PATCH v2] MIPS: tools: Show result for loongson3-llsc-check

2020-05-01 Thread Tiezhu Yang
It is better to show the result before loongson3-llsc-check exit, otherwise we can see nothing if the return status is EXIT_SUCCESS, it seems confusing. E.g. without this patch: [loongson@localhost tools]$ ./loongson3-llsc-check ../../../vmlinux [loongson@localhost tools]$ With this patch:

Re: [PATCH] x86/boot: allow a relocatable kernel to be linked with lld

2020-05-01 Thread Nathan Chancellor
On Fri, May 01, 2020 at 08:42:13AM +, Dmitry Golovin wrote: > LLD by default disallows relocations in read-only segments. For a > relocatable kernel, we pass -z notext to the linker to explicitly > allow relocations. This behavior is the default for BFD. > > Link:

Re: [PATCH] MIPS: tools: Show result for loongson3-llsc-check

2020-05-01 Thread Tiezhu Yang
On 05/01/2020 05:48 PM, Sergei Shtylyov wrote: Hello! On 30.04.2020 15:36, Tiezhu Yang wrote: It is better to show the result before loongson3-llsc-check exit, otherwise we can see nothing if the return status is EXIT_SUCCESS, it seems confusing. E.g. without this patch:

Re: [PATCH] net: fix memory leaks in flush_backlog() with RPS

2020-05-01 Thread Eric Dumazet
On 5/1/20 8:15 PM, Qian Cai wrote: > netif_receive_skb_list_internal() could call enqueue_to_backlog() to put > some skb to softnet_data.input_pkt_queue and then in > ip_route_input_slow(), it allocates a dst_entry to be used in > skb_dst_set(). Later, > > cleanup_net >

[RFC, WIP, v4 11/11] media: vidtv: Add a MPEG Transport Stream Multiplexer

2020-05-01 Thread Daniel W. S. Almeida
From: "Daniel W. S. Almeida" Add a MPEG Transport Stream multiplexer responsible for polling encoders, interleaving packets, padding the resulting stream with NULL packets if necessary and then delivering the resulting TS packets to the bridge driver so it can feed the demux. This patch

[RFC, WIP, v4 10/11] media: vidtv: Implement a SMPTE 302M encoder

2020-05-01 Thread Daniel W. S. Almeida
From: "Daniel W. S. Almeida" Implement a S302M encoder to make it possible to insert PCM audio data in the generated MPEG Transport Stream. This shall enable passing an audio signal into userspace so it can be decoded and played by media software. Signed-off-by: Daniel W. S. Almeida ---

[RFC, WIP, v4 09/11] media: vidtv: implement a PES packetizer

2020-05-01 Thread Daniel W. S. Almeida
From: "Daniel W. S. Almeida" Implement the PES logic to convert encoder data into MPEG TS packets. These TS packets can then be fed into a TS multiplexer and eventually into userspace. Signed-off-by: Daniel W. S. Almeida --- drivers/media/test-drivers/vidtv/Makefile | 2 +-

[RFC, WIP, v4 08/11] media: vidtv: implement a PSI generator

2020-05-01 Thread Daniel W. S. Almeida
From: "Daniel W. S. Almeida" PSI packets contain general information about a MPEG Transport Stream. A PSI generator is needed so userspace apps can retrieve information about the Transport Stream and eventually tune into a (dummy) channel. Because the generator is implemented in a separate

[RFC, WIP, v4 05/11] media: vidtv: add a bridge driver

2020-05-01 Thread Daniel W. S. Almeida
From: "Daniel W. S. Almeida" Digital TV devices consist of several independent hardware components which are controlled by different drivers. Each media device is controlled by a group of cooperating drivers with the bridge driver as the main driver. This patch adds a bridge driver for the

[RFC, WIP, v4 07/11] media: vidtv: add MPEG TS common code

2020-05-01 Thread Daniel W. S. Almeida
From: "Daniel W. S. Almeida" Add code to work with MPEG TS packets, such as TS headers, adaptation fields, PCR packets and NULL packets. Signed-off-by: Daniel W. S. Almeida --- drivers/media/test-drivers/vidtv/Makefile | 2 +- drivers/media/test-drivers/vidtv/vidtv_ts.c | 130

[RFC, WIP, v4 06/11] media: vidtv: add wrappers for memcpy and memset

2020-05-01 Thread Daniel W. S. Almeida
From: "Daniel W. S. Almeida" A lot of code in this driver is for serializing structures. This is error prone. Therefore, prevent buffer overflows by wrapping memcpy and memset, comparing the requested length against the buffer size. Signed-off-by: Daniel W. S. Almeida ---

[RFC, WIP, v4 01/11] media: vidtv: add Kconfig entry

2020-05-01 Thread Daniel W. S. Almeida
From: "Daniel W. S. Almeida" Add the necessary Kconfig entries and a dummy Makefile to compile the new virtual DVB test driver (vidtv). Signed-off-by: Daniel W. S. Almeida --- drivers/media/test-drivers/Kconfig| 10 ++ drivers/media/test-drivers/Makefile | 1 +

[RFC, WIP, v4 04/11] media: vidtv: move config structs into a separate header

2020-05-01 Thread Daniel W. S. Almeida
From: "Daniel W. S. Almeida" Move config structs to a common header so they can be used by the bridge driver and by their respective drivers. Signed-off-by: Daniel W. S. Almeida --- .../media/test-drivers/vidtv/vidtv_config.h | 35 +++

[RFC, WIP, v4 03/11] media: vidtv: implement a demodulator driver

2020-05-01 Thread Daniel W. S. Almeida
From: "Daniel W. S. Almeida" Implement a I2C demodulator driver, simulating support for DVB-T, DVB-C and DVB-S. This demodulator will periodically check the signal quality against a table and drop the TS lock if it drops below a threshold value, regaining it in the event that the signal

[RFC, WIP, v4 00/11] media: vidtv: implement a virtual DVB driver

2020-05-01 Thread Daniel W. S. Almeida
From: "Daniel W. S. Almeida" This series is work in progress. It represents the current work done on a virtual DVB driver for the Linux media subsystem. I am new to the media subsystem and to kernel development in general. This series currently adds: -fake tuner, demodulator and bridge drivers

[RFC, WIP, v4 02/11] media: vidtv: implement a tuner driver

2020-05-01 Thread Daniel W. S. Almeida
From: "Daniel W. S. Almeida" The virtual DVB test driver serves as a reference DVB driver and helps validate the existing APIs in the media subsystem. It can also aid developers working on userspace applications. This dummy tuner should support common TV standards such as DVB-T/T2/S/S2, ISDB-T

[PATCH] net: fix memory leaks in flush_backlog() with RPS

2020-05-01 Thread Qian Cai
netif_receive_skb_list_internal() could call enqueue_to_backlog() to put some skb to softnet_data.input_pkt_queue and then in ip_route_input_slow(), it allocates a dst_entry to be used in skb_dst_set(). Later, cleanup_net default_device_exit_batch unregister_netdevice_many

[PATCH] drm/amdgpu: Avoid integer overflow in amdgpu_device_suspend_display_audio

2020-05-01 Thread Nathan Chancellor
When building with Clang: drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:4160:53: warning: overflow in expression; result is -294967296 with type 'long' [-Winteger-overflow] expires = ktime_get_mono_fast_ns() + NSEC_PER_SEC * 4L;

[PATCH] kernel/sys: do not use tasklist_lock to set/get scheduling priorities

2020-05-01 Thread Davidlohr Bueso
For both setpriority(2) and getpriority(2) there's really no need to be taking the tasklist_lock at all - for which both share it for the entirety of the syscall. The tasklist_lock does not protect reading/writing the p->static_prio and task lookups are already rcu safe, providing a stable

Re: [PATCH 3/3] selftests/ftrace: Use /bin/echo instead of built-in echo

2020-05-01 Thread Masami Hiramatsu
On Fri, 1 May 2020 10:19:42 -0400 Steven Rostedt wrote: > On Fri, 1 May 2020 22:38:00 +0900 > Masami Hiramatsu wrote: > > > Since the built-in echo has different behavior in POSIX shell > > (dash) and bash, we forcibly use /bin/echo -E (not interpret > > backslash escapes) by default. > > >

Re: [PATCH] bpf: Tweak BPF jump table optimizations for objtool compatibility

2020-05-01 Thread Alexei Starovoitov
On Fri, May 01, 2020 at 02:56:17PM -0500, Josh Poimboeuf wrote: > On Fri, May 01, 2020 at 12:40:53PM -0700, Alexei Starovoitov wrote: > > On Fri, May 01, 2020 at 02:22:04PM -0500, Josh Poimboeuf wrote: > > > On Fri, May 01, 2020 at 12:09:30PM -0700, Alexei Starovoitov wrote: > > > > On Thu, Apr

Re: [PATCH 2/3] selftests/ftrace: Pick only the first kprobe event to test

2020-05-01 Thread Masami Hiramatsu
On Fri, 1 May 2020 09:38:59 -0600 shuah wrote: > On 5/1/20 8:17 AM, Steven Rostedt wrote: > > On Fri, 1 May 2020 22:37:51 +0900 > > Masami Hiramatsu wrote: > > > >> Since the kprobe/kprobe_args_type.tc reads out all event logs > >> from the trace buffer, the test can fail if there is another

[PATCH] firmware: xilinx: Export zynqmp_pm_fpga_{get_status,load}

2020-05-01 Thread Nathan Chancellor
When building arm64 allmodconfig: ERROR: modpost: "zynqmp_pm_fpga_load" [drivers/fpga/zynqmp-fpga.ko] undefined! ERROR: modpost: "zynqmp_pm_fpga_get_status" [drivers/fpga/zynqmp-fpga.ko] undefined! These functions were added to drivers/fpga/zynqmp-fpga.c but not exported so the module build

s390 KVM warning in handle_pqap()

2020-05-01 Thread Qian Cai
This line, if (WARN_ON_ONCE(fc != 0x03)) qemu-kvm-2.12.0-99.module+el8.2.0+5827+8c39933c with this kernel config, https://raw.githubusercontent.com/cailca/linux-mm/master/s390.config # /usr/libexec/qemu-kvm -name ubuntu-18.04-server-cloudimg -cpu host -smp 2 -m 2G -hda

Re: New Wiki URLs?

2020-05-01 Thread Randy Dunlap
[adding people + linux-wireless@ ] Should we assume that the current wireless wiki URLs are more or less permanent and so update lots of outdated references to them? I see that the MAINTAINERS file is already updated. Plus there is a request for redirects @kernel.org. On 4/27/20 9:44 PM,

Re: [PATCH v3 6/9] bus: mhi: core: WARN_ON for malformed vector table

2020-05-01 Thread bbhatt
On 2020-04-30 08:02, Jeffrey Hugo wrote: On 4/29/2020 2:52 PM, Bhaumik Bhatt wrote: Add a bounds check in the firmware copy routine to exit if a malformed vector table is found while attempting to load the firmware in to the BHIe vector table. Signed-off-by: Bhaumik Bhatt ---

Re: [PATCH] perf evsel: Get group fd from CPU0 for system wide event

2020-05-01 Thread Jin, Yao
Hi Jiri, On 5/1/2020 6:23 PM, Jiri Olsa wrote: On Thu, Apr 30, 2020 at 09:34:51AM +0800, Jin Yao wrote: A metric may consist of system wide event and non system-wide event. The event group leader may be the system wide event. For example, the metric "C2_Pkg_Residency" consists of

Re: [PATCH v3 9/9] bus: mhi: core: Ensure non-zero session or sequence ID values

2020-05-01 Thread bbhatt
On 2020-04-30 08:12, Jeffrey Hugo wrote: On 4/29/2020 2:52 PM, Bhaumik Bhatt wrote: While writing any sequence or session identifiers, it is possible that the host could write a zero value, whereas only non-zero values are supported writes to those registers. Ensure that host does not write a

[PATCH v4 0/8] Bug fixes and improved logging in MHI

2020-05-01 Thread Bhaumik Bhatt
A set of patches for bug fixes and improved logging in mhi/core/boot.c. Verified on x86 and arm64 platforms. v4: -Dropped the change: bus: mhi: core: WARN_ON for malformed vector table -Updated bus: mhi: core: Read transfer length from an event properly to include parse rsc events -Use

[PATCH v4 7/8] bus: mhi: core: Improve debug logs for loading firmware

2020-05-01 Thread Bhaumik Bhatt
Add log messages to track boot flow errors and timeouts in SBL or AMSS firmware loading to aid in debug. Signed-off-by: Bhaumik Bhatt Reviewed-by: Jeffrey Hugo --- drivers/bus/mhi/core/boot.c | 21 ++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git

[PATCH v4 8/8] bus: mhi: core: Ensure non-zero session or sequence ID values are used

2020-05-01 Thread Bhaumik Bhatt
While writing any sequence or session identifiers, it is possible that the host could write a zero value, whereas only non-zero values should be supported writes to those registers. Ensure that the host does not write a non-zero value for them and also log them in debug messages. Suggested-by:

[PATCH v4 2/8] bus: mhi: core: Cache intmod from mhi event to mhi channel

2020-05-01 Thread Bhaumik Bhatt
From: Hemant Kumar Driver is using zero initialized intmod value from mhi channel when configuring TRE for bei field. This prevents interrupt moderation to take effect in case it is supported by an event ring. Fix this by copying intmod value from associated event ring to mhi channel upon

[PATCH v4 1/8] bus: mhi: core: Refactor mhi queue APIs

2020-05-01 Thread Bhaumik Bhatt
From: Hemant Kumar Move all the common code to generate TRE from mhi_queue_buf, mhi_queue_dma and mhi_queue_skb to mhi_gen_tre. This helps to centralize the TRE generation code which makes any future bug fixing easier to manage in these APIs. Suggested-by: Jeffrey Hugo Signed-off-by: Hemant

[PATCH v4 5/8] bus: mhi: core: Handle firmware load using state worker

2020-05-01 Thread Bhaumik Bhatt
Upon power up, driver queues firmware worker thread if the execution environment is PBL. Firmware worker is blocked with a timeout until state worker gets a chance to run and unblock firmware worker. An endpoint power up failure can be seen if state worker gets a chance to run after firmware

[PATCH v4 6/8] bus: mhi: core: Return appropriate error codes for AMSS load failure

2020-05-01 Thread Bhaumik Bhatt
When loading AMSS firmware using BHIe protocol, return -ETIMEDOUT if no response is received within the timeout or return -EIO in case of a protocol returned failure or an MHI error state. Signed-off-by: Bhaumik Bhatt Reviewed-by: Jeffrey Hugo --- drivers/bus/mhi/core/boot.c | 23

[PATCH v4 4/8] bus: mhi: core: Read transfer length from an event properly

2020-05-01 Thread Bhaumik Bhatt
From: Hemant Kumar When MHI Driver receives an EOT event, it reads xfer_len from the event in the last TRE. The value is under control of the MHI device and never validated by Host MHI driver. The value should never be larger than the real size of the buffer but a malicious device can set the

[PATCH v4 3/8] bus: mhi: core: Add range check for channel id received in event ring

2020-05-01 Thread Bhaumik Bhatt
From: Hemant Kumar MHI data completion handler function reads channel id from event ring element. Value is under the control of MHI devices and can be any value between 0 and 255. In order to prevent out of bound access add a bound check against the max channel supported by controller and skip

Re: [PATCH 0/2] perf stat: Support overall statistics for interval mode

2020-05-01 Thread Jin, Yao
On 5/1/2020 7:36 PM, Jiri Olsa wrote: On Thu, Apr 30, 2020 at 11:07:38AM +0800, Jin Yao wrote: Currently perf-stat supports to print counts at regular interval (-I), but it's not very easy for user to get the overall statistics. With this patchset, it supports to report the summary at the

Re: [PATCH] kunit: Kconfig: enable a KUNIT_RUN_ALL fragment

2020-05-01 Thread David Gow
On Sat, May 2, 2020 at 4:31 AM Brendan Higgins wrote: > > On Fri, May 1, 2020 at 1:35 AM Anders Roxell wrote: > > > > Make it easier to enable all KUnit fragments. This is needed for kernel > > test-systems, so its easy to get all KUnit tests enabled and if new gets > > added they will be

[PATCH v2 2/2] perf stat: Report summary for interval mode

2020-05-01 Thread Jin Yao
Currently perf-stat supports to print counts at regular interval (-I), but it's not very easy for user to get the overall statistics. The patch uses 'evsel->summary_counts' to sum up the per interval counts and copy the counts to 'evsel->counts' after printing the interval results. Next, we just

[PATCH v2 1/2] perf evsel: Create counts for collecting summary data

2020-05-01 Thread Jin Yao
It would be useful to support the overall statistics for perf-stat interval mode. For example, report the summary at the end of "perf-stat -I" output. But since perf-stat can support many aggregation modes, such as --per-thread, --per-socket, -M and etc, we need a solution which doesn't bring

[PATCH v2 0/2] perf stat: Support overall statistics for interval mode

2020-05-01 Thread Jin Yao
Currently perf-stat supports to print counts at regular interval (-I), but it's not very easy for user to get the overall statistics. With this patchset, it supports to report the summary at the end of interval output. For example, root@kbl-ppc:~# perf stat -e cycles -I1000 --interval-count 2

Re: [PATCH v3 1/1] scsi: pm: Balance pm_only counter of request queue during system resume

2020-05-01 Thread Can Guo
On 2020-05-02 01:56, Bart Van Assche wrote: On 2020-04-30 22:12, Can Guo wrote: diff --git a/drivers/scsi/scsi_pm.c b/drivers/scsi/scsi_pm.c index 3717eea..d18271d 100644 --- a/drivers/scsi/scsi_pm.c +++ b/drivers/scsi/scsi_pm.c @@ -74,12 +74,15 @@ static int scsi_dev_type_resume(struct device

Re: [PATCH v3 7/7] drm/mediatek: mtk_dsi: Create connector for bridges

2020-05-01 Thread Chun-Kuang Hu
Hi, Enric: Enric Balletbo i Serra 於 2020年5月1日 週五 下午10:59寫道: > > Hi Chun-Kuang, > > Thank you for your review. > > On 1/5/20 16:26, Chun-Kuang Hu wrote: > > Hi, Enric: > > > > Enric Balletbo i Serra 於 2020年4月17日 週五 > > 下午11:06寫道: > >> > >> Use the drm_bridge_connector helper to create a

Re: [PATCH v4 4/7] drm/mediatek: mtk_dsi: Convert to bridge driver

2020-05-01 Thread Chun-Kuang Hu
Hi, Enric: Enric Balletbo i Serra 於 2020年5月1日 週五 下午11:23寫道: > > Convert mtk_dsi to a bridge driver with built-in encoder support for > compatibility with existing component drivers. Reviewed-by: Chun-Kuang Hu > > Signed-off-by: Enric Balletbo i Serra > Acked-by: Sam Ravnborg > --- > >

Re: [PATCH v4 3/7] drm/mediatek: mtk_dsi: Rename bridge to next_bridge

2020-05-01 Thread Chun-Kuang Hu
Hi, Enric: Enric Balletbo i Serra 於 2020年5月1日 週五 下午11:23寫道: > > This is really a cosmetic change just to make a bit more readable the > code after convert the driver to drm_bridge. The bridge variable name > will be used by the encoder drm_bridge, and the chained bridge will be > named

[tip:x86/urgent] BUILD SUCCESS c84cb3735fd53c91101ccdb191f2e3331a9262cb

2020-05-01 Thread kbuild test robot
-a001-20200430 s390 randconfig-a001-20200502 xtensa randconfig-a001-20200502 sh randconfig-a001-20200502 openrisc randconfig-a001-20200502 csky randconfig-a001-20200502 i386 randconfig-b003-20200501 x86_64

Re: [PATCH] checkpatch: add NL_SET_ERR_MSG to 80 column exceptions

2020-05-01 Thread Jakub Kicinski
On Sat, 2 May 2020 00:36:48 + Keller, Jacob E wrote: > > The ones I specified previously use: > > > > NL_SET_ERR_MSG_MOD(extack, "message\n"); > > > > where all the others uses are: > > > > NL_SET_ERR_MSG_MOD(extack, "message"); > > > > without the \n termination of the message. >

Re: [PATCH hmm v2 5/5] mm/hmm: remove the customizable pfn format from hmm_range_fault

2020-05-01 Thread Ralph Campbell
On 5/1/20 11:20 AM, Jason Gunthorpe wrote: From: Jason Gunthorpe Presumably the intent here was that hmm_range_fault() could put the data into some HW specific format and thus avoid some work. However, nothing actually does that, and it isn't clear how anything actually could do that as

Re: [RFC PATCH V2 0/9] Introduce attach/clear_page_private to cleanup code

2020-05-01 Thread Matthew Wilcox
On Sat, May 02, 2020 at 12:42:15AM +0200, Guoqing Jiang wrote: > On 5/2/20 12:16 AM, Matthew Wilcox wrote: > > On Thu, Apr 30, 2020 at 11:44:41PM +0200, Guoqing Jiang wrote: > > >include/linux/pagemap.h: introduce attach/clear_page_private > > >md: remove __clear_page_buffers and use

Re: [GIT PULL] io_uring fixes for 5.7-rc4

2020-05-01 Thread pr-tracker-bot
The pull request you sent on Fri, 1 May 2020 16:52:38 -0600: > git://git.kernel.dk/linux-block.git tags/io_uring-5.7-2020-05-01 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/cf0185308c41a307a4e7b37b6690d30735fa16a6 Thank you! -- Deet-doot-dot, I am a bot.

Re: [GIT PULL] arm64 fixes for 5.7-rc4

2020-05-01 Thread pr-tracker-bot
The pull request you sent on Fri, 1 May 2020 20:29:52 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux tags/arm64-fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/42eb62d417e5cf22d6e305cb895fb54299862a53 Thank you! -- Deet-doot-dot, I am a

Re: [GIT PULL] VFIO fixes for v5.7-rc4

2020-05-01 Thread pr-tracker-bot
The pull request you sent on Fri, 1 May 2020 15:50:54 -0600: > git://github.com/awilliam/linux-vfio.git tags/vfio-v5.7-rc4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/690e2aba7beb1ef06352803bea41a68a3c695015 Thank you! -- Deet-doot-dot, I am a bot.

RE: [PATCH] checkpatch: add NL_SET_ERR_MSG to 80 column exceptions

2020-05-01 Thread Keller, Jacob E
> -Original Message- > From: Joe Perches > Sent: Friday, May 01, 2020 5:30 PM > To: Keller, Jacob E ; linux-kernel@vger.kernel.org > Cc: Jakub Kicinski ; Andy Whitcroft > Subject: Re: [PATCH] checkpatch: add NL_SET_ERR_MSG to 80 column > exceptions > > On Fri, 2020-05-01 at 17:19 -0700,

[PATCH] mm/gup: Fix fixup_user_fault() on multiple retries

2020-05-01 Thread Peter Xu
This part is overlooked when reworking the gup code on multiple retries. When we get the 2nd+ retry, we'll be with TRIED flag set. Current code will bail out on the 2nd retry because the !TRIED check will fail so the retry logic will be skipped. What's worse is that, it will also return zero

Re: [PATCH 2/4] power_supply: Use designated initializer for property text arrays

2020-05-01 Thread Sebastian Reichel
Hi, On Fri, Apr 24, 2020 at 11:35:31AM -0600, Mathew King wrote: > Use designated initializers for the sysfs power supply text values. This > will help ensure that the text values are kept in sync with the enum > values from power_supply.h. > > Signed-off-by: Mathew King > --- Thanks, looks

Re: [PATCH 1/4] power_supply: Cleanup power supply sysfs attribute list

2020-05-01 Thread Sebastian Reichel
Hi, On Fri, Apr 24, 2020 at 11:35:30AM -0600, Mathew King wrote: > Make the device attribute list used to create sysfs attributes more > robust by decoupling the list order from order of the enum defined in > power_supply.h. This is done by using a designated initializer in the >

linux-next: Fixes tag needs some work in the vhost tree

2020-05-01 Thread Stephen Rothwell
Hi all, In commit ab8be610c87d ("virtio-blk: handle block_device_operations callbacks after hot unplug") Fixes tag Fixes: 48e4043d4529523cbc7fa8dd745bd8e2c45ce1d3 has these problem(s): - missing subject Should be Fixes: 48e4043d4529 ("virtio: add virtio disk geometry feature")

Re: [PATCH] checkpatch: add NL_SET_ERR_MSG to 80 column exceptions

2020-05-01 Thread Joe Perches
On Fri, 2020-05-01 at 17:19 -0700, Jacob Keller wrote: > > On 5/1/2020 4:42 PM, Joe Perches wrote: > > On Fri, 2020-05-01 at 16:11 -0700, Jacob Keller wrote: > > > NL_SET_ERR_MSG and NL_SET_ERR_MSG_MOD are used to report extended error > > > responses about failure of a netlink command. These

[PATCH] PCI: endpoint: functions/pci-epf-test: Support slave DMA transfer

2020-05-01 Thread Alan Mikhak
From: Alan Mikhak Modify pci_epf_test_data_transfer() to also support slave DMA transfers. Adds a direction parameter so caller can specify one of the supported DMA transfer directions: DMA_MEM_TO_MEM, DMA_MEM_TO_DEV, and DMA_DEV_TO_MEM. For DMA_MEM_TO_MEM, the function calls

Re: [RFC PATCH bpf-next 0/6] bpf, printk: add BTF-based type printing

2020-05-01 Thread Joe Perches
On Thu, 2020-04-30 at 03:03 -0700, Alan Maguire wrote: > On Mon, 20 Apr 2020, Joe Perches wrote: > > Here as well the individual field types don't contain > > enough information to determine if a field should be > > output as %x or %u. > Right, we could add some more format modifiers for cases >

[RESEND PATCH v2 2/2] drivers: clk: zynqmp: Update fraction clock check from custom type flags

2020-05-01 Thread Amit Sunil Dhamne
From: Tejas Patel Older firmware version sets BIT(13) in clkflag to mark a divider as fractional divider. Updated firmware version sets BIT(4) in type flags to mark a divider as fractional divider since BIT(13) is defined as CLK_DUTY_CYCLE_PARENT in the common clk framework flags. To support

  1   2   3   4   5   6   7   8   9   10   >