* Re: [v8 3/3] PCI: amd-mdb: Add AMD MDB Root Port driver
[not found] <20250206202654.GA1000968@bhelgaas>
@ 2025-02-07 6:39 ` Markus Elfring
2025-02-07 6:59 ` Manivannan Sadhasivam
2025-02-11 23:16 ` Bjorn Helgaas
0 siblings, 2 replies; 5+ messages in thread
From: Markus Elfring @ 2025-02-07 6:39 UTC (permalink / raw)
To: Bjorn Helgaas, Thippeswamy Havalige, linux-pci
Cc: kernel-janitors, LKML, devicetree, Rob Herring,
Bharat Kumar Gogada, Bjorn Helgaas, Conor Dooley, Jingoo Han,
Krzysztof Kozlowski, Krzysztof Wilczyński, Lorenzo Pieralisi,
Manivannan Sadhasivam, Michal Simek, Peter Zijlstra
> I don't *really* like guard() anyway because it's kind of magic in
> that the unlock doesn't actually appear in the code, and it's kind of
> hard to unravel what guard() is and how it works. But I guess that's
> mostly because it's just a new idiom that takes time to internalize.
How will the circumstances evolve further for growing applications of
scope-based resource management?
Regards,
Markus
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [v8 3/3] PCI: amd-mdb: Add AMD MDB Root Port driver
2025-02-07 6:39 ` [v8 3/3] PCI: amd-mdb: Add AMD MDB Root Port driver Markus Elfring
@ 2025-02-07 6:59 ` Manivannan Sadhasivam
2025-02-07 9:45 ` Markus Elfring
2025-02-11 23:16 ` Bjorn Helgaas
1 sibling, 1 reply; 5+ messages in thread
From: Manivannan Sadhasivam @ 2025-02-07 6:59 UTC (permalink / raw)
To: Markus Elfring, Thippeswamy Havalige, Bjorn Helgaas
Cc: linux-pci, kernel-janitors, LKML, devicetree, Rob Herring,
Bharat Kumar Gogada, Bjorn Helgaas, Conor Dooley, Jingoo Han,
Krzysztof Kozlowski, Krzysztof Wilczyński, Lorenzo Pieralisi,
Michal Simek, Peter Zijlstra
On Fri, Feb 07, 2025 at 07:39:03AM +0100, Markus Elfring wrote:
> > I don't *really* like guard() anyway because it's kind of magic in
> > that the unlock doesn't actually appear in the code, and it's kind of
> > hard to unravel what guard() is and how it works. But I guess that's
> > mostly because it's just a new idiom that takes time to internalize.
> How will the circumstances evolve further for growing applications of
> scope-based resource management?
>
Please ignore the comments from Markus.
Reference: https://lkml.org/lkml/2024/5/20/724
- Mani
--
மணிவண்ணன் சதாசிவம்
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [v8 3/3] PCI: amd-mdb: Add AMD MDB Root Port driver
2025-02-07 6:59 ` Manivannan Sadhasivam
@ 2025-02-07 9:45 ` Markus Elfring
0 siblings, 0 replies; 5+ messages in thread
From: Markus Elfring @ 2025-02-07 9:45 UTC (permalink / raw)
To: Manivannan Sadhasivam, Thippeswamy Havalige, Bjorn Helgaas,
linux-pci
Cc: kernel-janitors, LKML, devicetree, Bharat Kumar Gogada,
Bjorn Helgaas, Conor Dooley, Jingoo Han, Krzysztof Kozlowski,
Krzysztof Wilczyński, Lorenzo Pieralisi, Michal Simek,
Peter Zijlstra, Rob Herring
> Please ignore the comments from Markus.
I hope that patch review and software development discussions can become more constructive again
also for related topics.
Regards,
Markus
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [v8 3/3] PCI: amd-mdb: Add AMD MDB Root Port driver
2025-02-07 6:39 ` [v8 3/3] PCI: amd-mdb: Add AMD MDB Root Port driver Markus Elfring
2025-02-07 6:59 ` Manivannan Sadhasivam
@ 2025-02-11 23:16 ` Bjorn Helgaas
2025-02-12 5:36 ` Krzysztof Kozlowski
1 sibling, 1 reply; 5+ messages in thread
From: Bjorn Helgaas @ 2025-02-11 23:16 UTC (permalink / raw)
To: Markus Elfring
Cc: Thippeswamy Havalige, linux-pci, kernel-janitors, LKML,
devicetree, Rob Herring, Bharat Kumar Gogada, Bjorn Helgaas,
Conor Dooley, Jingoo Han, Krzysztof Kozlowski,
Krzysztof Wilczyński, Lorenzo Pieralisi,
Manivannan Sadhasivam, Michal Simek, Peter Zijlstra
On Fri, Feb 07, 2025 at 07:39:03AM +0100, Markus Elfring wrote:
> > I don't *really* like guard() anyway because it's kind of magic in
> > that the unlock doesn't actually appear in the code, and it's kind of
> > hard to unravel what guard() is and how it works. But I guess that's
> > mostly because it's just a new idiom that takes time to internalize.
>
> How will the circumstances evolve further for growing applications of
> scope-based resource management?
I'm sure it will evolve to become the typical style. Right now, it's
not quite there yet, as evidenced by the fact that the only reference
to them in Documentation/ is this somewhat ambivalent note:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/maintainer-netdev.rst?id=v6.13#n380
We do already have a few uses of guard() and scoped_guard() in
drivers/pci, and I don't really object to more, including in this
amd-mdb case. Whatever we do, I *would* want to do it consistently
throughout the file.
Bjorn
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [v8 3/3] PCI: amd-mdb: Add AMD MDB Root Port driver
2025-02-11 23:16 ` Bjorn Helgaas
@ 2025-02-12 5:36 ` Krzysztof Kozlowski
0 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2025-02-12 5:36 UTC (permalink / raw)
To: Bjorn Helgaas
Cc: Thippeswamy Havalige, linux-pci, kernel-janitors, LKML,
devicetree, Rob Herring, Bharat Kumar Gogada, Bjorn Helgaas,
Conor Dooley, Jingoo Han, Krzysztof Kozlowski,
Krzysztof Wilczyński, Lorenzo Pieralisi,
Manivannan Sadhasivam, Michal Simek, Peter Zijlstra
On 12/02/2025 00:16, Bjorn Helgaas wrote:
> On Fri, Feb 07, 2025 at 07:39:03AM +0100, Markus Elfring wrote:
>>> I don't *really* like guard() anyway because it's kind of magic in
>>> that the unlock doesn't actually appear in the code, and it's kind of
>>> hard to unravel what guard() is and how it works. But I guess that's
>>> mostly because it's just a new idiom that takes time to internalize.
>>
>> How will the circumstances evolve further for growing applications of
>> scope-based resource management?
>
> I'm sure it will evolve to become the typical style. Right now, it's
> not quite there yet, as evidenced by the fact that the only reference
> to them in Documentation/ is this somewhat ambivalent note:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/maintainer-netdev.rst?id=v6.13#n380
>
> We do already have a few uses of guard() and scoped_guard() in
> drivers/pci, and I don't really object to more, including in this
> amd-mdb case. Whatever we do, I *would* want to do it consistently
> throughout the file.
Bjorn,
There is little point in discussing anything with Markus. It's a person
known to waste our time.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-02-12 5:36 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20250206202654.GA1000968@bhelgaas>
2025-02-07 6:39 ` [v8 3/3] PCI: amd-mdb: Add AMD MDB Root Port driver Markus Elfring
2025-02-07 6:59 ` Manivannan Sadhasivam
2025-02-07 9:45 ` Markus Elfring
2025-02-11 23:16 ` Bjorn Helgaas
2025-02-12 5:36 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox