mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] regmap: Disable locking for RBTREE and MAPLE unit tests
@ 2023-07-20  3:28 Guenter Roeck
  2023-07-20  3:28 ` [RFC PATCH 2/2] regmap: Reject fast_io regmap configurations with RBTREE and MAPLE caches Guenter Roeck
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Guenter Roeck @ 2023-07-20  3:28 UTC (permalink / raw)
  To: Mark Brown
  Cc: Greg Kroah-Hartman, Rafael J . Wysocki, linux-kernel, Guenter Roeck

REGCACHE_RBTREE and REGCACHE_MAPLE dynamically allocate memory
for regmap operations. This is incompatible with spinlock based locking
which is used for fast_io operations. Disable locking for the associated
unit tests to avoid lockdep splashes.

Fixes: f033c26de5a5 ("regmap: Add maple tree based register cache")
Fixes: 2238959b6ad2 ("regmap: Add some basic kunit tests")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
 drivers/base/regmap/regmap-kunit.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/base/regmap/regmap-kunit.c b/drivers/base/regmap/regmap-kunit.c
index 24257aa9004d..9ff3018a46aa 100644
--- a/drivers/base/regmap/regmap-kunit.c
+++ b/drivers/base/regmap/regmap-kunit.c
@@ -58,6 +58,9 @@ static struct regmap *gen_regmap(struct regmap_config *config,
 	int i;
 	struct reg_default *defaults;
 
+	config->disable_locking = config->cache_type == REGCACHE_RBTREE ||
+					config->cache_type == REGCACHE_MAPLE;
+
 	buf = kmalloc(size, GFP_KERNEL);
 	if (!buf)
 		return ERR_PTR(-ENOMEM);
@@ -889,6 +892,8 @@ static struct regmap *gen_raw_regmap(struct regmap_config *config,
 
 	config->cache_type = test_type->cache_type;
 	config->val_format_endian = test_type->val_endian;
+	config->disable_locking = config->cache_type == REGCACHE_RBTREE ||
+					config->cache_type == REGCACHE_MAPLE;
 
 	buf = kmalloc(size, GFP_KERNEL);
 	if (!buf)
-- 
2.39.2


^ permalink raw reply	[flat|nested] 15+ messages in thread

* [RFC PATCH 2/2] regmap: Reject fast_io regmap configurations with RBTREE and MAPLE caches
  2023-07-20  3:28 [PATCH 1/2] regmap: Disable locking for RBTREE and MAPLE unit tests Guenter Roeck
@ 2023-07-20  3:28 ` Guenter Roeck
       [not found]   ` <CGME20230721145342eucas1p12e658a54d36d985b2811e2c21f7810ee@eucas1p1.samsung.com>
  2023-07-20 18:19 ` [PATCH 1/2] regmap: Disable locking for RBTREE and MAPLE unit tests Mark Brown
  2023-07-21 17:41 ` (subset) " Mark Brown
  2 siblings, 1 reply; 15+ messages in thread
From: Guenter Roeck @ 2023-07-20  3:28 UTC (permalink / raw)
  To: Mark Brown
  Cc: Greg Kroah-Hartman, Rafael J . Wysocki, linux-kernel, Guenter Roeck

REGCACHE_RBTREE and REGCACHE_MAPLE dynamically allocate memory for regmap
operations. This is incompatible with spinlock based locking which is used
for fast_io operations. Reject affected configurations.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
This seems prudent, given that accesses will be protected by spinlock
but may allocate memory with GFP_KERNEL. Another option might be to use
WARN_ON instead of rejecting the configuration to avoid hard regressions
(and I think both drivers/net/ieee802154/mcr20a.c and
sound/soc/codecs/sti-sas.c may be affected, though I can not test it).

 drivers/base/regmap/regmap.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c
index 89a7f1c459c1..b4640285c0b9 100644
--- a/drivers/base/regmap/regmap.c
+++ b/drivers/base/regmap/regmap.c
@@ -777,6 +777,15 @@ struct regmap *__regmap_init(struct device *dev,
 	} else {
 		if ((bus && bus->fast_io) ||
 		    config->fast_io) {
+			/*
+			 * fast_io is incompatible with REGCACHE_RBTREE and REGCACHE_MAPLE
+			 * since both need to dynamically allocate memory.
+			 */
+			if (config->cache_type == REGCACHE_RBTREE ||
+			    config->cache_type == REGCACHE_MAPLE) {
+				ret = -EINVAL;
+				goto err_name;
+			}
 			if (config->use_raw_spinlock) {
 				raw_spin_lock_init(&map->raw_spinlock);
 				map->lock = regmap_lock_raw_spinlock;
-- 
2.39.2


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 1/2] regmap: Disable locking for RBTREE and MAPLE unit tests
  2023-07-20  3:28 [PATCH 1/2] regmap: Disable locking for RBTREE and MAPLE unit tests Guenter Roeck
  2023-07-20  3:28 ` [RFC PATCH 2/2] regmap: Reject fast_io regmap configurations with RBTREE and MAPLE caches Guenter Roeck
