RE: [PATCH v2 02/15] scsi: aacraid: use generic power management

2020-07-22 Thread Balsundar.P
Acked-by: Balsundar P < balsunda...@microchip.com> -Original Message- From: Vaibhav Gupta Sent: Monday, July 20, 2020 19:04 To: Bjorn Helgaas ; Bjorn Helgaas ; Bjorn Helgaas ; Vaibhav Gupta ; Adam Radford ; James E.J. Bottomley ; Martin K. Petersen ; Adaptec OEM Raid Solutions ; Hann

Re: [PATCH v4 07/12] ppc64/kexec_file: add support to relocate purgatory

2020-07-22 Thread Michael Ellerman
Hari Bathini writes: > On 22/07/20 9:55 am, Michael Ellerman wrote: >> Hari Bathini writes: >>> Right now purgatory implementation is only minimal. But if purgatory >>> code is to be enhanced to copy memory to the backup region and verify >>> sha256 digest, relocations may have to be applied to t

Re: [PATCH][next] wil6210: Avoid the use of one-element array

2020-07-22 Thread Kalle Valo
"Gustavo A. R. Silva" writes: > Friendly ping: who can take this? :) I'll take this if it's ok. I have been just busy due to vacation period. -- https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

Re: [PATCH v4 2/2] Add PWM fan controller driver for LGM SoC

2020-07-22 Thread Uwe Kleine-König
Hello, On Thu, Jul 23, 2020 at 12:16:18PM +0800, Tanwar, Rahul wrote: > On 14/7/2020 3:10 am, Uwe Kleine-König wrote: > > Hello, > > > > On Tue, Jun 30, 2020 at 03:55:32PM +0800, Rahul Tanwar wrote: > >> Intel Lightning Mountain(LGM) SoC contains a PWM fan controller. > >> This PWM controller does

Re: [PATCH v2 3/6] dt-bindings: arm: rockchip: Add ROCKPi 4B binding

2020-07-22 Thread Jagan Teki
Hi Heiko, On Thu, Jul 23, 2020 at 4:43 AM Heiko Stuebner wrote: > > Hi Jagan, > > Am Mittwoch, 22. Juli 2020, 21:09:46 CEST schrieb Jagan Teki: > > Add dt-bindings for ROCKPi 4B which is similar to 4A with > > additional AP6256 Wifi/BT, PoE. > > > > Signed-off-by: Jagan Teki > > --- > > Changes

KMSAN: uninit-value in vcs_read (2)

2020-07-22 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:14525656 compiler.h: reinstate missing KMSAN_INIT git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=176de9d710 kernel config: https://syzkaller.appspot.com/x/.config

Re: [PATCH][next] tty: Avoid the use of one-element arrays

2020-07-22 Thread Jiri Slaby
On 22. 07. 20, 20:24, Gustavo A. R. Silva wrote: > > > On 7/17/20 01:10, Jiri Slaby wrote: >> On 16. 07. 20, 20:08, Gustavo A. R. Silva wrote: >>> One-element arrays are being deprecated[1]. Replace the one-element arrays >>> with simple value types 'char reserved_char' and 'compat_int_t reserved

Re: [RFC PATCH] makefile: add debug option to enable function aligned on 32 bytes

2020-07-22 Thread Feng Tang
On Wed, Jul 22, 2020 at 08:39:19PM -0700, Andrew Morton wrote: > On Thu, 23 Jul 2020 11:30:01 +0800 Feng Tang wrote: > > > Recently 0day reported many strange performance changes (regression > > or improvement), in which there was no obvious relation between > > the culprit commit and the benchma

Re: [PATCH] efi: add missed destroy_workqueue when efisubsys_init fails

