public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
From: Will Deacon <will@kernel•org>
To: Stephen Rothwell <sfr@canb•auug.org.au>
Cc: Mathieu Poirier <mathieu.poirier@linaro•org>,
	Catalin Marinas <catalin.marinas@arm•com>,
	Anshuman Khandual <anshuman.khandual@arm•com>,
	Linux Kernel Mailing List <linux-kernel@vger•kernel.org>,
	Linux Next Mailing List <linux-next@vger•kernel.org>,
	Suzuki K Poulose <suzuki.poulose@arm•com>
Subject: Re: linux-next: manual merge of the coresight tree with the arm-perf, arm64 trees
Date: Mon, 21 Aug 2023 12:33:45 +0100	[thread overview]
Message-ID: <20230821113345.GD19469@willie-the-truck> (raw)
In-Reply-To: <20230821144030.52ab1357@canb.auug.org.au>

Hi Stephen,

On Mon, Aug 21, 2023 at 02:40:30PM +1000, Stephen Rothwell wrote:
> Today's linux-next merge of the coresight tree got a conflict in:
> 
>   drivers/hwtracing/coresight/coresight-trbe.c
> 
> between commit:
> 
>   e926b8e9eb40 ("coresight: trbe: Add a representative coresight_platform_data for TRBE")
> 
> from the arm-perf, arm64 trees and commit:
> 
>   39744738a67d ("coresight: trbe: Allocate platform data per device")
> 
> from the coresight tree.
> 
> I fixed it up (I think - see below) and can carry the fix as necessary.
> This is now fixed as far as linux-next is concerned, but any non trivial
> conflicts should be mentioned to your upstream maintainer when your tree
> is submitted for merging.  You may also want to consider cooperating
> with the maintainer of the conflicting tree to minimise any particularly
> complex conflicts.
> 
> -- 
> Cheers,
> Stephen Rothwell
> 
> diff --cc drivers/hwtracing/coresight/coresight-trbe.c
> index 9c59e2652b20,e20c1c6acc73..000000000000
> --- a/drivers/hwtracing/coresight/coresight-trbe.c
> +++ b/drivers/hwtracing/coresight/coresight-trbe.c
> @@@ -1244,6 -1254,10 +1254,21 @@@ static void arm_trbe_register_coresight
>   	if (!desc.name)
>   		goto cpu_clear;
>   
>  -	desc.pdata = coresight_get_platform_data(dev);
> ++	/*
> ++	 * TRBE coresight devices do not need regular connections
> ++	 * information, as the paths get built between all percpu
> ++	 * source and their respective percpu sink devices. Though
> ++	 * coresight_register() expect device connections via the
> ++	 * platform_data, which TRBE devices do not have. As they
> ++	 * are not real ACPI devices, coresight_get_platform_data()
> ++	 * ends up failing. Instead let's allocate a dummy zeroed
> ++	 * coresight_platform_data structure and assign that back
> ++	 * into the device for that purpose.
> ++	 */
> ++	desc.pdata = devm_kzalloc(dev, sizeof(*desc.pdata), GFP_KERNEL);
> + 	if (IS_ERR(desc.pdata))
> + 		goto cpu_clear;

Although this is what I would've done too, I think there's a deeper
question as to whether the per-device pdata allocation is even needed [1].
So I'll drop the coresight/ changes from my tree(s) while this is worked
out.

Cheers,

Will

[1] https://lore.kernel.org/lkml/20230821112851.GC19469@willie-the-truck/T/#mc78e19ae31612a6b5947b83180ca64fd223c351e

      reply	other threads:[~2023-08-21 11:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-21  4:40 linux-next: manual merge of the coresight tree with the arm-perf, arm64 trees Stephen Rothwell
2023-08-21 11:33 ` Will Deacon [this message]

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=20230821113345.GD19469@willie-the-truck \
    --to=will@kernel$(echo .)org \
    --cc=anshuman.khandual@arm$(echo .)com \
    --cc=catalin.marinas@arm$(echo .)com \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-next@vger$(echo .)kernel.org \
    --cc=mathieu.poirier@linaro$(echo .)org \
    --cc=sfr@canb$(echo .)auug.org.au \
    --cc=suzuki.poulose@arm$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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