[RESEND PATCH 05/25] media: i2c: imx319: silence unused acpi_device_id warning

2020-10-29 Thread Krzysztof Kozlowski
If driver is built without ACPI, the struct acpi_device_id won't be used: drivers/media/i2c/imx319.c:2536:36: warning: 'imx319_acpi_ids' defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/media/i2c/imx319.c | 2 +- 1 file changed, 1 insertion(+)

[RESEND PATCH 02/25] media: i2c: imx219: simplify getting state container

2020-10-29 Thread Krzysztof Kozlowski
The pointer to 'struct v4l2_subdev' is stored in drvdata via v4l2_i2c_subdev_init() so there is no point of a dance like: struct i2c_client *client = to_i2c_client(struct device *dev) struct v4l2_subdev *sd = i2c_get_clientdata(client); This allows to remove local variable 'client' and fe

[RESEND PATCH 04/25] media: i2c: imx319: simplify getting state container

2020-10-29 Thread Krzysztof Kozlowski
The pointer to 'struct v4l2_subdev' is stored in drvdata via v4l2_i2c_subdev_init() so there is no point of a dance like: struct i2c_client *client = to_i2c_client(struct device *dev) struct v4l2_subdev *sd = i2c_get_clientdata(client); This allows to remove local variable 'client' and fe

[RESEND PATCH 06/25] media: i2c: imx355: simplify getting state container

2020-10-29 Thread Krzysztof Kozlowski
The pointer to 'struct v4l2_subdev' is stored in drvdata via v4l2_i2c_subdev_init() so there is no point of a dance like: struct i2c_client *client = to_i2c_client(struct device *dev) struct v4l2_subdev *sd = i2c_get_clientdata(client); This allows to remove local variable 'client' and fe

[RESEND PATCH 07/25] media: i2c: imx355: silence unused acpi_device_id warning

2020-10-29 Thread Krzysztof Kozlowski
If driver is built without ACPI, the struct acpi_device_id won't be used: drivers/media/i2c/imx355.c:1836:36: warning: 'imx355_acpi_ids' defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/media/i2c/imx355.c | 2 +- 1 file changed, 1 insertion(+)

[RESEND PATCH 16/25] media: i2c: ov2680: simplify getting state container

2020-10-29 Thread Krzysztof Kozlowski
The pointer to 'struct v4l2_subdev' is stored in drvdata via v4l2_i2c_subdev_init() so there is no point of a dance like: struct i2c_client *client = to_i2c_client(struct device *dev) struct v4l2_subdev *sd = i2c_get_clientdata(client); This allows to remove local variable 'client' and fe

[RESEND PATCH 17/25] media: i2c: ov2685: simplify getting state container

2020-10-29 Thread Krzysztof Kozlowski
The pointer to 'struct v4l2_subdev' is stored in drvdata via v4l2_i2c_subdev_init() so there is no point of a dance like: struct i2c_client *client = to_i2c_client(struct device *dev) struct v4l2_subdev *sd = i2c_get_clientdata(client); This allows to remove local variable 'client' and fe

[RESEND PATCH 14/25] media: i2c: hi556: simplify getting state container

2020-10-29 Thread Krzysztof Kozlowski
The pointer to 'struct v4l2_subdev' is stored in drvdata via v4l2_i2c_subdev_init() so there is no point of a dance like: struct i2c_client *client = to_i2c_client(struct device *dev) struct v4l2_subdev *sd = i2c_get_clientdata(client); This allows to remove local variable 'client' and fe

[RESEND PATCH 12/25] media: i2c: dw9768: simplify getting state container

2020-10-29 Thread Krzysztof Kozlowski
The pointer to 'struct v4l2_subdev' is stored in drvdata via v4l2_i2c_subdev_init() so there is no point of a dance like: struct i2c_client *client = to_i2c_client(struct device *dev) struct v4l2_subdev *sd = i2c_get_clientdata(client); This allows to remove local variable 'client' and fe

[RESEND PATCH 10/25] media: i2c: adv7180: simplify getting state container

2020-10-29 Thread Krzysztof Kozlowski
The pointer to 'struct v4l2_subdev' is stored in drvdata via v4l2_i2c_subdev_init() so there is no point of a dance like: struct i2c_client *client = to_i2c_client(struct device *dev) struct v4l2_subdev *sd = i2c_get_clientdata(client); This allows to remove local variable 'client' and fe

[RESEND PATCH 08/25] media: i2c: ad5820: simplify getting state container

2020-10-29 Thread Krzysztof Kozlowski
The pointer to 'struct v4l2_subdev' is stored in drvdata via v4l2_i2c_subdev_init() so there is no point of a dance like: struct i2c_client *client = to_i2c_client(struct device *dev) struct v4l2_subdev *sd = i2c_get_clientdata(client); This allows to remove local variable 'client' and fe

[RESEND PATCH 20/25] media: i2c: ov5675: simplify getting state container

2020-10-29 Thread Krzysztof Kozlowski
The pointer to 'struct v4l2_subdev' is stored in drvdata via v4l2_i2c_subdev_init() so there is no point of a dance like: struct i2c_client *client = to_i2c_client(struct device *dev) struct v4l2_subdev *sd = i2c_get_clientdata(client); This allows to remove local variable 'client' and fe

[RESEND PATCH 09/25] media: i2c: adp1653: simplify getting state container

2020-10-29 Thread Krzysztof Kozlowski
The pointer to 'struct v4l2_subdev' is stored in drvdata via v4l2_i2c_subdev_init() so there is no point of a dance like: struct i2c_client *client = to_i2c_client(struct device *dev) struct v4l2_subdev *sd = i2c_get_clientdata(client); This allows to remove local variable 'client' and fe

