[PATCH 35/49] perf parse-events: Create two hybrid hardware events

2021-02-08 Thread kan . liang
From: Jin Yao For hardware events, they have pre-defined configs. The kernel needs to know where the event comes from (e.g. from cpu_core pmu or from cpu_atom pmu). But the perf type 'PERF_TYPE_HARDWARE' can't carry pmu information. So the kernel introduces a new type 'PERF_TYPE_HARDWARE_PMU'. T

[PATCH 18/49] perf/x86/intel: Add attr_update for Hybrid PMUs

2021-02-08 Thread kan . liang
From: Kan Liang The attribute_group for Hybrid PMUs should be different from the previous cpu PMU. For example, cpumask is required for a Hybrid PMU. The PMU type should be included in the event and format attribute. Add hybrid_attr_update for the Hybrid PMU. Check the PMU type in is_visible() f

[PATCH 17/49] perf/x86: Add structures for the attributes of Hybrid PMUs

2021-02-08 Thread kan . liang
From: Kan Liang Hybrid PMUs have different events and formats. In theory, Hybrid PMU specific attributes should be maintained in the dedicated struct x86_hybrid_pmu, but it wastes space because the events and formats are similar among Hybrid PMUs. To reduce duplication, all hybrid PMUs will shar

Re: [External] Re: [PATCH v2] printk: fix deadlock when kernel panic

2021-02-08 Thread Muchun Song
On Mon, Feb 8, 2021 at 9:12 PM Sergey Senozhatsky wrote: > > On (21/02/08 16:49), Muchun Song wrote: > > On Mon, Feb 8, 2021 at 2:38 PM Sergey Senozhatsky > > wrote: > > > > > > On (21/02/06 13:41), Muchun Song wrote: > > > > We found a deadlock bug on our server when the kernel panic. It can be

[PATCH 40/49] perf stat: Support --cputype option for hybrid events

2021-02-08 Thread kan . liang
From: Jin Yao In previous patch, we have supported the syntax which enables the event on a specified pmu, such as: cpu_core// cpu_atom// While this syntax is not very easy for applying on a set of events or applying on a group. In following example, we have to explicitly assign the pmu prefix.

[PATCH 41/49] perf stat: Support metrics with hybrid events

2021-02-08 Thread kan . liang
From: Jin Yao One metric such as 'Kernel_Utilization' may be from different PMUs and consists of different events. For core, Kernel_Utilization = cpu_clk_unhalted.thread:k / cpu_clk_unhalted.thread For atom, Kernel_Utilization = cpu_clk_unhalted.core:k / cpu_clk_unhalted.core The metric group

[PATCH 16/49] perf/x86: Register hybrid PMUs

2021-02-08 Thread kan . liang
From: Kan Liang Different hybrid PMUs have different PMU capabilities and events. Perf should registers a dedicated PMU for each of them. To check the X86 event, perf has to go through all possible hybrid pmus. Only the PMU for the boot CPU is registered in init_hw_perf_events() because the boo

[PATCH 15/49] perf/x86: Factor out x86_pmu_show_pmu_cap

2021-02-08 Thread kan . liang
From: Kan Liang The PMU capabilities are different among hybrid PMUs. Perf should dump the PMU capabilities information for each hybrid PMU. Factor out x86_pmu_show_pmu_cap() which shows the PMU capabilities information. The function will be reused later when registering a dedicated hybrid PMU.

Re: [PATCH v4 8/8] clk: Mark fwnodes when their clock provider is added/removed

2021-02-08 Thread Rob Herring
On Fri, Feb 5, 2021 at 4:27 PM Saravana Kannan wrote: > > This allows fw_devlink to recognize clock provider drivers that don't > use the device-driver model to initialize the device. fw_devlink will > use this information to make sure consumers of such clock providers > aren't indefinitely blocke

Re: [PATCH 0/7] fsdax,xfs: Add reflink&dedupe support for fsdax

2021-02-08 Thread Jan Kara
On Mon 08-02-21 01:09:17, Shiyang Ruan wrote: > This patchset is attempt to add CoW support for fsdax, and take XFS, > which has both reflink and fsdax feature, as an example. > > One of the key mechanism need to be implemented in fsdax is CoW. Copy > the data from srcmap before we actually write

[PATCH 37/49] perf parse-events: Support hardware events inside PMU

2021-02-08 Thread kan . liang
From: Jin Yao On hybrid platform, some hardware cache events are only available on a specific pmu. For example, 'L1-dcache-load-misses' is only available on 'cpu_core' pmu. And even for the event which can be available on both pmus, the user also may want to just enable one event. So now followin

[PATCH 39/49] perf parse-events: Support hybrid raw events

2021-02-08 Thread kan . liang
From: Jin Yao On hybrid platform, same raw event is possible to be available on both cpu_core pmu and cpu_atom pmu. So it's supported to create two raw events for one event encoding. root@otcpl-adl-s-2:~# ./perf stat -e r3c -a -vv -- sleep 1 Control descriptor is not initialized ---

[PATCH 14/49] perf/x86: Remove temporary pmu assignment in event_init

2021-02-08 Thread kan . liang
From: Kan Liang The temporary pmu assignment in event_init is unnecessary. The assignment was introduced by commit 8113070d6639 ("perf_events: Add fast-path to the rescheduling code"). At that time, event->pmu is not assigned yet when initializing an event. The assignment is required. However, f

[PATCH 33/49] perf header: Support hybrid CPU_PMU_CAPS

2021-02-08 Thread kan . liang
From: Jin Yao On hybrid platform, it may have several cpu pmus, such as, "cpu_core" and "cpu_atom". The CPU_PMU_CAPS feature in perf header needs to be improved to support multiple cpu pmus. The new layout in header is: It's also considered to be compatible with old perf.data. With this

