From: Markus Elfring <Markus.Elfring@web.de>
To: Chen Zide <zide.chen@intel.com>,
linux-perf-users@vger.kernel.org,
Adrian Hunter <adrian.hunter@intel.com>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Andi Kleen <ak@linux.intel.com>,
Arnaldo Carvalho de Melo <acme@kernel.org>,
Dapeng Mi <dapeng1.mi@linux.intel.com>,
Ian Rogers <irogers@google.com>, Ingo Molnar <mingo@redhat.com>,
Namhyung Kim <namhyung@kernel.org>,
Peter Zijlstra <peterz@infradead.org>,
Stephane Eranian <eranian@google.com>
Cc: lkp@intel.com, LKML <linux-kernel@vger.kernel.org>,
kernel-janitors@vger.kernel.org,
Thomas Falcon <thomas.falcon@intel.com>,
Xudong Hao <xudong.hao@intel.com>
Subject: Re: [V2] perf/x86/intel/uncore: Fix iounmap() leak on global_init failure
Date: Fri, 16 Jan 2026 18:30:18 +0100 [thread overview]
Message-ID: <00565b33-c47d-4529-9590-56f93ab45d10@web.de> (raw)
In-Reply-To: <092c955c-4f27-44ed-9e88-dc721e1d2959@intel.com>
…
>> 3. Which text part of your change description does contain “orders to
>> the codebase to change its behaviour”?
>
> OK, I see your point. Yes, it's good to add one sentence to describe
> what the patches does.
I became curious somehow if further contributors would be willing to care
a bit more also for this wording requirement.
> But I guess this patch is simple enough.
But it seems that several technical details triggered special communication challenges.
> I don’t think this change alone justifies a separate patch, as it would
> add review overhead without providing much practical benefit.
Will any other contributors dare to add related insights?
>> The corresponding change recombination can occasionally become more interesting
>> for selected development ideas.
>
>
> Are you suggesting putting this into a separate patch?
Yes.
I propose a stricter distinction between a “quick” fix and subsequent refinements
at the discussed source code places.
> My impression is that the change is simple and closely related, though I
> may be missing something. I understand others may see it differently.
It seems that we are struggling according to recurring factors of change resistance.
> @@ -273,21 +274,23 @@ static int __parse_discovery_table(struct
> uncore_discovery_domain *domain,
>
> /* Read Global Discovery State */
> memcpy_fromio(&global, io_addr, sizeof(struct
> uncore_global_discovery));
> + iounmap(io_addr);
> +
> if (uncore_discovery_invalid_unit(global)) {
> pr_info("Invalid Global Discovery State: 0x%llx 0x%llx
> 0x%llx\n",
> global.table1, global.ctl, global.table3);
> - iounmap(io_addr);
> return -EINVAL;
> }
> - iounmap(io_addr);
Regards,
Markus
next prev parent reply other threads:[~2026-01-16 17:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-14 19:38 [PATCH V2] " Zide Chen
2026-01-14 20:57 ` Markus Elfring
2026-01-15 0:57 ` Chen, Zide
2026-01-15 9:01 ` [V2] " Markus Elfring
2026-01-15 21:03 ` Chen, Zide
2026-01-16 0:57 ` Mi, Dapeng
2026-01-16 7:15 ` Markus Elfring
2026-01-16 16:55 ` Chen, Zide
2026-01-16 17:30 ` Markus Elfring [this message]
2026-01-19 0:48 ` [PATCH V2] " Mi, Dapeng
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=00565b33-c47d-4529-9590-56f93ab45d10@web.de \
--to=markus.elfring@web.de \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=ak@linux.intel.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=dapeng1.mi@linux.intel.com \
--cc=eranian@google.com \
--cc=irogers@google.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=lkp@intel.com \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=peterz@infradead.org \
--cc=thomas.falcon@intel.com \
--cc=xudong.hao@intel.com \
--cc=zide.chen@intel.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®