Re: [PATCH 4.19 00/36] 4.19.132-rc1 review

2020-07-07 Thread Naresh Kamboju
On Tue, 7 Jul 2020 at 20:48, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.19.132 release. > There are 36 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

[PATCH RFC] kernel: Implement selective syscall redirection through personality

2020-07-07 Thread Gabriel Krisman Bertazi
The problem I'm trying to solve is that modern Windows applications are executing system call instructions directly from the application's code without going through the WinAPI. This breaks Wine emulation, because it doesn't have a chance to intercept and emulate these syscalls before they are

Re: [PATCH bpf-next 1/2] bpf: use dedicated bpf_trace_printk event instead of trace_printk()

2020-07-07 Thread Andrii Nakryiko
On Fri, Jul 3, 2020 at 7:47 AM Alan Maguire wrote: > > The bpf helper bpf_trace_printk() uses trace_printk() under the hood. > This leads to an alarming warning message originating from trace > buffer allocation which occurs the first time a program using > bpf_trace_printk() is loaded. > > We

Re: [PATCH v3 3/3] printk: use the lockless ringbuffer

2020-07-07 Thread lijiang
在 2020年07月03日 19:54, John Ogness 写道: > On 2020-07-02, lijiang wrote: >> About the VMCOREINFO part, I made some tests based on the kernel patch >> v3, the makedumpfile and crash-utility can work as expected with your >> patch(userspace patch), but, unfortunately, the >> vmcore-dmesg(kexec-tools)

Re: [PATCH v5 18/25] mm/s390: Use general page fault accounting

2020-07-07 Thread Alexander Gordeev
On Tue, Jul 07, 2020 at 06:50:14PM -0400, Peter Xu wrote: > Use the general page fault accounting by passing regs into handle_mm_fault(). > It naturally solve the issue of multiple page fault accounting when page fault > retry happened. > > CC: Heiko Carstens > CC: Vasily Gorbik > CC: Christian

Re: [PATCH v2 1/3] arm64/numa: export memory_add_physaddr_to_nid as EXPORT_SYMBOL_GPL

2020-07-07 Thread Dan Williams
On Tue, Jul 7, 2020 at 10:33 PM Mike Rapoport wrote: > > On Tue, Jul 07, 2020 at 08:56:36PM -0700, Dan Williams wrote: > > On Tue, Jul 7, 2020 at 7:20 PM Justin He wrote: > > > > > > Hi Michal and David > > > > > > > -Original Message- > > > > From: Michal Hocko > > > > Sent: Tuesday,

Re: [PATCH][next] IB/hfi1: Use fallthrough pseudo-keyword

2020-07-07 Thread Leon Romanovsky
On Tue, Jul 07, 2020 at 12:39:42PM -0500, Gustavo A. R. Silva wrote: > Replace the existing /* fall through */ comments and its variants with > the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary > fall-through markings when it is the case. > > [1] >

[PATCH 1/1] riscv: Enable compiler optimizations

2020-07-07 Thread Chenxi Mao
Enable ARCH_HAS_FAST_MULTIPLIER and ARCH_SUPPORTS_INT128 for better code generation. These 2 configurations works fine on GCC-9.3 and GCC-10.1 Signed-off-by: Chenxi Mao --- arch/riscv/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index

Re: [PATCH v2 2/3] xen/privcmd: Mark pages as dirty

2020-07-07 Thread Jürgen Groß
On 07.07.20 21:30, John Hubbard wrote: On 2020-07-07 04:43, Jürgen Groß wrote: On 07.07.20 13:30, Souptick Joarder wrote: On Tue, Jul 7, 2020 at 3:08 PM Jürgen Groß wrote: ... diff --git a/drivers/xen/privcmd.c b/drivers/xen/privcmd.c index 33677ea..f6c1543 100644 ---

Re: [PATCH v3 09/13] ASoC: ti: omap-mcbsp-st: Remove set, but unused variable 'w'

2020-07-07 Thread Peter Ujfalusi
On 07/07/2020 22.06, Pierre-Louis Bossart wrote: > From: Lee Jones > > Looks like 'w' has remained unchecked since the driver's inception. > > Fixes the following W=1 kernel build warning(s): > > sound/soc/ti/omap-mcbsp-st.c: In function ‘omap_mcbsp_st_chgain’: >

[rcu:lkmm-dev] BUILD SUCCESS 5ce63058b5de1c24d39bfab01ea47c6141dbb275

2020-07-07 Thread kernel test robot
ig powerpc allyesconfig powerpc rhel-kconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a001-20200707 i386 randconfig-a002-20200707 i386 randconfig-a006-202

[rcu:lkmm] BUILD SUCCESS 5ef0a07a7928539d46fdb163acfad28c6d877a89

2020-07-07 Thread kernel test robot
allyesconfig powerpc rhel-kconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a001-20200707 i386 randconfig-a002-20200707 i386 randconfig-a006

[rcu:kcsan] BUILD SUCCESS 61d56d7aa5eca3b909bce51ba8125b0fa44d7e17

2020-07-07 Thread kernel test robot
powerpc rhel-kconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a001-20200707 i386 randconfig-a002-20200707 i386 randconfig-a006-20200707 i386

