Re: [PATCH v4 1/3] dmaengine: ptdma: Initial driver for the AMD PTDMA controller

2020-05-26 Thread Sanjay R Mehta
Apologies for my delayed response. >> +#include >> +#include >> +#include >> +#include >> +#include >> + >> +#include "ptdma.h" >> + >> +static int cmd_queue_length = 32; >> +module_param(cmd_queue_length, uint, 0644); >> +MODULE_PARM_DESC(cmd_queue_length, >> + " length of the

[PATCH] Replace HTTP links with HTTPS ones: documentation

2020-05-26 Thread Alexander A. Klimov
Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each file: For each line: If doesn't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`: If both the HTTP

Re: [PATCH 4/5] seccomp: Add SECCOMP_ADDFD_FLAG_MOVE flag to add fd ioctl

2020-05-26 Thread Sargun Dhillon
> > + * they are created in. Specifcally, sockets, and their interactions with > > the > > + * net_cls and net_prio cgroup v1 controllers. This "moves" the file > > descriptor > > + * so that it takes on the cgroup controller's configuration in the process > > + * that the file descriptor is

Re: [PATCH v4 3/3] dmaengine: ptdma: Add debugfs entries for PTDMA information

2020-05-26 Thread Sanjay R Mehta
>> +static const struct file_operations pt_debugfs_info_ops = { >> + .owner = THIS_MODULE, >> + .open = simple_open, >> + .read = ptdma_debugfs_info_read, >> + .write = NULL, >> +}; >> + >> +static const struct file_operations pt_debugfs_queue_ops = { >> + .owner = THIS_MODULE,

[PATCH v4 0/7] perf: Stream comparison

2020-05-26 Thread Jin Yao
Sometimes, a small change in a hot function reducing the cycles of this function, but the overall workload doesn't get faster. It is interesting where the cycles are moved to. What it would like is to diff before/after streams. The stream is the branch history which is aggregated by the branch

[PATCH v4 3/7] perf util: Compare two streams

2020-05-26 Thread Jin Yao
Stream is the branch history which is aggregated by the branch records from perf samples. Now we only support the callchain as stream. If the callchain entries of one stream are fully matched with the callchain entries of another stream, we think two streams are matched. For example, cycles:

[PATCH v4 5/7] perf util: Calculate the sum of total streams hits

2020-05-26 Thread Jin Yao
We have used callchain_node->hit to measure the hot level of one stream. This patch calculates the sum of hits of total streams. Then in next patch, we can use following formula to report hot percent for one stream. hot percent = callchain_node->hit / sum of total hits Signed-off-by: Jin Yao

[PATCH v4 4/7] perf util: Link stream pair

2020-05-26 Thread Jin Yao
In previous patch, we have created an evsel_streams for one event, and top N hottest streams will be saved in a stream array in evsel_streams. This patch compares total streams among two evsel_streams. Once two streams are fully matched, they will be linked as a pair. From the pair, we can know

[PATCH v4 1/7] perf util: Create streams

2020-05-26 Thread Jin Yao
We define the stream is the branch history which is aggregated by the branch records from perf samples. For example, the callchains aggregated from the branch records. By browsing the hot stream, we can understand the hot code path. Now we only support the callchain. So for measuring the hot

[PATCH v4 6/7] perf util: Report hot streams

2020-05-26 Thread Jin Yao
We show the streams separately. They are divided into different sections. 1. "Matched hot streams" 2. "Hot streams in old perf data only" 3. "Hot streams in new perf data only". For each stream, we report the cycles and hot percent (hits%). For example, cycles: 2, hits: 4.08%

[PATCH v4 2/7] perf util: Get the evsel_streams by evsel_idx

2020-05-26 Thread Jin Yao
In previous patch, we have created evsel_streams array This patch returns the specified evsel_streams according to the evsel_idx. Signed-off-by: Jin Yao --- tools/perf/util/stream.c | 11 +++ tools/perf/util/stream.h | 3 +++ 2 files changed, 14 insertions(+) diff --git

[PATCH v4 7/7] perf diff: Support hot streams comparison

2020-05-26 Thread Jin Yao
This patch enables perf-diff with "--stream" option. "--stream": Enable hot streams comparison Now let's see examples. perf record -b ... Generate perf.data.old with branch data perf record -b ... Generate perf.data with branch data perf diff --stream [ Matched hot streams ] hot

Re: [PATCH v2 4/4] x86/boot: Check that there are no runtime relocations

2020-05-26 Thread Ard Biesheuvel
On Tue, 26 May 2020 at 00:59, Arvind Sankar wrote: > > Add a linker script check that there are no runtime relocations, and > remove the old one that tries to check via looking for specially-named > sections in the object files. > > Drop the tests for -fPIE compiler option and -pie linker option,

Re: clean up and streamline probe_kernel_* and friends v4

2020-05-26 Thread Christoph Hellwig
On Mon, May 25, 2020 at 03:19:12PM -0700, Andrew Morton wrote: > hm. Applying linux-next to this series generates a lot of rejects against > powerpc: > > -rw-rw-r-- 1 akpm akpm 493 May 25 15:06 arch/powerpc/kernel/kgdb.c.rej > -rw-rw-r-- 1 akpm akpm 6461 May 25 15:06 >

Re: [RFC 06/16] KVM: Use GUP instead of copy_from/to_user() to access guest memory

2020-05-26 Thread Mike Rapoport
On Fri, May 22, 2020 at 03:52:04PM +0300, Kirill A. Shutemov wrote: > New helpers copy_from_guest()/copy_to_guest() to be used if KVM memory > protection feature is enabled. > > Signed-off-by: Kirill A. Shutemov > --- > include/linux/kvm_host.h | 4 +++ > virt/kvm/kvm_main.c | 78

RE: Another approach of UFSHPB

2020-05-26 Thread Avri Altman
> On 2020-05-24 22:40, Daejun Park wrote: > > The HPB driver is close to the UFS core function, but it is not essential > > for operating UFS device. With reference to this article > > (https://lwn.net/Articles/645810/), we implemented extended UFS-feature > > as bus model. Because the HPB driver

Re: [RFC 07/16] KVM: mm: Introduce VM_KVM_PROTECTED

2020-05-26 Thread Mike Rapoport
On Fri, May 22, 2020 at 03:52:05PM +0300, Kirill A. Shutemov wrote: > The new VMA flag that indicate a VMA that is not accessible to userspace > but usable by kernel with GUP if FOLL_KVM is specified. > > The FOLL_KVM is only used in the KVM code. The code has to know how to > deal with such

Re: [RFC 10/16] KVM: x86: Enabled protected memory extension

2020-05-26 Thread Mike Rapoport
On Fri, May 22, 2020 at 03:52:08PM +0300, Kirill A. Shutemov wrote: > Wire up hypercalls for the feature and define VM_KVM_PROTECTED. > > Signed-off-by: Kirill A. Shutemov > --- > arch/x86/Kconfig | 1 + > arch/x86/kvm/cpuid.c | 3 +++ > arch/x86/kvm/x86.c | 9 + >

Re: [RFC 16/16] KVM: Unmap protected pages from direct mapping

2020-05-26 Thread Mike Rapoport
On Fri, May 22, 2020 at 03:52:14PM +0300, Kirill A. Shutemov wrote: > If the protected memory feature enabled, unmap guest memory from > kernel's direct mappings. > > Migration and KSM is disabled for protected memory as it would require a > special treatment. > > Signed-off-by: Kirill A.

Re: [RFC 00/16] KVM protected memory extension

2020-05-26 Thread Mike Rapoport
On Mon, May 25, 2020 at 04:47:18PM +0300, Liran Alon wrote: > > On 22/05/2020 15:51, Kirill A. Shutemov wrote: > > Furthermore, I would like to point out that just unmapping guest data from > kernel direct-map is not sufficient to prevent all > guest-to-guest info-leaks via a kernel memory

[PATCH v4] thermal: qoriq: Update the settings for TMUv2

2020-05-26 Thread Yuantian Tang
For TMU v2, TMSAR registers need to be set properly to get the accurate temperature values. Also the temperature read needs to be converted to degree Celsius since it is in degrees Kelvin. Signed-off-by: Yuantian Tang --- v4: - replace the hard-coded number with constant variables

Re: [PATCH v9 0/8] KVM: Add virtualization support of split lock detection

2020-05-26 Thread Xiaoyao Li
Hi Thomas, On 5/18/2020 9:27 AM, Xiaoyao Li wrote: On 5/9/2020 7:05 PM, Xiaoyao Li wrote: This series aims to add the virtualization of split lock detection in KVM. Due to the fact that split lock detection is tightly coupled with CPU model and CPU model is configurable by host VMM, we elect

[PATCH 1/2] KVM: SVM: fix svn_pin_memory()'s use of get_user_pages_fast()

2020-05-26 Thread John Hubbard
There are two problems in svn_pin_memory(): 1) The return value of get_user_pages_fast() is stored in an unsigned long, although the declared return value is of type int. This will not cause any symptoms, but it is misleading. Fix this by changing the type of npinned to "int". 2) The number of