[RESEND PATCH 18/25] media: i2c: ov2740: simplify getting state container

2020-10-29 Thread Krzysztof Kozlowski
The pointer to 'struct v4l2_subdev' is stored in drvdata via v4l2_i2c_subdev_init() so there is no point of a dance like: struct i2c_client *client = to_i2c_client(struct device *dev) struct v4l2_subdev *sd = i2c_get_clientdata(client); This allows to remove local variable 'client' and fe

[RESEND PATCH 11/25] media: i2c: ak7375: simplify getting state container

2020-10-29 Thread Krzysztof Kozlowski
The pointer to 'struct v4l2_subdev' is stored in drvdata via v4l2_i2c_subdev_init() so there is no point of a dance like: struct i2c_client *client = to_i2c_client(struct device *dev) struct v4l2_subdev *sd = i2c_get_clientdata(client); This allows to remove local variable 'client' and fe

[RESEND PATCH 13/25] media: i2c: et8ek8: simplify getting state container

2020-10-29 Thread Krzysztof Kozlowski
The pointer to 'struct v4l2_subdev' is stored in drvdata via v4l2_i2c_subdev_init() so there is no point of a dance like: struct i2c_client *client = to_i2c_client(struct device *dev) struct v4l2_subdev *sd = i2c_get_clientdata(client); This allows to remove local variable 'client' and fe

[RESEND PATCH 15/25] media: i2c: ov13858: simplify getting state container

2020-10-29 Thread Krzysztof Kozlowski
The pointer to 'struct v4l2_subdev' is stored in drvdata via v4l2_i2c_subdev_init() so there is no point of a dance like: struct i2c_client *client = to_i2c_client(struct device *dev) struct v4l2_subdev *sd = i2c_get_clientdata(client); This allows to remove local variable 'client' and fe

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