[PATCH 13/49] perf/x86: Expose check_hw_exists

2021-02-08 Thread kan . liang
From: Kan Liang Hybrid PMUs have a different number of counters. Each Hybrid PMU has to check its own HW existence before registration. Expose check_hw_exists, and add number of counters as parameters. Reviewed-by: Andi Kleen Signed-off-by: Kan Liang --- arch/x86/events/core.c | 10 +++

[PATCH 12/49] perf/x86/intel: Factor out intel_pmu_check_extra_regs

2021-02-08 Thread kan . liang
From: Kan Liang Each Hybrid PMU has to check and update its own extra registers before registration. The intel_pmu_check_extra_regs will be reused later when registering a dedicated hybrid PMU. Reviewed-by: Andi Kleen Signed-off-by: Kan Liang --- arch/x86/events/intel/core.c | 37 +++

[PATCH 10/49] perf/x86/intel: Factor out intel_pmu_check_num_counters

2021-02-08 Thread kan . liang
From: Kan Liang Each Hybrid PMU has to check its own number of counters and mask fixed counters before registration. The intel_pmu_check_num_counters will be reused later when registering a dedicated hybrid PMU. Reviewed-by: Andi Kleen Signed-off-by: Kan Liang --- arch/x86/events/intel/core.

[PATCH 11/49] perf/x86/intel: Factor out intel_pmu_check_event_constraints

2021-02-08 Thread kan . liang
From: Kan Liang Each Hybrid PMU has to check and update its own event constraints before registration. The intel_pmu_check_event_constraints will be reused later when registering a dedicated hybrid PMU. Reviewed-by: Andi Kleen Signed-off-by: Kan Liang --- arch/x86/events/intel/core.c | 82 ++

[PATCH 32/49] perf header: Support HYBRID_TOPOLOGY feature

2021-02-08 Thread kan . liang
From: Jin Yao It would be useful to let user know the hybrid topology. For example, the HYBRID_TOPOLOGY feature in header indicates which cpus are core cpus, and which cpus are atom cpus. With this patch, On a hybrid platform: root@otcpl-adl-s-2:~# ./perf report --header-only -I ... # cp

[PATCH 02/49] x86/cpu: Describe hybrid CPUs in cpuinfo_x86

2021-02-08 Thread kan . liang
From: Ricardo Neri On processors with Intel Hybrid Technology (i.e., one having more than one type of CPU in the same package), all CPUs support the same instruction set and enumerate the same features on CPUID. Thus, all software can run on any CPU without restrictions. However, there may be mod

[PATCH 36/49] perf parse-events: Create two hybrid cache events

2021-02-08 Thread kan . liang
From: Jin Yao For cache events, they have pre-defined configs. The kernel needs to know where the cache event comes from (e.g. from cpu_core pmu or from cpu_atom pmu). But the perf type 'PERF_TYPE_HW_CACHE' can't carry pmu information. So the kernel introduces a new type 'PERF_TYPE_HW_CACHE_PMU'

[PATCH 08/49] perf/x86: Hybrid PMU support for event constraints

2021-02-08 Thread kan . liang
From: Kan Liang The events are different among hybrid PMUs. Each hybrid PMU should use its own event constraints. Reviewed-by: Andi Kleen Signed-off-by: Kan Liang --- arch/x86/events/core.c | 3 ++- arch/x86/events/intel/core.c | 5 +++-- arch/x86/events/intel/ds.c | 5 +++-- arch/x86

[PATCH 30/49] perf list: Support --cputype option to list hybrid pmu events

