Re: [RFC PATCH] selinux: Add denied trace with permssion filter

2020-08-26 Thread Paul Moore
On Mon, Aug 24, 2020 at 9:23 AM Peter Enderborg wrote: > > This adds tracing of all denies. They are grouped with trace_seq for > each audit. > > A filter can be inserted with a write to it's filter section. > > echo "permission==\"entrypoint\"" > events/avc/selinux_denied/filter > > A output will

[GIT PULL] USB fixes for 5.9-rc3

2020-08-26 Thread Greg KH
The following changes since commit 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5: Linux 5.9-rc1 (2020-08-16 13:04:57 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git tags/usb-5.9-rc3 for you to fetch changes up to 23e26d0577535f5ffe4ff8e

[GIT PULL] Char/Misc driver fixes for 5.9-rc3

2020-08-26 Thread Greg KH
The following changes since commit 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5: Linux 5.9-rc1 (2020-08-16 13:04:57 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git tags/char-misc-5.9-rc3 for you to fetch changes up to 9c97cecab0

[GIT PULL] Hyper-V fixes for 5.9-rc3

2020-08-26 Thread Wei Liu
Hi Linus Please pull the following changes since commit b9d8cf2eb3ceecdee3434b87763492aee9e28845: x86/hyperv: Make hv_setup_sched_clock inline (2020-08-11 10:41:15 +) are available in the Git repository at: ssh://g...@gitolite.kernel.org/pub/scm/linux/kernel/git/hyperv/linux.git tags/

Re: [PATCH] intel_idle: Add ICL support

2020-08-26 Thread Zhang Rui
On Wed, 2020-08-26 at 15:32 +0200, Guilhem Lettron wrote: > On Wed, 26 Aug 2020 at 15:18, Artem Bityutskiy > wrote: > > > > On Wed, 2020-08-26 at 16:16 +0300, Artem Bityutskiy wrote: > > > Just get a reasonably new turbostat (it is part of the kernel > > > tree, you > > > can compile it yourself)

Re: [PATCH] Documentation/llvm: Improve formatting of commands, variables, and arguments

2020-08-26 Thread Nick Desaulniers
On Tue, Aug 25, 2020 at 4:14 PM Nathan Chancellor wrote: > > While reviewing a separate patch, I noticed that the formatting of the > commands, variables, and arguments was not in a monospaced font like the > rest of the Kbuild documentation (see kbuild/kconfig.rst for an > example). This is due t

RE: x86/kprobes: kretprobe fails to triggered if kprobe at function entry is not optimized (trigger by int3 breakpoint)

2020-08-26 Thread eddy...@trendmicro.com
> -Original Message- > From: pet...@infradead.org > Sent: Wednesday, August 26, 2020 6:26 PM > To: Masami Hiramatsu > Cc: Eddy Wu (RD-TW) ; linux-kernel@vger.kernel.org; > x...@kernel.org > Subject: Re: x86/kprobes: kretprobe fails to triggered if kprobe at function > entry is not opt

Re: [PATCH] intel_idle: Add ICL support

2020-08-26 Thread Guilhem Lettron
On Wed, 26 Aug 2020 at 15:17, Rafael J. Wysocki wrote: > > On Wed, Aug 26, 2020 at 2:59 PM Guilhem Lettron wrote: > > > > On my laptop, a Dell XPS 13 7390 2-in-1 with i7-1065G7, ACPI only report > > "C1_ACPI", "C2_ACPI" and "C3_ACPI". > > Can you list the properties of the idle states in this co

Re: [PATCH] intel_idle: Add ICL support

2020-08-26 Thread Guilhem Lettron
On Wed, 26 Aug 2020 at 15:18, Artem Bityutskiy wrote: > > On Wed, 2020-08-26 at 16:16 +0300, Artem Bityutskiy wrote: > > Just get a reasonably new turbostat (it is part of the kernel tree, you > > can compile it yourself) and run it for few seconds (like 'turbostat > > sleep 10'), get the output (

Re: [RESEND PATCH v3 5/8] mtd: spi-nor: cadence-quadspi: Handle probe deferral while requesting DMA channel

2020-08-26 Thread Jan Kiszka
On 26.08.20 14:18, Vignesh Raghavendra wrote: > > > On 8/26/20 3:42 PM, Jan Kiszka wrote: >> On 24.08.20 19:20, Jan Kiszka wrote: >>> On 24.08.20 14:49, Jan Kiszka wrote: On 24.08.20 13:45, Vignesh Raghavendra wrote: > > > On 8/22/20 11:35 PM, Jan Kiszka wrote: >> On 01.06.20

Re: [PATCH 1/2] Input; Sanitize event code before modifying bitmaps

2020-08-26 Thread Marc Zyngier
Hi Dmitry, On 2020-08-24 20:51, Dmitry Torokhov wrote: Hi Marc, On Mon, Aug 17, 2020 at 12:26:59PM +0100, Marc Zyngier wrote: When calling into input_set_capability(), the passed event code is blindly used to set a bit in a number of bitmaps, without checking whether this actually fits the exp

[PATCH] crypto: af_alg - Work around empty control messages without MSG_MORE

2020-08-26 Thread Herbert Xu
The iwd daemon uses libell which sets up the skcipher operation with two separate control messages. This is fine by itself but the first control message is sent without MSG_MORE. This means that the first control message is interpreted as an empty request. While libell should be fixed to use MSG

Hello My Dearest

2020-08-26 Thread Mrs. Sophia Robin
Hello My Dearest Please I appeal to you to exercise a little patience and read through my mail carefully, I am contacting you personally for investment assistance and a long term business relationship in your Country. I am Mrs. Sophia Robin a citizen of the united state of America; I work in HSBC

Re: [PATCH] docs: trace: ring-buffer-design.rst: use the new SPDX tag

2020-08-26 Thread Mauro Carvalho Chehab
Em Wed, 26 Aug 2020 06:47:33 -0600 Jonathan Corbet escreveu: > On Wed, 26 Aug 2020 09:28:24 +0200 > Mauro Carvalho Chehab wrote: > > > SPDX v3.10 gained support for GFDL-1.2 with no invariant sections: > > > > https://spdx.org/licenses/GFDL-1.2-invariants-only.html > > > > Let's use it, i

Re: [PATCH 0/4] -ffreestanding/-fno-builtin-* patches

2020-08-26 Thread Masahiro Yamada
On Tue, Aug 25, 2020 at 11:02 PM Nick Desaulniers wrote: > > On Tue, Aug 25, 2020 at 5:30 AM Masahiro Yamada wrote: > > > > On Tue, Aug 25, 2020 at 4:10 PM Nick Desaulniers > > wrote: > > > > > > Masahiro, are you implying that we shouldn't take the > > > -fno-builtin-stpcpy patch, because Clang

Re: [PATCH] crypto: inside-secure - use kfree_sensitive()

2020-08-26 Thread Herbert Xu
On Wed, Aug 26, 2020 at 04:15:14PM +0300, Denis Efremov wrote: > Use kfree_sensitive() instead of open-coding it. > > Signed-off-by: Denis Efremov > --- > drivers/crypto/inside-secure/safexcel_hash.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Please redo this as a patch series.

Re: [PATCH] m68k: mm: Remove superfluous memblock_alloc*() casts

2020-08-26 Thread Mike Rapoport
On Wed, Aug 26, 2020 at 03:04:44PM +0200, Geert Uytterhoeven wrote: > The return type of memblock_alloc*() is a void pointer, so there is no > need to cast it to "void *" or some other pointer type, before assigning > it to a pointer variable. > > Signed-off-by: Geert Uytterhoeven Reviewed-by: M

Re: [PATCH v3] nvmem: mtk-efuse: Remove EFUSE register write support

2020-08-26 Thread andrew-ct chen
Hi Chih-En, On Wed, 2020-08-26 at 16:39 +0800, Chih-En Hsu wrote: > This patch is to remove function "mtk_reg_write" since > Mediatek EFUSE hardware only supports read functionality > for NVMEM consumers. Acked-by: Andrew-CT Chen > > Fixes: ba360fd040e3 ("nvmem: mtk-efuse: remove nvmem regmap

Re: [PATCH 2/4] tty: atmel_serial: convert tasklets to use new tasklet_setup() API

2020-08-26 Thread Richard Genoud
Le 17/08/2020 à 10:59, Allen Pais a écrit : > From: Allen Pais > > In preparation for unconditionally passing the > struct tasklet_struct pointer to all tasklet > callbacks, switch to using the new tasklet_setup() > and from_tasklet() to pass the tasklet pointer explicitly. > > Signed-off-by: Ro

Re: [PATCH] audit: Remove redundant null check

2020-08-26 Thread Paul Moore
On Wed, Aug 26, 2020 at 12:00 AM Xu Wang wrote: > > Because kfree_skb already checked NULL skb parameter, > so the additional check is unnecessary, just remove it. > > Signed-off-by: Xu Wang > --- > kernel/audit.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Merged into audit/next,

Re: [PATCH v3 00/10] kbuild: clang-tidy

2020-08-26 Thread Masahiro Yamada
On Sat, Aug 22, 2020 at 11:56 PM Masahiro Yamada wrote: > > I improved gen_compile_commands.py, > then rebased Nathan's v7 [1] on top of them. > To save time, I modified the Makefile part. > No change for run-clang-tools.py > > "make clang-tidy" should work in-tree build, > out-of-tree build (O=),

[GIT PULL] virtio: bugfixes

2020-08-26 Thread Michael S. Tsirkin
The following changes since commit d012a7190fc1fd72ed48911e77ca97ba4521bccd: Linux 5.9-rc2 (2020-08-23 14:08:43 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git tags/for_linus for you to fetch changes up to cbb523594eb718944b726ba5

Re: [PATCH] mm: memcg: Fix memcg reclaim soft lockup

2020-08-26 Thread Michal Hocko
On Wed 26-08-20 21:16:28, xunlei wrote: [...] > oom_reaper also can't get scheduled because of 1-cpu, and the mutex > uses might_sleep() which is noop in case of "CONFIG_PREEMPT_VOLUNTARY is > not set" I mentioned in the commit log. OK, I see. I have clearly missed the 1cpu configuration. Sorry ab

[PATCH] drm/amd/display: Fix memleak in amdgpu_dm_mode_config_init

2020-08-26 Thread Dinghao Liu
When amdgpu_display_modeset_create_props() fails, state and state->context should be freed to prevent memleak. It's the same when amdgpu_dm_audio_init() fails. Signed-off-by: Dinghao Liu --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 10 -- 1 file changed, 8 insertions(+), 2 del

Re: [PATCH] crypto: amlogic - use kfree_sensitive()

2020-08-26 Thread Corentin Labbe
On Wed, Aug 26, 2020 at 04:16:57PM +0300, Denis Efremov wrote: > Use kfree_sensitive() instead of open-coding it. > > Signed-off-by: Denis Efremov > --- > drivers/crypto/amlogic/amlogic-gxl-cipher.c | 6 ++ > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/crypto/am

Re: [PATCH] perf inject: correct event attribute sizes

2020-08-26 Thread Al Grant
On 26/08/2020 12:27, Mark Rutland wrote: On Wed, Aug 26, 2020 at 10:42:04AM +0100, Al Grant wrote: When perf inject reads a perf.data file from an older version of perf, it writes event attributes into the output with the original size field, but lays them out as if they had the size currently u

Re: [PATCH] aio: use wait_for_completion_io() when waiting for completion of io

2020-08-26 Thread Jan Kara
On Wed 05-08-20 09:35:51, Xianting Tian wrote: > When waiting for the completion of io, we need account iowait time. As > wait_for_completion() calls schedule_timeout(), which doesn't account > iowait time. While wait_for_completion_io() calls io_schedule_timeout(), > which will account iowait time

Re: [PATCH] x86/irq: Preserve vector in orig_ax for APIC code

2020-08-26 Thread Josh Poimboeuf
On Wed, Aug 26, 2020 at 01:53:57PM +0200, Alexander Graf wrote: > -.macro idtentry_body cfunc has_error_code:req > +.macro idtentry_body cfunc has_error_code:req preserve_error_code:req > > callerror_entry > UNWIND_HINT_REGS > @@ -328,7 +328,9 @@ SYM_CODE_END(ret_from_fork) > >

[PATCH] iio: adc: exynos_adc: Replace indio_dev->mlock with own device lock

2020-08-26 Thread Alexandru Ardelean
From: Sergiu Cuciurean As part of the general cleanup of indio_dev->mlock, this change replaces it with a local lock, to protect potential concurrent access to the completion callback during a conversion. Signed-off-by: Sergiu Cuciurean Signed-off-by: Alexandru Ardelean --- drivers/iio/adc/ex

Re: [PATCH] intel_idle: Add ICL support

2020-08-26 Thread Rafael J. Wysocki
On Wed, Aug 26, 2020 at 3:18 PM Artem Bityutskiy wrote: > > On Wed, 2020-08-26 at 16:16 +0300, Artem Bityutskiy wrote: > > Just get a reasonably new turbostat (it is part of the kernel tree, you > > can compile it yourself) and run it for few seconds (like 'turbostat > > sleep 10'), get the output

Re: [RFC] perf/core: Fixes hung issue on perf stat command during cpu hotplug

2020-08-26 Thread Arnaldo Carvalho de Melo
Em Wed, Aug 26, 2020 at 03:02:36PM +0530, Kajol Jain escreveu: > Commit 2ed6edd33a21 ("perf: Add cond_resched() to task_function_call()") > added assignment of ret value as -EAGAIN in case function > call to 'smp_call_function_single' fails. > For non-zero ret value, it did > 'ret = !ret ? data.re

Re: [PATCH] intel_idle: Add ICL support

2020-08-26 Thread Rafael J. Wysocki
On Wed, Aug 26, 2020 at 3:09 PM Artem Bityutskiy wrote: > > On Wed, 2020-08-26 at 15:03 +0200, Guilhem Lettron wrote: > > On Wed, 26 Aug 2020 at 14:43, Rafael J. Wysocki wrote: > > > On Wed, Aug 26, 2020 at 2:05 PM Guilhem Lettron > > > wrote: > > > > Use the same C-states as SKL > > > > > > Wh

Re: [PATCH 2/2] perf parse-events: Avoid an uninitialized read.

2020-08-26 Thread Arnaldo Carvalho de Melo
Em Wed, Aug 26, 2020 at 01:34:18PM +0200, Jiri Olsa escreveu: > On Tue, Aug 25, 2020 at 09:29:10PM -0700, Ian Rogers wrote: > > With a fake_pmu the pmu_info isn't populated by perf_pmu__check_alias. > > In this case, don't try to copy the uninitialized values to the evsel. > > > > Signed-off-by: I

Re: [PATCH] intel_idle: Add ICL support

2020-08-26 Thread Guilhem Lettron
On Wed, 26 Aug 2020 at 15:09, Artem Bityutskiy wrote: > > On Wed, 2020-08-26 at 15:03 +0200, Guilhem Lettron wrote: > > On my laptop, a Dell XPS 13 7390 2-in-1 with i7-1065G7, ACPI only > > report "C1_ACPI", "C2_ACPI" and "C3_ACPI". > > Did you try to dig into the BIOS menus and check if you can e

Re: [PATCH] intel_idle: Add ICL support

2020-08-26 Thread Artem Bityutskiy
On Wed, 2020-08-26 at 16:16 +0300, Artem Bityutskiy wrote: > Just get a reasonably new turbostat (it is part of the kernel tree, you > can compile it yourself) and run it for few seconds (like 'turbostat > sleep 10'), get the output (will be a lot of it), and we can check what > is actually going o

Re: [PATCH] intel_idle: Add ICL support

2020-08-26 Thread Rafael J. Wysocki
On Wed, Aug 26, 2020 at 2:59 PM Guilhem Lettron wrote: > > On my laptop, a Dell XPS 13 7390 2-in-1 with i7-1065G7, ACPI only report > "C1_ACPI", "C2_ACPI" and "C3_ACPI". Can you list the properties of the idle states in this configuration, that is: $ grep -r '.*' /sys/devices/system/cpu/cpu0/cp

[PATCH] crypto: amlogic - use kfree_sensitive()

2020-08-26 Thread Denis Efremov
Use kfree_sensitive() instead of open-coding it. Signed-off-by: Denis Efremov --- drivers/crypto/amlogic/amlogic-gxl-cipher.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/amlogic/amlogic-gxl-cipher.c b/drivers/crypto/amlogic/amlogic-gxl-cipher.c index

Re: [PATCH] intel_idle: Add ICL support

2020-08-26 Thread Artem Bityutskiy
On Wed, 2020-08-26 at 15:03 +0200, Guilhem Lettron wrote: > On Wed, 26 Aug 2020 at 14:43, Rafael J. Wysocki wrote: > > On Wed, Aug 26, 2020 at 2:05 PM Guilhem Lettron wrote: > > > Use the same C-states as SKL > > > > Why is this change needed? > > On my laptop, a Dell XPS 13 7390 2-in-1 with i7

Re: [PATCH] mm: memcg: Fix memcg reclaim soft lockup

2020-08-26 Thread xunlei
On 2020/8/26 下午8:48, Michal Hocko wrote: > On Wed 26-08-20 20:21:39, xunlei wrote: >> On 2020/8/26 下午8:07, Michal Hocko wrote: >>> On Wed 26-08-20 20:00:47, xunlei wrote: On 2020/8/26 下午7:00, Michal Hocko wrote: > On Wed 26-08-20 18:41:18, xunlei wrote: >> On 2020/8/26 下午4:11, Michal H

[PATCH] crypto: inside-secure - use kfree_sensitive()

2020-08-26 Thread Denis Efremov
Use kfree_sensitive() instead of open-coding it. Signed-off-by: Denis Efremov --- drivers/crypto/inside-secure/safexcel_hash.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/crypto/inside-secure/safexcel_hash.c b/drivers/crypto/inside-secure/safexcel_hash.c index

Re: (EXT) Re: (EXT) Re: (EXT) Re: (EXT) Re: (EXT) Re: [PATCH 2/2] ARM: dts: imx6qdl: tqma6: minor fixes

2020-08-26 Thread Matthias Schiffer
On Wed, 2020-08-26 at 10:01 -0300, Fabio Estevam wrote: > On Wed, Aug 26, 2020 at 8:54 AM Matthias Schiffer > wrote: > > > Before 8cdcd8aeee281, num_chipselect was set to 3 for spi0 and to 1 > > for > > spi1 in arch/arm/mach-imx/mach-mx31lite.c. My understanding is that > > it > > would make sens

Re: [PATCH] intel_idle: Add ICL support

2020-08-26 Thread Artem Bityutskiy
On Wed, 2020-08-26 at 15:03 +0200, Guilhem Lettron wrote: > On Wed, 26 Aug 2020 at 14:43, Rafael J. Wysocki wrote: > > On Wed, Aug 26, 2020 at 2:05 PM Guilhem Lettron wrote: > > > Use the same C-states as SKL > > > > Why is this change needed? > > On my laptop, a Dell XPS 13 7390 2-in-1 with i7

Re: [PATCH 1/2] i2c: consider devices with of_match_table during i2c device probing

2020-08-26 Thread kernel test robot
Hi Sergey, I love your patch! Perhaps something to improve: [auto build test WARNING on v5.9-rc2] [cannot apply to wsa/i2c/for-next next-20200826] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documente

[PATCH] m68k: mm: Remove superfluous memblock_alloc*() casts

2020-08-26 Thread Geert Uytterhoeven
The return type of memblock_alloc*() is a void pointer, so there is no need to cast it to "void *" or some other pointer type, before assigning it to a pointer variable. Signed-off-by: Geert Uytterhoeven --- arch/m68k/mm/mcfmmu.c | 2 +- arch/m68k/mm/motorola.c | 5 ++--- 2 files changed, 3 in

Re: [PATCH] memory: omap-gpmc: Fix a couple off by ones

2020-08-26 Thread Roger Quadros
On 25/08/2020 13:47, Dan Carpenter wrote: These comparisons should be >= instead of > to prevent reading one element beyond the end of the gpmc_cs[] array. Fixes: cdd6928c589a ("ARM: OMAP2+: Add device-tree support for NOR flash") Fixes: f37e4580c409 ("ARM: OMAP2: Dynamic allocator for GPMC memo

Re: [net-next v5 1/6] net: marvell: prestera: Add driver for Prestera family ASIC devices

2020-08-26 Thread Andrew Lunn
> There is a limitation on the DMA range. Current device can't handle > whole ZONE_DMA range, so there is a "backup" mechanism which copies the > entire packet if the mapping was failed or if the packet's mapped > address is out of this range, this is done on both rx and tx directions. If you use

Re: [PATCH v2 5/5] drm/bridge: ps8640: Rework power state handling

2020-08-26 Thread Bilal Wasim
On Wed, 26 Aug 2020 10:15:26 +0200 Enric Balletbo i Serra wrote: > The get_edid() callback can be triggered anytime by an ioctl, i.e > > drm_mode_getconnector (ioctl) > -> drm_helper_probe_single_connector_modes >-> drm_bridge_connector_get_modes > -> ps8640_bridge_get_ed

[PATCH 2/4] arm64: wrap and generalise counter read functions

2020-08-26 Thread Ionela Voinescu
In preparation for other uses of Activity Monitors (AMU) cycle counters, place counter read functionality in generic functions that can reused: read_corecnt() and read_constcnt(). As a result, implement update_freq_counters_refs() to replace init_cpu_freq_invariance_counters() and both initialise

Re: [PATCH] intel_idle: Add ICL support

2020-08-26 Thread Guilhem Lettron
On Wed, 26 Aug 2020 at 14:43, Rafael J. Wysocki wrote: > > On Wed, Aug 26, 2020 at 2:05 PM Guilhem Lettron wrote: > > > > Use the same C-states as SKL > > Why is this change needed? On my laptop, a Dell XPS 13 7390 2-in-1 with i7-1065G7, ACPI only report "C1_ACPI", "C2_ACPI" and "C3_ACPI". After

[PATCH 3/4] arm64: split counter validation function

2020-08-26 Thread Ionela Voinescu
In order for the counter validation function to be reused, split validate_cpu_freq_invariance_counters() into: - freq_counters_valid(cpu) - check cpu for valid cycle counters - freq_inv_set_max_ratio(int cpu, u64 max_rate, u64 ref_rate) - generic function that sets the normalization ratio used

[PATCH 1/4] arm64: cpufeature: restructure AMU feedback function

2020-08-26 Thread Ionela Voinescu
The current cpu_has_amu_feat() function only returns whether a single provided CPU has support for Activity Monitors (AMUs). Replace that function by cpus_with_amu_counters() that returns a pointer to a cpumask with all CPUs that support AMUs. This way the user has more freedom in regards to eithe

[PATCH 4/4] arm64: implement CPPC FFH support using AMUs

2020-08-26 Thread Ionela Voinescu
If Activity Monitors (AMUs) are present, two of the counters can be used to implement support for CPPC's (Collaborative Processor Performance Control) delivered and reference performance monitoring functionality using FFH (Functional Fixed Hardware). Given that counters for a certain CPU can only

Re: Ftrace regression in v5.9-rc1 due to commit fc0ea795f53c ("ftrace: Add symbols for ftrace trampolines")

2020-08-26 Thread Adrian Hunter
On 26/08/20 12:30 pm, Miroslav Benes wrote: > Hi, > > during v5.9-rc1 testing I ran into an issue (BUG dump at the end of the > email). I suspected commit fc0ea795f53c ("ftrace: Add symbols for ftrace > trampolines") (which git bisect later confirmed) and a missing call to > ftrace_remove_tramp

[PATCH 0/4] arm64: cppc: add FFH support using AMUs

2020-08-26 Thread Ionela Voinescu
Hi guys, This series adds support for CPPC's delivered and reference performance counters through the FFH methods by using the AMU equivalent core and constant cycle counters. This support is added in patch 4/4, while the first 3 patches generalise the existing AMU counter read and validation fun

Re: [PATCH] of: skip disabled CPU nodes

2020-08-26 Thread Frank Rowand
On 2020-08-26 07:02, Matthias Schiffer wrote: > Allow disabling CPU nodes using status = "disabled". > > This allows a bootloader to change the number of available CPUs (for > example when a common DTS is used for SoC variants with different numbers > of cores) without deleting the nodes altogethe

Re: [PATCH] MIPS: Loongson: Fix complie errors without CONFIG_SMP

2020-08-26 Thread Matthew Wilcox
On Wed, Aug 26, 2020 at 08:53:27PM +0800, Jinyang He wrote: > +++ b/arch/mips/include/asm/mach-loongson64/topology.h > @@ -4,7 +4,11 @@ > > #ifdef CONFIG_NUMA > > +#ifdef CONFIG_SMP > #define cpu_to_node(cpu) (cpu_logical_map(cpu) >> 2) > +#else > +#define cpu_to_node(cpu) 0 > +#endif

[PATCH mmc-next] dt-bindings: mmc: Fix mmc node name in DT example

2020-08-26 Thread Lars Povlsen
This changes the "mmc0@60080" node name to "mmc@60080" to be compliant with devicetree naming rules. Signed-off-by: Lars Povlsen --- .../devicetree/bindings/mmc/microchip,dw-sparx5-sdhci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetr

Re: (EXT) Re: (EXT) Re: (EXT) Re: (EXT) Re: [PATCH 2/2] ARM: dts: imx6qdl: tqma6: minor fixes

2020-08-26 Thread Fabio Estevam
On Wed, Aug 26, 2020 at 8:54 AM Matthias Schiffer wrote: > Before 8cdcd8aeee281, num_chipselect was set to 3 for spi0 and to 1 for > spi1 in arch/arm/mach-imx/mach-mx31lite.c. My understanding is that it > would make sense to add this as num-cs to > arch/arm/boot/dts/imx31-lite.dts. Or just pass

[PATCH] m68k: mm: Use PAGE_ALIGNED() helper

2020-08-26 Thread Geert Uytterhoeven
Use the existing PAGE_ALIGNED() helper instead of open-coding the same operation. Signed-off-by: Geert Uytterhoeven --- arch/m68k/mm/motorola.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/m68k/mm/motorola.c b/arch/m68k/mm/motorola.c index 2bb006bdc31cd644..a9bdde

Re: Issue with iwd + Linux 5.8.3 + WPA Enterprise

2020-08-26 Thread Herbert Xu
On Wed, Aug 26, 2020 at 02:58:02PM +0200, Andrew Zaborowski wrote: > > Running iwd's and ell's unit tests I can see that at least the > following algorithms give EINVAL errors: > ecb(aes) > cbc(aes) > ctr(aes) > > The first one fails in recv() and only for some input lengths. The > latter two fai

Re: [PATCH] perf stat: Fix s390x compile error on F32 utils/stat-display.c

2020-08-26 Thread Arnaldo Carvalho de Melo
Em Tue, Aug 25, 2020 at 09:14:42AM +0200, Jiri Olsa escreveu: > On Tue, Aug 25, 2020 at 08:33:04AM +0200, Thomas Richter wrote: > > SNIP > > > diff --git a/tools/perf/util/stat-display.c b/tools/perf/util/stat-display.c > > index 57d0706e1330..cbe836649f84 100644 > > --- a/tools/perf/util/stat-di

Re: [PATCH 09/14 v1] usb: typec: tcpm: Add support for Sink Fast Role SWAP(FRS)

2020-08-26 Thread kernel test robot
Hi Badhri, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on usb/usb-testing] [also build test WARNING on robh/for-next v5.9-rc2 next-20200826] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use

[PATCH v2] memory: omap-gpmc: Fix build error without CONFIG_OF

2020-08-26 Thread YueHaibing
If CONFIG_OF is n, gcc fails: drivers/memory/omap-gpmc.o: In function `gpmc_omap_onenand_set_timings': omap-gpmc.c:(.text+0x2a88): undefined reference to `gpmc_read_settings_dt' Add gpmc_read_settings_dt() helper function to fix this. Fixes: a758f50f10cf ("mtd: onenand: omap2: Configure driver f

Re: Issue with iwd + Linux 5.8.3 + WPA Enterprise

2020-08-26 Thread Andrew Zaborowski
On Wed, 26 Aug 2020 at 14:10, Herbert Xu wrote: > On Wed, Aug 26, 2020 at 01:59:53PM +0200, Ard Biesheuvel wrote: > > On Wed, 26 Aug 2020 at 13:50, Herbert Xu > > wrote: > > > > > > On Wed, Aug 26, 2020 at 12:40:14PM +0200, Ard Biesheuvel wrote: > > > > > > > > It would be helpful if someone cou

Re: [PATCH v2 1/2] cpufreq: mediatek-hw: Add support for Mediatek cpufreq HW driver

2020-08-26 Thread Hector Yuan
On Mon, 2020-08-24 at 15:36 +0530, Viresh Kumar wrote: > On 13-08-20, 15:07, Hector Yuan wrote: > > From: "Hector.Yuan" > > > > Add MT6779 cpufreq HW support. > > > > Signed-off-by: Hector.Yuan > > --- > > arch/arm64/configs/defconfig |1 + > > drivers/cpufreq/Kconfig.arm

Re: [PATCH 1/2] i2c: consider devices with of_match_table during i2c device probing

2020-08-26 Thread kernel test robot
Hi Sergey, I love your patch! Yet something to improve: [auto build test ERROR on v5.9-rc2] [cannot apply to wsa/i2c/for-next next-20200826] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in h

Re: [PATCH v3 0/2] regulator: mt6360: Add support for MT6360 regulator

2020-08-26 Thread Mark Brown
On Thu, 20 Aug 2020 15:53:40 +0800, Gene Chen wrote: > This patch series add MT6360 regulator support contains driver and binding > document > > Gene Chen (2) > regulator: mt6360: Add support for MT6360 regulator > regulator: mt6360: Add DT binding documentation > > Documentation/devicetree

Re: [PATCH v4 0/2] regulator: mt6360: Add support for MT6360 regulator

2020-08-26 Thread Mark Brown
On Wed, 26 Aug 2020 18:49:16 +0800, Gene Chen wrote: > This patch series add MT6360 regulator support contains driver and binding > document > > Gene Chen (2) > regulator: mt6360: Add support for MT6360 regulator > dt-bindings: regulator: mt6360: Add DT binding > > Documentation/devicetree/

Re: [PATCH] perf test: Perf test 67 dumps core on s390

2020-08-26 Thread Arnaldo Carvalho de Melo
Em Tue, Aug 25, 2020 at 02:04:30PM -0700, Ian Rogers escreveu: > On Tue, Aug 25, 2020 at 12:12 AM Thomas Richter wrote: > > Linux 5.9 introduced perf test case "Parse and process metrics" and > > on s390 this test case always dumps core: > Acked-by: Ian Rogers > > This also shows up with addr

[PATCH] MIPS: Loongson: Fix complie errors without CONFIG_SMP

2020-08-26 Thread Jinyang He
Machine as follows, [0.00] MIPS: machine is loongson,loongson64c-4core-ls7a If SMP if off, error as follows: 0x0: In file included from ./include/linux/gfp.h:9:0, from ./include/linux/xarray.h:14, from ./include/linux/radix-tree.h:18, fro

[PATCH] m68k: Sort selects in main Kconfig

2020-08-26 Thread Geert Uytterhoeven
Sort the list of select statements in the main Kconfig file for the m68k architecture, to avoid conflicts when modifying this list. Signed-off-by: Geert Uytterhoeven --- arch/m68k/Kconfig | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/m68k/Kco

Re: [PATCH] SELinux: Measure state and hash of policy using IMA

2020-08-26 Thread Stephen Smalley
On Tue, Aug 25, 2020 at 4:49 PM Lakshmi Ramasubramanian wrote: > > On 8/24/20 3:18 PM, Paul Moore wrote: > > Hi Paul, > > > Is Ondrej's re-try approach I need to use to workaround policy reload > > issue? > > No, I think perhaps we should move the mutex to selinux_state instead

HELLO....

2020-08-26 Thread Dr Paul Staton MD
Hi I'm Dr Paul Staton MD the gastroenterologist in Tulsa

[PATCH] m68k: amiga: Clean up Amiga hardware configuration

2020-08-26 Thread Geert Uytterhoeven
Move the generic Amiga hardware configuration section out of the switch statement, which allows to replace all ugly jumps by break statements. Signed-off-by: Geert Uytterhoeven --- arch/m68k/amiga/config.c | 118 +++ 1 file changed, 58 insertions(+), 60 deleti

Re: [PATCH 3/3] usb: cdns3: Enable workaround for USB2.0 PHY Rx compliance test PHY lockup

2020-08-26 Thread Roger Quadros
Peter, On 26/08/2020 11:07, Peter Chen wrote: On 20-08-26 04:04:01, Pawel Laszczak wrote: On 20-08-25 15:00:59, Roger Quadros wrote: From: Pawel Laszczak USB2.0 PHY hangs in Rx Compliance test when the incoming packet amplitude is varied below and above the Squelch Level of Receiver d

Re: [PATCH] selinux: fix error handling bugs in security_load_policy()

2020-08-26 Thread Stephen Smalley
On Wed, Aug 26, 2020 at 7:32 AM Dan Carpenter wrote: > > There are a few bugs in the error handling for security_load_policy(). > > 1) If the newpolicy->sidtab allocation fails then it leads to a NULL >dereference. Also the error code was not set to -ENOMEM on that >path. > 2) If policydb

Re: [PATCH v2 2/2] dt-bindings: cpufreq: add bindings for MediaTek cpufreq HW

2020-08-26 Thread Hector Yuan
On Mon, 2020-08-24 at 20:04 -0600, Rob Herring wrote: > On Thu, Aug 13, 2020 at 03:07:55PM +0800, Hector Yuan wrote: > > From: "Hector.Yuan" > > > > Add devicetree bindings for MediaTek HW driver. > > > > Signed-off-by: Hector.Yuan > > --- > > .../bindings/cpufreq/cpufreq-mediatek-hw.yaml

Re: [PATCH] mm: memcg: Fix memcg reclaim soft lockup

2020-08-26 Thread Michal Hocko
On Wed 26-08-20 20:21:39, xunlei wrote: > On 2020/8/26 下午8:07, Michal Hocko wrote: > > On Wed 26-08-20 20:00:47, xunlei wrote: > >> On 2020/8/26 下午7:00, Michal Hocko wrote: > >>> On Wed 26-08-20 18:41:18, xunlei wrote: > On 2020/8/26 下午4:11, Michal Hocko wrote: > > On Wed 26-08-20 15:27:02

Re: [PATCH] docs: trace: ring-buffer-design.rst: use the new SPDX tag

2020-08-26 Thread Jonathan Corbet
On Wed, 26 Aug 2020 09:28:24 +0200 Mauro Carvalho Chehab wrote: > SPDX v3.10 gained support for GFDL-1.2 with no invariant sections: > > https://spdx.org/licenses/GFDL-1.2-invariants-only.html > > Let's use it, instead of keeping a license text for this file. > > Signed-off-by: Mauro Car

Re: [PATCH 2/2] media: v4l2-mem2mem: simplify poll logic a bit

2020-08-26 Thread Hans Verkuil
On 25/08/2020 16:55, Alexandre Courbot wrote: > Factorize redundant checks into a single code block, remove the early > return, and declare variables in their innermost block. Hopefully this > makes this code a little bit easier to follow. > > Signed-off-by: Alexandre Courbot > --- > drivers/med

Re: [PATCH v2 3/5] drm/bridge: ps8640: Return an error for incorrect attach flags

2020-08-26 Thread Bilal Wasim
On Wed, 26 Aug 2020 10:15:24 +0200 Enric Balletbo i Serra wrote: > Bridge drivers that implement the new model only shall return an error > from their attach() handler when the DRM_BRIDGE_ATTACH_NO_CONNECTOR > flag is not set. So make sure we return an error because only the new > drm_bridge mode

Re: [PATCH v2 4/5] drm/bridge: ps8640: Print an error if VDO control fails

2020-08-26 Thread Bilal Wasim
On Wed, 26 Aug 2020 10:15:25 +0200 Enric Balletbo i Serra wrote: > Print an error message inside ps8640_bridge_vdo_control() function > when it fails so we can simplify a bit the callers, they will only > need to check the error code. > > Reviewed-by: Sam Ravnborg > Signed-off-by: Enric Balletb

Re: [PATCH] intel_idle: Add ICL support

2020-08-26 Thread Rafael J. Wysocki
On Wed, Aug 26, 2020 at 2:05 PM Guilhem Lettron wrote: > > Use the same C-states as SKL Why is this change needed? > Signed-off-by: Guilhem Lettron > --- > drivers/idle/intel_idle.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c

Re: [PATCH] dtbs: hikey970: add wifi support

2020-08-26 Thread Robin Murphy
On 2020-08-26 06:57, Mauro Carvalho Chehab wrote: The dwmmc2 is used on Hikey 970 for WiFi support. The hi3670.dtsi adds it, but with status="disabled". For WiFi to work,it needs to be enabled. While here, add the missing properties: #address-cells = <0x1>; #size-cells = <0x0>;

Re: [PATCH v2 1/5] drm/bridge_connector: Set default status connected for eDP connectors

2020-08-26 Thread Bilal Wasim
On Wed, 26 Aug 2020 10:15:22 +0200 Enric Balletbo i Serra wrote: > In an eDP application, HPD is not required and on most bridge chips > useless. If HPD is not used, we need to set initial status as > connected, otherwise the connector created by the > drm_bridge_connector API remains in an unkno

Re: [PATCH v2 5/7][next] printk: ringbuffer: add finalization/extension support

2020-08-26 Thread John Ogness
On 2020-08-26, Sergey Senozhatsky wrote: >>> @@ -1157,6 +1431,14 @@ bool prb_reserve(struct prb_reserved_entry *e, >>> struct printk_ringbuffer *rb, >>> goto fail; >>> } >>> >>> + /* >>> +* New data is about to be reserved. Once that happens, previous >>> +* descriptor

Re: [PATCH v3 0/6] kasan: add workqueue and timer stack for generic KASAN

2020-08-26 Thread Andrey Konovalov
On Tue, Aug 25, 2020 at 10:26 AM 'Marco Elver' via kasan-dev wrote: > > On Tue, 25 Aug 2020 at 03:57, Walter Wu wrote: > > > > Syzbot reports many UAF issues for workqueue or timer, see [1] and [2]. > > In some of these access/allocation happened in process_one_work(), > > we see the free stack i

[PATCH] m68k: Revive _TIF_* masks

2020-08-26 Thread Geert Uytterhoeven
While the core m68k code does not use the _TIF_* masks anymore, there exists generic code that relies on their presence. Fortunately none of that code is used on m68k, currently. Re-add the various _TIF_* masks, which were removed in commit cddafa3500fde4a0 ("m68k/m68knommu: merge MMU and non-MMU

[PATCH 2/4] ASoC: rt1308-sdw: Fix return check for devm_regmap_init_sdw()

2020-08-26 Thread Vinod Koul
devm_regmap_init_sdw() returns a valid pointer on success or ERR_PTR on failure which should be checked with IS_ERR. Also use PTR_ERR for returning error codes. Reported-by: Takashi Iwai Fixes: a87a6653a28c ("ASoC: rt1308-sdw: add rt1308 SdW amplifier driver") Signed-off-by: Vinod Koul --- soun

[PATCH 1/4] ASoC: max98373: Fix return check for devm_regmap_init_sdw()

2020-08-26 Thread Vinod Koul
devm_regmap_init_sdw() returns a valid pointer on success or ERR_PTR on failure which should be checked with IS_ERR. Also use PTR_ERR for returning error codes. Reported-by: Takashi Iwai Fixes: 56a5b7910e96 ("ASoC: codecs: max98373: add SoundWire support") Signed-off-by: Vinod Koul --- sound/so

[PATCH 4/4] ASoC: rt715: Fix return check for devm_regmap_init_sdw()

2020-08-26 Thread Vinod Koul
devm_regmap_init_sdw() returns a valid pointer on success or ERR_PTR on failure which should be checked with IS_ERR. Also use PTR_ERR for returning error codes. Reported-by: Takashi Iwai Fixes: d1ede0641b05 ("ASoC: rt715: add RT715 codec driver") Signed-off-by: Vinod Koul --- sound/soc/codecs/r

[PATCH 2/4] ASoC: rt1308-sdw: Fix return check for devm_regmap_init_sdw()

2020-08-26 Thread Vinod Koul
devm_regmap_init_sdw() returns a valid pointer on success or ERR_PTR on failure which should be checked with IS_ERR. Also use PTR_ERR for Date: Wed, 26 Aug 2020 17:45:58 +0530 Subject: [PATCH 3/4] ASoC: rt711: Fix return check for devm_regmap_init_sdw() devm_regmap_init_sdw() returns a valid point

Re: [PATCH] afs: Remove erroneous fallthough annotation

2020-08-26 Thread Gustavo A. R. Silva
On 8/26/20 06:32, Dan Carpenter wrote: > The fall through annotation comes after a return statement so it's not > reachable. > > Signed-off-by: Dan Carpenter Reviewed-by: Gustavo A. R. Silva Thanks -- Gustavo > --- > fs/afs/flock.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/

Re: [PATCH v1] extcon: ptn5150: Deduplicate parts of dev_err_probe()

2020-08-26 Thread Krzysztof Kozlowski
On Wed, Aug 26, 2020 at 01:39:10PM +0300, Andy Shevchenko wrote: > dev_err_probe() is designed to be used like > > return dev_err_probe(dev, ret, "Error message\n"); > > Hence no need to have a separate return statement. Besides that > dev_err_probe() prints already returned error code, no

Re: [PATCH] mm: memcg: Fix memcg reclaim soft lockup

2020-08-26 Thread xunlei
On 2020/8/26 下午8:07, Michal Hocko wrote: > On Wed 26-08-20 20:00:47, xunlei wrote: >> On 2020/8/26 下午7:00, Michal Hocko wrote: >>> On Wed 26-08-20 18:41:18, xunlei wrote: On 2020/8/26 下午4:11, Michal Hocko wrote: > On Wed 26-08-20 15:27:02, Xunlei Pang wrote: >> We've met softlockup wit

Re: [RESEND PATCH v3 5/8] mtd: spi-nor: cadence-quadspi: Handle probe deferral while requesting DMA channel

2020-08-26 Thread Vignesh Raghavendra
On 8/26/20 3:42 PM, Jan Kiszka wrote: > On 24.08.20 19:20, Jan Kiszka wrote: >> On 24.08.20 14:49, Jan Kiszka wrote: >>> On 24.08.20 13:45, Vignesh Raghavendra wrote: On 8/22/20 11:35 PM, Jan Kiszka wrote: > On 01.06.20 09:04, Vignesh Raghavendra wrote: >> dma_request_chan

[PATCH] libnvdimm/e820: Fix build error without MEMORY_HOTPLUG

2020-08-26 Thread YueHaibing
If MEMORY_HOTPLUG is n, build fails: drivers/nvdimm/e820.c: In function ‘e820_register_one’: drivers/nvdimm/e820.c:24:12: error: implicit declaration of function ‘phys_to_target_node’; did you mean ‘set_page_node’? [-Werror=implicit-function-declaration] int nid = phys_to_target_node(res->star

Re: [PATCH] kcsan: Use tracing-safe version of prandom

2020-08-26 Thread Marco Elver
On Fri, 21 Aug 2020 at 14:31, Marco Elver wrote: > In the core runtime, we must minimize any calls to external library > functions to avoid any kind of recursion. This can happen even though > instrumentation is disabled for called functions, but tracing is > enabled. > > Most recently, prandom_u3

Re: [PATCH] iommu: Add support to filter non-strict/lazy mode based on device names

2020-08-26 Thread Sai Prakash Ranjan
On 2020-08-26 17:07, Robin Murphy wrote: On 2020-08-25 16:42, Sai Prakash Ranjan wrote: Currently the non-strict or lazy mode of TLB invalidation can only be set for all or no domains. This works well for development platforms where setting to non-strict/lazy mode is fine for performance reason

Re: [RFC] perf/jevents: Add new structure to pass json fields.

2020-08-26 Thread kajoljain
On 8/26/20 4:30 PM, Jiri Olsa wrote: > On Tue, Aug 25, 2020 at 09:14:11AM +0100, John Garry wrote: > > SNIP > >>> goto free_strings; >>> } >>> - err = func(data, name, real_event(name, event), desc, long_desc, >>> - pmu, un

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