Re: [PATCH v1] powerpc/pseries: CMM: Drop page array

2019-09-27 Thread David Hildenbrand
On 25.09.19 09:37, David Hildenbrand wrote: > On 10.09.19 18:39, David Hildenbrand wrote: >> We can simply store the pages in a list (page->lru), no need for a >> separate data structure (+ complicated handling). This is how most >> other balloon drivers store allocated pages without additional tra

Re: [PATCH] ARM: dts: stm32: Enable high resolution timer

2019-09-27 Thread Marc Zyngier
On 2019-09-27 09:48, Benjamin Gaignard wrote: Adding always-on makes arm arch_timer claim to be an high resolution timer. That is possible because power mode won't stop clocking the timer. The "always-on" is not about the clock. It is about the comparator. The clock itself is *guaranteed* to a

Re: [PATCH] firmware: imx: Skip return value check for some special SCU firmware APIs

2019-09-27 Thread Leonard Crestez
On 27.09.2019 12:06, Marco Felsch wrote: > Hi Anson, Leonard, > > On 19-09-27 01:20, Anson Huang wrote: >> Hi, Leonard >> >>> On 2019-09-26 1:06 PM, Marco Felsch wrote: On 19-09-26 08:03, Anson Huang wrote: >> On 19-09-25 18:07, Anson Huang wrote: >>> The SCU firmware does NOT always

[RFC PATCH 00/13] vsock: add multi-transports support

2019-09-27 Thread Stefano Garzarella
Hi all, this series adds the multi-transports support to vsock, following this proposal: https://www.spinics.net/lists/netdev/msg575792.html With the multi-transports support, we can use vsock with nested VMs (using also different hypervisors) loading both guest->host and host->guest transports at

[RFC PATCH 01/13] vsock/vmci: remove unused VSOCK_DEFAULT_CONNECT_TIMEOUT

2019-09-27 Thread Stefano Garzarella
The VSOCK_DEFAULT_CONNECT_TIMEOUT definition was introduced with commit d021c344051af ("VSOCK: Introduce VM Sockets"), but it is never used in the net/vmw_vsock/vmci_transport.c. VSOCK_DEFAULT_CONNECT_TIMEOUT is used and defined in net/vmw_vsock/af_vsock.c Signed-off-by: Stefano Garzarella ---

[RFC PATCH 03/13] vsock: remove include/linux/vm_sockets.h file

2019-09-27 Thread Stefano Garzarella
This header file now only includes the "uapi/linux/vm_sockets.h". We can include directly it when needed. Signed-off-by: Stefano Garzarella --- include/linux/vm_sockets.h| 13 - include/net/af_vsock.h| 2 +- include/net/vsock_addr.h | 2 +-

[RFC PATCH 02/13] vsock: remove vm_sockets_get_local_cid()

2019-09-27 Thread Stefano Garzarella
vm_sockets_get_local_cid() is only used in virtio_transport_common.c. We can replace it calling the virtio_transport_get_ops() and using the get_local_cid() callback registered by the transport. Signed-off-by: Stefano Garzarella --- include/linux/vm_sockets.h | 2 -- net/vmw_vsock/

[RFC PATCH 07/13] vsock: handle buffer_size sockopts in the core

2019-09-27 Thread Stefano Garzarella
virtio_transport and vmci_transport handle the buffer_size sockopts in a very similar way. In order to support multiple transports, this patch moves this handling in the core to allow the user to change the options also if the socket is not yet assigned to any transport. This patch also adds the

[RFC PATCH 05/13] vsock/virtio: add transport parameter to the virtio_transport_reset_no_sock()

2019-09-27 Thread Stefano Garzarella
We are going to add 'struct vsock_sock *' parameter to virtio_transport_get_ops(). In some cases, like in the virtio_transport_reset_no_sock(), we don't have any socket assigned to the packet received, so we can't use the virtio_transport_get_ops(). In order to allow virtio_transport_reset_no_soc

[RFC PATCH 08/13] vsock: move vsock_insert_unbound() in the vsock_create()

2019-09-27 Thread Stefano Garzarella
vsock_insert_unbound() was called only when 'sock' parameter of __vsock_create() was not null. This only happened when __vsock_create() was called by vsock_create(). In order to simplify the multi-transports support, this patch moves vsock_insert_unbound() at the end of vsock_create(). Signed-off

[RFC PATCH 04/13] vsock: add 'transport' member in the struct vsock_sock

2019-09-27 Thread Stefano Garzarella
As a preparation to support multiple transports, this patch adds the 'transport' member at the 'struct vsock_sock'. This new field is initialized during the creation in the __vsock_create() function. This patch also renames the global 'transport' pointer to 'transport_single', since for now we're

[RFC PATCH 09/13] hv_sock: set VMADDR_CID_HOST in the hvs_remote_addr_init()

2019-09-27 Thread Stefano Garzarella
Remote peer is always the host, so we set VMADDR_CID_HOST as remote CID instead of VMADDR_CID_ANY. Signed-off-by: Stefano Garzarella --- net/vmw_vsock/hyperv_transport.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/vmw_vsock/hyperv_transport.c b/net/vmw_vsock/hyperv_

[RFC PATCH 06/13] vsock: add 'struct vsock_sock *' param to vsock_core_get_transport()

2019-09-27 Thread Stefano Garzarella
Since now the 'struct vsock_sock' object contains a pointer to the transport, this patch adds a parameter to the vsock_core_get_transport() to return the right transport assigned to the socket. This patch modifies also the virtio_transport_get_ops(), that uses the vsock_core_get_transport(), addin

Re: [PATCH v10 08/12] pwm: mediatek: Add MT7629 compatible string

