[PATCH V6 1/7] mm/mmap: Add new config ARCH_HAS_VM_GET_PAGE_PROT

2022-04-12 Thread Anshuman Khandual
Add a new config ARCH_HAS_VM_GET_PAGE_PROT, which when subscribed enables a given platform to define its own vm_get_page_prot() but still utilizing the generic protection_map[] array. Cc: Andrew Morton Cc: linux...@kvack.org Cc: linux-ker...@vger.kernel.org Reviewed-by: Catalin Marinas

[PATCH V6 0/7] mm/mmap: Drop arch_vm_get_page_prot() and arch_filter_pgprot()

2022-04-12 Thread Anshuman Khandual
protection_map[] is an array based construct that translates given vm_flags combination. This array contains page protection map, which is populated by the platform via [__S000 .. __S111] and [__P000 .. __P111] exported macros. Primary usage for protection_map[] is for vm_get_page_prot(), which is

Re: [PATCH v2] powerpc/rtas: Keep MSR[RI] set when calling RTAS

2022-04-12 Thread Nicholas Piggin
Excerpts from Laurent Dufour's message of April 2, 2022 12:06 am: > RTAS runs in real mode (MSR[DR] and MSR[IR] unset) and in 32bits > mode (MSR[SF] unset). > > The change in MSR is done in enter_rtas() in a relatively complex way, > since the MSR value could be hardcoded. > > Furthermore, a

[no subject]

2022-04-12 Thread Nicholas Piggin
+Daniel, Thomas, Viresh Subject: Re: rcu_sched self-detected stall on CPU Excerpts from Michael Ellerman's message of April 9, 2022 12:42 am: > Michael Ellerman writes: >> "Paul E. McKenney" writes: >>> On Wed, Apr 06, 2022 at 05:31:10PM +0800, Zhouyi Zhou wrote: Hi I can

Re: [PATCH V5 2/7] powerpc/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT

2022-04-12 Thread Anshuman Khandual
On 4/12/22 17:57, Christophe Leroy wrote: > > > Le 12/04/2022 à 06:38, Anshuman Khandual a écrit : >> This defines and exports a platform specific custom vm_get_page_prot() via >> subscribing ARCH_HAS_VM_GET_PAGE_PROT. While here, this also localizes >> arch_vm_get_page_prot() as

Re: [PATCH V5 6/7] mm/mmap: Drop arch_filter_pgprot()

2022-04-12 Thread Anshuman Khandual
On 4/12/22 17:59, Christophe Leroy wrote: > > > Le 12/04/2022 à 06:38, Anshuman Khandual a écrit : >> There are no platforms left which subscribe ARCH_HAS_FILTER_PGPROT. Hence >> drop generic arch_filter_pgprot() and also config ARCH_HAS_FILTER_PGPROT. >> >> Cc: Andrew Morton >> Cc:

Re: [PATCH V5 7/7] mm/mmap: Drop arch_vm_get_page_pgprot()

2022-04-12 Thread Anshuman Khandual
On 4/12/22 18:00, Christophe Leroy wrote: > > > Le 12/04/2022 à 06:38, Anshuman Khandual a écrit : >> There are no platforms left which use arch_vm_get_page_prot(). Just drop >> generic arch_vm_get_page_prot(). >> >> Cc: Andrew Morton >> Cc: linux...@kvack.org >> Cc:

Re: [PATCH] ASoC: fsl: using pm_runtime_resume_and_get instead of pm_runtime_get_sync

2022-04-12 Thread Shengjiu Wang
On Tue, Apr 12, 2022 at 4:30 PM wrote: > From: Minghao Chi > > Using pm_runtime_resume_and_get is more appropriate > for simplifing code > > Reported-by: Zeal Robot > Signed-off-by: Minghao Chi > Acked-by: Shengjiu Wang Best regards Wang Shengjiu > --- > sound/soc/fsl/fsl_esai.c | 6

Re: [PATCH net-next v3 14/18] sfc: Remove usage of list iterator for list_add() after the loop body

