Re: [PATCH bpf-next v2 2/4] selftests: bpf: Add helper to compare socket cookies

2020-09-28 Thread Martin KaFai Lau
On Mon, Sep 28, 2020 at 10:08:03AM +0100, Lorenz Bauer wrote: > We compare socket cookies to ensure that insertion into a sockmap worked. > Pull this out into a helper function for use in other tests. > > Signed-off-by: Lorenz Bauer > --- > .../selftests/bpf/prog_tests/sockmap_basic.c | 50

RE: [PATCH 0/2] Enable support IPI_CPU_CRASH_STOP to be pseudo-NMI

2020-09-28 Thread ito-yui...@fujitsu.com
Hi Marc Thank you for your reply. > On 2020-09-28 03:43, ito-yui...@fujitsu.com wrote: > > Hi Marc, Sumit > > > > I would appreciate if you have any advice on this patch. > > I haven't had a chance to look into it, as I'm not even sure I'll take the > core > series in the first place (there

[gustavoars-linux:for-linus/kspp] BUILD SUCCESS e1ea50331eaed753dfbc68e1263228c581cd6a10

2020-09-28 Thread kernel test robot
allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a005-20200928 x86_64 randconfig-a003-20200928 x86_64 randconfig

Re: [PATCH v6 3/6] mm: introduce memfd_secret system call to create "secret" memory areas

2020-09-28 Thread Edgecombe, Rick P
On Thu, 2020-09-24 at 16:29 +0300, Mike Rapoport wrote: > Introduce "memfd_secret" system call with the ability to create > memory > areas visible only in the context of the owning process and not > mapped not > only to other processes but in the kernel page tables as well. > > The user will

Re: [PATCH 1/1] selinux: Measure state and hash of policy using IMA

2020-09-28 Thread Lakshmi Ramasubramanian
On 9/28/20 9:29 AM, Stephen Smalley wrote: On Sat, Sep 26, 2020 at 12:40 PM Lakshmi Ramasubramanian wrote: Critical data structures of security modules are currently not measured. Therefore an attestation service, for instance, would not be able to attest whether the security modules are

Re: [PATCH 4.19 38/92] kprobes: Fix NULL pointer dereference at kprobe_ftrace_handler

2020-09-28 Thread Masami Hiramatsu
Hi, On Mon, 28 Sep 2020 18:15:35 -0400 Steven Rostedt wrote: > On Mon, 28 Sep 2020 18:09:42 -0400 > Steven Rostedt wrote: > > > On Tue, 29 Sep 2020 01:32:59 +0530 > > Naresh Kamboju wrote: > > > > > stable rc branch 4.19 build warning on arm64. > > > > > > ../kernel/kprobes.c: In function

Re: PROBLEM: zstd bzImage decompression fails for some x86_32 config on 5.9-rc1