2019-09-27 Thread Thierry Reding
On Wed, Sep 25, 2019 at 10:32:33PM +0800, Sam Shih wrote: > This adds pwm support for MT7629, and separate mt7629 compatible string > from mt7622 > > Signed-off-by: Sam Shih > --- > drivers/pwm/pwm-mediatek.c | 6 ++ > 1 file changed, 6 insertions(+) I picked this patch up and made some min

[RFC PATCH 12/13] vsock: prevent transport modules unloading

2019-09-27 Thread Stefano Garzarella
This patch adds 'module' member in the 'struct vsock_transport' in order to get/put the transport module. This prevents the module unloading while sockets are assigned to it. We increase the module refcnt when a socket is assigned to a transport, and we decrease the module refcnt when the socket i

[RFC PATCH 11/13] vsock: add 'transport_hg' to handle g2h\h2g transports

2019-09-27 Thread Stefano Garzarella
VMCI transport provides both g2h and h2g behaviors in a single transport. We are able to set (or not) the g2h behavior, detecting if we are in a VMware guest (or not), but the h2g feature is always set. This prevents to load other h2g transports while we are in a VMware guest. This patch adds a ne

[RFC PATCH 10/13] vsock: add multi-transports support

2019-09-27 Thread Stefano Garzarella
This patch adds the support of multiple transports in the VSOCK core. With the multi-transports support, we can use vsock with nested VMs (using also different hypervisors) loading both guest->host and host->guest transports at the same time. Major changes: - vsock core module can be loaded inter

[RFC PATCH 13/13] vsock: fix bind() behaviour taking care of CID

2019-09-27 Thread Stefano Garzarella
When we are looking for a socket bound to a specific address, we also have to take into account the CID. This patch is useful with multi-transports support because it allows the binding of the same port with different CID, and it prevents a connection to a wrong socket bound to the same port, but

[PATCH v15 2/4] soc: mediatek: cmdq: add polling function

2019-09-27 Thread Bibby Hsieh
add polling function in cmdq helper functions Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu Reviewed-by: Houlong Wei --- drivers/soc/mediatek/mtk-cmdq-helper.c | 41 include/linux/mailbox/mtk-cmdq-mailbox.h | 1 + include/linux/soc/mediatek/mtk-cmdq.h| 32 ++

[PATCH v15 0/4] support gce on mt8183 platform

2019-09-27 Thread Bibby Hsieh
Changes since v14: - change input argument as pointer in append_commend() Changes since v13: - separate poll function as poll w/ & w/o mask function - directly pass inst into append_command function instead of returns a pointer - fixup coding style - rebase onto 5.3-rc1 [... snip ...] Bi

[PATCH v15 4/4] arm64: dts: add gce node for mt8183

2019-09-27 Thread Bibby Hsieh
add gce device node for mt8183 Signed-off-by: Bibby Hsieh --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index 66aaa07f6cec..52b9af38a00a 100644 ---

[PATCH v15 3/4] soc: mediatek: cmdq: add cmdq_dev_get_client_reg function

2019-09-27 Thread Bibby Hsieh
GCE cannot know the register base address, this function can help cmdq client to get the cmdq_client_reg structure. Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu Reviewed-by: Houlong Wei --- drivers/soc/mediatek/mtk-cmdq-helper.c | 29 ++ include/linux/soc/mediatek/mtk-

[PATCH v15 1/4] soc: mediatek: cmdq: define the instruction struct

2019-09-27 Thread Bibby Hsieh
Define an instruction structure for gce driver to append command. This structure can make the client's code more readability. Signed-off-by: Bibby Hsieh Reviewed-by: CK Hu Reviewed-by: Houlong Wei --- drivers/soc/mediatek/mtk-cmdq-helper.c | 106 +-- include/linux/mailbox

Re: [PATCH 1/7] modpost: fix broken sym->namespace for external module builds

2019-09-27 Thread Matthias Maennich
On Fri, Sep 27, 2019 at 06:35:57PM +0900, Masahiro Yamada wrote: Currently, external module builds produce tons of false-positives: WARNING: module uses symbol from namespace , but does not import it. Here, the part shows a random string. When you build external modules, the symbol info o

[ANNOUNCE] v5.2.17-rt9

2019-09-27 Thread Sebastian Andrzej Siewior
Dear RT folks! I'm pleased to announce the v5.2.17-rt9 patch set. Changes since v5.2.17-rt8: - A missing unlock in the posix-CPU-timer code was found by Dan Carpenter. - Asking for the first recorded message in the printk buffer returns the first available message if it has been ov

Re: [v2, 2/2] gpio: dts: aspeed: Add SGPIO driver

2019-09-27 Thread Linus Walleij
On Wed, Sep 25, 2019 at 9:22 PM Hongwei Zhang wrote: > Add SGPIO driver support for Aspeed AST2500 SoC. > > Signed-off-by: Hongwei Zhang I sent a separate patch to fix this up the way I want it with the file named gpio-aspeed-sgpio.c and CONFIG_GPIO_ASPEED_SGPIO. I don't want to mix up the nam

Kernel panic on new Dell XPS 7390 (5.3)

2019-09-27 Thread Nico Schottelius
Good morning, I have just started fighing with the new Dell XPS 7390 and get various boot errors [0], including a kernel panic with kernel 5.3 as shipped by Ubuntu 19.10. I was wondering if anyone has an advice on how to debug this best? Best, Nico [0] https://twitter.com/NicoSchottelius/sta

Re: [PATCH] HID: hyperv: Add the support of hibernation