2020-10-29 Thread Muchun Song
Consider the following memcg hierarchy. root /\ A B If we failed to get the reference on objcg of memcg A, the get_obj_cgroup_from_current can return the wrong objcg for the root memcg. Fixes: bf4f059954dc ("mm: memcg/slab: obj_cg

[RESEND PATCH 21/25] media: i2c: ov5695: simplify getting state container

2020-10-29 Thread Krzysztof Kozlowski
The pointer to 'struct v4l2_subdev' is stored in drvdata via v4l2_i2c_subdev_init() so there is no point of a dance like: struct i2c_client *client = to_i2c_client(struct device *dev) struct v4l2_subdev *sd = i2c_get_clientdata(client); This allows to remove local variable 'client' and fe

[RESEND PATCH 19/25] media: i2c: ov5670: simplify getting state container

2020-10-29 Thread Krzysztof Kozlowski
The pointer to 'struct v4l2_subdev' is stored in drvdata via v4l2_i2c_subdev_init() so there is no point of a dance like: struct i2c_client *client = to_i2c_client(struct device *dev) struct v4l2_subdev *sd = i2c_get_clientdata(client); This allows to remove local variable 'client' and fe

[RESEND PATCH 23/25] media: i2c: ov8856: simplify getting state container

2020-10-29 Thread Krzysztof Kozlowski
The pointer to 'struct v4l2_subdev' is stored in drvdata via v4l2_i2c_subdev_init() so there is no point of a dance like: struct i2c_client *client = to_i2c_client(struct device *dev) struct v4l2_subdev *sd = i2c_get_clientdata(client); This allows to remove local variable 'client' and fe

[RESEND PATCH 24/25] media: i2c: smiapp: simplify getting state container

2020-10-29 Thread Krzysztof Kozlowski
The pointer to 'struct v4l2_subdev' is stored in drvdata via v4l2_i2c_subdev_init() so there is no point of a dance like: struct i2c_client *client = to_i2c_client(struct device *dev) struct v4l2_subdev *sd = i2c_get_clientdata(client); This allows to remove local variable 'client' and fe

[RESEND PATCH 22/25] media: i2c: ov7740: simplify getting state container

2020-10-29 Thread Krzysztof Kozlowski
The pointer to 'struct v4l2_subdev' is stored in drvdata via v4l2_i2c_subdev_init() so there is no point of a dance like: struct i2c_client *client = to_i2c_client(struct device *dev) struct v4l2_subdev *sd = i2c_get_clientdata(client); This allows to remove local variable 'client' and fe

[RESEND PATCH 25/25] media: i2c: tvp5150: simplify getting state container

2020-10-29 Thread Krzysztof Kozlowski
The pointer to 'struct v4l2_subdev' is stored in drvdata via v4l2_i2c_subdev_init() so there is no point of a dance like: struct i2c_client *client = to_i2c_client(struct device *dev) struct v4l2_subdev *sd = i2c_get_clientdata(client); This allows to remove local variable 'client' and fe

[PATCH 0/2] coresight: Fixes for v5.10-rc2

2020-10-29 Thread Mathieu Poirier
Hi Greg, Please consider those when collecting fixes for this cycle. Thanks, Mathieu Mike Leach (1): coresight: Fix uninitialised pointer bug in etm_setup_aux() Suzuki K Poulose (1): coresight: cti: Initialize dynamic sysfs attributes drivers/hwtracing/coresight/coresight-cti-sysfs.c | 7

[PATCH 1/2] coresight: cti: Initialize dynamic sysfs attributes

2020-10-29 Thread Mathieu Poirier
From: Suzuki K Poulose With LOCKDEP enabled, CTI driver triggers the following splat due to uninitialized lock class for dynamically allocated attribute objects. [5.372901] coresight etm0: CPU0: ETM v4.0 initialized [5.376694] coresight etm1: CPU1: ETM v4.0 initialized [5.380785] cor

[PATCH 2/2] coresight: Fix uninitialised pointer bug in etm_setup_aux()

2020-10-29 Thread Mathieu Poirier
From: Mike Leach Commit [bb1860efc817] changed the sink handling code introducing an uninitialised pointer bug. This results in the default sink selection failing. Prior to commit: static void etm_setup_aux(...) struct coresight_device *sink; /* First get the selected sink f

Re: [PATCH v3 net] gtp: fix an use-before-init in gtp_newlink()

2020-10-29 Thread Jakub Kicinski
On Tue, 27 Oct 2020 20:48:46 +0900 Masahiro Fujiwara wrote: > *_pdp_find() from gtp_encap_recv() would trigger a crash when a peer > sends GTP packets while creating new GTP device. > > RIP: 0010:gtp1_pdp_find.isra.0+0x68/0x90 [gtp] > > Call Trace: > > gtp_encap_recv+0xc2/0x2e0 [gtp] > ? gtp1

Re: [PATCH v2 0/2] fs, close_range: add flag CLOSE_RANGE_CLOEXEC

2020-10-29 Thread Giuseppe Scrivano
Hi Christian, Christian Brauner writes: > On Mon, Oct 19, 2020 at 12:26:52PM +0200, Giuseppe Scrivano wrote: >> When the new flag is used, close_range will set the close-on-exec bit >> for the file descriptors instead of close()-ing them. >> >> It is useful for e.g. container runtimes that want

[PATCH 07/16] locking/bitspinlock: Cleanup PREEMPT_COUNT leftovers

2020-10-29 Thread Uladzislau Rezki (Sony)
From: Thomas Gleixner CONFIG_PREEMPT_COUNT is now unconditionally enabled and will be removed. Cleanup the leftovers before doing so. Signed-off-by: Thomas Gleixner Acked-by: Will Deacon Signed-off-by: Uladzislau Rezki (Sony) --- include/linux/bit_spinlock.h | 4 +--- 1 file changed, 1 inser

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

2020-10-29 Thread Andrey Konovalov
On Wed, Oct 28, 2020 at 12:28 PM Dmitry Vyukov wrote: > [...] > > +void *mte_set_mem_tag_range(void *addr, size_t size, u8 tag) > > +{ > > + void *ptr = addr; > > + > > + if ((!system_supports_mte()) || (size == 0)) > > + return addr; > > + > > + /* Make sure that

[PATCH 16/16] rcu/tree: Use delayed work instead of hrtimer to refill the cache

2020-10-29 Thread Uladzislau Rezki (Sony)
A CONFIG_PREEMPT_COUNT is unconditionally enabled, thus a page can be obtained directly from a kvfree_rcu() path. To distinguish that and take a decision the preemptable() macro is used when it is save to enter allocator. It means that refilling a cache is not important from timing point of view.

[PATCH 02/16] lib/debug: Remove pointless ARCH_NO_PREEMPT dependencies

2020-10-29 Thread Uladzislau Rezki (Sony)
From: Thomas Gleixner ARCH_NO_PREEMPT disables the selection of CONFIG_PREEMPT_VOLUNTARY and CONFIG_PREEMPT, but architectures which set this config option still support preempt count for hard and softirq accounting. There is absolutely no reason to prevent lockdep from using the preempt counter

[PATCH 01/16] rcu/tree: Add a work to allocate pages from regular context

2020-10-29 Thread Uladzislau Rezki (Sony)
The current memmory-allocation interface presents to following difficulties that this patch is designed to overcome: a) If built with CONFIG_PROVE_RAW_LOCK_NESTING, the lockdep will complain about violation("BUG: Invalid wait context") of the nesting rules. It does the raw_spinlock vs. spinl

[PATCH 09/16] sched: Cleanup PREEMPT_COUNT leftovers

2020-10-29 Thread Uladzislau Rezki (Sony)
From: Thomas Gleixner CONFIG_PREEMPT_COUNT is now unconditionally enabled and will be removed. Cleanup the leftovers before doing so. Signed-off-by: Thomas Gleixner Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Juri Lelli Cc: Vincent Guittot Cc: Dietmar Eggemann Cc: Steven Rostedt Cc: Ben Segall

[PATCH 12/16] drm/i915: Cleanup PREEMPT_COUNT leftovers

2020-10-29 Thread Uladzislau Rezki (Sony)
From: Thomas Gleixner CONFIG_PREEMPT_COUNT is now unconditionally enabled and will be removed. Cleanup the leftovers before doing so. Signed-off-by: Thomas Gleixner Cc: Jani Nikula Cc: Joonas Lahtinen Cc: Rodrigo Vivi Cc: David Airlie Cc: Daniel Vetter Cc: intel-...@lists.freedesktop.org C

[PATCH 08/16] uaccess: Cleanup PREEMPT_COUNT leftovers

2020-10-29 Thread Uladzislau Rezki (Sony)
From: Thomas Gleixner CONFIG_PREEMPT_COUNT is now unconditionally enabled and will be removed. Cleanup the leftovers before doing so. Signed-off-by: Thomas Gleixner Signed-off-by: Uladzislau Rezki (Sony) --- include/linux/uaccess.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

Re: [RESEND PATCH v3 1/4] dt-bindings: connector: add power-opmode optional property to usb-connector

2020-10-29 Thread Amelie DELAUNAY
On 10/29/20 4:40 PM, Rob Herring wrote: On Thu, Oct 29, 2020 at 10:58:03AM +0100, Amelie Delaunay wrote: Power operation mode may depends on hardware design, so, add the optional property power-opmode for usb-c connector to select the power operation mode capability. Signed-off-by: Amelie De

[PATCH 15/16] rcu/tree: Allocate a page when caller is preemptible

2020-10-29 Thread Uladzislau Rezki (Sony)
Given that CONFIG_PREEMPT_COUNT is unconditionally enabled by the earlier commits in this series, the preemptible() macro now properly detects preempt-disable code regions even in kernels built with CONFIG_PREEMPT_NONE. This commit therefore uses preemptible() to determine whether allocation is po

Re: [PATCH 14/17] phy: samsung: convert to devm_platform_ioremap_resource

2020-10-29 Thread Krzysztof Kozlowski
On Thu, Oct 29, 2020 at 10:54:36AM +0800, Chunfeng Yun wrote: > Use devm_platform_ioremap_resource to simplify code > > Signed-off-by: Chunfeng Yun > --- Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof > drivers/phy/samsung/phy-exynos-pcie.c | 7 ++- > drivers/phy/samsung/ph

[PATCH 10/16] ARM: Cleanup PREEMPT_COUNT leftovers

2020-10-29 Thread Uladzislau Rezki (Sony)
From: Thomas Gleixner CONFIG_PREEMPT_COUNT is now unconditionally enabled and will be removed. Cleanup the leftovers before doing so. Signed-off-by: Thomas Gleixner Cc: Russell King Cc: linux-arm-ker...@lists.infradead.org Signed-off-by: Uladzislau Rezki (Sony) --- arch/arm/include/asm/assem

[PATCH 03/16] preempt: Make preempt count unconditional

2020-10-29 Thread Uladzislau Rezki (Sony)
From: Thomas Gleixner The handling of preempt_count() is inconsistent accross kernel configurations. On kernels which have PREEMPT_COUNT=n preempt_disable/enable() and the lock/unlock functions are not affecting the preempt count, only local_bh_disable/enable() and _bh variants of locking, soft i

[PATCH 11/16] xtensa: Cleanup PREEMPT_COUNT leftovers

2020-10-29 Thread Uladzislau Rezki (Sony)
From: Thomas Gleixner CONFIG_PREEMPT_COUNT is now unconditionally enabled and will be removed. Cleanup the leftovers before doing so. Signed-off-by: Thomas Gleixner Cc: Chris Zankel Cc: Max Filippov Cc: linux-xte...@linux-xtensa.org Signed-off-by: Uladzislau Rezki (Sony) --- arch/xtensa/ker

[PATCH 04/16] preempt: Cleanup PREEMPT_COUNT leftovers

2020-10-29 Thread Uladzislau Rezki (Sony)
From: Thomas Gleixner CONFIG_PREEMPT_COUNT is now unconditionally enabled and will be removed. Cleanup the leftovers before doing so. Signed-off-by: Thomas Gleixner Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Juri Lelli Cc: Vincent Guittot Cc: Dietmar Eggemann Cc: Steven Rostedt Cc: Ben Segall

[PATCH 14/16] preempt: Remove PREEMPT_COUNT from Kconfig

2020-10-29 Thread Uladzislau Rezki (Sony)
From: Thomas Gleixner All conditionals and irritations are gone. Signed-off-by: Thomas Gleixner Signed-off-by: Uladzislau Rezki (Sony) --- kernel/Kconfig.preempt | 3 --- 1 file changed, 3 deletions(-) diff --git a/kernel/Kconfig.preempt b/kernel/Kconfig.preempt index 3f4712ff073b..120b63f0c

[PATCH 13/16] rcutorture: Cleanup PREEMPT_COUNT leftovers

2020-10-29 Thread Uladzislau Rezki (Sony)
From: Thomas Gleixner CONFIG_PREEMPT_COUNT is now unconditionally enabled and will be removed. Cleanup the leftovers before doing so. Signed-off-by: Thomas Gleixner Cc: "Paul E. McKenney" Cc: Josh Triplett Cc: Steven Rostedt Cc: Mathieu Desnoyers Cc: Lai Jiangshan Cc: Shuah Khan Cc: r...@

[PATCH 05/16] lockdep: Cleanup PREEMPT_COUNT leftovers

2020-10-29 Thread Uladzislau Rezki (Sony)
From: Thomas Gleixner CONFIG_PREEMPT_COUNT is now unconditionally enabled and will be removed. Cleanup the leftovers before doing so. Signed-off-by: Thomas Gleixner Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Will Deacon Acked-by: Will Deacon [ Rezki: Adopted for 5.10.0-rc1 kernel. ] Signed-off-

Re: [PATCH v2 net 0/5] net: ipa: minor bug fixes

2020-10-29 Thread Alex Elder
On 10/29/20 11:11 AM, Jakub Kicinski wrote: On Wed, 28 Oct 2020 14:41:43 -0500 Alex Elder wrote: This series fixes several bugs. They are minor, in that the code currently works on supported platforms even without these patches applied, but they're bugs nevertheless and should be fixed. By wh

[PATCH 06/16] mm/pagemap: Cleanup PREEMPT_COUNT leftovers

2020-10-29 Thread Uladzislau Rezki (Sony)
From: Thomas Gleixner CONFIG_PREEMPT_COUNT is now unconditionally enabled and will be removed. Cleanup the leftovers before doing so. Signed-off-by: Thomas Gleixner Cc: Andrew Morton Cc: linux...@kvack.org Signed-off-by: Uladzislau Rezki (Sony) --- include/linux/pagemap.h | 4 +--- 1 file ch

Re: [PATCH v5 08/40] arm64: mte: Switch GCR_EL1 in kernel entry and exit

2020-10-29 Thread Andrey Konovalov
On Wed, Oct 28, 2020 at 11:07 AM Dmitry Vyukov wrote: > > On Mon, Oct 12, 2020 at 10:45 PM Andrey Konovalov > wrote: > > > > From: Vincenzo Frascino > > > > When MTE is present, the GCR_EL1 register contains the tags mask that > > allows to exclude tags from the random generation via the IRG in

Re: [PATCH] [v2] x86: apic: avoid -Wshadow warning in header

2020-10-29 Thread Thomas Gleixner
Arnd, On Thu, Oct 29 2020 at 10:51, Arnd Bergmann wrote: > On Thu, Oct 29, 2020 at 8:04 AM Paolo Bonzini wrote: >> On 28/10/20 22:20, Arnd Bergmann wrote: >> > Avoid this by renaming the global 'apic' variable to the more descriptive >> > 'x86_system_apic'. It was originally called 'genapic', but

Re: [PATCH] [v2] x86: apic: avoid -Wshadow warning in header

2020-10-29 Thread Arvind Sankar
On Thu, Oct 29, 2020 at 03:05:31PM +, David Laight wrote: > From: Arnd Bergmann > > Sent: 28 October 2020 21:21 > > > > From: Arnd Bergmann > > > > There are hundreds of warnings in a W=2 build about a local > > variable shadowing the global 'apic' definition: > > > > arch/x86/kvm/lapic.h:1

Re: [PATCH net-next v3 2/4] net: hdlc_fr: Change the use of "dev" in fr_rx to make the code cleaner

2020-10-29 Thread Willem de Bruijn
On Wed, Oct 28, 2020 at 10:12 PM Xie He wrote: > > The eth_type_trans function is called when we receive frames carrying > Ethernet frames. This function expects a non-NULL pointer as an argument, > and assigns it directly to skb->dev. > > However, the code handling other types of frames first ass

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

2020-10-29 Thread Joel Fernandes
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 +4714,14 @@ pick_next_task(struct rq *rq, struct task_struct > > *prev, struct rq_flags *rf) > > update_rq_clock(rq_i); >

Re: [PATCH v4 23/23] drm/msm: Don't implicit-sync if only a single ring

2020-10-29 Thread Rob Clark
On Thu, Oct 29, 2020 at 9:14 AM Daniel Vetter wrote: > > On Mon, Oct 26, 2020 at 10:34 AM Daniel Vetter wrote: > > > > On Fri, Oct 23, 2020 at 08:49:14PM -0700, Rob Clark wrote: > > > On Fri, Oct 23, 2020 at 11:20 AM Lucas Stach > > > wrote: > > > > > > > > On Fr, 2020-10-23 at 09:51 -0700, Rob

Re: [PATCH] [v2] x86: apic: avoid -Wshadow warning in header

2020-10-29 Thread Paolo Bonzini
On 29/10/20 17:56, Arvind Sankar wrote: >> For those two just add: >> struct apic *apic = x86_system_apic; >> before all the assignments. >> Less churn and much better code. >> > Why would it be better code? > I think he means the compiler produces better code, because it won't read the glob

Re: [PATCH net-next v3 1/4] net: hdlc_fr: Simpify fr_rx by using "goto rx_drop" to drop frames

2020-10-29 Thread Willem de Bruijn
On Wed, Oct 28, 2020 at 6:01 PM Xie He wrote: > > When the fr_rx function drops a received frame (because the protocol type > is not supported, or because the PVC virtual device that corresponds to > the DLCI number and the protocol type doesn't exist), the function frees > the skb and returns. >

[PATCH] drm/panfrost: Don't corrupt the queue mutex on open/close

2020-10-29 Thread Steven Price
The mutex within the panfrost_queue_state should have the lifetime of the queue, however it was erroneously initialised/destroyed during panfrost_job_{open,close} which is called every time a client opens/closes the drm node. Move the initialisation/destruction to panfrost_job_{init,fini} where it

Re: [PATCH 1/4] misc/pvpanic : preparing for pvpanic driver framework

2020-10-29 Thread Andy Shevchenko
On Thu, Oct 29, 2020 at 2:28 PM Mihai Carabas wrote: > > From: Peng Hao > > Preparing for pvpanic driver framework. Create a pvpanic driver > directory and move current driver file to new directory. Hmm... It was a bit of a long time... Have you seen [1]? [1]: https://lore.kernel.org/lkml/2020

Re: [PATCH 3/9] mfd: intel_soc_pmic: remove unnecessary CONFIG_PM_SLEEP

2020-10-29 Thread Andy Shevchenko
On Thu, Oct 29, 2020 at 5:27 PM Lee Jones wrote: > On Thu, 29 Oct 2020, Coiby Xu wrote: > > On Thu, Oct 29, 2020 at 01:00:29PM +0200, Andy Shevchenko wrote: > > > On Thu, Oct 29, 2020 at 06:06:41PM +0800, Coiby Xu wrote: > > > > SIMPLE_DEV_PM_OPS has already took good care of CONFIG_PM_CONFIG. > >

Re: [PATCH v2] mm: memcg: link page counters to root if use_hierarchy is false

2020-10-29 Thread Roman Gushchin
On Thu, Oct 29, 2020 at 04:39:21PM +0100, Michal Koutny wrote: > Hi. > > On Mon, Oct 26, 2020 at 04:13:26PM -0700, Roman Gushchin wrote: > > Please note, that in the non-hierarchical mode all objcgs are always > > reparented to the root memory cgroup, even if the hierarchy has more > > than 1 lev

Re: [PATCH 2/3] mwifiex: add allow_ps_mode module parameter

2020-10-29 Thread Willem de Bruijn
On Wed, Oct 28, 2020 at 9:13 PM Brian Norris wrote: > > On Wed, Oct 28, 2020 at 2:56 PM Tsuchiya Yuto wrote: > > > > To make the ps_mode (power_save) control easier, this commit adds a new > > module parameter allow_ps_mode and set it false (disallowed) by default. This sounds like some form of

Re: [PATCH 01/15] iio: accel: remove unnecessary CONFIG_PM_SLEEP

2020-10-29 Thread Andy Shevchenko
On Thu, Oct 29, 2020 at 4:42 PM Jonathan Cameron wrote: > On Thu, 29 Oct 2020 15:48:56 +0800 > Coiby Xu wrote: > Please put a cover letter on your next series explaining the context. > In this particular case some of the replies you have gotten are > general at it is a lot easier to find these s

Re: [PATCH v4 2/5] dt-bindings: net: Add bindings for AX88796C SPI Ethernet Adapter

2020-10-29 Thread Marc Kleine-Budde
On 10/28/20 10:40 PM, Łukasz Stelmach wrote: > Add bindings for AX88796C SPI Ethernet Adapter. > > Signed-off-by: Łukasz Stelmach > --- > .../bindings/net/asix,ax88796c.yaml | 69 +++ > 1 file changed, 69 insertions(+) > create mode 100644 Documentation/devicetree/bind

[PATCH 0/3] Firmware loading option

2020-10-29 Thread Andrej Valek
Add option to prevent firmware/configuration loading during each boot. Andrej Valek (3): Input: goodix - add option to disable firmware loading dt-bindings: goodix Input: atmel_mxt_ts - add option to disable firmware loading .../bindings/input/touchscreen/goodix.yaml | 1 + drivers/i

[PATCH 3/3] Input: atmel_mxt_ts - add option to disable firmware loading

2020-10-29 Thread Andrej Valek
Firmware file loadind for mXT336U controller takes too much time (~60s). There is no check that configuration is the same which is already present. This happens always during boot, which makes touchscreen unusable. Add there an option to prevent firmware file loading, but keep it enabled by defaul

Re: [RFC 3/3] pinctl: mt7622: drop pwm ch7 as mt7622 only has 6 channels

2020-10-29 Thread Linus Walleij
On Fri, Oct 16, 2020 at 10:40 PM Frank Wunderlich wrote: > From: Frank Wunderlich > > mt7622 is reported by mediatek to have only 6 pwm channels > so drop pindefines for 7th channel > > Signed-off-by: Frank Wunderlich I can merge this patch to the pinctrl tree if I get some kind of review resp

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

2020-10-29 Thread Roman Gushchin
On Thu, Oct 29, 2020 at 08:48:45AM -0700, Shakeel Butt wrote: > On Tue, Oct 27, 2020 at 8:50 PM Muchun Song wrote: > > > > Consider the following memcg hierarchy. > > > > root > >/\ > > A B > > > > If we get the objcg of memcg A fa

Re: [PATCHv2 1/3] software node: Power management operations for software nodes

2020-10-29 Thread Rafael J. Wysocki
On Thu, Oct 29, 2020 at 11:59 AM Heikki Krogerus wrote: > > The software node specific PM operations make it possible to > handle most PM related quirks separately in their own > functions instead of conditionally in the device driver's > generic PM functions (and in some cases all over the > driv

Re: [RFC PATCH 2/3] dt-bindings: gpio: Add binding documentation for Etron EJ168/EJ188/EJ198

2020-10-29 Thread Linus Walleij
On Fri, Oct 16, 2020 at 10:52 PM Martin Blumenstingl wrote: > On Wed, Oct 14, 2020 at 2:43 PM Rob Herring wrote: > > On Tue, Oct 13, 2020 at 8:27 AM Linus Walleij > > wrote: > > > I do not understand why a PCI device would need a DT binding > > > at all. They just probe from the magic number i

[PATCH 2/3] dt-bindings: goodix

2020-10-29 Thread Andrej Valek
Add information about option how to disable FW loading for each boot. Signed-off-by: Andrej Valek --- Documentation/devicetree/bindings/input/touchscreen/goodix.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/goodix.yaml b/Documentati

[PATCH 1/3] Input: goodix - add option to disable firmware loading

2020-10-29 Thread Andrej Valek
Firmware file loadind for GT911 controller takes too much time (~60s). There is no check that configuration is the same which is already present. This happens always during boot, which makes touchscreen unusable. Add there an option to prevent firmware file loading, but keep it enabled by default.

Re: [PATCH v1] of: platform: Batch fwnode parsing in the init_machine() path

2020-10-29 Thread Tomi Valkeinen
On 27/10/2020 05:29, Saravana Kannan wrote: > Can you try throwing around fw_devlink_pause/resume() around the > of_platform_populate() call in arch/arm/mach-omap2/pdata-quirks.c? > Just trying to verify the cause/fix. AM5 EVM on v5.10-rc1: [1.139945] cpuidle: using governor menu [ 13.1264

Re: [PATCH 33/33] docs: ABI: unify /sys/class/leds//max_brightness documentation

2020-10-29 Thread Pavel Machek
On Wed 2020-10-28 15:23:31, Mauro Carvalho Chehab wrote: > This ABI is defined twice, one for normal leds and another > one for multicolor ones. > > Ensure that just one definition is there at ABI. > > Signed-off-by: Mauro Carvalho Chehab Acked-by: Pavel Machek -- http://www.livejournal.com/

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

2020-10-29 Thread Qais Yousef
On 10/29/20 16:50, Dietmar Eggemann wrote: > On 29/10/2020 14:06, Qais Yousef wrote: > > On 10/29/20 21:02, Yun Hsiang wrote: > >> Hi Qais, > >> > >> On Thu, Oct 29, 2020 at 11:08:18AM +, Qais Yousef wrote: > >>> Hi Yun > >>> > >>> Sorry for chipping in late. > >>> > >>> On 10/25/20 15:36, Yun

Re: [PATCH v2 net] net: sch_generic: aviod concurrent reset and enqueue op for lockless qdisc

2020-10-29 Thread Vishwanath Pai
On 10/29/20 6:24 AM, Yunsheng Lin wrote: > On 2020/10/29 12:50, Vishwanath Pai wrote: >> On 10/28/20 10:37 PM, Yunsheng Lin wrote: >>> On 2020/10/29 4:04, Vishwanath Pai wrote: On 10/28/20 1:47 PM, Cong Wang wrote: > On Wed, Oct 28, 2020 at 8:37 AM Pai, Vishwanath wrote: >> Hi, >>>

Re: [PATCH] [v2] x86: apic: avoid -Wshadow warning in header

2020-10-29 Thread Arvind Sankar
On Thu, Oct 29, 2020 at 05:59:54PM +0100, Paolo Bonzini wrote: > On 29/10/20 17:56, Arvind Sankar wrote: > >> For those two just add: > >>struct apic *apic = x86_system_apic; > >> before all the assignments. > >> Less churn and much better code. > >> > > Why would it be better code? > > > > I

ld.lld: error: undefined symbol: bpf_preload_ops

2020-10-29 Thread kernel test robot
. date: 2 months ago config: x86_64-randconfig-r016-20201029 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 772aaa602383cf82795572ebcd86b0e660f3579f) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master

Re: [PATCH v9 1/3] dt-bindings: Add vendor prefix for Novatek Microelectronics Corp.

2020-10-29 Thread AngeloGioacchino Del Regno
Il giorno gio 29 ott 2020 alle ore 16:50 Rob Herring ha scritto: > > On Wed, 28 Oct 2020 23:13:00 +0100, khol...@gmail.com wrote: > > From: AngeloGioacchino Del Regno > > > > Add prefix for Novatek Microelectronics Corp. > > > > Signed-off-by: AngeloGioacchino Del Regno > > --- > > Documentatio

Re: [PATCH net-next v2 4/4] net: hdlc_fr: Add support for any Ethertype

2020-10-29 Thread Willem de Bruijn
On Wed, Oct 28, 2020 at 6:58 PM Xie He wrote: > > Change the fr_rx function to make this driver support any Ethertype > when receiving skbs on normal (non-Ethernet-emulating) PVC devices. > (This driver is already able to handle any Ethertype when sending.) > > Originally in the fr_rx function, th

[PATCH v5 0/7] arm64: Default to 32-bit wide ZONE_DMA

2020-10-29 Thread Nicolas Saenz Julienne
Using two distinct DMA zones turned out to be problematic. Here's an attempt go back to a saner default. I tested this on both a RPi4 and QEMU. --- Changes since v4: - Fix of_dma_get_max_cpu_address() so it returns the last addressable addres, not the limit Changes since v3: - Drop patch a

[PATCH v5 3/7] of/address: Introduce of_dma_get_max_cpu_address()

2020-10-29 Thread Nicolas Saenz Julienne
Introduce of_dma_get_max_cpu_address(), which provides the highest CPU physical address addressable by all DMA masters in the system. It's specially useful for setting memory zones sizes at early boot time. Signed-off-by: Nicolas Saenz Julienne --- Changes since v4: - Return max address, not a

[PATCH v5 4/7] of: unittest: Add test for of_dma_get_max_cpu_address()

2020-10-29 Thread Nicolas Saenz Julienne
Introduce a test for of_dma_get_max_cup_address(), it uses the same DT data as the rest of dma-ranges unit tests. Signed-off-by: Nicolas Saenz Julienne Reviewed-by: Rob Herring --- Changes since v3: - Remove HAS_DMA guards drivers/of/unittest.c | 18 ++ 1 file changed, 18 ins

[PATCH v5 7/7] mm: Remove examples from enum zone_type comment

2020-10-29 Thread Nicolas Saenz Julienne
We can't really list every setup in common code. On top of that they are unlikely to stay true for long as things change in the arch trees independently of this comment. Suggested-by: Christoph Hellwig Signed-off-by: Nicolas Saenz Julienne Reviewed-by: Christoph Hellwig --- include/linux/mmzon

[PATCH v5 5/7] arm64: mm: Set ZONE_DMA size based on devicetree's dma-ranges

2020-10-29 Thread Nicolas Saenz Julienne
We recently introduced a 1 GB sized ZONE_DMA to cater for platforms incorporating masters that can address less than 32 bits of DMA, in particular the Raspberry Pi 4, which has 4 or 8 GB of DRAM, but has peripherals that can only address up to 1 GB (and its PCIe host bridge can only access the bott

Re: [PATCH v18 0/4] iommu/arm-smmu: Add adreno-smmu implementation and bindings

2020-10-29 Thread Will Deacon
On Tue, Oct 27, 2020 at 04:34:04PM -0600, Jordan Crouse wrote: > This short series adds support for the adreno-smmu implementation of the > arm-smmu driver and the device-tree bindings to turn on the implementation > for the sm845 and sc7180 GPUs. These changes are the last ones needed to > enable

[PATCH v5 2/7] arm64: mm: Move zone_dma_bits initialization into zone_sizes_init()

2020-10-29 Thread Nicolas Saenz Julienne
zone_dma_bits's initialization happens earlier that it's actually needed, in arm64_memblock_init(). So move it into the more suitable zone_sizes_init(). Signed-off-by: Nicolas Saenz Julienne Tested-by: Jeremy Linton --- arch/arm64/mm/init.c | 7 ++- 1 file changed, 2 insertions(+), 5 deleti

[PATCH v5 1/7] arm64: mm: Move reserve_crashkernel() into mem_init()

2020-10-29 Thread Nicolas Saenz Julienne
crashkernel might reserve memory located in ZONE_DMA. We plan to delay ZONE_DMA's initialization after unflattening the devicetree and ACPI's boot table initialization, so move it later in the boot process. Specifically into mem_init(), this is the last place crashkernel will be able to reserve the

[PATCH v5 6/7] arm64: mm: Set ZONE_DMA size based on early IORT scan

2020-10-29 Thread Nicolas Saenz Julienne
From: Ard Biesheuvel We recently introduced a 1 GB sized ZONE_DMA to cater for platforms incorporating masters that can address less than 32 bits of DMA, in particular the Raspberry Pi 4, which has 4 or 8 GB of DRAM, but has peripherals that can only address up to 1 GB (and its PCIe host bridge c

Re: [PATCH v2] inotify: Increase default inotify.max_user_watches limit to 1048576

2020-10-29 Thread Amir Goldstein
On Thu, Oct 29, 2020 at 5:46 PM Waiman Long wrote: > > The default value of inotify.max_user_watches sysctl parameter was set > to 8192 since the introduction of the inotify feature in 2005 by > commit 0eeca28300df ("[PATCH] inotify"). Today this value is just too > small for many modern usage. As

[PATCH v2 0/2] Add support for the Sony Exmor-RS IMX300 camera sensor

2020-10-29 Thread kholk11
From: AngeloGioacchino Del Regno This patch series adds support for the IMX300 camera sensor, (one of the) first Exmor-RS Stacked CMOS sensor(s), with support for both of the supported aspect ratios (4:3 and 16:9). This driver came out from reverse engineering of so called "userspace drivers" fro

[PATCH v2 1/2] media: i2c: Add driver for the Sony Exmor-RS IMX300 camera sensor

2020-10-29 Thread kholk11
From: AngeloGioacchino Del Regno This is a custom multi-aspect 25MegaPixels sensor from Sony, found in many Sony Xperia smartphones from various eras. The camera assembly for this sensor usually (at least in Xperia phones) has a lens that does not cover the entire sensor area, which means that t

[PATCH v2 2/2] media: dt-bindings: media: i2c: Add IMX300 CMOS sensor binding

2020-10-29 Thread kholk11
From: AngeloGioacchino Del Regno Add YAML device tree binding for IMX300 CMOS image sensor, and the relevant MAINTAINERS entries. Signed-off-by: AngeloGioacchino Del Regno --- .../bindings/media/i2c/sony,imx300.yaml | 112 ++ MAINTAINERS

Re: [PATCH 1/1] ARM: dts: sun8i: h3: Add initial NanoPi R1 support

2020-10-29 Thread Maxime Ripard
Hi, On Tue, Oct 27, 2020 at 04:48:03PM +0800, Yu-Tung Chang wrote: > The NanoPi R1 is a complete open source board developed > by FriendlyElec for makers, hobbyists, fans and etc. > > NanoPi R1 key features > - Allwinner H3, Quad-core Cortex-A7@1.2GHz > - 512MB/1GB DDR3 RAM > - 8GB eMMC > - micro

Re: [GIT PULL] afs fixes

2020-10-29 Thread pr-tracker-bot
The pull request you sent on Thu, 29 Oct 2020 14:07:26 +: > git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git > tags/afs-fixes-20201029 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/598a597636f8618a0520fd3ccefedaed9e4709b0 Thank you! --

Re: [PATCH] gpiolib: acpi: Support GpioInt with active_low polarity

2020-10-29 Thread Andy Shevchenko
On Thu, Oct 29, 2020 at 5:37 PM Ricardo Ribalda wrote: > On Thu, Oct 29, 2020 at 3:38 PM Andy Shevchenko > wrote: > > > > On Wed, Oct 28, 2020 at 06:17:57PM +0100, Ricardo Ribalda wrote: > > > On the current implementation we only support active_high polarity for > > > GpioInt. > > > > > > There

Re: [PATCH v4 11/19] sched/core: Make migrate disable and CPU hotplug cooperative

2020-10-29 Thread Peter Zijlstra
On Thu, Oct 29, 2020 at 04:27:09PM +, Valentin Schneider wrote: > > On 23/10/20 11:12, Peter Zijlstra wrote: > > @@ -7006,15 +7024,20 @@ static bool balance_push(struct rq *rq) > >* Both the cpu-hotplug and stop task are in this case and are > >* required to complete the hotplu

Re: [PATCH -next] coresight: core: Remove unneeded semicolon

2020-10-29 Thread Mathieu Poirier
Hi Wei, On Thu, Oct 29, 2020 at 10:25:48AM +0800, Zou Wei wrote: > Fixes coccicheck warning: > > ./drivers/hwtracing/coresight/coresight-core.c:421:4-5: Unneeded semicolon > > Reported-by: Hulk Robot > Signed-off-by: Zou Wei > --- > drivers/hwtracing/coresight/coresight-core.c | 2 +- > 1 fil

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

2020-10-29 Thread Marc Kleine-Budde
On 10/28/20 10:40 PM, Łukasz Stelmach wrote: > ASIX AX88796[1] is a versatile ethernet adapter chip, that can be > connected to a CPU with a 8/16-bit bus or with an SPI. This driver > supports SPI connection. > > The driver has been ported from the vendor kernel for ARTIK5[2] > boards. Several cha

[PATCH v5 2/3] net: add kcov handle to skb extensions

2020-10-29 Thread Aleksandr Nogikh
From: Aleksandr Nogikh Remote KCOV coverage collection enables coverage-guided fuzzing of the code that is not reachable during normal system call execution. It is especially helpful for fuzzing networking subsystems, where it is common to perform packet handling in separate work queues even for

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