Re: [PATCH v2 2/2] PCI/AER: Report fatal errors of RCiEP and EP if link recoverd

2024-11-15 Thread Lukas Wunner
On Tue, Nov 12, 2024 at 09:54:19PM +0800, Shuai Xue wrote: > The AER driver has historically avoided reading the configuration space of > an endpoint or RCiEP that reported a fatal error, considering the link to > that device unreliable. It would be good if you could mention the relevant commit he

Re: [PATCH] powerpc/pseries/eeh: Fix get PE state translation

2024-11-15 Thread Ritesh Harjani (IBM)
Narayana Murty N writes: > The PE Reset State "0" obtained from RTAS calls > ibm_read_slot_reset_[state|state2] indicates that > the Reset is deactivated and the PE is not in the MMIO > Stopped or DMA Stopped state. > > With PE Reset State "0", the MMIO and DMA is allowed for > the PE. Looking a

[PATCH v2 11/21] scsi: arcmsr: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- drivers/scsi/arcmsr/arcmsr_hba.c | 2 +- 1 file changed, 1 ins

Re: [PATCH 03/22] arm: pxa: Convert timeouts to use secs_to_jiffies()

2024-11-15 Thread Stephen Rothwell
Hi Easwar, On Fri, 15 Nov 2024 21:22:33 + Easwar Hariharan wrote: > > -#define SHARPSL_CHARGE_ON_TIME_INTERVAL(msecs_to_jiffies(1*60*1000)) > /* 1 min */ > -#define SHARPSL_CHARGE_FINISH_TIME > (msecs_to_jiffies(10*60*1000)) /* 10 min */ > -#define SHARPSL_BATCHK_TIME

Re: [PATCH v2 00/21] Converge on using secs_to_jiffies()

2024-11-15 Thread Thomas Gleixner
On Fri, Nov 15 2024 at 14:15, Easwar Hariharan wrote: > On 11/15/2024 1:41 PM, Jeff Johnson wrote: >> >> How do you expect this series to land since it overlaps a large number of >> maintainer trees? Do you have a maintainer who has volunteered to take the >> series and the maintainers should just

Re: [PATCH] powerpc: Add preempt lazy support

2024-11-15 Thread Ankur Arora
Shrikanth Hegde writes: > On 11/9/24 22:24, Shrikanth Hegde wrote: >> >> On 11/9/24 00:36, Ankur Arora wrote: >>> >>> Shrikanth Hegde writes: >>> Define preempt lazy bit for Powerpc. Use bit 9 which is free and within 16 bit range of NEED_RESCHED, so compiler can issue single andi. >

Re: [PATCH 03/22] arm: pxa: Convert timeouts to use secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
On 11/15/2024 2:38 PM, Stephen Rothwell wrote: > Hi Easwar, > > On Fri, 15 Nov 2024 21:22:33 + Easwar Hariharan > wrote: >> >> -#define SHARPSL_CHARGE_ON_TIME_INTERVAL >> (msecs_to_jiffies(1*60*1000)) /* 1 min */ >> -#define SHARPSL_CHARGE_FINISH_TIME >> (msecs_to_jiffi

Re: [PATCH v2 01/21] netfilter: conntrack: Cleanup timeout definitions

