Re: [PATCH v3 00/11] sysctl: treewide: constify ctl_table argument of sysctl handlers

2024-05-08 Thread Jakub Kicinski
On Wed, 8 May 2024 10:11:35 -0700 Kees Cook wrote: > > Split this per subsystem, please. > > I've done a few painful API transitions before, and I don't think the > complexity of these changes needs a per-subsystem constification pass. I > think this series is the right approach, but that patch

Re: WARNING: CPU: 1 PID: 1 at net/core/netpoll.c:370 netpoll_send_skb+0x1fc/0x20c at boot when netconsole is enabled (kernel v6.9-rc5, v6.8.7, sungem, PowerMac G4 DP)

2024-05-08 Thread Jakub Kicinski
On Wed, 8 May 2024 10:55:05 +0200 Erhard Furtner wrote: > I could do that with the explanation you stated. But should any > further questions arise in this process I would also lack the > technical background to deal with them. ;) Alright, submitted :) > I also noticed a similar #ifdef

Re: WARNING: CPU: 1 PID: 1 at net/core/netpoll.c:370 netpoll_send_skb+0x1fc/0x20c at boot when netconsole is enabled (kernel v6.9-rc5, v6.8.7, sungem, PowerMac G4 DP)

2024-05-06 Thread Jakub Kicinski
On Tue, 7 May 2024 02:42:58 +0200 Erhard Furtner wrote: > And indeed without gem_poll_controller() I don't hit the "WARNING: CPU: 1 > PID: 1 at net/core/netpoll.c:370 netpoll_send_skb+0x1fc/0x20c" and "WARNING: > CPU: 1 PID: 1 at kernel/locking/irqflag-debug.c:10 >

Re: WARNING: CPU: 1 PID: 1 at net/core/netpoll.c:370 netpoll_send_skb+0x1fc/0x20c at boot when netconsole is enabled (kernel v6.9-rc5, v6.8.7, sungem, PowerMac G4 DP)

2024-05-06 Thread Jakub Kicinski
On Sun, 5 May 2024 23:27:13 +0200 Erhard Furtner wrote: > > On Sun, 28 Apr 2024 12:53:06 +0200 Erhard Furtner wrote: > > > With netconsole enabled I get this "WARNING: CPU: 1 PID: 1 at > > > net/core/netpoll.c:370 netpoll_send_skb+0x1fc/0x20c" and "WARNING: > > > CPU: 1 PID: 1 at

Re: WARNING: CPU: 1 PID: 1 at net/core/netpoll.c:370 netpoll_send_skb+0x1fc/0x20c at boot when netconsole is enabled (kernel v6.9-rc5, v6.8.7, sungem, PowerMac G4 DP)

2024-04-29 Thread Jakub Kicinski
On Sun, 28 Apr 2024 12:53:06 +0200 Erhard Furtner wrote: > With netconsole enabled I get this "WARNING: CPU: 1 PID: 1 at > net/core/netpoll.c:370 netpoll_send_skb+0x1fc/0x20c" and "WARNING: > CPU: 1 PID: 1 at kernel/locking/irqflag-debug.c:10 > warn_bogus_irq_restore+0x30/0x44" at boot on my

Re: [PATCH v3 00/11] sysctl: treewide: constify ctl_table argument of sysctl handlers

2024-04-24 Thread Jakub Kicinski
On Tue, 23 Apr 2024 09:54:35 +0200 Thomas Weißschuh wrote: > The series was split from my larger series sysctl-const series [0]. > It only focusses on the proc_handlers but is an important step to be > able to move all static definitions of ctl_table into .rodata. Split this per subsystem,

Re: [PATCH] ibmvnic: Use -EBUSY in __ibmvnic_reset()

2024-04-24 Thread Jakub Kicinski
On Tue, 23 Apr 2024 18:41:48 +0300 Dan Carpenter wrote: > > So, the point of the patch not doing any behavioral differences is still > > true. > > Ah yes. You're right. Hard call but overall I think this wasted more reviewer time than it's worth. So in the spirit of not encouraging noise I'm

Re: [PATCH] MAINTAINERS: Drop Li Yang as their email address stopped working

2024-04-09 Thread Jakub Kicinski
On Fri, 5 Apr 2024 09:20:41 +0200 Uwe Kleine-König wrote: > When sending a patch to (among others) Li Yang the nxp MTA replied that > the address doesn't exist and so the mail couldn't be delivered. The > error code was 550, so at least technically that's not a temporal issue. > > Signed-off-by:

Re: [PATCH v3 06/15] net: kunit: Suppress lock warning noise at end of dev_addr_lists tests

2024-04-03 Thread Jakub Kicinski
On Wed, 3 Apr 2024 06:19:27 -0700 Guenter Roeck wrote: > dev_addr_lists_test generates lock warning noise at the end of tests > if lock debugging is enabled. There are two sets of warnings. > > WARNING: CPU: 0 PID: 689 at kernel/locking/mutex.c:923 >

Re: [PATCH 0/9] enabled -Wformat-truncation for clang

2024-03-26 Thread Jakub Kicinski
On Tue, 26 Mar 2024 23:37:59 +0100 Arnd Bergmann wrote: > I hope that the patches can get picked up by platform maintainers > directly, so the final patch can go in later on. platform == subsystem? :)

Re: [PATCH v7 0/5] Add support for QMC HDLC

2024-03-11 Thread Jakub Kicinski
On Thu, 7 Mar 2024 12:39:03 +0100 Herve Codina wrote: > This series introduces the QMC HDLC support. > > Patches were previously sent as part of a full feature series and were > previously reviewed in that context: > "Add support for QMC HDLC, framer infrastructure and PEF2256 framer" [1] > >