2019-09-27 Thread Sasha Levin
On Fri, Sep 27, 2019 at 05:42:31AM +, Dexuan Cui wrote: From: Jiri Kosina Sent: Thursday, September 26, 2019 6:23 AM To: Dexuan Cui On Thu, 26 Sep 2019, Jiri Kosina wrote: > > > This patch is basically a pure Hyper-V specific change and it has a > > > build dependency on the commit 271b22

Re: [PATCH 2/7] module: swap the order of symbol.namespace

2019-09-27 Thread Matthias Maennich
On Fri, Sep 27, 2019 at 06:35:58PM +0900, Masahiro Yamada wrote: Currently, EXPORT_SYMBOL_NS(_GPL) constructs the kernel symbol as follows: __ksymtab_SYMBOL.NAMESPACE The sym_extract_namespace() in modpost allocates memory for the part SYMBOL.NAMESPACE when '.' is contained. One problem is tha

[GIT PULL] Second batch of KVM changes for Linux 5.4 merge window

2019-09-27 Thread Paolo Bonzini
Linus, The following changes since commit 4c07e2ddab5b6b57dbcb09aedbda1f484d5940cc: Merge tag 'mfd-next-5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd (2019-09-23 19:37:49 -0700) are available in the git repository at: https://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/f

Re: [PATCH 2/2] KVM: VMX: Skip GUEST_CR3 VMREAD+VMWRITE if the VMCS is up-to-date

2019-09-27 Thread Vitaly Kuznetsov
Sean Christopherson writes: > Skip the VMWRITE to update GUEST_CR3 if CR3 is not available, i.e. has > not been read from the VMCS since the last VM-Enter. If vcpu->arch.cr3 > is stale, kvm_read_cr3(vcpu) will refresh vcpu->arch.cr3 from the VMCS, > meaning KVM will do a VMREAD and then VMWRITE

Re: [PATCH 0/2] KVM: nVMX: Bug fix for consuming stale vmcs02.GUEST_CR3

