Re: [PATCH] net: neterion: vxge: reduce stack usage in VXGE_COMPLETE_VPATH_TX

2020-07-19 Thread Bixuan Cui
On 2020/7/20 1:05, Stephen Hemminger wrote: > On Thu, 16 Jul 2020 17:32:47 + > Bixuan Cui wrote: > >> Fix the warning: [-Werror=-Wframe-larger-than=] >> >> drivers/net/ethernet/neterion/vxge/vxge-main.c: >> In function'VXGE_COMPLETE_VPATH_TX.isra.37': >> drivers/net/ethernet/neterion/vxge/

[PATCH v2] net: neterion: vxge: reduce stack usage in VXGE_COMPLETE_VPATH_TX

2020-07-19 Thread Bixuan Cui
Fix the warning: [-Werror=-Wframe-larger-than=] drivers/net/ethernet/neterion/vxge/vxge-main.c: In function'VXGE_COMPLETE_VPATH_TX.isra.37': drivers/net/ethernet/neterion/vxge/vxge-main.c:119:1: warning: the frame size of 1056 bytes is larger than 1024 bytes Dropping the NR_SKB_COMPLETED to 16 is

Re: [PATCH 1/2] ALSA: hda/realtek: Fix headset mic on Loongson platform

2020-07-19 Thread Kaige Li
On 07/17/2020 02:57 PM, Takashi Iwai wrote: On Fri, 17 Jul 2020 04:51:31 +0200, Kaige Li wrote: Add pin quirks to enable use of the headset mic on Loongson platform. Signed-off-by: Kaige Li @@ -7654,6 +7663,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0

RE: [RFC PATCH 0/2] vfs:9p: fix open-unlink-fstat bug

2020-07-19 Thread Jianyong Wu
> -Original Message- > From: Al Viro On Behalf Of Al Viro > Sent: Monday, July 20, 2020 9:52 AM > To: Jianyong Wu > Cc: eri...@gmail.com; h...@lst.de; dhowe...@redhat.com; > lu...@ionkov.net; asmad...@codewreck.org; v9fs- > develo...@lists.sourceforge.net; linux-kernel@vger.kernel.org;

Re: [PATCH -next] memory: Convert to DEFINE_SHOW_ATTRIBUTE

2020-07-19 Thread miaoqinglang
在 2020/7/18 5:14, Pavel Machek 写道: On Thu 2020-07-16 17:03:03, Qinglang Miao wrote: From: Yongqiang Liu Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Yongqiang Liu --- drivers/memory/emif.c | 22 ++ drivers/memory/tegra/tegra124-

Re: [PATCH v2 4/4] mm/vmalloc: Hugepage vmalloc mappings

