All of lore.kernel.org
 help / color / mirror / Atom feed
From: Linu Cherian <linuc.decode@gmail.com>
To: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
	Coresight ML <coresight@lists.linaro.org>,
	Mathieu Poirier <mathieu.poirier@linaro.org>,
	Linu Cherian <lcherian@marvell.com>,
	Mike Leach <mike.leach@linaro.org>
Subject: Re: [PATCH v4 0/2] Make sysFS functional on topologies with per core sink
Date: Sat, 7 Nov 2020 11:13:50 +0530	[thread overview]
Message-ID: <CAAHhmWg5VUj3PGUt7_X3k3bs4TnEudxnu9mBdNOZcgHmjotOSQ@mail.gmail.com> (raw)
In-Reply-To: <CAAHhmWhuC_AP8E329ycu=rQrJScaXs5BCpNZZXPC59u9j6_s2A@mail.gmail.com>

Hi Suzuki,

On Tue, Oct 27, 2020 at 6:43 PM Linu Cherian <linuc.decode@gmail.com> wrote:
>
> Hi Suzuki,
>
>
> On Mon, Oct 26, 2020 at 11:47 PM Suzuki K Poulose
> <suzuki.poulose@arm.com> wrote:
> >
> > Hi Linu,
> >
> > Thanks for the feedback. My responses inline.
> >
> > On 10/26/20 4:33 AM, Linu Cherian wrote:
> > > Hi Suzuki,
> > >
> > > On Mon, Oct 5, 2020 at 4:52 PM Suzuki K Poulose <suzuki.poulose@arm.com> wrote:
> > >>
> > >> Hi Linu,
> > >>
> > >> On 09/04/2020 03:41 AM, Linu Cherian wrote:
> > >>> This patch series tries to fix the sysfs breakage on topologies
> > >>> with per core sink.
> > >>>
> > >>> Changes since v3:
> > >>> - References to coresight_get_enabled_sink in perf interface
> > >>>     has been removed and marked deprecated as a new patch.
> > >>> - To avoid changes to coresight_find_sink for ease of maintenance,
> > >>>     search function specific to sysfs usage has been added.
> > >>> - Sysfs being the only user for coresight_get_enabled sink,
> > >>>     reset option is removed as well.
> > >>
> > >> Have you tried running perf with --per-thread option ? I believe
> > >> this will be impacted as well, as we choose a single sink at the
> > >> moment and this may not be reachable from the other CPUs, where
> > >> the event may be scheduled. Eventually loosing trace for the
> > >> duration where the task is scheduled on a different CPU.
> > >>
> > >> Please could you try this patch and see if helps ? I have lightly
> > >> tested this on a fast model.
> > >
> > > We are seeing some issues while testing with this patch.
> > > The issue is that, always buffer allocation for the sink happens to be on the
> > > first core in cpu mask and this doesn't match with the core on which
> > > event is started. Please see below for additional comments.
> >
> > Please could you clarify the "issues" ? How is the buffer allocation
> > a problem ?
>
> 1. Just realized that the issue that we are seeing with this patch is something
> specific to our test setup, since we had some custom patches that was required
> for supporting the secure trace buffer configuration for our silicon.
>
> And to be specific, our changeset was relying on the drvdata->etr_buf at the
> time of tmc_etr_sync_perf_buffer.
>
> In per core case during buffer allocation,
> the sink chosen is always for the first core, core 0.
> Let's consider the event started on say, core 4.
> So w.r.t drvdata of tmc_etr4,
> drvdata->etr_buf would get initialized while starting the event.
> And w.r.t drvdata of tmc_etr0,
> drvdata->etr_buf would be NULL here and our custom changeset
> was expecting to be initialized with the etr_buf.
>
> So will try to rebase our patches accordingly and test this again.
>

We are facing some issues while trying out perf. This doesn't appear
to be related to your patch though. Will share the details once we
do some initial analysis on it.

Thanks.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2020-11-07  5:45 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-04  2:41 [PATCH v4 0/2] Make sysFS functional on topologies with per core sink Linu Cherian
2020-09-04  2:41 ` [PATCH v4 1/2] coresight: etm: perf: Sink selection using sysfs is deprecated Linu Cherian
2020-09-04  2:41 ` [PATCH v4 2/2] coresight: Make sysFS functional on topologies with per core sink Linu Cherian
2020-09-14 19:36   ` Mathieu Poirier
2020-09-15  4:40     ` Linu Cherian
2020-10-05 11:27 ` [PATCH v4 0/2] " Suzuki K Poulose
2020-10-06 13:21   ` Linu Cherian
2020-10-06 16:12   ` Mathieu Poirier
2020-10-06 16:43     ` Suzuki K Poulose
2020-10-06 16:56       ` Mathieu Poirier
2020-10-26  4:33   ` Linu Cherian
2020-10-26 18:17     ` Suzuki K Poulose
2020-10-27 13:13       ` Linu Cherian
2020-11-07  5:43         ` Linu Cherian [this message]
2020-11-10 12:57           ` Linu Cherian
2020-11-10 14:57             ` Suzuki K Poulose
2020-11-12  8:57               ` Linu Cherian
2020-11-12  9:20                 ` 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=CAAHhmWg5VUj3PGUt7_X3k3bs4TnEudxnu9mBdNOZcgHmjotOSQ@mail.gmail.com \
    --to=linuc.decode@gmail.com \
    --cc=coresight@lists.linaro.org \
    --cc=lcherian@marvell.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=mathieu.poirier@linaro.org \
    --cc=mike.leach@linaro.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.