Re: [PATCH v2 01/10] devm-helpers: introduce devm_mutex_init

2023-12-05 Thread George Stark
Hello Andy Thanks for the review. On 12/4/23 21:11, Andy Shevchenko wrote: On Mon, Dec 4, 2023 at 8:07 PM George Stark wrote: Using of devm API leads to certain order of releasing resources. So all dependent resources which are not devm-wrapped should be deleted with respect to devm-release

[PATCH 12/27] tty: hvc: convert to u8 and size_t

2023-12-05 Thread Jiri Slaby (SUSE)
Switch character types to u8 and sizes to size_t. To conform to characters/sizes in the rest of the tty layer. Signed-off-by: Jiri Slaby (SUSE) Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Christophe Leroy Cc: Amit Shah Cc: Arnd Bergmann Cc: Paul Walmsley Cc: Palmer Dabbelt Cc: Albert Ou

[PATCH 10/27] tty: ehv_bytechan: convert to u8 and size_t

2023-12-05 Thread Jiri Slaby (SUSE)
Switch character types to u8 and sizes to size_t. To conform to characters/sizes in the rest of the tty layer. Signed-off-by: Jiri Slaby (SUSE) Cc: Laurentiu Tudor Cc: linuxppc-dev@lists.ozlabs.org --- drivers/tty/ehv_bytechan.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-)

Re: [PATCH v2 00/35] bitops: add atomic find_bit() operations

2023-12-05 Thread Yury Norov
On Mon, Dec 04, 2023 at 07:51:01PM +0100, Jan Kara wrote: > Hello Yury! > > On Sun 03-12-23 11:23:47, Yury Norov wrote: > > Add helpers around test_and_{set,clear}_bit() that allow to search for > > clear or set bits and flip them atomically. > > > > The target patterns may look like this: > >

Re: [PATCH V4] tools/perf: Add perf binary dependent rule for shellcheck log in Makefile.perf

2023-12-05 Thread Athira Rajeev
> On 06-Dec-2023, at 3:20 AM, Arnaldo Carvalho de Melo wrote: > > Em Mon, Nov 27, 2023 at 11:12:57AM +, James Clark escreveu: >> On 23/11/2023 16:02, Athira Rajeev wrote: >>> --- a/tools/perf/Makefile.perf >>> @@ -1134,6 +1152,7 @@ bpf-skel-clean: >>> $(call QUIET_CLEAN, bpf-skel) $(RM)

[linux-next:master] BUILD REGRESSION 0f5f12ac05f36f117e793656c3f560625e927f1b

2023-12-05 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master branch HEAD: 0f5f12ac05f36f117e793656c3f560625e927f1b Add linux-next specific files for 20231205 Error/Warning reports: https://lore.kernel.org/oe-kbuild-all/202312051416.yirwcymp-...@intel.com https

Re: [PATCH net-next v2 0/9] net*: Convert to platform remove callback returning void

2023-12-05 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski : On Mon, 4 Dec 2023 19:30:40 +0100 you wrote: > Hello, > > (implicit) v1 of this series can be found at > https://lore.kernel.org/netdev/20231117095922.876489-1-u.kleine-koe...@pengutronix.de. > Changes since then:

[powerpc:fixes-test] BUILD SUCCESS 4b3338aaa74d7d4ec5b6734dc298f0db94ec83d2