2020-07-22 Thread Markus Elfring
> destroy_workqueue() should be called to destroy efi_rts_wq > when efisubsys_init() init resources fails. * Can such exception handling depend on the data structure member “efi.runtime_supported_mask”? * An imperative wording would be preferred for the change description (besides another bit

INFO: task hung in ovs_exit_net

2020-07-22 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:a6c0d093 net: explicitly include in net/c.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=179ee64090 kernel config: https://syzkaller.appspot.com/x/.config?x=2b7b67c0c1819c87 dashboard link: htt

KASAN: use-after-free Read in ceph_mdsc_destroy

2020-07-22 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:f932d58a Merge tag 'scsi-fixes' of git://git.kernel.org/pu.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=152c6a8090 kernel config: https://syzkaller.appspot.com/x/.config?x=a160d1053fc89af5 das

[PATCH v2 1/2] dt-bindings: RNG: Add Ingenic RNG bindings.

2020-07-22 Thread Zhou Yanjie
Add the RNG bindings for the JZ4780 SoC and the X1000 SoC from Ingenic. Signed-off-by: 周琰杰 (Zhou Yanjie) --- Notes: v1->v2: No change. .../devicetree/bindings/rng/ingenic,rng.yaml | 36 ++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devi

[PATCH v2 0/2] Add support for the RNG in Ingenic JZ4780 and X1000.

2020-07-22 Thread Zhou Yanjie
v1->v2: Use "help" instead "---help---" in Kconfig. 周琰杰 (Zhou Yanjie) (2): dt-bindings: RNG: Add Ingenic RNG bindings. crypto: Ingenic: Add hardware RNG for Ingenic JZ4780 and X1000. .../devicetree/bindings/rng/ingenic,rng.yaml | 36 + drivers/char/hw_random/Kconfig

[PATCH v2 2/2] crypto: Ingenic: Add hardware RNG for Ingenic JZ4780 and X1000.

2020-07-22 Thread Zhou Yanjie
Add JZ4780 SoC and X1000 SoC random number generator driver, based on PrasannaKumar Muralidharan's JZ4780 RNG driver. Tested-by: 周正 (Zhou Zheng) Tested-by: Mathieu Malaterre Suggested-by: Jeffrey Walton Signed-off-by: PrasannaKumar Muralidharan Signed-off-by: 周琰杰 (Zhou Yanjie) --- Notes:

Re: [RFC] cpuidle : Add support for pseudo-cpuidle driver

2020-07-22 Thread Randy Dunlap
On 7/22/20 11:13 PM, Abhishek Goel wrote: > diff --git a/drivers/cpuidle/Kconfig b/drivers/cpuidle/Kconfig > index c0aeedd66f02..1d73153a0e35 100644 > --- a/drivers/cpuidle/Kconfig > +++ b/drivers/cpuidle/Kconfig > @@ -71,6 +71,15 @@ config HALTPOLL_CPUIDLE >before halting in the guest (mor

Re: [PATCH] mtd: spi-nor: intel-spi: Simulate WRDI command

2020-07-22 Thread Mika Westerberg
On Wed, Jul 22, 2020 at 03:18:50PM +, tudor.amba...@microchip.com wrote: > On 7/22/20 5:36 PM, Mika Westerberg wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > > content is safe > > > > Hi, > > > > On Wed, Jul 22, 2020 at 02:28:30PM +, tudor.amba...

Re: [PATCH v6 3/5] KVM: PPC: clean up redundant kvm_run parameters in assembly

2020-07-22 Thread Paul Mackerras
On Tue, Jun 23, 2020 at 09:14:16PM +0800, Tianjia Zhang wrote: > In the current kvm version, 'kvm_run' has been included in the 'kvm_vcpu' > structure. For historical reasons, many kvm-related function parameters > retain the 'kvm_run' and 'kvm_vcpu' parameters at the same time. This > patch does a

Re: [PATCH] usb: typec: tcpm: Move to high priority workqueue for processing events

2020-07-22 Thread Badhri Jagan Sridharan
Hi Guenter, Just sent out the patch "usb: typec: tcpm: Migrate workqueue to RT priority for processing events" which uses kthread_create_worker and hrtimer.nAppreciate your guidance !! The commits 38a1222ae4f3 and 1ff688209e2e were spot on as they were trying solve the same problem in a different

Re: [PATCH v4 bpf-next 2/4] bpf: fail PERF_EVENT_IOC_SET_BPF when bpf_get_[stack|stackid] cannot work

2020-07-22 Thread Song Liu
> On Jul 22, 2020, at 10:55 PM, Alexei Starovoitov > wrote: > > On Wed, Jul 22, 2020 at 11:42:08AM -0700, Song Liu wrote: >> diff --git a/kernel/events/core.c b/kernel/events/core.c >> index 856d98c36f562..f77d009fcce95 100644 >> --- a/kernel/events/core.c >> +++ b/kernel/events/core.c >> @@

i wait to hear from you

2020-07-22 Thread Mr.Michael Abraham
Hello, Please what is going on, I sent you an urgent letter days ago without any response from you yet, I need to know and get back to me, Best Regard, Mr.Michael Abraham.

[PATCH] habanalabs: Fix memory leak in error flow of context init

2020-07-22 Thread Tomer Tayar
Add a missing free of the cs_pending array in the error flow of context init. Fixes: 4b49c5b118b9 ("habanalabs: Use pending cs amount per asic") Signed-off-by: Tomer Tayar --- drivers/misc/habanalabs/common/context.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) dif

[RFC] cpuidle : Add support for pseudo-cpuidle driver

2020-07-22 Thread Abhishek Goel
This option adds support for a testing cpuidle driver, which allows user to define custom idle states with their respective latencies and residencies. This is useful for testing the behaviour of governors on customized set of idle states. This can be used as of now by hard-coding the customized se

Re: [PATCH 2/2] crypto: Ingenic: Add hardware RNG for Ingenic JZ4780 and X1000.

2020-07-22 Thread Zhou Yanjie
Hello Randy, 在 2020/7/23 上午2:27, Randy Dunlap 写道: On 7/22/20 9:40 AM, 周琰杰 (Zhou Yanjie) wrote: diff --git a/drivers/char/hw_random/Kconfig b/drivers/char/hw_random/Kconfig index 0ad17efc96df..fcb06027cd88 100644 --- a/drivers/char/hw_random/Kconfig +++ b/drivers/char/hw_random/Kconfig @@ -257,6

Re: [PATCH v2] i2c: i2c-qcom-geni: Fix DMA transfer race

2020-07-22 Thread Mukesh, Savaliya
On 7/23/2020 6:20 AM, Stephen Boyd wrote: Quoting Douglas Anderson (2020-07-22 15:00:21) When I have KASAN enabled on my kernel and I start stressing the touchscreen my system tends to hang. The touchscreen is one of the only things that does a lot of big i2c transfers and ends up hitting the

Re: [PATCH v2 4/4] mm/hugetl.c: warn out if expected count of huge pages adjustment is not achieved

2020-07-22 Thread Anshuman Khandual
On 07/23/2020 08:52 AM, Baoquan He wrote: > A customer complained that no message is logged when the number of > persistent huge pages is not changed to the exact value written to > the sysfs or proc nr_hugepages file. > > In the current code, a best effort is made to satisfy requests made

[PATCH] usb: typec: tcpm: Migrate workqueue to RT priority for processing events

2020-07-22 Thread Badhri Jagan Sridharan
"tReceiverResponse 15 ms Section 6.6.2 The receiver of a Message requiring a response Shall respond within tReceiverResponse in order to ensure that the sender’s SenderResponseTimer does not expire." When the cpu complex is busy running other lower priority work items, TCPM's work queue sometimes

Re: [PATCH v2 2/4] mm/hugetlb.c: Remove the unnecessary non_swap_entry()

2020-07-22 Thread Baoquan He
On 07/23/20 at 10:36am, Anshuman Khandual wrote: > > > On 07/23/2020 08:52 AM, Baoquan He wrote: > > The checking is_migration_entry() and is_hwpoison_entry() are stricter > > than non_swap_entry(), means they have covered the conditional check > > which non_swap_entry() is doing. > > They are n

[PATCH v5 0/4] Add USB PHY support for new Ingenic SoCs.

2020-07-22 Thread Zhou Yanjie
1.separate the adjustments to the code style into a separate patch. 2.Modify the help message, make it more future-proof. 3.Drop the unnecessary comment about hardware reset. 4.Create 'soc_info' structures instead having ID_* as platform data. 周琰杰 (Zhou Yanjie) (4): dt-bindings: USB: Add bindi

[PATCH v5 3/4] USB: PHY: JZ4770: Add support for new Ingenic SoCs.

2020-07-22 Thread Zhou Yanjie
Add support for probing the phy-jz4770 driver on the JZ4780 SoC, the X1000 SoC and the X1830 SoC from Ingenic. Tested-by: 周正 (Zhou Zheng) Co-developed-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 周琰杰 (Zhou Yanjie) --- Notes: v1->v2: Add bindings for the JZ4780

[PATCH 03/26] bpfilter: reject kernel addresses

2020-07-22 Thread Christoph Hellwig
The bpfilter user mode helper processes the optval address using process_vm_readv. Don't send it kernel addresses fed under set_fs(KERNEL_DS) as that won't work. Signed-off-by: Christoph Hellwig --- net/bpfilter/bpfilter_kern.c | 4 1 file changed, 4 insertions(+) diff --git a/net/bpfilte

[PATCH 04/26] net: add a new sockptr_t type

2020-07-22 Thread Christoph Hellwig
Add a uptr_t type that can hold a pointer to either a user or kernel memory region, and simply helpers to copy to and from it. Signed-off-by: Christoph Hellwig --- include/linux/sockptr.h | 104 1 file changed, 104 insertions(+) create mode 100644 includ

[PATCH v5 2/4] USB: PHY: JZ4770: Unify code style and simplify code.

2020-07-22 Thread Zhou Yanjie
1.Modify the macro definition to unify "#define USBPCR_ n" into the "#define USBPCR_ (n << USBPCR__LSB)" style, so as to unify the code style in the "jz4770_phy_init()" and simplify the code. 2.Remove unused macro definitions to simplify the code. Tested-by: 周正 (Zhou Zheng) Sugg

[PATCH 05/26] net: switch copy_bpf_fprog_from_user to sockptr_t

2020-07-22 Thread Christoph Hellwig
Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup. Signed-off-by: Christoph Hellwig --- include/linux/filter.h | 3 ++- net/core/filter.c | 6 +++--- net/core/sock.c| 6 -- net/packet/af_packet.c | 4 ++-- 4 files changed, 11 insertions(+

[PATCH v5 4/4] USB: PHY: JZ4770: Reformat the code to align it.

2020-07-22 Thread Zhou Yanjie
Reformat the code (add one level of indentation before the values), to align the code in the macro definition section. Tested-by: 周正 (Zhou Zheng) Co-developed-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 周琰杰 (Zhou Yanjie) --- Notes: v1->v2: Add support for the

[PATCH v5 1/4] dt-bindings: USB: Add bindings for new Ingenic SoCs.

2020-07-22 Thread Zhou Yanjie
Add the USB PHY bindings for the JZ4780 SoC, the X1000 SoC and the X1830 SoC from Ingenic. Tested-by: 周正 (Zhou Zheng) Signed-off-by: 周琰杰 (Zhou Yanjie) Acked-by: Rob Herring --- Notes: v1->v2: Add bindings for the JZ4780 SoC. v2->v3: No change. v3->v4: No chang

[PATCH 07/26] net: switch sock_set_timeout to sockptr_t

2020-07-22 Thread Christoph Hellwig
Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup. Signed-off-by: Christoph Hellwig --- net/core/sock.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/net/core/sock.c b/net/core/sock.c index 5b55bc9397f282..8b9eddaff86

[PATCH 09/26] net/xfrm: switch xfrm_user_policy to sockptr_t

2020-07-22 Thread Christoph Hellwig
Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup. Signed-off-by: Christoph Hellwig --- include/net/xfrm.h | 8 +--- net/ipv4/ip_sockglue.c | 3 ++- net/ipv6/ipv6_sockglue.c | 3 ++- net/xfrm/xfrm_state.c| 6 +++--- 4 files changed, 12 ins

[PATCH 01/26] bpfilter: fix up a sparse annotation

2020-07-22 Thread Christoph Hellwig
The __user doesn't make sense when casting to an integer type, just switch to a uintptr_t cast which also removes the need for the __force. Signed-off-by: Christoph Hellwig --- net/bpfilter/bpfilter_kern.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/bpfilter/bpfilter_

[PATCH 12/26] netfilter: switch nf_setsockopt to sockptr_t

2020-07-22 Thread Christoph Hellwig
Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup. Signed-off-by: Christoph Hellwig --- include/linux/netfilter.h | 6 -- net/bridge/netfilter/ebtables.c | 37 +++-- net/decnet/af_decnet.c | 3 ++- net/ipv4

[PATCH 08/26] net: switch sock_set_timeout to sockptr_t

2020-07-22 Thread Christoph Hellwig
Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup. Signed-off-by: Christoph Hellwig --- include/net/sock.h | 3 ++- net/core/sock.c | 26 -- net/mptcp/protocol.c | 6 -- net/socket.c | 3 ++- 4 files changed,

[PATCH 06/26] net: switch sock_setbindtodevice to sockptr_t

2020-07-22 Thread Christoph Hellwig
Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup. Signed-off-by: Christoph Hellwig --- net/core/sock.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/net/core/sock.c b/net/core/sock.c index 71fc7e4ddd0648..5b55bc9397f282 10064

get rid of the address_space override in setsockopt v2

2020-07-22 Thread Christoph Hellwig
Hi Dave, setsockopt is the last place in architecture-independ code that still uses set_fs to force the uaccess routines to operate on kernel pointers. This series adds a new sockptr_t type that can contained either a kernel or user pointer, and which has accessors that do the right thing, and th

[PATCH 02/26] net/bpfilter: split __bpfilter_process_sockopt

2020-07-22 Thread Christoph Hellwig
Split __bpfilter_process_sockopt into a low-level send request routine and the actual setsockopt hook to split the init time ping from the actual setsockopt processing. Signed-off-by: Christoph Hellwig --- net/bpfilter/bpfilter_kern.c | 51 +++- 1 file changed, 27

[PATCH 13/26] bpfilter: switch bpfilter_ip_set_sockopt to sockptr_t

2020-07-22 Thread Christoph Hellwig
This is mostly to prepare for cleaning up the callers, as bpfilter by design can't handle kernel pointers. Signed-off-by: Christoph Hellwig --- include/linux/bpfilter.h | 6 +++--- net/bpfilter/bpfilter_kern.c | 6 +++--- net/ipv4/bpfilter/sockopt.c | 8 net/ipv4/ip_sockglue.c

[PATCH 10/26] netfilter: remove the unused user argument to do_update_counters

2020-07-22 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- net/bridge/netfilter/ebtables.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c index fe13108af1f542..12f8929667bf43 100644 --- a/net/bridge/netfilter/ebtables.c +++

[PATCH 11/26] netfilter: switch xt_copy_counters to sockptr_t

2020-07-22 Thread Christoph Hellwig
Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup. Signed-off-by: Christoph Hellwig --- include/linux/netfilter/x_tables.h | 4 ++-- net/ipv4/netfilter/arp_tables.c| 7 +++ net/ipv4/netfilter/ip_tables.c | 7 +++ net/ipv6/netfilter/ip6_

[PATCH 20/26] net/ipv6: factor out a ipv6_set_opt_hdr helper

2020-07-22 Thread Christoph Hellwig
Factour out a helper to set the IPv6 option headers from do_ipv6_setsockopt. Signed-off-by: Christoph Hellwig --- net/ipv6/ipv6_sockglue.c | 150 +++ 1 file changed, 75 insertions(+), 75 deletions(-) diff --git a/net/ipv6/ipv6_sockglue.c b/net/ipv6/ipv6_sockg

Re: [PATCH v3 2/2] soc: mediatek: add mtk-devapc driver

2020-07-22 Thread Neal Liu
Hi Chun-Kuang, On Wed, 2020-07-22 at 22:25 +0800, Chun-Kuang Hu wrote: > Hi, Neal: > > Neal Liu 於 2020年7月22日 週三 上午11:49寫道: > > > > Hi Chun-Kuang, > > > > On Wed, 2020-07-22 at 07:21 +0800, Chun-Kuang Hu wrote: > > > Hi, Neal: > > > > > > Neal Liu 於 2020年7月21日 週二 下午12:00寫道: > > > > > > > > > > >

[PATCH 15/26] net/ipv4: merge ip_options_get and ip_options_get_from_user

2020-07-22 Thread Christoph Hellwig
Use the sockptr_t type to merge the versions. Signed-off-by: Christoph Hellwig --- include/net/ip.h | 5 ++--- net/ipv4/ip_options.c | 43 +++--- net/ipv4/ip_sockglue.c | 7 --- 3 files changed, 17 insertions(+), 38 deletions(-) diff --git a/incl

[PATCH 24/26] net/tcp: switch do_tcp_setsockopt to sockptr_t

2020-07-22 Thread Christoph Hellwig
Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup. Signed-off-by: Christoph Hellwig --- net/ipv4/tcp.c | 34 -- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 49bf15c27

[PATCH 22/26] net/udp: switch udp_lib_setsockopt to sockptr_t

2020-07-22 Thread Christoph Hellwig
Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup. Signed-off-by: Christoph Hellwig --- include/net/udp.h | 2 +- net/ipv4/udp.c| 7 --- net/ipv6/udp.c| 3 ++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/include/net/udp.h b/

[PATCH 21/26] net/ipv6: switch do_ipv6_setsockopt to sockptr_t

2020-07-22 Thread Christoph Hellwig
Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup. Signed-off-by: Christoph Hellwig --- net/ipv6/ipv6_sockglue.c | 66 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/net/ipv6/ipv6_sockglue.c b/net/

Re: [RFC 2/7] ath10k: Add support to process rx packet in thread

2020-07-22 Thread Rajkumar Manoharan
On 2020-07-22 06:00, Felix Fietkau wrote: On 2020-07-22 14:55, Johannes Berg wrote: On Wed, 2020-07-22 at 14:27 +0200, Felix Fietkau wrote: I'm considering testing a different approach (with mt76 initially): - Add a mac80211 rx function that puts processed skbs into a list instead of handing t

[PATCH 23/26] net/tcp: switch ->md5_parse to sockptr_t

2020-07-22 Thread Christoph Hellwig
Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup. Signed-off-by: Christoph Hellwig --- include/net/tcp.h | 2 +- net/ipv4/tcp.c | 3 ++- net/ipv4/tcp_ipv4.c | 4 ++-- net/ipv6/tcp_ipv6.c | 4 ++-- 4 files changed, 7 insertions(+), 6 deletions(-)

[PATCH 26/26] net: optimize the sockptr_t for unified kernel/user address spaces

2020-07-22 Thread Christoph Hellwig
For architectures like x86 and arm64 we don't need the separate bit to indicate that a pointer is a kernel pointer as the address spaces are unified. That way the sockptr_t can be reduced to a union of two pointers, which leads to nicer calling conventions. The only caveat is that we need to chec

[PATCH 16/26] net/ipv4: switch do_ip_setsockopt to sockptr_t

2020-07-22 Thread Christoph Hellwig
Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup. Signed-off-by: Christoph Hellwig --- net/ipv4/ip_sockglue.c | 68 -- 1 file changed, 33 insertions(+), 35 deletions(-) diff --git a/net/ipv4/ip_sockglue.c b/net/ip

[PATCH 25/26] net: pass a sockptr_t into ->setsockopt

2020-07-22 Thread Christoph Hellwig
Rework the remaining setsockopt code to pass a sockptr_t instead of a plain user pointer. This removes the last remaining set_fs(KERNEL_DS) outside of architecture specific code. Signed-off-by: Christoph Hellwig Acked-by: Stefan Schmidt [ieee802154] --- crypto/af_alg.c

[PATCH 19/26] net/ipv6: switch ipv6_flowlabel_opt to sockptr_t

2020-07-22 Thread Christoph Hellwig
Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup. Note that the get case is pretty weird in that it actually copies data back to userspace from setsockopt. Signed-off-by: Christoph Hellwig --- include/net/ipv6.h | 2 +- net/ipv6/ip6_flowlabel.c |

[PATCH 18/26] net/ipv6: split up ipv6_flowlabel_opt

2020-07-22 Thread Christoph Hellwig
Split ipv6_flowlabel_opt into a subfunction for each action and a small wrapper. Signed-off-by: Christoph Hellwig --- net/ipv6/ip6_flowlabel.c | 311 +-- 1 file changed, 167 insertions(+), 144 deletions(-) diff --git a/net/ipv6/ip6_flowlabel.c b/net/ipv6/ip6_

[PATCH 14/26] net/ipv4: switch ip_mroute_setsockopt to sockptr_t

2020-07-22 Thread Christoph Hellwig
Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup. Signed-off-by: Christoph Hellwig --- include/linux/mroute.h | 5 +++-- net/ipv4/ip_sockglue.c | 3 ++- net/ipv4/ipmr.c| 14 +++--- 3 files changed, 12 insertions(+), 10 deletions(-) dif

[PATCH 17/26] net/ipv6: switch ip6_mroute_setsockopt to sockptr_t

2020-07-22 Thread Christoph Hellwig
Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup. Signed-off-by: Christoph Hellwig --- include/linux/mroute6.h | 8 net/ipv6/ip6mr.c | 17 + net/ipv6/ipv6_sockglue.c | 3 ++- 3 files changed, 15 insertions(+), 13 delet

Re: [PATCH 2/4] i2c: mediatek: Support DMA mask range over 33-bits

2020-07-22 Thread Qii Wang
On Thu, 2020-07-23 at 09:24 +0800, Yingjoe Chen wrote: > On Wed, 2020-07-22 at 20:31 +0800, Qii Wang wrote: > > Replace 'support_33bits with 'dma_max_support' for DMA mask > > operation, and replace 'mtk_i2c_set_4g_mode' with 'upper_32_bits'. > > This doesn't explain why we need this patch. How ab

Re: [PATCH 1/4] i2c: mediatek: Add apdma sync in i2c driver

2020-07-22 Thread Qii Wang
On Thu, 2020-07-23 at 09:29 +0800, Yingjoe Chen wrote: > On Wed, 2020-07-22 at 20:31 +0800, Qii Wang wrote: > > With the apdma remove hand-shake signal, it need to keep i2c and > > apdma in sync manually. > > > > Looks good to me, > > Reviewed-by: Yingjoe Chen > > > Just a reminder, we have a

Re: [PATCH v2 3/4] doc/vm: fix typo in the hugetlb admin documentation

2020-07-22 Thread Baoquan He
On 07/23/20 at 10:47am, Anshuman Khandual wrote: > > > On 07/23/2020 08:52 AM, Baoquan He wrote: > > Change 'pecify' to 'Specify'. > > > > Signed-off-by: Baoquan He > > Reviewed-by: Mike Kravetz > > Reviewed-by: David Hildenbrand > > --- > > Documentation/admin-guide/mm/hugetlbpage.rst | 2 +

Re: [PATCH v4 bpf-next 2/4] bpf: fail PERF_EVENT_IOC_SET_BPF when bpf_get_[stack|stackid] cannot work

2020-07-22 Thread Alexei Starovoitov
On Wed, Jul 22, 2020 at 11:42:08AM -0700, Song Liu wrote: > diff --git a/kernel/events/core.c b/kernel/events/core.c > index 856d98c36f562..f77d009fcce95 100644 > --- a/kernel/events/core.c > +++ b/kernel/events/core.c > @@ -9544,6 +9544,24 @@ static int perf_event_set_bpf_handler(struct > perf_ev

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

2020-07-22 Thread Stephen Rothwell
Hi all, On Tue, 21 Jul 2020 16:30:45 +1000 Stephen Rothwell wrote: > > After merging the scsi-mkp tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > ERROR: modpost: "exynos_ufs_dump_info" [drivers/scsi/ufs/ufs-exynos.ko] > undefined! > ERROR: modpost: "exynos_ufs_init

Re: [PATCH 2/4] i2c: mediatek: Support DMA mask range over 33-bits

2020-07-22 Thread Qii Wang
On Wed, 2020-07-22 at 17:38 +0200, Matthias Brugger wrote: > > On 22/07/2020 14:31, Qii Wang wrote: > > Replace 'support_33bits with 'dma_max_support' for DMA mask > > operation, and replace 'mtk_i2c_set_4g_mode' with 'upper_32_bits'. > > Please explain more in detail what you are doing and how t

[PATCH] ARM: dts: imx7d-sdb: Add notes for audio sound card

2020-07-22 Thread Shengjiu Wang
Configure the SAI device node, configure audio clock and pinctrl. Enable the audio sound card, which use the SAI1 and wm8960, and enable headphone detection. Signed-off-by: Shengjiu Wang --- arch/arm/boot/dts/imx7d-sdb.dts | 81 + 1 file changed, 81 insertions(+)

Re: [PATCH 0/4] ASoC: fsl_asrc: allow selecting arbitrary clocks

2020-07-22 Thread Nicolin Chen
On Fri, Jul 17, 2020 at 01:16:42PM +0200, Arnaud Ferraris wrote: > Hi Nic, > > Le 02/07/2020 à 20:42, Nicolin Chen a écrit : > > Hi Arnaud, > > > > On Thu, Jul 02, 2020 at 04:22:31PM +0200, Arnaud Ferraris wrote: > >> The current ASRC driver hardcodes the input and output clocks used for > >> sam

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

2020-07-22 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Song Bao Hua (Barry Song) > Sent: Friday, July 17, 2020 1:51 AM > To: a...@linux-foundation.org; herb...@gondor.apana.org.au; > da...@davemloft.net > Cc: linux-cry...@vger.kernel.org; linux...@kvack.org; > linux-kernel@vger.kernel.org; Linuxarm ; Song Bao > H

RE: [PATCH devicetree 3/4] powerpc: dts: t1040rdb: put SGMII PHY under &mdio0 label

2020-07-22 Thread Madalin Bucur (OSS)
> -Original Message- > From: Vladimir Oltean > Sent: Wednesday, July 22, 2020 8:24 PM > To: robh...@kernel.org; shawn...@kernel.org; m...@ellerman.id.au; > devicet...@vger.kernel.org > Cc: b...@kernel.crashing.org; pau...@samba.org; linuxppc- > d...@lists.ozlabs.org; linux-kernel@vger.kern

Re: [RFC PATCH 11/16] sched: migration changes for core scheduling(Internet mail)

2020-07-22 Thread Li, Aubrey
On 2020/7/23 12:23, benbjiang(蒋彪) wrote: > Hi, >> On Jul 23, 2020, at 11:35 AM, Li, Aubrey wrote: >> >> On 2020/7/23 10:42, benbjiang(蒋彪) wrote: >>> Hi, >>> On Jul 23, 2020, at 9:57 AM, Li, Aubrey wrote: On 2020/7/22 22:32, benbjiang(蒋彪) wrote: > Hi, > >> On Jul 22, 202

Re: [PATCH v5 1/4] riscv: Move kernel mapping to vmalloc zone

2020-07-22 Thread Alex Ghiti
Le 7/21/20 à 7:36 PM, Palmer Dabbelt a écrit : On Tue, 21 Jul 2020 16:11:02 PDT (-0700), b...@kernel.crashing.org wrote: On Tue, 2020-07-21 at 14:36 -0400, Alex Ghiti wrote: > > I guess I don't understand why this is necessary at all. > > Specifically: why > > can't we just relocate the kern

Re: [PATCH 1/2] ASoC: fsl-asoc-card: Support configuring dai fmt from DT

2020-07-22 Thread Nicolin Chen
On Tue, Jul 21, 2020 at 11:41:49AM +0800, Shengjiu Wang wrote: > Support same propeties as simple card for configuring fmt > from DT. > In order to make this change compatible with old DT, these > properties are optional. > > Signed-off-by: Shengjiu Wang For both changes: Acked-by: Nicolin Chen

Re: [PATCH] mailbox: pcc: Put the PCCT table for error path

2020-07-22 Thread Markus Elfring
… > In acpi_pcc_probe(), the PCCT table entries will be used as private > data for communication chan at runtime, but the table should be put > for error path. * An imperative wording can be preferred for the change description, can't it? * Will the tag “Fixes” become helpful for the commit mes

Re: [PATCH v5 1/4] riscv: Move kernel mapping to vmalloc zone

2020-07-22 Thread Alex Ghiti
Hi Palmer, Le 7/21/20 à 3:05 PM, Palmer Dabbelt a écrit : On Tue, 21 Jul 2020 11:36:10 PDT (-0700), a...@ghiti.fr wrote: Let's try to make progress here: I add linux-mm in CC to get feedback on this patch as it blocks sv48 support too. Sorry for being slow here.  I haven't replied because I h

Re: [PATCH] ASoC: fsl_esai: add IRQF_SHARED for devm_request_irq

2020-07-22 Thread Nicolin Chen
On Thu, Jul 23, 2020 at 12:00:08PM +0800, Shengjiu Wang wrote: > ESAI interfaces may share same interrupt line with EDMA on > some platforms (e.g. i.MX8QXP, i.MX8QM). > Add IRQF_SHARED flag to allow sharing the irq among several > devices > > Signed-off-by: Shengjiu Wang > Signed-off-by: Viorel S

Re: 答复: [PATCH] USB:Fix kernel NULL pointer when unbind UHCI form vfio-pci

2020-07-22 Thread Greg KH
On Thu, Jul 23, 2020 at 02:59:55AM +, Weitao Wang(BJ-RD) wrote: > CONFIDENTIAL NOTE: > This email contains confidential or legally privileged information and is for > the sole use of its intended recipient. Any unauthorized review, use, copying > or forwarding of this email or the content of

Re: [PATCH v5 1/4] riscv: Move kernel mapping to vmalloc zone

2020-07-22 Thread Alex Ghiti
Hi Benjamin, Le 7/21/20 à 7:11 PM, Benjamin Herrenschmidt a écrit : On Tue, 2020-07-21 at 14:36 -0400, Alex Ghiti wrote: I guess I don't understand why this is necessary at all. Specifically: why can't we just relocate the kernel within the linear map? That would let the bootloader put the ker

Re: [PATCH] drm/amdkfd: Put ACPI table after using it

2020-07-22 Thread Markus Elfring
… > and in kfd_create_vcrat_image_cpu(), the acpi_table is only used to > get the OEM info, so those table mappings need to be release after … 1. Please avoid a typo for this change description. 2. An imperative wording can be preferred here, can't it? 3. Will the tag “Fixes” become helpful for

Re: [PATCH bpf-next v5 5/7] bpf: Implement bpf_local_storage for inodes

2020-07-22 Thread Alexei Starovoitov
On Wed, Jul 22, 2020 at 5:22 PM kernel test robot wrote: > > All warnings (new ones prefixed by >>): > >kernel/bpf/bpf_inode_storage.c: In function 'unlink_inode_storage': > >> kernel/bpf/bpf_inode_storage.c:34:32: warning: variable 'smap' set but not > >> used [-Wunused-but-set-variable] K

Re: [PATCH v2 3/4] doc/vm: fix typo in the hugetlb admin documentation

2020-07-22 Thread Anshuman Khandual
On 07/23/2020 08:52 AM, Baoquan He wrote: > Change 'pecify' to 'Specify'. > > Signed-off-by: Baoquan He > Reviewed-by: Mike Kravetz > Reviewed-by: David Hildenbrand > --- > Documentation/admin-guide/mm/hugetlbpage.rst | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a

[PATCH] Update the obsolete comments of 'register_blkdev' func

2020-07-22 Thread richard clark
>From the code of 'register_blkdev(...)', the major number range should be in [1..BLKDEV_MAJOR_HASH_SIZE-1] while not [1..BLKDEV_MAJOR_MAX] in case of calling 'register_blkdev(...) with @major = 0, so correct the wrong info of the function's comments Signed-off-by: Richard Clark Cc: Jens Axb

Re: [PATCH] dma-pool: Do not allocate pool memory from CMA

2020-07-22 Thread Amit Pundir
Hi Nicolas, Sorry I got stuck on other things yesterday. On Tue, 21 Jul 2020 at 21:57, Nicolas Saenz Julienne wrote: > > On Tue, 2020-07-21 at 20:52 +0530, Amit Pundir wrote: > > [...] > > > > > > Can you try booting *without* my patch and this in the kernel > > > > > command > > > > > line: "cm

Re: [PATCH] soc: qcom-geni-se: Don't use relaxed writes when writing commands

2020-07-22 Thread Akash Asthana
On 7/23/2020 3:31 AM, Douglas Anderson wrote: Writing the command is the final step in kicking off a transfer. Let's use writel() to ensure that any other memory accesses are done before the command kicks off. It's expected that this is mostly relevant if we're in DMA mode but since it doesn't

Re: [RFC PATCH] makefile: add debug option to enable function aligned on 32 bytes

2020-07-22 Thread Feng Tang
Hi Andrew, Thanks for the review. On Wed, Jul 22, 2020 at 08:39:19PM -0700, Andrew Morton wrote: > On Thu, 23 Jul 2020 11:30:01 +0800 Feng Tang wrote: > > > Recently 0day reported many strange performance changes (regression > > or improvement), in which there was no obvious relation between >

Re: [PATCH v2 2/4] mm/hugetlb.c: Remove the unnecessary non_swap_entry()

2020-07-22 Thread Anshuman Khandual
On 07/23/2020 08:52 AM, Baoquan He wrote: > The checking is_migration_entry() and is_hwpoison_entry() are stricter > than non_swap_entry(), means they have covered the conditional check > which non_swap_entry() is doing. They are no stricter as such but implicitly contains non_swap_entry() in i

Re: [PATCH v2 2/5] vfio/pci: Add device blocklist

2020-07-22 Thread Alex Williamson
On Tue, 14 Jul 2020 07:36:07 +0100 Giovanni Cabiddu wrote: > Add blocklist of devices that by default are not probed by vfio-pci. > Devices in this list may be susceptible to untrusted application, even > if the IOMMU is enabled. To be accessed via vfio-pci, the user has to > explicitly disable t

Re: [PATCH] arm64: vdso32: Fix '--prefix=' value for newer versions of clang

2020-07-22 Thread Sedat Dilek
On Thu, Jul 23, 2020 at 6:51 AM Nathan Chancellor wrote: > > On Thu, Jul 23, 2020 at 06:45:07AM +0200, Sedat Dilek wrote: > > On Thu, Jul 23, 2020 at 6:15 AM Nathan Chancellor > > wrote: > > > > > > Newer versions of clang only look for $(COMPAT_GCC_TOOLCHAIN_DIR)as [1], > > > rather than $(COMPA

Re: [PATCH v4 2/2] phy: cadence-torrent: Use kernel PHY API to set PHY attributes

2020-07-22 Thread Kishon Vijay Abraham I
On 7/17/2020 12:20 PM, Swapnil Jakhade wrote: > Use generic PHY framework function phy_set_attrs() to set number > of lanes and maximum link rate supported by PHY. > > Signed-off-by: Swapnil Jakhade Acked-by: Kishon Vijay Abraham I > --- > drivers/phy/cadence/phy-cadence-torrent.c | 7

[PATCH V3] Softirq:avoid large sched delay from the pending softirqs

2020-07-22 Thread qianjun . kernel
From: jun qian When get the pending softirqs, it need to process all the pending softirqs in the while loop. If the processing time of each pending softirq is need more than 2 msec in this loop, or one of the softirq will running a long time, according to the original code logic, it will process

Re: [PATCH v4 1/2] phy: Add new PHY attribute max_link_rate and APIs to get/set PHY attributes

2020-07-22 Thread Kishon Vijay Abraham I
On 7/17/2020 12:20 PM, Swapnil Jakhade wrote: > Add new PHY attribute max_link_rate to struct phy_attrs. > Add a pair of PHY APIs to get/set all the PHY attributes. > Use phy_get_attrs() to get attribute values and phy_set_attrs() > to set attribute values. > > Signed-off-by: Yuti Amonkar > Si

Re: [PATCH] arm64: vdso32: Fix '--prefix=' value for newer versions of clang

2020-07-22 Thread Nathan Chancellor
On Thu, Jul 23, 2020 at 06:45:07AM +0200, Sedat Dilek wrote: > On Thu, Jul 23, 2020 at 6:15 AM Nathan Chancellor > wrote: > > > > Newer versions of clang only look for $(COMPAT_GCC_TOOLCHAIN_DIR)as [1], > > rather than $(COMPAT_GCC_TOOLCHAIN_DIR)$(CROSS_COMPILE_COMPAT)as, > > resulting in the foll

Re: [RFC PATCH v2] Softirq:avoid large sched delay from the pending softirqs

2020-07-22 Thread jun qian
On Thu, Jul 23, 2020 at 2:05 AM Thomas Gleixner wrote: > > qianjun.ker...@gmail.com writes: > > + > > + end = ktime_get(); > > + delta = ktime_to_us(end - start); > > What's the point of this conversion? That's a division for no value > because you can simply define the max

Re: [RFC PATCH v2 2/6] ALSA: compress: add new ioctl for setting codec parameters

2020-07-22 Thread Vinod Koul
On 22-07-20, 10:36, Pierre-Louis Bossart wrote: > > > > >    * and the stream properties > > > > + * @set_codec_params: Sets the compressed stream codec > > > > parameters, Optional > > > > + * This can be called in during gapless next track codec change > > > > only to set > > > > + * codec param

Re: [PATCH v2 1/4] mm/hugetlb.c: make is_hugetlb_entry_hwpoisoned return bool

2020-07-22 Thread Anshuman Khandual
On 07/23/2020 08:52 AM, Baoquan He wrote: > Just like its neighbour is_hugetlb_entry_migration() has done. > > Signed-off-by: Baoquan He > Reviewed-by: Mike Kravetz > Reviewed-by: David Hildenbrand > --- > mm/hugetlb.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > dif

Re: [PATCH 5.7 233/244] RISC-V: Acquire mmap lock before invoking walk_page_range

2020-07-22 Thread Stafford Horne
On Wed, Jul 22, 2020 at 03:11:35PM +, Atish Patra wrote: > On Wed, 2020-07-22 at 14:48 +0200, Greg KH wrote: > > On Tue, Jul 21, 2020 at 03:50:35PM -0700, Palmer Dabbelt wrote: > > > On Mon, 20 Jul 2020 12:14:03 PDT (-0700), Greg KH wrote: > > > > On Mon, Jul 20, 2020 at 06:50:10PM +, Atish

Re: [PATCH] arm64: vdso32: Fix '--prefix=' value for newer versions of clang

2020-07-22 Thread Sedat Dilek
On Thu, Jul 23, 2020 at 6:15 AM Nathan Chancellor wrote: > > Newer versions of clang only look for $(COMPAT_GCC_TOOLCHAIN_DIR)as [1], > rather than $(COMPAT_GCC_TOOLCHAIN_DIR)$(CROSS_COMPILE_COMPAT)as, > resulting in the following build error: > > $ make -skj"$(nproc)" ARCH=arm64 CROSS_COMPILE=aar

Re: [RFC PATCH 11/16] sched: migration changes for core scheduling(Internet mail)

2020-07-22 Thread 蒋彪
Hi, > On Jul 23, 2020, at 11:35 AM, Li, Aubrey wrote: > > On 2020/7/23 10:42, benbjiang(蒋彪) wrote: >> Hi, >> >>> On Jul 23, 2020, at 9:57 AM, Li, Aubrey wrote: >>> >>> On 2020/7/22 22:32, benbjiang(蒋彪) wrote: Hi, > On Jul 22, 2020, at 8:13 PM, Li, Aubrey wrote: > > On

Re: [PATCH] USB:Fix kernel NULL pointer when unbind UHCI form vfio-pci

2020-07-22 Thread Alex Williamson
On Thu, 23 Jul 2020 02:59:55 + "Weitao Wang(BJ-RD)" wrote: > On , Jul 22, 2020 at 02:44:14PM +0200, Alan wrote: > > On Wed, Jul 22, 2020 at 02:44:14PM +0200, Greg KH wrote: > > > On Wed, Jul 22, 2020 at 07:57:48PM +0800, WeitaoWangoc wrote: > > > > This bug is found in Zhaoxin platform, b

  1   2   3   4   5   6   7   8   9   10   >