2020-07-19 Thread Zefan Li
> +static int vmap_pages_range_noflush(unsigned long start, unsigned long end, > + pgprot_t prot, struct page **pages, > + unsigned int page_shift) > +{ > + if (page_shift == PAGE_SIZE) { Is this a typo of PAGE_SHIFT? > +

Re: [PATCH v3 4/5] LSM: Define SELinux function to measure security state

2020-07-19 Thread Lakshmi Ramasubramanian
On 7/17/20 8:14 PM, kernel test robot wrote: Hi Lakshmi, Thank you for the patch! Yet something to improve: [auto build test ERROR on integrity/next-integrity] [cannot apply to pcmoore-selinux/next security/next-testing linus/master v5.8-rc5 next-20200717] [If your patch is applied to the wron

Re: [PATCH] tools/memory-model: document the "one-time init" pattern

2020-07-19 Thread Dave Chinner
On Fri, Jul 17, 2020 at 10:28:18PM -0700, Eric Biggers wrote: > What do people think about the following instead? (Not proofread / tested > yet, > so please comment on the high-level approach, not minor mistakes :-) ) No huge long macros, please. We don't accept people writing long complex stat

Re: [PATCH v2] scsi: scsi_transport_sas: add missing newline when printing 'enable' by sysfs

2020-07-19 Thread Xiongfeng Wang
Hi, On 2020/7/19 4:25, Bart Van Assche wrote: > On 2020-07-17 01:44, Xiongfeng Wang wrote: >> diff --git a/drivers/scsi/scsi_transport_sas.c >> b/drivers/scsi/scsi_transport_sas.c >> index 182fd25..e443dee 100644 >> --- a/drivers/scsi/scsi_transport_sas.c >> +++ b/drivers/scsi/scsi_transport_sas.

[PATCH] ipmi/watchdog: add missing newlines when printing parameters by sysfs

2020-07-19 Thread Xiongfeng Wang
When I cat some ipmi_watchdog parameters by sysfs, it displays as follows. It's better to add a newline for easy reading. root@(none):/# cat /sys/module/ipmi_watchdog/parameters/action resetroot@(none):/# cat /sys/module/ipmi_watchdog/parameters/preaction pre_noneroot@(none):/# cat /sys/module/ipm

Re: [PATCH 3/3] ARM: dts: colibri-imx7: add usb dual-role switch capability

2020-07-19 Thread Shawn Guo
On Tue, Jul 14, 2020 at 08:20:34AM +, Philippe Schenker wrote: > On Tue, 2020-07-14 at 09:55 +0200, Ahmad Fatoum wrote: > > Hello Philippe, > > > > On 7/13/20 1:53 PM, Philippe Schenker wrote: > > > On Mon, 2020-07-13 at 11:46 +0200, Ahmad Fatoum wrote: > > > > Hello Philippe, > > > > > > > >

Re: linux-next: not-present page at swap_vma_readahead()

2020-07-19 Thread Qian Cai
On Mon, Jul 20, 2020 at 12:37:30AM +, Huang, Ying wrote: > Hi, > > Sorry for late reply. I found a problem in the swap readahead code. Can you > help to check whether it can fix this? Unfortunately, I can still reproduce it easily after applied the patch. # git clone https://gitlab.com/ca

Re: [PATCH] staging: media: ipu3: Replace depracated MSI API.

2020-07-19 Thread Bingbu Cao
Upadhyay, Thanks for your patch. Please correct the typo in message. On 7/18/20 9:32 PM, Suraj Upadhyay wrote: > Replace depracated psi_enable_msi with pci_alloc_irq_vectors. > And as a result modify how the returned value is handled. > > Signed-off-by: Suraj Upadhyay > --- > drivers/staging/m

Re: [PATCH -next] debugobjects: Convert to DEFINE_SHOW_ATTRIBUTE

2020-07-19 Thread miaoqinglang
在 2020/7/18 4:26, Thomas Gleixner 写道: Qinglang Miao writes: Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Qinglang Miao --- lib/debugobjects.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/lib/debugobjects.c b/lib/debugobjects.c

[PATCH 2/4] tracing: add trace_export support for event trace

2020-07-19 Thread Tingwei Zhang
Only function traces can be exported to other destinations currently. This patch exports event trace as well. Signed-off-by: Tingwei Zhang --- kernel/trace/trace.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/kernel/trace/trace.c b/kernel/trace/t

[PATCH 3/4] tracing: add trace_export support for trace_marker

2020-07-19 Thread Tingwei Zhang
Add the support to route trace_marker buffer to other destination via trace_export. Signed-off-by: Tingwei Zhang --- kernel/trace/trace.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index aef6330836e2..ac18e0ee9246 100644 --- a/kernel/trace/t

[PATCH 1/4] stm class: ftrace: change dependency to TRACING

2020-07-19 Thread Tingwei Zhang
We will support copying event trace to STM. Change STM_SOURCE_FTRACE to depend on TRACING since we will support multiple tracers. Signed-off-by: Tingwei Zhang --- drivers/hwtracing/stm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtracing/stm/Kconfig b/dri

[PATCH 0/4] tracing: export event trace and trace_marker

2020-07-19 Thread Tingwei Zhang
Ftrace has ability to export trace packets to other destionation. Currently, only function trace can be exported. This series extends the support to event trace and trace_maker. STM is one possible destination to export ftrace. Use seperate channel for each CPU to avoid mixing up packets from diffe

[PATCH 4/4] stm class: ftrace: use different channel accroding to CPU

2020-07-19 Thread Tingwei Zhang
To avoid mixup of packets from differnt ftrace packets simultaneously, use different channel for packets from different CPU. Signed-off-by: Tingwei Zhang --- drivers/hwtracing/stm/ftrace.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/hwtracing/stm/ftrace.c b/d

Re: [PATCH] irqchip/gic-v4.1: Ensure accessing the correct RD when writing INVALLR

2020-07-19 Thread Zenghui Yu
Hi Marc, On 2020/7/17 19:07, Marc Zyngier wrote: On Thu, 09 Jul 2020 14:49:59 +0100, Zenghui Yu wrote: The GICv4.1 spec tells us that it's CONSTRAINED UNPREDICTABLE to issue a register-based invalidation operation for a vPEID not mapped to that RD, or another RD within the same CommonLPIAff g

Re: [RESEND v2] arm64: dts: lx2160a-rdb: fix shunt-resistor value

2020-07-19 Thread Shawn Guo
On Tue, Jul 14, 2020 at 03:08:28PM +0800, Biwen Li wrote: > From: Biwen Li > > Fix value of shunt-resistor property. > The LX2160A-RDB has 500 uOhm shunt for > the INA220, not 1000 uOhm. Unless > it will get wrong power consumption(1/2) > > Signed-off-by: Biwen Li Applied, thanks.

[PATCH V2 1/1] irqchip: imx-intmux: implement intmux PM

2020-07-19 Thread Joakim Zhang
When system suspended, we could explicitly disable clock to save power. And we need save registers' state since it could be lost after power off. Implement PM which will: 1) Without CONFIG_PM, clock is always on after probe stage. 2) With CONFIG_PM, clock is off after probe stage. 3) Disable clock

[PATCH V2 0/1] irqchip: intmux: implement intmux PM

2020-07-19 Thread Joakim Zhang
This patch intends to implement intmux PM. ChangeLogs: V1->V2: 1. add more detailed commit message. 2. use u32 for 32bit HW registers. 3. fix kbuild failures. 4. move trivial functions into their respective callers. 5. squash two patches together. Joakim Zh

Re: [PATCH for v5.9] ARM: dts: mxs: Replace HTTP links with HTTPS ones

2020-07-19 Thread Shawn Guo
On Sun, Jul 19, 2020 at 12:10:08PM +0200, Alexander A. Klimov wrote: > 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: > If not .svg: > For each line: > If doesn

Re: [PATCH 2/2] ASoC: qcom: sc7180: Add machine driver for sound card registration

2020-07-19 Thread Tzung-Bi Shih
On Fri, Jul 17, 2020 at 8:02 PM Cheng-Yi Chiang wrote: > diff --git a/sound/soc/qcom/sc7180.c b/sound/soc/qcom/sc7180.c > new file mode 100644 > index ..cbe6b487d432 > --- /dev/null > +++ b/sound/soc/qcom/sc7180.c > @@ -0,0 +1,410 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* >

Re: [PATCH v2 4/4] mm/vmalloc: Hugepage vmalloc mappings

2020-07-19 Thread Nicholas Piggin
Excerpts from Zefan Li's message of July 20, 2020 12:02 pm: >> +static int vmap_pages_range_noflush(unsigned long start, unsigned long end, >> +pgprot_t prot, struct page **pages, >> +unsigned int page_shift) >> +{ >> +if (page_shi

[PATCH net-next v2] net: ena: Fix using plain integer as NULL pointer in ena_init_napi_in_range

2020-07-19 Thread Wang Hai
Fix sparse build warning: drivers/net/ethernet/amazon/ena/ena_netdev.c:2193:34: warning: Using plain integer as NULL pointer Reported-by: Hulk Robot Signed-off-by: Wang Hai Suggested-by: Joe Perches Acked-by: Shay Agroskin --- v1->v2: Improve code readability based on Joe Perches's suggesti

Re: [PATCH v16 00/22] per memcg lru_lock

2020-07-19 Thread Alex Shi
在 2020/7/19 下午11:23, Hugh Dickins 写道: > I noticed that 5.8-rc5, with lrulock v16 applied, took significantly > longer to run loads than without it applied, when there should have been > only slight differences in system time. Comparing /proc/vmstat, something > that stood out was "pgrotated 0" f

Re: [RFC PATCH 4/7] x86: use exit_lazy_tlb rather than membarrier_mm_sync_core_before_usermode

2020-07-19 Thread Nicholas Piggin
Excerpts from Mathieu Desnoyers's message of July 17, 2020 11:42 pm: > - On Jul 16, 2020, at 7:26 PM, Nicholas Piggin npig...@gmail.com wrote: > [...] >> >> membarrier does replace barrier instructions on remote CPUs, which do >> order accesses performed by the kernel on the user address space

Re: [PATCH] dt-bindings: hwmon: adm1272: add adm1272-adm1275-temp1-en binding

2020-07-19 Thread Chu Lin
On Sun, Jul 19, 2020 at 3:22 PM Guenter Roeck wrote: > > On Fri, Jul 10, 2020 at 12:42:58AM +, Chu Lin wrote: > > Problem: > > adm1272 and adm1278 supports temperature sampling. The > > current way of enabling it requires the user manually unbind the device > > from the driver, flip the

Re: [PATCH net-next v2] net: ena: Fix using plain integer as NULL pointer in ena_init_napi_in_range

2020-07-19 Thread Joe Perches
On Mon, 2020-07-20 at 10:53 +0800, Wang Hai wrote: > Fix sparse build warning: > > drivers/net/ethernet/amazon/ena/ena_netdev.c:2193:34: warning: > Using plain integer as NULL pointer [] > diff --git a/drivers/net/ethernet/amazon/ena/ena_netdev.c > b/drivers/net/ethernet/amazon/ena/ena_netdev.c

[PATCH] MAINTAINERS: mark usbvision as obsolete

2020-07-19 Thread B K Karthik
mark staging/media/usbvision as obsolete so checkpatch tells people not to send patches. Signed-off-by: B K Karthik --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index a88bf0759c90..82120c2fcedd 100644 --- a/MAINTAINERS +++ b/MAINTA

Re: [PATCH] ARM: dts: ZII: Disable HW Ethernet switch reset GPIO

2020-07-19 Thread Shawn Guo
On Wed, Jul 15, 2020 at 02:22:27PM -0700, Chris Healy wrote: > Disable Ethernet switch reset GPIO with ZII platforms that have it > enabled to sync up with existing ZII platforms that already have > it disabled. I do not follow it. The reset GPIO is part of hardware description. We shouldn't add

Re: [PATCH v2 2/2] ARM: dts: stm32: Enable MIPI DSI display support.

2020-07-19 Thread Hua Dillon
Hi Adrian, Adrian Pop 于2020年7月19日周日 下午10:54写道: > > Hello Hua, > > Thank you for your review, > > On Tue, Jul 14, 2020 at 6:37 AM Hua Dillon wrote: > > > > Hi, Adrian, > > > > Just one suggestion for you. > > > > Adrian Pop 于2020年7月3日周五 上午1:30写道: > > > > > > STM32f769-disco features a 4" MIPI DS

Re: [PATCH v2] ARM: dts: vf610-zii-ssmb-dtu: Add no-sdio/no-sd properties

2020-07-19 Thread Shawn Guo
On Wed, Jul 15, 2020 at 02:31:48PM -0700, Chris Healy wrote: > esdhc0 is connected to an eMMC, so it is safe to pass the "no-sdio"/"no-sd" > properties. > > esdhc1 is wired to a standard SD socket, so pass the "no-sdio" property. > > Signed-off-by: Chris Healy > Reviewed-by: Fabio Estevam Appl

[PATCH] net: vxge-main: Remove unnecessary cast in kfree()

2020-07-19 Thread Xu Wang
Remove unnecassary casts in the argument to kfree. Signed-off-by: Xu Wang --- drivers/net/ethernet/neterion/vxge/vxge-main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/neterion/vxge/vxge-main.c b/drivers/net/ethernet/neterion/vxge/vxge-main.c in

Re: [PATCH] ARM: dts: vf610-zii-ssmb-spu3: Add node for switch watchdog

2020-07-19 Thread Shawn Guo
On Wed, Jul 15, 2020 at 03:07:58PM -0700, Chris Healy wrote: > Add I2C child node for switch watchdog present on SPU3 > > Signed-off-by: Chris Healy Applied, thanks.

Re: [PATCH v3] ARM: dts: imx6qdl-icore: Fix OTG_ID pin and sdcard detect

2020-07-19 Thread Shawn Guo
On Fri, Jul 17, 2020 at 01:33:52PM +0530, Suniel Mahesh wrote: > From: Michael Trimarchi > > The current pin muxing scheme muxes GPIO_1 pad for USB_OTG_ID > because of which when card is inserted, usb otg is enumerated > and the card is never detected. > > [ 64.492645] cfg80211: failed to load

RE: linux-next: not-present page at swap_vma_readahead()

2020-07-19 Thread Huang, Ying
Thanks! Can you try the dbg patch attached? That will print more debugging information when abnormal PTE pointer is detected. Best Regards, Huang, Ying From: Qian Cai [c...@lca.pw] Sent: Monday, July 20, 2020 10:12 AM To: Huang, Ying Cc: Linux-MM; LKML;

[PATCH -next] mm/gup.c: Fix the comment of return value for populate_vma_page_range()

2020-07-19 Thread Tang Yizhou
The return value of populate_vma_page_range() is consistent with __get_user_pages(), and so is the function comment of return value. Signed-off-by: Tang Yizhou --- mm/gup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/gup.c b/mm/gup.c index 2cc5eba44362..a55f1ec712e9

Re: [PATCH] Revert "kbuild: use -flive-patching when CONFIG_LIVEPATCH is enabled"

2020-07-19 Thread Joe Lawrence
On 7/17/20 2:29 PM, Josh Poimboeuf wrote: Use of the new -flive-patching flag was introduced with the following commit: 43bd3a95c98e ("kbuild: use -flive-patching when CONFIG_LIVEPATCH is enabled") This flag has several drawbacks: [ ... snip ... ] - While there *is* a distro which relies o

[PATCH] Fix memory overwriting issue when copy an address to user space

2020-07-19 Thread lebon zhou
When application provided buffer size less than sockaddr_storage, then kernel will overwrite some memory area which may cause memory corruption, e.g.: in recvmsg case, let msg_name=malloc(8) and msg_namelen=8, then usually application can call recvmsg successful but actually application memory get

[PATCH] xarray: update document for error space returned by xarray normal API

2020-07-19 Thread Wang Long
In the current xarray code, the negative value -1 and -4095 represented as an error. xa_is_error(xa_mk_internal(-4095)) and xa_is_error(xa_mk_internal(-1)) are all return true. This patch update the document. Signed-off-by: Wang Long --- include/linux/xarray.h | 2 +- 1 file changed, 1 inserti

RE: [PATCH v2 2/3] usb: chipidea: imx: support disabling runtime-pm

2020-07-19 Thread Peter Chen
> On Wed, 2020-07-15 at 00:51 +, Peter Chen wrote: > > > > > The Toradex Colibri iMX6ULL board has a special USB hardware design. > > > With runtime-pm enabled USB reset itself continuously. Furthermore > > > the OTG port is also not enumerating devices if the Chipidea IP is > > > in runtime

Re: [PATCH v4 09/10] powerpc/watchpoint: Return available watchpoints dynamically

2020-07-19 Thread Jordan Niethe
On Fri, Jul 17, 2020 at 2:11 PM Ravi Bangoria wrote: > > 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/inc

RE: linux-next: Tree for Jul 17 (drivers/rtc/rtc-ds1374.o)

2020-07-19 Thread 陳昭勳
Hi Stephen, > From: Stephen Rothwell > Sent: Saturday, July 18, 2020 9:39 AM > To: Randy Dunlap > Cc: Linux Next Mailing List ; Linux Kernel Mailing > List ; linux-...@vger.kernel.org; Alessandro > Zummo ; Alexandre Belloni > ; Scott Wood ; > Johnson CH Chen (陳昭勳) > Subject: Re: linux-next: Tr

Re: Linux 5.8-rc6

2020-07-19 Thread Sedat Dilek
Hi, thanks for the new RC. I wonder why there is a time gap between tagging v5.8-rc6 in [1] (first) and [2] (15-16mins later). Can you explain that? ( Here it is UTC+2 means 9 hours ahead of your local-time - I started my build 01:02 a.m. local-time. ) Thanks. Regards, - Sedat - [1] https://gi

[PATCH net-next v2 1/4] net: Wrap ndo_do_ioctl() to prepare for DSA stacked ops

2020-07-19 Thread Florian Fainelli
In preparation for adding another layer of call into a DSA stacked ops singleton, wrap the ndo_do_ioctl() call into dev_do_ioctl(). Reviewed-by: Andrew Lunn Signed-off-by: Florian Fainelli --- net/core/dev_ioctl.c | 24 +--- 1 file changed, 17 insertions(+), 7 deletions(-)

[PATCH net-next v2 2/4] net: dsa: Add wrappers for overloaded ndo_ops

2020-07-19 Thread Florian Fainelli
Add definitions for the dsa_netdevice_ops structure which is a subset of the net_device_ops structure for the specific operations that we care about overlaying on top of the DSA CPU port net_device and provide inline stubs that take core managing whether DSA code is reachable. Signed-off-by: Flori

[PATCH net-next v2 4/4] net: dsa: Setup dsa_netdev_ops

2020-07-19 Thread Florian Fainelli
Now that we have all the infrastructure in place for calling into the dsa_ptr->netdev_ops function pointers, install them when we configure the DSA CPU/management interface and tear them down. The flow is unchanged from before, but now we preserve equality of tests when network device drivers do te

[PATCH net-next v2 0/4] net: dsa: Setup dsa_netdev_ops

2020-07-19 Thread Florian Fainelli
Hi David, Jakub, This patch series addresses the overloading of a DSA CPU/management interface's netdev_ops for the purpose of providing useful information from the switch side. Up until now we had duplicated the existing netdev_ops structure and added specific function pointers to return informa

[PATCH net-next v2 3/4] net: Call into DSA netdevice_ops wrappers

2020-07-19 Thread Florian Fainelli
Make the core net_device code call into our ndo_do_ioctl() and ndo_get_phys_port_name() functions via the wrappers defined previously Signed-off-by: Florian Fainelli --- net/core/dev.c | 5 + net/core/dev_ioctl.c | 5 + 2 files changed, 10 insertions(+) diff --git a/net/core/dev.c

Re: [RFC PATCH 14/16] irq: Add support for core-wide protection of IRQ and softirq

2020-07-19 Thread Joel Fernandes
On Sat, Jul 18, 2020 at 01:36:16AM +0200, Thomas Gleixner wrote: > Vineeth, Joel! Hi Thomas, > Vineeth Remanan Pillai writes: > > From: "Joel Fernandes (Google)" > > > > Lastly, we also check in the schedule loop if we are about to schedule > > an untrusted process while the core is in such a s

Re: linux-next: not-present page at swap_vma_readahead()

2020-07-19 Thread Qian Cai
On Mon, Jul 20, 2020 at 03:32:59AM +, Huang, Ying wrote: > Thanks! Can you try the dbg patch attached? That will print more debugging > information when abnormal PTE pointer is detected. Here with both of your patches applied, [ 183.627876][ T3959] ra_info: 8, 3, 4, aabe3209 [ 18

RE: [PATCH] spi: spi-cadence: add support for chip select high

2020-07-19 Thread Shreyas Joshi
Were you able to patch my driver successfully? -Original Message- From: Shreyas Joshi Sent: Saturday, 11 July 2020 7:17 AM To: broo...@kernel.org; linux-...@vger.kernel.org; shreyasjosh...@gmail.com Cc: linux-kernel@vger.kernel.org; Shreyas Joshi Subject: [PATCH] spi: spi-cadence: add s

[PATCH] xarray: update document for error space returned by xarray normal API

2020-07-19 Thread Wang Long
In the current xarray code, the negative value -1 and -4095 represented as an error. xa_is_error(xa_mk_internal(-4095)) and xa_is_error(xa_mk_internal(-1)) are all return true. This patch update the document. Signed-off-by: Wang Long --- include/linux/xarray.h | 2 +- 1 file changed, 1 inserti

Re: [PATCH] cifs: delete duplicated words in header files

2020-07-19 Thread Steve French
Merged into cifs-2.6.git for-next On Sun, Jul 19, 2020 at 7:14 PM Randy Dunlap wrote: > > Drop repeated words in multiple comments. > (be, use, the, See) > > Signed-off-by: Randy Dunlap > Cc: Steve French > Cc: linux-c...@vger.kernel.org > Cc: samba-techni...@lists.samba.org > --- > fs/cifs/ci

Re: [PATCH v5 3/4] drm/bridge: Introduce LT9611 DSI to HDMI bridge

2020-07-19 Thread Vinod Koul
Hi Sam, On 19-07-20, 19:18, Sam Ravnborg wrote: > Hi Vinod. > > Three trivial points below. > The rest looks good. > > With these fixed you can add: > Reviewed-by: Sam Ravnborg Thanks, I will send an update with nits fixed -- ~Vinod

Re: linux-next: manual merge of the tip tree with the crypto tree

2020-07-19 Thread Stephen Rothwell
Hi Uros, On Fri, 17 Jul 2020 09:31:18 +0200 Uros Bizjak wrote: > > Please find attached the incremental patch that puts back integer > parts of inst.h. This resolves the conflict with the tip tree. The tip tree change needs the XMM parts kept as well, sorry. So I ended up just removing the actu

Re: [PATCH] xarray: update document for error space returned by xarray normal API

2020-07-19 Thread Chaitanya Kulkarni
On 7/19/20 20:58, Wang Long wrote: > xa_is_error(xa_mk_internal(-4095)) and xa_is_error(xa_mk_internal(-1)) > are all return true. 's/xa_is_error()/xa_is_err()/` ? Reviewed-by: Chaitanya Kulkarni

Re: [PATCH vhost next 10/10] vdpa/mlx5: Add VDPA driver for supported mlx5 devices

2020-07-19 Thread Jason Wang
On 2020/7/19 上午3:49, Eli Cohen wrote: On Fri, Jul 17, 2020 at 04:57:29PM +0800, Jason Wang wrote: Looks like checking intialized is enough. Will fix this. + +static void mlx5_vdpa_set_vq_ready(struct vdpa_device *vdev, u16 idx, bool ready) +{ + struct mlx5_vdpa_dev *mvdev = to_mvdev(vd

Re: [PATCH vhost next 06/10] vdpa: Add means to communicate vq status on get_vq_state

2020-07-19 Thread Jason Wang
On 2020/7/16 下午6:25, Eli Cohen wrote: On Thu, Jul 16, 2020 at 05:35:18PM +0800, Jason Wang wrote: On 2020/7/16 下午4:21, Eli Cohen wrote: On Thu, Jul 16, 2020 at 04:11:00PM +0800, Jason Wang wrote: On 2020/7/16 下午3:23, Eli Cohen wrote: Currently, get_vq_state() is used only to pass the availa

[PATCH] media: b2bc: remove needless check before usb_free_coherent()

2020-07-19 Thread Xu Wang
usb_free_coherent() is safe with NULL addr and this check is not required. Signed-off-by: Xu Wang --- drivers/media/usb/b2c2/flexcop-usb.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/media/usb/b2c2/flexcop-usb.c b/drivers/media/usb/b2c2/flexcop-usb.c index 19

Re: [RFC PATCH 10/16] sched: Trivial forced-newidle balancer(Internet mail)

2020-07-19 Thread 蒋彪
Hi, > On Jul 1, 2020, at 5:32 AM, Vineeth Remanan Pillai > wrote: > > From: Peter Zijlstra > > When a sibling is forced-idle to match the core-cookie; search for > matching tasks to fill the core. > > rcu_read_unlock() can incur an infrequent deadlock in > sched_core_balance(). Fix this by u

Re: [PATCH 03/10] ASoC: audio-graph: Support Codec with multiple endpoints

2020-07-19 Thread Sameer Pujar
On 7/20/2020 5:07 AM, Kuninori Morimoto wrote: External email: Use caution opening links or attachments Hi Sameer If a Codec port has multiple endpoints, only first endpoint gets parsed and remaining are ignored. This can be fixed by removing 'dup_codec' flag passed to graph_dai_link_of_dp

[PATCH v1] xarray: update document for error space returned by xarray normal API

2020-07-19 Thread Wang Long
In the current xarray code, the negative value -1 and -4095 represented as an error. xa_is_err(xa_mk_internal(-4095)) and xa_is_err(xa_mk_internal(-1)) are all return true. This patch update the document. Signed-off-by: Wang Long --- include/linux/xarray.h | 2 +- 1 file changed, 1 insertion(+

Re: [PATCH 09/10] arm64: tegra: Audio graph header for Tegra210

2020-07-19 Thread Sameer Pujar
On 7/20/2020 5:40 AM, Kuninori Morimoto wrote: External email: Use caution opening links or attachments Hi Sameer +&tegra_admaif { + admaif_port: port { + admaif0: endpoint@0 { + remote-endpoint = <&xbar_admaif0>; + }; + admaif1:

Re: linux-next: Tree for Jul 17 (drivers/rtc/rtc-ds1374.o)

2020-07-19 Thread Stephen Rothwell
Hi Johnson, On Mon, 20 Jul 2020 03:46:15 + Johnson CH Chen (陳昭勳) wrote: > > > On Fri, 17 Jul 2020 09:49:05 -0700 Randy Dunlap > > wrote: > > > on x86_64: > > > # CONFIG_WATCHDOG is not set > > > > > Thanks for your information. > > It seems RTC_DRV_DS1374_WDT should be depended on RTC

Re: [PATCH v2 2/3] powerpc/powernv/idle: save-restore DAWR0,DAWRX0 for P10

2020-07-19 Thread Ravi Bangoria
Hi Pratik, On 7/10/20 10:52 AM, Pratik Rajesh Sampat wrote: Additional registers DAWR0, DAWRX0 may be lost on Power 10 for stop levels < 4. p10 has one more pair DAWR1/DAWRX1. Please include that as well. Ravi

Re: [PATCH v2 1/4] dt-bindings: media: venus: Add an optional power domain for perf voting

2020-07-19 Thread Rajendra Nayak
On 7/18/2020 12:26 AM, Rob Herring wrote: On Thu, Jul 16, 2020 at 11:52 PM Rajendra Nayak wrote: On 7/17/2020 1:29 AM, Rob Herring wrote: On Thu, Jul 16, 2020 at 11:12:16AM +0530, Rajendra Nayak wrote: Add an optional power domain which when specified can be used for setting the performan

Re: [PATCH v2 2/3] powerpc/powernv/idle: save-restore DAWR0, DAWRX0 for P10

2020-07-19 Thread Ravi Bangoria
Hi Nick, On 7/13/20 11:22 AM, Nicholas Piggin wrote: Excerpts from Pratik Rajesh Sampat's message of July 10, 2020 3:22 pm: Additional registers DAWR0, DAWRX0 may be lost on Power 10 for stop levels < 4. Therefore save the values of these SPRs before entering a "stop" state and restore their v

Re: linux-next: not-present page at swap_vma_readahead()

2020-07-19 Thread Huang, Ying
Qian Cai writes: > On Mon, Jul 20, 2020 at 03:32:59AM +, Huang, Ying wrote: >> Thanks! Can you try the dbg patch attached? That will print more debugging >> information when abnormal PTE pointer is detected. > > Here with both of your patches applied, > > [ 183.627876][ T3959] ra_info: 8,

Re: [RFC PATCH v3 00/18] Support for Tegra video capture from external sensor

2020-07-19 Thread Sowjanya Komatineni
On 7/17/20 10:48 AM, Sowjanya Komatineni wrote: On 7/17/20 10:38 AM, Sowjanya Komatineni wrote: On 7/17/20 10:23 AM, Sowjanya Komatineni wrote: On 7/17/20 10:08 AM, Hans Verkuil wrote: On 17/07/2020 18:34, Sowjanya Komatineni wrote: On 7/17/20 3:54 AM, Hans Verkuil wrote: Hi Sowjanya,

Re: [PATCH] platform_data: cros_ec_commands.h: drop a duplicated word

2020-07-19 Thread Tzung-Bi Shih
On Sun, Jul 19, 2020 at 8:30 AM Randy Dunlap wrote: > > Drop the repeated word "using" in a comment. > > Signed-off-by: Randy Dunlap > Cc: Tzung-Bi Shih > Cc: Mark Brown > --- I guess you didn't include the maintainers: Benson Leung (maintainer:CHROMEOS EC SUBDRIVERS) Enric Balletbo i Serra

Re: [PATCH 2/3] fsi: occ: Add support for P10

2020-07-19 Thread Joel Stanley
On Sun, 19 Jul 2020 at 22:13, Guenter Roeck wrote: > > On Fri, May 01, 2020 at 10:08:32AM -0500, Eddie James wrote: > > The P10 OCC has a different SRAM address for the command and response > > buffers. In addition, the SBE commands to access the SRAM have changed > > format. Add versioning to the

Re: [PATCH v16 00/22] per memcg lru_lock

2020-07-19 Thread Hugh Dickins
On Mon, 20 Jul 2020, Alex Shi wrote: > 在 2020/7/19 下午11:23, Hugh Dickins 写道: > > I noticed that 5.8-rc5, with lrulock v16 applied, took significantly > > longer to run loads than without it applied, when there should have been > > only slight differences in system time. Comparing /proc/vmstat, some

Re: [PATCH] ARM: dts: ZII: Disable HW Ethernet switch reset GPIO

2020-07-19 Thread Chris Healy
On Sun, Jul 19, 2020 at 8:15 PM Shawn Guo wrote: > > On Wed, Jul 15, 2020 at 02:22:27PM -0700, Chris Healy wrote: > > Disable Ethernet switch reset GPIO with ZII platforms that have it > > enabled to sync up with existing ZII platforms that already have > > it disabled. > > I do not follow it. Th

Re: [PATCH 09/10] arm64: tegra: Audio graph header for Tegra210

2020-07-19 Thread Kuninori Morimoto
Hi Sameer > >> +&tegra_admaif { > >> + admaif_port: port { > >> + admaif0: endpoint@0 { > >> + remote-endpoint = <&xbar_admaif0>; > >> + }; > >> + admaif1: endpoint@1 { > >> + remote-endpoint = <&xbar_admaif1>; > >>

[PATCH v2 3/4] mm/hugetlb: make hugetlb migration callback CMA aware

2020-07-19 Thread js1304
From: Joonsoo Kim new_non_cma_page() in gup.c requires to allocate the new page that is not on the CMA area. new_non_cma_page() implements it by using allocation scope APIs. However, there is a work-around for hugetlb. Normal hugetlb page allocation API for migration is alloc_huge_page_nodemask(

[PATCH v2 1/4] mm/page_alloc: fix non cma alloc context

2020-07-19 Thread js1304
From: Joonsoo Kim Currently, preventing cma area in page allocation is implemented by using current_gfp_context(). However, there are two problems of this implementation. First, this doesn't work for allocation fastpath. In the fastpath, original gfp_mask is used since current_gfp_context() is i

[PATCH v2 4/4] mm/gup: use a standard migration target allocation callback

2020-07-19 Thread js1304
From: Joonsoo Kim There is a well-defined migration target allocation callback. Use it. Acked-by: Vlastimil Babka Acked-by: Michal Hocko Signed-off-by: Joonsoo Kim --- mm/gup.c | 54 ++ 1 file changed, 6 insertions(+), 48 deletions(-) diff

[PATCH v2 2/4] mm/gup: restrict CMA region by using allocation scope API

2020-07-19 Thread js1304
From: Joonsoo Kim We have well defined scope API to exclude CMA region. Use it rather than manipulating gfp_mask manually. With this change, we can now restore __GFP_MOVABLE for gfp_mask like as usual migration target allocation. It would result in that the ZONE_MOVABLE is also searched by page a

Re: [PATCH for v5.9] RDS: Replace HTTP links with HTTPS ones

2020-07-19 Thread Leon Romanovsky
On Sun, Jul 19, 2020 at 05:58:45PM +0200, Alexander A. Klimov wrote: > 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: > If not .svg: > For each line: > If doesn'

Re: [PATCH 2/5] clk: x86: Change name from ST to FCH

2020-07-19 Thread Agrawal, Akshu
On 7/16/2020 6:12 AM, Stephen Boyd wrote: Quoting Akshu Agrawal (2020-07-12 17:59:50) diff --git a/drivers/clk/x86/clk-st.c b/drivers/clk/x86/clk-fch.c similarity index 73% rename from drivers/clk/x86/clk-st.c rename to drivers/clk/x86/clk-fch.c index 25d4b97aff9b..b252f0cf0628 100644 --- a/dr

Re: [PATCH 4/5] clk: x86: Support RV architecture

2020-07-19 Thread Agrawal, Akshu
On 7/16/2020 6:33 AM, Stephen Boyd wrote: Quoting Akshu Agrawal (2020-07-12 17:59:52) There is minor difference between previous family of SoC and the current one. Which is the there is only 48Mh fixed clk. There is no mux and no option to select another freq as there in previous. Signed-off-

Re: [PATCH v2 1/2] cpuidle: Trace IPI based and timer based wakeup latency from idle states

2020-07-19 Thread Gautham R Shenoy
On Fri, Jul 17, 2020 at 02:48:00PM +0530, Pratik Rajesh Sampat wrote: > Fire directed smp_call_function_single IPIs from a specified source > CPU to the specified target CPU to reduce the noise we have to wade > through in the trace log. > The module is based on the idea written by Srivatsa Bhat an

[PATCH 3/4] ACPI: APD: Add a fmw property is_raven

2020-07-19 Thread Akshu Agrawal
Since there is slight difference in AMD RV based soc in misc clk architecture. The fmw property will help in differentiating the SoCs. Signed-off-by: Akshu Agrawal --- drivers/acpi/acpi_apd.c | 4 include/linux/platform_data/clk-fch.h | 1 + 2 files changed, 5 insertions(+) d

[PATCH 2/4] clk: x86: Change name from ST to FCH

2020-07-19 Thread Akshu Agrawal
AMD SoC general pupose clk is present in new platforms with minor differences. We can reuse the same clk driver for other platforms. Hence, changing name from ST(SoC) to FCH(IP) Signed-off-by: Akshu Agrawal --- drivers/clk/x86/Makefile| 2 +- drivers/clk/x86/{clk-st.c => clk-fch

[PATCH 1/4] ACPI: APD: Change name from ST to FCH

2020-07-19 Thread Akshu Agrawal
AMD SoC general pupose clk is present in new platforms with same MMIO mappings. We can reuse the same clk handler support for other platforms. Hence, changing name from ST(SoC) to FCH(IP) Signed-off-by: Akshu Agrawal --- drivers/acpi/acpi_apd.c| 14 +++--- ...

[v2 4/4] clk: x86: Support RV architecture

2020-07-19 Thread Akshu Agrawal
There is minor difference between previous family of SoC and the current one. Which is the there is only 48Mh fixed clk. There is no mux and no option to select another freq as there in previous. Signed-off-by: Akshu Agrawal --- v2: Consolidated the loops in remove. drivers/clk/x86/clk-fch.c |

Re: [PATCH 03/10] ASoC: audio-graph: Support Codec with multiple endpoints

2020-07-19 Thread Kuninori Morimoto
Hi Sameer > >> diff --git a/sound/soc/generic/audio-graph-card.c > >> b/sound/soc/generic/audio-graph-card.c > >> index 1e20562..b1903f9 100644 > >> --- a/sound/soc/generic/audio-graph-card.c > >> +++ b/sound/soc/generic/audio-graph-card.c > >> @@ -201,8 +201,7 @@ static void graph_parse_mclk_f

Re: [PATCH for v5.9] dt-bindings: aspeed-lpc: Replace HTTP links with HTTPS ones

2020-07-19 Thread Joel Stanley
On Sun, 19 Jul 2020 at 17:34, Alexander A. Klimov wrote: > diff --git a/Documentation/devicetree/bindings/mfd/aspeed-lpc.txt > b/Documentation/devicetree/bindings/mfd/aspeed-lpc.txt > index 86446074e206..4f3cf91b3b7f 100644 > --- a/Documentation/devicetree/bindings/mfd/aspeed-lpc.txt > +++ b/Doc

Re: [PATCH vhost next 10/10] vdpa/mlx5: Add VDPA driver for supported mlx5 devices

2020-07-19 Thread Eli Cohen
On Mon, Jul 20, 2020 at 12:12:30PM +0800, Jason Wang wrote: > > On 2020/7/19 上午3:49, Eli Cohen wrote: > >On Fri, Jul 17, 2020 at 04:57:29PM +0800, Jason Wang wrote: > >>>Looks like checking intialized is enough. Will fix this. > >+ > >+static void mlx5_vdpa_set_vq_ready(struct vdpa_device

Re: [RFC PATCH bpf-next 1/2] bpf: BTF support for __ksym externs

2020-07-19 Thread Andrii Nakryiko
On Wed, Jul 15, 2020 at 2:45 PM Hao Luo wrote: > > Previous commits: > > commit 1c0c7074fefd ("libbpf: Add support for extracting kernel symbol > addresses") > commit 2e33efe32e01 ("libbpf: Generalize libbpf externs support") > > have introduced a new type of extern variable ksyms to access ker

[PATCH] mm/vmstat: don't do count if no needs

2020-07-19 Thread Alex Shi
For couple of vmstat account funcs, the caller usually doesn't check the delta value, if delta == 0, irq or atomic operator is a waste. That's better to be skipped. Signed-off-by: Alex Shi Cc: Andrew Morton Cc: linux...@kvack.org Cc: linux-kernel@vger.kernel.org --- mm/vmstat.c | 24

linux-next: manual merge of the staging tree with Linus' tree

2020-07-19 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the staging tree got a conflict in: drivers/iio/magnetometer/ak8974.c between commit: 0187294d227d ("iio: magnetometer: ak8974: Fix runtime PM imbalance on error") from Linus' tree and commit: d3be83244c7d ("iio: remove explicit IIO device parent assi

[PATCH] usb: appledisplay: remove needless check before usb_free_coherent()

2020-07-19 Thread Xu Wang
usb_free_coherent() is safe with NULL addr and this check is not required. Signed-off-by: Xu Wang --- drivers/usb/misc/appledisplay.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/misc/appledisplay.c b/drivers/usb/misc/appledisplay.c index ba1eaabc7796..eab3ea

Re: [RFC PATCH bpf-next 2/2] selftests/bpf: Test __ksym externs with BTF

2020-07-19 Thread Andrii Nakryiko
On Wed, Jul 15, 2020 at 2:46 PM Hao Luo wrote: > > Extend ksyms.c selftest to make sure BTF enables direct loads of ksyms. > > Note that test is done against the kernel btf extended with kernel VARs. > > Signed-off-by: Hao Luo > --- > tools/testing/selftests/bpf/prog_tests/ksyms.c | 2 ++ > too

Re: [PATCH] net: genetlink: Move initialization to core_initcall

2020-07-19 Thread Amit Kucheria
On Wed, Jul 15, 2020 at 1:11 PM Daniel Lezcano wrote: > > The generic netlink is initialized far after the netlink protocol > itself at subsys_initcall. The devlink is initialized at the same > level, but after, as shown by a disassembly of the vmlinux: > > [ ... ] > 374 8000115f22c0 <__initca

Re: [PATCH v2 13/16] scripts/kallsyms: move ignored symbol types to is_ignored_symbol()

2020-07-19 Thread Masahiro Yamada
On Mon, Jul 20, 2020 at 10:46 AM Finn Thain wrote: > > On Sun, 24 Nov 2019, Masahiro Yamada wrote: > > > Collect the ignored patterns to is_ignored_symbol(). > > > > Signed-off-by: Masahiro Yamada > > This commit (887df76de67f5) caused a regression in my powerpc builds as it > causes symbol names

<    1   2   3   4   5   6   >