2023-12-05 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git fixes-test branch HEAD: 4b3338aaa74d7d4ec5b6734dc298f0db94ec83d2 powerpc/ftrace: Fix stack teardown in ftrace_no_trace Warning ids grouped by kconfigs: clang_recent_errors `-- powerpc-randconfig-002-20231206

Re: [PATCH] scsi: ibmvscsi: replace deprecated strncpy with strscpy

2023-12-05 Thread Martin K. Petersen
Michael, >> strncpy() is deprecated for use on NUL-terminated destination strings >> [1] and as such we should prefer more robust and less ambiguous string >> interfaces. > I gave it a quick boot, no issues. > > Tested-by: Michael Ellerman (powerpc) Applied to 6.8/scsi-staging, thanks! --

Re: [PATCH] scsi: ibmvfc: replace deprecated strncpy with strscpy

2023-12-05 Thread Martin K. Petersen
Kees, > On Mon, Oct 30, 2023 at 07:04:33PM +, Justin Stitt wrote: >> strncpy() is deprecated for use on NUL-terminated destination strings >> [1] and as such we should prefer more robust and less ambiguous string >> interfaces. > Yeah, this conversion looks correct to me too. > >

Re: [PATCH] scsi: ipr: Remove obsolete check for old CPUs

2023-12-05 Thread Martin K. Petersen
Michael, > The IPR driver has a routine to check whether it's running on certain > CPU versions and if so whether the adapter is supported on that CPU. Applied to 6.8/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 1/6] x86: Use PCI_HEADER_TYPE_* instead of literals

2023-12-05 Thread Martin K. Petersen
Bjorn, > So I kept these in the PCI tree: > > 420ac76610d7 ("scsi: lpfc: Use PCI_HEADER_TYPE_MFD instead of literal") I merged this without seeing your note but I haven't pushed yet so I'll just drop the commit. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] i2c: cpm: Fix data type

2023-12-05 Thread Andi Shyti
Hi Christophe, On Tue, Dec 05, 2023 at 07:16:53PM +0100, Christophe Leroy wrote: > sparse reports an error on some data that gets converted from be32. > > That's because that data is typed u32 instead of __be32. > > Fix it. the reason for this sparse error is that the data variables is then

[PATCH] tty: hvc: dcc: Check for TXfull condition while setting up early console

2023-12-05 Thread Ayan Kumar Halder
Refer ARM DDI 0487I.a ID081822, D17.3.8, DBGDTRTX_EL0, "If TXfull is set to 1, set DTRRX and DTRTX to UNKNOWN" Thus one should always check for TXfull condition before hvc can be used as an early console. This is similar to what is being done today in hvc_dcc_console_init() and hvc_dcc_init().

Re: [PATCH] MAINTAINERS: powerpc: Transfer PPC83XX to Christophe

2023-12-05 Thread Crystal Wood
On Tue, 2023-12-05 at 16:12 +1100, Michael Ellerman wrote: > Christophe volunteered[1] to maintain PPC83XX. > > 1: > https://lore.kernel.org/all/7b1bf4dc-d09d-35b8-f4df-16bf00429...@csgroup.eu/ > > Signed-off-by: Michael Ellerman > --- >  MAINTAINERS | 6 +++--- >  1 file changed, 3

Re: [PATCH V4] tools/perf: Add perf binary dependent rule for shellcheck log in Makefile.perf

2023-12-05 Thread Ian Rogers
On Tue, Dec 5, 2023 at 1:50 PM Arnaldo Carvalho de Melo wrote: > > Em Mon, Nov 27, 2023 at 11:12:57AM +, James Clark escreveu: > > On 23/11/2023 16:02, Athira Rajeev wrote: > > > --- a/tools/perf/Makefile.perf > > > @@ -1134,6 +1152,7 @@ bpf-skel-clean: > > > $(call QUIET_CLEAN, bpf-skel)

Re: [PATCH V4] tools/perf: Add perf binary dependent rule for shellcheck log in Makefile.perf

2023-12-05 Thread Arnaldo Carvalho de Melo
Em Mon, Nov 27, 2023 at 11:12:57AM +, James Clark escreveu: > On 23/11/2023 16:02, Athira Rajeev wrote: > > --- a/tools/perf/Makefile.perf > > @@ -1134,6 +1152,7 @@ bpf-skel-clean: > > $(call QUIET_CLEAN, bpf-skel) $(RM) -r $(SKEL_TMP_OUT) $(SKELETONS) > > > > clean:: $(LIBAPI)-clean

[RFC PATCH 3/3] powerpc/fadump: pass additional parameters when fadump is active

2023-12-05 Thread Hari Bathini
Append the additional parameters passed/set in the dedicated parameter area (RTAS_FADUMP_PARAM_AREA) to bootargs in fadump capture kernel. Signed-off-by: Hari Bathini --- arch/powerpc/include/asm/fadump.h | 2 ++ arch/powerpc/kernel/fadump.c | 34 +++

[RFC PATCH 2/3] powerpc/fadump: pass additional parameters to dump capture kernel

2023-12-05 Thread Hari Bathini
For fadump case, passing additional parameters to dump capture kernel helps in minimizing the memory footprint for it and also provides the flexibility to disable components/modules, like hugepages, that are hindering the boot process of the special dump capture environment. Set up a dedicated

[RFC PATCH 1/3] powerpc/pseries/fadump: add support for multiple boot memory regions

2023-12-05 Thread Hari Bathini
From: Sourabh Jain Currently, fadump on pseries assumes a single boot memory region even though f/w supports more than one boot memory region. Add support for more boot memory regions to make the implementation flexible for any enhancements that introduce other region types. For this, rtas

[RFC PATCH 0/3] powerpc/fadump: pass additional args to dump capture kernel

2023-12-05 Thread Hari Bathini
While fadump is a more reliable alternative to kdump dump capturing method, it doesn't support passing additional parameters. Having such support is desirable for two major reasons: 1. It helps minimize the memory consumption of fadump dump capture kernel by disabling features that consume

Re: [PATCH 5.15 00/67] 5.15.142-rc1 review

2023-12-05 Thread Greg Kroah-Hartman
On Tue, Dec 05, 2023 at 10:18:49PM +0530, Naresh Kamboju wrote: > On Tue, 5 Dec 2023 at 09:10, Greg Kroah-Hartman > wrote: > > > > This is the start of the stable review cycle for the 5.15.142 release. > > There are 67 patches in this series, all will be posted as a response > > to this one. If

[PATCH] i2c: cpm: Fix data type

2023-12-05 Thread Christophe Leroy
sparse reports an error on some data that gets converted from be32. That's because that data is typed u32 instead of __be32. Fix it. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202312042210.ql4da8av-...@intel.com/ Signed-off-by: Christophe Leroy ---

Re: [PATCH v4 05/13] powerpc/rtas: Facilitate high-level call sequences

2023-12-05 Thread Nathan Lynch
Nathan Lynch writes: > Michael Ellerman writes: >> Nathan Lynch writes: >>> Michael Ellerman writes: Nathan Lynch writes: > Michael Ellerman writes: >> Nathan Lynch via B4 Relay >> writes: >>> From: Nathan Lynch >>> >>> On RTAS platforms there is a general

Re: [PATCH v13 6/6] powerpc: add crash memory hotplug support

2023-12-05 Thread kernel test robot
Hi Sourabh, kernel test robot noticed the following build errors: [auto build test ERROR on powerpc/next] [also build test ERROR on powerpc/fixes tip/x86/core akpm-mm/mm-everything linus/master v6.7-rc4 next-20231205] [If your patch is applied to the wrong git tree, kindly drop us a note

Re: [PATCH 5.15 00/67] 5.15.142-rc1 review

2023-12-05 Thread Naresh Kamboju
On Tue, 5 Dec 2023 at 09:10, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.15.142 release. > There are 67 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > >

[PATCH v2 17/17] soc: fsl: cpm1: qmc: Introduce functions to change timeslots at runtime

2023-12-05 Thread Herve Codina
Introduce qmc_chan_{get,set}_ts_info() function to allow timeslots modification at runtime. The modification is provided using qmc_chan_set_ts_info() and will be applied on next qmc_chan_start(). qmc_chan_set_ts_info() must be called with the channel rx and/or tx stopped. Signed-off-by: Herve

[PATCH v2 16/17] soc: fsl: cpm1: qmc: Remove timeslots handling from setup_chan()

2023-12-05 Thread Herve Codina
Timeslots setting is done at channel start() and stop(). There is no more need to do that during setup_chan(). Simply remove timeslot setting from setup_chan(). Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy --- drivers/soc/fsl/qe/qmc.c | 28 1 file

[PATCH v2 15/17] soc: fsl: cpm1: qmc: Handle timeslot entries at channel start() and stop()

2023-12-05 Thread Herve Codina
In order to support runtime timeslot route changes, enable the channel timeslot entries at channel start() and disable them at channel stop(). Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy --- drivers/soc/fsl/qe/qmc.c | 241 +++ 1 file changed,

[PATCH v2 14/17] soc: fsl: cpm1: qmc: Introduce is_tsa_64rxtx flag

2023-12-05 Thread Herve Codina
In order to support runtime timeslot route changes, some operations will be different according the routing table used (common Rx and Tx table or one table for Rx and one for Tx). The is_tsa_64rxtx flag is introduced to avoid extra computation to determine the table format each time we need it.

[PATCH v2 13/17] soc: fsl: cpm1: qmc: Split Tx and Rx TSA entries setup

2023-12-05 Thread Herve Codina
The Tx and Rx entries for a given channel are set in one function. In order to modify Rx entries and Tx entries independently of one other, split this function in one for the Rx part and one for the Tx part. Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy ---

[PATCH v2 12/17] soc: fsl: cpm1: qmc: Add support for disabling channel TSA entries

2023-12-05 Thread Herve Codina
In order to allow runtime timeslot route changes, disabling channel TSA entries needs to be supported. Add support for this new feature. Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy --- drivers/soc/fsl/qe/qmc.c | 20 +++- 1 file changed, 11 insertions(+), 9

[PATCH v2 11/17] soc: fsl: cpm1: qmc: Check available timeslots in qmc_check_chans()

2023-12-05 Thread Herve Codina
The timeslots checked in qmc_check_chans() are the timeslots used. With the introduction of the available timeslots, the used timeslots are a subset of the available timeslots. The timeslots checked during the qmc_check_chans() call should be the available ones. Simply update and check the

[PATCH v2 10/17] soc: fsl: cpm1: qmc: Remove no more needed checks from qmc_check_chans()

2023-12-05 Thread Herve Codina
The newly introduced qmc_chan_setup_tsa* functions check that the channel entries are not already used. These checks are also performed by qmc_check_chans() and are no more needed. Remove them from qmc_check_chans(). Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy ---

[PATCH v2 09/17] soc: fsl: cpm1: qmc: Introduce qmc_chan_setup_tsa*

2023-12-05 Thread Herve Codina
Introduce the qmc_chan_setup_tsa* functions to setup entries related to the given channel. Use them during QMC channels setup. Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy --- drivers/soc/fsl/qe/qmc.c | 161 ++- 1 file changed, 125

[PATCH v2 08/17] soc: fsl: cpm1: qmc: Rename qmc_setup_tsa* to qmc_init_tsa*

2023-12-05 Thread Herve Codina
qmc_setup_tsa* are called once at initialisation. They initialize the QMC TSA table. In order to introduce setup function later on for dynamic timeslots management, rename the function to avoid later confusion. Signed-off-by: Herve Codina Reviewed-by: Christophe Leroy ---

[PATCH v2 01/17] soc: fsl: cpm1: tsa: Fix __iomem addresses declaration

2023-12-05 Thread Herve Codina
Running sparse (make C=1) on tsa.c raises a lot of warning such as: --- 8< --- warning: incorrect type in assignment (different address spaces) expected void *[noderef] si_regs got void [noderef] __iomem * --- 8< --- Indeed, some variable were declared 'type *__iomem var' instead

[PATCH v2 00/17] Prepare the PowerQUICC QMC and TSA for the HDLC QMC driver

2023-12-05 Thread Herve Codina
Hi, This series updates PowerQUICC QMC and TSA drivers to prepare the support for the QMC HDLC driver. Patches were previously sent as part of a full feature series: "Add support for QMC HDLC, framer infrastructure and PEF2256 framer" [1] The full feature series reached the v9 iteration. The v1

[PATCH v2 04/17] soc: fsl: cpm1: qmc: Extend the API to provide Rx status

2023-12-05 Thread Herve Codina
In HDLC mode, some status flags related to the data read transfer can be set by the hardware and need to be known by a QMC consumer for further analysis. Extend the API in order to provide these transfer status flags at the read complete() call. In TRANSPARENT mode, these flags have no meaning.

[PATCH v2 05/17] soc: fsl: cpm1: qmc: Remove inline function specifiers

2023-12-05 Thread Herve Codina
The inline function specifier is present on some functions but it is better to let the compiler decide inlining or not these functions. Remove inline specifiers. Fixes: 3178d58e0b97 ("soc: fsl: cpm1: Add support for QMC") Signed-off-by: Herve Codina Suggested-by: Andrew Lunn Reviewed-by:

[PATCH v2 07/17] soc: fsl: cpm1: qmc: Introduce available timeslots masks

2023-12-05 Thread Herve Codina
Available timeslots masks define timeslots available for the related channel. These timeslots are defined by the QMC binding. Timeslots used are initialized to available timeslots but can be a subset of available timeslots. This prepares the dynamic timeslots management (ie. changing timeslots at

[PATCH v2 06/17] soc: fsl: cpm1: qmc: Add support for child devices

2023-12-05 Thread Herve Codina
QMC child devices support is needed to avoid orphan DT nodes that use a simple DT phandle to reference a QMC channel. Allow to instantiate child devices and also extend the API to get the qmc_chan using a child device. Signed-off-by: Herve Codina --- drivers/soc/fsl/qe/qmc.c | 91

[PATCH v2 02/17] soc: fsl: cpm1: qmc: Fix __iomem addresses declaration

2023-12-05 Thread Herve Codina
Running sparse (make C=1) on qmc.c raises a lot of warning such as: ... warning: incorrect type in assignment (different address spaces) expected struct cpm_buf_desc [usertype] *[noderef] __iomem bd got struct cpm_buf_desc [noderef] [usertype] __iomem *txbd_free ... Indeed, some

[PATCH v2 03/17] soc: fsl: cpm1: qmc: Fix rx channel reset

2023-12-05 Thread Herve Codina
The qmc_chan_reset_rx() set the is_rx_stopped flag. This leads to an inconsistent state in the following sequence. qmc_chan_stop() qmc_chan_reset() Indeed, after the qmc_chan_reset() call, the channel must still be stopped. Only a qmc_chan_start() call can move the channel from stopped

Re: [PATCH v13 5/6] powerpc: add crash CPU hotplug support

2023-12-05 Thread kernel test robot
Hi Sourabh, kernel test robot noticed the following build errors: [auto build test ERROR on powerpc/next] [also build test ERROR on powerpc/fixes tip/x86/core akpm-mm/mm-everything linus/master v6.7-rc4 next-20231205] [If your patch is applied to the wrong git tree, kindly drop us a note

[PATCH] serial: ucc_uart: Fix multiple address space type errors

2023-12-05 Thread Christophe Leroy
sparse reports multiple problems with address space type. Most problems are linked to missing __iomem qualifier. Others are caused by dereferencing __iomem addresses. Fix all this by adding missing __iomem and using ioread32be(). Reported-by: kernel test robot Closes:

Re: [PATCH] powerpc/irq: Allow softirq to hardirq stack transition

2023-12-05 Thread Christophe Leroy
Le 30/11/2023 à 13:50, Michael Ellerman a écrit : > Allow a transition from the softirq stack to the hardirq stack when > handling a hardirq. Doing so means a hardirq received while deep in > softirq processing is less likely to cause a stack overflow of the > softirq stack. > > Previously it

Re: [PATCH v2 2/2] powerpc/book3s64: Avoid __pte_protnone() check in __pte_flags_need_flush()

2023-12-05 Thread Christophe Leroy
Le 04/12/2023 à 10:36, aneesh.ku...@kernel.org a écrit : > From: "Aneesh Kumar K.V (IBM)" > > This reverts commit 1abce0580b89 ("powerpc/64s: Fix __pte_needs_flush() > false positive warning") > > The previous patch dropped the usage of _PAGE_PRIVILEGED with PAGE_NONE. > Hence this check can

Re: [PATCH v2 1/2] powerpc/book3s/hash: Drop _PAGE_PRIVILEGED from PAGE_NONE

2023-12-05 Thread Christophe Leroy
Le 04/12/2023 à 10:36, aneesh.ku...@kernel.org a écrit : > From: "Aneesh Kumar K.V (IBM)" > > There used to be a dependency on _PAGE_PRIVILEGED with pte_savedwrite. > But that got dropped by > commit 6a56ccbcf6c6 ("mm/autonuma: use can_change_(pte|pmd)_writable() to > replace savedwrite") >

Re: [PATCH] ocxl: fix driver function comment typo

2023-12-05 Thread Christophe Leroy
Please add a description explaining why you want to do that change. When I grep I see cxlflash driver, I don't know what ocxlflash driver is: $ git grep ocxl_config_read_afu ... drivers/scsi/cxlflash/ocxl_hw.c:rc = ocxl_config_read_afu(pdev, fcfg, acfg, 0);

Re: [PATCH] MAINTAINERS: powerpc: Transfer PPC83XX to Christophe

2023-12-05 Thread Christophe Leroy
Le 05/12/2023 à 06:12, Michael Ellerman a écrit : > Christophe volunteered[1] to maintain PPC83XX. > > 1: > https://lore.kernel.org/all/7b1bf4dc-d09d-35b8-f4df-16bf00429...@csgroup.eu/ > > Signed-off-by: Michael Ellerman Acked-by: Christophe Leroy > --- > MAINTAINERS | 6 +++--- > 1

[PATCH] ocxl: fix driver function comment typo

2023-12-05 Thread jiangyunshui
Reported-by: k2ci Signed-off-by: yunshui --- include/misc/ocxl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/misc/ocxl.h b/include/misc/ocxl.h index 3ed736da02c8..ef7d26009a36 100644 --- a/include/misc/ocxl.h +++ b/include/misc/ocxl.h @@ -324,7 +324,7 @@ int

Re: [PATCH v2 01/10] devm-helpers: introduce devm_mutex_init

2023-12-05 Thread Matti Vaittinen
On 12/4/23 20:05, George Stark wrote: Using of devm API leads to certain order of releasing resources. So all dependent resources which are not devm-wrapped should be deleted with respect to devm-release order. Mutex is one of such objects that often is bound to other resources and has no own

Re: [PATCH v3] powerpc/pseries/vas: Use usleep_range() to support HCALL delay

2023-12-05 Thread Haren Myneni
On 12/4/23 6:05 AM, Aneesh Kumar K.V (IBM) wrote: Haren Myneni writes: VAS allocate, modify and deallocate HCALLs returns H_LONG_BUSY_ORDER_1_MSEC or H_LONG_BUSY_ORDER_10_MSEC for busy delay and expects OS to reissue HCALL after that delay. But using msleep() will often sleep at least 20

Re: [PATCH] cxl: Fix null pointer dereference in cxl_get_fd

2023-12-05 Thread Kunwu Chan
Hi Fred, Thanks for your reply. But there is a question, whether we should return an error code in error path so that the caller of the 'cxl_get_fd' can know the specific reason. rather than just return NULL. Such as: - int rc, flags, fdtmp; + int rc = 0, flags, fdtmp;