[PATCH 0/2] KVM: SVM: convert get_user_pages() --> pin_user_pages(), bug fixes

2020-05-26 Thread John Hubbard
Hi, This is just for the SEV (Secure Encrypted Virtualization) part of KVM. It converts the get_user_pages_fast() call, after fixing a couple of small bugs in the vicinity. Note that I have only compile-tested these two patches, so any run-time testing coverage would be greatly appreciated. Cc:

[PATCH 2/2] KVM: SVM: convert get_user_pages() --> pin_user_pages()

2020-05-26 Thread John Hubbard
This code was using get_user_pages*(), in a "Case 2" scenario (DMA/RDMA), using the categorization from [1]. That means that it's time to convert the get_user_pages*() + put_page() calls to pin_user_pages*() + unpin_user_pages() calls. There is some helpful background in [2]: basically, this is a

RE: [PATCH] scsi: ufs-qcom: Fix scheduling while atomic issue

2020-05-26 Thread Avri Altman
> ufs_qcom_dump_dbg_regs() uses usleep_range, a sleeping function, but can > be called from atomic context in the following flow: > > ufshcd_intr -> ufshcd_sl_intr -> ufshcd_check_errors -> > ufshcd_print_host_regs -> ufshcd_vops_dbg_register_dump -> > ufs_qcom_dump_dbg_regs > > This causes a

[PATCH] ALSA: usb: mixer: volume quirk for ESS Technology Asus USB DAC

2020-05-26 Thread Chris Chiu
The Asus USB DAC is a USB type-C audio dongle for connecting to the headset and headphone. The volume minimum value -23040 which is 0xa600 in hexadecimal with the resolution value 1 indicates this should be endianness issue caused by the firmware bug. Add a volume quirk to fix the volume control

Re: [PATCH v4 1/3] dmaengine: ptdma: Initial driver for the AMD PTDMA controller

