Re: [PATCH] media: i2c: imx258: correct mode to GBGB/RGRG

2020-10-28 Thread Tomasz Figa
On Wed, Oct 28, 2020 at 11:15 AM Krzysztof Kozlowski wrote: > > On Wed, 28 Oct 2020 at 11:03, Sakari Ailus > wrote: > > > > On Wed, Oct 28, 2020 at 10:56:55AM +0100, Krzysztof Kozlowski wrote: > > > On Wed, 28 Oct 2020 at 10:45, Krzysztof Kozlowski wrote: > > > > > > > > On Wed, 28 Oct 2020 at

[PATCH 3/5 v2] Fonts: Add charcount field to font_desc

2020-10-28 Thread Peilin Ye
Subsystems are assuming the number of characters of our built-in fonts. Include that information in our kernel font descriptor, `struct font_desc`. Signed-off-by: Peilin Ye Reviewed-by: Daniel Vetter --- Change in v2: - Rebase onto 5.10-rc1. include/linux/font.h | 1 + lib/fonts/font_1

drivers/net/wireless/intel/iwlwifi/pcie/drv.c:1049 iwl_pci_probe() warn: mask and shift to zero

2020-10-28 Thread Dan Carpenter
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: ed8780e3f2ecc82645342d070c6b4e530532e680 commit: d6f2134a383168bfb28ac458f7e4311e58482439 iwlwifi: add mac/rf types and 160MHz to the device tables config: parisc-randconfig-m031-20201028 (attached as

Re: [PATCH 3/4] dm crypt: switch to EBOIV crypto API template

2020-10-28 Thread Gilad Ben-Yossef
On Mon, Oct 26, 2020 at 8:44 PM Herbert Xu wrote: > > On Tue, Oct 27, 2020 at 05:41:55AM +1100, Herbert Xu wrote: > > > > The point is that people rebuilding their kernel can end up with a > > broken system. Just set a default on EBOIV if dm-crypt is on. > > That's not enough as it's an existing

Re: [PATCH 3/3] mmc: rtsx: Add SD Express mode support for RTS5261

2020-10-28 Thread Ulf Hansson
On Wed, 28 Oct 2020 at 11:05, 冯锐 wrote: > > > > > > > > > On Mon, 26 Oct 2020 at 09:22, 冯锐 wrote: > > > > > > > > > > > > > > + Christoph (to help us understand if PCIe/NVMe devices can be > > > > > + marked > > > > > + read-only) > > > > > > > > > > On Thu, 22 Oct 2020 at 08:04, 冯锐 wrote: > > >

[PATCH][next] ASoC: qcom: fix unsigned int bitwidth compared to less than zero

2020-10-28 Thread Colin King
From: Colin Ian King The check for an error return from the call to snd_pcm_format_width is never true as the unsigned int bitwidth can never be less than zero. Fix this by making bitwidth an int. Addresses-Coverity: ("Unsigned compared against 0") Fixes: 7cb37b7bd0d3 ("ASoC: qcom: Add support f

Re: [seccomp] Request for a "enable on execve" mode for Seccomp filters

2020-10-28 Thread Kees Cook
On Wed, Oct 28, 2020 at 12:18:47PM +0100, Camille Mougey wrote: > (This is my first message to the kernel list, I hope I'm doing it right) Looks good to me! The key was CCing real people. ;) > From my understanding, there is no way to delay the activation of > seccomp filters, for instance "until

[PATCH v3 4/9] perf mem: Only initialize memory event for recording

2020-10-28 Thread Leo Yan
It's needless to initialize memory events for reporting, this patch moves memory event initialization for only recording. Furthermore, the change allows to parse perf data on cross platforms, e.g. perf tool can report result properly even the machine doesn't support the memory events. Signed-off-

re: ASoC: qcom: sm8250: add sound card qrb5165-rb5 support

2020-10-28 Thread Colin Ian King
Hi, Static analysis on linux-next with Coverity had detected a potential array out-of-bounds write issue in the following commit: commit aa2e2785545aab21b6cb2e23f111ae0751cbcca7 Author: Srinivas Kandagatla Date: Mon Oct 26 17:09:47 2020 + ASoC: qcom: sm8250: add sound card qrb5165-rb5

[PATCH][next] net/sunrpc: fix unsigned size_t comparison to less than zero

2020-10-28 Thread Colin King
From: Colin Ian King Currently the check for *lenp < 0 is always true since the type is a size_t and can never be negative. Fix this by casting it to ssize_t. Addresses-Coverity: ("Unsigned compared against 0") Fixes: c09f56b8f68d ("net/sunrpc: Fix return value for sysctl sunrpc.transports") Si

[PATCH] Add devices for HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE

2020-10-28 Thread Chris Ye
Kernel 5.4 introduces HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE, devices need to be set explicitly with this flag. Signed-off-by: Chris Ye diff -uprN -X linux-vanilla/Documentation/dontdiff linux-vanilla/drivers/hid/hid-ids.h linux/drivers/hid/hid-ids.h --- linux-vanilla/drivers/hid/hid-ids.h 2020

[PATCH] ANDROID: Fix the HID usage of DPAD input event generation.

2020-10-28 Thread Chris Ye
Generic Desktop DPAD usage is mapped by hid-input, that only the first DPAD usage maps to usage type EV_ABS and code of an axis. If HID descriptor has DPAD UP/DOWN/LEFT/RIGHT HID usages and each of usage size is 1 bit, then only the first one will generate input event, the rest of the HID usages wi

[PATCH net-next] net: dlci: Deprecate the DLCI driver (aka the Frame Relay layer)

2020-10-28 Thread Xie He
I wish to deprecate the Frame Relay layer (dlci.c) in the kernel because we already have a newer and better "HDLC Frame Relay" layer (hdlc_fr.c). Reasons why hdlc_fr.c is better than dlci.c include: 1. dlci.c is dated 1997, while hdlc_fr.c is dated 1999 - 2006, so the later is newer than the form

Re: [PATCH 0/4] Powerpc: Better preemption for shared processor

2020-10-28 Thread Waiman Long
On 10/28/20 8:35 AM, Srikar Dronamraju wrote: Currently, vcpu_is_preempted will return the yield_count for shared_processor. On a PowerVM LPAR, Phyp schedules at SMT8 core boundary i.e all CPUs belonging to a core are either group scheduled in or group scheduled out. This can be used to better pr

Re: PM / devfreq: map devfreq drivers to governor using name

2020-10-28 Thread Colin Ian King
On 28/10/2020 12:00, Colin Ian King wrote: > Hi, > > Static analysis of linux-next with Coverity has found a potential null > pointer dereference issue with the following commit: > > commit 1b5c1be2c88e8445a20fa1929e26c37e7ca8c926 > Author: Nishanth Menon > Date: Mon Oct 29 15:01:45 2012 -0500

re: PM / devfreq: map devfreq drivers to governor using name

2020-10-28 Thread Colin Ian King
Hi, Static analysis of linux-next with Coverity has found a potential null pointer dereference issue with the following commit: commit 1b5c1be2c88e8445a20fa1929e26c37e7ca8c926 Author: Nishanth Menon Date: Mon Oct 29 15:01:45 2012 -0500 PM / devfreq: map devfreq drivers to governor using n

[PATCH][next] drm/amd/pm: fix out-of-bound read on pptable->SkuReserved

2020-10-28 Thread Colin King
From: Colin Ian King A recent change added two uint16_t elements to PPTable_t and reduced the uint32_t array down to 8 elements. This results in the dev_info printing of pptable->SkuReserved[8] accessing a value that is out-of-range on array SkuReserved. The array has been shrunk by 1 element, s

Re: [PATCH] drm/vc4: hdmi: Add a name to the codec DAI component

2020-10-28 Thread Dave Stevenson
Hi Maxime On Wed, 8 Jul 2020 at 15:46, Maxime Ripard wrote: > > Since the components for a given device in ASoC are identified by their > name, it makes sense to add one even though it's not strictly necessary. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/

Re: [PATCH v3 1/1] sched/uclamp: add SCHED_FLAG_UTIL_CLAMP_RESET flag to reset uclamp

2020-10-28 Thread Patrick Bellasi
Hi Dietmar, Yun, I hope I'm not too late before v4 posting ;) I think the overall approach is sound, I just added in a couple of cleanups and a possible fix (user_defined reset). Best, Patrick On Tue, Oct 27, 2020 at 16:58:13 +0100, Yun Hsiang wrote... > Hi Diet mar, > On Mon, Oct 26, 2020

Re: [seccomp] Request for a "enable on execve" mode for Seccomp filters

2020-10-28 Thread Andy Lutomirski
On Wed, Oct 28, 2020 at 3:47 PM Kees Cook wrote: > > On Wed, Oct 28, 2020 at 12:18:47PM +0100, Camille Mougey wrote: > > (This is my first message to the kernel list, I hope I'm doing it right) > > 1- self-confinement > 2- launching external processes > a) cooperating > b) obliviou

Re: [PATCH] ASoC: qcom: sm8250: Fix array out of bounds access

2020-10-28 Thread Colin Ian King
On 28/10/2020 14:20, Srinivas Kandagatla wrote: > Static analysis Coverity had detected a potential array out-of-bounds > write issue due to the fact that MAX AFE port Id was set to 16 instead > of using AFE_PORT_MAX macro. > > Fix this by properly using AFE_PORT_MAX macro. > > Fixes: aa2e2785545

[PATCH 4/8] sched: Remove unused else

2020-10-28 Thread John B. Wyatt IV
Silences suspect code warning. Issue reported by checkpatch. Signed-off-by: John B. Wyatt IV --- kernel/sched/coretag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/coretag.c b/kernel/sched/coretag.c index c9b0afc5..11139dbed648 100644 --- a/kernel/sched/

Re: Higher slub memory consumption on 64K page-size systems?

2020-10-28 Thread Roman Gushchin
On Wed, Oct 28, 2020 at 11:20:30AM +0530, Bharata B Rao wrote: > Hi, > > On POWER systems, where 64K PAGE_SIZE is default, I see that slub > consumes higher amount of memory compared to any 4K page-size system. > While slub is obviously going to consume more memory on 64K page-size > systems compa

Re: [PATCH] powerpc/smp: Move rcu_cpu_starting() earlier

2020-10-28 Thread Michael Ellerman
Qian Cai writes: > The call to rcu_cpu_starting() in start_secondary() is not early enough > in the CPU-hotplug onlining process, which results in lockdep splats as > follows: Since when? What kernel version? I haven't seen this running CPU hotplug tests with PROVE_LOCKING=y on v5.10-rc1. Am I m

Re: [PATCH v5 02/40] arm64: mte: Add in-kernel MTE helpers

2020-10-28 Thread Dmitry Vyukov
On Mon, Oct 12, 2020 at 10:44 PM Andrey Konovalov wrote: > > From: Vincenzo Frascino > > Provide helper functions to manipulate allocation and pointer tags for > kernel addresses. > > Low-level helper functions (mte_assign_*, written in assembly) operate > tag values from the [0x0, 0xF] range. Hi

Re: [PATCH v8 -tip 08/26] sched/fair: Snapshot the min_vruntime of CPUs on force idle

2020-10-28 Thread Joel Fernandes
Hi Peter, I am still working on understanding your approach and will reply soon, but I just wanted to clarify the question on my approach: On Mon, Oct 26, 2020 at 01:47:24PM +0100, Peter Zijlstra wrote: > On Mon, Oct 19, 2020 at 09:43:18PM -0400, Joel Fernandes (Google) wrote: > > > @@ -4723,6 +

Re: [PATCH] mwifiex: pcie: add enable_device_dump module parameter

2020-10-28 Thread Brian Norris
On Wed, Oct 28, 2020 at 3:58 PM Tsuchiya Yuto wrote: > > The devicve_dump may take a little bit long time and users may want to > disable the dump for daily usage. > > This commit adds a new module parameter enable_device_dump and disables > the device_dump by default. As with one of your other p

Re: For review: seccomp_user_notif(2) manual page

2020-10-28 Thread Sargun Dhillon
On Wed, Oct 28, 2020 at 2:43 AM Jann Horn wrote: > > On Wed, Oct 28, 2020 at 7:32 AM Sargun Dhillon wrote: > > On Tue, Oct 27, 2020 at 3:28 AM Jann Horn wrote: > > > On Tue, Oct 27, 2020 at 7:14 AM Michael Kerrisk (man-pages) > > > wrote: > > > > On 10/26/20 4:54 PM, Jann Horn wrote: > > > > >

Re: [External] Re: [PATCH 4/5] mm: memcg/slab: Fix root memcg vmstats

2020-10-28 Thread Roman Gushchin
On Wed, Oct 28, 2020 at 10:56:20AM +0800, Muchun Song wrote: > On Wed, Oct 28, 2020 at 2:48 AM Roman Gushchin wrote: > > > > On Tue, Oct 27, 2020 at 04:02:55PM +0800, Muchun Song wrote: > > > If we reparent the slab objects to the root memcg, when we free > > > the slab object, we need to update t

[PATCH v4 5/7] dma-buf: system_heap: Allocate higher order pages if available

2020-10-28 Thread John Stultz
While the system heap can return non-contiguous pages, try to allocate larger order pages if possible. This will allow slight performance gains and make implementing page pooling easier. Cc: Sumit Semwal Cc: Liam Mark Cc: Laura Abbott Cc: Brian Starkey Cc: Hridya Valsaraju Cc: Suren Baghdasa

Re: [External] Re: [PATCH 1/2] nvmet: introduce transport layer keep-alive

2020-10-28 Thread zhenwei pi
On 10/28/20 3:15 PM, Sagi Grimberg wrote: On 10/27/20 5:15 AM, zhenwei pi wrote: In the zero KATO scenario, if initiator crashes without transport layer disconnection, target side would never reclaim resources. A target could start transport layer keep-alive to detect dead connection for the a

Re: [PATCH ghak120 V5] audit: trigger accompanying records when no rules present

2020-10-28 Thread Paul Moore
On Wed, Sep 23, 2020 at 1:47 PM Paul Moore wrote: > On Wed, Sep 23, 2020 at 10:49 AM Richard Guy Briggs wrote: > > On 2020-09-23 10:29, Paul Moore wrote: > > > I've gone over this revision a couple of times now and it looks okay, > > > but past experience is whispering in my ear that perhaps this

[PATCH v4 3/7] dma-buf: heaps: Remove heap-helpers code

2020-10-28 Thread John Stultz
The heap-helpers code was not as generic as initially hoped and it is now not being used, so remove it from the tree. Cc: Sumit Semwal Cc: Liam Mark Cc: Laura Abbott Cc: Brian Starkey Cc: Hridya Valsaraju Cc: Suren Baghdasaryan Cc: Sandeep Patil Cc: Daniel Mentz Cc: Chris Goldsworthy Cc:

[PATCH v4 6/7] dma-buf: dma-heap: Keep track of the heap device struct

2020-10-28 Thread John Stultz
Keep track of the heap device struct. This will be useful for special DMA allocations and actions. Cc: Sumit Semwal Cc: Liam Mark Cc: Laura Abbott Cc: Brian Starkey Cc: Hridya Valsaraju Cc: Suren Baghdasaryan Cc: Sandeep Patil Cc: Daniel Mentz Cc: Chris Goldsworthy Cc: Ørjan Eide Cc: Ro

[PATCH v4 4/7] dma-buf: heaps: Skip sync if not mapped

2020-10-28 Thread John Stultz
This patch is basically a port of Ørjan Eide's similar patch for ION https://lore.kernel.org/lkml/20200414134629.54567-1-orjan.e...@arm.com/ Only sync the sg-list of dma-buf heap attachment when the attachment is actually mapped on the device. dma-bufs may be synced at any time. It can be reache

[RESEND][PATCH v4 0/7] dma-buf: Performance improvements for system heap & a system-uncached implementation

2020-10-28 Thread John Stultz
Hey All, So just wanted to resend my last revision of my patch series of performance optimizations to the dma-buf system heap. This series reworks the system heap to use sgtables, and then consolidates the pagelist method from the heap-helpers into the CMA heap. After which the heap-helpers logi

Re: [PATCH v6 15/52] dt-bindings: tegra30-actmon: Document OPP and interconnect properties

2020-10-28 Thread Rob Herring
On Mon, 26 Oct 2020 01:16:58 +0300, Dmitry Osipenko wrote: > Document EMC DFS OPP table and interconnect paths that will be used > for scaling of system's memory bandwidth based on memory utilization > statistics. Previously ACTMON was supposed to drive EMC clock rate > directly, but now it should

[PATCH v4 2/7] dma-buf: heaps: Move heap-helper logic into the cma_heap implementation

2020-10-28 Thread John Stultz
Since the heap-helpers logic ended up not being as generic as hoped, move the heap-helpers dma_buf_ops implementations into the cma_heap directly. This will allow us to remove the heap_helpers code in a following patch. Cc: Sumit Semwal Cc: Liam Mark Cc: Laura Abbott Cc: Brian Starkey Cc: Hri

[PATCH v4 1/7] dma-buf: system_heap: Rework system heap to use sgtables instead of pagelists

2020-10-28 Thread John Stultz
In preparation for some patches to optmize the system heap code, rework the dmabuf exporter to utilize sgtables rather then pageslists for tracking the associated pages. This will allow for large order page allocations, as well as more efficient page pooling. In doing so, the system heap stops us

Re: [PATCH 2/2] media: i2c: imx258: validate rotation only if it is provided

2020-10-28 Thread Krzysztof Kozlowski
On Mon, Oct 05, 2020 at 05:15:59PM +0200, Krzysztof Kozlowski wrote: > The sensor supports rotation by 180 degrees however the value of > "rotation" property should be validated only if it exists. If > "rotation" is missing, do not fail the probe: > > imx258: probe of 3-001a failed with error

Re: [PATCH v2] mm: memcg/slab: Fix return child memcg objcg for root memcg

2020-10-28 Thread Roman Gushchin
On Wed, Oct 28, 2020 at 11:50:10AM +0800, Muchun Song wrote: > Consider the following memcg hierarchy. > > root >/\ > A B > > If we get the objcg of memcg A failed, the get_obj_cgroup_from_current > can return the wrong objcg for

[PATCH v4 7/7] dma-buf: system_heap: Add a system-uncached heap re-using the system heap

2020-10-28 Thread John Stultz
This adds a heap that allocates non-contiguous buffers that are marked as writecombined, so they are not cached by the CPU. This is useful, as most graphics buffers are usually not touched by the CPU or only written into once by the CPU. So when mapping the buffer over and over between devices, we

[PATCH v4 3/4] wdt: Support wdt on ROHM BD9576MUF and BD9573MUF

2020-10-28 Thread Matti Vaittinen
Add Watchdog support for ROHM BD9576MUF and BD9573MUF PMICs which are mainly used to power the R-Car series processors. The watchdog is pinged using a GPIO and enabled using another GPIO. Additionally watchdog time-out can be configured to HW prior starting the watchdog. Watchdog timeout can be con

Re: [PATCH 11/13] m68k/mm: make node data and node setup depend on CONFIG_DISCONTIGMEM

2020-10-28 Thread Geert Uytterhoeven
Hi Mike, On Tue, Oct 27, 2020 at 12:31 PM Mike Rapoport wrote: > From: Mike Rapoport > > The pg_data_t node structures and their initialization currently depends on > !CONFIG_SINGLE_MEMORY_CHUNK. Since they are required only for DISCONTIGMEM > make this dependency explicit and replace usage of >

Re: [PATCH 1/2] builddeb: Fix rootless build in setuid/setgid directory

2020-10-28 Thread Sven Joachim
On 2020-10-28 15:00 +0900, Masahiro Yamada wrote: > On Tue, Oct 27, 2020 at 4:32 AM Sven Joachim wrote: >> >> Building 5.10-rc1 in a setgid directory failed with the following >> error: >> >> dpkg-deb: error: control directory has bad permissions 2755 (must be >> >=0755 and <=0775) >> >> When bui

[PATCH] soc: ti: ti_sci_pm_domains: check for proper args count in xlate

2020-10-28 Thread Tero Kristo
K2G devices still only use single parameter for power-domains property, so check for this properly in the driver. Without this, every peripheral fails to probe resulting in boot failure. Fixes: efa5c01cd7ee ("soc: ti: ti_sci_pm_domains: switch to use multiple genpds instead of one") Reported-by:

Re: [PATCH v4 2/2] fs: ext4: Modify inode-test.c to use KUnit parameterized testing feature

2020-10-28 Thread Arpitha Raghunandan
ttps://github.com/0day-ci/linux/commits/Arpitha-Raghunandan/kunit-Support-for-Parameterized-Testing/20201028-015018 >> base: https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git dev >> config: mips-randconfig-r016-20201027 (attached as .config) >> compiler: mipsel-linux-gc

[PATCH 2/2] arm: Enable seccomp architecture tracking

2020-10-28 Thread Kees Cook
To enable seccomp constant action bitmaps, we need to have a static mapping to the audit architecture and system call table size. Add these for arm. Signed-off-by: Kees Cook --- arch/arm/include/asm/Kbuild| 1 - arch/arm/include/asm/seccomp.h | 11 +++ 2 files changed, 11 insertions

[PATCH v2 net 5/5] net: ipa: avoid going past end of resource group array

2020-10-28 Thread Alex Elder
The minimum and maximum limits for resources assigned to a given resource group are programmed in pairs, with the limits for two groups set in a single register. If the number of supported resource groups is odd, only half of the register that defines these limits is valid for the last group; that

Re: [PATCH v4 10/16] dt-bindings: phy: tegra-xusb: Add nvidia,pmc prop

2020-10-28 Thread JC Kuo
On 10/20/20 5:40 AM, Rob Herring wrote: > On Fri, Oct 16, 2020 at 09:07:20PM +0800, JC Kuo wrote: >> This commit describes the "nvidia,pmc" property for Tegra210 tegra-xusb >> PHY driver. It is a phandle and specifier referring to the Tegra210 >> pmc@7000e400 node. >> >> Signed-off-by: JC Kuo >> -

Re: [PATCH V2] cpufreq: tegra186: Fix initial frequency

2020-10-28 Thread Viresh Kumar
On 28-10-20, 12:31, Jon Hunter wrote: > On 28/10/2020 04:11, Viresh Kumar wrote: > > When do we fail if the frequency isn't known ? That's the case where > > we try to set it to one from the table. > > Currently, if the frequency is not known, we fail right before we do the > initial frequency che

[PATCH rc] mm: always have io_remap_pfn_range() set pgprot_decrypted()

2020-10-28 Thread Jason Gunthorpe
The purpose of io_remap_pfn_range() is to map IO memory, such as a memory mapped IO exposed through a PCI BAR. IO devices do not understand encryption, so this memory must always be decrypted. Automatically call pgprot_decrypted() as part of the generic implementation. This fixes a bug where enabl

Re: [PATCH v4] platform/surface: Add Driver to set up lid GPEs on MS Surface device

2020-10-28 Thread Maximilian Luz
On 10/23/20 4:08 PM, Maximilian Luz wrote: diff --git a/MAINTAINERS b/MAINTAINERS index 8ff126ced757..31271180dae3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11532,6 +11532,12 @@ F: drivers/scsi/smartpqi/smartpqi*.[ch] F:include/linux/cciss*.h F:include/uapi/linux/cciss*.h

[PATCH net-next v4] net: dec: tulip: de2104x: Add shutdown handler to stop NIC

2020-10-28 Thread Moritz Fischer
The driver does not implement a shutdown handler which leads to issues when using kexec in certain scenarios. The NIC keeps on fetching descriptors which gets flagged by the IOMMU with errors like this: DMAR: DMAR:[DMA read] Request device [5e:00.0]fault addr f000 DMAR: DMAR:[DMA read] Request

[RFC][PATCH 1/3 v3] ftrace: Have the callbacks receive a struct ftrace_regs instead of pt_regs

2020-10-28 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" In preparation to have arguments of a function passed to callbacks attached to functions as default, change the default callback prototype to receive a struct ftrace_regs as the forth parameter instead of a pt_regs. For callbacks that set the FL_SAVE_REGS flag in

[RFC][PATCH 0/3 v3] ftrace: Add access to function arguments for all callbacks

2020-10-28 Thread Steven Rostedt
This is something I wanted to implement a long time ago, but held off until there was a good reason to do so. Now it appears that having access to the arguments of the function by default is very useful. As a bonus, because arguments must be saved regardless before calling a callback, because they

[RFC][PATCH 3/3 v3] livepatching: Use the default ftrace_ops instead of REGS when ARGS is available

2020-10-28 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" When CONFIG_HAVE_DYNAMIC_FTRACE_WITH_ARGS is available, the ftrace call will be able to set the ip of the calling function. This will improve the performance of live kernel patching where it does not need all the regs to be stored just to change the instruction poi

[RFC][PATCH 2/3 v3] ftrace/x86: Allow for arguments to be passed in to ftrace_regs by default

2020-10-28 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Currently, the only way to get access to the registers of a function via a ftrace callback is to set the "FL_SAVE_REGS" bit in the ftrace_ops. But as this saves all regs as if a breakpoint were to trigger (for use with kprobes), it is expensive. The regs are alrea

Re: [PATCH v16 00/15] mtd: spi-nor: add xSPI Octal DTR support

2020-10-28 Thread Pratyush Yadav
On 28/10/20 03:21PM, tudor.amba...@microchip.com wrote: > On 10/28/20 2:49 PM, Pratyush Yadav wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > > content is safe > > > > Hi Tudor, > > > > On 28/10/20 07:53AM, tudor.amba...@microchip.com wrote: > >> Hi, Praty

Re: [PATCH] RFC: net: phy: of phys probe/reset issue

2020-10-28 Thread Grygorii Strashko
hi Andrew, On 23/10/2020 23:10, Andrew Lunn wrote: Yes there is: have your Ethernet PHY compatible string be of the form "ethernet." and then there is no need for such hacking. of_get_phy_id() will parse that compatible and that will trigger of_mdiobus_register_phy() to take the phy_devi

Re: [PATCH] stop_machine: Mark functions as notrace

2020-10-28 Thread Atish Patra
On Wed, Oct 28, 2020 at 8:44 AM Guo Ren wrote: > > Hi Zong & Atish, > > In our 2 harts c910 chip, we found: > > echo function > /sys/kernel/debug/tracing/current_tracer > echo function_graph > /sys/kernel/debug/tracing/current_tracer > echo function > /sys/kernel/debug/tracing/current_tracer > ech

Re: [PATCH 11/13] m68k/mm: make node data and node setup depend on CONFIG_DISCONTIGMEM

2020-10-28 Thread Mike Rapoport
On Thu, Oct 29, 2020 at 07:14:38AM +1300, Michael Schmitz wrote: > Hi Mike, > > On 29/10/20 12:16 AM, Mike Rapoport wrote: > > Hi Geert, > > > > On Wed, Oct 28, 2020 at 10:25:49AM +0100, Geert Uytterhoeven wrote: > > > Hi Mike, > > > > > > On Tue, Oct 27, 2020 at 12:31 PM Mike Rapoport wrote: >

[PATCH v2] mm: memcg/slab: Rename *_lruvec_slab_state to *_lruvec_kmem_state

2020-10-28 Thread Muchun Song
The *_lruvec_slab_state is also suitable for pages allocated from buddy, not just for the slab objects. But the function name seems to tell us that only slab object is applicable. So we can rename the keyword of slab to kmem. Signed-off-by: Muchun Song Acked-by: Roman Gushchin --- changelog in

[PATCH v4] ACPI / APEI: do memory failure on the physical address reported by ARM processor error section

2020-10-28 Thread Xiaofei Tan
After the commit 8fcc4ae6faf8 ("arm64: acpi: Make apei_claim_sea() synchronise with APEI's irq work") applied, do_sea() return directly for user-mode if apei_claim_sea() handled any error record. Therefore, each error record reported by the user-mode SEA must be effectively processed in APEI GHES d

Re: [PATCH v36 00/13] /dev/random - a new approach

2020-10-28 Thread Torsten Duwe
On Mon, 19 Oct 2020 21:28:50 +0200 Stephan Müller wrote: [...] > * Sole use of crypto for data processing: [...] > - The LRNG uses only properly defined and implemented cryptographic >algorithms unlike the use of the SHA-1 transformation in the > existing /dev/random implementation. > > - H

Re: [PATCH/RFC net-next v3] net: dec: tulip: de2104x: Add shutdown handler to stop NIC

2020-10-28 Thread Jakub Kicinski
On Tue, 27 Oct 2020 18:59:09 -0700 Moritz Fischer wrote: > Hi Jakub, > > On Tue, Oct 27, 2020 at 04:16:06PM -0700, Jakub Kicinski wrote: > > On Fri, 23 Oct 2020 13:28:34 -0700 Moritz Fischer wrote: > > > diff --git a/drivers/net/ethernet/dec/tulip/de2104x.c > > > b/drivers/net/ethernet/dec/tuli

Re: [PATCH 1/3] Arm: dts: aspeed-g6: Fix the register range of gpio

2020-10-28 Thread Joel Stanley
On Mon, 26 Oct 2020 at 01:05, Andrew Jeffery wrote: > > > > On Mon, 12 Oct 2020, at 14:01, Billy Tsai wrote: > > This patch is used to fix the memory range of gpio0 > > > > Signed-off-by: Billy Tsai > > Reviewed-by: Andrew Jeffery I've applied this with: Fixes: 8dbcb5b709b9 ("ARM: dts: aspeed-

Re: [PATCH v2 1/4] dt-bindings: nvmem: Add soc qfprom compatible strings

2020-10-28 Thread Evan Green
On Wed, Oct 21, 2020 at 2:41 PM Doug Anderson wrote: > > Hi, > > On Fri, Oct 16, 2020 at 12:27 PM Evan Green wrote: > > > > Add SoC-specific compatible strings so that data can be attached > > to it in the driver. > > > > Signed-off-by: Evan Green > > --- > > > > Changes in v2: > > - Add other

Re: [PATCH] USB: serial: ftdi_sio: Fix serial port stall after resume

2020-10-28 Thread Helge Deller
On 10/27/20 10:00 AM, Johan Hovold wrote: > On Thu, Oct 08, 2020 at 08:16:02PM +0200, Helge Deller wrote: >> On 10/8/20 5:21 PM, Johan Hovold wrote: >>> On Tue, Sep 29, 2020 at 09:33:27PM +0200, Helge Deller wrote: With a 4-port serial USB HUB with FT232BM chips the serial ports stop work

Re: [PATCH v2 3/4] nvmem: core: Add support for keepout regions

2020-10-28 Thread Evan Green
On Wed, Oct 21, 2020 at 2:41 PM Doug Anderson wrote: > > Hi, > > On Fri, Oct 16, 2020 at 12:27 PM Evan Green wrote: > > > > Introduce support into the nvmem core for arrays of register ranges > > that should not result in actual device access. For these regions a > > constant byte (repeated) is r

[PATCH v3 4/4] nvmem: qfprom: Don't touch certain fuses

2020-10-28 Thread Evan Green
Some fuse ranges are protected by the XPU such that the AP cannot access them. Attempting to do so causes an SError. Use the newly introduced per-soc compatible string, and the newly introduced nvmem keepout support to attach the set of regions we should not access. Signed-off-by: Evan Green Revi

[PATCH v3 0/4] nvmem: qfprom: Avoid untouchable regions

2020-10-28 Thread Evan Green
Certain fuses are protected by the XPU such that the AP cannot access them. Attempting to do so causes an SError. Introduce an SoC-specific compatible string, and introduce support into the nvmem core to avoid accessing specified regions. Then use those new elements in the qfprom driver to avoid SE

[PATCH v3 2/4] arm64: dts: qcom: sc7180: Add soc-specific qfprom compat string

2020-10-28 Thread Evan Green
Add the soc-specific compatible string so that it can be matched more specifically now that the driver cares which SoC it's on. Signed-off-by: Evan Green Reviewed-by: Douglas Anderson --- (no changes since v1) arch/arm64/boot/dts/qcom/sc7180.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 dele

[PATCH v3 3/4] nvmem: core: Add support for keepout regions

2020-10-28 Thread Evan Green
Introduce support into the nvmem core for arrays of register ranges that should not result in actual device access. For these regions a constant byte (repeated) is returned instead on read, and writes are quietly ignored and returned as successful. This is useful for instance if certain efuse regi

[PATCH v3 1/4] dt-bindings: nvmem: Add soc qfprom compatible strings

2020-10-28 Thread Evan Green
Add SoC-specific compatible strings so that data can be attached to it in the driver. Signed-off-by: Evan Green --- Changes in v3: - Fixed example (Doug and rob-bot) Changes in v2: - Add other soc compatible strings (Doug) - Fix compatible string definition (Doug) .../devicetree/bindings/n

[RESEND PATCH 36/42] mfd: tps65910: use PLATFORM_DEVID_NONE

2020-10-28 Thread Krzysztof Kozlowski
Use PLATFORM_DEVID_NONE define instead of "-1" value because: - it brings some meaning, - it might point attention why auto device ID was not used. Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/tps65910.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/tps6

Re: [PATCH v2] serial: max310x: rework RX interrupt handling

2020-10-28 Thread Jan Kundrát
On čtvrtek 1. října 2020 9:44:15 CEST, Thomas Petazzoni wrote: Currently, the RX interrupt logic uses the RXEMPTY interrupt, with the RXEMPTYINV bit set, which means we get an RX interrupt as soon as the RX FIFO is non-empty. However, with the MAX310X having a FIFO of 128 bytes, this makes very

[RESEND PATCH 31/42] mfd: timberdale: use PLATFORM_DEVID_NONE

2020-10-28 Thread Krzysztof Kozlowski
Use PLATFORM_DEVID_NONE define instead of "-1" value because: - it brings some meaning, - it might point attention why auto device ID was not used. Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/timberdale.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/driver

[RESEND PATCH 35/42] mfd: tps6586x: use PLATFORM_DEVID_NONE

2020-10-28 Thread Krzysztof Kozlowski
Use PLATFORM_DEVID_NONE define instead of "-1" value because: - it brings some meaning, - it might point attention why auto device ID was not used. Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/tps6586x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/tps6

[RESEND PATCH 32/42] mfd: tps6507x: use PLATFORM_DEVID_NONE

2020-10-28 Thread Krzysztof Kozlowski
Use PLATFORM_DEVID_NONE define instead of "-1" value because: - it brings some meaning, - it might point attention why auto device ID was not used. Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/tps6507x.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/mfd

[RESEND PATCH 34/42] mfd: tps65217: use PLATFORM_DEVID_NONE

2020-10-28 Thread Krzysztof Kozlowski
Use PLATFORM_DEVID_NONE define instead of "-1" value because: - it brings some meaning, - it might point attention why auto device ID was not used. Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/tps65217.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/tps6

Re: [PATCH v6 03/52] dt-bindings: memory: tegra20: emc: Correct registers range in example

2020-10-28 Thread Rob Herring
On Mon, 26 Oct 2020 01:16:46 +0300, Dmitry Osipenko wrote: > There is superfluous zero in the registers base address and registers > size should be twice bigger. > > Signed-off-by: Dmitry Osipenko > --- > .../bindings/memory-controllers/nvidia,tegra20-emc.txt | 2 +- > 1 file changed, 1

[RESEND PATCH 33/42] mfd: tps65090: use PLATFORM_DEVID_NONE

2020-10-28 Thread Krzysztof Kozlowski
Use PLATFORM_DEVID_NONE define instead of "-1" value because: - it brings some meaning, - it might point attention why auto device ID was not used. Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/tps65090.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/tps6

[RESEND PATCH 16/42] mfd: max77686: use PLATFORM_DEVID_NONE

2020-10-28 Thread Krzysztof Kozlowski
Use PLATFORM_DEVID_NONE define instead of "-1" value because: - it brings some meaning, - it might point attention why auto device ID was not used. Signed-off-by: Krzysztof Kozlowski Acked-by: Chanwoo Choi --- drivers/mfd/max77686.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) d

Re: [PATCH 4.9 000/139] 4.9.241-rc1 review

2020-10-28 Thread Guenter Roeck
Retry. On Wed, Oct 28, 2020 at 10:06:53AM -0700, Guenter Roeck wrote: > On Tue, Oct 27, 2020 at 02:48:14PM +0100, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.9.241 release. > > There are 139 patches in this series, all will be posted as a response > > to th

[RESEND PATCH 01/42] mfd: arizona: use PLATFORM_DEVID_NONE

2020-10-28 Thread Krzysztof Kozlowski
Use PLATFORM_DEVID_NONE define instead of "-1" value because: - it brings some meaning, - it might point attention why auto device ID was not used. Signed-off-by: Krzysztof Kozlowski Acked-by: Charles Keepax --- drivers/mfd/arizona-core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletion

[RESEND PATCH 03/42] mfd: as3722: use PLATFORM_DEVID_NONE

2020-10-28 Thread Krzysztof Kozlowski
Use PLATFORM_DEVID_NONE define instead of "-1" value because: - it brings some meaning, - it might point attention why auto device ID was not used. Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/as3722.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/as3722

[RESEND PATCH 14/42] mfd: lp3943: use PLATFORM_DEVID_NONE

2020-10-28 Thread Krzysztof Kozlowski
Use PLATFORM_DEVID_NONE define instead of "-1" value because: - it brings some meaning, - it might point attention why auto device ID was not used. Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/lp3943.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/l

Re: [PATCH] powerpc/smp: Move rcu_cpu_starting() earlier

2020-10-28 Thread Paul E. McKenney
On Thu, Oct 29, 2020 at 11:09:07AM +1100, Michael Ellerman wrote: > Qian Cai writes: > > The call to rcu_cpu_starting() in start_secondary() is not early enough > > in the CPU-hotplug onlining process, which results in lockdep splats as > > follows: > > Since when? > What kernel version? > > I h

Re: [PATCH v3 1/5] x86/boot/compressed/64: Introduce sev_status

2020-10-28 Thread Joerg Roedel
On Mon, Oct 26, 2020 at 07:27:06PM +0100, Borislav Petkov wrote: > A couple of lines above you call get_sev_encryption_bit() which already > reads MSR_AMD64_SEV. Why not set sev_status there too instead of reading > that MSR again here? > > It can read that MSR once and use sev_status(%rip) from t

Re: [PATCH] net: cls_api: remove unneeded local variable in tc_dump_chain()

2020-10-28 Thread Lukas Bulwahn
to make clang-analyzer happy. > > > > As compilers will detect these unneeded assignments and optimize this > > anyway, the resulting binary is identical before and after this change. > > > > No functional change. No change in object code. > > > > Signed-off

Re: [PATCH 11/11] afs: Fix dirty-region encoding on ppc32 with 64K pages

2020-10-28 Thread David Howells
Matthew Wilcox wrote: > > > > +{ > > > > + if (PAGE_SIZE - 1 <= __AFS_PAGE_PRIV_MASK) > > > > + return 1; > > > > + else > > > > + return PAGE_SIZE / (__AFS_PAGE_PRIV_MASK + 1); > > > > > > Could this be DIV_ROUND_UP(PAGE_SIZE, __AFS_PAGE_PRIV_MASK + 1); a

Re: [PATCH v4 3/5] net: ax88796c: ASIX AX88796C SPI Ethernet Adapter Driver

2020-10-28 Thread Andrew Lunn
> +static void > +ax88796c_get_regs(struct net_device *ndev, struct ethtool_regs *regs, void > *_p) > +{ > + struct ax88796c_device *ax_local = to_ax88796c_device(ndev); > + u16 *p = _p; > + int offset, i; You missed a reverse christmass tree fix here. > +static int comp; > +static i

[PATCH v2] KUnit: Docs: style: fix some Kconfig example issues

2020-10-28 Thread Randy Dunlap
Fix the Kconfig example to be closer to Kconfig coding style. Also add punctuation and a trailing slash ('/') to a sub-directory name -- this is how the text mostly appears in other Kconfig files. Signed-off-by: Randy Dunlap Cc: David Gow Cc: linux-kselft...@vger.kernel.org Cc: kunit-...@google

[PATCH v2 2/2] drm/msm: Fix duplicate gpu node in icc summary

2020-10-28 Thread Akhil P Oommen
The dev_pm_opp_of_add_table() api initializes the icc nodes for gpu indirectly. So we can avoid using of_icc_get() api in the common probe path. To improve this, move of_icc_get() to target specific code where it is required. This patch helps to fix duplicate gpu node listed in the interconnect su

Re: [PATCH 1/1] usb: serial: option: add Quectel EC200T module support

2020-10-28 Thread Johan Hovold
On Wed, Oct 28, 2020 at 08:34:09AM +0800, Ziyi Cao wrote: > Hi Johan: > > `lsusb -d 2c7c:6026 -v` dump, in attachment file. Thank you, I've applied the patch now. Johan

Re: [PATCH 09/13] ARM: dts: imx7-mba7: add audio support

2020-10-28 Thread Shawn Guo
On Fri, Sep 18, 2020 at 01:29:38PM +0200, Matthias Schiffer wrote: > The MBa7x is equipped with a TI TLV320AIC3204 audio codec. > > Signed-off-by: Matthias Schiffer Applied, thanks.

RE: [PATCH v3] usb: cdns3: Variable 'length' set but not used

2020-10-28 Thread Peter Chen
> Peter, > > It looks like you missed the " [PATCH v3] usb: cdns3: Variable 'length' set > but > not used" > > It's quite important because compiler complains for this when I use W=1. > Pawel, it is the bug-fix, and located at branch: for-usb-fixes. > Thanks, > Pawel > > >> > > >> > A gent

Re: [PATCH RFC v2 13/21] arm64: kasan: Add cpu_supports_tags helper

2020-10-28 Thread Dmitry Vyukov
On Thu, Oct 22, 2020 at 3:19 PM Andrey Konovalov wrote: > > Add an arm64 helper called cpu_supports_mte() that exposes information > about whether the CPU supports memory tagging and that can be called > during early boot (unlike system_supports_mte()). > > Use that helper to implement a generic c

Re: [PATCH V3 1/3] ARM: imx: use device_initcall for imx_soc_device_init

2020-10-28 Thread Rob Herring
On Wed, May 20, 2020 at 1:01 AM wrote: > > From: Peng Fan > > This is preparation to move imx_soc_device_init to drivers/soc/imx/ > > There is no reason to must put dt devices under /sys/devices/soc0, > they could also be under /sys/devices/platform, so we could > pass NULL as parent when calling

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