@ 2023-07-20 18:19 ` Mark Brown
  2023-07-21 17:41 ` (subset) " Mark Brown
  2 siblings, 0 replies; 15+ messages in thread
From: Mark Brown @ 2023-07-20 18:19 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: Greg Kroah-Hartman, Rafael J . Wysocki, linux-kernel

On Wed, 19 Jul 2023 20:28:47 -0700, Guenter Roeck wrote:
> REGCACHE_RBTREE and REGCACHE_MAPLE dynamically allocate memory
> for regmap operations. This is incompatible with spinlock based locking
> which is used for fast_io operations. Disable locking for the associated
> unit tests to avoid lockdep splashes.
> 
> 

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git for-next

Thanks!

[1/2] regmap: Disable locking for RBTREE and MAPLE unit tests
      (no commit info)
[2/2] regmap: Reject fast_io regmap configurations with RBTREE and MAPLE caches
      commit: ee43f5bb23340c27603c3ad8ef94f677ad7cb9ad

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [RFC PATCH 2/2] regmap: Reject fast_io regmap configurations with RBTREE and MAPLE caches
       [not found]   ` <CGME20230721145342eucas1p12e658a54d36d985b2811e2c21f7810ee@eucas1p1.samsung.com>
@ 2023-07-21 14:53     ` Marek Szyprowski
  2023-07-21 15:03       ` Mark Brown
  2023-07-21 15:05       ` Guenter Roeck
  0 siblings, 2 replies; 15+ messages in thread
From: Marek Szyprowski @ 2023-07-21 14:53 UTC (permalink / raw)
  To: Guenter Roeck, Mark Brown
  Cc: Greg Kroah-Hartman, Rafael J . Wysocki, linux-kernel,
	linux-rockchip, Heiko Stuebner, Andy Yan, Sascha Hauer

Hi,

On 20.07.2023 05:28, Guenter Roeck wrote:
> REGCACHE_RBTREE and REGCACHE_MAPLE dynamically allocate memory for regmap
> operations. This is incompatible with spinlock based locking which is used
> for fast_io operations. Reject affected configurations.
>
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
> ---
> This seems prudent, given that accesses will be protected by spinlock
> but may allocate memory with GFP_KERNEL. Another option might be to use
> WARN_ON instead of rejecting the configuration to avoid hard regressions
> (and I think both drivers/net/ieee802154/mcr20a.c and
> sound/soc/codecs/sti-sas.c may be affected, though I can not test it).

This patch, which landed in today's linux-next, breaks operation of the 
RockChip's VOP2 DRM driver 
(drivers/gpu/drm/rockchip/rockchip_drm_vop2.c). I'm not sure what is the 
proper fix in this case. Should one change the cache type to REGCACHE_FLAT?