2022-04-12 Thread Jakub Kicinski
On Tue, 12 Apr 2022 14:15:53 +0200 Jakob Koschel wrote: > - struct list_head *head = >rss_context.list; > + struct list_head *head = *pos = >rss_context.list; ENOTBUILT, please wait with the reposting. Since you posted two versions today I guess that's 2x 24h? :)

Re: [PATCH] ASoC: fsl: using pm_runtime_resume_and_get instead of pm_runtime_get_sync

2022-04-12 Thread Mark Brown
On Tue, 12 Apr 2022 08:30:00 +, cgel@gmail.com wrote: > From: Minghao Chi > > Using pm_runtime_resume_and_get is more appropriate > for simplifing code > > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: fsl: using

Re: False positive kmemleak report for dtb properties names on powerpc

2022-04-12 Thread Mike Rapoport
On Tue, Apr 12, 2022 at 04:47:47PM +1000, Michael Ellerman wrote: > Christophe Leroy writes: > > Hi Ariel > > > > Le 09/04/2022 à 15:47, Ariel Marcovitch a écrit : > >> Hi Christophe, did you get the chance to look at this? > > > > I tested something this morning, it works for me, see below > > >

[PATCH V3 2/2] perf bench: Fix numa bench to fix usage of affinity for machines with #CPUs > 1K