Re: [PATCH] rds: send: Replace sg++ with sg = sg_next(sg)

2020-07-07 Thread Leon Romanovsky
On Wed, Jul 08, 2020 at 03:42:52AM +, Xu Wang wrote: > Replace sg++ with sg = sg_next(sg). > > Signed-off-by: Xu Wang > --- > net/rds/send.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/rds/send.c b/net/rds/send.c > index 68e2bdb08fd0..57d03a6753de 100644 >

RE: [EXT] [PATCH 4/5] net: fec: get rid of redundant code in fec_ptp_set()

2020-07-07 Thread Andy Duan
From: Sergey Organov Sent: Tuesday, July 7, 2020 10:43 PM > Andy Duan writes: > > > From: Sergey Organov Sent: Monday, July 6, 2020 > 10:26 PM > >> Code of the form "if(x) x = 0" replaced with "x = 0". > >> > >> Code of the form "if(x == a) x = a" removed. > >> > >> Signed-off-by: Sergey

Re: [PATCH v2 1/3] arm64/numa: export memory_add_physaddr_to_nid as EXPORT_SYMBOL_GPL

2020-07-07 Thread Mike Rapoport
On Tue, Jul 07, 2020 at 08:56:36PM -0700, Dan Williams wrote: > On Tue, Jul 7, 2020 at 7:20 PM Justin He wrote: > > > > Hi Michal and David > > > > > -Original Message- > > > From: Michal Hocko > > > Sent: Tuesday, July 7, 2020 7:55 PM > > > To: Justin He > > > Cc: Catalin Marinas ;

Re: [PATCH 5.4 00/65] 5.4.51-rc1 review

2020-07-07 Thread Naresh Kamboju
On Tue, 7 Jul 2020 at 20:49, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.4.51 release. > There are 65 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

Re: [PATCH v2] pinctrl: qcom: sc7180: Make gpio28 non wakeup capable for google,lazor

