[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 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 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 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 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

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 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.

[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 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 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.

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 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: [PATCH 4/4] perf tools: determine if LR is the return address

2021-02-08 Thread James Clark
On 22/01/2021 18:18, Alexandre Truong wrote: > +} > + > +static int add_entry(struct unwind_entry *entry, void *arg) > +{ > + struct entries *entries = arg; > + > + entries->stack[entries->i++] = entry->ip; > + return 0; > +} > + > +u64 get_leaf_frame_caller_aarch64(struct perf_samp

[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

Re: [PATCH iproute2-next V3] devlink: add support for port params get/set

2021-02-08 Thread David Ahern
On 2/2/21 6:04 AM, Oleksandr Mazur wrote: > Add implementation for the port parameters > getting/setting. > Add bash completion for port param. > Add man description for port param. > > Example: > $ devlink dev param set netdevsim/netdevsim0/0 name test_port_parameter value > false cmode runtime

[PATCH 20/49] perf/x86/intel: Add Alder Lake Hybrid support

2021-02-08 Thread kan . liang
From: Kan Liang Alder Lake Hybrid system has two different types of core, Golden Cove core and Gracemont core. The Golden Cove core is registered to "cpu_core" PMU. The Gracemont core is registered to "cpu_atom" PMU. The difference between the two PMUs include: - Number of GP and fixed counters

[PATCH 19/49] perf/x86: Support filter_match callback

2021-02-08 Thread kan . liang
From: Kan Liang Implement filter_match callback for X86, which check whether an event is schedulable on the current CPU. Reviewed-by: Andi Kleen Signed-off-by: Kan Liang --- arch/x86/events/core.c | 10 ++ arch/x86/events/perf_event.h | 1 + 2 files changed, 11 insertions(+) d

[PATCH 21/49] perf: Introduce PERF_TYPE_HARDWARE_PMU and PERF_TYPE_HW_CACHE_PMU

2021-02-08 Thread kan . liang
From: Kan Liang Current Hardware events and Hardware cache events have special perf types, PERF_TYPE_HARDWARE and PERF_TYPE_HW_CACHE. The two types don't pass the PMU type in the user interface. For a hybrid system, the perf subsystem doesn't know which PMU the events belong to. The first capable

[PATCH 23/49] perf/x86/msr: Add Alder Lake CPU support

2021-02-08 Thread kan . liang
From: Kan Liang PPERF and SMI_COUNT MSRs are also supported on Alder Lake. The External Design Specification (EDS) is not published yet. It comes from an authoritative internal source. The patch has been tested on real hardware. Reviewed-by: Andi Kleen Signed-off-by: Kan Liang --- arch/x86/

[PATCH 43/49] perf stat: Add default hybrid events

2021-02-08 Thread kan . liang
From: Jin Yao Previously if '-e' is not specified in perf stat, some software events and hardware events are added to evlist by default. root@otcpl-adl-s-2:~# ./perf stat -- ./triad_loop Performance counter stats for './triad_loop': 109.43 msec task-clock#0.99

[PATCH 22/49] perf/x86/intel/uncore: Add Alder Lake support

2021-02-08 Thread kan . liang
From: Kan Liang The uncore subsystem for Alder Lake is similar to the previous Tiger Lake. The difference includes: - New MSR addresses for global control, fixed counters, CBOX and ARB. Add a new adl_uncore_msr_ops for uncore operations. - Add a new threshold field for CBOX. - New PCIIDs for I

[PATCH 24/49] perf/x86/cstate: Add Alder Lake CPU support

2021-02-08 Thread kan . liang
From: Kan Liang Compared with the Rocket Lake, the CORE C1 Residency Counter is added for Alder Lake, but the CORE C3 Residency Counter is removed. Other counters are the same. Create a new adl_cstates for Alder Lake. Update the comments accordingly. The External Design Specification (EDS) is n

Re: [PATCH 2/3] mac80211: Add support to trigger sta disconnect on hardware restart

2021-02-08 Thread Guenter Roeck
On Tue, Dec 15, 2020 at 10:53:52PM +0530, Youghandhar Chintala wrote: > Currently in case of target hardware restart, we just reconfig and > re-enable the security keys and enable the network queues to start > data traffic back from where it was interrupted. > > Many ath10k wifi chipsets have sequ

[PATCH 25/49] perf/x86/rapl: Add support for Intel Alder Lake

2021-02-08 Thread kan . liang
From: Zhang Rui Alder Lake RAPL support is the same as previous Sky Lake. Add Alder Lake model for RAPL. Reviewed-by: Andi Kleen Signed-off-by: Zhang Rui --- arch/x86/events/rapl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/events/rapl.c b/arch/x86/events/rapl.c index 7dbb

[PATCH 42/49] perf evlist: Create two hybrid 'cycles' events by default

2021-02-08 Thread kan . liang
From: Jin Yao When evlist is empty, for example no '-e' specified in perf record, one default 'cycles' event is added to evlist. While on hybrid platform, it needs to create two default 'cycles' events. One is for core, the other is for atom. This patch actually calls evsel__new_cycles() two ti

[PATCH 44/49] perf stat: Uniquify hybrid event name

2021-02-08 Thread kan . liang
From: Jin Yao It would be useful to tell user the pmu which the event belongs to. perf-stat has supported '--no-merge' option and it can print the pmu name after the event name. Now this option is enabled by default for hybrid platform. Before: root@otcpl-adl-s-2:~# ./perf stat -e cycles -a --

Re: [PATCH v5 1/7] gpio: ep93xx: fix BUG_ON port F usage

2021-02-08 Thread Alexander Sverdlin
Hi Nikita! On Mon, 2021-02-08 at 11:59 +0300, Nikita Shubin wrote: > Two index spaces and ep93xx_gpio_port are confusing. > > Instead add a separate struct to store necessary data and remove > ep93xx_gpio_port. > > - add struct to store IRQ related data for each IRQ capable chip > - replace offs

[PATCH 27/49] perf util: Save pmu name to struct perf_pmu_alias

2021-02-08 Thread kan . liang
From: Jin Yao On hybrid platform, one event is available on one pmu (such as, cpu_core or cpu_atom). This patch saves the pmu name to the pmu field of struct perf_pmu_alias. Then next we can know the pmu where the event can be enabled. Reviewed-by: Andi Kleen Signed-off-by: Jin Yao --- tools

[PATCH 26/49] perf jevents: Support unit value "cpu_core" and "cpu_atom"

2021-02-08 Thread kan . liang
From: Jin Yao For some Intel platforms, such as Alderlake, which is a hybrid platform and it consists of atom cpu and core cpu. Each cpu has dedicated event list. Part of events are available on core cpu, part of events are available on atom cpu. The kernel exports new cpu pmus: cpu_core and cpu

[PATCH 46/49] perf stat: Filter out unmatched aggregation for hybrid event

2021-02-08 Thread kan . liang
From: Jin Yao perf-stat has supported some aggregation modes, such as --per-core, --per-socket and etc. While for hybrid event, it may only available on part of cpus. So for --per-core, we need to filter out the unavailable cores, for --per-socket, filter out the unavailable sockets, and so on.

[PATCH 29/49] perf pmu: Add hybrid helper functions

2021-02-08 Thread kan . liang
From: Jin Yao The functions perf_pmu__is_hybrid and perf_pmu__find_hybrid_pmu can be used to identify the hybrid platform and return the found hybrid cpu pmu. All the detected hybrid pmus have been saved in 'perf_pmu__hybrid_pmus' list. So we just need to search this list for a pmu name. perf_pm

[PATCH 31/49] perf stat: Hybrid evsel uses its own cpus

2021-02-08 Thread kan . liang
From: Jin Yao On hybrid platform, atom events can be only enabled on atom CPUs. Core events can be only enabled on core CPUs. So for a hybrid event, it can be only enabled on it's own CPUs. But what the problem for current perf is, the cpus for evsel (via PMU sysfs) have been merged to evsel_lis

[PATCH 45/49] perf stat: Merge event counts from all hybrid PMUs

2021-02-08 Thread kan . liang
From: Jin Yao For hybrid events, by default stat aggregates and reports the event counts per pmu. root@otcpl-adl-s-2:~# ./perf stat -e cycles -a -- sleep 1 Performance counter stats for 'system wide': 17,291,386 cycles [cpu_core] 1,556,803 cycles [cpu_atom]

[PATCH 47/49] perf evlist: Warn as events from different hybrid PMUs in a group

2021-02-08 Thread kan . liang
From: Jin Yao If a group has events which are from different hybrid PMUs, shows a warning. This is to remind the user not to put the core event and atom event into one group. root@otcpl-adl-s-2:~# ./perf stat -e "{cpu_core/cycles/,cpu_atom/cycles/}" -- sleep 1 WARNING: Group has events from di

Re: rcu: INFO: rcu_sched self-detected stall on CPU: Workqueue: xfs-conv/md0 xfs_end_io

2021-02-08 Thread Brian Foster
On Mon, Feb 08, 2021 at 06:57:24AM -0800, Paul E. McKenney wrote: > On Mon, Feb 08, 2021 at 09:07:24AM -0500, Brian Foster wrote: > > On Fri, Feb 05, 2021 at 09:12:40AM -0800, Paul E. McKenney wrote: > > > On Fri, Feb 05, 2021 at 08:29:06AM +0100, Paul Menzel wrote: > > > > Dear Linux folks, > > >

[PATCH 48/49] perf Documentation: Document intel-hybrid support

2021-02-08 Thread kan . liang
From: Jin Yao Add some words and examples to help understanding of Intel hybrid perf support. Reviewed-by: Andi Kleen Signed-off-by: Jin Yao --- tools/perf/Documentation/intel-hybrid.txt | 335 ++ tools/perf/Documentation/perf-record.txt | 1 + tools/perf/Docume

[PATCH 49/49] perf evsel: Adjust hybrid event and global event mixed group

2021-02-08 Thread kan . liang
From: Jin Yao A group mixed with hybrid event and global event is allowed. For example, group leader is 'cpu-clock' and the group member is 'cpu_atom/cycles/'. e.g. perf stat -e '{cpu-clock,cpu_atom/cycles/}' -a The challenge is their available cpus are not fully matched. For example, 'cpu-cloc

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

2021-02-08 Thread Peter Zijlstra
On Mon, Feb 08, 2021 at 09:33:00AM -0600, Josh Poimboeuf wrote: > 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

[PATCH] USB: serial: drop bogus to_usb_serial_port() checks

2021-02-08 Thread Johan Hovold
The to_usb_serial_port() macro is implemented using container_of() so there's no need to check for NULL. Note that neither bus match() or probe() is ever called with a NULL struct device pointer so the checks weren't just misplaced. Signed-off-by: Johan Hovold --- drivers/usb/serial/bus.c | 16

Re: [PATCH 11/18] arm64: Kconfig: Require FIQ support for ARCH_APPLE

2021-02-08 Thread Hector Martin
On 08/02/2021 21.05, Marc Zyngier wrote: I was trying to introduce the Kconfig before the code that depends on it; is it kosher to have it in the other order, looking for CONFIG_ defines that don't exist yet? Absolutely. The only requirement is to make sure that nothing breaks in the middle of

Re: [PATCH v5 2/7] gpio: ep93xx: Fix single irqchip with multi gpiochips

2021-02-08 Thread Alexander Sverdlin
Hello Nikita, On Mon, 2021-02-08 at 11:59 +0300, Nikita Shubin wrote: > Fixes the following warnings which results in interrupts disabled on > port B/F: > > gpio gpiochip1: (B): detected irqchip that is shared with multiple gpiochips: > please fix the driver. > gpio gpiochip5: (F): detected irqc

Re: Linux 4.9.256

2021-02-08 Thread Avi Kivity
On 05/02/2021 16.26, Greg Kroah-Hartman wrote: I'm announcing the release of the 4.9.256 kernel. This, and the 4.4.256 release are a little bit "different" than normal. This contains only 1 patch, just the version bump from .255 to .256 which ends up causing the userspace-visable LINUX_VERSION_

Re: [PATCH] bus: fsl-mc: Fix test for end of loop

2021-02-08 Thread Ioana Ciornei
On Mon, Feb 08, 2021 at 06:11:29PM +0300, Dan Carpenter wrote: > On Mon, Feb 08, 2021 at 02:18:04PM +, Ioana Ciornei wrote: > > On Mon, Feb 01, 2021 at 03:28:54PM +0300, Dan Carpenter wrote: > > > The "desc" pointer can't possibly be NULL here. If we can't find the > > > correct "desc" then tt

[for-linus][PATCH] tracing: Do not count ftrace events in top level enable output

2021-02-08 Thread Steven Rostedt
Steven Rostedt (VMware) (1): tracing: Do not count ftrace events in top level enable output kernel/trace/trace_events.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- commit 256cfdd6fdf70c6fcf0f7c8ddb0ebd73ce8f3bc9 Author: Steven Rostedt (VMware)

Re: [PATCH 08/18] arm64: cpufeature: Add a feature for FIQ support

2021-02-08 Thread Hector Martin
On 08/02/2021 20.29, Marc Zyngier wrote: I'm not sure we want to trust the FW on that particular front (no offence intended...;-). Hey, I don't even *use* the timers IRQs; if they are unmasked it's iBoot's fault! :-) That is my current take on this patch. Nothing in the arm64 kernel expects

Re: [PATCH v10 3/7] Documentation: ACPI: Document _DSE object usage for enum power state

2021-02-08 Thread Randy Dunlap
On 2/8/21 12:01 AM, Sakari Ailus wrote: > Hi Randy, > > On Fri, Feb 05, 2021 at 04:56:47PM -0800, Randy Dunlap wrote: >> On 2/5/21 5:25 AM, Sakari Ailus wrote: >>> Document the use of the _DSE object for setting desirable power state >>> during probe. >>> >>> Signed-off-by: Sakari Ailus >>> Revie

[PATCH] mm/vmalloc: use rb_tree instead of list for vread() lookups

2021-02-08 Thread Serapheim Dimitropoulos
vread() has been linearly searching vmap_area_list for looking up vmalloc areas to read from. These same areas are also tracked by a rb_tree (vmap_area_root) which offers logarithmic lookup. This patch modifies vread() to use the rb_tree structure instead of the list and the speedup for heavy /pro

[PATCH v6 1/2] procfs: Allow reading fdinfo with PTRACE_MODE_READ

2021-02-08 Thread Kalesh Singh
Android captures per-process system memory state when certain low memory events (e.g a foreground app kill) occur, to identify potential memory hoggers. In order to measure how much memory a process actually consumes, it is necessary to include the DMA buffer sizes for that process in the memory ac

Re: [PATCH] HID: intel-ish-hid: ipc: Add Tiger Lake H PCI device ID

2021-02-08 Thread Srinivas Pandruvada
On Thu, 2021-02-04 at 16:33 +0800, You-Sheng Yang wrote: > Added Tiger Lake H PCI device ID to the supported device list. > > Signed-off-by: You-Sheng Yang Acked-by: Srinivas Pandruvada > --- > drivers/hid/intel-ish-hid/ipc/hw-ish.h | 1 + > drivers/hid/intel-ish-hid/ipc/pci-ish.c | 1 + > 2

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

2021-02-08 Thread Kalesh Singh
And 'inode_no' field to /proc//fdinfo/ and /proc//task//fdinfo/. The inode numbers can be used to uniquely identify DMA buffers in user space and avoids a dependency on /proc//fd/* when accounting per-process DMA buffer sizes. Signed-off-by: Kalesh Singh Acked-by: Randy Dunlap --- Changes in v5

Re: [PATCH 5/6] driver core: lift dma_default_coherent into common code

2021-02-08 Thread Maciej W. Rozycki
On Mon, 8 Feb 2021, Christoph Hellwig wrote: > diff --git a/arch/mips/mti-malta/malta-setup.c > b/arch/mips/mti-malta/malta-setup.c > index e98cc977a735b2..f8c9663e7faa10 100644 > --- a/arch/mips/mti-malta/malta-setup.c > +++ b/arch/mips/mti-malta/malta-setup.c > @@ -143,7 +143,7 @@ static void _

Re: [reiser4 SFRN 5.1.3] kernel [5.10.x] read not supported for file /test-exec \(pid: 10094 comm: debootstrap\)

2021-02-08 Thread Edward Shishkin
On 02/08/2021 01:54 PM, Metztli Information Technology wrote: On Wed, Dec 23, 2020 at 3:40 PM Edward Shishkin wrote: On 12/23/2020 05:01 PM, Metztli Information Technology wrote: Niltze [Ð—Ð´Ñ€Ð°Ð²Ñ Ñ‚Ð²ÑƒÐ¹Ñ‚Ðµ : Hello], Ed- I built Linux kernel 5.10.1-1 within the 'Debian way' -- as usual

AW: [PATCH] drm/amdgpu: fix potential integer overflow on shift of a int

2021-02-08 Thread Walter Harms
thx for info Von: Christian König Gesendet: Montag, 8. Februar 2021 13:14:49 An: Walter Harms; Colin King; Alex Deucher; David Airlie; Daniel Vetter; Huang Rui; Junwei Zhang; amd-...@lists.freedesktop.org; dri-de...@lists.freedesktop.org Cc: kernel-janit.

Re: [PATCH net-next 5/9] net: squash switchdev attributes PRE_BRIDGE_FLAGS and BRIDGE_FLAGS

2021-02-08 Thread Ioana Ciornei
On Mon, Feb 08, 2021 at 01:21:37AM +0200, Vladimir Oltean wrote: > From: Vladimir Oltean > > There does not appear to be any strong reason why > br_switchdev_set_port_flag issues a separate notification for checking > the supported brport flags rather than just attempting to apply them and > prop

Re: [PATCH v2 2/2] dt-bindings: iio: adc: ad7124: add config nodes

2021-02-08 Thread Rob Herring
On Sat, Feb 6, 2021 at 9:26 AM Jonathan Cameron wrote: > > On Thu, 4 Feb 2021 13:35:51 +0200 > wrote: > > > From: Alexandru Tachici > > > > Document use of configurations in device-tree bindings. > > > > Signed-off-by: Alexandru Tachici > > Ignoring discussing in my reply to the cover letter...

Re: [PATCH v2 2/7] ASoC: codec: lpass-rx-macro: add support for lpass rx macro

2021-02-08 Thread Mark Brown
On Mon, Feb 08, 2021 at 02:17:14PM +, Srinivas Kandagatla wrote: > + SOC_SINGLE_EXT("RX_Softclip Enable", SND_SOC_NOPM, 0, 1, 0, > + rx_macro_soft_clip_enable_get, > + rx_macro_soft_clip_enable_put), > + SOC_SINGLE_EXT("AUX_HPF Enable", SND_SOC_NOPM, 0

Re: [PATCHv2] PCI: Add Silicom Denmark vendor ID

2021-02-08 Thread Tom Rix
On 2/8/21 7:01 AM, Martin Hundebøll wrote: > Update pci_ids.h with the vendor ID for Silicom Denmark. The define is > going to be referenced in driver(s) for FPGA accelerated smart NICs. > > Signed-off-by: Martin Hundebøll Reviewed-by: Tom Rix > --- > > Changes since v1: > * Align commit messa

Re: [PATCH 05/18] tty: serial: samsung_tty: add support for Apple UARTs

2021-02-08 Thread Hector Martin
On 08/02/2021 19.54, Krzysztof Kozlowski wrote: +enum s3c24xx_irq_type { + IRQ_DISCRETE = 0, + IRQ_S3C6400 = 1, + IRQ_APPLE = 2, It seems you add the third structure to differentiate type of UART. There is already port type and s3c24xx_serial_drv_data, no need for third struct

Re: [vdpa_sim_net] 79991caf52: net/ipv4/ipmr.c:#RCU-list_traversed_in_non-reader_section

2021-02-08 Thread Joe Jin
On 2/7/21 12:15 PM, Dongli Zhang wrote: > Is it possible that the issue is not due to this change? Looks this issue does not related your change, from dmesg output, when issue occurred, virtio was not loaded: [  502.508450] [ cut here ] [  502.511859] WARNING: CPU: 0 PID:

Re: [PATCH 5/6] driver core: lift dma_default_coherent into common code

2021-02-08 Thread Christoph Hellwig
On Mon, Feb 08, 2021 at 04:57:33PM +0100, Maciej W. Rozycki wrote: > > diff --git a/arch/mips/mti-malta/malta-setup.c > > b/arch/mips/mti-malta/malta-setup.c > > index e98cc977a735b2..f8c9663e7faa10 100644 > > --- a/arch/mips/mti-malta/malta-setup.c > > +++ b/arch/mips/mti-malta/malta-setup.c > >

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

2021-02-08 Thread Yu, Yu-cheng
On 2/7/2021 2:35 PM, Dave Hansen wrote: On 2/7/21 12:44 PM, Alexei Starovoitov wrote: It probably is an item on some Intel manager's to-enable list. So far, the CET enablement concentrates only on userspace but dhansen might know more about future plans. CCed. It's definitely on our radar to lo

Re: [PATCH] mm/list_lru.c: remove kvfree_rcu_local()

2021-02-08 Thread Kirill Tkhai
On 07.02.2021 18:21, Shakeel Butt wrote: > The list_lru file used to have local kvfree_rcu() which was renamed by > commit e0feed08ab41 ("mm/list_lru.c: Rename kvfree_rcu() to local > variant") to introduce the globally visible kvfree_rcu(). Now we have > global kvfree_rcu(), so remove the local kv

[GIT PULL] cpupower update for Linux 5.12-rc1

2021-02-08 Thread Shuah Khan
Hi Rafael, Please pull the following cpupower update for Linux 5.12-rc1 This cpupower update for Linux 5.12-rc1 consists of: - Updates to the cpupower command to add support for AMD family 0x19 and cleanup the code to remove many of the family checks to make future family updates easier. -

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

2021-02-08 Thread Steven Rostedt
On Mon, 8 Feb 2021 16:47:05 +0100 Peter Zijlstra wrote: > > /* > > * Convert a function address into the appropriate ftrace location. > > * > > * Usually this is just the address of the function, but on some > > architectures > > * it's more complicated so allow them to provide a custom beha

Re: [net-next PATCH v5 10/15] net: mdio: Add ACPI support code for mdio

2021-02-08 Thread Andy Shevchenko
On Mon, Feb 8, 2021 at 5:14 PM Calvin Johnson wrote: > > Define acpi_mdiobus_register() to Register mii_bus and create PHYs for > each ACPI child node. ... > +/** > + * acpi_mdiobus_register - Register mii_bus and create PHYs from the ACPI > ASL. > + * Redundant blank line. > + * @mdio: poin

Re: [PATCH 05/18] tty: serial: samsung_tty: add support for Apple UARTs

2021-02-08 Thread Hector Martin
On 08/02/2021 18.36, Krzysztof Kozlowski wrote: Please use the scripts/get_maintainers.pl to get the list of people to Cc. The script would point necessary folks. I thought I'd try Thomas first since he introduced the IRQF_SHARED specifically, but I should've gone straight to maintainers (I di

Re: [PATCH v2 2/7] ASoC: codec: lpass-rx-macro: add support for lpass rx macro

2021-02-08 Thread Srinivas Kandagatla
On 08/02/2021 16:08, Mark Brown wrote: + SOC_SINGLE_EXT("RX_Softclip Enable", SND_SOC_NOPM, 0, 1, 0, +rx_macro_soft_clip_enable_get, +rx_macro_soft_clip_enable_put), + SOC_SINGLE_EXT("AUX_HPF Enable", SND_SOC_NOPM, 0, 1, 0, +

[PATCH] vdpa/mlx5: fix param validation in mlx5_vdpa_get_config()

2021-02-08 Thread Stefano Garzarella
It's legal to have 'offset + len' equal to sizeof(struct virtio_net_config), since 'ndev->config' is a 'struct virtio_net_config', so we can safely copy its content under this condition. Fixes: 1a86b377aa21 ("vdpa/mlx5: Add VDPA driver for supported mlx5 devices") Cc: sta...@vger.kernel.org Signed

Re: [PATCH 05/18] tty: serial: samsung_tty: add support for Apple UARTs

2021-02-08 Thread Hector Martin
On 08/02/2021 19.34, Marc Zyngier wrote: On 2021-02-07 09:12, Hector Martin 'marcan' wrote: On 06/02/2021 22.15, Marc Zyngier wrote: Do you actually need a new port type here? Looking at the driver itself, it is mainly used to work out the IRQ model. Maybe introducing a new irq_type field in th

[ANNOUNCE] 4.19.173-rt72

2021-02-08 Thread Tom Zanussi
Hello RT Folks! I'm pleased to announce the 4.19.173-rt72 stable release. This release is just an update to the new stable 4.19.173 version and no RT specific changes have been made. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt

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: > Define phylink_fwnode_phy_connect() to connect phy specified by > a fwnode to a phylink instance. > > Signed-off-by: Calvin Johnson Also, the subject line should be "net: phylink: ..." Consistency is really appreciated. Thanks.

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

2021-02-08 Thread Andy Shevchenko
On Mon, Feb 8, 2021 at 5:15 PM Calvin Johnson wrote: > > 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

Re: [PATCH 8/8] sched/fair: Relax task_hot() for misfit tasks

2021-02-08 Thread Vincent Guittot
On Thu, 28 Jan 2021 at 19:32, Valentin Schneider wrote: > > Misfit tasks can and will be preempted by the stopper to migrate them over > to a higher-capacity CPU. However, when runnable but not current misfit > tasks are scanned by the load balancer (i.e. detach_tasks()), the > task_hot() ratelimi

Re: [RFC v1 05/26] x86/traps: Add #VE support for TDX guest

2021-02-08 Thread Andi Kleen
> Which is supposedly then set up to avoid #VE during the syscall gap, > yes? Which then results in #VE not having to be IST. Yes that is currently true because all memory is pre-accepted. If we ever do lazy accept we would need to make sure the memory accessed in the syscall gap is already accep

[PATCH] drm/panel: Add inx Himax8279d MIPI-DSI LCD panel

2021-02-08 Thread Zhengqiao Xia
Support inx Himax8279d 8.0" 1200x1920 TFT LCD panel, it is a MIPI DSI panel. Signed-off-by: Zhengqiao Xia --- drivers/gpu/drm/panel/Kconfig | 9 + drivers/gpu/drm/panel/Makefile| 1 + .../gpu/drm/panel/panel-innolux-himax8279d.c | 542 ++ 3 fi

[PATCH] x86/build: Disable CET instrumentation in the kernel for 32-bit too

2021-02-08 Thread Borislav Petkov
On Mon, Feb 08, 2021 at 10:19:33AM -0500, AC wrote: > That did fix it, thank you! Thanks! --- From: Borislav Petkov Date: Mon, 8 Feb 2021 16:43:30 +0100 Subject: [PATCH] x86/build: Disable CET instrumentation in the kernel for 32-bit too Commit 20bf2b378729 ("x86/build: Disable CET instrume

Re: [PATCH net-next RESEND 3/5] net: stmmac: dwmac-sun8i: Use reset_control_reset

2021-02-08 Thread Alexander Duyck
On Sun, Feb 7, 2021 at 10:32 PM Samuel Holland wrote: > > Use the appropriate function instead of reimplementing it, > and update the error message to match the code. > > Reviewed-by: Chen-Yu Tsai > Signed-off-by: Samuel Holland > --- > drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 6 ++--

[git pull] habanalabs second pull request for kernel 5.12

2021-02-08 Thread Oded Gabbay
Hi Greg, This is habanalabs second pull request for the merge window of kernel 5.12. It contains important fixes, especially in the firmware-related code. Details are in the tag. Thanks, Oded The following changes since commit 369aea84595189200a2e6b028f556a7efa0ec489: mei: implement client dm

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

2021-02-08 Thread Russell King - ARM Linux admin
On Mon, Feb 08, 2021 at 08:42:44PM +0530, Calvin Johnson wrote: > 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. > >

Re: Linux 4.9.256

2021-02-08 Thread Greg Kroah-Hartman
On Mon, Feb 08, 2021 at 05:50:21PM +0200, Avi Kivity wrote: > On 05/02/2021 16.26, Greg Kroah-Hartman wrote: > > I'm announcing the release of the 4.9.256 kernel. > > > > This, and the 4.4.256 release are a little bit "different" than normal. > > > > This contains only 1 patch, just the version b

Re: [PATCH v7 00/23] arm64: Early CPU feature override, and applications to VHE, BTI and PAuth

2021-02-08 Thread Marc Zyngier
On 2021-02-08 14:32, Will Deacon wrote: Hi Marc, On Mon, Feb 08, 2021 at 09:57:09AM +, Marc Zyngier wrote: It recently came to light that there is a need to be able to override some CPU features very early on, before the kernel is fully up and running. The reasons for this range from specif

Re: [RFC v1 05/26] x86/traps: Add #VE support for TDX guest

2021-02-08 Thread Peter Zijlstra
On Mon, Feb 08, 2021 at 08:23:01AM -0800, Andi Kleen wrote: > > Which is supposedly then set up to avoid #VE during the syscall gap, > > yes? Which then results in #VE not having to be IST. > > Yes that is currently true because all memory is pre-accepted. > > If we ever do lazy accept we would n

Re: [PATCH v3 2/3] mm, slub: don't combine pr_err with INFO

2021-02-08 Thread Vlastimil Babka
On 2/8/21 11:14 AM, Yafang Shao wrote: > It is strange to combine "pr_err" with "INFO", so let's remove the > prefix completely. > This patch is motivated by David's comment[1]. > > - before the patch > [ 8846.517809] INFO: Slab 0xf42a2c60 objects=33 used=3 > fp=0x60d32ca8 flags=0

Re: [PATCH v2 1/1] powerpc/kvm: Save Timebase Offset to fix sched_clock() while running guest code.

2021-02-08 Thread Leonardo Bras
Hello Nick, On Sat, 2021-02-06 at 13:03 +1000, Nicholas Piggin wrote: > Excerpts from Leonardo Bras's message of February 5, 2021 5:01 pm: > > Hey Nick, thanks for reviewing :) > > > > On Fri, 2021-02-05 at 16:28 +1000, Nicholas Piggin wrote: > > > Excerpts from Leonardo Bras's message of Februar

Re: [PATCH] ASoC: soc-pcm: change error message to debug message

2021-02-08 Thread Pierre-Louis Bossart
On 2/8/21 2:12 AM, Shengjiu Wang wrote: This log message should be a debug message, because it doesn't return directly but continue next loop. Signed-off-by: Shengjiu Wang --- sound/soc/soc-pcm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/soc-pcm.c b

memory leak in virtio_transport_send_pkt_info

2021-02-08 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:9f29bd8b Merge tag 'fs_for_v5.11-rc5' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=11e435af50 kernel config: https://syzkaller.appspot.com/x/.config?x=162a0109d6ff731f das

Re: [PATCH] MIPS: Make check condition for SDBBP consistent with EJTAG spec

2021-02-08 Thread Jiaxun Yang
On Mon, Feb 8, 2021, at 9:14 PM, Tiezhu Yang wrote: > According to MIPS EJTAG Specification [1], a Debug Breakpoint > exception occurs when an SDBBP instruction is executed, the > CP0_DEBUG bit DBp indicates that a Debug Breakpoint exception > occurred, just check bit DBp for SDBBP is more accur

[RFC PATCH 2/8] gpu: host1x: Add context bus

2021-02-08 Thread Mikko Perttunen
The context bus is a "dummy" bus that contains struct devices that correspond to IOMMU contexts assigned through Host1x to processes. Even when host1x itself is built as a module, the bus is registered in built-in code so that the built-in ARM SMMU driver is able to reference it. Signed-off-by: M

[RFC PATCH 7/8] drm/tegra: Support context isolation

2021-02-08 Thread Mikko Perttunen
For engines that support context isolation, allocate a context when opening a channel, and set up stream ID offset and context fields when submitting a job. Signed-off-by: Mikko Perttunen --- drivers/gpu/drm/tegra/drm.h | 1 + drivers/gpu/drm/tegra/uapi.h| 1 + drivers/gpu/drm/

[RFC PATCH 5/8] iommu/arm-smmu: Attach to host1x context device bus

2021-02-08 Thread Mikko Perttunen
Set itself as the IOMMU for the host1x context device bus, containing "dummy" devices used for Host1x context isolation. Signed-off-by: Mikko Perttunen --- drivers/iommu/arm/arm-smmu/arm-smmu.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu

Re: [GIT PULL] cpupower update for Linux 5.12-rc1

2021-02-08 Thread Rafael J. Wysocki
On Mon, Feb 8, 2021 at 5:11 PM Shuah Khan wrote: > > Hi Rafael, > > Please pull the following cpupower update for Linux 5.12-rc1 > > This cpupower update for Linux 5.12-rc1 consists of: > > - Updates to the cpupower command to add support for AMD family 0x19 >and cleanup the code to remove man

[RFC PATCH 3/8] gpu: host1x: Add context device management code

2021-02-08 Thread Mikko Perttunen
Add code to register context devices from device tree, allocate them out and manage their refcounts. Signed-off-by: Mikko Perttunen --- drivers/gpu/host1x/Makefile | 1 + drivers/gpu/host1x/context.c | 161 +++ drivers/gpu/host1x/context.h | 27 ++ drivers

[RFC PATCH 8/8] drm/tegra: vic: Implement get_streamid_offset

2021-02-08 Thread Mikko Perttunen
Implement the get_streamid_offset required for supporting context isolation. Since old firmware cannot support context isolation without hacks that we don't want to implement, check the firmware binary to see if context isolation should be enabled. Signed-off-by: Mikko Perttunen --- drivers/gpu/

[RFC PATCH 6/8] arm64: tegra: Add Host1x context stream IDs on Tegra186+

2021-02-08 Thread Mikko Perttunen
Add Host1x context stream IDs on systems that support Host1x context isolation. Host1x and attached engines can use these stream IDs to allow isolation between memory used by different processes. The specified stream IDs must match those configured by the hypervisor, if one is present. Signed-off

Re: linux-next: build warning after merge of the v4l-dvb tree

2021-02-08 Thread Ezequiel Garcia
Hi Stephen, On Mon, 2021-02-08 at 23:37 +1100, Stephen Rothwell wrote: > Hi all, > > After merging the v4l-dvb tree, today's linux-next build (htmldocs) > produced this warning: > > include/media/v4l2-async.h:178: warning: expecting prototype for > v4l2_async_notifier_add_fwnode_subdev(). Proto

<    1   2   3   4   5   6   7   8   9   10   >