2024-11-15 Thread Easwar Hariharan
On 11/15/2024 2:34 PM, Stephen Rothwell wrote: > Hi Easwar, > > On Fri, 15 Nov 2024 21:26:18 + Easwar Hariharan > wrote: >> >> static const unsigned int sctp_timeouts[SCTP_CONNTRACK_MAX] = { >> -[SCTP_CONNTRACK_CLOSED] = 10 SECS, >> -[SCTP_CONNTRACK_COOKIE_WAIT]

Re: [PATCH v2 00/21] Converge on using secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
;>> >>> --- >>> Changes in v2: >>> - EDITME: describe what is new in this series revision. >>> - EDITME: use bulletpoints and terse descriptions. >>> - Link to v1: >>> https://lore.kernel.org/r/20241115-converge-secs-to-jiffies-v1-0-19aadc349...@linu

Re: [PATCH v3 2/6] x86/uaccess: Avoid barrier_nospec() in 64-bit __get_user()

2024-11-15 Thread Linus Torvalds
On Fri, 15 Nov 2024 at 15:06, Josh Poimboeuf wrote: > > It's sad that __get_user() is now slower than get_user() on x86, it kind > of defeats the whole point! Well, honestly, we've been trying to get away from __get_user() and __put_user() for a long long time. With CLAC/STAC, it's been probably

Re: [PATCH v2 00/21] Converge on using secs_to_jiffies()

2024-11-15 Thread Jeff Johnson
ps://lore.kernel.org/all/20241030-open-coded-timeouts-v3-0-9ba123fac...@linux.microsoft.com/ >> [2] https://lore.kernel.org/all/8734kngfni.fsf@somnus/ >> >> --- >> Changes in v2: >> - EDITME: describe what is new in this series revision. >> - EDI

Re: [PATCH v2 01/21] netfilter: conntrack: Cleanup timeout definitions

2024-11-15 Thread Stephen Rothwell
Hi Easwar, On Fri, 15 Nov 2024 21:26:18 + Easwar Hariharan wrote: > > static const unsigned int sctp_timeouts[SCTP_CONNTRACK_MAX] = { > - [SCTP_CONNTRACK_CLOSED] = 10 SECS, > - [SCTP_CONNTRACK_COOKIE_WAIT]= 3 SECS, > - [SCTP_CONNTRACK_COOKIE_ECHOED]

[PATCH v2 16/21] Bluetooth: MGMT: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- net/bluetooth/mgmt.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH v2 15/21] wifi: ath11k: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Jeff Johnson
On 11/15/2024 1:26 PM, Easwar Hariharan wrote: > Changes made with the following Coccinelle rules: > > @@ constant C; @@ > > - msecs_to_jiffies(C * 1000) > + secs_to_jiffies(C) > > @@ constant C; @@ > > - msecs_to_jiffies(C * MSEC_PER_SEC) > + secs_to_jiffies(C) > > Signed-off-by: Easwar Harih

Re: [PATCH v3 2/6] x86/uaccess: Avoid barrier_nospec() in 64-bit __get_user()

2024-11-15 Thread 'Josh Poimboeuf'
On Fri, Nov 08, 2024 at 05:12:53PM +, David Laight wrote: > From: Josh Poimboeuf > > On Mon, Oct 28, 2024 at 06:56:15PM -0700, Josh Poimboeuf wrote: > > > The barrier_nospec() in 64-bit __get_user() is slow. Instead use > > > pointer masking to force the user pointer to all 1's if a previous >

Re: [PATCH net-next v2 01/10] net: freescale: ucc_geth: Drop support for the "interface" DT property

2024-11-15 Thread Simon Horman
On Thu, Nov 14, 2024 at 04:35:52PM +0100, Maxime Chevallier wrote: > In april 2007, ucc_geth was converted to phylib with : > > commit 728de4c927a3 ("ucc_geth: migrate ucc_geth to phylib"). > > In that commit, the device-tree property "interface", that could be used to > retrieve the PHY interfac

Re: [PATCH] hwrng: amd - remove reference to removed PPC_MAPLE config

2024-11-15 Thread Herbert Xu
On Wed, Nov 06, 2024 at 09:13:43AM +0100, Lukas Bulwahn wrote: > From: Lukas Bulwahn > > Commit 62f8f307c80e ("powerpc/64: Remove maple platform") removes the > PPC_MAPLE config as a consequence of the platform’s removal. > > The config definition of HW_RANDOM_AMD refers to this removed config o

Re: [PATCH] aes-gcm-p10: Use the correct bit to test for P10

2024-11-15 Thread Herbert Xu
On Wed, Nov 06, 2024 at 01:09:33PM +0100, Michal Suchanek wrote: > A hwcap feature bit is passed to cpu_has_feature, resulting in testing > for CPU_FTR_MMCRA instead of the 3.1 platform revision. > > Fixes: c954b252dee9 ("crypto: powerpc/p10-aes-gcm - Register modules as SIMD") > Reported-by: Nico

Re: [PATCH v2] of: WARN on deprecated #address-cells/#size-cells handling

2024-11-15 Thread Rob Herring
On Thu, Nov 14, 2024 at 6:59 AM Segher Boessenkool wrote: > > On Thu, Nov 07, 2024 at 10:35:58PM +1100, Michael Ellerman wrote: > > "Rob Herring (Arm)" writes: > > > While OpenFirmware originally allowed walking parent nodes and default > > > root values for #address-cells and #size-cells, FDT ha

[PATCH v1 1/1] powerpc/8xx: Drop legacy-of-mm-gpiochip.h header

2024-11-15 Thread Andy Shevchenko
Remove legacy-of-mm-gpiochip.h header file, replace of_* functions and structs with appropriate alternatives. Signed-off-by: Andy Shevchenko --- arch/powerpc/platforms/8xx/cpm1.c | 119 +++--- 1 file changed, 60 insertions(+), 59 deletions(-) diff --git a/arch/powerpc/pl

[PATCH] selftests/mount_setattr: Fix failures on 64K PAGE_SIZE kernels

2024-11-15 Thread Michael Ellerman
Currently the mount_setattr_test fails on machines with a 64K PAGE_SIZE, with errors such as: # RUN mount_setattr_idmapped.invalid_fd_negative ... mkfs.ext4: No space left on device while writing out and closing file system # mount_setattr_test.c:1055:invalid_fd_negative:Expected

Re: [PATCH v2 2/2] PCI/AER: Report fatal errors of RCiEP and EP if link recoverd

2024-11-15 Thread Shuai Xue
在 2024/11/15 17:06, Lukas Wunner 写道: On Tue, Nov 12, 2024 at 09:54:19PM +0800, Shuai Xue wrote: The AER driver has historically avoided reading the configuration space of an endpoint or RCiEP that reported a fatal error, considering the link to that device unreliable. It would be good if yo

Re: [PATCH v9 1/4] cpu/SMT: Provide a default topology_is_primary_thread()

2024-11-15 Thread Pierre Gondois
Hello Yicong, On 11/14/24 15:11, Yicong Yang wrote: From: Yicong Yang Currently if architectures want to support HOTPLUG_SMT they need to provide a topology_is_primary_thread() telling the framework which thread in the SMT cannot offline. However arm64 doesn't have a restriction on which thre

[PATCH] bus: fsl-mc: Remove deadcode

2024-11-15 Thread linux
From: "Dr. David Alan Gilbert" fsl_mc_allocator_driver_exit() was added explicitly by commit 1e8ac83b6caf ("bus: fsl-mc: add fsl_mc_allocator cleanup function") but was never used. Remove it. fsl_mc_portal_reset() was added in 2015 by commit 197f4d6a4a00 ("staging: fsl-mc: fsl-mc object allocat

Re: [PATCH v2 2/2] PCI/AER: Report fatal errors of RCiEP and EP if link recoverd

2024-11-15 Thread Bowman, Terry
Hi Shuai, On 11/12/2024 7:54 AM, Shuai Xue wrote: > The AER driver has historically avoided reading the configuration space of > an endpoint or RCiEP that reported a fatal error, considering the link to > that device unreliable. Consequently, when a fatal error occurs, the AER > and DPC drivers d

[PATCH 20/22] ALSA: line6: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- sound/usb/line6/toneport.c | 2 +- 1 file changed, 1 insertion

[PATCH 19/22] livepatch: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- samples/livepatch/livepatch-callbacks-busymod.c | 2 +- sampl

Re: [PATCH 22/22] jiffies: Define secs_to_jiffies()

2024-11-15 Thread Jeff Johnson
On 11/15/2024 1:22 PM, Easwar Hariharan wrote: > secs_to_jiffies() is defined in hci_event.c and cannot be reused by > other call sites. Hoist it into the core code to allow conversion of the > ~1150 usages of msecs_to_jiffies() that either: > > - use a multiplier value of 1000 or equivalently MS

[PATCH 13/22] xen/blkback: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- drivers/block/xen-blkback/blkback.c | 2 +- 1 file changed, 1

[PATCH 07/22] accel/habanalabs: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- drivers/accel/habanalabs/common/device.c | 2 +- drive

[PATCH 05/22] powerpc/papr_scm: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- arch/powerpc/platforms/pseries/papr_scm.c | 2 +- 1 file chang

[PATCH 14/22] gve: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- drivers/net/ethernet/google/gve/gve_tx_dqo.c | 6 ++ 1 fil

[PATCH 12/22] scsi: pm8001: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- drivers/scsi/pm8001/pm8001_init.c | 2 +- 1 file changed, 1 in

[PATCH 10/22] scsi: lpfc: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- drivers/scsi/lpfc/lpfc_init.c | 18 +- dr

[PATCH v2 02/21] coccinelle: misc: Add secs_to_jiffies script

2024-11-15 Thread Easwar Hariharan
Suggested-by: Anna-Maria Behnsen Signed-off-by: Easwar Hariharan --- scripts/coccinelle/misc/secs_to_jiffies.cocci | 21 + 1 file changed, 21 insertions(+) diff --git a/scripts/coccinelle/misc/secs_to_jiffies.cocci b/scripts/coccinelle/misc/secs_to_jiffies.cocci new file mo

[PATCH v2 00/21] Converge on using secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
bulletpoints and terse descriptions. - Link to v1: https://lore.kernel.org/r/20241115-converge-secs-to-jiffies-v1-0-19aadc349...@linux.microsoft.com --- Easwar Hariharan (21): netfilter: conntrack: Cleanup timeout definitions coccinelle: misc: Add secs_to_jiffies script arm: pxa: Convert

[PATCH v2 04/21] s390: kernel: Convert timeouts to use secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- arch/s390/kernel/lgr.c | 3 ++- arch/s390/kernel/time.c

[PATCH v2 01/21] netfilter: conntrack: Cleanup timeout definitions

2024-11-15 Thread Easwar Hariharan
None of the higher order definitions are used anymore, so remove definitions for minutes, hours, and days timeouts. Convert the seconds denominated timeouts to secs_to_jiffies() Signed-off-by: Easwar Hariharan --- net/netfilter/nf_conntrack_proto_sctp.c | 21 - 1 file changed

[PATCH v2 03/21] arm: pxa: Convert timeouts to use secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- arch/arm/mach-pxa/sharpsl_pm.c | 6 +++--- 1 file changed, 3 i

[PATCH 01/22] netfilter: conntrack: Cleanup timeout definitions

2024-11-15 Thread Easwar Hariharan
None of the higher order definitions are used anymore, so remove definitions for minutes, hours, and days timeouts. Convert the seconds denominated timeouts to secs_to_jiffies() Signed-off-by: Easwar Hariharan --- net/netfilter/nf_conntrack_proto_sctp.c | 21 - 1 file changed

[PATCH 15/22] wifi: ath11k: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- drivers/net/wireless/ath/ath11k/debugfs.c | 2 +- 1 file chang

[PATCH 22/22] jiffies: Define secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
secs_to_jiffies() is defined in hci_event.c and cannot be reused by other call sites. Hoist it into the core code to allow conversion of the ~1150 usages of msecs_to_jiffies() that either: - use a multiplier value of 1000 or equivalently MSEC_PER_SEC, or - have timeouts that are denominated in s

[PATCH 00/22] Converge on using secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
This is a series that follows up on my previous series to introduce secs_to_jiffies() and convert a few initial users.[1] In the review for that series, Anna-Maria requested converting other users with Coccinelle. This is part 1 that converts users of msecs_to_jiffies() that use the multiply patter

[PATCH 04/22] s390: kernel: Convert timeouts to use secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- arch/s390/kernel/lgr.c | 3 ++- arch/s390/kernel/time.c

[PATCH 03/22] arm: pxa: Convert timeouts to use secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- arch/arm/mach-pxa/sharpsl_pm.c | 6 +++--- 1 file changed, 3 i

[PATCH 02/22] coccinelle: misc: Add secs_to_jiffies script

2024-11-15 Thread Easwar Hariharan
Suggested-by: Anna-Maria Behnsen Signed-off-by: Easwar Hariharan --- scripts/coccinelle/misc/secs_to_jiffies.cocci | 21 + 1 file changed, 21 insertions(+) diff --git a/scripts/coccinelle/misc/secs_to_jiffies.cocci b/scripts/coccinelle/misc/secs_to_jiffies.cocci new file mo

[PATCH 16/22] Bluetooth: MGMT: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- net/bluetooth/mgmt.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH 11/22] scsi: arcmsr: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- drivers/scsi/arcmsr/arcmsr_hba.c | 2 +- 1 file changed, 1 ins

[PATCH 06/22] mm: kmemleak: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- mm/kmemleak.c | 4 ++-- 1 file changed, 2 insertions(+), 2 del

[PATCH 18/22] ceph: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- fs/ceph/quota.c | 2 +- 1 file changed, 1 insertion(+), 1 dele

[PATCH 09/22] drm/etnaviv: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c | 2 +- 1 file change

[PATCH 21/22] nfp: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- drivers/net/ethernet/netronome/nfp/nfp_net_common.c | 2 +- 1

[PATCH 08/22] drm/xe: Convert timeout to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- drivers/gpu/drm/xe/xe_device.c | 2 +- 1 file changed, 1 inser

[PATCH v2 18/21] ceph: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- fs/ceph/quota.c | 2 +- 1 file changed, 1 insertion(+), 1 dele

[PATCH v2 17/21] staging: vc04_services: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c |

[PATCH v2 21/21] nfp: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- drivers/net/ethernet/netronome/nfp/nfp_net_common.c | 2 +- 1

[PATCH v2 20/21] ALSA: line6: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- sound/usb/line6/toneport.c | 2 +- 1 file changed, 1 insertion

[PATCH v2 13/21] xen/blkback: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- drivers/block/xen-blkback/blkback.c | 2 +- 1 file changed, 1

[PATCH v2 09/21] drm/etnaviv: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- drivers/gpu/drm/etnaviv/etnaviv_cmdbuf.c | 2 +- 1 file change

[PATCH v2 14/21] gve: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- drivers/net/ethernet/google/gve/gve_tx_dqo.c | 6 ++ 1 fil

[PATCH v2 15/21] wifi: ath11k: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- drivers/net/wireless/ath/ath11k/debugfs.c | 2 +- 1 file chang

[PATCH v2 05/21] powerpc/papr_scm: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- arch/powerpc/platforms/pseries/papr_scm.c | 2 +- 1 file chang

[PATCH v2 08/21] drm/xe: Convert timeout to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- drivers/gpu/drm/xe/xe_device.c | 2 +- 1 file changed, 1 inser

Re: [PATCH 22/22] jiffies: Define secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
cannot be > bisected Thanks for the quick response, indeed this patch is already in tip[1], I pulled it in for testing the series but missed out on removing it before sending. Please review v2 that excludes this: https://lore.kernel.org/all/20241115-converge-secs-to-jiffies-v2-0-911fb7595...@linux.microsoft.com/ [1]: https://git.kernel.org/tip/b35108a51cf7bab58d7eace1267d7965978bcdb8 Thanks, Easwar

Re: [PATCH v2 00/21] Converge on using secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
rnel.org/all/8734kngfni.fsf@somnus/ > > --- > Changes in v2: > - EDITME: describe what is new in this series revision. > - EDITME: use bulletpoints and terse descriptions. > - Link to v1: > https://lore.kernel.org/r/20241115-converge-secs-to-jiffies-v1-0-19aadc349...@linux

[PATCH v2 06/21] mm: kmemleak: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- mm/kmemleak.c | 4 ++-- 1 file changed, 2 insertions(+), 2 del

[PATCH v2 10/21] scsi: lpfc: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- drivers/scsi/lpfc/lpfc_init.c | 18 +- dr

[PATCH v2 07/21] accel/habanalabs: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- drivers/accel/habanalabs/common/device.c | 2 +- drive

Re: [PATCH v2 00/21] Converge on using secs_to_jiffies()

2024-11-15 Thread Christophe Leroy
Le 15/11/2024 à 22:29, Easwar Hariharan a écrit : [Vous ne recevez pas souvent de courriers de eahar...@linux.microsoft.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ] On 11/15/2024 1:26 PM, Easwar Hariharan wrote: This is a series that follows

Re: [PATCH 19/22] livepatch: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Dan Carpenter
On Fri, Nov 15, 2024 at 09:22:49PM +, Easwar Hariharan wrote: > diff --git a/samples/livepatch/livepatch-callbacks-busymod.c > b/samples/livepatch/livepatch-callbacks-busymod.c > index > 378e2d40271a9717d09eff51d3d3612c679736fc..d0fd801a7c21b7d7939c29d83f9d993badcc9aba > 100644 > --- a/sampl

[PATCH 17/22] staging: vc04_services: Convert timeouts to secs_to_jiffies()

2024-11-15 Thread Easwar Hariharan
Changes made with the following Coccinelle rules: @@ constant C; @@ - msecs_to_jiffies(C * 1000) + secs_to_jiffies(C) @@ constant C; @@ - msecs_to_jiffies(C * MSEC_PER_SEC) + secs_to_jiffies(C) Signed-off-by: Easwar Hariharan --- drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c |

Re: [PATCH v2 02/21] coccinelle: misc: Add secs_to_jiffies script

2024-11-15 Thread Christophe JAILLET
Le 15/11/2024 à 22:26, Easwar Hariharan a écrit : > Suggested-by: Anna-Maria Behnsen > Signed-off-by: Easwar Hariharan > --- > scripts/coccinelle/misc/secs_to_jiffies.cocci | 21 + > 1 file changed, 21 insertions(+) > > diff --git a/scripts/coccinelle/misc/secs_to_jiffies.