2020-07-07 Thread Maulik Shah
Hi, On 7/8/2020 4:33 AM, Doug Anderson wrote: Hi, On Mon, Jul 6, 2020 at 9:52 PM Rajendra Nayak wrote: [].. @@ -1151,6 +1168,10 @@ static const struct msm_pinctrl_soc_data sc7180_pinctrl = { static int sc7180_pinctrl_probe(struct platform_device *pdev) { + if

Re: [PATCH v2 1/3] arm64/numa: export memory_add_physaddr_to_nid as EXPORT_SYMBOL_GPL

2020-07-07 Thread Mike Rapoport
On Tue, Jul 07, 2020 at 03:05:48PM -0700, Dan Williams wrote: > On Tue, Jul 7, 2020 at 11:01 AM Mike Rapoport wrote: > > > > On Tue, Jul 07, 2020 at 02:26:08PM +0200, David Hildenbrand wrote: > > > On 07.07.20 14:13, Mike Rapoport wrote: > > > > On Tue, Jul 07, 2020 at 01:54:54PM +0200, Michal

RE: [PATCH] mm/hugetlb: split hugetlb_cma in nodes with memory

2020-07-07 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Anshuman Khandual [mailto:anshuman.khand...@arm.com] > Sent: Wednesday, July 8, 2020 4:18 PM > To: Song Bao Hua (Barry Song) ; > a...@linux-foundation.org > Cc: x...@kernel.org; linux...@kvack.org; linux-kernel@vger.kernel.org; > Linuxarm ;

Re: [PATCH v2 00/15] Make the user mode driver code a better citizen

2020-07-07 Thread Luis Chamberlain
On Mon, Jun 29, 2020 at 02:55:05PM -0500, Eric W. Biederman wrote: > > I have tested thes changes by booting with the code compiled in and > by killing "bpfilter_umh" and running iptables -vnL to restart > the userspace driver. > > I have compiled tested each change with and without

RE: [EXT] Re: [PATCH v5 3/3] ARM: imx6plus: optionally enable internal routing of clk_enet_ref

2020-07-07 Thread Andy Duan
From: Sven Van Asbroeck Sent: Tuesday, July 7, 2020 11:21 PM > Andy, Fabio, > > Sounds like we now have a solution which makes logical sense, although it > requires changes and additions to drivers/clk/imx/. Before I create a patch, > can you read the plan below and check that it makes sense,

[RESEND][PATCH v3 7/8] ASoC: qcom: lpass-sc7180: Add platform driver for lpass audio

2020-07-07 Thread Rohit kumar
From: Ajit Pandey Add platform driver for configuring sc7180 lpass core I2S and DMA configuration to support playback & capture to external codecs connected over primary & secondary MI2S interfaces. Signed-off-by: Ajit Pandey Signed-off-by: Rohit kumar --- Resending to update Signed-off mail

Re: [PATCH 03/11] fs: add new read_uptr and write_uptr file operations

2020-07-07 Thread Luis Chamberlain
On Sat, Jun 27, 2020 at 09:33:03AM -0700, Linus Torvalds wrote: > The real problem with > "set_fs()" has been that we've occasionally had bugs where we ended up > running odd paths that we really didn't _intend_ to run with kernel > pointers. The classic example is the SCSI "write as ioctl"

Re: [PATCH v3 0/6] powerpc: queued spinlocks and rwlocks

2020-07-07 Thread Nicholas Piggin
Excerpts from Waiman Long's message of July 8, 2020 1:33 pm: > On 7/7/20 1:57 AM, Nicholas Piggin wrote: >> Yes, powerpc could certainly get more performance out of the slow >> paths, and then there are a few parameters to tune. >> >> We don't have a good alternate patching for function calls yet,

[PATCH v3 8/8] dt-bindings: sound: lpass-cpu: Move to yaml format

2020-07-07 Thread Rohit kumar
From: Ajit Pandey Update lpass-cpu binding with yaml formats. Signed-off-by: Ajit Pandey Signed-off-by: Rohit kumar --- .../devicetree/bindings/sound/qcom,lpass-cpu.txt | 80 --- .../devicetree/bindings/sound/qcom,lpass-cpu.yaml | 154 + 2 files changed, 154

Re: [PATCH -next] Documentation/vm: fix tables in arch_pgtable_helpers

2020-07-07 Thread Anshuman Khandual
On 07/08/2020 07:36 AM, Randy Dunlap wrote: > On 7/7/20 6:22 PM, Anshuman Khandual wrote: >> >> >> On 07/08/2020 06:37 AM, Randy Dunlap wrote: >>> From: Randy Dunlap >>> >>> Make the tables be presented as tables in the generated output files >>> (the line drawing did not present well). >>>

[PATCH v3 6/8] dt-bindings: sound: lpass-cpu: Add sc7180 lpass cpu node

2020-07-07 Thread Rohit kumar
Add dt-bindings to support "qcom,lpass-cpu-sc7180" node. Signed-off-by: Rohit kumar --- Documentation/devicetree/bindings/sound/qcom,lpass-cpu.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/sound/qcom,lpass-cpu.txt

[PATCH v3 2/8] ASoC: qcom: lpass-cpu: Move ahbix clk to platform specific function

2020-07-07 Thread Rohit kumar
Ahbix clock is optional clock and not needed for all platforms. Move it to lpass-apq8016/ipq806x as it is not needed for sc7180. Signed-off-by: Rohit kumar --- sound/soc/qcom/lpass-apq8016.c | 27 ++ sound/soc/qcom/lpass-cpu.c | 40

[PATCH v3 4/8] include: dt-bindings: sound: Add sc7180-lpass bindings header

2020-07-07 Thread Rohit kumar
From: Ajit Pandey Add header defining dai-id and mclk id for SC7180 lpass soc. Signed-off-by: Ajit Pandey --- include/dt-bindings/sound/sc7180-lpass.h | 10 ++ 1 file changed, 10 insertions(+) create mode 100644 include/dt-bindings/sound/sc7180-lpass.h diff --git

[PATCH v3 5/8] ASoC: qcom: lpass-platform: Replace card->dev with component->dev

2020-07-07 Thread Rohit kumar
From: Ajit Pandey We are allocating dma memory for component->dev but trying to mmap such memory for substream->pcm->card->dev. Replace device argument in mmap with component->dev to fix this. Signed-off-by: Ajit Pandey --- sound/soc/qcom/lpass-platform.c | 5 ++--- 1 file changed, 2

[PATCH v3 7/8] ASoC: qcom: lpass-sc7180: Add platform driver for lpass audio

2020-07-07 Thread Rohit kumar
From: Ajit Pandey Add platform driver for configuring sc7180 lpass core I2S and DMA configuration to support playback & capture to external codecs connected over primary & secondary MI2S interfaces. Signed-off-by: Ajit Pandey Signed-off-by: Rohit kumar --- sound/soc/qcom/Kconfig| 5

[PATCH v3 3/8] ASoC: qcom: lpass: Use regmap_field for i2sctl and dmactl registers

2020-07-07 Thread Rohit kumar
I2SCTL and DMACTL registers has different bits alignment for newer LPASS variants of SC7180 soc. Use REG_FIELD_ID() to define the reg_fields in platform specific file and removed shifts and mask macros for such registers from header file. Signed-off-by: Rohit kumar ---

Re: [PATCH] nvme-pci: use standard block status symbolic names to check return value

2020-07-07 Thread Christoph Hellwig
On Wed, Jul 08, 2020 at 10:18:01AM +0800, Baolin Wang wrote: > It's better to use the same symbol as the return to check return value, > and will always work in the unlikely event that the defines are reordered. > > Suggested-by: Keith Busch > Signed-off-by: Baolin Wang I'm really not sure

[PATCH v3 1/8] ASoC: qcom: Add common array to initialize soc based core clocks

2020-07-07 Thread Rohit kumar
From: Ajit Pandey LPASS variants have their own soc specific clocks that needs to be enabled for MI2S audio support. Added a common variable in drvdata to initialize such clocks using bulk clk api. Such clock names is defined in variants specific data and needs to fetched during init.

[PATCH v3 0/8] ASoC: qcom: Add support for SC7180 lpass variant

2020-07-07 Thread Rohit kumar
This patch chain add audio support for SC7180 soc by doing the required modification in existing common lpass-cpu/lpass-platform driver. Below is a brief summary of patch series: PATCH v3 0001 ... 0005: Update lpass-cpu, lpass-platform drivers to make it more generic and support newer soc

Re: [PATCH 5.7 000/112] 5.7.8-rc1 review

2020-07-07 Thread Naresh Kamboju
On Tue, 7 Jul 2020 at 20:55, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.7.8 release. > There are 112 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

[PATCH v10 5/5] iommu/arm-smmu: Add global/context fault implementation hooks

2020-07-07 Thread Krishna Reddy
Add global/context fault hooks to allow vendor specific implementations override default fault interrupt handlers. Update NVIDIA implementation to override the default global/context fault interrupt handlers and handle interrupts across the two ARM MMU-500s that are programmed identically.

[PATCH v10 1/5] iommu/arm-smmu: move TLB timeout and spin count macros

2020-07-07 Thread Krishna Reddy
Move TLB timeout and spin count macros to header file to allow using the same from vendor specific implementations. Signed-off-by: Krishna Reddy --- drivers/iommu/arm-smmu.c | 3 --- drivers/iommu/arm-smmu.h | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git

[PATCH v10 3/5] iommu/arm-smmu: add NVIDIA implementation for ARM MMU-500 usage

2020-07-07 Thread Krishna Reddy
NVIDIA's Tegra194 SoC has three ARM MMU-500 instances. It uses two of the ARM MMU-500s together to interleave IOVA accesses across them and must be programmed identically. This implementation supports programming the two ARM MMU-500s that must be programmed identically. The third ARM MMU-500

[PATCH v10 0/5] NVIDIA ARM SMMU Implementation

2020-07-07 Thread Krishna Reddy
Changes in v10: Perform SMMU base ioremap before calling implementation init. Check for Global faults across both ARM MMU-500s during global interrupt. Check for context faults across all contexts of both ARM MMU-500s during context fault interrupt. Add new DT binding nvidia,smmu-500 for NVIDIA

[PATCH v10 2/5] iommu/arm-smmu: ioremap smmu mmio region before implementation init

2020-07-07 Thread Krishna Reddy
ioremap smmu mmio region before calling into implementation init. This is necessary to allow mapped address available during vendor specific implementation init. Signed-off-by: Krishna Reddy --- drivers/iommu/arm-smmu.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH v10 4/5] dt-bindings: arm-smmu: add binding for Tegra194 SMMU

2020-07-07 Thread Krishna Reddy
Add binding for NVIDIA's Tegra194 SoC SMMU. Signed-off-by: Krishna Reddy --- .../devicetree/bindings/iommu/arm,smmu.yaml| 18 ++ 1 file changed, 18 insertions(+) diff --git a/Documentation/devicetree/bindings/iommu/arm,smmu.yaml

Re: [PATCH] irqchip/stm32-exti: map direct event to irq parent

2020-07-07 Thread kernel test robot
Hi Alexandre, I love your patch! Perhaps something to improve: [auto build test WARNING on stm32/stm32-next] [also build test WARNING on soc/for-next v5.8-rc4 next-20200707] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use

[PATCH v1] platform/chrome: cros_ec_debugfs: conditionally create uptime node

2020-07-07 Thread Eizan Miyamoto
Before creating an 'uptime' node in debugfs, this change adds a check to see if a EC_CMD_GET_UPTIME_INFO command can be successfully run. If the uptime node is created, userspace programs may periodically poll it (e.g., timberslide), causing commands to be sent to the EC each time. If the EC

[PATCH v3 5/9] powerpc/watchpoint: Set CPU_FTR_DAWR1 based on pa-features bit

2020-07-07 Thread Ravi Bangoria
As per the PAPR, bit 0 of byte 64 in pa-features property indicates availability of 2nd DAWR registers. i.e. If this bit is set, 2nd DAWR is present, otherwise not. Host generally uses "cpu-features", which masks "pa-features". But "cpu-features" are still not used for guests and thus this change

[PATCH v3 8/9] powerpc/watchpoint: Return available watchpoints dynamically

2020-07-07 Thread Ravi Bangoria
So far Book3S Powerpc supported only one watchpoint. Power10 is introducing 2nd DAWR. Enable 2nd DAWR support for Power10. Availability of 2nd DAWR will depend on CPU_FTR_DAWR1. Signed-off-by: Ravi Bangoria --- arch/powerpc/include/asm/cputable.h | 4 +++-

Re: [PATCH v10 0/9] firmware: add request_partial_firmware_into_buf

2020-07-07 Thread Scott Branden
Hi Florian, On 2020-07-07 9:38 p.m., Florian Fainelli wrote: On 7/6/2020 4:23 PM, Scott Branden wrote: This patch series adds partial read support via a new call request_partial_firmware_into_buf. Such support is needed when the whole file is not needed and/or only a smaller portion of the

[PATCH v3 7/9] powerpc/watchpoint: Guest support for 2nd DAWR hcall

2020-07-07 Thread Ravi Bangoria
2nd DAWR can be set/unset using H_SET_MODE hcall with resource value 5. Enable powervm guest support with that. This has no effect on kvm guest because kvm will return error if guest does hcall with resource value 5. Signed-off-by: Ravi Bangoria --- arch/powerpc/include/asm/hvcall.h | 1

[PATCH v3 6/9] powerpc/watchpoint: Rename current H_SET_MODE DAWR macro

2020-07-07 Thread Ravi Bangoria
Current H_SET_MODE hcall macro name for setting/resetting DAWR0 is H_SET_MODE_RESOURCE_SET_DAWR. Add suffix 0 to macro name as well. Signed-off-by: Ravi Bangoria --- arch/powerpc/include/asm/hvcall.h | 2 +- arch/powerpc/include/asm/plpar_wrappers.h | 2 +- arch/powerpc/kvm/book3s_hv.c

[PATCH v3 9/9] powerpc/watchpoint: Remove 512 byte boundary

2020-07-07 Thread Ravi Bangoria
Power10 has removed 512 bytes boundary from match criteria. i.e. The watch range can cross 512 bytes boundary. Signed-off-by: Ravi Bangoria --- arch/powerpc/kernel/hw_breakpoint.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/hw_breakpoint.c

[PATCH v3 1/9] powerpc/watchpoint: Fix 512 byte boundary limit

2020-07-07 Thread Ravi Bangoria
Milton Miller reported that we are aligning start and end address to wrong size SZ_512M. It should be SZ_512. Fix that. While doing this change I also found a case where ALIGN() comparison fails. Within a given aligned range, ALIGN() of two addresses does not match when start address is pointing

[PATCH v3 4/9] powerpc/dt_cpu_ftrs: Add feature for 2nd DAWR

2020-07-07 Thread Ravi Bangoria
Add new device-tree feature for 2nd DAWR. If this feature is present, 2nd DAWR is supported, otherwise not. Signed-off-by: Ravi Bangoria --- arch/powerpc/include/asm/cputable.h | 7 +-- arch/powerpc/kernel/dt_cpu_ftrs.c | 7 +++ 2 files changed, 12 insertions(+), 2 deletions(-) diff

[PATCH v3 3/9] powerpc/watchpoint: Enable watchpoint functionality on power10 guest

2020-07-07 Thread Ravi Bangoria
CPU_FTR_DAWR is by default enabled for host via CPU_FTRS_DT_CPU_BASE (controlled by CONFIG_PPC_DT_CPU_FTRS). But cpu-features device-tree node is not PAPR compatible and thus not yet used by kvm or pHyp guests. Enable watchpoint functionality on power10 guest (both kvm and powervm) by adding

[PATCH v3 2/9] powerpc/watchpoint: Fix DAWR exception constraint

2020-07-07 Thread Ravi Bangoria
Pedro Miraglia Franco de Carvalho noticed that on p8, DAR value is inconsistent with different type of load/store. Like for byte,word etc. load/stores, DAR is set to the address of the first byte of overlap between watch range and real access. But for quadword load/ store it's set to the address

[PATCH v3 0/9] powerpc/watchpoint: Enable 2nd DAWR on baremetal and powervm

2020-07-07 Thread Ravi Bangoria
Last series[1] was to add basic infrastructure support for more than one watchpoint on Book3S powerpc. This series actually enables the 2nd DAWR for baremetal and powervm. Kvm guest is still not supported. v2:

Re: [PATCH][next] Bluetooth: Use fallthrough pseudo-keyword

2020-07-07 Thread Marcel Holtmann
Hi Gustavo, > Replace the existing /* fall through */ comments and its variants with > the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary > fall-through markings when it is the case. > > [1] >

Re: [PATCH v2] powerpc/uaccess: Use flexible addressing with __put_user()/__get_user()

2020-07-07 Thread Christophe Leroy
Le 07/07/2020 à 21:02, Christophe Leroy a écrit : Le 07/07/2020 à 14:44, Christophe Leroy a écrit : Le 30/06/2020 à 03:19, Michael Ellerman a écrit : Michael Ellerman writes: Christophe Leroy writes: Hi Michael, I see this patch is marked as "defered" in patchwork, but I can't see

Re: [PATCH v2 00/15] Make the user mode driver code a better citizen

2020-07-07 Thread Eric W. Biederman
Just to make certain I understand what is going on I instrumented a kernel with some print statements. a) The workqueues and timers start before populate_rootfs. b) populate_rootfs does indeed happen long before the bpfilter module is intialized. c) What prevents populate_rootfs and the

