stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] Revert "iommu/amd: Fix performance counter initialization"
       [not found]   ` <alpine.LNX.2.20.13.2103031648190.15170@monopod.intra.ispras.ru>
@ 2021-03-18  9:20     ` Paul Menzel
  2021-04-07 10:04       ` Joerg Roedel
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Menzel @ 2021-03-18  9:20 UTC (permalink / raw)
  To: Alexander Monakov, Suravee Suthikulpanit
  Cc: Joerg Roedel, Tj, Shuah Khan, David Coe, iommu, stable, Greg KH,
	Sasha Levin

Dear Jörg, dear Suravee,


Am 03.03.21 um 15:10 schrieb Alexander Monakov:
> On Wed, 3 Mar 2021, Suravee Suthikulpanit wrote:
> 
>>> Additionally, alternative proposed solutions [1] were not considered or
>>> discussed.
>>>
>>> [1]:https://lore.kernel.org/linux-iommu/alpine.LNX.2.20.13.2006030935570.3181@monopod.intra.ispras.ru/
>>
>> This check has been introduced early on to detect a HW issue for
>> certain platforms in the past, where the performance counters are not
>> accessible and would result in silent failure when try to use the
>> counters. This is considered legacy code, and can be removed if we
>> decide to no longer provide sanity check for such case.
> 
> Which platforms? There is no such information in the code or the commit
> messages that introduced this.
> 
> According to AMD's documentation, presence of performance counters is
> indicated by "PCSup" bit in the "EFR" register. I don't think the driver
> should second-guess that. If there were platforms where the CPU or the
> firmware lied to the OS (EFR[PCSup] was 1, but counters were not present),
> I think that should have been handled in a more explicit manner, e.g.
> via matching broken CPUs by cpuid.

Suravee, could you please answer the questions?

Jörg, I know you are probably busy, but the patch was applied to the 
stable series (v5.11.7). There are still too many question open 
regarding the patch, and Suravee has not yet addressed the comments. 
It’d be great, if you could revert it.


Kind regards,

Paul

Could you please

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Revert "iommu/amd: Fix performance counter initialization"
  2021-03-18  9:20     ` [PATCH] Revert "iommu/amd: Fix performance counter initialization" Paul Menzel
@ 2021-04-07 10:04       ` Joerg Roedel
  0 siblings, 0 replies; 2+ messages in thread
From: Joerg Roedel @ 2021-04-07 10:04 UTC (permalink / raw)
  To: Paul Menzel
  Cc: Alexander Monakov, Suravee Suthikulpanit, Tj, Shuah Khan,
	David Coe, iommu, stable, Greg KH, Sasha Levin

Hi Paul,

On Thu, Mar 18, 2021 at 10:20:16AM +0100, Paul Menzel wrote:
> Jörg, I know you are probably busy, but the patch was applied to the stable
> series (v5.11.7). There are still too many question open regarding the
> patch, and Suravee has not yet addressed the comments. It’d be great, if you
> could revert it.

We are currently discussing the next steps here. Maybe the retry logic
can be removed entirely.

Regards,

	Joerg

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-07 10:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20210303121156.76621-1-pmenzel@molgen.mpg.de>
     [not found] ` <a803de32-eec8-a0b1-69e6-43259ba5c656@amd.com>
     [not found]   ` <alpine.LNX.2.20.13.2103031648190.15170@monopod.intra.ispras.ru>
2021-03-18  9:20     ` [PATCH] Revert "iommu/amd: Fix performance counter initialization" Paul Menzel
2021-04-07 10:04       ` Joerg Roedel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).