2019-09-27 Thread Vitaly Kuznetsov
Sean Christopherson writes: > Reto Buerki reported a failure in a nested VMM when running with HLT > interception disabled in L1. When putting L2 into HLT, KVM never actually > enters L2 and instead cancels the nested run and pretends that VM-Enter to > L2 completed and then exited on HLT (which

Re: [PATCH v3] nfp: abm: fix memory leak in nfp_abm_u32_knode_replace

2019-09-27 Thread Markus Elfring
> Updated other gotos to have correct errno returned, too. How do you think about to add a jump target here? > +++ b/drivers/net/ethernet/netronome/nfp/abm/cls.c > @@ -176,8 +176,10 @@ nfp_abm_u32_knode_replace(struct nfp_abm_link *alink, > u8 mask, val; > int err; > > - if (!nfp

Re: [PATCH 3/7] module: rename __kstrtab_ns_* to __kstrtabns_* to avoid symbol conflict

2019-09-27 Thread Matthias Maennich
On Fri, Sep 27, 2019 at 06:35:59PM +0900, Masahiro Yamada wrote: The module namespace produces __strtab_ns_ symbols to store namespace strings, but it does not guarantee the name uniqueness. This is a potential problem because we have exported symbols staring with "ns_". For example, kernel/capa

Re: [PATCH] drm/omap: Migrate minimum FCK/PCK ratio from Kconfig to dts

2019-09-27 Thread Adam Ford
On Fri, Sep 27, 2019 at 1:22 AM Tomi Valkeinen wrote: > > On 26/09/2019 17:12, Adam Ford wrote: > > >> And what is the hdmi5_configure there? I don't see anything in the > >> driver that would print hdmi5_configure. And, of course, there's no > >> hdmi5 on that platform. Hmm, ok... it's from compo

Re: [PATCH] vhost: introduce mdev based hardware backend

2019-09-27 Thread Jason Wang
On 2019/9/27 下午5:38, Michael S. Tsirkin wrote: On Fri, Sep 27, 2019 at 04:47:43PM +0800, Jason Wang wrote: On 2019/9/27 下午12:54, Tiwei Bie wrote: On Fri, Sep 27, 2019 at 11:46:06AM +0800, Jason Wang wrote: On 2019/9/26 下午12:54, Tiwei Bie wrote: + +static long vhost_mdev_start(struct vhost_m

[PATCH] m68k: q40: Fix info-leak in rtc_ioctl

2019-09-27 Thread Fuqian Huang
When the option is RTC_PLL_GET, pll will be copied to userland via copy_to_user. pll is initialized using mach_get_rtc_pll indirect call and mach_get_rtc_pll is only assigned with function q40_get_rtc_pll in arch/m68k/q40/config.c. In function q40_get_rtc_pll, the field pll_ctrl is not initialized.

Re: [PATCH] vhost: introduce mdev based hardware backend

2019-09-27 Thread Jason Wang
On 2019/9/27 下午5:41, Michael S. Tsirkin wrote: On Fri, Sep 27, 2019 at 11:27:12AM +0800, Jason Wang wrote: On 2019/9/26 下午9:14, Tiwei Bie wrote: On Thu, Sep 26, 2019 at 04:35:18AM -0400, Michael S. Tsirkin wrote: On Thu, Sep 26, 2019 at 12:54:27PM +0800, Tiwei Bie wrote: [...] diff --git a

Re: [PATCH RT 4/8] sched: migrate disable: Protect cpus_ptr with lock

2019-09-27 Thread Sebastian Andrzej Siewior
On 2019-09-26 11:52:42 [-0500], Scott Wood wrote: > Looks good, thanks! Thanks, just released. Moving forward. It would be nice to have some DL-dev feedback on DL patch. For the remaining once, could please throw Steven's stress-test-hostplug-cpu-script? If that one does not complain I don't see a

Re: [PATCH v2 2/2] ptp: Add a ptp clock driver for IDT ClockMatrix.

2019-09-27 Thread Andrew Lunn
> +static s32 idtcm_xfer(struct idtcm *idtcm, > + u8 regaddr, > + u8 *buf, > + u16 count, > + bool write) > +{ > + struct i2c_client *client = idtcm->client; > + struct i2c_msg msg[2]; > + s32 cnt; > + > + msg[0

Re: [PREEMPT_RT PATCH 2/3] i915: convert all irq_locks spinlocks to raw spinlocks

2019-09-27 Thread Sebastian Andrzej Siewior
On 2019-09-16 14:21:22 [-0700], Sean V Kelley wrote: > I’ve tested this also on the v5.2.14-rt7 and can confirm that it avoids the > need for making the locks raw. > > Tested-by: Sean V Kelley Good. I went for an alternative approach in v5.2.17-rt9. Now I believe that the three here are obsolet

Re: IWL AC 8260, kernel 5.3.*, many kernel WARNING

2019-09-27 Thread Kalle Valo
Norbert Preining writes: > Dear all, > > (please cc) > > linux 5.3.1 > Debian/sid > Thinkpad X260 > iwlwifi :04:00.0: Detected Intel(R) Dual Band Wireless AC 8260, REV=0x208 > iwlwifi :04:00.0: loaded firmware version 36.8fd77bb3.0 op_mode iwlmvm > > since about 5.3.0 I get a lot of warni

Re: [PATCH v3 3/4] mm: don't expose non-hugetlb page to fast gup prematurely

2019-09-27 Thread Michal Hocko
On Thu 26-09-19 20:26:46, John Hubbard wrote: > On 9/26/19 3:20 AM, Kirill A. Shutemov wrote: > > BTW, have you looked at other levels of page table hierarchy. Do we have > > the same issue for PMD/PUD/... pages? > > > > Along the lines of "what other memory barriers might be missing for > get_us

Re: [PATCH] ARM: dts: stm32: Enable high resolution timer

2019-09-27 Thread Benjamin GAIGNARD
On 9/27/19 1:22 PM, Marc Zyngier wrote: > On 2019-09-27 09:48, Benjamin Gaignard wrote: >> Adding always-on makes arm arch_timer claim to be an high resolution >> timer. >> That is possible because power mode won't stop clocking the timer. > > The "always-on" is not about the clock. It is about t

Re: [PATCH 4/7] module: avoid code duplication in include/linux/export.h

2019-09-27 Thread Matthias Maennich
On Fri, Sep 27, 2019 at 01:07:33PM +0200, Rasmus Villemoes wrote: On 27/09/2019 11.36, Masahiro Yamada wrote: include/linux/export.h has lots of code duplication between EXPORT_SYMBOL and EXPORT_SYMBOL_NS. To improve the maintainability and readability, unify the implementation. When the symbo

RE: [alsa-devel] [PATCH] ASoC: bdw-rt5677: channel constraint support

2019-09-27 Thread Lu, Brent
> > > > It's not only the mismatch but also the design limitation. According > > to the information from google, the board (samus) only uses two > > microphone so > > 3 or 4 channel recording are not supported. That's the reason we > > leverage the constraint from other machine driver (like > > kbl

[PATCH][RESEND] input: adp5589: Make keypad support optional

2019-09-27 Thread Alexandru Ardelean
From: Lars-Peter Clausen On some platforms the adp5589 is used in GPIO only mode. On these platforms we do not want to register a input device, so make that optional and only create the input device if a keymap is supplied. Signed-off-by: Lars-Peter Clausen Signed-off-by: Alexandru Ardelean --

Re: [PATCH] ARM: dts: stm32: Enable high resolution timer

2019-09-27 Thread Marc Zyngier
On 2019-09-27 13:36, Benjamin GAIGNARD wrote: On 9/27/19 1:22 PM, Marc Zyngier wrote: On 2019-09-27 09:48, Benjamin Gaignard wrote: Adding always-on makes arm arch_timer claim to be an high resolution timer. That is possible because power mode won't stop clocking the timer. The "always-on" i

Re: [PATCH] m68k: q40: Fix info-leak in rtc_ioctl

2019-09-27 Thread Geert Uytterhoeven
Hi Fuqian, On Fri, Sep 27, 2019 at 2:15 PM Fuqian Huang wrote: > When the option is RTC_PLL_GET, pll will be copied to userland > via copy_to_user. pll is initialized using mach_get_rtc_pll indirect > call and mach_get_rtc_pll is only assigned with function > q40_get_rtc_pll in arch/m68k/q40/conf

Re: [PATCH v3 02/26] PCI: hv: Use PCI_STD_NUM_BARS

2019-09-27 Thread Bjorn Helgaas
On Thu, Sep 26, 2019 at 05:05:31PM -0500, Bjorn Helgaas wrote: > On Mon, Sep 16, 2019 at 11:41:34PM +0300, Denis Efremov wrote: > > Replace the magic constant (6) with define PCI_STD_NUM_BARS representing > > the number of PCI BARs. > > For some reason patches 0 and 1 didn't make it to the list.

Re: [PATCH] ARM: dts: stm32: Enable high resolution timer

2019-09-27 Thread Benjamin GAIGNARD
On 9/27/19 2:41 PM, Marc Zyngier wrote: > On 2019-09-27 13:36, Benjamin GAIGNARD wrote: >> On 9/27/19 1:22 PM, Marc Zyngier wrote: >>> On 2019-09-27 09:48, Benjamin Gaignard wrote: Adding always-on makes arm arch_timer claim to be an high resolution timer. That is possible because p

Re: [PATCH 1/1] bpf: Fix bpf_event_output re-entry issue

2019-09-27 Thread Daniel Borkmann
On Wed, Sep 25, 2019 at 04:43:12PM -0700, Allan Zhang wrote: > BPF_PROG_TYPE_SOCK_OPS program can reenter bpf_event_output because it can > be called from atomic and non-atomic contexts since we don't have > bpf_prog_active to prevent it happen. > > This patch enables 3 level of nesting to support

Re: [PATCH 5/7] kbuild: fix build error of 'make nsdeps' in clean tree

2019-09-27 Thread Matthias Maennich
On Fri, Sep 27, 2019 at 06:36:01PM +0900, Masahiro Yamada wrote: Running 'make nsdeps' in a clean source tree fails as follows: $ make -s clean; make -s defconfig; make nsdeps [ snip ] awk: fatal: cannot open file `init/modules.order' for reading (No such file or directory) make: *** [Makefil

Re: [PATCH] nubus: remove cast to void pointer

2019-09-27 Thread Geert Uytterhoeven
Hi Himanshu, On Sun, Aug 27, 2017 at 9:33 AM Himanshu Jha wrote: > Casting void pointers to other pointer types in unnecessary. > > Signed-off-by: Himanshu Jha Thanks for your patch! > --- a/drivers/nubus/nubus.c > +++ b/drivers/nubus/nubus.c > @@ -167,7 +167,7 @@ static unsigned char *nubus_d

Re: [PATCH] vhost: introduce mdev based hardware backend

2019-09-27 Thread Michael S. Tsirkin
On Fri, Sep 27, 2019 at 08:17:47PM +0800, Jason Wang wrote: > > On 2019/9/27 下午5:41, Michael S. Tsirkin wrote: > > On Fri, Sep 27, 2019 at 11:27:12AM +0800, Jason Wang wrote: > > > On 2019/9/26 下午9:14, Tiwei Bie wrote: > > > > On Thu, Sep 26, 2019 at 04:35:18AM -0400, Michael S. Tsirkin wrote: > >

[PATCH v5 5/7] arm64: dts: amlogic: g12a: add cooling properties

2019-09-27 Thread Guillaume La Roque
Add missing #colling-cells field for G12A SoC Add cooling-map for passive and hot trip point Tested-by: Christian Hewitt Tested-by: Kevin Hilman Signed-off-by: Guillaume La Roque --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 24 + 1 file changed, 24 insertions(+) diff

[PATCH v5 5/7] arm64: dts: amlogic: g12a: add missing cooling info

2019-09-27 Thread Guillaume La Roque
Add missing #colling-cells field for G12A SoC Add cooling-map for passive and hot trip point Tested-by: Christian Hewitt Tested-by: Kevin Hilman Signed-off-by: Guillaume La Roque --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 24 + 1 file changed, 24 insertions(+) diff

[PATCH v5 7/7] MAINTAINERS: add entry for Amlogic Thermal driver

2019-09-27 Thread Guillaume La Roque
Add myself as maintainer for Amlogic Thermal driver. Reviewed-by: Neil Armstrong Signed-off-by: Guillaume La Roque --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 390c3194ee93..bdc30d740342 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @

[PATCH v5 6/7] arm64: dts: amlogic: g12b: add cooling properties

2019-09-27 Thread Guillaume La Roque
Add missing #colling-cells field for G12B SoC Add cooling-map for passive and hot trip point Tested-by: Christian Hewitt Tested-by: Kevin Hilman Signed-off-by: Guillaume La Roque --- arch/arm64/boot/dts/amlogic/meson-g12b.dtsi | 29 + 1 file changed, 29 insertions(+) diff

[PATCH v5 1/7] dt-bindings: thermal: Add DT bindings documentation for Amlogic Thermal

2019-09-27 Thread Guillaume La Roque
Adding the devicetree binding documentation for the Amlogic temperature sensor found in the Amlogic Meson G12A and G12B SoCs. Reviewed-by: Rob Herring Tested-by: Christian Hewitt Tested-by: Kevin Hilman Signed-off-by: Guillaume La Roque --- .../bindings/thermal/amlogic,thermal.yaml | 54 +

[PATCH v5 2/7] thermal: amlogic: Add thermal driver to support G12 SoCs

2019-09-27 Thread Guillaume La Roque
Amlogic G12A and G12B SoCs integrate two thermal sensors with the same design. One is located close to the DDR controller and the other one is located close to the PLLs (between the CPU and GPU). The calibration data for each of the thermal sensors instance is stored in a different location within

[PATCH v5 6/7] arm64: dts: amlogic: g12b: add missing cooling info

2019-09-27 Thread Guillaume La Roque
Add missing #colling-cells field for G12B SoC Add cooling-map for passive and hot trip point Tested-by: Christian Hewitt Tested-by: Kevin Hilman Signed-off-by: Guillaume La Roque --- arch/arm64/boot/dts/amlogic/meson-g12b.dtsi | 29 + 1 file changed, 29 insertions(+) diff

[PATCH v5 0/7] Add support of New Amlogic temperature sensor for G12 SoCs

2019-09-27 Thread Guillaume La Roque
This patchs series add support of New Amlogic temperature sensor and minimal thermal zone for SEI510 and ODROID-N2 boards. First implementation was doing on IIO[1] but after comments i move on thermal framework. Formulas and calibration values come from amlogic. Changes since v4: - Move therma

[tip: timers/core] tick: broadcast-hrtimer: Fix a race in bc_set_next

2019-09-27 Thread tip-bot2 for Balasubramani Vivekanandan
The following commit has been merged into the timers/core branch of tip: Commit-ID: b9023b91dd020ad7e093baa5122b6968c48cc9e0 Gitweb: https://git.kernel.org/tip/b9023b91dd020ad7e093baa5122b6968c48cc9e0 Author:Balasubramani Vivekanandan AuthorDate:Thu, 26 Sep 2019 15:51:01

[PATCH v5 3/7] arm64: dts: amlogic: g12: add temperature sensor

2019-09-27 Thread Guillaume La Roque
Add cpu and ddr temperature sensors for G12 Socs Reviewed-by: Martin Blumenstingl Tested-by: Christian Hewitt Tested-by: Kevin Hilman Signed-off-by: Guillaume La Roque --- .../boot/dts/amlogic/meson-g12-common.dtsi| 20 +++ 1 file changed, 20 insertions(+) diff --git a/ar

[PATCH v5 4/7] arm64: dts: meson: g12: Add minimal thermal zone

2019-09-27 Thread Guillaume La Roque
Add minimal thermal zone for two temperature sensor One is located close to the DDR and the other one is located close to the PLLs (between the CPU and GPU) Acked-by: Martin Blumenstingl Tested-by: Christian Hewitt Tested-by: Kevin Hilman Signed-off-by: Guillaume La Roque --- .../boot/dts/aml

Re: Do we need to correct barriering in circular-buffers.rst?

2019-09-27 Thread Peter Zijlstra
On Fri, Sep 27, 2019 at 11:51:07AM +0200, Andrea Parri wrote: > For the record, the LKMM doesn't currently model "order" derived from > control dependencies to a _plain_ access (even if the plain access is > a write): in particular, the following is racy (as far as the current > LKMM is concerned)

Re: [PATCH 1/1] arm64/sve: Fix wrong free for task->thread.sve_state

2019-09-27 Thread Dave Martin
On Thu, Sep 26, 2019 at 03:08:46PM -0400, Masayoshi Mizuma wrote: > From: Masayoshi Mizuma > > The system which has SVE feature crashed because of > the memory pointed by task->thread.sve_state was destroyed > by someone. > > That is because sve_state is freed while the forking the > child proce

Re: [PATCH 2/2] clk: meson: a1: add support for Amlogic A1 clock driver

2019-09-27 Thread Jerome Brunet
On Fri 27 Sep 2019 at 05:11, Jian Hu wrote: > Hi, Stephen > > Thank you for review > > On 2019/9/25 21:12, Stephen Boyd wrote: >> Quoting Jian Hu (2019-09-25 04:44:48) >>> The Amlogic A1 clock includes three parts: >>> peripheral clocks, pll clocks, CPU clocks. >>> sys pll and CPU clocks will b

Re: [PATCH V2 1/2] string: Add stracpy and stracpy_pad mechanisms

2019-09-27 Thread Julia Lawall
On Thu, 26 Sep 2019, Joe Perches wrote: > On Wed, 2019-09-25 at 14:50 -0700, Andrew Morton wrote: > > On Tue, 23 Jul 2019 06:51:36 -0700 Joe Perches wrote: > > > > > Several uses of strlcpy and strscpy have had defects because the > > > last argument of each function is misused or typoed. > >

Re: [PATCH] ARM: dts: stm32: Enable high resolution timer

2019-09-27 Thread Marc Zyngier
On 2019-09-27 13:44, Benjamin GAIGNARD wrote: On 9/27/19 2:41 PM, Marc Zyngier wrote: On 2019-09-27 13:36, Benjamin GAIGNARD wrote: On 9/27/19 1:22 PM, Marc Zyngier wrote: On 2019-09-27 09:48, Benjamin Gaignard wrote: Adding always-on makes arm arch_timer claim to be an high resolution timer

Re: [PATCH] ARM: dts: stm32: Enable high resolution timer

2019-09-27 Thread Sudeep Holla
On Fri, Sep 27, 2019 at 12:44:55PM +, Benjamin GAIGNARD wrote: [...] > > Even in low-power modes this timer is always powered and clocked so it > is working fine. > Is that tested ? I see only cpu_{on,off} available on this platform with PSCI v0.1. Did you add cpu_suspend, idle-states and the

Re: [PATCH] PCI: vc: fix warning: no previous prototype

2019-09-27 Thread Bjorn Helgaas
On Wed, Sep 11, 2019 at 08:40:51PM +0800, tiantao6 wrote: > From: tiantao > > drivers/pci/vc.c:351:5: warning: no previous prototype for > pci_save_vc_state [-Wmissing-prototypes] > int pci_save_vc_state(struct pci_dev *dev) > > drivers/pci/vc.c:388:6: warning: no previous prototype for > pci_re

[PATCH] powerpc/vio: use simple dummy struct device as bus parent

2019-09-27 Thread Dan Streetman
The dummy vio_bus_device creates the /sys/devices/vio directory, which contains real vio devices under it; since it represents itself as having a bus = &vio_bus_type, its /sys/devices/vio/uevent does call the bus's .uevent function, vio_hotplug(), and as that function won't find a real device for t

Re: [PATCH] tpm: Detach page allocation from tpm_buf

2019-09-27 Thread Jarkko Sakkinen
On Wed, Sep 25, 2019 at 10:03:46AM -0400, James Bottomley wrote: > On Wed, 2019-09-25 at 16:48 +0300, Jarkko Sakkinen wrote: > [...] > > + data_page = alloc_page(GFP_HIGHUSER); > > + if (!data_page) > > + return -ENOMEM; > > + > > + data_ptr = kmap(data_page); > > I don't think thi

Re: [PATCH] kasan: fix the missing underflow in memmove and memcpy with CONFIG_KASAN_GENERIC=y

2019-09-27 Thread Dmitry Vyukov
On Fri, Sep 27, 2019 at 5:43 AM Walter Wu wrote: > > memmove() and memcpy() have missing underflow issues. > When -7 <= size < 0, then KASAN will miss to catch the underflow issue. > It looks like shadow start address and shadow end address is the same, > so it does not actually check anything. >

[GIT PULL] Thermal management updates for v5.4-rc1

2019-09-27 Thread Zhang Rui
Hi, Linus, Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux.git for- 5.4 to receive the latest Thermal Management updates for v5.4-rc1 with top-most commit 0f84d1d18c46d0f995962c876c8b2900fd183fd7: Merge branches 'thermal-core', 'thermal-intel' and 'thermal-soc' in

[PATCH] tools: libbpf: Add bpf_object__open_buffer_xattr

2019-09-27 Thread KP Singh
From: KP Singh Introduce struct bpf_object_open_buffer_attr and an API function, bpf_object__open_xattr, as the existing API, bpf_object__open_buffer, doesn't provide a way to specify neither the "needs_kver" nor the "flags" parameter to the internal call to the __bpf_object__open which makes it

Re: [PATCH 6/7] nsdeps: fix hashbang of scripts/nsdeps

2019-09-27 Thread Matthias Maennich
On Fri, Sep 27, 2019 at 06:36:02PM +0900, Masahiro Yamada wrote: This script does not use bash-extension. I am guessing this hashbang was copied from scripts/coccicheck, which really uses bash-extension. /bin/sh is enough for this script. Reviewed-by: Matthias Maennich Cheers, Matthias Sig

Re: [PATCH bpf-next] tools: libbpf: update extended attributes version of bpf_object__open()

2019-09-27 Thread KP Singh
On 30-Aug 19:24, Song Liu wrote: > > > > On Aug 30, 2019, at 11:53 AM, Anton Protopopov > > wrote: > > > > чт, 29 авг. 2019 г. в 16:02, Song Liu : > >> > >> > >> > >>> On Aug 14, 2019, at 5:03 PM, Anton Protopopov > >>> wrote: > >>> > >> > >> [...] > >> > >>> > >>> > >>> int bpf_obje

Re: [PATCH v2] ASoC: Intel: Skylake: prevent memory leak in snd_skl_parse_uuids

2019-09-27 Thread Pierre-Louis Bossart
On 9/26/19 9:55 PM, Navid Emamdoost wrote: On Wed, Sep 25, 2019 at 12:05:28PM -0500, Pierre-Louis Bossart wrote: On 9/25/19 11:19 AM, Navid Emamdoost wrote: In snd_skl_parse_uuids if allocation for module->instance_id fails, the allocated memory for module shoulde be released. I changes the all

Re: genetlink: prevent memory leak in netlbl_unlabel_defconf

2019-09-27 Thread Markus Elfring
> > In netlbl_unlabel_defconf if netlbl_domhsh_add_default fails the > > allocated entry should be released. … > That said, netlbl_unlabel_defconf() *should* clean up here just on > principal if nothing else. How do you think about to add the tag “Fixes” then? Regards, Markus

Re: [PATCH] vhost: introduce mdev based hardware backend

2019-09-27 Thread Jason Wang
On 2019/9/27 下午8:46, Michael S. Tsirkin wrote: On Fri, Sep 27, 2019 at 08:17:47PM +0800, Jason Wang wrote: On 2019/9/27 下午5:41, Michael S. Tsirkin wrote: On Fri, Sep 27, 2019 at 11:27:12AM +0800, Jason Wang wrote: On 2019/9/26 下午9:14, Tiwei Bie wrote: On Thu, Sep 26, 2019 at 04:35:18AM -040

Re: [PATCH v3 0/4] Add binder state and statistics to binderfs

2019-09-27 Thread Christian Brauner
On Tue, Sep 03, 2019 at 09:16:51AM -0700, Hridya Valsaraju wrote: > Currently, the only way to access binder state and > statistics is through debugfs. We need a way to > access the same even when debugfs is not mounted. > These patches add a mount option to make this > information available in bin

Re: [PATCH V2 1/2] string: Add stracpy and stracpy_pad mechanisms

2019-09-27 Thread Julia Lawall
On Thu, 26 Sep 2019, Joe Perches wrote: > On Wed, 2019-09-25 at 14:50 -0700, Andrew Morton wrote: > > On Tue, 23 Jul 2019 06:51:36 -0700 Joe Perches wrote: > > > > > Several uses of strlcpy and strscpy have had defects because the > > > last argument of each function is misused or typoed. > >

Re: [PATCH] vhost: introduce mdev based hardware backend

2019-09-27 Thread Michael S. Tsirkin
On Fri, Sep 27, 2019 at 09:17:56PM +0800, Jason Wang wrote: > > On 2019/9/27 下午8:46, Michael S. Tsirkin wrote: > > On Fri, Sep 27, 2019 at 08:17:47PM +0800, Jason Wang wrote: > > > On 2019/9/27 下午5:41, Michael S. Tsirkin wrote: > > > > On Fri, Sep 27, 2019 at 11:27:12AM +0800, Jason Wang wrote: >

Re: [PATCH 7/7] nsdeps: make generated patches independent of locale

2019-09-27 Thread Matthias Maennich
On Fri, Sep 27, 2019 at 06:36:03PM +0900, Masahiro Yamada wrote: scripts/nsdeps automatically generates a patch to add MODULE_IMPORT_NS tags, and what is nicer, it sorts the lines alphabetically with the "sort" command. However, the output from the "sort" command depends on locale. Especially wh

Re: [PATCH 2/2] clk: meson: a1: add support for Amlogic A1 clock driver

2019-09-27 Thread Jerome Brunet
On Fri 27 Sep 2019 at 11:52, Jian Hu wrote: > Hi, Jerome > > Thank you for review. > > On 2019/9/25 23:09, Jerome Brunet wrote: >> On Wed 25 Sep 2019 at 19:44, Jian Hu wrote: >> >>> The Amlogic A1 clock includes three parts: >>> peripheral clocks, pll clocks, CPU clocks. >>> sys pll and CPU cl

Re: [PATCH] vsock/virtio: add support for MSG_PEEK

2019-09-27 Thread Eric Dumazet
On 9/27/19 1:55 AM, Stefano Garzarella wrote: > Good catch! > > Maybe we can solve in this way: > > list_for_each_entry(pkt, &vvs->rx_queue, list) { > size_t off = pkt->off; > > if (total == len) > break; > > while (total

Re: [PATCH] tracing/probe: Test nr_args match in looking for same probe events

2019-09-27 Thread Srikar Dronamraju
> The cause was that the args array to compare between two probe events only > looked at one of the probe events size. If the other one had a smaller > number of args, it would read out of bounds memory. > I thought trace_probe_compare_arg_type() should have caught this. But looks like there is

Re: net/ncsi: prevent memory leak in ncsi_rsp_handler_gc

2019-09-27 Thread Markus Elfring
> > > In ncsi_rsp_handler_gc if allocation for nc->vlan_filter.vids fails the > > > allocated memory for nc->mac_filter.addrs should be released. … > The problem is that just by traversing the code using tools > like ctags or elixir I couldn't find any caller to ncsi_rsp_handler_gc > that handles s

Re: [PATCH 0/7] module: various bug-fixes and clean-ups for module namespace

2019-09-27 Thread Matthias Maennich
On Fri, Sep 27, 2019 at 06:35:56PM +0900, Masahiro Yamada wrote: I was hit by some problems caused by the module namespace feature that was merged recently. At least, the breakage of external module builds is a fatal one. I just took a look at the code closer, and I noticed some more issues and

[PATCH v4] dt-bindings: at24: convert the binding document to yaml

2019-09-27 Thread Rob Herring
From: Bartosz Golaszewski Convert the binding document for at24 EEPROMs from txt to yaml. The compatible property uses a regex pattern to address all the possible combinations of "vendor,model" strings. Signed-off-by: Bartosz Golaszewski [robh: rework compatible schema, fix missing allOf for $r

Re: [PATCH] arm64: update Kconfig to better handle CMDLINE

2019-09-27 Thread Jan Kaisrlik
+ linux-kernel On Fri, Sep 20, 2019 at 6:43 PM wrote: > > From: Jan Kaisrlik > > Added a menu to choose how to CMDLINE will be handled. Config strings > were copied from arm32 port. > > Signed-off-by: Jan Kaisrlik > --- > arch/arm64/Kconfig | 18 ++ > 1 file changed, 18 insert

Re: [GIT PULL] Kselftest update for Linux 5.4-rc1

2019-09-27 Thread Pavel Machek
Hi! > > I think I'm "special". > > > > There was some other similar change a few years ago, which I > > absolutely hated because of how it broke autocomplete for me. Very few > > other people seemed to react to it. > > FWIW, I am obsessively sensitive to autocomplete and overall source code > f

Re: [PATCH] reap out the dead mutt config links

2019-09-27 Thread Bhaskar Chowdhury
On 01:38 Fri 27 Sep 2019, Jonathan Corbet wrote: On Fri, 27 Sep 2019 11:10:13 +0530 Bhaskar Chowdhury wrote: Signed-off-by: Bhaskar Chowdhury --- Documentation/process/email-clients.rst | 5 - 1 file changed, 5 deletions(-) diff --git a/Documentation/process/email-clients.rst b/Documen

Re: Portege Z930 extra keys and leds

2019-09-27 Thread Pavel Machek
Hi! > does anybody happen to know how to drive the extra keys and leds > of Toshiba Portege Z930 notebook ? > > It has two extra keys above the keyboard (right next to the power > button) and some indicator leds underneath the touch panel buttons. > > Toshiba originally ships the notebook with s

Re: Usecases for the per-task latency-nice attribute

2019-09-27 Thread Pavel Machek
Hi! > > I don't want to start a bikeshedding session here, but I agree with Parth > > on the interpretation of the values. > > > > I've always read niceness values as > > -20 (least nice to the system / other processes) > > +19 (most nice to the system / other processes) > > > > So following thi

Re: Linux 5.3-rc8

2019-09-27 Thread Lennart Poettering
On Mi, 18.09.19 13:26, Linus Torvalds (torva...@linux-foundation.org) wrote: > On Wed, Sep 18, 2019 at 1:15 PM Alexander E. Patrakov > wrote: > > > > No, this is not the solution, if we take seriously not only getrandom > > hangs, but also urandom warnings. In some setups (root on LUKS is one of

Re: [PATCH -next 7/8] dmaengine: xilinx_dma: Check for both idle and halted state in axidma stop_transfer

2019-09-27 Thread Nicholas Graumann
On Fri, Sep 27, 2019 at 06:48:29AM +, Radhey Shyam Pandey wrote: > > -Original Message- > > From: Vinod Koul > > Sent: Thursday, September 26, 2019 10:51 PM > > To: Radhey Shyam Pandey > > Cc: dan.j.willi...@intel.com; Michal Simek ; > > nick.graum...@gmail.com; andrea.mere...@gmail.c

<    1   2   3   4   5   6   7   >