2021-02-08 Thread kan . liang
From: Jin Yao This patch supports a new option '--cputype' to list core only pmu events or atom only pmu events. For example, perf list --cputype atom ... cache: core_reject_l2q.any [Counts the number of request that were not accepted into the L2Q because the L2Q is FULL. Unit: cpu_at

[PATCH 09/49] perf/x86: Hybrid PMU support for extra_regs

2021-02-08 Thread kan . liang
From: Kan Liang Different hybrid PMU may have different extra registers, e.g. Core PMU may have offcore registers, frontend register and ldlat register. Atom core may only have offcore registers and ldlat register. Each hybrid PMU should use its own extra_regs. An Intel Hybrid system should alwa

[PATCH 34/49] tools headers uapi: Update tools's copy of linux/perf_event.h

2021-02-08 Thread kan . liang
From: Jin Yao To get the changes in: ("perf: Introduce PERF_TYPE_HARDWARE_PMU and PERF_TYPE_HW_CACHE_PMU") Reviewed-by: Andi Kleen Signed-off-by: Jin Yao --- tools/include/uapi/linux/perf_event.h | 26 ++ 1 file changed, 26 insertions(+) diff --git a/tools/include/ua

[PATCH 07/49] perf/x86: Hybrid PMU support for hardware cache event

2021-02-08 Thread kan . liang
From: Kan Liang The hardware cache events are different among hybrid PMUs. Each hybrid PMU should have its own hw cache event table. Reviewed-by: Andi Kleen Signed-off-by: Kan Liang --- arch/x86/events/core.c | 11 +-- arch/x86/events/perf_event.h | 9 + 2 files changed

[PATCH 05/49] perf/x86: Hybrid PMU support for counters

2021-02-08 Thread kan . liang
From: Kan Liang The number of GP and fixed counters are different among hybrid PMUs. Each hybrid PMU should use its own counter related information. When handling a certain hybrid PMU, apply the number of counters from the corresponding hybrid PMU. When reserving the counters in the initializat

[PATCH 06/49] perf/x86: Hybrid PMU support for unconstrained

2021-02-08 Thread kan . liang
From: Kan Liang The unconstrained value depends on the number of GP and fixed counters. Each hybrid PMU should use its own unconstrained. Reviewed-by: Andi Kleen Signed-off-by: Kan Liang --- arch/x86/events/intel/core.c | 5 - arch/x86/events/perf_event.h | 1 + 2 files changed, 5 inserti

Re: [GIT PULL] x86/urgent for v5.11-rc7

2021-02-08 Thread Josh Poimboeuf
On Mon, Feb 08, 2021 at 10:02:06AM -0500, Steven Rostedt wrote: > On Sun, 7 Feb 2021 16:45:40 -0600 > Josh Poimboeuf wrote: > > > > I do suspect involved people should start thinking about how they want > > > to deal with functions starting with > > > > > > endbr64 > > > call __f

[PATCH 03/49] perf/x86/intel: Hybrid PMU support for perf capabilities

2021-02-08 Thread kan . liang
From: Kan Liang Some platforms, e.g. Alder Lake, have hybrid architecture. Although most PMU capabilities are the same, there are still some unique PMU capabilities for different hybrid PMUs. Perf should register a dedicated pmu for each hybrid PMU. Add a new struct x86_hybrid_pmu, which saves t

Re: [PATCH 15/18] irqchip/apple-aic: Add support for the Apple Interrupt Controller

2021-02-08 Thread Hector Martin
On 08/02/2021 20.36, Marc Zyngier wrote: On Mon, 08 Feb 2021 10:29:23 +, Arnd Bergmann wrote: On Mon, Feb 8, 2021 at 10:25 AM Marc Zyngier wrote: On Thu, 04 Feb 2021 20:39:48 +, Hector Martin wrote: +{ + return readl(ic->base + reg); Please consider using the _relaxed acces

[PATCH 5.10 100/120] mm: hugetlb: fix a race between isolating and freeing page

2021-02-08 Thread Greg Kroah-Hartman
From: Muchun Song commit 0eb2df2b5629794020f75e94655e1994af63f0d4 upstream. There is a race between isolate_huge_page() and __free_huge_page(). CPU0: CPU1: if (PageHuge(page)) put_page(page)

[PATCH 28/49] perf pmu: Save detected hybrid pmus to a global pmu list

2021-02-08 Thread kan . liang
From: Jin Yao We identify the cpu_core pmu and cpu_atom pmu by explicitly checking following files: For cpu_core, check: "/sys/bus/event_source/devices/cpu_core/cpus" For cpu_atom, check: "/sys/bus/event_source/devices/cpu_atom/cpus" If the 'cpus' file exists, the pmu exists. But in order not

[PATCH 04/49] perf/x86: Hybrid PMU support for intel_ctrl

2021-02-08 Thread kan . liang
From: Kan Liang The intel_ctrl is the event mask of a PMU. The PMU counter information may be different among hybrid PMUs, each hybrid PMU should use its own intel_ctrl. When handling a certain hybrid PMU, apply the intel_ctrl from the corresponding hybrid PMU. Reviewed-by: Andi Kleen Signed-o

Re: [PATCH v4 4/5] ASoC: Intel: Add DMI quirk table to soc_intel_is_byt_cr()

2021-02-08 Thread Mark Brown
On Mon, Feb 08, 2021 at 08:33:50AM +, Lee Jones wrote: > On Fri, 05 Feb 2021, Mark Brown wrote: > > No, it's that there's plenty of drivers like this that are listed in > > MAINTAINERS but still generally go through subsystem trees - this is > > also true of for quite a few MFD drivers, you te

[PATCH 5.10 095/120] ARM: dts; gta04: SPI panel chip select is active low

2021-02-08 Thread Greg Kroah-Hartman
From: H. Nikolaus Schaller commit 181739822cf6f8f4e12b173913af2967a28906c0 upstream. With the arrival of commit 2fee9583198eb9 ("spi: dt-bindings: clarify CS behavior for spi-cs-high and gpio descriptors") it was clarified what the proper state for cs-gpios should be, even if the flag is igno

Re: [PATCH v1 1/2] USB: serial: Drop if with an always false condition

2021-02-08 Thread Johan Hovold
On Mon, Feb 08, 2021 at 03:31:48PM +0100, Uwe Kleine-König wrote: > In a bus remove function the passed device is always valid, so there is > no need to check for it being NULL. > > (Side note: The check for port being non-NULL is broken anyhow, because > to_usb_serial_port() is a wrapper around c

[PATCH 5.10 104/120] mm: thp: fix MADV_REMOVE deadlock on shmem THP

2021-02-08 Thread Greg Kroah-Hartman
From: Hugh Dickins commit 1c2f67308af4c102b4e1e6cd6f69819ae59408e0 upstream. Sergey reported deadlock between kswapd correctly doing its usual lock_page(page) followed by down_read(page->mapping->i_mmap_rwsem), and madvise(MADV_REMOVE) on an madvise(MADV_HUGEPAGE) area doing down_write(page->map

[PATCH 5.10 103/120] mm/vmalloc: separate put pages and flush VM flags

2021-02-08 Thread Greg Kroah-Hartman
From: Rick Edgecombe commit 4f6ec8602341e97b364e4e0d41a1ed08148f5e98 upstream. When VM_MAP_PUT_PAGES was added, it was defined with the same value as VM_FLUSH_RESET_PERMS. This doesn't seem like it will cause any big functional problems other than some excess flushing for VM_MAP_PUT_PAGES alloc

Re: [net-next PATCH v5 13/15] phylink: introduce phylink_fwnode_phy_connect()

2021-02-08 Thread Russell King - ARM Linux admin
On Mon, Feb 08, 2021 at 08:42:42PM +0530, Calvin Johnson wrote: > +int phylink_fwnode_phy_connect(struct phylink *pl, > +struct fwnode_handle *fwnode, > +u32 flags) > +{ > + struct fwnode_handle *phy_fwnode; > + struct phy_device *phy_

[PATCH 5.10 099/120] mm: hugetlb: fix a race between freeing and dissolving the page

2021-02-08 Thread Greg Kroah-Hartman
From: Muchun Song commit 7ffddd499ba6122b1a07828f023d1d67629aa017 upstream. There is a race condition between __free_huge_page() and dissolve_free_huge_page(). CPU0: CPU1: // page_count(page) == 1 put_page(page) __free_huge_page(page)

[PATCH 38/49] perf list: Display pmu prefix for partially supported hybrid cache events

2021-02-08 Thread kan . liang
From: Jin Yao Part of hardware cache events are only available on one cpu pmu. For example, 'L1-dcache-load-misses' is only available on cpu_core. perf list should clearly report this info. root@otcpl-adl-s-2:~# ./perf list Before: L1-dcache-load-misses [Hardware

[PATCH 5.10 118/120] udp: ipv4: manipulate network header of NATed UDP GRO fraglist

2021-02-08 Thread Greg Kroah-Hartman
From: Dongseok Yi commit c3df39ac9b0e3747bf8233ea9ce4ed5ceb3199d3 upstream. UDP/IP header of UDP GROed frag_skbs are not updated even after NAT forwarding. Only the header of head_skb from ip_finish_output_gso -> skb_gso_segment is updated but following frag_skbs are not updated. A call path sk

[PATCH 5.10 102/120] mm, compaction: move high_pfn to the for loop scope

2021-02-08 Thread Greg Kroah-Hartman
From: Rokudo Yan commit 74e21484e40bb8ce0f9828bbfe1c9fc9b04249c6 upstream. In fast_isolate_freepages, high_pfn will be used if a prefered one (ie PFN >= low_fn) not found. But the high_pfn is not reset before searching an free area, so when it was used as freepage, it may from another free area

[PATCH 5.10 098/120] mm: hugetlbfs: fix cannot migrate the fallocated HugeTLB page

2021-02-08 Thread Greg Kroah-Hartman
From: Muchun Song commit 585fc0d2871c9318c949fbf45b1f081edd489e96 upstream. If a new hugetlb page is allocated during fallocate it will not be marked as active (set_page_huge_active) which will result in a later isolate_huge_page failure when the page migration code would like to move that page.

[PATCH 5.10 101/120] mm: hugetlb: remove VM_BUG_ON_PAGE from page_huge_active

2021-02-08 Thread Greg Kroah-Hartman
From: Muchun Song commit ecbf4724e6061b4b01be20f6d797d64d462b2bc8 upstream. The page_huge_active() can be called from scan_movable_pages() which do not hold a reference count to the HugeTLB page. So when we call page_huge_active() from scan_movable_pages(), the HugeTLB page can be freed paralle

[PATCH 5.10 119/120] net: dsa: mv88e6xxx: override existent unicast portvec in port_fdb_add

2021-02-08 Thread Greg Kroah-Hartman
From: DENG Qingfang commit f72f2fb8fb6be095b98af5d740ac50cffd0b0cae upstream. Having multiple destination ports for a unicast address does not make sense. Make port_db_load_purge override existent unicast portvec instead of adding a new port bit. Fixes: 884729399260 ("net: dsa: mv88e6xxx: handl

[PATCH 5.10 120/120] net: sched: replaced invalid qdisc tree flush helper in qdisc_replace

2021-02-08 Thread Greg Kroah-Hartman
From: Alexander Ovechkin commit 938e0fcd3253efdef8924714158911286d08cfe1 upstream. Commit e5f0e8f8e456 ("net: sched: introduce and use qdisc tree flush/purge helpers") introduced qdisc tree flush/purge helpers, but erroneously used flush helper instead of purge helper in qdisc_replace function.

[PATCH 01/49] x86/cpufeatures: Enumerate Intel Hybrid Technology feature bit

2021-02-08 Thread kan . liang
From: Ricardo Neri Add feature enumeration to identify a processor with Intel Hybrid Technology: one in which CPUs of more than one type are the same package. On a hybrid processor, all CPUs support the same homogeneous (i.e., symmetric) instruction set. All CPUs enumerate the same features in CP

[PATCH 5.10 115/120] igc: Report speed and duplex as unknown when device is runtime suspended

2021-02-08 Thread Greg Kroah-Hartman
From: Kai-Heng Feng commit 2e99dedc73f004f650b197c9b269c15c7e01ad15 upstream. Similar to commit 165ae7a8feb5 ("igb: Report speed and duplex as unknown when device is runtime suspended"), if we try to read speed and duplex sysfs while the device is runtime suspended, igc will complain and stops w

[PATCH 5.10 097/120] ARM: 9043/1: tegra: Fix misplaced tegra_uart_config in decompressor

2021-02-08 Thread Greg Kroah-Hartman
From: Dmitry Osipenko commit 538eea5362a1179dfa7770dd2b6607dc30cc50c6 upstream. The tegra_uart_config of the DEBUG_LL code is now placed right at the start of the .text section after commit which enabled debug output in the decompressor. Tegra devices are not booting anymore if DEBUG_LL is enabl

[PATCH 00/49] Add Alder Lake support for perf

2021-02-08 Thread kan . liang
From: Kan Liang (The V1 patchset is a complete patchset for the Alder Lake support on the Linux perf. It includes both kernel patches (1-25) and the user space patches (26-49). It tries to give the maintainers/reviewers an overall picture of the ADL enabling patches. The number of the patches are

[PATCH 5.10 116/120] neighbour: Prevent a dead entry from updating gc_list

2021-02-08 Thread Greg Kroah-Hartman
From: Chinmay Agarwal commit eb4e8fac00d1e01ada5e57c05d24739156086677 upstream. Following race condition was detected: - neigh_flush_dev() is under execution and calls neigh_mark_dead(n) marking the neighbour entry 'n' as dead. - Executing: __netif_receive_skb() -> __netif_receive_skb_core()

[PATCH 5.10 117/120] net: ip_tunnel: fix mtu calculation

2021-02-08 Thread Greg Kroah-Hartman
From: Vadim Fedorenko commit 28e104d00281ade30250b24e098bf50887671ea4 upstream. dev->hard_header_len for tunnel interface is set only when header_ops are set too and already contains full overhead of any tunnel encapsulation. That's why there is not need to use this overhead twice in mtu calc.

[PATCH 5.10 109/120] x86/debug: Prevent data breakpoints on cpu_dr7

2021-02-08 Thread Greg Kroah-Hartman
From: Lai Jiangshan commit 3943abf2dbfae9ea4d2da05c1db569a0603f76da upstream. local_db_save() is called at the start of exc_debug_kernel(), reads DR7 and disables breakpoints to prevent recursion. When running in a guest (X86_FEATURE_HYPERVISOR), local_db_save() reads the per-cpu variable cpu_d

Re: [PATCH v5 2/2] procfs/dmabuf: Add inode number to /proc/*/fdinfo

2021-02-08 Thread Kalesh Singh
On Mon, Feb 8, 2021 at 10:22 AM Matthew Wilcox wrote: > > On Mon, Feb 08, 2021 at 03:14:28PM +, Kalesh Singh wrote: > > - seq_printf(m, "pos:\t%lli\nflags:\t0%o\nmnt_id:\t%i\n", > > + seq_printf(m, > > "pos:\t%lli\nflags:\t0%o\nmnt_id:\t%i\ninode_no:\t%lu\n", > > You changed it everyw

[PATCH 5.10 114/120] md: Set prev_flush_start and flush_bio in an atomic way

2021-02-08 Thread Greg Kroah-Hartman
From: Xiao Ni commit dc5d17a3c39b06aef866afca19245a9cfb533a79 upstream. One customer reports a crash problem which causes by flush request. It triggers a warning before crash. /* new request after previous flush is completed */ if (ktime_after(req_start, mddev->prev_flush_start)

[PATCH 5.4 62/65] net: ip_tunnel: fix mtu calculation

2021-02-08 Thread Greg Kroah-Hartman
From: Vadim Fedorenko commit 28e104d00281ade30250b24e098bf50887671ea4 upstream. dev->hard_header_len for tunnel interface is set only when header_ops are set too and already contains full overhead of any tunnel encapsulation. That's why there is not need to use this overhead twice in mtu calc.

[net-next PATCH v5 11/15] net: mdiobus: Introduce fwnode_mdiobus_register()

2021-02-08 Thread Calvin Johnson
Introduce fwnode_mdiobus_register() to register PHYs on the mdiobus. If the fwnode is DT node, then call of_mdiobus_register(). If it is an ACPI node, then call acpi_mdiobus_register(). Signed-off-by: Calvin Johnson --- Changes in v5: None Changes in v4: - Remove redundant else from fwnode_mdio

[PATCH 5.4 59/65] md: Set prev_flush_start and flush_bio in an atomic way

2021-02-08 Thread Greg Kroah-Hartman
From: Xiao Ni commit dc5d17a3c39b06aef866afca19245a9cfb533a79 upstream. One customer reports a crash problem which causes by flush request. It triggers a warning before crash. /* new request after previous flush is completed */ if (ktime_after(req_start, mddev->prev_flush_start)

[PATCH 5.10 111/120] Input: goodix - add support for Goodix GT9286 chip

2021-02-08 Thread Greg Kroah-Hartman
From: AngeloGioacchino Del Regno commit 2dce6db70c77bbe639f5cd9cc796fb8f2694a7d0 upstream. The Goodix GT9286 is a capacitive touch sensor IC based on GT1x. This chip can be found on a number of smartphones, including the F(x)tec Pro 1 and the Elephone U. This has been tested on F(x)Tec Pro1 (M

[PATCH 5.4 65/65] usb: host: xhci: mvebu: make USB 3.0 PHY optional for Armada 3720

2021-02-08 Thread Greg Kroah-Hartman
From: Pali Rohár commit 3241929b67d28c83945d3191c6816a3271fd6b85 upstream. Older ATF does not provide SMC call for USB 3.0 phy power on functionality and therefore initialization of xhci-hcd is failing when older version of ATF is used. In this case phy_power_on() function returns -EOPNOTSUPP.

[PATCH 5.10 112/120] Input: xpad - sync supported devices with fork on GitHub

2021-02-08 Thread Greg Kroah-Hartman
From: Benjamin Valentin commit 9bbd77d5bbc9aff8cb74d805c31751f5f0691ba8 upstream. There is a fork of this driver on GitHub [0] that has been updated with new device IDs. Merge those into the mainline driver, so the out-of-tree fork is not needed for users of those devices anymore. [0] https://

[PATCH 5.10 113/120] Input: ili210x - implement pressure reporting for ILI251x

2021-02-08 Thread Greg Kroah-Hartman
From: Marek Vasut commit 60159e9e7bc7e528c103b6b6d47dfd83af29669c upstream. The ILI251x seems to report pressure information in the 5th byte of each per-finger touch data element. On the available hardware, this information has the values ranging from 0x0 to 0xa, which is also matching the downs

[PATCH 5.10 107/120] x86/debug: Fix DR6 handling

2021-02-08 Thread Greg Kroah-Hartman
From: Peter Zijlstra commit 9ad22e165994ccb64d85b68499eaef97342c175b upstream. Tom reported that one of the GDB test-cases failed, and Boris bisected it to commit: d53d9bc0cf78 ("x86/debug: Change thread.debugreg6 to thread.virtual_dr6") The debugging session led us to commit: 6c0aca288e7

[PATCH 5.10 110/120] x86/apic: Add extra serialization for non-serializing MSRs

2021-02-08 Thread Greg Kroah-Hartman
From: Dave Hansen commit 25a068b8e9a4eb193d755d58efcb3c98928636e0 upstream. Jan Kiszka reported that the x2apic_wrmsr_fence() function uses a plain MFENCE while the Intel SDM (10.12.3 MSR Access in x2APIC Mode) calls for MFENCE; LFENCE. Short summary: we have special MSRs that have weaker order

[PATCH 5.10 001/120] USB: serial: cp210x: add pid/vid for WSDA-200-USB

2021-02-08 Thread Greg Kroah-Hartman
From: Pho Tran commit 3c4f6ecd93442f4376a58b38bb40ee0b8c46e0e6 upstream. Information pid/vid of WSDA-200-USB, Lord corporation company: vid: 199b pid: ba30 Signed-off-by: Pho Tran [ johan: amend comment with product name ] Cc: sta...@vger.kernel.org Signed-off-by: Johan Hovold Signed-off-by:

[PATCH 5.4 57/65] Input: xpad - sync supported devices with fork on GitHub

2021-02-08 Thread Greg Kroah-Hartman
From: Benjamin Valentin commit 9bbd77d5bbc9aff8cb74d805c31751f5f0691ba8 upstream. There is a fork of this driver on GitHub [0] that has been updated with new device IDs. Merge those into the mainline driver, so the out-of-tree fork is not needed for users of those devices anymore. [0] https://

[PATCH 5.4 56/65] iwlwifi: mvm: dont send RFH_QUEUE_CONFIG_CMD with no queues

2021-02-08 Thread Greg Kroah-Hartman
From: Luca Coelho commit 64f55156f7adedb1ac5bb9cdbcbc9ac05ff5a724 upstream. If we have only a single RX queue, such as when MSI-X is not available, we should not send the RFH_QUEUEU_CONFIG_CMD, because our only queue is the same as the command queue and will be configured as part of the context

[PATCH 5.4 48/65] mm: hugetlbfs: fix cannot migrate the fallocated HugeTLB page

2021-02-08 Thread Greg Kroah-Hartman
From: Muchun Song commit 585fc0d2871c9318c949fbf45b1f081edd489e96 upstream. If a new hugetlb page is allocated during fallocate it will not be marked as active (set_page_huge_active) which will result in a later isolate_huge_page failure when the page migration code would like to move that page.

[PATCH 5.10 011/120] usb: xhci-mtk: fix unreleased bandwidth data

2021-02-08 Thread Greg Kroah-Hartman
From: Ikjoon Jang commit 1d69f9d901ef14d81c3b004e3282b8cc7b456280 upstream. xhci-mtk needs XHCI_MTK_HOST quirk functions in add_endpoint() and drop_endpoint() to handle its own sw bandwidth management. It stores bandwidth data into an internal table every time add_endpoint() is called, and drop

[PATCH 5.10 010/120] usb: dwc3: fix clock issue during resume in OTG mode

2021-02-08 Thread Greg Kroah-Hartman
From: Gary Bisson commit 0e5a3c8284a30f4c43fd81d7285528ece74563b5 upstream. Commit fe8abf332b8f ("usb: dwc3: support clocks and resets for DWC3 core") introduced clock support and a new function named dwc3_core_init_for_resume() which enables the clock before calling dwc3_core_init() during resu

[PATCH 5.10 106/120] x86/build: Disable CET instrumentation in the kernel

2021-02-08 Thread Greg Kroah-Hartman
From: Josh Poimboeuf commit 20bf2b378729c4a0366a53e2018a0b70ace94bcd upstream. With retpolines disabled, some configurations of GCC, and specifically the GCC versions 9 and 10 in Ubuntu will add Intel CET instrumentation to the kernel by default. That breaks certain tracing scenarios by adding a

[PATCH 5.10 108/120] x86/debug: Prevent data breakpoints on __per_cpu_offset

2021-02-08 Thread Greg Kroah-Hartman
From: Lai Jiangshan commit c4bed4b96918ff1d062ee81fdae4d207da4fa9b0 upstream. When FSGSBASE is enabled, paranoid_entry() fetches the per-CPU GSBASE value via __per_cpu_offset or pcpu_unit_offsets. When a data breakpoint is set on __per_cpu_offset[cpu] (read-write operation), the specific CPU wi

[PATCH 5.4 55/65] x86/apic: Add extra serialization for non-serializing MSRs

2021-02-08 Thread Greg Kroah-Hartman
From: Dave Hansen commit 25a068b8e9a4eb193d755d58efcb3c98928636e0 upstream. Jan Kiszka reported that the x2apic_wrmsr_fence() function uses a plain MFENCE while the Intel SDM (10.12.3 MSR Access in x2APIC Mode) calls for MFENCE; LFENCE. Short summary: we have special MSRs that have weaker order

[net-next PATCH v5 15/15] net: dpaa2-mac: Add ACPI support for DPAA2 MAC driver

2021-02-08 Thread Calvin Johnson
Modify dpaa2_mac_connect() to support ACPI along with DT. Modify dpaa2_mac_get_node() to get the dpmac fwnode from either DT or ACPI. Replace of_get_phy_mode with fwnode_get_phy_mode to get phy-mode for a dpmac_node. Use helper function phylink_fwnode_phy_connect() to find phy_dev and connect to

[PATCH 5.10 013/120] usb: xhci-mtk: break loop when find the endpoint to drop

2021-02-08 Thread Greg Kroah-Hartman
From: Chunfeng Yun commit a50ea34d6dd00a12c9cd29cf7b0fa72816bffbcb upstream. No need to check the following endpoints after finding the endpoint wanted to drop. Fixes: 54f6a8af3722 ("usb: xhci-mtk: skip dropping bandwidth of unchecked endpoints") Cc: stable Reported-by: Ikjoon Jang Signed-of

Re: [PATCH 3/8] sched/fair: Tweak misfit-related capacity checks

2021-02-08 Thread Vincent Guittot
On Fri, 5 Feb 2021 at 21:07, Valentin Schneider wrote: > > On 05/02/21 18:17, Vincent Guittot wrote: > > On Fri, 5 Feb 2021 at 18:00, Valentin Schneider > >> >> @@ -8253,7 +8260,7 @@ check_cpu_capacity(struct rq *rq, struct > >> >> sched_domain *sd) > >> >> static inline int check_misfit_status(

[PATCH v4] mfd: da9063: Support SMBus and I2C mode

2021-02-08 Thread Mark Jonas
From: Hubert Streidl By default the PMIC DA9063 2-wire interface is SMBus compliant. This means the PMIC will automatically reset the interface when the clock signal ceases for more than the SMBus timeout of 35 ms. If the I2C driver / device is not capable of creating atomic I2C transactions, a

[PATCH 5.10 066/120] genirq: Prevent [devm_]irq_alloc_desc from returning irq 0

2021-02-08 Thread Greg Kroah-Hartman
From: Hans de Goede commit 4c7bcb51ae25f79e3733982e5d0cd8ce8640ddfc upstream. Since commit a85a6c86c25b ("driver core: platform: Clarify that IRQ 0 is invalid"), having a linux-irq with number 0 will trigger a WARN() when calling platform_get_irq*() to retrieve that linux-irq. Since [devm_]irq_

[PATCH 5.10 096/120] ARM: footbridge: fix dc21285 PCI configuration accessors

2021-02-08 Thread Greg Kroah-Hartman
From: Russell King commit 39d3454c3513840eb123b3913fda6903e45ce671 upstream. Building with gcc 4.9.2 reveals a latent bug in the PCI accessors for Footbridge platforms, which causes a fatal alignment fault while accessing IO memory. Fix this by making the assembly volatile. Cc: sta...@vger.kern

[PATCH 5.10 105/120] mm/filemap: add missing mem_cgroup_uncharge() to __add_to_page_cache_locked()

2021-02-08 Thread Greg Kroah-Hartman
From: Waiman Long commit da74240eb3fcd806edb1643874363e954d9e948b upstream. Commit 3fea5a499d57 ("mm: memcontrol: convert page cache to a new mem_cgroup_charge() API") introduced a bug in __add_to_page_cache_locked() causing the following splat: page dumped because: VM_BUG_ON_PAGE(page_memcg(

[PATCH 5.10 060/120] tracing/kprobe: Fix to support kretprobe events on unloaded modules

2021-02-08 Thread Greg Kroah-Hartman
From: Masami Hiramatsu commit 97c753e62e6c31a404183898d950d8c08d752dbd upstream. Fix kprobe_on_func_entry() returns error code instead of false so that register_kretprobe() can return an appropriate error code. append_trace_kprobe() expects the kprobe registration returns -ENOENT when the targe

[PATCH 5.10 065/120] libnvdimm/dimm: Avoid race between probe and available_slots_show()

2021-02-08 Thread Greg Kroah-Hartman
From: Dan Williams commit 7018c897c2f243d4b5f1b94bc6b4831a7eab80fb upstream. Richard reports that the following test: (while true; do cat /sys/bus/nd/devices/nmem*/available_slots 2>&1 > /dev/null done) & while true; do for i in $(seq 0 4); do echo nmem$i > /sys/bus/nd/driv

[PATCH 5.10 067/120] genirq/msi: Activate Multi-MSI early when MSI_FLAG_ACTIVATE_EARLY is set

2021-02-08 Thread Greg Kroah-Hartman
From: Marc Zyngier commit 4c457e8cb75eda91906a4f89fc39bde3f9a43922 upstream. When MSI_FLAG_ACTIVATE_EARLY is set (which is the case for PCI), __msi_domain_alloc_irqs() performs the activation of the interrupt (which in the case of PCI results in the endpoint being programmed) as soon as the inte

[PATCH 5.10 069/120] xhci: fix bounce buffer usage for non-sg list case

2021-02-08 Thread Greg Kroah-Hartman
From: Mathias Nyman commit d4a610635400ccc382792f6be69427078541c678 upstream. xhci driver may in some special cases need to copy small amounts of payload data to a bounce buffer in order to meet the boundary and alignment restrictions set by the xHCI specification. In the majority of these case

[PATCH 5.10 093/120] KVM: x86: Set so called reserved CR3 bits in LM mask at vCPU reset

2021-02-08 Thread Greg Kroah-Hartman
From: Sean Christopherson commit 031b91a5fe6f1ce61b7617614ddde9ed61e252be upstream. Set cr3_lm_rsvd_bits, which is effectively an invalid GPA mask, at vCPU reset. The reserved bits check needs to be done even if userspace never configures the guest's CPUID model. Cc: sta...@vger.kernel.org Fix

[PATCH 5.10 068/120] scripts: use pkg-config to locate libcrypto

2021-02-08 Thread Greg Kroah-Hartman
From: Rolf Eike Beer commit 2cea4a7a1885bd0c765089afc14f7ff0eb77864e upstream. Otherwise build fails if the headers are not in the default location. While at it also ask pkg-config for the libs, with fallback to the existing value. Signed-off-by: Rolf Eike Beer Cc: sta...@vger.kernel.org # 5.6

Re: [RFC v4 3/3] vfio: platform: reset: add msi support

2021-02-08 Thread Auger Eric
Hi Vikas, On 1/29/21 6:24 PM, Vikas Gupta wrote: > Add msi support for Broadcom FlexRm device. > > Signed-off-by: Vikas Gupta > --- > .../platform/reset/vfio_platform_bcmflexrm.c | 72 ++- > 1 file changed, 70 insertions(+), 2 deletions(-) > > diff --git a/drivers/vfio/platfor

[PATCH 5.10 064/120] libnvdimm/namespace: Fix visibility of namespace resource attribute

2021-02-08 Thread Greg Kroah-Hartman
From: Dan Williams commit 13f445d65955f388499f00851dc9a86280970f7c upstream. Legacy pmem namespaces lost support for the "resource" attribute when the code was cleaned up to put the permission visibility in the declaration. Restore this by listing 'resource' in the default attributes. A new ndc

[PATCH 5.10 092/120] KVM: x86: Update emulator context mode if SYSENTER xfers to 64-bit mode

2021-02-08 Thread Greg Kroah-Hartman
From: Sean Christopherson commit 943dea8af21bd896e0d6c30ea221203fb3cd3265 upstream. Set the emulator context to PROT64 if SYSENTER transitions from 32-bit userspace (compat mode) to a 64-bit kernel, otherwise the RIP update at the end of x86_emulate_insn() will incorrectly truncate the new RIP.

[PATCH 5.10 094/120] DTS: ARM: gta04: remove legacy spi-cs-high to make display work again

2021-02-08 Thread Greg Kroah-Hartman
From: H. Nikolaus Schaller commit 07af7810e0a5bc4e51682c90f9fa19fc4cb93f18 upstream. This reverts commit f1f028ff89cb ("DTS: ARM: gta04: introduce legacy spi-cs-high to make display work again") which had to be intruduced after commit 6953c57ab172 ("gpio: of: Handle SPI chipselect legacy bin

[PATCH 5.10 000/120] 5.10.15-rc1 review

2021-02-08 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.10.15 release. There are 120 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Wed, 10 Feb 2021 14:57:55 +. Anything re

[PATCH 5.10 012/120] usb: xhci-mtk: skip dropping bandwidth of unchecked endpoints

2021-02-08 Thread Greg Kroah-Hartman
From: Chunfeng Yun commit 54f6a8af372213a254af6609758d99f7c0b6b5ad upstream. For those unchecked endpoints, we don't allocate bandwidth for them, so no need free the bandwidth, otherwise will decrease the allocated bandwidth. Meanwhile use xhci_dbg() instead of dev_dbg() to print logs and rename

[PATCH 5.10 091/120] KVM: x86: fix CPUID entries returned by KVM_GET_CPUID2 ioctl

2021-02-08 Thread Greg Kroah-Hartman
From: Michael Roth commit 181f494888d5b178ffda41bed965f187d5e5c432 upstream. Recent commit 255cbecfe0 modified struct kvm_vcpu_arch to make 'cpuid_entries' a pointer to an array of kvm_cpuid_entry2 entries rather than embedding the array in the struct. KVM_SET_CPUID and KVM_SET_CPUID2 were updat

[PATCH 5.10 036/120] igc: set the default return value to -IGC_ERR_NVM in igc_write_nvm_srwr

2021-02-08 Thread Greg Kroah-Hartman
From: Kevin Lo [ Upstream commit ebc8d125062e7dccb7922b2190b097c20d88ad96 ] This patch sets the default return value to -IGC_ERR_NVM in igc_write_nvm_srwr. Without this change it wouldn't lead to a shadow RAM write EEWR timeout. Fixes: ab4056126813 ("igc: Add NVM support") Signed-off-by: Kevin

[PATCH 5.10 089/120] KVM: x86/mmu: Fix TDP MMU zap collapsible SPTEs

2021-02-08 Thread Greg Kroah-Hartman
From: Ben Gardon commit 87aa9ec939ec7277b730786e19c161c9194cc8ca upstream. There is a bug in the TDP MMU function to zap SPTEs which could be replaced with a larger mapping which prevents the function from doing anything. Fix this by correctly zapping the last level SPTEs. Cc: sta...@vger.kerne

[PATCH 5.10 088/120] KVM: SVM: Treat SVM as unsupported when running as an SEV guest

2021-02-08 Thread Greg Kroah-Hartman
From: Sean Christopherson commit ccd85d90ce092bdb047a7f6580f3955393833b22 upstream. Don't let KVM load when running as an SEV guest, regardless of what CPUID says. Memory is encrypted with a key that is not accessible to the host (L0), thus it's impossible for L0 to emulate SVM, e.g. it'll see

Re: [PATCH 01/20] net: phy: realtek: Fix events detection failure in LPI mode

2021-02-08 Thread Andrew Lunn
On Mon, Feb 08, 2021 at 05:03:22PM +0300, Serge Semin wrote: > It has been noticed that RTL8211E PHY stops detecting and reporting events > when EEE is successfully advertised and RXC stopping in LPI is enabled. > The freeze happens right after 3.0.10 bit (PC1R "Clock Stop Enable" > register) is se

[PATCH 5.10 090/120] KVM: x86: Allow guests to see MSR_IA32_TSX_CTRL even if tsx=off

2021-02-08 Thread Greg Kroah-Hartman
From: Paolo Bonzini commit 7131636e7ea5b50ca910f8953f6365ef2d1f741c upstream. Userspace that does not know about KVM_GET_MSR_FEATURE_INDEX_LIST will generally use the default value for MSR_IA32_ARCH_CAPABILITIES. When this happens and the host has tsx=on, it is possible to end up with virtual ma

<    6   7   8   9   10   11   12   13   14   15   >