2020-09-28 Thread Feng Tang
On Tue, Sep 29, 2020 at 05:15:38AM +, Nick Terrell wrote: > > > > On Sep 28, 2020, at 11:02 AM, Nick Terrell wrote: > > > > > > > >> On Sep 28, 2020, at 1:55 AM, Feng Tang wrote: > >> > >> Hi Nick, > >> > >> 0day has found some kernel decomprssion failure case since 5.9-rc1 (X86_32 >

Re: [PATCH 3/5] iommu/tegra-smmu: Use iommu_fwspec in .probe_/.attach_device()

2020-09-28 Thread Nicolin Chen
On Tue, Sep 29, 2020 at 07:06:37AM +0300, Dmitry Osipenko wrote: > ... > >> As I mentioned in another reply, I think tegra_smmu_find() should be all > >> you need in this case. > > > > This function is used by .probe_device() where its dev pointer is > > an SMMU client. IIUC, tegra_smmu_find()

Re: [PATCH v3 0/2] arm64/mm: Enable color zero pages

2020-09-28 Thread Gavin Shan
Hi Catalin, On 9/29/20 1:22 AM, Catalin Marinas wrote: On Mon, Sep 28, 2020 at 05:22:54PM +1000, Gavin Shan wrote: Testing === [1] The experiment reveals how heavily the (L1) data cache miss impacts the overall application's performance. The machine where the test is carried out

[RFC PATCH] scripts/most_common_subject_prefix.pl: Find the most common commit subject prefix

2020-09-28 Thread Joe Perches
A common patch subject prefix for specific files is to use the lowest level directory or just the basename of the file without the file extension. For patches that touch multiple files, it's common to use the basename directory as the commit prefix. For example, patches to files in

Re: [PATCH bpf-next v2 1/4] bpf: sockmap: enable map_update_elem from bpf_iter

2020-09-28 Thread Martin KaFai Lau
On Mon, Sep 28, 2020 at 10:08:02AM +0100, Lorenz Bauer wrote: > Allow passing a pointer to a BTF struct sock_common* when updating > a sockmap or sockhash. Since BTF pointers can fault and therefore be > NULL at runtime we need to add an additional !sk check to > sock_map_update_elem. Since we may

Re: general protection fault in gfs2_withdraw

2020-09-28 Thread syzbot
syzbot has bisected this issue to: commit 601ef0d52e9617588fcff3df26953592f2eb44ac Author: Bob Peterson Date: Tue Jan 28 19:23:45 2020 + gfs2: Force withdraw to replay journals and wait for it to finish bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=151d25e390 start

Re: [RFC PATCH 1/2] kvm/x86: intercept guest changes to X86_CR4_LA57

2020-09-28 Thread Lai Jiangshan
On Tue, Sep 29, 2020 at 12:24 AM Sean Christopherson wrote: > > On Mon, Sep 28, 2020 at 04:30:46PM +0800, Lai Jiangshan wrote: > > From: Lai Jiangshan > > > > When shadowpaping is enabled, guest should not be allowed > > to toggle X86_CR4_LA57. And X86_CR4_LA57 is a rarely changed > > bit, so we

Re: [PATCH v2 23/25] powerpc/signal: Create 'unsafe' versions of copy_[ck][fpr/vsx]_to_user()

2020-09-28 Thread Christophe Leroy
Le 29/09/2020 à 07:22, Christophe Leroy a écrit : Le 29/09/2020 à 04:04, Christopher M. Riedl a écrit : On Tue Aug 18, 2020 at 12:19 PM CDT, Christophe Leroy wrote: For the non VSX version, that's trivial. Just use unsafe_copy_to_user() instead of __copy_to_user(). For the VSX version,

RE: [PATCH v6] mm/zswap: move to use crypto_acomp API for hardware acceleration

2020-09-28 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Song Bao Hua (Barry Song) > Sent: Tuesday, September 29, 2020 10:02 AM > To: 'Sebastian Andrzej Siewior' > Cc: a...@linux-foundation.org; herb...@gondor.apana.org.au; > da...@davemloft.net; linux-cry...@vger.kernel.org; linux...@kvack.org; >

Re: [PATCH v2 23/25] powerpc/signal: Create 'unsafe' versions of copy_[ck][fpr/vsx]_to_user()

2020-09-28 Thread Christophe Leroy
Le 29/09/2020 à 04:04, Christopher M. Riedl a écrit : On Tue Aug 18, 2020 at 12:19 PM CDT, Christophe Leroy wrote: For the non VSX version, that's trivial. Just use unsafe_copy_to_user() instead of __copy_to_user(). For the VSX version, remove the intermediate step through a buffer and use

Re: [PATCH v2 25/25] powerpc/signal32: Transform save_user_regs() and save_tm_user_regs() in 'unsafe' version

2020-09-28 Thread Christophe Leroy
Le 29/09/2020 à 04:55, Christopher M. Riedl a écrit : On Tue Aug 18, 2020 at 12:19 PM CDT, Christophe Leroy wrote: Change those two functions to be used within a user access block. For that, change save_general_regs() to and unsafe_save_general_regs(), then replace all user accesses by

Re: [PATCH WIP 1/6] media: vidtv: extract the initial CRC value to into a #define

2020-09-28 Thread Mauro Carvalho Chehab
Em Tue, 29 Sep 2020 00:26:20 -0300 "Daniel W. S. Almeida" escreveu: > From: Daniel W. S. Almeida On a very quick look, patches seem good. Why did you mark them as WIP? Next time, please add a patch 0, specially when you tag something as WIP, or RFC. > > The same constant (0x) is

Re: [PATCH] ipvs: Add traffic statistic up even it is VS/DR or VS/TUN mode

2020-09-28 Thread yue longguang
especially in public cloud case, statistic is related to monitorring and billing , both ingress and egress packets will go throught ipvs, even dr/tun mode. in dr/tun mode, ipvs need to do nothing except statistic, so skb->ipvs_property = 1 regards On Tue, Sep 29, 2020 at 1:04 PM longguang.yue

Re: PROBLEM: zstd bzImage decompression fails for some x86_32 config on 5.9-rc1

2020-09-28 Thread Nick Terrell
> On Sep 28, 2020, at 11:02 AM, Nick Terrell wrote: > > > >> On Sep 28, 2020, at 1:55 AM, Feng Tang wrote: >> >> Hi Nick, >> >> 0day has found some kernel decomprssion failure case since 5.9-rc1 (X86_32 >> build), and it could be related with ZSTD code, though initially we bisected >> to

Re: [PATCH v6 4/4] KVM: nSVM: implement on demand allocation of the nested state

2020-09-28 Thread Sean Christopherson
On Wed, Sep 23, 2020 at 12:10:25AM +0300, Maxim Levitsky wrote: > This way we don't waste memory on VMs which don't use nesting > virtualization even when the host enabled it for them. > > Signed-off-by: Maxim Levitsky > --- > arch/x86/kvm/svm/nested.c | 42 ++ >

Re: [PATCH v6 3/4] KVM: x86: allow kvm_x86_ops.set_efer to return an error value

2020-09-28 Thread Sean Christopherson
On Wed, Sep 23, 2020 at 12:10:24AM +0300, Maxim Levitsky wrote: > This will be used to signal an error to the userspace, in case > the vendor code failed during handling of this msr. (e.g -ENOMEM) > > Signed-off-by: Maxim Levitsky > --- > diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c >

[PATCH] ipvs: Add traffic statistic up even it is VS/DR or VS/TUN mode

2020-09-28 Thread longguang.yue
It's ipvs's duty to do traffic statistic if packets get hit, no matter what mode it is. Signed-off-by: longguang.yue --- net/netfilter/ipvs/ip_vs_core.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/net/netfilter/ipvs/ip_vs_core.c b/net/netfilter/ipvs/ip_vs_core.c

[PATCH v3 2/2] iommu/tegra-smmu: Expend mutex protection range

2020-09-28 Thread Nicolin Chen
This is used to protect potential race condition at use_count. since probes of client drivers, calling attach_dev(), may run concurrently. Signed-off-by: Nicolin Chen --- Changelog v2->v3: * Renamed label "err_unlock" to "unlock" v1->v2: * N/A drivers/iommu/tegra-smmu.c | 34

[PATCH v3 0/2] iommu/tegra-smmu: Two followup changes

2020-09-28 Thread Nicolin Chen
Two followup patches for tegra-smmu: PATCH-1 is a clean-up patch for the recently applied SWGROUP change. PATCH-2 fixes a potential race condition Changelog v2->v3: * PATCH-2: renamed "err_unlock" to "unlock" v1->v2: * Separated first two changs of V1 so they may get applied first, since the

[PATCH v3 1/2] iommu/tegra-smmu: Unwrap tegra_smmu_group_get

2020-09-28 Thread Nicolin Chen
The tegra_smmu_group_get was added to group devices in different SWGROUPs and it'd return a NULL group pointer upon a mismatch at tegra_smmu_find_group(), so for most of clients/devices, it very likely would mismatch and need a fallback generic_device_group(). But now tegra_smmu_group_get handles

Re: [PATCH] net/x25: Fix null-ptr-deref in x25_connect

2020-09-28 Thread Martin Schiller
On 2020-09-29 03:43, David Miller wrote: From: Martin Schiller Date: Mon, 28 Sep 2020 11:23:27 +0200 diff --git a/net/x25/af_x25.c b/net/x25/af_x25.c index 0bbb283f23c9..0524a5530b91 100644 --- a/net/x25/af_x25.c +++ b/net/x25/af_x25.c @@ -820,7 +820,7 @@ static int x25_connect(struct socket

Re: [PATCH v2 for v5.9] mm/page_alloc: handle a missing case for memalloc_nocma_{save/restore} APIs

2020-09-28 Thread Andrew Morton
On Tue, 29 Sep 2020 10:28:05 +0900 Joonsoo Kim wrote: > > What about manually emptying the pcplists beforehand? > > It also increases the probability. schedule() or interrupt after emptying but > before the allocation could invalidate the effect. Keep local interrupts disabled across the pcp

Re: [PATCH v3] Bluetooth: Check for encryption key size on connect

2020-09-28 Thread Archie Pusaka
Hi Marcel, On Tue, 29 Sep 2020 at 00:43, Marcel Holtmann wrote: > > Hi Archie, > > > When receiving connection, we only check whether the link has been > > encrypted, but not the encryption key size of the link. > > > > This patch adds check for encryption key size, and reject

[PATCH] kernel: exit: fix a spacing coding style

2020-09-28 Thread jiahao
Add some spaces before and after the operator. Signed-off-by: jiahao --- kernel/exit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/exit.c b/kernel/exit.c index 733e80f..a3c831c 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -869,7 +869,7 @@

Re: [PATCH v2] page_alloc: Fix freeing non-compound pages

2020-09-28 Thread Andrew Morton
On Tue, 29 Sep 2020 02:17:19 +0100 Matthew Wilcox wrote: > On Mon, Sep 28, 2020 at 06:03:07PM -0700, Andrew Morton wrote: > > On Sat, 26 Sep 2020 22:39:19 +0100 "Matthew Wilcox (Oracle)" > > wrote: > > > > > Here is a very rare race which leaks memory: > > > > Not worth a cc:stable? > >

Re: [PATCH v7 bpf-next 8/8] selftests/bpf: add test for bpf_seq_printf_btf helper

2020-09-28 Thread Andrii Nakryiko
On Mon, Sep 28, 2020 at 4:36 AM Alan Maguire wrote: > > Add a test verifying iterating over tasks and displaying BTF > representation of task_struct succeeds. > > Suggested-by: Alexei Starovoitov > Signed-off-by: Alan Maguire > --- Hey Alan, These selftests rely on having struct btf_ptr and

Re: [PATCH 6/8] usb: cdnsp: Device side header file for CDNSP driver

2020-09-28 Thread Peter Chen
On 20-09-28 14:27:39, Pawel Laszczak wrote: > Patch defines macros, registers and structures used by > Device side driver. > > Because the size of main patch is very big, I’ve decided to create > separate patch for gadget.h. It should simplify reviewing the code. > > Signed-off-by: Pawel

Re: [PATCH v4] kvm,x86: Exit to user space in case page fault error

2020-09-28 Thread Sean Christopherson
On Mon, Jul 20, 2020 at 05:13:59PM -0400, Vivek Goyal wrote: > --- > arch/x86/include/asm/kvm_host.h | 2 ++ > arch/x86/kvm/mmu.h | 2 +- > arch/x86/kvm/mmu/mmu.c | 2 +- > arch/x86/kvm/x86.c | 54 +++-- > include/linux/kvm_types.h

Seien Sie glücklich 2.000.000,00 Euro

2020-09-28 Thread dkz_3
Herzlichen Glückwunsch, Ihre E-Mail wurde zufällig ausgewählt. Ihre E-Mail hat € 2.000.000,00 gewonnen. Kontaktieren Sie die E-Mail unten für weitere Informationen und Anspruch auf das Geld. cwjacksonjun...@gmail.com Herzlichen Glückwunsch noch einmal.

Re: [PATCH 5/8] usb: cdns3: Changed type of gadget_dev in cdns structure

2020-09-28 Thread Peter Chen
On 20-09-28 14:27:38, Pawel Laszczak wrote: > Patch changes the type for gadget_dev pointer in cdns structure from > pointer to cdns3_device structure to void pointer. > This filed is in reusable code and after this change it will be used to > point to both cdns3_device or cdnsp_device objects. >

Re: [PATCH 7/8] usb: cdnsp: cdns3 Add main part of Cadence USBSSP DRD Driver

2020-09-28 Thread Chunfeng Yun
On Mon, 2020-09-28 at 14:27 +0200, Pawel Laszczak wrote: > This patch introduces the main part of Cadence USBSSP DRD driver > to Linux kernel. > To reduce the patch size a little bit, the header file gadget.h was > intentionally added as separate patch. > > The Cadence USBSSP DRD Controller is a

[PATCH v4] Bluetooth: btusb: Add Qualcomm Bluetooth SoC WCN6855 support

2020-09-28 Thread Rocky Liao
This patch add support for WCN6855 i.e. patch and nvm download support. T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=0cf3 ProdID=e600 Rev= 0.01 C:* #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=100mA I:* If#= 0 Alt= 0

Re: [PATCH v3 1/5] fpga: dfl: rename the bus type "dfl" to "fpga-dfl"

2020-09-28 Thread Moritz Fischer
Hi Xu, On Tue, Sep 29, 2020 at 09:23:23AM +0800, Xu Yilun wrote: > Hi moritz: > > On Sun, Sep 27, 2020 at 04:36:47PM +0800, Xu Yilun wrote: > > Hi Greg, > > > > On Sun, Sep 27, 2020 at 09:54:01AM +0200, Greg KH wrote: > > > On Sun, Sep 27, 2020 at 03:37:54PM +0800, Xu Yilun wrote: > > > > Hi

Re: [PATCH V3 6/8] mm: and drivers core: Convert hugetlb_report_node_meminfo to sysfs_emit

2020-09-28 Thread Greg Kroah-Hartman
On Mon, Sep 28, 2020 at 05:53:07PM -0700, Joe Perches wrote: > On Sat, 2020-09-19 at 08:22 +0200, Greg Kroah-Hartman wrote: > > On Wed, Sep 16, 2020 at 01:40:43PM -0700, Joe Perches wrote: > > > Convert the unbound sprintf in hugetlb_report_node_meminfo to use > > > sysfs_emit_at so that no

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

2020-09-28 Thread Josh Poimboeuf
On Fri, Sep 25, 2020 at 02:38:20PM +0100, Al Viro wrote: > On Fri, Sep 25, 2020 at 10:01:28PM +1000, Stephen Rothwell wrote: > > $ x86_64-linux-gnu-gcc --version > > x86_64-linux-gnu-gcc (Debian 10.2.0-9) 10.2.0 > > $ x86_64-linux-gnu-ld --version > > GNU ld (GNU Binutils for Debian) 2.35 > > > >

Re: [PATCH 3/5] iommu/tegra-smmu: Use iommu_fwspec in .probe_/.attach_device()

2020-09-28 Thread Dmitry Osipenko
... >> As I mentioned in another reply, I think tegra_smmu_find() should be all >> you need in this case. > > This function is used by .probe_device() where its dev pointer is > an SMMU client. IIUC, tegra_smmu_find() needs np pointer of "mc". > For a PCI device that doesn't have a DT node with

RE: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-09-28 Thread Z.q. Hou
Hi Lorenzo, Thanks a lot for your comments! > -Original Message- > From: Lorenzo Pieralisi > Sent: 2020年9月28日 17:39 > To: Z.q. Hou > Cc: Rob Herring ; linux-kernel@vger.kernel.org; PCI > ; Bjorn Helgaas ; > Gustavo Pimentel ; Michael Walle > ; Ard Biesheuvel > Subject: Re: [PATCH]

Re: [PATCH v38 10/24] mm: Add vm_ops->mprotect()

2020-09-28 Thread Jarkko Sakkinen
On Mon, Sep 28, 2020 at 06:37:54PM -0700, Andy Lutomirski wrote: > I don’t personally care that much about EMODPE but, you could probably > get the point across with something like: > > SGX’s EPCM permission bits do not obviate the need to enforce these > rules in the PTEs because enclaves can

Re: [PATCH v2 1/3] ARM: tegra: Add device-tree for Ouya

2020-09-28 Thread Dmitry Osipenko
26.09.2020 16:47, Dmitry Osipenko пишет: > 26.09.2020 05:01, Peter Geis пишет: > ... + pmic: pmic@2d { + compatible = "ti,tps65911"; + reg = <0x2d>; + + interrupts = ; +

arch/powerpc/kexec/core.c:246:29: sparse: sparse: incorrect type in assignment (different base types)

2020-09-28 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: fb0155a09b0224a7147cb07a4ce6034c8d29667f commit: 793b08e2efff3ec020c5c5861d00ed394fcdd488 powerpc/kexec: Move kexec files into a dedicated subdir. date: 10 months ago config:

Re: [RFC PATCH 3/3] KVM: x86: Use KVM_BUG/KVM_BUG_ON to handle bugs that are fatal to the VM

2020-09-28 Thread Sean Christopherson
On Fri, Sep 25, 2020 at 11:06:10PM +0200, Paolo Bonzini wrote: > On 25/09/20 19:12, Sean Christopherson wrote: > >> Do we actually want to prevent *all* ioctls? E.g. when 'vm bugged' > >> condition is triggered userspace may want to extract some information to > >> assist debugging but even things

Re: [PATCH v38 16/24] x86/sgx: Add a page reclaimer

2020-09-28 Thread Jarkko Sakkinen
On Mon, Sep 28, 2020 at 06:14:39PM -0700, Sean Christopherson wrote: > On Tue, Sep 22, 2020 at 05:03:23PM +0300, Jarkko Sakkinen wrote: > > On Tue, Sep 22, 2020 at 12:45:38PM +0200, Borislav Petkov wrote: > > > > + spin_lock(_active_page_list_lock); > > > > + for (i = 0; i <

Re: [PATCH v2] page_alloc: Fix freeing non-compound pages

2020-09-28 Thread Matthew Wilcox
On Mon, Sep 28, 2020 at 06:03:07PM -0700, Andrew Morton wrote: > Well that's weird and scary looking. `page' has non-zero refcount yet > we go and free random followon pages. Methinks it merits an > explanatory comment? Here's some kernel-doc. Opinions? /** * __free_pages - Free pages

Re: [PATCH 2/8] usb: cdns3: Split core.c into cdns3-plat and core.c file

2020-09-28 Thread Peter Chen
On 20-09-28 14:27:35, Pawel Laszczak wrote: > Patch splits file core.c into core.c containing the common reusable code > and cnd3-plat.c containing device platform specific code. These changes cdns3-plat.c Pawel, at 5.10-rc1, there are some cdns3 driver updates at Felipe's next tree, you may

Re: [PATCHv4] perf kvm: add kvm-stat for arm64

2020-09-28 Thread Sergey Senozhatsky
On (20/09/17 19:02), Sergey Senozhatsky wrote: > Add support for perf kvm stat on arm64 platform. > > Example: > # perf kvm stat report > > Analyze events for all VMs, all VCPUs: > > VM-EXITSamples Samples% Time%Min TimeMax Time > Avg time > >DABT_LOW

[PATCH v2] tools lib traceevent: Hide non API functions

2020-09-28 Thread Tzvetomir Stoyanov (VMware)
There are internal library functions, which are not decalred as a static. They are used inside the library from different files. Hide them from the library users, as they are not part of the API. These functions are made hidden and are renamed without the prefix "tep_": tep_free_plugin_paths

Re: [PATCH v6 1/3] remoteproc: Move coredump configuration to sysfs

2020-09-28 Thread Bjorn Andersson
On Mon 28 Sep 17:17 CDT 2020, Rishabh Bhatnagar wrote: > Move coredump configuration from debugfs to sysfs.This will > allow usage of this configuration feature in production > devices where access to debugfs might be limited. > > Signed-off-by: Rishabh Bhatnagar I like the end result of this

[PATCH WIP 5/6] media: vidtv: Move s302m specific fields into encoder context

2020-09-28 Thread Daniel W. S. Almeida
From: Daniel W. S. Almeida A few fields used only by the tone generator in the s302m encoder are stored in struct vidtv_encoder. Move them into struct vidtv_s302m_ctx instead. While we are at it: fix a checkpatch warning for long lines. Signed-off-by: Daniel W. S. Almeida ---

[PATCH WIP 4/6] media: vidtv: psi: extract descriptor chaining code into a helper

2020-09-28 Thread Daniel W. S. Almeida
From: Daniel W. S. Almeida The code to append a descriptor to the end of a chain is repeated throughout the psi generator code. Extract it into its own helper function to avoid cluttering. Signed-off-by: Daniel W. S. Almeida --- drivers/media/test-drivers/vidtv/vidtv_psi.c | 49

[PATCH WIP 3/6] media: vidtv: psi: Implement an Event Information Table (EIT)

2020-09-28 Thread Daniel W. S. Almeida
From: Daniel W. S. Almeida Implement an Event Information Table (EIT) as per EN 300 468 5.2.4. The EIT provides information in chronological order regarding the events contained within each service. For now only present event information is supported. Signed-off-by: Daniel W. S. Almeida ---

[PATCH WIP 6/6] media: vidtv: psi: fix missing assignments in while loops

2020-09-28 Thread Daniel W. S. Almeida
From: Daniel W. S. Almeida Some variables were only assigned once but were used in while loops as if they had been updated at every iteration. Fix this. Signed-off-by: Daniel W. S. Almeida --- drivers/media/test-drivers/vidtv/vidtv_psi.c | 22 +--- 1 file changed, 10

[PATCH WIP 2/6] media: vidtv: psi: add a Network Information Table (NIT)

2020-09-28 Thread Daniel W. S. Almeida
From: Daniel W. S. Almeida Add a Network Information Table (NIT) as specified in ETSI EN 300 468. This table conveys information relating to the physical organization of the multiplexes carried via a given network and the characteristics of the network itself. It is conveyed in the output of

[PATCH WIP 1/6] media: vidtv: extract the initial CRC value to into a #define

2020-09-28 Thread Daniel W. S. Almeida
From: Daniel W. S. Almeida The same constant (0x) is used in three different functions. Extract it into a #define to avoid repetition. Signed-off-by: Daniel W. S. Almeida --- drivers/media/test-drivers/vidtv/vidtv_psi.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-)

Re: [PATCH 0/8] Introduced new Cadence USBSSP DRD Driver.

2020-09-28 Thread Peter Chen
On 20-09-28 14:27:33, Pawel Laszczak wrote: > This patch introduce new Cadence USBSS DRD driver to linux kernel. > > The Cadence USBSS DRD Controller is a highly configurable IP Core which > can be instantiated as Dual-Role Device (DRD), Peripheral Only and > Host Only (XHCI)configurations. > >

[v5,2/4] dt-binding: mediatek: mt8192: update mtk-wdt document

2020-09-28 Thread Crystal Guo
update mtk-wdt document for MT8192 platform Signed-off-by: Crystal Guo Reviewed-by: Matthias Brugger Reviewed-by: Guenter Roeck --- Documentation/devicetree/bindings/watchdog/mtk-wdt.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt

[v5,4/4] watchdog: mt8192: add wdt support

2020-09-28 Thread Crystal Guo
Add support for watchdog device found in MT8192 SoC Signed-off-by: Crystal Guo Reviewed-by: Matthias Brugger Reviewed-by: Guenter Roeck --- drivers/watchdog/mtk_wdt.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/watchdog/mtk_wdt.c b/drivers/watchdog/mtk_wdt.c index

[v5,1/4] dt-binding: mediatek: watchdog: fix the description of compatible

2020-09-28 Thread Crystal Guo
The watchdog driver for MT2712 and MT8183 relies on DT data, so the fallback compatible MT6589 won't work. Signed-off-by: Crystal Guo Reviewed-by: Matthias Brugger Reviewed-by: Guenter Roeck --- Documentation/devicetree/bindings/watchdog/mtk-wdt.txt | 4 ++-- 1 file changed, 2 insertions(+),

[v5,0/4] watchdog: mt8192: add wdt support

2020-09-28 Thread Crystal Guo
v5 changes: fix typos on: https://patchwork.kernel.org/patch/11697493/ v4 changes: revise commit messages. v3 changes: https://patchwork.kernel.org/patch/11692731/ https://patchwork.kernel.org/patch/11692767/ https://patchwork.kernel.org/patch/11692729/

[v5,3/4] dt-binding: mt8192: add toprgu reset-controller head file

2020-09-28 Thread Crystal Guo
add toprgu reset-controller head file for MT8192 platform Signed-off-by: Crystal Guo Reviewed-by: Matthias Brugger Acked-by: Guenter Roeck --- .../reset-controller/mt8192-resets.h | 30 +++ 1 file changed, 30 insertions(+) create mode 100644

Re: [PATCH v4 12/20] dt-bindings: arm: hisilicon: convert hisilicon,hi3798cv200-perictrl bindings to json-schema

2020-09-28 Thread Leizhen (ThunderTown)
On 2020/9/29 3:14, Rob Herring wrote: > On Mon, Sep 28, 2020 at 11:13:16PM +0800, Zhen Lei wrote: >> Convert the Hisilicon Hi3798CV200 Peripheral Controller binding to DT >> schema format using json-schema. >> >> Signed-off-by: Zhen Lei >> --- >>

[PATCH v4 0/4] Qualcomm Light Pulse Generator

2020-09-28 Thread Bjorn Andersson
This series introduces a generic pattern interface in the LED class and a driver for the Qualcomm Light Pulse Generator. It seems like it's been almost 3 years since I posted v3, which was hung up on the lack of conclusion on the hw_pattern and multicolor support. Now that those are concluded I

[PATCH v4 1/4] dt-bindings: leds: Add Qualcomm Light Pulse Generator binding

2020-09-28 Thread Bjorn Andersson
This adds the binding document describing the three hardware blocks related to the Light Pulse Generator found in a wide range of Qualcomm PMICs. Signed-off-by: Bjorn Andersson --- Changes since v3: - Rewritten as YAML - Adopt multicolor model .../bindings/leds/leds-qcom-lpg.yaml |

[PATCH v4 4/4] arm64: dts: qcom: Add user LEDs on db820c

2020-09-28 Thread Bjorn Andersson
The db820c has 4 "user LEDs", all connected to the PMI8994. The first three are connected to the three current sinks provided by the TRILED and the fourth is connected to MPP2. By utilizing the DTEST bus the MPP is fed the control signal from the fourth LPG block, providing a consistent interface

[PATCH v4 2/4] leds: Add driver for Qualcomm LPG

2020-09-28 Thread Bjorn Andersson
The Light Pulse Generator (LPG) is a PWM-block found in a wide range of PMICs from Qualcomm. It can operate on fixed parameters or based on a lookup-table, altering the duty cycle over time - which provides the means for e.g. hardware assisted transitions of LED brightness. Signed-off-by: Bjorn

[PATCH v4 3/4] arm64: dts: qcom: msm8996: Add mpp and lpg blocks

2020-09-28 Thread Bjorn Andersson
The pm8994 contains a 6 LPG channels. The pmi8994 contains 4 MPP channels and a 4 channel LPG, with TRILED and LUT blocks. Add nodes for these blocks. Signed-off-by: Bjorn Andersson --- Changes since v3: - None arch/arm64/boot/dts/qcom/pm8994.dtsi | 9 +

Re: [PATCH v13 02/10] KVM: x86/vmx: Make vmx_set_intercept_for_msr() non-static and expose it

2020-09-28 Thread Sean Christopherson
On Sun, Jul 26, 2020 at 11:32:21PM +0800, Like Xu wrote: > It's reasonable to call vmx_set_intercept_for_msr() in other vmx-specific > files (e.g. pmu_intel.c), so expose it without semantic changes hopefully. I suppose it's reasonable, but you still need to state what is actually going to use

Re: [PATCH v4 20/20] dt-bindings: arm: hisilicon: convert LPC controller bindings to json-schema

2020-09-28 Thread Leizhen (ThunderTown)
On 2020/9/29 3:16, Rob Herring wrote: > On Mon, Sep 28, 2020 at 11:13:24PM +0800, Zhen Lei wrote: >> Convert the Hisilicon Hip06 SoCs implement a Low Pin Count (LPC) >> controller binding to DT schema format using json-schema. >> >> Signed-off-by: Zhen Lei >> --- >>

Re: [PATCH v4 07/20] dt-bindings: arm: hisilicon: convert system controller bindings to json-schema

2020-09-28 Thread Leizhen (ThunderTown)
On 2020/9/29 3:13, Rob Herring wrote: > On Mon, Sep 28, 2020 at 11:13:11PM +0800, Zhen Lei wrote: >> Convert the Hisilicon system controller and its variants binding to DT >> schema format using json-schema. All of them are grouped into one yaml >> file, to help users understand differences and

Re: [PATCH v4 03/20] dt-bindings: arm: hisilicon: add binding for SD5203 SoC

2020-09-28 Thread Leizhen (ThunderTown)
On 2020/9/29 3:07, Rob Herring wrote: > On Mon, Sep 28, 2020 at 11:13:07PM +0800, Zhen Lei wrote: >> Add devicetree binding for Hisilicon SD5203 SoC. >> >> Signed-off-by: Zhen Lei >> --- >> Documentation/devicetree/bindings/arm/hisilicon/hisilicon.yaml | 4 >> 1 file changed, 4

Re: [PATCH v4 01/20] dt-bindings: arm: hisilicon: split the dt-bindings of each controller into a separate file

2020-09-28 Thread Leizhen (ThunderTown)
On 2020/9/29 3:05, Rob Herring wrote: > On Mon, Sep 28, 2020 at 11:13:05PM +0800, Zhen Lei wrote: >> Split the devicetree bindings of each Hisilicon controller from >> hisilicon.txt into a separate file, the file name is the compatible name >> attach the .txt file name extension. >> >> All

linux-next: build failure after merge of the net-next tree

2020-09-28 Thread Stephen Rothwell
Hi all, After merging the net-next tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/net/ethernet/marvell/prestera/prestera_main.c: In function 'prestera_port_dev_lower_find': drivers/net/ethernet/marvell/prestera/prestera_main.c:504:33: error: passing argument 2

Re: [PATCH 2/2] mm: remove extra ZONE_DEVICE struct page refcount

2020-09-28 Thread Bharata B Rao
On Fri, Sep 25, 2020 at 01:44:42PM -0700, Ralph Campbell wrote: > ZONE_DEVICE struct pages have an extra reference count that complicates the > code for put_page() and several places in the kernel that need to check the > reference count to see that a page is not being used (gup, compaction, >

Re: [PATCH v2 23/25] powerpc/signal: Create 'unsafe' versions of copy_[ck][fpr/vsx]_to_user()

2020-09-28 Thread Christopher M. Riedl
On Tue Aug 18, 2020 at 12:19 PM CDT, Christophe Leroy wrote: > For the non VSX version, that's trivial. Just use unsafe_copy_to_user() > instead of __copy_to_user(). > > For the VSX version, remove the intermediate step through a buffer and > use unsafe_put_user() directly. This generates a far

Re: [PATCH v2 25/25] powerpc/signal32: Transform save_user_regs() and save_tm_user_regs() in 'unsafe' version

2020-09-28 Thread Christopher M. Riedl
On Tue Aug 18, 2020 at 12:19 PM CDT, Christophe Leroy wrote: > Change those two functions to be used within a user access block. > > For that, change save_general_regs() to and unsafe_save_general_regs(), > then replace all user accesses by unsafe_ versions. > > This series leads to a reduction

[PATCH v5] Introduce support for Systems Management Driver over WMI for Dell Systems

2020-09-28 Thread Divya Bharathi
The Dell WMI Systems Management Driver provides a sysfs interface for systems management to enable BIOS configuration capability on certain Dell Systems. This driver allows user to configure Dell systems with a uniform common interface. To facilitate this, the patch introduces a generic way for

Re: [PATCH 2/2] ARM: decompressor: relax the loading restriction of the decompressed kernel

2020-09-28 Thread Leizhen (ThunderTown)
On 2020/9/28 20:57, Geert Uytterhoeven wrote: > Hi Zhen, > > On Mon, Sep 28, 2020 at 2:15 PM Ard Biesheuvel wrote: >> On Mon, 28 Sep 2020 at 13:57, Leizhen (ThunderTown) >> wrote: >>> On 2020/9/28 18:14, Ard Biesheuvel wrote: On Mon, 28 Sep 2020 at 11:27, Zhen Lei wrote: > >

Re: [PATCH v8 05/11] dt-bindings: connector: Add property to set initial current cap for FRS

2020-09-28 Thread Badhri Jagan Sridharan
On Tue, Sep 22, 2020 at 9:04 AM Rob Herring wrote: > > On Mon, Sep 21, 2020 at 12:55:49PM -0700, Badhri Jagan Sridharan wrote: > > This change adds frs-typec-current which allows setting the initial current > > capability of the new source when vSafe5V is applied during PD3.0 > > sink Fast Role

Re: [PATCH 2/5 V2] PCI: pciehp: check and wait port status out of DPC before handling DLLSC and PDC

2020-09-28 Thread Ethan Zhao
On Tue, Sep 29, 2020 at 12:44 AM Sinan Kaya wrote: > > On 9/28/2020 7:10 AM, Sinan Kaya wrote: > > On 9/27/2020 10:01 PM, Zhao, Haifeng wrote: > >> Sinan, > >>I explained the reason why locks don't protect this case in the patch > >> description part. > >> Write side and read side hold

[PATCH v6 1/1] dt-bindings: dw-apb-ictl: convert to json-schema

2020-09-28 Thread Zhen Lei
Convert the Synopsys DesignWare APB interrupt controller (dw_apb_ictl) binding to DT schema format using json-schema. Signed-off-by: Zhen Lei --- .../interrupt-controller/snps,dw-apb-ictl.txt | 43 -- .../interrupt-controller/snps,dw-apb-ictl.yaml | 68

[PATCH v6 0/1] irqchip: dw-apb-ictl: support hierarchy irq domain

2020-09-28 Thread Zhen Lei
v6 -- > v7 All other 5 patches are applied, this is the only one left. And it depends on: https://www.spinics.net/lists/devicetree/msg379734.html The modifications of this version are: 1. Remove the unneeded allOf. It's already selected based on node name. allOf: - $ref:

[tip:x86/irq] BUILD SUCCESS 981aa1d366bf46bdc1c9259a5ab818a8d522724e

2020-09-28 Thread kernel test robot
mips allyesconfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a005-20200928 x86_64

Re: [PATCH v8 05/11] dt-bindings: connector: Add property to set initial current cap for FRS

2020-09-28 Thread Badhri Jagan Sridharan
On Mon, Sep 28, 2020 at 1:57 AM Jun Li wrote: > > Badhri Jagan Sridharan 于2020年9月24日周四 下午6:09写道: > > > > Hi Jun, > > > > Thanks for the feedback ! > > The sink PDO from current source reflects the current source's(i.e. > > transmitter of the FRS signal) power requirement during fr swap. > > The

Re: [PATCH v8 03/11] dt-bindings: usb: Maxim type-c controller device tree binding document

2020-09-28 Thread Badhri Jagan Sridharan
On Tue, Sep 22, 2020 at 8:59 AM Rob Herring wrote: > > On Mon, 21 Sep 2020 12:55:47 -0700, Badhri Jagan Sridharan wrote: > > Add device tree binding document for Maxim TCPCI based Type-C chip driver > > > > Signed-off-by: Badhri Jagan Sridharan > > --- > > Changes since v1: > > - Changing patch

[PATCH v9 12/15] usb: typec: tcpm: Parse frs type-c current from device tree

2020-09-28 Thread Badhri Jagan Sridharan
New source's current capability is now defined as string based device tree property through new-source-frs-typec-current. Refactor tcpm code to parse new-source-frs-typec-current and infer local port's new source current capability during frs. Signed-off-by: Badhri Jagan Sridharan --- v9 is the

[PATCH v9 08/15] usb: typec: tcpci_maxim: Add support for Sink FRS

2020-09-28 Thread Badhri Jagan Sridharan
Upon receiving ALERT_EXTENDED.TCPC_SINK_FAST_ROLE_SWAP signal tcpm to start Sink fast role swap signal. Inform when TCPM is sourcing vbus. Signed-off-by: Badhri Jagan Sridharan Reviewed-by: Heikki Krogerus --- Changes since v1: - Changing patch version to v6 to fix version number confusion.

[PATCH v9 06/15] usb: typec: tcpm: Add support for Sink Fast Role SWAP(FRS)

2020-09-28 Thread Badhri Jagan Sridharan
PD 3.0 spec defines a new mechanism for power role swap called Fast role swap. This change enables TCPM to support FRS when acting as sink. Once the explicit contract is negotiated, sink port is expected to query the source port for sink caps to determine whether the source is FRS capable. Bits

Re: [RFC] process /proc/PID/smaps vs /proc/PID/smaps_rollup

2020-09-28 Thread Sergey Senozhatsky
On (20/09/29 11:05), Sergey Senozhatsky wrote: > Hello, > > One of our unprivileged daemon process needs process PSS info. That > info is usually available in /proc/PID/smaps on per-vma basis, on > in /proc/PID/smaps_rollup as a bunch of accumulated per-vma values. > The latter one is much faster

[PATCH v9 14/15] usb: typec: tcpci: Implement Auto discharge disconnect callbacks

2020-09-28 Thread Badhri Jagan Sridharan
vImplement callbacks for enabling/disabling POWER_CONTROL.AutoDischargeDisconnect. Programs VBUS_SINK_DISCONNECT_THRESHOLD based on the voltage requested as sink, mode of operation. The programmed threshold is based on vSinkDisconnect and vSinkDisconnectPD values. Add auto_discharge_disconnect

[PATCH v9 15/15] usb: typec: tcpci_maxim: Enable auto discharge disconnect

2020-09-28 Thread Badhri Jagan Sridharan
Enable auto discharge disconnect for Maxim TCPC. Signed-off-by: Badhri Jagan Sridharan --- Changes since v1: - Changing patch version to v6 to fix version number confusion. Changes since v6: - Rebase on usb-next. Changes since v7: - Heikki's suggestion: Moved the actual write of

[PATCH v9 13/15] usb: typec: tcpm: Implement enabling Auto Discharge disconnect support

2020-09-28 Thread Badhri Jagan Sridharan
TCPCI spec allows TCPC hardware to autonomously discharge the vbus capacitance upon disconnect. The expectation is that the TCPM enables AutoDischargeDisconnect while entering SNK/SRC_ATTACHED states. Hardware then automously discharges vbus when the vbus falls below a certain threshold i.e.

[PATCH v9 04/15] usb: typec: tcpci_maxim: Chip level TCPC driver

2020-09-28 Thread Badhri Jagan Sridharan
Chip level TCPC driver for Maxim's TCPCI implementation. This TCPC implementation does not support the following commands: COMMAND.SinkVbus, COMMAND.SourceVbusDefaultVoltage, COMMAND.SourceVbusHighVoltage. Instead the sinking and sourcing from vbus is supported by writes to custom registers.

[PATCH v9 05/15] dt-bindings: connector: Add property to set initial current cap for FRS

2020-09-28 Thread Badhri Jagan Sridharan
This change adds frs-typec-current which allows setting the initial current capability of the new source when vSafe5V is applied during PD3.0 sink Fast Role Swap. Signed-off-by: Badhri Jagan Sridharan --- Changes since v1: - Changing patch version to v6 to fix version number confusion. Changes

[PATCH v9 07/15] usb: typec: tcpci: Implement callbacks for FRS

2020-09-28 Thread Badhri Jagan Sridharan
Implement tcpc.enable_frs to enable TCPC to receive Fast role swap signal. Additionally set the sink disconnect threshold to 4v to prevent disconnect during Fast Role swap. Signed-off-by: Badhri Jagan Sridharan Reviewed-by: Heikki Krogerus --- Changes since v1: - Changing patch version to v6

[PATCH v9 10/15] usb: typec: tcpci: frs sourcing vbus callback

2020-09-28 Thread Badhri Jagan Sridharan
During FRS hardware autonomously starts to source vbus. Provide callback to perform chip specific operations. Signed-off-by: Badhri Jagan Sridharan --- v9 is the first version of this patch in the series. Added to fix occasional bug of vbus turning back on when disconnecting the FRS accessory

  1   2   3   4   5   6   7   8   9   10   >