2020-05-26 Thread Greg KH
On Tue, May 26, 2020 at 11:35:02AM +0530, Sanjay R Mehta wrote: > Apologies for my delayed response. > > >> +#include > >> +#include > >> +#include > >> +#include > >> +#include > >> + > >> +#include "ptdma.h" > >> + > >> +static int cmd_queue_length = 32; > >>

Re: [RFC PATCH 0/3] METADATA design using V4l2 Request API

2020-05-26 Thread dikshita
Hi, A gentle reminder for the review. On 2020-05-08 11:51, Dikshita Agarwal wrote: There are many commercialized video use cases which needs metadata info to be circulated between v4l2 client and v4l2 driver. METADATA has following requirements associated: •Metadata is an optional info

Re: [PATCH v4 1/3] dmaengine: ptdma: Initial driver for the AMD PTDMA controller

2020-05-26 Thread Sanjay R Mehta
On 5/26/2020 11:59 AM, Greg KH wrote: > [CAUTION: External Email] > > On Tue, May 26, 2020 at 11:35:02AM +0530, Sanjay R Mehta wrote: >> Apologies for my delayed response. >> +#include +#include +#include +#include +#include + +#include "ptdma.h" +

Re: [RFC 07/16] KVM: mm: Introduce VM_KVM_PROTECTED