2022-04-12 Thread Athira Rajeev
The 'perf bench numa' testcase fails on systems with more than 1K CPUs. Testcase: perf bench numa mem -p 1 -t 3 -P 512 -s 100 -zZ0qcm --thp 1 Snippet of code: <<>> perf: bench/numa.c:302: bind_to_node: Assertion `!(ret)' failed. Aborted (core dumped) <<>> bind_to_node function uses

[PATCH V3 1/2] tools/perf: Fix perf bench numa testcase to check if CPU used to bind task is online

2022-04-12 Thread Athira Rajeev
Perf numa bench test fails with error: Testcase: ./perf bench numa mem -p 2 -t 1 -P 1024 -C 0,8 -M 1,0 -s 20 -zZq --thp 1 --no-data_rand_walk Failure snippet: <<>> Running 'numa/mem' benchmark: # Running main, "perf bench numa numa-mem -p 2 -t 1 -P 1024 -C 0,8 -M 1,0 -s 20 -zZq --thp 1

[PATCH V3 0/2] Fix perf bench numa to work with machines having #CPUs > 1K

2022-04-12 Thread Athira Rajeev
The perf benchmark for collections: numa hits failure in system configuration with CPU's more than 1024. These benchmarks uses "sched_getaffinity" and "sched_setaffinity" in the code to work with affinity. Example snippet from numa benchmark: <<>> perf: bench/numa.c:302: bind_to_node: Assertion

Re: [PATCH v2 0/4] Fix perf bench numa, futex and epoll to work with machines having #CPUs > 1K

2022-04-12 Thread Athira Rajeev
> On 09-Apr-2022, at 10:48 PM, Arnaldo Carvalho de Melo wrote: > > Em Sat, Apr 09, 2022 at 12:28:01PM -0300, Arnaldo Carvalho de Melo escreveu: >> Em Wed, Apr 06, 2022 at 11:21:09PM +0530, Athira Rajeev escreveu: >>> The perf benchmark for collections: numa, futex and epoll >>> hits failure

[powerpc:merge] BUILD SUCCESS 83d8a0d166119de813cad27ae7d61f54f9aea707

2022-04-12 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git merge branch HEAD: 83d8a0d166119de813cad27ae7d61f54f9aea707 Automatic merge of 'master' into merge (2022-04-11 23:56) elapsed time: 1324m configs tested: 125 configs skipped: 3 The following configs have been

Re: rcu_sched self-detected stall on CPU

2022-04-12 Thread Paul E. McKenney
On Tue, Apr 12, 2022 at 04:53:06PM +1000, Michael Ellerman wrote: > "Paul E. McKenney" writes: > > On Sun, Apr 10, 2022 at 09:33:43PM +1000, Michael Ellerman wrote: > >> Zhouyi Zhou writes: > >> > On Fri, Apr 8, 2022 at 10:07 PM Paul E. McKenney > >> > wrote: > >> >> On Fri, Apr 08, 2022 at

Re: [PATCH net-next v2 05/18] net: dsa: mv88e6xxx: remove redundant check in mv88e6xxx_port_vlan()

2022-04-12 Thread Paolo Abeni
On Tue, 2022-04-12 at 13:37 +0200, Jakob Koschel wrote: > > > On 12. Apr 2022, at 13:27, Russell King (Oracle) > > wrote: > > > > On Tue, Apr 12, 2022 at 12:58:17PM +0200, Jakob Koschel wrote: > > > We know that "dev > dst->last_switch" in the "else" block. > > > In other words, that "dev -

Re: [RFC][PATCH] net: fs_enet: fix tx error handling

2022-04-12 Thread Christophe Leroy
Le 17/03/2022 à 16:38, Mans Rullgard a écrit : > In some cases, the TXE flag is apparently set without any error > indication in the buffer descriptor status. When this happens, tx > stalls until the tx_restart() function is called via the device > watchdog which can take a long time. Is there

Re: [PATCH V5 7/7] mm/mmap: Drop arch_vm_get_page_pgprot()

2022-04-12 Thread Christophe Leroy
Le 12/04/2022 à 06:38, Anshuman Khandual a écrit : > There are no platforms left which use arch_vm_get_page_prot(). Just drop > generic arch_vm_get_page_prot(). > > Cc: Andrew Morton > Cc: linux...@kvack.org > Cc: linux-ker...@vger.kernel.org > Reviewed-by: Catalin Marinas > Signed-off-by:

Re: [PATCH V5 6/7] mm/mmap: Drop arch_filter_pgprot()

2022-04-12 Thread Christophe Leroy
Le 12/04/2022 à 06:38, Anshuman Khandual a écrit : > There are no platforms left which subscribe ARCH_HAS_FILTER_PGPROT. Hence > drop generic arch_filter_pgprot() and also config ARCH_HAS_FILTER_PGPROT. > > Cc: Andrew Morton > Cc: linux...@kvack.org > Cc: linux-ker...@vger.kernel.org >

Re: [PATCH V5 2/7] powerpc/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT

2022-04-12 Thread Christophe Leroy
Le 12/04/2022 à 06:38, Anshuman Khandual a écrit : > This defines and exports a platform specific custom vm_get_page_prot() via > subscribing ARCH_HAS_VM_GET_PAGE_PROT. While here, this also localizes > arch_vm_get_page_prot() as __vm_get_page_prot() and moves it near > vm_get_page_prot(). > >

[PATCH net-next v3 18/18] team: Remove use of list iterator variable for list_for_each_entry_from()

2022-04-12 Thread Jakob Koschel
In preparation to limit the scope of the list iterator variable to the list traversal loop, use a dedicated pointer to iterate through the list [1]. Since that variable should not be used past the loop iteration, a separate variable is used to 'remember the current location within the loop'. To

[PATCH net-next v3 17/18] ipvlan: Remove usage of list iterator variable for the loop body

2022-04-12 Thread Jakob Koschel
In preparation to limit the scope of the list iterator variable to the list traversal loop, use a dedicated pointer to iterate through the list [1]. Since that variable should not be used past the loop iteration, a separate variable is used to 'remember the current location within the loop'. To

[PATCH net-next v3 16/18] ps3_gelic: Replace usage of found with dedicated list iterator variable

2022-04-12 Thread Jakob Koschel
To move the list iterator variable into the list_for_each_entry_*() macro in the future it should be avoided to use the list iterator variable after the loop body. To *never* use the list iterator variable after the loop it was concluded to use a separate iterator variable instead of a found

[PATCH net-next v3 15/18] net: netcp: Remove usage of list iterator for list_add() after loop body

2022-04-12 Thread Jakob Koschel
In preparation to limit the scope of a list iterator to the list traversal loop, use a dedicated pointer pointing to the location where the element should be inserted [1]. Before, the code implicitly used the head when no element was found when using >list. The new 'pos' variable is set to the

[PATCH net-next v3 14/18] sfc: Remove usage of list iterator for list_add() after the loop body

2022-04-12 Thread Jakob Koschel
In preparation to limit the scope of a list iterator to the list traversal loop, use a dedicated pointer pointing to the location where the element should be inserted [1]. Before, the code implicitly used the head when no element was found when using >list. The new 'pos' variable is set to the

[PATCH net-next v3 13/18] net: qede: Remove check of list iterator against head past the loop body

2022-04-12 Thread Jakob Koschel
When list_for_each_entry() completes the iteration over the whole list without breaking the loop, the iterator value will be a bogus pointer computed based on the head element. While it is safe to use the pointer to determine if it was computed based on the head element, either with

[PATCH net-next v3 12/18] net: qede: Replace usage of found with dedicated list iterator variable

2022-04-12 Thread Jakob Koschel
To move the list iterator variable into the list_for_each_entry_*() macro in the future it should be avoided to use the list iterator variable after the loop body. To *never* use the list iterator variable after the loop it was concluded to use a separate iterator variable instead of a found

[PATCH net-next v3 11/18] qed: Remove usage of list iterator variable after the loop

2022-04-12 Thread Jakob Koschel
To move the list iterator variable into the list_for_each_entry_*() macro in the future it should be avoided to use the list iterator variable after the loop body. Since "found" and "p_ent" need to be equal, "found" should be used consistently to limit the scope of "p_ent" to the list traversal

[PATCH net-next v3 10/18] qed: Replace usage of found with dedicated list iterator variable

2022-04-12 Thread Jakob Koschel
To move the list iterator variable into the list_for_each_entry_*() macro in the future it should be avoided to use the list iterator variable after the loop body. To *never* use the list iterator variable after the loop it was concluded to use a separate iterator variable instead of a found

[PATCH net-next v3 09/18] qed: Use dedicated list iterator variable

2022-04-12 Thread Jakob Koschel
To move the list iterator variable into the list_for_each_entry_*() macro in the future it should be avoided to use the list iterator variable after the loop body. To *never* use the list iterator variable after the loop it was concluded to use a separate iterator variable [1]. Link:

[PATCH net-next v3 08/18] net: sparx5: Replace usage of found with dedicated list iterator variable

2022-04-12 Thread Jakob Koschel
To move the list iterator variable into the list_for_each_entry_*() macro in the future it should be avoided to use the list iterator variable after the loop body. To *never* use the list iterator variable after the loop it was concluded to use a separate iterator variable instead of a found

[PATCH net-next v3 07/18] net: dsa: Replace usage of found with dedicated list iterator variable

2022-04-12 Thread Jakob Koschel
To move the list iterator variable into the list_for_each_entry_*() macro in the future it should be avoided to use the list iterator variable after the loop body. To *never* use the list iterator variable after the loop it was concluded to use a separate iterator variable instead of a found

[PATCH net-next v3 06/18] net: dsa: mv88e6xxx: refactor mv88e6xxx_port_vlan()

2022-04-12 Thread Jakob Koschel
From: Vladimir Oltean To avoid bugs and speculative execution exploits due to type-confused pointers at the end of a list_for_each_entry() loop, one measure is to restrict code to not use the iterator variable outside the loop block. In the case of mv88e6xxx_port_vlan(), this isn't a problem,

[PATCH net-next v3 05/18] net: dsa: mv88e6xxx: remove redundant check in mv88e6xxx_port_vlan()

2022-04-12 Thread Jakob Koschel
From: Vladimir Oltean We know that "dev > dst->last_switch" in the "else" block. In other words, that "dev - dst->last_switch" is > 0. dsa_port_bridge_num_get(dp) can be 0, but the check "if (bridge_num + dst->last_switch != dev) continue", rewritten as "if (bridge_num != dev -

[PATCH net-next v3 03/18] net: dsa: sja1105: reorder sja1105_first_entry_longer_than with memory allocation

2022-04-12 Thread Jakob Koschel
From: Vladimir Oltean sja1105_first_entry_longer_than() does not make use of the full struct sja1105_gate_entry *e, just of e->interval which is set from the passed entry_time. This means that if there is a gate conflict, we have allocated e for nothing, just to free it later. Reorder the

[PATCH net-next v3 00/18] Remove use of list iterator after loop body

2022-04-12 Thread Jakob Koschel
When the list iterator loop does not exit early the list iterator variable contains a type-confused pointer to a 'bogus' list element computed based on the head [1]. Often a 'found' variable is used to ensure the list iterator variable is only accessed after the loop body if the loop did exit

[PATCH net-next v3 04/18] net: dsa: sja1105: use list_add_tail(pos) instead of list_add(pos->prev)

2022-04-12 Thread Jakob Koschel
From: Vladimir Oltean When passed a non-head list element, list_add_tail() actually adds the new element to its left, which is what we want. Despite the slightly confusing name, use the dedicated function which does the same thing as the open-coded list_add(pos->prev). Suggested-by: Jakub

[PATCH net-next v3 01/18] connector: Replace usage of found with dedicated list iterator variable

2022-04-12 Thread Jakob Koschel
To move the list iterator variable into the list_for_each_entry_*() macro in the future it should be avoided to use the list iterator variable after the loop body. To *never* use the list iterator variable after the loop it was concluded to use a separate iterator variable instead of a found

[PATCH net-next v3 02/18] net: dsa: sja1105: remove use of iterator after list_for_each_entry() loop

2022-04-12 Thread Jakob Koschel
From: Vladimir Oltean The link below explains that there is a desire to syntactically change list_for_each_entry() and list_for_each() such that it becomes impossible to use the iterator variable outside the scope of the loop. Although sja1105_insert_gate_entry() makes legitimate use of the

Re: [PATCH net-next v2 05/18] net: dsa: mv88e6xxx: remove redundant check in mv88e6xxx_port_vlan()

2022-04-12 Thread Jakob Koschel
> On 12. Apr 2022, at 13:27, Russell King (Oracle) > wrote: > > On Tue, Apr 12, 2022 at 12:58:17PM +0200, Jakob Koschel wrote: >> We know that "dev > dst->last_switch" in the "else" block. >> In other words, that "dev - dst->last_switch" is > 0. >> >> dsa_port_bridge_num_get(dp) can be 0,

Re: [PATCH net-next v2 05/18] net: dsa: mv88e6xxx: remove redundant check in mv88e6xxx_port_vlan()

2022-04-12 Thread Russell King (Oracle)
On Tue, Apr 12, 2022 at 12:58:17PM +0200, Jakob Koschel wrote: > We know that "dev > dst->last_switch" in the "else" block. > In other words, that "dev - dst->last_switch" is > 0. > > dsa_port_bridge_num_get(dp) can be 0, but the check > "if (bridge_num + dst->last_switch != dev) continue",

[PATCH net-next v2 18/18] team: Remove use of list iterator variable for list_for_each_entry_from()

2022-04-12 Thread Jakob Koschel
In preparation to limit the scope of the list iterator variable to the list traversal loop, use a dedicated pointer to iterate through the list [1]. Since that variable should not be used past the loop iteration, a separate variable is used to 'remember the current location within the loop'. To

[PATCH net-next v2 17/18] ipvlan: Remove usage of list iterator variable for the loop body

2022-04-12 Thread Jakob Koschel
In preparation to limit the scope of the list iterator variable to the list traversal loop, use a dedicated pointer to iterate through the list [1]. Since that variable should not be used past the loop iteration, a separate variable is used to 'remember the current location within the loop'. To

[PATCH net-next v2 16/18] ps3_gelic: Replace usage of found with dedicated list iterator variable

2022-04-12 Thread Jakob Koschel
To move the list iterator variable into the list_for_each_entry_*() macro in the future it should be avoided to use the list iterator variable after the loop body. To *never* use the list iterator variable after the loop it was concluded to use a separate iterator variable instead of a found

[PATCH net-next v2 15/18] net: netcp: Remove usage of list iterator for list_add() after loop body

2022-04-12 Thread Jakob Koschel
In preparation to limit the scope of a list iterator to the list traversal loop, use a dedicated pointer pointing to the location where the element should be inserted [1]. Before, the code implicitly used the head when no element was found when using >list. The new 'pos' variable is set to the

[PATCH net-next v2 14/18] sfc: Remove usage of list iterator for list_add() after the loop body

2022-04-12 Thread Jakob Koschel
In preparation to limit the scope of a list iterator to the list traversal loop, use a dedicated pointer pointing to the location where the element should be inserted [1]. Before, the code implicitly used the head when no element was found when using >list. The new 'pos' variable is set to the

[PATCH net-next v2 13/18] net: qede: Remove check of list iterator against head past the loop body

2022-04-12 Thread Jakob Koschel
When list_for_each_entry() completes the iteration over the whole list without breaking the loop, the iterator value will be a bogus pointer computed based on the head element. While it is safe to use the pointer to determine if it was computed based on the head element, either with

[PATCH net-next v2 12/18] net: qede: Replace usage of found with dedicated list iterator variable

2022-04-12 Thread Jakob Koschel
To move the list iterator variable into the list_for_each_entry_*() macro in the future it should be avoided to use the list iterator variable after the loop body. To *never* use the list iterator variable after the loop it was concluded to use a separate iterator variable instead of a found

[PATCH net-next v2 11/18] qed: Remove usage of list iterator variable after the loop

2022-04-12 Thread Jakob Koschel
To move the list iterator variable into the list_for_each_entry_*() macro in the future it should be avoided to use the list iterator variable after the loop body. Since "found" and "p_ent" need to be equal, "found" should be used consistently to limit the scope of "p_ent" to the list traversal

[PATCH net-next v2 10/18] qed: Replace usage of found with dedicated list iterator variable

2022-04-12 Thread Jakob Koschel
To move the list iterator variable into the list_for_each_entry_*() macro in the future it should be avoided to use the list iterator variable after the loop body. To *never* use the list iterator variable after the loop it was concluded to use a separate iterator variable instead of a found

[PATCH net-next v2 09/18] qed: Use dedicated list iterator variable

2022-04-12 Thread Jakob Koschel
To move the list iterator variable into the list_for_each_entry_*() macro in the future it should be avoided to use the list iterator variable after the loop body. To *never* use the list iterator variable after the loop it was concluded to use a separate iterator variable [1]. Link:

[PATCH net-next v2 08/18] net: sparx5: Replace usage of found with dedicated list iterator variable

2022-04-12 Thread Jakob Koschel
To move the list iterator variable into the list_for_each_entry_*() macro in the future it should be avoided to use the list iterator variable after the loop body. To *never* use the list iterator variable after the loop it was concluded to use a separate iterator variable instead of a found

[PATCH net-next v2 07/18] net: dsa: Replace usage of found with dedicated list iterator variable

2022-04-12 Thread Jakob Koschel
To move the list iterator variable into the list_for_each_entry_*() macro in the future it should be avoided to use the list iterator variable after the loop body. To *never* use the list iterator variable after the loop it was concluded to use a separate iterator variable instead of a found

[PATCH net-next v2 06/18] net: dsa: mv88e6xxx: refactor mv88e6xxx_port_vlan()

2022-04-12 Thread Jakob Koschel
To avoid bugs and speculative execution exploits due to type-confused pointers at the end of a list_for_each_entry() loop, one measure is to restrict code to not use the iterator variable outside the loop block. In the case of mv88e6xxx_port_vlan(), this isn't a problem, as we never let the loops

[PATCH net-next v2 05/18] net: dsa: mv88e6xxx: remove redundant check in mv88e6xxx_port_vlan()

2022-04-12 Thread Jakob Koschel
We know that "dev > dst->last_switch" in the "else" block. In other words, that "dev - dst->last_switch" is > 0. dsa_port_bridge_num_get(dp) can be 0, but the check "if (bridge_num + dst->last_switch != dev) continue", rewritten as "if (bridge_num != dev - dst->last_switch) continue", aka "if

[PATCH net-next v2 04/18] net: dsa: sja1105: use list_add_tail(pos) instead of list_add(pos->prev)

2022-04-12 Thread Jakob Koschel
When passed a non-head list element, list_add_tail() actually adds the new element to its left, which is what we want. Despite the slightly confusing name, use the dedicated function which does the same thing as the open-coded list_add(pos->prev). Suggested-by: Jakub Kicinski Signed-off-by:

[PATCH net-next v2 00/18] Remove use of list iterator after loop body

2022-04-12 Thread Jakob Koschel
When the list iterator loop does not exit early the list iterator variable contains a type-confused pointer to a 'bogus' list element computed based on the head [1]. Often a 'found' variable is used to ensure the list iterator variable is only accessed after the loop body if the loop did exit

[PATCH net-next v2 02/18] net: dsa: sja1105: remove use of iterator after list_for_each_entry() loop

2022-04-12 Thread Jakob Koschel
The link below explains that there is a desire to syntactically change list_for_each_entry() and list_for_each() such that it becomes impossible to use the iterator variable outside the scope of the loop. Although sja1105_insert_gate_entry() makes legitimate use of the iterator pointer when it

[PATCH net-next v2 03/18] net: dsa: sja1105: reorder sja1105_first_entry_longer_than with memory allocation

2022-04-12 Thread Jakob Koschel
sja1105_first_entry_longer_than() does not make use of the full struct sja1105_gate_entry *e, just of e->interval which is set from the passed entry_time. This means that if there is a gate conflict, we have allocated e for nothing, just to free it later. Reorder the memory allocation and the

[PATCH net-next v2 01/18] connector: Replace usage of found with dedicated list iterator variable

2022-04-12 Thread Jakob Koschel
To move the list iterator variable into the list_for_each_entry_*() macro in the future it should be avoided to use the list iterator variable after the loop body. To *never* use the list iterator variable after the loop it was concluded to use a separate iterator variable instead of a found

[PATCH] ASoC: fsl: using pm_runtime_resume_and_get instead of pm_runtime_get_sync

2022-04-12 Thread cgel . zte
From: Minghao Chi Using pm_runtime_resume_and_get is more appropriate for simplifing code Reported-by: Zeal Robot Signed-off-by: Minghao Chi --- sound/soc/fsl/fsl_esai.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sound/soc/fsl/fsl_esai.c

[Bug 215803] ppc64le(P9): BUG: Kernel NULL pointer dereference on read at 0x00000060 NIP: do_remove_conflicting_framebuffers+0x184/0x1d0

2022-04-12 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215803 Michael Ellerman (mich...@ellerman.id.au) changed: What|Removed |Added Status|NEW |RESOLVED

Re: rcu_sched self-detected stall on CPU

2022-04-12 Thread Michael Ellerman
"Paul E. McKenney" writes: > On Sun, Apr 10, 2022 at 09:33:43PM +1000, Michael Ellerman wrote: >> Zhouyi Zhou writes: >> > On Fri, Apr 8, 2022 at 10:07 PM Paul E. McKenney >> > wrote: >> >> On Fri, Apr 08, 2022 at 06:02:19PM +0800, Zhouyi Zhou wrote: >> >> > On Fri, Apr 8, 2022 at 3:23 PM

Re: False positive kmemleak report for dtb properties names on powerpc

2022-04-12 Thread Michael Ellerman
Christophe Leroy writes: > Hi Ariel > > Le 09/04/2022 à 15:47, Ariel Marcovitch a écrit : >> Hi Christophe, did you get the chance to look at this? > > I tested something this morning, it works for me, see below > >> >> On 23/03/2022 21:06, Mike Rapoport wrote: >>> Hi Catalin, >>> >>> On Wed,

Re: [PATCH AUTOSEL 5.17 40/49] powerpc: Fix virt_addr_valid() for 64-bit Book3E & 32-bit

2022-04-12 Thread Michael Ellerman
Sasha Levin writes: > From: Kefeng Wang > > [ Upstream commit ffa0b64e3be58519ae472ea29a1a1ad681e32f48 ] > > mpe: On 64-bit Book3E vmalloc space starts at 0x8000. This cherry-pick is good, but can you also pick up the immediately following commit: 1ff5c8e8c835 ("Revert "powerpc:

Re: [PATCH 10/15] swiotlb: add a SWIOTLB_ANY flag to lift the low memory restriction

2022-04-12 Thread Christoph Hellwig
On Wed, Apr 06, 2022 at 08:25:32PM -0400, Konrad Rzeszutek Wilk wrote: > > diff --git a/arch/powerpc/platforms/pseries/svm.c > > b/arch/powerpc/platforms/pseries/svm.c > > index c5228f4969eb2..3b4045d508ec8 100644 > > --- a/arch/powerpc/platforms/pseries/svm.c > > +++