[PATCH net-next] net: dsa: loop: Print when registration is successful

2020-07-07 Thread Florian Fainelli
We have a number of error conditions that can lead to the driver not probing successfully, move the print when we are sure dsa_register_switch() has suceeded. This avoids repeated prints in case of probe deferral for instance. Signed-off-by: Florian Fainelli --- drivers/net/dsa/dsa_loop.c | 11

Re: [PATCH v10 2/9] fs: introduce kernel_pread_file* support

2020-07-07 Thread Scott Branden
Hi Kees, one more comment below. On 2020-07-07 9:01 p.m., Scott Branden wrote: On 2020-07-07 4:56 p.m., Kees Cook wrote: On Mon, Jul 06, 2020 at 04:23:02PM -0700, Scott Branden wrote: Add kernel_pread_file* support to kernel to allow for partial read of files with an offset into the file.

[PATCH] drivers/net/wan/x25_asy: Fix to make it work

2020-07-07 Thread Xie He
This driver is not working because of problems of its receiving code. This patch fixes it to make it work. When the driver receives an LAPB frame, it should first pass the frame to the LAPB module to process. After processing, the LAPB module passes the data (the packet) back to the driver, the

linux-next: manual merge of the spi tree with the mtd tree

2020-07-07 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the spi tree got conflicts in: drivers/memory/Kconfig drivers/memory/Makefile between commit: 66b8173a197f ("memory: stm32-fmc2-ebi: add STM32 FMC2 EBI controller driver") from the mtd tree and commit: ca7d8b980b67 ("memory: add Renesas RPC-IF

Re: [PATCH v5 08/12] init: main: add KUnit to kernel init

2020-07-07 Thread Luis Chamberlain
On Fri, Jun 26, 2020 at 02:09:13PM -0700, Brendan Higgins wrote: > Remove KUnit from init calls entirely, instead call directly from > kernel_init(). The commit log does not explain *why*. > Co-developed-by: Alan Maguire > Signed-off-by: Alan Maguire > Signed-off-by: Brendan Higgins >

Re: [PATCH v10 0/9] firmware: add request_partial_firmware_into_buf

2020-07-07 Thread Florian Fainelli
On 7/6/2020 4:23 PM, Scott Branden wrote: > This patch series adds partial read support via a new call > request_partial_firmware_into_buf. > Such support is needed when the whole file is not needed and/or > only a smaller portion of the file will fit into allocated memory > at any one time. >

Re: [PATCH v5 01/12] vmlinux.lds.h: add linker section for KUnit test suites

2020-07-07 Thread Luis Chamberlain
On Fri, Jun 26, 2020 at 02:22:11PM -0700, Brendan Higgins wrote: > On Fri, Jun 26, 2020 at 2:20 PM Kees Cook wrote: > > > > On Fri, Jun 26, 2020 at 02:09:06PM -0700, Brendan Higgins wrote: > > > Add a linker section where KUnit can put references to its test suites. > > > This patch is the first

Re: [PATCH v10 7/9] misc: bcm-vk: add Broadcom VK driver

2020-07-07 Thread Scott Branden
On 2020-07-07 5:03 p.m., Kees Cook wrote: On Mon, Jul 06, 2020 at 04:23:07PM -0700, Scott Branden wrote: Add Broadcom VK driver offload engine. This driver interfaces to the VK PCIe offload engine to perform should offload functions as video transcoding on multiple streams in parallel. VK

Re: [PATCH v2 1/3] arm64/numa: export memory_add_physaddr_to_nid as EXPORT_SYMBOL_GPL

2020-07-07 Thread Dan Williams
On Tue, Jul 7, 2020 at 9:08 PM Justin He wrote: [..] > > Especially for architectures that use memblock info for numa info > > (which seems to be everyone except x86) why not implement a generic > > memory_add_physaddr_to_nid() that does: > > > > int memory_add_physaddr_to_nid(u64 addr) > > { > >

Re: [PATCH v5 0/4] vmalloc kernel mapping and relocatable kernel

2020-07-07 Thread Alex Ghiti
Hi Palmer, Le 6/7/20 à 3:59 AM, Alexandre Ghiti a écrit : This patchset originally implemented relocatable kernel support but now also moves the kernel mapping into the vmalloc zone. The first patch explains why

[PATCH 17/17] tools: gpio: fix spurious close warning in gpio-event-mon

2020-07-07 Thread Kent Gibson
Fix bogus close warning that occurs when opening the character device fails. Signed-off-by: Kent Gibson --- tools/gpio/gpio-event-mon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/gpio/gpio-event-mon.c b/tools/gpio/gpio-event-mon.c index

[PATCH 12/17] gpiolib: cdev: refactor linehandle cleanup into linehandle_free

2020-07-07 Thread Kent Gibson
Consolidate the cleanup of linehandles, currently duplicated in linehandle_create and linehandle_release, into a helper function linehandle_free. Signed-off-by: Kent Gibson --- drivers/gpio/gpiolib-cdev.c | 39 ++--- 1 file changed, 19 insertions(+), 20

[PATCH 16/17] tools: gpio: fix spurious close warning in gpio-utils

2020-07-07 Thread Kent Gibson
Fix bogus close warning that occurs when opening the character device fails. Signed-off-by: Kent Gibson --- tools/gpio/gpio-utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/gpio/gpio-utils.c b/tools/gpio/gpio-utils.c index 06003789e7c7..16a5d9cb9da2 100644

[PATCH 14/17] gpio: uapi: fix misplaced comment line

2020-07-07 Thread Kent Gibson
The second line of the description for event_type is before the first. Move it to after the first line. Signed-off-by: Kent Gibson --- include/uapi/linux/gpio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/gpio.h b/include/uapi/linux/gpio.h index

[PATCH 13/17] gpiolib: cdev: refactor lineevent cleanup into lineevent_free

2020-07-07 Thread Kent Gibson
Consolidate the cleanup of lineevents, currently duplicated in lineevent_create and lineevent_release, into a helper function lineevent_free. Signed-off-by: Kent Gibson --- drivers/gpio/gpiolib-cdev.c | 44 ++--- 1 file changed, 21 insertions(+), 23 deletions(-)

[PATCH 15/17] tools: gpio: fix spurious close warning in lsgpio

2020-07-07 Thread Kent Gibson
Fix bogus close warning that occurs when opening the character device fails. Signed-off-by: Kent Gibson --- tools/gpio/lsgpio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/gpio/lsgpio.c b/tools/gpio/lsgpio.c index 8a71ad36f83b..b08d7a5e779b 100644 ---

[PATCH 11/17] gpiolib: cdev: remove recalculation of offset

2020-07-07 Thread Kent Gibson
Remove recalculation of offset from desc, where desc itself was calculated from offset. There is no benefit from the desc -> hwgpio conversion in this context. The only implicit benefit of the offset -> desc -> hwgpio is the range check in the offset -> desc, but where desc is required you still

[PATCH 10/17] gpiolib: cdev: fix minor race in GET_LINEINFO_WATCH

2020-07-07 Thread Kent Gibson
Merge separate usage of test_bit/set_bit into test_and_set_bit to remove the possibility of a race between the test and set. Similarly test_bit and clear_bit. In the existing code it is possible for two threads to race past the test_bit and then set or clear the watch bit, and neither return

[PATCH 09/17] gpiolib: cdev: rename priv to cdev

2020-07-07 Thread Kent Gibson
Rename priv to cdev to improve readability. The name "priv" indicates that the object is pointed to by file->private_data, not what the object is actually is. As it is always used to point to a struct gpio_chardev_data, renaming it to cdev is more appropriate. Signed-off-by: Kent Gibson ---

[PATCH 06/17] gpiolib: cdev: rename numdescs to num_descs

2020-07-07 Thread Kent Gibson
Rename numdescs to num_descs to be more consistent with the naming of other counters and improve readability. Signed-off-by: Kent Gibson --- drivers/gpio/gpiolib-cdev.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/gpio/gpiolib-cdev.c

[PATCH 07/17] gpiolib: cdev: remove pointless decrement of i

2020-07-07 Thread Kent Gibson
Remove pointless decrement of variable, and associated comment. While i is used subsequently, it is re-initialized so this decrement serves no purpose. Signed-off-by: Kent Gibson --- drivers/gpio/gpiolib-cdev.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpio/gpiolib-cdev.c

[PATCH 03/17] gpiolib: cdev: minor indentation fixes

2020-07-07 Thread Kent Gibson
Make indentation consistent with other use to improve readability. Signed-off-by: Kent Gibson --- drivers/gpio/gpiolib-cdev.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/gpio/gpiolib-cdev.c b/drivers/gpio/gpiolib-cdev.c index

[PATCH 04/17] gpiolib: cdev: refactor gpiohandle_flags_to_desc_flags

2020-07-07 Thread Kent Gibson
Refactor the mapping from handle flags to desc flags into a helper function. The assign_bit is overkill where it is replacing the set_bit cases, as is rechecking bits known to be clear in some circumstances, but the DRY simplification more than makes up for any performance degradation, especially

[PATCH 05/17] gpiolib: cdev: rename 'filep' and 'filp' to 'file' to be consistent with other use

2020-07-07 Thread Kent Gibson
Rename 'filep' and 'filp' to 'file' to be consistent with other use and improve readability. Signed-off-by: Kent Gibson --- drivers/gpio/gpiolib-cdev.c | 70 ++--- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/drivers/gpio/gpiolib-cdev.c

[PATCH 08/17] gpiolib: cdev: use blocking notifier call chain instead of atomic

2020-07-07 Thread Kent Gibson
Replace usage of atomic_notifier_call_chain with blocking_notifier_call_chain as the notifier function, lineinfo_changed_notify, calls gpio_desc_to_lineinfo, which calls pinctrl_gpio_can_use_line, which can sleep. The chain isn't being called from an atomic context so the the blocking notifier is

[PATCH 00/17] gpiolib: cdev: pre-uAPI v2 cleanups

2020-07-07 Thread Kent Gibson
This collection of patches provides improvements to or address minor problems in gpiolib-cdev. The majority of the patches (1-7, 9-11) have been pulled directly from my "gpio: cdev: add uAPI V2" patch set, as they are not related to any uAPI changes. The remaining patches were either split out of

[PATCH 01/17] gpiolib: move gpiolib-sysfs function declarations into their own header

2020-07-07 Thread Kent Gibson
Move gpiolib-sysfs function declarations into their own header. These functions are in gpiolib-sysfs.c, and are only required by gpiolib.c, and so should be in a module header, not gpiolib.h. This brings gpiolib-sysfs into line with gpiolib-cdev, and is another step towards removing the sysfs

[PATCH 02/17] gpiolib: cdev: sort includes

2020-07-07 Thread Kent Gibson
Sort the includes of gpiolib-cdev.c to make it easier to identify if a module is included and to avoid duplication. Signed-off-by: Kent Gibson --- drivers/gpio/gpiolib-cdev.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/gpio/gpiolib-cdev.c

Re: [PATCH] mm/hugetlb: split hugetlb_cma in nodes with memory

2020-07-07 Thread Anshuman Khandual
Hello Barry, On 07/08/2020 05:53 AM, Barry Song wrote: > Rather than splitting huge_cma in online nodes, it is better to do it in > nodes with memory. Right, it makes sense to avoid nodes without memory, hence loosing portions of CMA reservation intended for HugeTLB. N_MEMORY is better than

Re: [PATCH v11 2/4] fs: Add standard casefolding support

2020-07-07 Thread Eric Biggers
On Tue, Jul 07, 2020 at 08:05:50PM -0700, Daniel Rosenberg wrote: > +/** > + * generic_ci_d_compare - generic d_compare implementation for casefolding > filesystems > + * @dentry: dentry whose name we are checking against > + * @len: len of name of dentry > + * @str: str pointer to name

Re: [PATCH v10 4/9] test_firmware: add partial read support for request_firmware_into_buf

2020-07-07 Thread Scott Branden
On 2020-07-07 4:59 p.m., Kees Cook wrote: On Mon, Jul 06, 2020 at 04:23:04PM -0700, Scott Branden wrote: Add additional hooks to test_firmware to pass in support for partial file read using request_firmware_into_buf. buf_size: size of buffer to request firmware into partial: indicates that a

[PATCH v4 2/2] devicetree: hwmon: shtc1: Add sensirion,shtc1.yaml

2020-07-07 Thread Chris Ruehl
Add documentation for the newly added DTS support in the shtc1 driver. To align with the drivers logic to have high precision by default a boolean sensirion,low_precision is used to switch to low precision. Signed-off-by: Chris Ruehl --- .../bindings/hwmon/sensirion,shtc1.yaml | 60

[PATCH v4 1/2] hwmon: shtc1: add support for device tree bindings

2020-07-07 Thread Chris Ruehl
Add support for DTS bindings for the sensirion shtc1,shtw1 and shtc3. Signed-off-by: Chris Ruehl Reviewed-by: Guenter Roeck --- drivers/hwmon/shtc1.c | 25 ++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/drivers/hwmon/shtc1.c b/drivers/hwmon/shtc1.c

[PATCH v4 0/2] shtc1: add support for device tree bindings

2020-07-07 Thread Chris Ruehl
Add support for DTS bindings to the shtc driver The patches add the compatible table and of_property_read_bool to the shtc1.c. Newly created Yaml document has been released to the Documentation/devicetree/hwmon/sensirion,shtc1.yaml Signed-off-by: Chris Ruehl --- Version 4 Fix errors

RE: [PATCH v2 1/3] arm64/numa: export memory_add_physaddr_to_nid as EXPORT_SYMBOL_GPL

2020-07-07 Thread Justin He
Hi Dan > -Original Message- > From: Dan Williams > Sent: Wednesday, July 8, 2020 11:57 AM > To: Justin He > Cc: Michal Hocko ; David Hildenbrand ; > Catalin Marinas ; Will Deacon ; > Vishal Verma ; Dave Jiang ; > Andrew Morton ; Mike Rapoport > ; Baoquan He ; Chuhong Yuan > ;

Re: [PATCH v10 3/9] firmware: add request_partial_firmware_into_buf

2020-07-07 Thread Scott Branden
On 2020-07-07 4:58 p.m., Kees Cook wrote: On Mon, Jul 06, 2020 at 04:23:03PM -0700, Scott Branden wrote: Add request_partial_firmware_into_buf to allow for portions of firmware file to be read into a buffer. Necessary where firmware needs to be loaded in portions from file in memory

ld.lld: warning: drivers/built-in.a(net/phy/mdio_bus.o):(.data..compoundliteral) is being placed in '.data..compoundliteral'

2020-07-07 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: dcde237b9b0eb1d19306e6f48c0a4e058907619f commit: e4f4ffa8a98c24a4ab482669b1e2b4cfce3f52f4 input: i8042 - Remove special PowerPC handling date: 6 weeks ago config: powerpc64-randconfig-r004-20200707

Re: [PATCH v10 2/9] fs: introduce kernel_pread_file* support

2020-07-07 Thread Scott Branden
On 2020-07-07 4:56 p.m., Kees Cook wrote: On Mon, Jul 06, 2020 at 04:23:02PM -0700, Scott Branden wrote: Add kernel_pread_file* support to kernel to allow for partial read of files with an offset into the file. Signed-off-by: Scott Branden --- fs/exec.c| 93

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

2020-07-07 Thread Stephen Rothwell
Hi all, After merging the security tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: fs/anon_inodes.c: In function 'anon_inode_make_secure_inode': fs/anon_inodes.c:70:10: error: implicit declaration of function 'security_inode_init_security_anon'; did you mean

[PATCH v5] f2fs: add F2FS_IOC_SEC_TRIM_FILE ioctl

2020-07-07 Thread Daeho Jeong
From: Daeho Jeong Added a new ioctl to send discard commands or/and zero out to selected data area of a regular file for security reason. Signed-off-by: Daeho Jeong Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h | 15 fs/f2fs/file.c | 181

Re: [PATCH v2 1/3] arm64/numa: export memory_add_physaddr_to_nid as EXPORT_SYMBOL_GPL

2020-07-07 Thread Dan Williams
On Tue, Jul 7, 2020 at 7:20 PM Justin He wrote: > > Hi Michal and David > > > -Original Message- > > From: Michal Hocko > > Sent: Tuesday, July 7, 2020 7:55 PM > > To: Justin He > > Cc: Catalin Marinas ; Will Deacon > > ; Dan Williams ; Vishal Verma > > ; Dave Jiang ; Andrew > > Morton

  1   2   3   4   5   6   7   8   9   10   >