From: Yeoreum Yun <yeoreum.yun@arm.com>
To: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: mike.leach@linaro.org, james.clark@linaro.org,
alexander.shishkin@linux.intel.com, bigeasy@linutronix.de,
clrkwllms@kernel.org, rostedt@goodmis.org,
coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-rt-devel@lists.linux.dev
Subject: Re: [PATCH v6 2/9] coresight-etm4x: change etmv4_drvdata spinlock type to raw_spinlock_t
Date: Thu, 6 Mar 2025 14:37:36 +0000 [thread overview]
Message-ID: <Z8mzMI2xGm3qX9an@e129823.arm.com> (raw)
In-Reply-To: <bd9040a2-b03a-4e4a-96a9-27f6a8db1d48@arm.com>
Hi Suzuki,
> > diff --git a/drivers/hwtracing/coresight/coresight-config.c b/drivers/hwtracing/coresight/coresight-config.c
> > index 4723bf7402a2..4f72ae71b696 100644
> > --- a/drivers/hwtracing/coresight/coresight-config.c
> > +++ b/drivers/hwtracing/coresight/coresight-config.c
> > @@ -76,10 +76,10 @@ static int cscfg_set_on_enable(struct cscfg_feature_csdev *feat_csdev)
> > unsigned long flags;
> > int i;
> > - spin_lock_irqsave(feat_csdev->drv_spinlock, flags);
> > + raw_spin_lock_irqsave(feat_csdev->drv_spinlock, flags);
> > for (i = 0; i < feat_csdev->nr_regs; i++)
> > cscfg_set_reg(&feat_csdev->regs_csdev[i]);
> > - spin_unlock_irqrestore(feat_csdev->drv_spinlock, flags);
> > + raw_spin_unlock_irqrestore(feat_csdev->drv_spinlock, flags);
> > dev_dbg(&feat_csdev->csdev->dev, "Feature %s: %s",
> > feat_csdev->feat_desc->name, "set on enable");
> > return 0;
> > @@ -91,10 +91,10 @@ static void cscfg_save_on_disable(struct cscfg_feature_csdev *feat_csdev)
> > unsigned long flags;
> > int i;
> > - spin_lock_irqsave(feat_csdev->drv_spinlock, flags);
> > + raw_spin_lock_irqsave(feat_csdev->drv_spinlock, flags);
> > for (i = 0; i < feat_csdev->nr_regs; i++)
> > cscfg_save_reg(&feat_csdev->regs_csdev[i]);
> > - spin_unlock_irqrestore(feat_csdev->drv_spinlock, flags);
> > + raw_spin_unlock_irqrestore(feat_csdev->drv_spinlock, flags);
> > dev_dbg(&feat_csdev->csdev->dev, "Feature %s: %s",
> > feat_csdev->feat_desc->name, "save on disable");
> > }
> > diff --git a/drivers/hwtracing/coresight/coresight-config.h b/drivers/hwtracing/coresight/coresight-config.h
> > index 6ba013975741..b9ebc9fcfb7f 100644
> > --- a/drivers/hwtracing/coresight/coresight-config.h
> > +++ b/drivers/hwtracing/coresight/coresight-config.h
> > @@ -206,7 +206,7 @@ struct cscfg_feature_csdev {
> > const struct cscfg_feature_desc *feat_desc;
> > struct coresight_device *csdev;
> > struct list_head node;
> > - spinlock_t *drv_spinlock;
> > + raw_spinlock_t *drv_spinlock;
> > int nr_params;
> > struct cscfg_parameter_csdev *params_csdev;
> > int nr_regs;
>
> The changes above seems to be unrelated etm4x and not called for in the
> patch description. Is there any reason why this cannot be separated from
> etm4x changes ?
>
> Suzuki
This is change for cscfg_csdev_enable_active_config() function
which used in etm4x's enable path.
currently, the user of this function is only etm4x driver,
I've included these change in etm4x patch together
to solving the issue in etm4x driver.
Though it seems unrelated to solve the issue happening in etm4x,
I think it seems good to put together.
Any thought?
Thanks!
next prev parent reply other threads:[~2025-03-06 14:37 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-06 12:11 Yeoreum Yun
2025-03-06 12:11 ` [PATCH v6 1/9] coresight: change coresight_device lock type to raw_spinlock_t Yeoreum Yun
2025-03-06 12:11 ` [PATCH v6 2/9] coresight-etm4x: change etmv4_drvdata spinlock " Yeoreum Yun
2025-03-06 14:19 ` Suzuki K Poulose
2025-03-06 14:37 ` Yeoreum Yun [this message]
2025-03-06 12:11 ` [PATCH v6 3/9] coresight: change coresight_trace_id_map's lock " Yeoreum Yun
2025-03-06 12:11 ` [PATCH v6 4/9] coresight-cti: change cti_drvdata spinlock's " Yeoreum Yun
2025-03-06 12:11 ` [PATCH v6 5/9] coresight-etb10: change etb_drvdata " Yeoreum Yun
2025-03-06 12:11 ` [PATCH v6 6/9] coresight-funnel: change funnel_drvdata " Yeoreum Yun
2025-03-06 12:11 ` [PATCH v6 7/9] coresight-replicator: change replicator_drvdata " Yeoreum Yun
2025-03-06 12:11 ` [PATCH v6 8/9] coresight-tmc: change tmc_drvdata " Yeoreum Yun
2025-03-06 12:11 ` [PATCH v6 9/9] coresight/ultrasoc: change smb_drv_data " Yeoreum Yun
2025-03-10 11:32 ` [PATCH v6 0/9] coresight: change some driver' spinlock " Suzuki K Poulose
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z8mzMI2xGm3qX9an@e129823.arm.com \
--to=yeoreum.yun@arm.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=bigeasy@linutronix.de \
--cc=clrkwllms@kernel.org \
--cc=coresight@lists.linaro.org \
--cc=james.clark@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-devel@lists.linux.dev \
--cc=mike.leach@linaro.org \
--cc=rostedt@goodmis.org \
--cc=suzuki.poulose@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®