>   drivers/base/regmap/regmap.c | 9 +++++++++
>   1 file changed, 9 insertions(+)
>
> diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c
> index 89a7f1c459c1..b4640285c0b9 100644
> --- a/drivers/base/regmap/regmap.c
> +++ b/drivers/base/regmap/regmap.c
> @@ -777,6 +777,15 @@ struct regmap *__regmap_init(struct device *dev,
>   	} else {
>   		if ((bus && bus->fast_io) ||
>   		    config->fast_io) {
> +			/*
> +			 * fast_io is incompatible with REGCACHE_RBTREE and REGCACHE_MAPLE
> +			 * since both need to dynamically allocate memory.
> +			 */
> +			if (config->cache_type == REGCACHE_RBTREE ||
> +			    config->cache_type == REGCACHE_MAPLE) {
> +				ret = -EINVAL;
> +				goto err_name;
> +			}
>   			if (config->use_raw_spinlock) {
>   				raw_spin_lock_init(&map->raw_spinlock);
>   				map->lock = regmap_lock_raw_spinlock;

Best regards
-- 
Marek Szyprowski, PhD
Samsung R&D Institute Poland


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [RFC PATCH 2/2] regmap: Reject fast_io regmap configurations with RBTREE and MAPLE caches
  2023-07-21 14:53     ` Marek Szyprowski
@ 2023-07-21 15:03       ` Mark Brown
  2023-07-21 15:07         ` Guenter Roeck
  2023-07-21 15:05       ` Guenter Roeck
  1 sibling, 1 reply; 15+ messages in thread
From: Mark Brown @ 2023-07-21 15:03 UTC (permalink / raw)
  To: Marek Szyprowski
  Cc: Guenter Roeck, Greg Kroah-Hartman, Rafael J . Wysocki,
	linux-kernel, linux-rockchip, Heiko Stuebner, Andy Yan,
	Sascha Hauer

[-- Attachment #1: Type: text/plain, Size: 496 bytes --]

On Fri, Jul 21, 2023 at 04:53:42PM +0200, Marek Szyprowski wrote:

> This patch, which landed in today's linux-next, breaks operation of the 
> RockChip's VOP2 DRM driver 
> (drivers/gpu/drm/rockchip/rockchip_drm_vop2.c). I'm not sure what is the 
> proper fix in this case. Should one change the cache type to REGCACHE_FLAT?

Actually Guenter and Dan have made the required updates to support this
so the warning will be gone soon (hopefully Dan will send his patch
properly shortly).

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [RFC PATCH 2/2] regmap: Reject fast_io regmap configurations with RBTREE and MAPLE caches
  2023-07-21 14:53     ` Marek Szyprowski
  2023-07-21 15:03       ` Mark Brown
@ 2023-07-21 15:05       ` Guenter Roeck
  1 sibling, 0 replies; 15+ messages in thread
From: Guenter Roeck @ 2023-07-21 15:05 UTC (permalink / raw)
  To: Marek Szyprowski, Mark Brown
  Cc: Greg Kroah-Hartman, Rafael J . Wysocki, linux-kernel,
	linux-rockchip, Heiko Stuebner, Andy Yan, Sascha Hauer

On 7/21/23 07:53, Marek Szyprowski wrote:
> Hi,
> 
> On 20.07.2023 05:28, Guenter Roeck wrote:
>> REGCACHE_RBTREE and REGCACHE_MAPLE dynamically allocate memory for regmap
>> operations. This is incompatible with spinlock based locking which is used
>> for fast_io operations. Reject affected configurations.
>>
>> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
>> ---
>> This seems prudent, given that accesses will be protected by spinlock
>> but may allocate memory with GFP_KERNEL. Another option might be to use
>> WARN_ON instead of rejecting the configuration to avoid hard regressions
>> (and I think both drivers/net/ieee802154/mcr20a.c and
>> sound/soc/codecs/sti-sas.c may be affected, though I can not test it).
> 
> This patch, which landed in today's linux-next, breaks operation of the
> RockChip's VOP2 DRM driver
> (drivers/gpu/drm/rockchip/rockchip_drm_vop2.c). I'm not sure what is the
> proper fix in this case. Should one change the cache type to REGCACHE_FLAT?
> 

Ah, I missed regcache_init_mmio() when looking for affected drivers.
This affects a larger number of drivers than I thought. In addition
to the drivers mentioned above,

  drivers/soc/qcom/icc-bwmon.c
  sound/soc/bcm/bcm2835-i2s.c
  sound/soc/codecs/jz4740.c
  sound/soc/fsl/fsl_aud2htx.c
  sound/soc/fsl/fsl_easrc.c
  sound/soc/fsl/fsl_micfil.c

all use unsafe locking (spinlock with REGCACHE_RBTREE).

Thanks,
Guenter

> 
>>    drivers/base/regmap/regmap.c | 9 +++++++++
>>    1 file changed, 9 insertions(+)
>>
>> diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c
>> index 89a7f1c459c1..b4640285c0b9 100644
>> --- a/drivers/base/regmap/regmap.c
>> +++ b/drivers/base/regmap/regmap.c
>> @@ -777,6 +777,15 @@ struct regmap *__regmap_init(struct device *dev,
>>    	} else {
>>    		if ((bus && bus->fast_io) ||
>>    		    config->fast_io) {
>> +			/*
>> +			 * fast_io is incompatible with REGCACHE_RBTREE and REGCACHE_MAPLE
>> +			 * since both need to dynamically allocate memory.
>> +			 */
>> +			if (config->cache_type == REGCACHE_RBTREE ||
>> +			    config->cache_type == REGCACHE_MAPLE) {
>> +				ret = -EINVAL;
>> +				goto err_name;
>> +			}
>>    			if (config->use_raw_spinlock) {
>>    				raw_spin_lock_init(&map->raw_spinlock);
>>    				map->lock = regmap_lock_raw_spinlock;
> 
> Best regards


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [RFC PATCH 2/2] regmap: Reject fast_io regmap configurations with RBTREE and MAPLE caches
  2023-07-21 15:03       ` Mark Brown
@ 2023-07-21 15:07         ` Guenter Roeck
  2023-07-21 15:13           ` Mark Brown
  0 siblings, 1 reply; 15+ messages in thread
From: Guenter Roeck @ 2023-07-21 15:07 UTC (permalink / raw)
  To: Mark Brown, Marek Szyprowski
  Cc: Greg Kroah-Hartman, Rafael J . Wysocki, linux-kernel,
	linux-rockchip, Heiko Stuebner, Andy Yan, Sascha Hauer

On 7/21/23 08:03, Mark Brown wrote:
> On Fri, Jul 21, 2023 at 04:53:42PM +0200, Marek Szyprowski wrote:
> 
>> This patch, which landed in today's linux-next, breaks operation of the
>> RockChip's VOP2 DRM driver
>> (drivers/gpu/drm/rockchip/rockchip_drm_vop2.c). I'm not sure what is the
>> proper fix in this case. Should one change the cache type to REGCACHE_FLAT?
> 
> Actually Guenter and Dan have made the required updates to support this
> so the warning will be gone soon (hopefully Dan will send his patch
> properly shortly).

Do you plan to revert this patch ? If not regmap_init() would still fail
for the affected drivers, even after my and Dan's patches have been applied.

Thanks,
Guenter


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [RFC PATCH 2/2] regmap: Reject fast_io regmap configurations with RBTREE and MAPLE caches
  2023-07-21 15:07         ` Guenter Roeck
@ 2023-07-21 15:13           ` Mark Brown
  2023-07-21 16:01             ` Guenter Roeck
  0 siblings, 1 reply; 15+ messages in thread
From: Mark Brown @ 2023-07-21 15:13 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: Marek Szyprowski, Greg Kroah-Hartman, Rafael J . Wysocki,
	linux-kernel, linux-rockchip, Heiko Stuebner, Andy Yan,
	Sascha Hauer

[-- Attachment #1: Type: text/plain, Size: 606 bytes --]

On Fri, Jul 21, 2023 at 08:07:28AM -0700, Guenter Roeck wrote:
> On 7/21/23 08:03, Mark Brown wrote:

> > Actually Guenter and Dan have made the required updates to support this
> > so the warning will be gone soon (hopefully Dan will send his patch
> > properly shortly).

> Do you plan to revert this patch ? If not regmap_init() would still fail
> for the affected drivers, even after my and Dan's patches have been applied.

Yeah.  You *can* use the dynamically allocating caches safely if you
ensure that no new cache nodes are allocated during I/O.  I'd not
realised people were actually doing this.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [RFC PATCH 2/2] regmap: Reject fast_io regmap configurations with RBTREE and MAPLE caches
  2023-07-21 15:13           ` Mark Brown
@ 2023-07-21 16:01             ` Guenter Roeck
  2023-07-21 16:14               ` Mark Brown
  2023-07-21 16:18               ` Dan Carpenter
  0 siblings, 2 replies; 15+ messages in thread
From: Guenter Roeck @ 2023-07-21 16:01 UTC (permalink / raw)
  To: Mark Brown
  Cc: Marek Szyprowski, Greg Kroah-Hartman, Rafael J . Wysocki,
	linux-kernel, linux-rockchip, Heiko Stuebner, Andy Yan,
	Sascha Hauer, Dan Carpenter

On 7/21/23 08:13, Mark Brown wrote:
> On Fri, Jul 21, 2023 at 08:07:28AM -0700, Guenter Roeck wrote:
>> On 7/21/23 08:03, Mark Brown wrote:
> 
>>> Actually Guenter and Dan have made the required updates to support this
>>> so the warning will be gone soon (hopefully Dan will send his patch
>>> properly shortly).
> 
>> Do you plan to revert this patch ? If not regmap_init() would still fail
>> for the affected drivers, even after my and Dan's patches have been applied.
> 
> Yeah.  You *can* use the dynamically allocating caches safely if you
> ensure that no new cache nodes are allocated during I/O.  I'd not
> realised people were actually doing this.

Ok.

Dan, let me know if you don't have time to send a proper patch.
I have one based on your suggestion prepared that I could send out
if needed.

Thanks,
Guenter


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [RFC PATCH 2/2] regmap: Reject fast_io regmap configurations with RBTREE and MAPLE caches
  2023-07-21 16:01             ` Guenter Roeck
@ 2023-07-21 16:14               ` Mark Brown
  2023-07-21 16:16                 ` Guenter Roeck
  2023-07-21 16:18               ` Dan Carpenter
  1 sibling, 1 reply; 15+ messages in thread
From: Mark Brown @ 2023-07-21 16:14 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: Marek Szyprowski, Greg Kroah-Hartman, Rafael J . Wysocki,
	linux-kernel, linux-rockchip, Heiko Stuebner, Andy Yan,
	Sascha Hauer, Dan Carpenter

[-- Attachment #1: Type: text/plain, Size: 550 bytes --]

On Fri, Jul 21, 2023 at 09:01:03AM -0700, Guenter Roeck wrote:
> On 7/21/23 08:13, Mark Brown wrote:

> > Yeah.  You *can* use the dynamically allocating caches safely if you
> > ensure that no new cache nodes are allocated during I/O.  I'd not
> > realised people were actually doing this.

> Ok.

> Dan, let me know if you don't have time to send a proper patch.
> I have one based on your suggestion prepared that I could send out
> if needed.

Dan sent the patch already, assuming my CI doesn't blow up unexpectedly
it should be applied tonight.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [RFC PATCH 2/2] regmap: Reject fast_io regmap configurations with RBTREE and MAPLE caches
  2023-07-21 16:14               ` Mark Brown
@ 2023-07-21 16:16                 ` Guenter Roeck
  0 siblings, 0 replies; 15+ messages in thread
From: Guenter Roeck @ 2023-07-21 16:16 UTC (permalink / raw)
  To: Mark Brown
  Cc: Marek Szyprowski, Greg Kroah-Hartman, Rafael J . Wysocki,
	linux-kernel, linux-rockchip, Heiko Stuebner, Andy Yan,
	Sascha Hauer, Dan Carpenter

On Fri, Jul 21, 2023 at 05:14:42PM +0100, Mark Brown wrote:
> On Fri, Jul 21, 2023 at 09:01:03AM -0700, Guenter Roeck wrote:
> > On 7/21/23 08:13, Mark Brown wrote:
> 
> > > Yeah.  You *can* use the dynamically allocating caches safely if you
> > > ensure that no new cache nodes are allocated during I/O.  I'd not
> > > realised people were actually doing this.
> 
> > Ok.
> 
> > Dan, let me know if you don't have time to send a proper patch.
> > I have one based on your suggestion prepared that I could send out
> > if needed.
> 
> Dan sent the patch already, assuming my CI doesn't blow up unexpectedly
> it should be applied tonight.

Excellent.

Thanks,
Guenter

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [RFC PATCH 2/2] regmap: Reject fast_io regmap configurations with RBTREE and MAPLE caches
  2023-07-21 16:01             ` Guenter Roeck
  2023-07-21 16:14               ` Mark Brown
@ 2023-07-21 16:18               ` Dan Carpenter
  2023-07-21 16:22                 ` Mark Brown
  2023-07-21 16:29                 ` Guenter Roeck
  1 sibling, 2 replies; 15+ messages in thread
From: Dan Carpenter @ 2023-07-21 16:18 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: Mark Brown, Marek Szyprowski, Greg Kroah-Hartman,
	Rafael J . Wysocki, linux-kernel, linux-rockchip, Heiko Stuebner,
	Andy Yan, Sascha Hauer

On Fri, Jul 21, 2023 at 09:01:03AM -0700, Guenter Roeck wrote:

> Dan, let me know if you don't have time to send a proper patch.
> I have one based on your suggestion prepared that I could send out
> if needed.

I sent it but, aww crud, I forgot to CC you.  Really, get_maintainer.pl
should add everyone from the tag section to the CC list...

https://lore.kernel.org/all/58f12a07-5f4b-4a8f-ab84-0a42d1908cb9@moroto.mountain/

regards,
dan carpenter


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [RFC PATCH 2/2] regmap: Reject fast_io regmap configurations with RBTREE and MAPLE caches
  2023-07-21 16:18               ` Dan Carpenter
@ 2023-07-21 16:22                 ` Mark Brown
  2023-07-21 16:29                 ` Guenter Roeck
  1 sibling, 0 replies; 15+ messages in thread
From: Mark Brown @ 2023-07-21 16:22 UTC (permalink / raw)
  To: Dan Carpenter
  Cc: Guenter Roeck, Marek Szyprowski, Greg Kroah-Hartman,
	Rafael J . Wysocki, linux-kernel, linux-rockchip, Heiko Stuebner,
	Andy Yan, Sascha Hauer

[-- Attachment #1: Type: text/plain, Size: 457 bytes --]

On Fri, Jul 21, 2023 at 07:18:03PM +0300, Dan Carpenter wrote:
> On Fri, Jul 21, 2023 at 09:01:03AM -0700, Guenter Roeck wrote:

> > Dan, let me know if you don't have time to send a proper patch.
> > I have one based on your suggestion prepared that I could send out
> > if needed.

> I sent it but, aww crud, I forgot to CC you.  Really, get_maintainer.pl
> should add everyone from the tag section to the CC list...

b4 prep --auto-to-cc does that IIRC!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [RFC PATCH 2/2] regmap: Reject fast_io regmap configurations with RBTREE and MAPLE caches
  2023-07-21 16:18               ` Dan Carpenter
  2023-07-21 16:22                 ` Mark Brown
@ 2023-07-21 16:29                 ` Guenter Roeck
  1 sibling, 0 replies; 15+ messages in thread
From: Guenter Roeck @ 2023-07-21 16:29 UTC (permalink / raw)
  To: Dan Carpenter
  Cc: Mark Brown, Marek Szyprowski, Greg Kroah-Hartman,
	Rafael J . Wysocki, linux-kernel, linux-rockchip, Heiko Stuebner,
	Andy Yan, Sascha Hauer

On 7/21/23 09:18, Dan Carpenter wrote:
> On Fri, Jul 21, 2023 at 09:01:03AM -0700, Guenter Roeck wrote:
> 
>> Dan, let me know if you don't have time to send a proper patch.
>> I have one based on your suggestion prepared that I could send out
>> if needed.
> 
> I sent it but, aww crud, I forgot to CC you.  Really, get_maintainer.pl
> should add everyone from the tag section to the CC list...
> 
> https://lore.kernel.org/all/58f12a07-5f4b-4a8f-ab84-0a42d1908cb9@moroto.mountain/
> 

No worries.

Thanks,
Guenter


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: (subset) [PATCH 1/2] regmap: Disable locking for RBTREE and MAPLE unit tests
  2023-07-20  3:28 [PATCH 1/2] regmap: Disable locking for RBTREE and MAPLE unit tests Guenter Roeck
  2023-07-20  3:28 ` [RFC PATCH 2/2] regmap: Reject fast_io regmap configurations with RBTREE and MAPLE caches Guenter Roeck
  2023-07-20 18:19 ` [PATCH 1/2] regmap: Disable locking for RBTREE and MAPLE unit tests Mark Brown
@ 2023-07-21 17:41 ` Mark Brown
  2 siblings, 0 replies; 15+ messages in thread
From: Mark Brown @ 2023-07-21 17:41 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: Greg Kroah-Hartman, Rafael J . Wysocki, linux-kernel

On Wed, 19 Jul 2023 20:28:47 -0700, Guenter Roeck wrote:
> REGCACHE_RBTREE and REGCACHE_MAPLE dynamically allocate memory
> for regmap operations. This is incompatible with spinlock based locking
> which is used for fast_io operations. Disable locking for the associated
> unit tests to avoid lockdep splashes.
> 
> 

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git for-next

Thanks!

[1/2] regmap: Disable locking for RBTREE and MAPLE unit tests
      commit: a9e26169cfda651802f88262a315146fbe4bc74c

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-07-21 17:41 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-20  3:28 [PATCH 1/2] regmap: Disable locking for RBTREE and MAPLE unit tests Guenter Roeck
2023-07-20  3:28 ` [RFC PATCH 2/2] regmap: Reject fast_io regmap configurations with RBTREE and MAPLE caches Guenter Roeck
     [not found]   ` <CGME20230721145342eucas1p12e658a54d36d985b2811e2c21f7810ee@eucas1p1.samsung.com>
2023-07-21 14:53     ` Marek Szyprowski
2023-07-21 15:03       ` Mark Brown
2023-07-21 15:07         ` Guenter Roeck
2023-07-21 15:13           ` Mark Brown
2023-07-21 16:01             ` Guenter Roeck
2023-07-21 16:14               ` Mark Brown
2023-07-21 16:16                 ` Guenter Roeck
2023-07-21 16:18               ` Dan Carpenter
2023-07-21 16:22                 ` Mark Brown
2023-07-21 16:29                 ` Guenter Roeck
2023-07-21 15:05       ` Guenter Roeck
2023-07-20 18:19 ` [PATCH 1/2] regmap: Disable locking for RBTREE and MAPLE unit tests Mark Brown
2023-07-21 17:41 ` (subset) " Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome