Re: [PATCH v2] mdev: Send uevents around parent device registration

2019-07-01 Thread Cornelia Huck
On Tue, 2 Jul 2019 10:25:04 +0530 Kirti Wankhede wrote: > On 7/2/2019 1:34 AM, Alex Williamson wrote: > > On Mon, 1 Jul 2019 23:20:35 +0530 > > Kirti Wankhede wrote: > > > >> On 7/1/2019 10:54 PM, Alex Williamson wrote: > >>> On Mon, 1 Jul 2019 22:43:10 +0530 > >>> Kirti Wankhede wrote: >

Reminder: 22 open syzbot bugs in perf subsystem

2019-07-01 Thread Eric Biggers
[This email was generated by a script. Let me know if you have any suggestions to make it better, or if you want it re-generated with the latest status.] Of the currently open syzbot reports against the upstream kernel, I've manually marked 22 of them as possibly being bugs in the perf

Re: [PATCH v2] mdev: Send uevents around parent device registration

2019-07-01 Thread Alex Williamson
On Tue, 2 Jul 2019 10:25:04 +0530 Kirti Wankhede wrote: > On 7/2/2019 1:34 AM, Alex Williamson wrote: > > On Mon, 1 Jul 2019 23:20:35 +0530 > > Kirti Wankhede wrote: > > > >> On 7/1/2019 10:54 PM, Alex Williamson wrote: > >>> On Mon, 1 Jul 2019 22:43:10 +0530 > >>> Kirti Wankhede wrote: >

Re: [PATCH] media: venus: Update to bitrate based clock scaling

2019-07-01 Thread amasule
Hi Stan, On 2019-07-01 21:15, Stanimir Varbanov wrote: Hi Aniket, On 6/26/19 11:23 AM, Aniket Masule wrote: Introduced clock scaling using bitrate, current calculations consider only the cycles per mb. Also, clock scaling is now triggered before every buffer being queued to the device. This

[PATCH] arm64/mm: Drop pte_huge()

2019-07-01 Thread Anshuman Khandual
This helper is required from generic huge_pte_alloc() which is available when arch subscribes ARCH_WANT_GENERAL_HUGETLB. arm64 implements it's own huge_pte_alloc() and does not depend on the generic definition. Drop this helper which is redundant on arm64. Cc: Catalin Marinas Cc: Will Deacon

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

2019-07-01 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: fs/btrfs/ctree.c: In function '__tree_mod_log_insert': fs/btrfs/ctree.c:388:2: error: implicit declaration of function 'lockdep_assert_held_exclusive'; did you mean

[PATCH] x86/stacktrace: Do not access user space memory unnecessarily

2019-07-01 Thread Eiichi Tsukata
Put the boundary check before it accesses user space to prevent unnecessary access which might crash the machine. Especially, ftrace preemptirq/irq_disable event with user stack trace option can trigger SEGV in pid 1 which leads to panic. Reproducer: CONFIG_PREEMPTIRQ_TRACEPOINTS=y # echo 1

Re: Reminder: 2 open syzbot bugs in vhost subsystem

2019-07-01 Thread Eric Biggers
On Tue, Jul 02, 2019 at 01:24:43PM +0800, Jason Wang wrote: > > > > Title: INFO: task hung in vhost_init_device_iotlb > > Last occurred: 125 days ago > > Reported: 153 days ago > >

Re: [BUG] kvm: APIC emulation problem - was Re: [LKP] [x86/hotplug] ...

2019-07-01 Thread Wanpeng Li
Hi Thomas, On Tue, 2 Jul 2019 at 06:44, Thomas Gleixner wrote: > > Folks, > > after chasing a 0-day test failure for a couple of days, I was finally able > to reproduce the issue. > > Background: > >In preparation of supporting IPI shorthands I changed the CPU offline >code to software

[PATCH v2 2/2] Powerpc/Watchpoint: Rewrite ptrace-hwbreak.c selftest

2019-07-01 Thread Ravi Bangoria
ptrace-hwbreak.c selftest is logically broken. On powerpc, when watchpoint is created with ptrace, signals are generated before executing the instruction and user has to manually singlestep the instruction with watchpoint disabled, which selftest never does and thus it keeps on getting the signal

[PATCH v2 1/2] Powerpc/Watchpoint: Fix length calculation for unaligned target

2019-07-01 Thread Ravi Bangoria
Watchpoint match range is always doubleword(8 bytes) aligned on powerpc. If the given range is crossing doubleword boundary, we need to increase the length such that next doubleword also get covered. Ex, address len = 6 bytes |=.

Reminder: 5 open syzbot bugs in "fs/fuse" subsystem