2020-05-26 Thread John Hubbard
On 2020-05-22 05:52, Kirill A. Shutemov wrote: ... @@ -2773,6 +2780,7 @@ struct page *follow_page(struct vm_area_struct *vma, unsigned long address, #define FOLL_LONGTERM 0x1 /* mapping lifetime is indefinite: see below */ #define FOLL_SPLIT_PMD0x2 /* split huge pmd before

Re: [PATCH v3 1/6] arm64: Detect the ARMv8.4 TTL feature

2020-05-26 Thread Zhenyu Ye
Hi Anshuman, On 2020/5/26 10:39, Anshuman Khandual wrote: > This patch (https://patchwork.kernel.org/patch/11557359/) is adding some > more ID_AA64MMFR2 features including the TTL. I am going to respin parts > of the V4 series patches along with the above mentioned patch. So please > rebase this

Re: [PATCH v2 16/18] nitro_enclaves: Add sample for ioctl interface usage

2020-05-26 Thread Greg KH
On Mon, May 25, 2020 at 11:57:26PM +0300, Paraschiv, Andra-Irina wrote: > > > On 22/05/2020 10:08, Greg KH wrote: > > On Fri, May 22, 2020 at 09:29:44AM +0300, Andra Paraschiv wrote: > > > Signed-off-by: Alexandru Vasile > > > Signed-off-by: Andra Paraschiv > > I know I don't take commits with

[PATCH] doc: filesystems: format tables in locking properly

2020-05-26 Thread Lukas Bulwahn
Commit 28df3d1539de ("nfsd: clients don't need to break their own delegations") introduced lm_breaker_owns_lease and documented that in the according table. Commit 43dbd0e7e62b ("mmap locking API: convert mmap_sem comments") renamed mmap_sem to mmap_lock in another table. Both changes created a

Re: [PATCH v2 07/18] nitro_enclaves: Init misc device providing the ioctl interface

2020-05-26 Thread Greg KH
On Mon, May 25, 2020 at 11:49:50PM +0300, Paraschiv, Andra-Irina wrote: > > > On 22/05/2020 10:07, Greg KH wrote: > > On Fri, May 22, 2020 at 09:29:35AM +0300, Andra Paraschiv wrote: > > > +static char *ne_cpus; > > > +module_param(ne_cpus, charp, 0644); > > > +MODULE_PARM_DESC(ne_cpus, " - CPU

Re: [PATCH v3 02/18] nitro_enclaves: Define the PCI device interface

2020-05-26 Thread Greg KH
On Tue, May 26, 2020 at 01:13:18AM +0300, Andra Paraschiv wrote: > +struct enclave_get_slot_req { > + /* Context ID (CID) for the enclave vsock device. */ > + u64 enclave_cid; > +} __attribute__ ((__packed__)); Can you really "pack" a single member structure? Anyway, we have better ways

Re: [PATCH v3 03/18] nitro_enclaves: Define enclave info for internal bookkeeping

2020-05-26 Thread Greg KH
On Tue, May 26, 2020 at 01:13:19AM +0300, Andra Paraschiv wrote: > +/* Nitro Enclaves (NE) misc device */ > +extern struct miscdevice ne_miscdevice; Why does your misc device need to be in a .h file? Having the patch series like this (add random .h files, and then start to use them), is hard to

Re: [PATCH v3 04/18] nitro_enclaves: Init PCI device driver

2020-05-26 Thread Greg KH
On Tue, May 26, 2020 at 01:13:20AM +0300, Andra Paraschiv wrote: > The Nitro Enclaves PCI device is used by the kernel driver as a means of > communication with the hypervisor on the host where the primary VM and > the enclaves run. It handles requests with regard to enclave lifetime. > > Setup

Re: [PATCH v4 2/3] dmaengine: ptdma: register PTDMA controller as a DMA resource

2020-05-26 Thread Sanjay R Mehta
On 5/4/2020 11:44 AM, Vinod Koul wrote: > [CAUTION: External Email] > > On 28-04-20, 16:13, Sanjay R Mehta wrote: > >> +static void pt_do_cmd_complete(unsigned long data) >> +{ >> + struct pt_tasklet_data *tdata = (struct pt_tasklet_data *)data; >> + struct pt_cmd *cmd = tdata->cmd;

Re: [PATCH v3 07/18] nitro_enclaves: Init misc device providing the ioctl interface

2020-05-26 Thread Greg KH
On Tue, May 26, 2020 at 01:13:23AM +0300, Andra Paraschiv wrote: > +#define NE "nitro_enclaves: " Again, no need for this. > +#define NE_DEV_NAME "nitro_enclaves" KBUILD_MODNAME? > +#define NE_IMAGE_LOAD_OFFSET (8 * 1024UL * 1024UL) > + > +static char *ne_cpus; > +module_param(ne_cpus, charp,

Re: [PATCH v3 16/18] nitro_enclaves: Add sample for ioctl interface usage

2020-05-26 Thread Greg KH
On Tue, May 26, 2020 at 01:13:32AM +0300, Andra Paraschiv wrote: > Signed-off-by: Alexandru Vasile > Signed-off-by: Andra Paraschiv Again, I can't take patches without any changelog text, and you shouldn't be writing them, as they are just lazy :) thanks, greg k-h

RE: [PATCH] Input: elantech - Remove read/write registers in attr.

2020-05-26 Thread jingle
HI Dmitry: These changes would not affect all the behavior of the old IC, including all the TP functions THANKS JINGLE -Original Message- From: Dmitry Torokhov [mailto:dmitry.torok...@gmail.com] Sent: Tuesday, May 26, 2020 12:17 PM To: Jingle.Wu Cc: linux-kernel@vger.kernel.org;

Re: [PATCH v1] x86: Pin cr4 FSGSBASE

2020-05-26 Thread Greg KH
On Mon, May 25, 2020 at 10:28:48PM -0700, Andi Kleen wrote: > From: Andi Kleen > > Since there seem to be kernel modules floating around that set > FSGSBASE incorrectly, prevent this in the CR4 pinning. Currently > CR4 pinning just checks that bits are set, this also checks > that the FSGSBASE

Re: [PATCH v13 00/11] Convert PWM period and duty cycle to u64

2020-05-26 Thread Lee Jones
On Fri, 22 May 2020, Thierry Reding wrote: > On Fri, May 22, 2020 at 12:31:47PM +0100, Lee Jones wrote: > > On Fri, 22 May 2020, Thierry Reding wrote: > > > > > On Thu, May 21, 2020 at 08:15:05AM +0100, Lee Jones wrote: > > > > On Wed, 20 May 2020, Guru Das Srinagesh wrote: > > > > > > > > > On

Re: linux-next: manual merge of the devicetree tree with the watchdog tree

2020-05-26 Thread Geert Uytterhoeven
Hi Stephen, On Tue, May 26, 2020 at 7:20 AM Stephen Rothwell wrote: > Today's linux-next merge of the devicetree tree got a conflict in: > > Documentation/devicetree/bindings/watchdog/renesas,wdt.txt > > between commit: > > ff1ee6fb276c ("dt-bindings: watchdog: renesas,wdt: Document r8a7742

Re: [PATCH 2/5] seccomp: Introduce addfd ioctl to seccomp user notifier

2020-05-26 Thread Sargun Dhillon
On Mon, May 25, 2020 at 6:50 AM Christian Brauner wrote: > > On Sun, May 24, 2020 at 04:39:39PM -0700, Sargun Dhillon wrote: > > This adds a seccomp notifier ioctl which allows for the listener to "add" > > file descriptors to a process which originated a seccomp user > > notification. This

Re: [PATCH v13 09/11] backlight: pwm_bl: Use 64-bit division function

2020-05-26 Thread Lee Jones
On Tue, 21 Apr 2020, Guru Das Srinagesh wrote: > Since the PWM framework is switching struct pwm_state.period's datatype > to u64, prepare for this transition by using div_u64 to handle a 64-bit > dividend instead of a straight division operation. > > Cc: Lee Jones > Cc: Daniel Thompson > Cc:

Re: [PATCH v5 00/38] DRM: fix struct sg_table nents vs. orig_nents misuse

2020-05-26 Thread Marek Szyprowski
Hi On 13.05.2020 15:47, Christoph Hellwig wrote: > I've pushed out a branch with the first three patches here: > > git://git.infradead.org/users/hch/dma-mapping.git dma-sg_table-helper > > Gitweb: > > >

Re: [PATCHv3 0/2] Add support for replicators which loses context on clock removal

2020-05-26 Thread Sai Prakash Ranjan
Hi Mathieu, On 2020-05-25 21:45, Mathieu Poirier wrote: Hi Sai, On Sat, May 23, 2020 at 12:06:50AM +0530, Sai Prakash Ranjan wrote: This series is mainly to add support for replicators which lose context on removing AMBA clock like on SC7180 SoC where replicator in AOSS domain loses context.

[RFC PATCH v4 00/13] riscv: Add vector ISA support

2020-05-26 Thread Greentime Hu
This patchset is based on Guo Ren's v3 patchset to add dynamic vlen vector support for all different kinds of vector length in riscv. To make this happened we defined a new __riscv_v_state in sigcontext to save the vector related registers. The datap pointer will be allocated dynamically in kernel

[RFC PATCH v4 02/13] riscv: Separate patch for cflags and aflags

2020-05-26 Thread Greentime Hu
From: Guo Ren From: Guo Ren Use "subst fd" in Makefile is a hack way and it's not convenient to add new ISA feature. Just separate them into riscv-march-cflags and riscv-march-aflags. Signed-off-by: Guo Ren --- arch/riscv/Makefile | 18 -- 1 file changed, 12 insertions(+), 6

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

2020-05-26 Thread Greentime Hu
It uses regset_size() instead of using regset->n and regset->size directly. In this case, it will call the get_size() ported by arch dynamically to support dynamic regset size case. Signed-off-by: Greentime Hu --- kernel/ptrace.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-)

[RFC PATCH v4 06/13] riscv: Add vector feature to compile

2020-05-26 Thread Greentime Hu
From: Guo Ren This patch adds a new config option which could enable assembler's vector feature. Signed-off-by: Guo Ren --- arch/riscv/Kconfig | 9 + arch/riscv/Makefile | 1 + 2 files changed, 10 insertions(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index

[RFC PATCH v4 04/13] riscv: Extending cpufeature.c to detect V-extension

2020-05-26 Thread Greentime Hu
From: Guo Ren From: Guo Ren Current cpufeature.c doesn't support detecting V-extension, because "rv64" also contain a 'v' letter and we need to skip it. Signed-off-by: Guo Ren Reviewed-by: Anup Patel --- arch/riscv/include/uapi/asm/hwcap.h | 1 + arch/riscv/kernel/cpufeature.c | 4

[RFC PATCH v4 07/13] riscv: Add has_vector/riscv_vsize to save vector features.

2020-05-26 Thread Greentime Hu
From: Guo Ren This patch is used to detect vector support status of CPU and use riscv_vsize to save the size of all the vector registers. It assumes all harts has the same capabilities in SMP system. [greentime...@sifive.com: add support for dynamic vlen] Signed-off-by: Greentime Hu

[RFC PATCH v4 10/13] riscv: Add task switch support for vector

2020-05-26 Thread Greentime Hu
From: Guo Ren This patch adds task switch support for vector. It supports lazy save and restore mechanism. It also supports all lengths of vlen. [greentime...@sifive.com: add support for dynamic vlen, fix __vstate_clean() and lazy save/restore bug] [nick.kni...@sifive.com: Rewrite vector.S to

[RFC PATCH v4 09/13] riscv: Add vector struct and assembler definitions

2020-05-26 Thread Greentime Hu
From: Guo Ren Add vector state context struct in struct thread and asm-offsets.c definitions. The vector registers will be saved in datap pointer of __riscv_v_state. It will be dynamically allocated in kernel space. It will be put right after the __riscv_v_state data structure in user space.

[RFC PATCH v4 12/13] riscv: Add sigcontext save/restore for vector

2020-05-26 Thread Greentime Hu
From: Guo Ren This patch adds sigcontext save/restore for vector. The vector registers will be saved in datap pointer. The datap pointer will be allocaed dynamically when the task needs in kernel space. The datap pointer will be set right after the __riscv_v_state data structure to save all the

[RFC PATCH v4 08/13] riscv: Reset vector register

2020-05-26 Thread Greentime Hu
From: Guo Ren Reset vector registers at boot-time and disable vector instructions execution for kernel mode. Signed-off-by: Guo Ren --- arch/riscv/kernel/entry.S | 2 +- arch/riscv/kernel/head.S | 49 +-- 2 files changed, 48 insertions(+), 3 deletions(-)

[RFC PATCH v4 03/13] riscv: Rename __switch_to_aux -> fpu

2020-05-26 Thread Greentime Hu
From: Guo Ren From: Guo Ren The name of __switch_to_aux is not clear and rename it with the determine function: __switch_to_fpu. Next we could add other regs' switch. Signed-off-by: Guo Ren Reviewed-by: Anup Patel --- arch/riscv/include/asm/switch_to.h | 6 +++--- 1 file changed, 3

[RFC PATCH v4 11/13] riscv: Add ptrace vector support

2020-05-26 Thread Greentime Hu
From: Guo Ren This patch adds ptrace support for riscv vector. The vector registers will be saved in datap pointer of __riscv_v_state. This pointer will be set right after the __riscv_v_state data structure then it will be put in ubuf for ptrace system call to get or set. It will check if the

[RFC PATCH v4 05/13] riscv: Add new csr defines related to vector extension

2020-05-26 Thread Greentime Hu
From: Guo Ren Follow the riscv vector spec to add new csr number. [greentime...@sifive.com: update the defined value based on new spec and remove unused ones] Signed-off-by: Greentime Hu Signed-off-by: Guo Ren --- arch/riscv/include/asm/csr.h | 16 ++-- 1 file changed, 14

Re: [RFC PATCH 0/3] METADATA design using V4l2 Request API

2020-05-26 Thread Hans Verkuil
On 26/05/2020 08:31, diksh...@codeaurora.org wrote: > Hi, > > A gentle reminder for the review. It's on my TODO list. I hope to get to it this week or next week at the latest. Regards, Hans > > On 2020-05-08 11:51, Dikshita Agarwal wrote: >> There are many commercialized video use

[RFC PATCH v4 13/13] riscv: signal: Report signal frame size to userspace via auxv

2020-05-26 Thread Greentime Hu
From: Vincent Chen The vector register belongs to the signal context. They need to be stored and restored as entering and leaving the signal handler. According to the V-extension specification, the maximum length of the vector registers can be 2^(XLEN-1). Hence, if userspace refers to the

Re: [PATCH] ALSA: usb: mixer: volume quirk for ESS Technology Asus USB DAC

2020-05-26 Thread Takashi Iwai
On Tue, 26 May 2020 08:26:13 +0200, Chris Chiu wrote: > > The Asus USB DAC is a USB type-C audio dongle for connecting to > the headset and headphone. The volume minimum value -23040 which > is 0xa600 in hexadecimal with the resolution value 1 indicates > this should be endianness issue caused by

Re: [PATCH v2 1/2] crypto: virtio: Fix src/dst scatterlist calculation in __virtio_crypto_skcipher_do_req()

2020-05-26 Thread Markus Elfring
> Fix it by sg_next() on calculation of src/dst scatterlist. Wording adjustment: … by calling the function “sg_next” … … > +++ b/drivers/crypto/virtio/virtio_crypto_algs.c > @@ -350,13 +350,18 @@ __virtio_crypto_skcipher_do_req(struct > virtio_crypto_sym_request *vc_sym_req, … >

Re: [PATCH] bitops: use the same mechanism for get_count_order[_long]

2020-05-26 Thread Andy Shevchenko
On Mon, May 25, 2020 at 09:59:58PM +, Wei Yang wrote: > These two functions share the same logic. So, same comment. Please, add test first, make sure it works on current kernel, then after your patch applied, and send it as a series, thanks! P.S. W/o test code looks good, but based on my

Re: [PATCH 1/2] hwmon: pwm-fan: Add profile support and add remove module support

2020-05-26 Thread Uwe Kleine-König
On Tue, May 26, 2020 at 10:36:04AM +0530, Sandipan Patra wrote: > This change has 2 parts: > 1. Add support for profiles mode settings. > This allows different fan settings for trip point temp/hyst/pwm. > T194 has multiple fan-profiles support. > > 2. Add pwm-fan remove support. This is

Re: [PATCH] serial: 8250: probe all 16550A variants by default

2020-05-26 Thread Maxim Kochetkov
This change breaks all my devices: OMAP-L138 (davinci based), LS1021A, T1040, Marvell (kirkwood2 based). Only enabling VARIANTS on all my devices fix the issue. 25.05.2020 20:28, Josh Triplett wrote: On Mon, May 25, 2020 at 04:02:38PM +0300, Vladimir Oltean wrote: On NXP T1040, the UART is

[PATCH v1] driver core: Update device link status correctly for SYNC_STATE_ONLY links

2020-05-26 Thread Saravana Kannan
When SYNC_STATE_ONLY support was added in commit 05ef983e0d65 ("driver core: Add device link support for SYNC_STATE_ONLY flag"), SYNC_STATE_ONLY links were treated similar to STATELESS links in terms of not blocking consumer probe if the supplier hasn't probed yet. That caused a SYNC_STATE_ONLY

[PATCH] mm, memory_failure: only send BUS_MCEERR_AO to early-kill process

2020-05-26 Thread Wetp Zhang
From: Zhang Yi If a process don't need early-kill, it may not care the BUS_MCEERR_AO. Let the process to be killed when it really access the corrupted memory. Signed-off-by: Zhang Yi --- mm/memory-failure.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git

Re: [PATCHv3/RESEND 1/3] soc: qcom: rpmh-rsc: Remove tcs_is_free() API

2020-05-26 Thread Maulik Shah
Hi, Reviewed-by: Maulik Shah Thanks, Maulik On 5/21/2020 11:34 AM, Stephen Boyd wrote: This API does very little. Let's replace all the callsites with the normal operations that would be done on top of the bitmap that tcs_in_use is. This simplifies and reduces the code size. Cc: Maulik Shah

Re: [PATCH v1] driver core: Update device link status correctly for SYNC_STATE_ONLY links

2020-05-26 Thread Saravana Kannan
On Tue, May 26, 2020 at 12:05 AM Saravana Kannan wrote: > > When SYNC_STATE_ONLY support was added in commit 05ef983e0d65 ("driver > core: Add device link support for SYNC_STATE_ONLY flag"), > SYNC_STATE_ONLY links were treated similar to STATELESS links in terms > of not blocking consumer probe

Re: [PATCH] iommu/dma: limit iova free size to unmmaped iova

2020-05-26 Thread guptap
On 2020-05-22 14:54, Robin Murphy wrote: On 2020-05-22 07:25, gup...@codeaurora.org wrote: On 2020-05-22 01:46, Robin Murphy wrote: On 2020-05-21 12:30, Prakash Gupta wrote: I agree, we shouldn't be freeing the partial iova. Instead just making sure if unmap was successful should be

Re: [PATCH v2 2/2] crypto: virtio: Fix use-after-free in virtio_crypto_skcipher_finalize_req()

2020-05-26 Thread Markus Elfring
> The system'll crash when the users insmod crypto/tcrypto.ko with mode=155 > ( testing "authenc(hmac(sha1),cbc(aes))" ). It's caused by reuse the memory > of request structure. Wording adjustments: * … system will crash … * … It is caused by reusing the … > when these memory will be used

Re: [PATCH v2] regmap: fix alignment issues

2020-05-26 Thread Jens Thoms Toerring
On Tue, May 26, 2020 at 01:42:36AM +0300, Andy Shevchenko wrote: > On Tuesday, May 26, 2020, Jens Thoms Toerring wrote: > > > The assembly and disassembly of data to be sent to or received from a > > device invoke functions (regmap_format_XXX() and regmap_parse_XXX()) > > that extract or insert

Re: [PATCH v2 1/2] crypto: virtio: Fix src/dst scatterlist calculation in __virtio_crypto_skcipher_do_req()

2020-05-26 Thread Longpeng (Mike, Cloud Infrastructure Service Product Dept.)
Hi Markus, On 2020/5/26 15:03, Markus Elfring wrote: >> Fix it by sg_next() on calculation of src/dst scatterlist. > > Wording adjustment: > … by calling the function “sg_next” … > OK, thanks. > > … >> +++ b/drivers/crypto/virtio/virtio_crypto_algs.c >> @@ -350,13 +350,18 @@

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

2020-05-26 Thread yuanjunqing
在 2020/5/25 下午4:42, Thomas Bogendoerfer 写道: > On Mon, May 25, 2020 at 11:31:23AM +0800, YuanJunQing wrote: >> Register "a1" is unsaved in this function, >> when CONFIG_TRACE_IRQFLAGS is enabled, >> the TRACE_IRQS_OFF macro will call trace_hardirqs_off(), >> and this may change register "a1".

RE: [PATCH 3/4] exfat: add boot region verification

2020-05-26 Thread Namjae Jeon
[snip] > +static int exfat_verify_boot_region(struct super_block *sb) { > + struct buffer_head *bh = NULL; > + u32 chksum = 0, *p_sig, *p_chksum; > + int sn, i; > + > + /* read boot sector sub-regions */ > + for (sn = 0; sn < 11; sn++) { > + bh = sb_bread(sb, sn); >

Re: [PATCH v3 03/16] mfd: mfd-core: match device tree node against reg property

2020-05-26 Thread Lee Jones
On Mon, 25 May 2020, Michael Walle wrote: > Am 2020-05-15 12:28, schrieb Lee Jones: > > On Thu, 30 Apr 2020, Michael Walle wrote: > > > > > Hi Lee, > > > > > > Am 2020-04-23 19:45, schrieb Michael Walle: > > > > There might be multiple children with the device tree compatible, for > > > >

Re: [PATCH 0/3] STMFX power related fixes

2020-05-26 Thread Lee Jones
On Mon, 25 May 2020, Amelie DELAUNAY wrote: > Hi, > > Gentle reminder regarding this series sent one month ago. Apologies Amelie, this fell through the gaps. If this happens in the future just submit a [RESEND]. I'll take a look at this, this time however. > On 4/22/20 11:08 AM, Amelie

Re: [PATCH V3 1/2] powerpc/perf: Add support for outputting extended regs in perf intr_regs

2020-05-26 Thread Madhavan Srinivasan
On 5/20/20 3:15 PM, Athira Rajeev wrote: From: Anju T Sudhakar Add support for perf extended register capability in powerpc. The capability flag PERF_PMU_CAP_EXTENDED_REGS, is used to indicate the PMU which support extended registers. The generic code define the mask of extended registers

Re: [PATCH V3 2/2] tools/perf: Add perf tools support for extended register capability in powerpc

2020-05-26 Thread Madhavan Srinivasan
On 5/20/20 3:15 PM, Athira Rajeev wrote: From: Anju T Sudhakar Add extended regs to sample_reg_mask in the tool side to use with `-I?` option. Perf tools side uses extended mask to display the platform supported register names (with -I? option) to the user and also send this mask to the

Re: [PATCH 1/2] KVM: SVM: fix svn_pin_memory()'s use of get_user_pages_fast()

2020-05-26 Thread Vitaly Kuznetsov
John Hubbard writes: > There are two problems in svn_pin_memory(): > > 1) The return value of get_user_pages_fast() is stored in an > unsigned long, although the declared return value is of type int. > This will not cause any symptoms, but it is misleading. > Fix this by changing the type of

RE: [PATCH 4/4] exfat: standardize checksum calculation

2020-05-26 Thread Namjae Jeon
> To clarify that it is a 16-bit checksum, the parts related to the 16-bit > checksum are renamed and > change type to u16. > Furthermore, replace checksum calculation in exfat_load_upcase_table() with > exfat_calc_checksum32(). > > Signed-off-by: Tetsuhiro Kohada I can not apply this patch

Re: [PATCH v2 2/2] crypto: virtio: Fix use-after-free in virtio_crypto_skcipher_finalize_req()

2020-05-26 Thread Longpeng (Mike, Cloud Infrastructure Service Product Dept.)
Hi Markus, On 2020/5/26 15:19, Markus Elfring wrote: >> The system'll crash when the users insmod crypto/tcrypto.ko with mode=155 >> ( testing "authenc(hmac(sha1),cbc(aes))" ). It's caused by reuse the memory >> of request structure. > > Wording adjustments: > * … system will crash … > * … It is

Re: [PATCH 12/12] io_uring: support true async buffered reads, if file provides it

2020-05-26 Thread Pavel Begunkov
On 23/05/2020 21:57, Jens Axboe wrote: > If the file is flagged with FMODE_BUF_RASYNC, then we don't have to punt > the buffered read to an io-wq worker. Instead we can rely on page > unlocking callbacks to support retry based async IO. This is a lot more > efficient than doing async thread

Re: [patch V9-1 13/39] x86/entry: Switch XEN/PV hypercall entry to IDTENTRY

2020-05-26 Thread Jürgen Groß
On 22.05.20 20:32, Thomas Gleixner wrote: Convert the XEN/PV hypercall to IDTENTRY: - Emit the ASM stub with DECLARE_IDTENTRY - Remove the ASM idtentry in 64bit - Remove the open coded ASM entry code in 32bit - Remove the old prototypes The handler stubs need to stay in ASM code as

Re: [PATCH 12/12] io_uring: support true async buffered reads, if file provides it

2020-05-26 Thread Pavel Begunkov
On 25/05/2020 22:59, Jens Axboe wrote: > On 5/25/20 1:29 AM, Pavel Begunkov wrote: >> On 23/05/2020 21:57, Jens Axboe wrote: >>> If the file is flagged with FMODE_BUF_RASYNC, then we don't have to punt >>> the buffered read to an io-wq worker. Instead we can rely on page >>> unlocking callbacks to

Re: [PATCH v5 6/8] drm/panel: Add ilitek ili9341 panel driver

2020-05-26 Thread Andy Shevchenko
On Mon, May 25, 2020 at 6:46 AM wrote: > > From: dillon min > > This driver combine tiny/ili9341.c mipi_dbi_interface driver > with mipi_dpi_interface driver, can support ili9341 with serial > mode or parallel rgb interface mode by register configuration. Noralf told once that this

Re: [RFC] kdb: Switch kdb_printf to use safer console poll APIs

2020-05-26 Thread Sumit Garg
On Fri, 22 May 2020 at 21:33, Daniel Thompson wrote: > > On Fri, May 22, 2020 at 08:04:31PM +0530, Sumit Garg wrote: > > In kgdb NMI context, polling driver APIs are more safer to use instead > > of console APIs since the polling drivers know they will execute from > > all sorts of crazy places.

Re: [PATCH 2/2] iommu/sun50i: Constify sun50i_iommu_ops

2020-05-26 Thread Maxime Ripard
On Mon, May 25, 2020 at 11:49:58PM +0200, Rikard Falkeborn wrote: > The struct sun50i_iommu_ops is not modified and can be made const to > allow the compiler to put it in read-only memory. > > Before: >textdata bss dec hex filename > 143582501 64 16923421b

Re: [PATCH 1/4] ARM: dts: r8a7742-iwg21d-q7: Enable scifb2 node

2020-05-26 Thread Geert Uytterhoeven
On Mon, May 25, 2020 at 5:23 PM Lad Prabhakar wrote: > Enable scifb2 interface on iWave RZ/G1H carrier board. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Marian-Cristian Rotariu > Reviewed-by: Geert Uytterhoeven i.e. will queue in renesas-devel for v5.9. Gr{oetje,eeting}s,

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

2020-05-26 Thread Artur Barsegyan
Hello, Manfred! Thank you, for your review. I've reviewed your patch. I forgot about the case with different message types. At now with your patch, a sender will force message consuming if that doesn't hold own capacity. I have measured queue throughput and have pushed the results to:

Re: [PATCH v2] kdb: Make kdb_printf robust to run in NMI context

2020-05-26 Thread Sumit Garg
On Fri, 22 May 2020 at 22:05, Daniel Thompson wrote: > > On Fri, May 22, 2020 at 08:03:47PM +0530, Sumit Garg wrote: > > While rounding up CPUs via NMIs, its possible that a rounded up CPU > > maybe holding a console port lock leading to kgdb master CPU stuck in > > a deadlock during invocation

Re: [PATCH 1/3] mfd: stmfx: reset chip on resume as supply was disabled

2020-05-26 Thread Lee Jones
On Wed, 22 Apr 2020, Amelie Delaunay wrote: > STMFX supply is disabled during suspend. To avoid a too early access to > the STMFX firmware on resume, reset the chip and wait for its firmware to > be loaded. > > Fixes: 06252ade9156 ("mfd: Add ST Multi-Function eXpander (STMFX) core > driver") >

Re: [PATCH v1] x86: Pin cr4 FSGSBASE

2020-05-26 Thread Peter Zijlstra
On Tue, May 26, 2020 at 08:56:18AM +0200, Greg KH wrote: > On Mon, May 25, 2020 at 10:28:48PM -0700, Andi Kleen wrote: > > From: Andi Kleen > > > > Since there seem to be kernel modules floating around that set > > FSGSBASE incorrectly, prevent this in the CR4 pinning. Currently > > CR4 pinning

Re: [PATCH 3/4] ARM: dts: r8a7742-iwg21d-q7: Enable Ethernet avb

2020-05-26 Thread Geert Uytterhoeven
On Mon, May 25, 2020 at 5:23 PM Lad Prabhakar wrote: > Enable ethernet avb on iWave RZ/G1H carrier board. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Marian-Cristian Rotariu > Reviewed-by: Geert Uytterhoeven i.e. will queue in renesas-devel for v5.9. Gr{oetje,eeting}s,

Re: [PATCH 2/3] mfd: stmfx: fix stmfx_irq_init error path

2020-05-26 Thread Lee Jones
On Wed, 22 Apr 2020, Amelie Delaunay wrote: > In case the interrupt signal can't be configured, IRQ domain needs to be > removed. > > Fixes: 06252ade9156 ("mfd: Add ST Multi-Function eXpander (STMFX) core > driver") > Signed-off-by: Amelie Delaunay > --- > drivers/mfd/stmfx.c | 9 +++-- >

Re: [PATCH 2/4] ARM: dts: r8a7742-iwg21d-q7: Enable SDHI2 controller

2020-05-26 Thread Geert Uytterhoeven
Hi Prabhakar, On Mon, May 25, 2020 at 5:23 PM Lad Prabhakar wrote: > Enable the SDHI2 controller on iWave RZ/G1H carrier board. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Marian-Cristian Rotariu > Reviewed-by: Geert Uytterhoeven i.e. will queue in renesas-devel for v5.9. BTW, perhaps

  1   2   3   4   5   6   7   8   9   10   >