Re: [PATCH v6 1/5] net: wan: Add support for QMC HDLC

2024-03-06 Thread Jakub Kicinski
On Wed, 6 Mar 2024 15:38:10 +0200 Andy Shevchenko wrote: > > It's minor, but you can avoid conditionals doing something like: > > > > netdev->stats.rx_over_errors += !!(flags & > > QMC_RX_FLAG_HDLC_OVF); > > This is harder to read. +1

Re: [revert 0d60d8df6f49] [net/net-next] [6.8-rc5] Build Failure

2024-02-29 Thread Jakub Kicinski
On Thu, 29 Feb 2024 09:55:22 +0100 Eric Dumazet wrote: > I do not see other solution than this, otherwise we have to add more > pollution to include/linux/netdevice.h Right :( > diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h > index >

Re: [PATCH v3 4/6] bitmap: Introduce bitmap_off()

2024-02-09 Thread Jakub Kicinski
On Tue, 6 Feb 2024 15:07:14 +0100 Herve Codina wrote: > The bitmap_onto() function translates one bitmap relative to another but > no function are present to perform the reverse translation. > > Introduce bitmap_off() to fill this hole. Argh, Yury is not even CCed on this? I was about to ping

Re: [PATCH v9 00/27] Add support for QMC HDLC, framer infrastructure and PEF2256 framer

2023-11-21 Thread Jakub Kicinski
On Tue, 21 Nov 2023 08:43:30 +0100 Herve Codina wrote: > I plan to send the v10 with the patch 23 fixed. > Based on that v10, some patches (21 to 25 at least) could be applied and > I will remove them for the future v11. > I think it will be easier to follow if I iterate on the series removing >

Re: [PATCH v9 00/27] Add support for QMC HDLC, framer infrastructure and PEF2256 framer

2023-11-17 Thread Jakub Kicinski
On Wed, 15 Nov 2023 15:39:36 +0100 Herve Codina wrote: >- Removed Patches 6, 7 and 8 (patches applied) > >- Patches 7, 20, 21, 23 (patches 10, 23, 24, 26 in v8) > Add 'Acked-by: Jakub Kicinski ' I thought someone (Mark?) asked for the networking stuff to be put

Re: [PATCH 17/22] powerpc: ps3: move udbg_shutdown_ps3gelic prototype

2023-11-08 Thread Jakub Kicinski
On Wed, 8 Nov 2023 14:18:09 + Geoff Levand wrote: > Seems good to me. I'll test it next chance I get. > > Signed-off-by: Geoff Levand Seems like this is best routed via powerpc: Acked-by: Jakub Kicinski

Re: [PATCH v8 00/30] Add support for QMC HDLC, framer infrastructure and PEF2256 framer

2023-10-25 Thread Jakub Kicinski
On Wed, 25 Oct 2023 17:00:51 +0200 Herve Codina wrote: > > Which way will those patches go? Via some FSL SoC tree? > > This series seems mature now. > What is the plan next in order to have it applied ? > > Don't hesitate to tell me if you prefer split series. FWIW we are happy to take the

Re: [PATCH] treewide: Spelling fix in comment

2023-10-20 Thread Jakub Kicinski
On Fri, 20 Oct 2023 17:31:56 +0800 Kunwu Chan wrote: > reques -> request > > Fixes: 09dde54c6a69 ("PS3: gelic: Add wireless support for PS3") > Signed-off-by: Kunwu Chan Appears to have been applied to net, thank you!

Re: [PATCH v8 00/30] Add support for QMC HDLC, framer infrastructure and PEF2256 framer

2023-10-13 Thread Jakub Kicinski
On Wed, 11 Oct 2023 08:14:04 +0200 Herve Codina wrote: > Compare to the previous iteration > > https://lore.kernel.org/linux-kernel/20230928070652.330429-1-herve.cod...@bootlin.com/ > This v8 series: > - Fixes a race condition > - Uses menuconfig instead of menu and hides

Re: [PATCH v8 26/30] net: wan: framer: Add support for the Lantiq PEF2256 framer

2023-10-13 Thread Jakub Kicinski
On Wed, 11 Oct 2023 08:14:30 +0200 Herve Codina wrote: > The Lantiq PEF2256 is a framer and line interface component designed to > fulfill all required interfacing between an analog E1/T1/J1 line and the > digital PCM system highway/H.100 bus. Acked-by: Jakub Kicinski

Re: [PATCH v8 24/30] net: wan: Add framer framework support

2023-10-13 Thread Jakub Kicinski
ff the framer > - get the framer status (line state) > - be notified on framer status changes > - get/set the framer configuration Acked-by: Jakub Kicinski

Re: [PATCH v8 23/30] wan: qmc_hdlc: Add runtime timeslots changes support

2023-10-13 Thread Jakub Kicinski
Codina > Reviewed-by: Christophe Leroy Acked-by: Jakub Kicinski

Re: [PATCH v8 10/30] net: wan: Add support for QMC HDLC

2023-10-13 Thread Jakub Kicinski
On Wed, 11 Oct 2023 08:14:14 +0200 Herve Codina wrote: > The QMC HDLC driver provides support for HDLC using the QMC (QUICC > Multichannel Controller) to transfer the HDLC data. > > Signed-off-by: Herve Codina > Reviewed-by: Christophe Leroy Acked-by: Jakub Kicinski

Re: [PATCH v7 24/30] net: wan: Add framer framework support

2023-10-06 Thread Jakub Kicinski
On Thu, 28 Sep 2023 09:06:42 +0200 Herve Codina wrote: > +menu "Framer Subsystem" > + > +config GENERIC_FRAMER > + bool "Framer Core" > + help > + Generic Framer support. > + A framer is a component in charge of an E1/T1 line interface. > + Connected usually to a TDM bus,

Re: [PATCH v7 26/30] net: wan: framer: Add support for the Lantiq PEF2256 framer

2023-10-06 Thread Jakub Kicinski
On Thu, 28 Sep 2023 09:06:44 +0200 Herve Codina wrote: > + for (i = 0; i < count; i++) { > + (audio_devs + i)->name = "framer-codec"; > + (audio_devs + i)->of_compatible = compatible; > + (audio_devs + i)->id = i; Why not array notation? > + } > + > +

Re: [PATCH v7 10/30] net: wan: Add support for QMC HDLC

2023-10-06 Thread Jakub Kicinski
On Thu, 28 Sep 2023 09:06:28 +0200 Herve Codina wrote: > +static int qmc_hdlc_close(struct net_device *netdev) > +{ > + struct qmc_hdlc *qmc_hdlc = netdev_to_qmc_hdlc(netdev); > + struct qmc_hdlc_desc *desc; > + int i; > + > + netif_stop_queue(netdev); > + > +

Re: [net-next PATCH v2 3/4] netdev: replace napi_reschedule with napi_schedule

2023-10-05 Thread Jakub Kicinski
On Thu, 5 Oct 2023 18:11:56 +0200 Eric Dumazet wrote: > OK, but I suspect some users of napi_reschedule() might not be race-free... What's the race you're thinking of?

Re: [net-next PATCH 1/4] netdev: replace simple napi_schedule_prep/__napi_schedule to napi_schedule

2023-10-02 Thread Jakub Kicinski
On Mon, 2 Oct 2023 17:10:20 +0200 Christian Marangi wrote: > queue_work(priv->xfer_wq, >rx_work); > - else if (napi_schedule_prep(>napi)) > - __napi_schedule(>napi); > + else > + napi_schedule(>napi) Missing

Re: [PATCH v3] fsl_ucc_hdlc: process the result of hold_open()

2023-08-28 Thread Jakub Kicinski
On Mon, 28 Aug 2023 15:12:35 +0300 Alexandra Diupina wrote: > Process the result of hold_open() and return it from > uhdlc_open() in case of an error > It is necessary to pass the error code up the control flow, > similar to a possible error in request_irq() > > Found by Linux Verification Center

Re: [PATCH v4 21/28] net: wan: Add framer framework support

2023-08-21 Thread Jakub Kicinski
On Mon, 21 Aug 2023 05:19:22 + Christophe Leroy wrote: > As I said in the cover letter, this series only fixes critical build > failures that happened when CONFIG_MODULES is set. The purpose was to > allow robots to perform their job up to the end. Other feedback and > comments will be

Re: [PATCH v4 21/28] net: wan: Add framer framework support

2023-08-18 Thread Jakub Kicinski
On Fri, 18 Aug 2023 18:39:15 +0200 Christophe Leroy wrote: > From: Herve Codina > > A framer is a component in charge of an E1/T1 line interface. > Connected usually to a TDM bus, it converts TDM frames to/from E1/T1 > frames. It also provides information related to the E1/T1 line. Okay,

Re: [PATCH v3 00/28] Add support for QMC HDLC, framer infrastruture and PEF2256 framer

2023-08-10 Thread Jakub Kicinski
On Wed, 9 Aug 2023 15:27:27 +0200 Herve Codina wrote: > The series contains the full story and detailed modifications. > If needed, the series can be split and/or commmits can be squashed. > Let me know. Are there any dependencies in one of the -next trees? As it the series doesn't seem to build

Re: [PATCH 00/26] Add support for QMC HDLC, framer infrastruture and PEF2256 framer

2023-07-25 Thread Jakub Kicinski
On Tue, 25 Jul 2023 11:23:36 +0200 Herve Codina wrote: > I have a system where I need to handle an HDLC interface and some audio > data. The new code must build cleanly with C=1 W=1, after every individual patch. -- pw-bot: cr

Re: [PATCH] tracing: Have all levels of checks prevent recursion

2023-07-21 Thread Jakub Kicinski
On Fri, 21 Jul 2023 12:26:32 -0400 Steven Rostedt wrote: > > if (!(in_hardirq() || irqs_disabled())) > > > > Yeah, probably. > > > , nothing more elegant / already existing / ...? > > It's not a common check. What would you call that? Looks like Olek started the weekend already so let me

Re: [PATCH net-next] eth: fs_enet: fix print format for resource size

2023-06-14 Thread Jakub Kicinski
On Wed, 14 Jun 2023 21:02:33 -0700 Randy Dunlap wrote: > On 6/14/23 20:52, Jakub Kicinski wrote: > > Randy forwarded report from Stephen that on PowerPC: > > Stephen forwarded report from Randy? > > netdev & pantelis were cc-ed... Ah, I misread, you were report

[PATCH net-next] eth: fs_enet: fix print format for resource size

2023-06-14 Thread Jakub Kicinski
out the patch mpc512x_defconfig builds just fine. Link: https://lore.kernel.org/all/8f9f8d38-d9c7-9f1b-feb0-103d76902...@infradead.org/ Signed-off-by: Jakub Kicinski --- CC: Randy Dunlap CC: pantelis.anton...@gmail.com CC: linuxppc-dev@lists.ozlabs.org Targeting net-next as I can't repro this, an

Re: [PATCH v2] net: Use of_property_read_bool() for boolean properties

2023-03-16 Thread Jakub Kicinski
On Tue, 14 Mar 2023 14:18:27 -0500 Rob Herring wrote: > It is preferred to use typed property access functions (i.e. > of_property_read_ functions) rather than low-level > of_get_property/of_find_property functions for reading properties. > Convert reading boolean properties to

[PATCH net] eth: fealnx: bring back this old driver

2023-03-07 Thread Jakub Kicinski
://bugzilla.kernel.org/show_bug.cgi?id=217151 Fixes: d5e2d038dbec ("eth: fealnx: delete the driver for Myson MTD-800") Signed-off-by: Jakub Kicinski --- CC: tsbog...@alpha.franken.de CC: m...@ellerman.id.au CC: npig...@gmail.com CC: christophe.le...@csgroup.eu CC: lukas.bulw...@gmail.com CC: step...@networkp

Re: [PATCH v3] powerpc: macio: Make remove callback of macio driver void returned

2023-02-03 Thread Jakub Kicinski
ller. > > This change is for macio bus based drivers. > > Signed-off-by: Dawei Li Acked-by: Jakub Kicinski

Re: [PATCH] scripts/spelling.txt: add "exsits" pattern and fix typo instances

2023-01-26 Thread Jakub Kicinski
On Thu, 26 Jan 2023 16:22:05 +0100 Luca Ceresoli wrote: > Fix typos and add the following to the scripts/spelling.txt: > > exsits||exists > > Signed-off-by: Luca Ceresoli You need to split this up per subsystem, I reckon :(

Re: [PATCH v4] net: wan: Add checks for NULL for utdm in undo_uhdlc_init and unmap_si_regs

2023-01-11 Thread Jakub Kicinski
On Wed, 11 Jan 2023 22:55:33 +0300 Esina Ekaterina wrote: > Signed-off-by: Esina Ekaterina > --- This --- is still indented. On top of that please tag the patch for the tree to which networking maintainers apply fixes (by specifying [PATCH net v5] instead just [PATCH v5] in the subject). And

Re: [PATCH v3] net: wan: Add checks for NULL for utdm in undo_uhdlc_init and unmap_si_regs

2023-01-11 Thread Jakub Kicinski
On Wed, 11 Jan 2023 12:05:03 +0300 Esina Ekaterina wrote: > Subject: [PATCH v3] net: wan: Add checks for NULL for utdm in > undo_uhdlc_init and unmap_si_regs net: wan: prevent null-deref on error path for non-tdm case > If uhdlc_priv_tsa != 1 then utdm is not initialized. > And if ret !=

Re: [PATCH v2] net: wan: Add checks for NULL. If uhdlc_priv_tsa != 1 then utdm is not initialized. And if ret != NULL then goto undo_uhdlc_init, where utdm is dereferenced. Same if dev == NULL.

2023-01-10 Thread Jakub Kicinski
On Tue, 10 Jan 2023 14:47:45 +0300 Esina Ekaterina wrote: > Subject: [PATCH v2] net: wan: Add checks for NULL. If uhdlc_priv_tsa != 1 > then utdm is not initialized. And if ret != NULL then goto undo_uhdlc_init, > where utdm is dereferenced. Same if dev == NULL. > > Found by Linux Verification

Re: [PATCH net-next 0/7] Remove three Sun net drivers

2023-01-06 Thread Jakub Kicinski
On Fri, 6 Jan 2023 18:04:54 -0800 Anirudh Venkataramanan wrote: > >> In a recent patch series that touched these drivers [1], it was suggested > >> that these drivers should be removed completely. git logs suggest that > >> there hasn't been any significant feature addition, improvement or fixes >

Re: [PATCH net v2] powerpc: dts: t208x: Disable 10G on MAC1 and MAC2

2022-12-22 Thread Jakub Kicinski
On Fri, 23 Dec 2022 10:30:36 +1100 Michael Ellerman wrote: > The commit it Fixes went in via the networking tree, so I think it would > make sense for you to take this also via the networking tree. Roger that, thanks for confirming.

Re: [PATCH net v2] powerpc: dts: t208x: Disable 10G on MAC1 and MAC2

2022-12-22 Thread Jakub Kicinski
On Thu, 22 Dec 2022 15:41:00 + Camelia Alexandra Groza wrote: > > Reviewed-by: Camelia Groza > > Tested-by: Camelia Groza > > I see the patch marked Not Applicable in the netdev patchwork. > What tree will it go through? I could be wrong but I think DTS patches are supposed to go via the

Re: [linux-next:master] BUILD REGRESSION 89bf6e28373beef9577fa71f996a5f73a569617c

2022-10-25 Thread Jakub Kicinski
On Tue, 25 Oct 2022 16:04:15 -0700 Doug Berger wrote: > > On Wed, 26 Oct 2022 01:17:48 +0800 kernel test robot wrote: > >> drivers/net/ethernet/broadcom/genet/bcmgenet.c:1497:5-13: ERROR: invalid > >> reference to the index variable of the iterator on line 1475 > > > > CC Doug > Thanks for

Re: [linux-next:master] BUILD REGRESSION 89bf6e28373beef9577fa71f996a5f73a569617c

2022-10-25 Thread Jakub Kicinski
On Wed, 26 Oct 2022 01:17:48 +0800 kernel test robot wrote: > drivers/net/ethernet/broadcom/genet/bcmgenet.c:1497:5-13: ERROR: invalid > reference to the index variable of the iterator on line 1475 CC Doug

[PATCH net-next] eth: fealnx: delete the driver for Myson MTD-800

2022-10-25 Thread Jakub Kicinski
The git history for this driver seems to be completely automated / tree wide changes. I can't find any boards or systems which would use this chip. Google search shows pictures of towel warmers and no networking products. Signed-off-by: Jakub Kicinski --- CC: tsbog...@alpha.franken.de CC: m

Re: [PATCH v1 0/5] convert tree to get_random_u32_{below,above,between}()

2022-10-22 Thread Jakub Kicinski
On Sat, 22 Oct 2022 07:47:06 +0200 Jason A. Donenfeld wrote: > On Fri, Oct 21, 2022 at 10:32:42PM -0700, Jakub Kicinski wrote: > > But whatever. I mean - hopefully there aren't any conflicts in the ~50 > > networking files you touch. I just wish that people didn't pipe up with &g

Re: [PATCH v1 0/5] convert tree to get_random_u32_{below,above,between}()

2022-10-21 Thread Jakub Kicinski
On Sat, 22 Oct 2022 00:23:00 -0400 Jason A. Donenfeld wrote: > > How big is it? Can you provide a stable branch to pull in the new > > helpers and then everyone will be able to apply the patches to their > > subsystem? > > It's a patch. But what you suggest sounds crazy to me. Supply some >

Re: [PATCH v1 0/5] convert tree to get_random_u32_{below,above,between}()

2022-10-21 Thread Jakub Kicinski
On Fri, 21 Oct 2022 21:43:58 -0400 Jason A. Donenfeld wrote: > Since get_random_u32_below() sits in my random.git tree, these patches > too will flow through that same tree. How big is it? Can you provide a stable branch to pull in the new helpers and then everyone will be able to apply the

Re: [PATCH v6 0/7] treewide cleanup of random integer usage

2022-10-11 Thread Jakub Kicinski
ay "non-uniform", because it doesn't do any rejection sampling or > divisions. Hence, it stays within the prandom_* namespace. Acked-by: Jakub Kicinski

Re: [PATCH net-next v6 0/9] [RFT] net: dpaa: Convert to phylink

2022-10-04 Thread Jakub Kicinski
On Tue, 4 Oct 2022 11:28:19 -0400 Sean Anderson wrote: > I noticed that this series was marked "RFC" in patchwork. Because the cover letter has RTF in the subject, presumably. > I consider this series ready to apply. I am requesting *testing*, in > particular on 10gec/dtsec boards (P-series).

Re: [PATCH] net: move from strlcpy with unused retval to strscpy

2022-08-22 Thread Jakub Kicinski
On Thu, 18 Aug 2022 23:00:34 +0200 Wolfram Sang wrote: > 261 files changed, 568 insertions(+), 568 deletions(-) Unfortunately looks like patchwork was unable to ingest this change :( Not sure why. Would you mind splitting it into 3 chunks - wireless, ethernet, everything else, and resending?

Re: [RESEND PATCH net-next v4 00/25] net: dpaa: Cleanups in preparation for phylink conversion

2022-08-18 Thread Jakub Kicinski
On Thu, 18 Aug 2022 15:14:04 -0400 Sean Anderson wrote: > > Ack, no question. I'm trying to tell you got to actually get stuff in. > > It's the first week after the merge window and people are dumping code > > the had written over the dead time on the list, while some reviewers > > and maintainers

Re: [RESEND PATCH net-next v4 00/25] net: dpaa: Cleanups in preparation for phylink conversion

2022-08-18 Thread Jakub Kicinski
On Thu, 18 Aug 2022 14:37:23 -0400 Sean Anderson wrote: > On 8/18/22 2:20 PM, Jakub Kicinski wrote: > > On Thu, 18 Aug 2022 12:16:24 -0400 Sean Anderson wrote: > >> This series contains several cleanup patches for dpaa/fman. While they > >> are intended to prepa

Re: [RESEND PATCH net-next v4 00/25] net: dpaa: Cleanups in preparation for phylink conversion

2022-08-18 Thread Jakub Kicinski
On Thu, 18 Aug 2022 12:16:24 -0400 Sean Anderson wrote: > This series contains several cleanup patches for dpaa/fman. While they > are intended to prepare for a phylink conversion, they stand on their > own. This series was originally submitted as part of [1]. Still over the limit of patches in a

Re: [PATCH v4 00/25] net: dpaa: Cleanups in preparation for phylink conversion

2022-07-25 Thread Jakub Kicinski
On Mon, 25 Jul 2022 11:10:14 -0400 Sean Anderson wrote: > This series contains several cleanup patches for dpaa/fman. While they > are intended to prepare for a phylink conversion, they stand on their > own. This series was originally submitted as part of [1].

Re: [PATCH] net: fs_enet: sync rx dma buffer before reading

2022-05-23 Thread Jakub Kicinski
On Sat, 21 May 2022 10:44:30 -0700 Jakub Kicinski wrote: > > Well, I say the contrary. > > > > On the mainline the patch may be applied as is, it won't harm. > > > > However, it is gets applied to kernel 4.9 (based on the fixes: tag), it > > will break

Re: [PATCH] net: fs_enet: sync rx dma buffer before reading

2022-05-21 Thread Jakub Kicinski
On Sat, 21 May 2022 06:44:41 + Christophe Leroy wrote: > > Hm, I think the patch is necessary, sorry if you're also saying that > > and I'm misinterpreting. > > Well, I say the contrary. > > On the mainline the patch may be applied as is, it won't harm. > > However, it is gets applied to

Re: [PATCH] net: fs_enet: sync rx dma buffer before reading

2022-05-20 Thread Jakub Kicinski
On Fri, 20 May 2022 12:54:56 + Christophe Leroy wrote: > Le 20/05/2022 à 14:35, Måns Rullgård a écrit : > > Christophe Leroy writes: > >> See original commit 070e1f01827c. It explicitely says that the cache > >> must be invalidate _AFTER_ the copy. > >> > >> The cache is initialy invalidated

[PATCH net-next 6/6] net: wan: switch to netif_napi_add_weight()

2022-05-06 Thread Jakub Kicinski
A handful of WAN drivers use custom napi weights, switch them to the new API. Signed-off-by: Jakub Kicinski --- CC: qiang.z...@nxp.com CC: k...@pm.waw.pl CC: m...@dev.tdt.de CC: linuxppc-dev@lists.ozlabs.org CC: linux-...@vger.kernel.org --- drivers/net/wan/fsl_ucc_hdlc.c | 2 +- drivers/net

[PATCH net-next v2 13/15] eth: spider: remove a copy of the NAPI_POLL_WEIGHT define

2022-04-28 Thread Jakub Kicinski
Defining local versions of NAPI_POLL_WEIGHT with the same values in the drivers just makes refactoring harder. Acked-by: Geoff Levand Signed-off-by: Jakub Kicinski --- CC: kou.ishiz...@toshiba.co.jp CC: linuxppc-dev@lists.ozlabs.org --- drivers/net/ethernet/toshiba/spider_net.c | 2 +- drivers

[PATCH net-next 13/14] eth: spider: remove a copy of the NAPI_POLL_WEIGHT define

2022-04-27 Thread Jakub Kicinski
Defining local versions of NAPI_POLL_WEIGHT with the same values in the drivers just makes refactoring harder. Signed-off-by: Jakub Kicinski --- CC: kou.ishiz...@toshiba.co.jp CC: ge...@infradead.org CC: linuxppc-dev@lists.ozlabs.org --- drivers/net/ethernet/toshiba/spider_net.c | 2 +- drivers

Re: [PATCH] net: unexport csum_and_copy_{from,to}_user

2022-04-22 Thread Jakub Kicinski
e the intention is for Andrew to take this one, so FWIW: Acked-by: Jakub Kicinski

Re: [PATCH 0/7] Remove unused SLOW_DOWN_IO

2022-04-22 Thread Jakub Kicinski
On Fri, 15 Apr 2022 14:08:10 -0500 Bjorn Helgaas wrote: > From: Bjorn Helgaas > > Only alpha, ia64, powerpc, and sh define SLOW_DOWN_IO, and there are no > actual uses of it. The few references to it are in situations that are > themselves unused. Remove them all. > > It should be safe to

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 net-next 02/15] net: dsa: sja1105: Remove usage of iterator for list_add() after loop

2022-04-08 Thread Jakub Kicinski
On Sat, 9 Apr 2022 01:58:29 +0200 Jakob Koschel wrote: > > This turns a pretty slick piece of code into something ugly :( > > I'd rather you open coded the iteration here than make it more > > complex to satisfy "safe coding guidelines". > > I'm not entirely sure I understand what you mean

Re: [PATCH net-next 02/15] net: dsa: sja1105: Remove usage of iterator for list_add() after loop

2022-04-07 Thread Jakub Kicinski
On Thu, 7 Apr 2022 12:28:47 +0200 Jakob Koschel wrote: > diff --git a/drivers/net/dsa/sja1105/sja1105_vl.c > b/drivers/net/dsa/sja1105/sja1105_vl.c > index b7e95d60a6e4..cfcae4d19eef 100644 > --- a/drivers/net/dsa/sja1105/sja1105_vl.c > +++ b/drivers/net/dsa/sja1105/sja1105_vl.c > @@ -27,20

Re: [PATCH 00/22] Replace comments with C99 initializers

2022-03-28 Thread Jakub Kicinski
On Mon, 28 Mar 2022 13:51:42 +0200 Benjamin Stürz wrote: > > Just a small tip: If you are new, start with something small and learn > > from that. Don't do a controversial big patchset spanning multiple > > subsystems, that's the hard way to learn things. First submit one patch > > at a time to

Re: [EXT] Re: bnx2x: ppc64le: Unable to set message level greater than 0x7fff

2022-03-16 Thread Jakub Kicinski
On Wed, 16 Mar 2022 19:52:32 +0100 Michal Kubecek wrote: > > Yup, IIUC it works for Paul on a 5.17 system, that system likely has > > old ethtool user space tool which uses ioctls instead of netlink. > > > > What makes the netlink path somewhat non-trivial is that there is > > an expectation

Re: [EXT] Re: bnx2x: ppc64le: Unable to set message level greater than 0x7fff

2022-03-16 Thread Jakub Kicinski
On Wed, 16 Mar 2022 11:49:39 + Manish Chopra wrote: > As ethtool over netlink has some limitations of the size, > I believe you can configure ethtool with "--disable-netlink" and set those > message levels fine Yup, IIUC it works for Paul on a 5.17 system, that system likely has old ethtool

Re: bnx2x: ppc64le: Unable to set message level greater than 0x7fff

2022-03-15 Thread Jakub Kicinski
On Tue, 15 Mar 2022 22:58:57 +0100 Paul Menzel wrote: > On the POWER8 server IBM S822LC (ppc64le), I am unable to set the > message level for the network device to 0x010 but it fails. > > $ sudo ethtool -s enP1p1s0f2 msglvl 0x010 > netlink error: cannot modify bits past kernel

Re: [PATCH 2/6] treewide: remove using list iterator after loop body as a ptr

2022-02-28 Thread Jakub Kicinski
On Mon, 28 Feb 2022 16:41:04 -0800 Linus Torvalds wrote: > So yes, initially my idea had been to just move the iterator entirely > inside the macro. But specifying the type got so ugly that I think > that > > typeof (pos) pos > > trick inside the macro really ends up giving us the best

Re: Build regressions/improvements in v5.17-rc1

2022-01-24 Thread Jakub Kicinski
On Mon, 24 Jan 2022 09:04:33 -0800 Jakub Kicinski wrote: > On Mon, 24 Jan 2022 08:55:40 +0100 (CET) Geert Uytterhoeven wrote: > > > + /kisskb/src/drivers/net/ethernet/freescale/fec_mpc52xx.c: error: > > > passing argument 2 of 'mpc52xx_fec_set_paddr' discards 'const'

Re: Build regressions/improvements in v5.17-rc1

2022-01-24 Thread Jakub Kicinski
On Mon, 24 Jan 2022 08:55:40 +0100 (CET) Geert Uytterhoeven wrote: > > + /kisskb/src/drivers/net/ethernet/freescale/fec_mpc52xx.c: error: passing > > argument 2 of 'mpc52xx_fec_set_paddr' discards 'const' qualifier from > > pointer target type [-Werror=discarded-qualifiers]: => 659:29 > >

Re: [PATCH net 1/4] net/fsl: xgmac_mdio: Add workaround for erratum A-009885

2022-01-18 Thread Jakub Kicinski
On Mon, 17 Jan 2022 15:00:41 +0100 Andrew Lunn wrote: > > Should I send a v2 even if nothing else > > pops up, or is this more of a if-you're-sending-a-v2-anyway type of > > comment? > > If you reply with a Fixes: patchwork will automagically append it like > it does Reviewed-by, Tested-by etc.

Re: [PATCH] net: apple: bmac: Fix build since dev_addr constification

2022-01-13 Thread Jakub Kicinski
ns to a local macaddr variable and then > passing that to eth_hw_addr_set(). > > We don't use the existing addr variable because the bitrev8() would > mutate it, but it is already used unreversed later in the function. > > Signed-off-by: Michael Ellerman Reviewed-by: Jakub Kicinski Thank you!

Re: [PATCH] net: apple: mace: Fix build since dev_addr constification

2022-01-13 Thread Jakub Kicinski
^ > > Fix it by making the modifications to a local macaddr variable and then > passing that to eth_hw_addr_set(), as well as adding some missing const > qualifiers. > > Signed-off-by: Michael Ellerman Reviewed-by: Jakub Kicinski

Re: [5.16.0-rc5][ppc][net] kernel oops when hotplug remove of vNIC interface

2022-01-05 Thread Jakub Kicinski
On Wed, 5 Jan 2022 13:56:53 +0530 Abdul Haleem wrote: > Greeting's > > Mainline kernel 5.16.0-rc5 panics when DLPAR ADD of vNIC device on my > Powerpc LPAR > > Perform below dlpar commands in a loop from linux OS > > drmgr -r -c slot -s U9080.HEX.134C488-V1-C3 -w 5 -d 1 > drmgr -a -c slot -s

Re: [5.16.0-rc7] net-next build broken on powerpc

2022-01-03 Thread Jakub Kicinski
On Mon, 3 Jan 2022 19:10:01 +0530 Abdul Haleem wrote: > Greeting's > > Today's netdev/net-next kernel 5.16.0-rc7 failed to build on my powerpc box > with below error > >   CC [M]  drivers/net/ethernet/mellanox/mlx5/core/en_main.o > In file included from

[PATCH net-next 11/12] ethernet: ibmveth: use ether_addr_to_u64()

2021-10-15 Thread Jakub Kicinski
We'll want to make netdev->dev_addr const, remove the local helper which is missing a const qualifier on the argument and use ether_addr_to_u64(). Similar story to mlx4. Signed-off-by: Jakub Kicinski --- CC: cforn...@linux.ibm.com CC: m...@ellerman.id.au CC: b...@kernel.crashing.org CC:

Re: [PATCH] ibmveth: Switch to using the new API kobj_to_dev()

2021-02-23 Thread Jakub Kicinski
On Mon, 22 Feb 2021 16:02:21 +0800 Yang Li wrote: > fixed the following coccicheck: > ./drivers/net/ethernet/ibm/ibmveth.c:1805:51-52: WARNING opportunity for > kobj_to_dev() > > Reported-by: Abaci Robot > Signed-off-by: Yang Li # Form letter - net-next is closed We have already sent the

Re: [PATCH v2 0/7] Rid W=1 warnings in Ethernet

2021-01-15 Thread Jakub Kicinski
On Fri, 15 Jan 2021 13:38:48 + Lee Jones wrote: > Okay, so what would you like me to do? Would you like me to re-submit > the set based only on net-next Yes, rebase your patches on net-next, recheck everything builds okay and resubmit. You should always develop against the tree that will

Re: [PATCH v2 0/7] Rid W=1 warnings in Ethernet

2021-01-14 Thread Jakub Kicinski
On Thu, 14 Jan 2021 08:33:49 + Lee Jones wrote: > On Wed, 13 Jan 2021, Jakub Kicinski wrote: > > > On Wed, 13 Jan 2021 16:41:16 + Lee Jones wrote: > > > Resending

Re: [PATCH v2 0/7] Rid W=1 warnings in Ethernet

2021-01-13 Thread Jakub Kicinski
On Wed, 13 Jan 2021 16:41:16 + Lee Jones wrote: > Resending the stragglers again. > > > This set is part of a larger effort attempting to clean-up W=1 > >

Re: [PATCH 00/20] ethernet: ucc_geth: assorted fixes and simplifications

2020-12-05 Thread Jakub Kicinski
On Sat, 5 Dec 2020 22:11:39 +0100 Rasmus Villemoes wrote: > > Looks like a nice clean up on a quick look. > > > > Please separate patches 1 and 11 (which are the two bug fixes I see) > > I think patch 2 is a bug fix as well, but I'd like someone from NXP to > comment. Sure, makes sense. > >

Re: [PATCH 11/20] ethernet: ucc_geth: fix use-after-free in ucc_geth_remove()

2020-12-05 Thread Jakub Kicinski
On Sat, 5 Dec 2020 22:04:28 +0100 Rasmus Villemoes wrote: > On 05/12/2020 21.48, Jakub Kicinski wrote: > > On Sat, 5 Dec 2020 20:17:34 +0100 Rasmus Villemoes wrote: > >> - unregister_netdev(dev); > >> - free_netdev(dev); > >>ucc_geth_memclean(ugeth);

Re: [PATCH 00/20] ethernet: ucc_geth: assorted fixes and simplifications

2020-12-05 Thread Jakub Kicinski
On Sat, 5 Dec 2020 20:17:23 +0100 Rasmus Villemoes wrote: > While trying to figure out how to allow bumping the MTU with the > ucc_geth driver, I fell into a rabbit hole and stumbled on a whole > bunch of issues of varying importance - some are outright bug fixes, > while most are a matter of

Re: [PATCH 11/20] ethernet: ucc_geth: fix use-after-free in ucc_geth_remove()

2020-12-05 Thread Jakub Kicinski
On Sat, 5 Dec 2020 20:17:34 +0100 Rasmus Villemoes wrote: > - unregister_netdev(dev); > - free_netdev(dev); > ucc_geth_memclean(ugeth); > if (of_phy_is_fixed_link(np)) > of_phy_deregister_fixed_link(np); > of_node_put(ugeth->ug_info->tbi_node); >

Re: [PATCH net v2 0/2] ibmvnic: Bug fixes for queue descriptor processing

2020-11-30 Thread Jakub Kicinski
On Mon, 30 Nov 2020 13:07:22 -0600 Thomas Falcon wrote: > This series resolves a few issues in the ibmvnic driver's > RX buffer and TX completion processing. The first patch > includes memory barriers to synchronize queue descriptor > reads. The second patch fixes a memory leak that could > occur

Re: [PATCH net v3 0/9] ibmvnic: assorted bug fixes

2020-11-28 Thread Jakub Kicinski
On Wed, 25 Nov 2020 18:04:23 -0600 Dany Madden wrote: > Assorted fixes for ibmvnic originated from "[PATCH net 00/15] ibmvnic: > assorted bug fixes" sent by Lijun Pan. Applied, thanks!

Re: [PATCH] powerpc: fix the allyesconfig build

2020-11-28 Thread Jakub Kicinski
On Sat, 28 Nov 2020 16:20:54 +1100 Stephen Rothwell wrote: > On Fri, 27 Nov 2020 17:56:42 -0800 Jakub Kicinski wrote: > > > > What's the offending structure in hisilicon? I'd rather have a look > > packing structs with pointers in 'em sounds questionable. > >

Re: [PATCH] powerpc: fix the allyesconfig build

2020-11-27 Thread Jakub Kicinski
On Sat, 28 Nov 2020 12:28:19 +1100 Stephen Rothwell wrote: > There are 2 drivers that have arrays of packed structures that contain > pointers that end up at unaligned offsets. These produce warnings in > the PowerPC allyesconfig build like this: > > WARNING: 148 bad relocations >

Re: [PATCH 0/8] Rid W=1 warnings in Net

2020-11-27 Thread Jakub Kicinski
On Thu, 26 Nov 2020 13:38:45 + Lee Jones wrote: > Resending the stragglers. > > This set is part of a larger effort attempting to clean-up W=1 > kernel builds, which are currently overwhelmingly riddled with > niggly little warnings. This set doesn't apply to net-next, please rebase.

Re: [PATCH net-next v2 0/9] ibmvnic: Performance improvements and other updates

2020-11-20 Thread Jakub Kicinski
On Wed, 18 Nov 2020 19:12:16 -0600 Thomas Falcon wrote: > The first three patches utilize a hypervisor call allowing multiple > TX and RX buffer replenishment descriptors to be sent in one operation, > which significantly reduces hypervisor call overhead. The xmit_more > and Byte Queue Limit

Re: [PATCH net-next 01/12] ibmvnic: Ensure that subCRQ entry reads are ordered

2020-11-16 Thread Jakub Kicinski
On Mon, 16 Nov 2020 12:28:05 -0600 Thomas Falcon wrote: > On 11/14/20 5:35 PM, Jakub Kicinski wrote: > > On Thu, 12 Nov 2020 13:09:56 -0600 Thomas Falcon wrote: > >> Ensure that received Subordinate Command-Response Queue > >> entries are properly read in order by t

Re: [PATCH net-next 04/12] ibmvnic: Introduce xmit_more support using batched subCRQ hcalls

2020-11-14 Thread Jakub Kicinski
On Thu, 12 Nov 2020 13:09:59 -0600 Thomas Falcon wrote: > Include support for the xmit_more feature utilizing the > H_SEND_SUB_CRQ_INDIRECT hypervisor call which allows the sending > of multiple subordinate Command Response Queue descriptors in one > hypervisor call via a DMA-mapped buffer. This

  1   2   >