2019-07-01 Thread Eric Biggers
[This email was generated by a script. Let me know if you have any suggestions to make it better, or if you want it re-generated with the latest status.] Of the currently open syzbot reports against the upstream kernel, I've manually marked 5 of them as possibly being bugs in the "fs/fuse"

Re: Reminder: 2 open syzbot bugs in vhost subsystem

2019-07-01 Thread Jason Wang
On 2019/7/2 下午1:17, Eric Biggers wrote: [This email was generated by a script. Let me know if you have any suggestions to make it better, or if you want it re-generated with the latest status.] Of the currently open syzbot reports against the upstream kernel, I've manually marked 2 of them

[PATCH v4 5/5] xen: Add 'xen_nopv' parameter back for backward compatibility

2019-07-01 Thread Zhenzhong Duan
Map 'xen_nopv' to 'nopv' and mark 'xen_nopv' obsolete in kernel-parameters.txt Signed-off-by: Zhenzhong Duan Cc: Boris Ostrovsky Cc: Juergen Gross Cc: Stefano Stabellini Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov --- Documentation/admin-guide/kernel-parameters.txt | 6 ++

[PATCH v4 3/5] Revert "xen: Introduce 'xen_nopv' to disable PV extensions for HVM guests."

2019-07-01 Thread Zhenzhong Duan
This reverts commit 8d693b911bb9c57009c24cb1772d205b84c7985c. Instead we use an unified parameter 'nopv' for all the hypervisor platforms. Signed-off-by: Zhenzhong Duan Reviewed-by: Juergen Gross Cc: Boris Ostrovsky Cc: Juergen Gross Cc: Stefano Stabellini Cc: Thomas Gleixner Cc: Ingo

[PATCH v4 2/5] x86: Add nopv parameter to disable PV extensions

2019-07-01 Thread Zhenzhong Duan
In virtualization environment, PV extensions (drivers, interrupts, timers, etc) are enabled in the majority of use cases which is the best option. However, in some cases (kexec not fully working, benchmarking) we want to disable PV extensions. As such introduce the 'nopv' parameter that will do

[PATCH v4 4/5] x86/xen: Add 'nopv' support for HVM guest

2019-07-01 Thread Zhenzhong Duan
PVH guest needs PV extentions to work, so 'nopv' parameter should be ignored for PVH but not for HVM guest. If PVH guest boots up via the Xen-PVH boot entry, xen_pvh is set early, we know it's PVH guest and ignore 'nopv' parameter directly. If PVH guest boots up via the normal boot entry same as

Reminder: 2 open syzbot bugs in vhost subsystem

2019-07-01 Thread Eric Biggers
[This email was generated by a script. Let me know if you have any suggestions to make it better, or if you want it re-generated with the latest status.] Of the currently open syzbot reports against the upstream kernel, I've manually marked 2 of them as possibly being bugs in the vhost

[PATCH v4 1/5] x86/xen: Mark xen_hvm_need_lapic() and xen_x2apic_para_available() as __init

2019-07-01 Thread Zhenzhong Duan
.. as they are only called at early bootup stage. In fact, other functions in x86_hyper_xen_hvm.init.* are all marked as __init. Unexport xen_hvm_need_lapic as it's never used outside. Signed-off-by: Zhenzhong Duan Reviewed-by: Juergen Gross Cc: Boris Ostrovsky Cc: Stefano Stabellini Cc:

[PATCH v4 0/5] misc fixes to PV extentions code

2019-07-01 Thread Zhenzhong Duan
Hi, In virtualization environment, PV extensions (drivers, interrupts, timers, etc) are enabled in the majority of use cases which is the best option. However, in some cases (kexec not fully working, benchmarking, etc) we want to disable PV extensions. We have xen_nopv for that purpose but only

Reminder: 2 open syzbot bugs in "security/tomoyo" subsystem

2019-07-01 Thread Eric Biggers
[This email was generated by a script. Let me know if you have any suggestions to make it better, or if you want it re-generated with the latest status.] Of the currently open syzbot reports against the upstream kernel, I've manually marked 2 of them as possibly being bugs in the

Re: [PATCH v3] rcu: Change return type of rcu_spawn_one_boost_kthread()

2019-07-01 Thread Byungchul Park
On Mon, Jul 01, 2019 at 01:12:16PM -0700, Paul E. McKenney wrote: > On Mon, Jul 01, 2019 at 09:40:39AM +0900, Byungchul Park wrote: > > Hello, > > > > I tested again if the WARN_ON_ONCE() is fired with my box. > > > > And it was OK. > > > > Thanks, > > Byungchul > > And it now applies just

Reminder: 1 open syzbot bug in "security/smack" subsystem

2019-07-01 Thread Eric Biggers
[This email was generated by a script. Let me know if you have any suggestions to make it better, or if you want it re-generated with the latest status.] Of the currently open syzbot reports against the upstream kernel, I've manually marked 1 of them as possibly being a bug in the

Reminder: 1 open syzbot bug in rtc subsystem

2019-07-01 Thread Eric Biggers
[This email was generated by a script. Let me know if you have any suggestions to make it better, or if you want it re-generated with the latest status.] Of the currently open syzbot reports against the upstream kernel, I've manually marked 1 of them as possibly being a bug in the rtc subsystem.

Reminder: 1 open syzbot bug in hid subsystem

2019-07-01 Thread Eric Biggers
[This email was generated by a script. Let me know if you have any suggestions to make it better, or if you want it re-generated with the latest status.] Of the currently open syzbot reports against the upstream kernel, I've manually marked 1 of them as possibly being a bug in the hid subsystem.

RE: [PATCH v2 09/11] firmware: xilinx: Add SDIO Tap Delay APIs

2019-07-01 Thread Manish Narani
Hi Jolly, > -Original Message- > From: Jolly Shah > Sent: Monday, July 1, 2019 11:36 PM > To: Manish Narani ; ulf.hans...@linaro.org; > robh...@kernel.org; mark.rutl...@arm.com; he...@sntech.de; Michal Simek > ; adrian.hun...@intel.com; > christoph.muell...@theobroma-systems.com;

Re: [PATCH v3 4/4] media: venus: Update core selection

2019-07-01 Thread amasule
Hi Stan, On 2019-07-01 19:28, Stanimir Varbanov wrote: Hi, On 6/25/19 7:27 PM, Aniket Masule wrote: Present core assignment is static. Introduced load balancing across the cores. Load on earch core is calculated and core with minimum load is assigned to given instance. Signed-off-by: Aniket

Re: [PATCH v3 2/4] media: venus: Update clock scaling

2019-07-01 Thread amasule
Hi Stan, On 2019-07-01 18:41, Stanimir Varbanov wrote: On 6/25/19 7:27 PM, Aniket Masule wrote: Current clock scaling calculations are same for vpu4 and previous versions. For vpu4, Clock scaling calculations are updated with cycles/mb. This helps in getting precise clock required.

Re: [PATCH v3 1/4] media: venus: Add codec data table

2019-07-01 Thread amasule
Hi Stan, On 2019-07-01 17:13, Stanimir Varbanov wrote: On 6/25/19 7:27 PM, Aniket Masule wrote: Add vpp cycles for for different types of codec It indicates the cycles required by video hardware to process each macroblock. Initialize the codec data with core resources. Signed-off-by: Aniket

Re: [PATCH v2] mdev: Send uevents around parent device registration

2019-07-01 Thread Kirti Wankhede
On 7/2/2019 1:34 AM, Alex Williamson wrote: > On Mon, 1 Jul 2019 23:20:35 +0530 > Kirti Wankhede wrote: > >> On 7/1/2019 10:54 PM, Alex Williamson wrote: >>> On Mon, 1 Jul 2019 22:43:10 +0530 >>> Kirti Wankhede wrote: >>> On 7/1/2019 8:24 PM, Alex Williamson wrote: > This

Re: [PATCH] MAINTAINERS: Add FSI subsystem

2019-07-01 Thread Jeremy Kerr
Hi Joel, > The subsystem was merged some time ago but we did not have a > maintainers > entry. Acked-by: Jeremy Kerr Cheers, Jeremy

Re: [PATCH v3 3/4] Revert "xen: Introduce 'xen_nopv' to disable PV extensions for HVM guests."

2019-07-01 Thread Zhenzhong Duan
On 2019/7/2 11:48, Boris Ostrovsky wrote: On Mon, Jul 01, 2019 at 10:20:27AM +0800, Zhenzhong Duan wrote: This reverts commit 8d693b911bb9c57009c24cb1772d205b84c7985c. Instead we use an unified parameter 'nopv' for all the hypervisor platforms. Signed-off-by: Zhenzhong Duan Reviewed-by:

[PATCH] MAINTAINERS: Add FSI subsystem

2019-07-01 Thread Joel Stanley
The subsystem was merged some time ago but we did not have a maintainers entry. Signed-off-by: Joel Stanley --- MAINTAINERS | 13 + 1 file changed, 13 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 01a52fc964da..2a5df9c20ecb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@

[PATCH 2/2] opp: Manage empty OPP tables with clk handle

2019-07-01 Thread Rajendra Nayak
With OPP core now supporting DVFS for IO devices, we have instances of IO devices (same IP block) with require an OPP on some platforms/SoCs while just needing to scale the clock on some others. In order to avoid conditional code in every driver, (to check for availability of OPPs and then

[PATCH 1/2] opp: Export dev_pm_opp_set_genpd_virt_dev()

2019-07-01 Thread Rajendra Nayak
Export dev_pm_opp_set_genpd_virt_dev() so loadable modules can use it. Signed-off-by: Rajendra Nayak --- drivers/opp/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/opp/core.c b/drivers/opp/core.c index 8fbdbedc009c..ae033bb1e5b7 100644 --- a/drivers/opp/core.c +++

Re

2019-07-01 Thread Smadar Barber-Tsadik
Sorry to break into your privacy in this manner, I'm Smadar Barber-Tsadik, Deputy Chief Executive Officer of First International Bank of Israel Ltd (FIBI). I am getting in touch with you regarding an extremely important and urgent matter. If you would oblige me the opportunity, I shall

RE: linux-next: Fixes tag needs some work in the wireless-drivers-next tree

2019-07-01 Thread dundi
Hi Stephen, You are correct, Its Fixes: ba94c753ccb4 ("ath10k: add QMI message handshake for wcn3990 client") My bad, I added last 12 digits instead of first 12 digits of SHA1. Regards, Dundi -Original Message- From: Stephen Rothwell Sent: Tuesday, July 2, 2019 3:03 AM To: Kalle Valo

Re: [PATCH v2 1/5] PM: ACPI/PCI: Resume all devices during hibernation

2019-07-01 Thread Robert R. Howell
On 7/1/19 4:44 AM, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Both the PCI bus type and the ACPI PM domain avoid resuming > runtime-suspended devices with DPM_FLAG_SMART_SUSPEND set during > hibernation (before creating the snapshot image of system memory), > but that turns out to be

Re: [PATCH v2 1/3] mm: Trigger bug on if a section is not found in __section_nr

2019-07-01 Thread Alastair D'Silva
On Mon, 2019-07-01 at 12:46 +0200, Michal Hocko wrote: > On Fri 28-06-19 10:46:28, Alastair D'Silva wrote: > [...] > > Given that there is already a VM_BUG_ON in the code, how do you > > feel > > about broadening the scope from 'VM_BUG_ON(!root)' to > > 'VM_BUG_ON(!root > > > > (root_nr ==

Re: linux-next: Fixes tag needs some work in the mlx5-next tree

2019-07-01 Thread Leon Romanovsky
On Tue, Jul 02, 2019 at 10:05:33AM +1000, Stephen Rothwell wrote: > Hi all, > > In commit > > 16fff98a7e82 ("net/mlx5: E-Switch, Reg/unreg function changed event at > correct stage") > > Fixes tag > > Fixes: 61fc880839e6 ("net/mlx5: E-Switch, Handle representors creation in > handler

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

2019-07-01 Thread Leon Romanovsky
On Tue, Jul 02, 2019 at 01:13:27PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the mlx5-next tree got a conflict in: > > drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c > > between commit: > > 955858009708 ("net/mlx5e: Fix number of vports for ingress

Re: [PATCH 0/3] FSGSBASE fix, test, and a semi-related cleanup

2019-07-01 Thread Andy Lutomirski
On Mon, Jul 1, 2019 at 8:43 PM Andy Lutomirski wrote: > > In -tip, if FSGSBASE and PTI are on, the kernel crashes if SYSENTER > happens with TF set. It also crashes under if a non-NMI paranoid > entry happens for any other reason from kernel mode with user GSBASE > and user CR3, e.g. due to MOV

Re: [PATCH RESEND] Revert "x86/paravirt: Set up the virt_spin_lock_key after static keys get initialized"

2019-07-01 Thread Boris Ostrovsky
On Thu, Jun 27, 2019 at 11:24:41PM +0200, Thomas Gleixner wrote: > On Wed, 26 Jun 2019, Zhenzhong Duan wrote: > > > This reverts commit ca5d376e17072c1b60c3fee66f3be58ef018952d. > > > > Commit 8990cac6e5ea ("x86/jump_label: Initialize static branching > > early") adds jump_label_init() call in

linux-next: build warning after merge of the amdgpu tree

2019-07-01 Thread Stephen Rothwell
Hi all, After merging the amdgpu tree, today's linux-next build (x86_64 allmodcnofig) produced this warning: drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device.c: In function 'kgd2kfd_probe': drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_device.c:490:6: warning: unused variable 'ret'

Re: [PATCH v3 3/4] Revert "xen: Introduce 'xen_nopv' to disable PV extensions for HVM guests."

2019-07-01 Thread Boris Ostrovsky
On Mon, Jul 01, 2019 at 10:20:27AM +0800, Zhenzhong Duan wrote: > This reverts commit 8d693b911bb9c57009c24cb1772d205b84c7985c. > > Instead we use an unified parameter 'nopv' for all the hypervisor > platforms. > > Signed-off-by: Zhenzhong Duan > Reviewed-by: Juergen Gross > Cc: Boris

Re: [RFC 1/3] rcu: Expedite the rcu quiescent state reporting if help needed

2019-07-01 Thread Paul E. McKenney
On Mon, Jul 01, 2019 at 12:04:13AM -0400, Joel Fernandes (Google) wrote: > The t->rcu_read_unlock_special union's need_qs bit can be set by the > scheduler tick (in rcu_flavor_sched_clock_irq) to indicate that help is > needed from the rcu_read_unlock path. When this help arrives however, we > can

[PATCH 0/3] FSGSBASE fix, test, and a semi-related cleanup

2019-07-01 Thread Andy Lutomirski
In -tip, if FSGSBASE and PTI are on, the kernel crashes if SYSENTER happens with TF set. It also crashes under if a non-NMI paranoid entry happens for any other reason from kernel mode with user GSBASE and user CR3, e.g. due to MOV SS shenanigans. This series fixes the bug. It also adds another

[PATCH 3/3] x86/entry/64: Fix and clean up paranoid_exit

2019-07-01 Thread Andy Lutomirski
paranoid_exit needs to restore CR3 before GSBASE. Doing it in the opposite order crashes if the exception came from a context with user GSBASE and user CR3 -- RESTORE_CR3 cannot resture user CR3 if run with user GSBASE. This results in infinitely recursing exceptions if user code does SYSENTER

[PATCH 2/3] x86/entry/64: Don't compile ignore_sysret if 32-bit emulation is enabled

2019-07-01 Thread Andy Lutomirski
It's only used if !CONFIG_IA32_EMULATION, so disable it in normal configs. This will save a few bytes of text and reduce confusion. Cc: "Bae, Chang Seok" Signed-off-by: Andy Lutomirski --- arch/x86/entry/entry_64.S | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH 1/3] selftests/x86: Test SYSCALL and SYSENTER manually with TF set

2019-07-01 Thread Andy Lutomirski
Make sure that we exercise both variants of the nasty TF-in-compat-syscall regardless of what vendor's CPU is running the tests. Also change the intentional signal after SYSCALL to use ud2, which is a lot more comprehensible. This crashes the kernel due to an FSGSBASE bug right now. This test

Re: [PATCH v3 4/4] driver core: Add edit_links() callback for drivers

2019-07-01 Thread Saravana Kannan
On Mon, Jul 1, 2019 at 6:46 PM Rob Herring wrote: > > On Mon, Jul 1, 2019 at 6:48 PM Saravana Kannan wrote: > > > > The driver core/bus adding dependencies by default makes sure that > > suppliers don't sync the hardware state with software state before all the > > consumers have their drivers

[PATCH 2/2] PCI: Add NI-Serial PXI/PXIe+485 device IDs

2019-07-01 Thread jeyentam
Add NI PXIe-RS232, PXI-RS485 and PXIe-RS485 device IDs. Signed-off-by: jeyentam --- include/linux/pci_ids.h | 62 - 1 file changed, 37 insertions(+), 25 deletions(-) diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index

Re: [RFC 1/2] arm64/mm: Change THP helpers to comply with generic MM semantics

2019-07-01 Thread Anshuman Khandual
On 06/28/2019 03:50 PM, Catalin Marinas wrote: > Hi Anshuman, Hello Catalin, > > On Thu, Jun 27, 2019 at 06:18:15PM +0530, Anshuman Khandual wrote: >> pmd_present() and pmd_trans_huge() are expected to behave in the following >> manner during various phases of a given PMD. It is derived from

[PATCH 1/2] serial/8250: Add support for NI-Serial PXI/PXIe+485 devices.

2019-07-01 Thread jeyentam
Add support for NI-Serial PXIe-RS232, PXI-RS485 and PXIe-RS485 devices. Signed-off-by: jeyentam --- drivers/tty/serial/8250/8250_pci.c | 879 +++-- 1 file changed, 582 insertions(+), 297 deletions(-) diff --git a/drivers/tty/serial/8250/8250_pci.c

Re: [PATCH] filesystem-dax: Disable PMD support

2019-07-01 Thread Matthew Wilcox
On Sun, Jun 30, 2019 at 02:37:32PM -0700, Dan Williams wrote: > On Sun, Jun 30, 2019 at 8:23 AM Matthew Wilcox wrote: > > I think my theory was slightly mistaken, but your fix has the effect of > > fixing the actual problem too. > > > > The xas->xa_index for a PMD is going to be PMD-aligned (ie a

Re: [PATCH v3 2/4] of/platform: Add functional dependency link from DT bindings

2019-07-01 Thread Saravana Kannan
On Mon, Jul 1, 2019 at 6:32 PM Rob Herring wrote: > > On Mon, Jul 1, 2019 at 6:48 PM Saravana Kannan wrote: > > > > Add device-links after the devices are created (but before they are > > probed) by looking at common DT bindings like clocks and > > interconnects. > > > > Automatically adding

[PATCH 0/3] Add Support for MediaTek MT2712 RTC

2019-07-01 Thread Ran Bi
This patchset add support to MT2712 RTC. MT2712 RTC is a SoC based RTC with different architecture compared to MT7622 RTC. Ran Bi (3): bindings: rtc: add bindings for MT2712 RTC rtc: Add support for the MediaTek MT2712 RTC arm64: dts: add rtc nodes for MT2712

[PATCH 1/3] bindings: rtc: add bindings for MT2712 RTC

2019-07-01 Thread Ran Bi
Document the binding for MT2712 RTC implemented by rtc-mt2712. Signed-off-by: Ran Bi --- .../devicetree/bindings/rtc/rtc-mt2712.txt | 14 ++ 1 file changed, 14 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/rtc-mt2712.txt diff --git

[PATCH 3/3] arm64: dts: add rtc nodes for MT2712

2019-07-01 Thread Ran Bi
This patch add device node for MT2712 rtc. Signed-off-by: Ran Bi --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi index 43307bad3f0d..31166c17c39a 100644

[PATCH 2/3] rtc: Add support for the MediaTek MT2712 RTC

2019-07-01 Thread Ran Bi
This add support for the MediaTek MT2712 RTC. It was SoC based RTC, but had different architecture compared with MT7622 RTC. Signed-off-by: Ran Bi --- drivers/rtc/Kconfig | 10 + drivers/rtc/Makefile | 1 + drivers/rtc/rtc-mt2712.c | 495 +++ 3

Re: [Question] Should direct reclaim time be bounded?

2019-07-01 Thread Mike Kravetz
On 7/1/19 1:59 AM, Mel Gorman wrote: > On Fri, Jun 28, 2019 at 11:20:42AM -0700, Mike Kravetz wrote: >> On 4/24/19 7:35 AM, Vlastimil Babka wrote: >>> On 4/23/19 6:39 PM, Mike Kravetz wrote: > That being said, I do not think __GFP_RETRY_MAYFAIL is wrong here. It > looks like there is

Re: [PATCH v10 03/12] dt-binding: gce: add binding for gce client reg property

2019-07-01 Thread Bibby Hsieh
Hi, Rob, Sorry to bother you, could you please review this patch when you are available? Thanks. On Mon, 2019-07-01 at 15:48 +0800, Bibby Hsieh wrote: > cmdq driver provide a function that get the relationship > of sub system number from device node for client. > add specification for

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

2019-07-01 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the mlx5-next tree got a conflict in: drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c between commit: 955858009708 ("net/mlx5e: Fix number of vports for ingress ACL configuration") from Linus' tree and commit: 062f4bf4aab5 ("net/mlx5:

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

2019-07-01 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the mlx5-next tree got conflicts in: drivers/net/ethernet/mellanox/mlx5/core/eswitch.c between commits: 02f3afd97556 ("net/mlx5: E-Switch, Correct type to u16 for vport_num and int for vport_index") from Linus' tree and commit: 5f5d2536be8d

Re: WARNING: refcount bug in kobject_add_internal

2019-07-01 Thread Muchun Song
Hi Ben, Benjamin Herrenschmidt 于2019年7月2日周二 上午10:44写道: > > Munchun, is this what your patch fixes ? > Yes, this is what my patch fixes. The patchs can reference to: [PATCH v1 OPT1] driver core: Fix use-after-free and double free on glue directory [PATCH v4 OPT2] driver core:

Re: [PATCH 3.16 08/10] tcp: tcp_fragment() should apply sane memory limits

2019-07-01 Thread Florian Fainelli
Hi Ben, On 6/18/2019 7:28 AM, Ben Hutchings wrote: > 3.16.69-rc1 review patch. If anyone has any objections, please let me know. > > -- > > From: Eric Dumazet > > commit f070ef2ac66716357066b683fb0baf55f8191a2e upstream. > > Jonathan Looney reported that a malicious peer can

Re: WARNING: refcount bug in kobject_add_internal

2019-07-01 Thread Benjamin Herrenschmidt
Munchun, is this what your patch fixes ? On Mon, 2019-07-01 at 16:27 -0700, syzbot wrote: > syzbot has bisected this bug to: > > commit 726e41097920a73e4c7c33385dcc0debb1281e18 > Author: Benjamin Herrenschmidt > Date: Tue Jul 10 00:29:10 2018 + > > drivers: core: Remove glue dirs

Re: [PATCH] net: ethernet: broadcom: bcm63xx_enet: Remove unneeded memset

2019-07-01 Thread David Miller
From: Hariprasad Kelam Date: Sun, 30 Jun 2019 19:59:49 +0530 > Remove unneeded memset as alloc_etherdev is using kvzalloc which uses > __GFP_ZERO flag > > Signed-off-by: Hariprasad Kelam Applied to net-next, thanks.

[PATCH 02/43] perf thread-stack: Fix thread stack return from kernel for kernel-only case

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter Commit f08046cb3082 ("perf thread-stack: Represent jmps to the start of a different symbol") had the side-effect of introducing more stack entries before return from kernel space. When user space is also traced, those entries are popped before entry to user space, but when

[PATCH 41/43] perf stat: Fix metrics with --no-merge

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Since Fixes: 8c5421c016a4 ("perf pmu: Display pmu name when printing unmerged events in stat") using --no-merge adds the PMU name to the evsel name. This breaks the metric value lookup because the parser doesn't know about this. Remove the extra postfixes for the metric

[PATCH 40/43] perf stat: Fix group lookup for metric group

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Andi Kleen The metric group code tries to find a group it added earlier in the evlist. Fix the lookup to handle groups with partially overlaps correctly. When a sub string match fails and we reset the match, we have to compare the first element again. I also renamed the find_evsel

[PATCH 42/43] perf annotate: Add csky support

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Mao Han This patch add basic arch initialization and instruction associate support for the csky CPU architecture. E.g.: $ perf annotate --stdio2 Samples: 161 of event 'cpu-clock:pppH', 4000 Hz, Event count (approx.): 4025, [percent: local period] test_4()

[PATCH 43/43] perf jevents: Use nonlocal include statements in pmu-events.c

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Luke Mujica Change pmu-events.c to not use local include statements. The code that creates the include statements for pmu-events.c is in jevents.c. pmu-events.c is a generated file, and for build systems that put generated files in a separate directory, include statements with local

[PATCH 18/43] perf symbols: We need util.h in symbol-elf.c for zfree()

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Continuing to untangle the headers, we're about to remove the old odd baggage that is tools/perf/util/include/linux/ctype.h. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-gapezcq3p8bzrsi96vdtq...@git.kernel.org

[PATCH 21/43] tools perf: Move from sane_ctype.h obtained from git to the Linux's original

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We got the sane_ctype.h headers from git and kept using it so far, but since that code originally came from the kernel sources to the git sources, perhaps its better to just use the one in the kernel, so that we can leverage tools/perf/check_headers.sh to be

[PATCH 10/43] perf scripts python: export-to-sqlite.py: Export Intel PT power and ptwrite events

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter The format of synthesized events is determined by the attribute config. For the formats for Intel PT power and ptwrite events, create tables and populate them when the synth_data handler is called. If the tables remain empty, drop them at the end. The tables and views,

[PATCH 39/43] perf stat: Don't merge events in the same PMU

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Event merging is mainly to collapse similar events in lots of different duplicated PMUs. It can break metric displaying. It's possible for two metrics to have the same event, and when the two events happen in a row the second wouldn't be displayed. This would also not show the

[PATCH 31/43] perf tools: Ditch rtrim(), use skip_spaces() to get closer to the kernel

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo No change in behaviour, just using the same kernel idiom for such operation. Cc: Adrian Hunter Cc: André Goddard Rosa Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-a85lkptkt0ru40irpga8y...@git.kernel.org Signed-off-by: Arnaldo Carvalho de

[PATCH 36/43] perf tools: Drop strxfrchar(), use strreplace() equivalent from kernel

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo No change in behaviour intended, just reducing the codebase and using something available in tools/lib/. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-oyi6zif3810nwi4uu85od...@git.kernel.org Signed-off-by: Arnaldo Carvalho

[PATCH 30/43] perf report: Use skip_spaces()

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo No change in behaviour intended. Cc: Adrian Hunter Cc: Andi Kleen Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-lcywlfqbi37nhegmhl1ar...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/builtin-report.c | 3 +-- 1

[PATCH 38/43] perf stat: Make metric event lookup more robust

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Andi Kleen After setting up metric groups through the event parser, the metricgroup code looks them up again in the event list. Make sure we only look up events that haven't been used by some other metric. The data structures currently cannot handle more than one metric per event. This

[PATCH 32/43] tools lib: Adopt strim() from the kernel

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Since we're working on moving stuff out of tools/perf/util/ to tools/lib/, take the opportunity to adopt routines from the kernel that are equivalent, so that tools/ code look more like the kernel. Cc: Adrian Hunter Cc: André Goddard Rosa Cc: Jiri Olsa Cc:

[PATCH 28/43] perf strfilter: Use skip_spaces()

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo No change in behaviour. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-p9rtamq7lvre9zhti70az...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/strfilter.c | 4 ++-- 1 file

[PATCH 33/43] perf tools: Remove trim() implementation, use tools/lib's strim()

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Moving more stuff out of tools/perf/util/ and using the kernel idiom. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-wpj8rktj62yse5dq6ckny...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo ---

[PATCH 35/43] tools lib: Adopt strreplace() from the kernel

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We'll use it to further reduce the size of tools/perf/util/string.c, replacing the strxfrchar() equivalent function we have there. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-x3r61ikjrso1buygxwke8...@git.kernel.org

[PATCH 29/43] perf metricgroup: Use strsep()

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo No change in behaviour intended, trivial optimization done by avoiding looking for spaces in 'g' right after setting it to "No_group". Cc: Adrian Hunter Cc: Andi Kleen Cc: Jiri Olsa Cc: Namhyung Kim Link:

[PATCH 34/43] perf tools: Ditch rtrim(), use strim() from tools/lib

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Cleaning up a bit more tools/perf/util/ by using things we got from the kernel and have in tools/lib/ Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-7hluuoveryoicvkclshzj...@git.kernel.org Signed-off-by: Arnaldo Carvalho de

[PATCH 37/43] tools lib: Move argv_{split,free} from tools/perf/util/

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo This came from the kernel lib/argv_split.c, so move it to tools/lib/argv_split.c, to get it closer to the kernel structure. We need to audit the usage of argv_split() to figure out if it is really necessary to do have one allocation per argv[] entry, looking at

[PATCH 19/43] perf tools: Remove old baggage that is util/include/linux/ctype.h

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo It was just including a ../util.h that wasn't even there: $ cat tools/perf/util/include/linux/../util.h cat: tools/perf/util/include/linux/../util.h: No such file or directory $ This would make kallsyms.h get util.h somehow and then files including it would

[PATCH 20/43] perf tools: Add missing util.h to pick up 'page_size' variable

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Not to depend of getting it indirectly. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-tirjsmvu4ektw0k7lm8k9...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/arch/arm/util/cs-etm.c | 1 +

[PATCH 25/43] perf header: Use skip_spaces() in __write_cpudesc()

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo No change in behaviour. Cc: Stephane Eranian Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-0dbfpi70aa66s6mtd8z6p...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/header.c | 5 ++--- 1 file

[PATCH 24/43] perf stat: Use recently introduced skip_spaces()

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo No change in behaviour. Cc: Andi Kleen Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-ncpvp4eelf8fqhuy29uv5...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/stat-display.c | 5 ++--- 1 file

[PATCH 16/43] tools x86 machine: Add missing util.h to pick up 'page_size'

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We're getting it by sheer luck, add that util.h to get the 'page_size' definition. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-347078mgj3d2jfygtxs4n...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo ---

[PATCH 15/43] perf string: Move 'dots' and 'graph_dotted_line' out of sane_ctype.h

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Those are not in that file in the git repo, lets move it from there so that we get that sane ctype code fully isolated to allow getting it in sync either with the git sources or better with the kernel sources (include/linux/ctype.h + lib/ctype.h), that way we can

[PATCH 17/43] perf kallsyms: Adopt hex2u64 from tools/perf/util/util.h

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Just removing more stuff from tools/perf/, this is mostly used in the kallsyms parsing and in places in perf where kallsyms is involved, so we get it for free there. With this we reduce a bit more util.h. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Link:

[PATCH 14/43] perf ctype: Remove now unused 'spaces' variable

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We can left justify just fine using the 'field width' modifier in %s printf, ditch this variable. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-2td8u86mia7143lbr5ttl...@git.kernel.org Signed-off-by: Arnaldo Carvalho de

[PATCH 27/43] perf probe: Use skip_spaces() for argv handling

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo The skip_sep() routine has the same implementation as skip_spaces(), recently adopted from the kernel, sources, switch to it. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Namhyung Kim Link:

[PATCH 23/43] tools lib: Adopt skip_spaces() from the kernel sources

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Same implementation, will be used to replace ad-hoc equivalent code in tools/. Cc: Adrian Hunter Cc: André Goddard Rosa Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-dig691cg9ripvoiprpidt...@git.kernel.org Signed-off-by: Arnaldo Carvalho

[PATCH 22/43] perf tools: Use linux/ctype.h in more places

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo There were a few places where we still were using the libc version of ctype.h, switch to the one in tools/lib/ctype.c that the rest of perf uses. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Link:

[PATCH 26/43] perf time-utils: Use skip_spaces()

2019-07-01 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo No change in behaviour intended. Cc: Adrian Hunter Cc: David Ahern Cc: Jin Yao Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-cpugv7qd5vzhbtvnlydo9...@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo ---

  1   2   3   4   5   6   7   8   9   >