public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: stable@vger.kernel.org
Cc: jetlan9@163.com, Sasha Levin <sashal@kernel.org>
Subject: Re: [PATCH 6.12.y] drm/amdgpu: Replace Mutex with Spinlock for RLCG register access to avoid Priority Inversion in SRIOV
Date: Thu, 10 Jul 2025 11:27:41 -0400	[thread overview]
Message-ID: <20250709081019-080335c8604d04c8@stable.kernel.org> (raw)
In-Reply-To: <20250709115128.1263-1-jetlan9@163.com>

[ Sasha's backport helper bot ]

Hi,

✅ All tests passed successfully. No issues detected.
No action required from the submitter.

The upstream commit SHA1 provided is correct: dc0297f3198bd60108ccbd167ee5d9fa4af31ed0

WARNING: Author mismatch between patch and upstream commit:
Backport author: jetlan9@163.com
Commit author: Srinivasan Shanmugam<srinivasan.shanmugam@amd.com>

Status in newer kernel trees:
6.15.y | Present (exact SHA1)

Note: The patch differs from the upstream commit:
---
1:  dc0297f3198bd ! 1:  3da0142a2c955 drm/amdgpu: Replace Mutex with Spinlock for RLCG register access to avoid Priority Inversion in SRIOV
    @@ Metadata
      ## Commit message ##
         drm/amdgpu: Replace Mutex with Spinlock for RLCG register access to avoid Priority Inversion in SRIOV
     
    +    [ Upstream commit dc0297f3198bd60108ccbd167ee5d9fa4af31ed0 ]
    +
         RLCG Register Access is a way for virtual functions to safely access GPU
         registers in a virtualized environment., including TLB flushes and
         register reads. When multiple threads or VFs try to access the same
    @@ Commit message
         Suggested-by: Alex Deucher <alexander.deucher@amd.com>
         Reviewed-by: Christian König <christian.koenig@amd.com>
         Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    +    [ Minor context change fixed. ]
    +    Signed-off-by: Wenshan Lan <jetlan9@163.com>
     
      ## drivers/gpu/drm/amd/amdgpu/amdgpu_device.c ##
     @@ drivers/gpu/drm/amd/amdgpu/amdgpu_device.c: int amdgpu_device_init(struct amdgpu_device *adev,
    @@ drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h: struct amdgpu_virt {
     -	struct mutex rlcg_reg_lock;
     +	/* Spinlock to protect access to the RLCG register interface */
     +	spinlock_t rlcg_reg_lock;
    + };
      
    - 	union amd_sriov_ras_caps ras_en_caps;
    - 	union amd_sriov_ras_caps ras_telemetry_en_caps;
    + struct amdgpu_video_codec_info;
---

Results of testing on various branches:

| Branch                    | Patch Apply | Build Test |
|---------------------------|-------------|------------|
| stable/linux-6.12.y       |  Success    |  Success   |

      reply	other threads:[~2025-07-10 15:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-09 11:51 [PATCH 6.12.y] drm/amdgpu: Replace Mutex with Spinlock for RLCG register access to avoid Priority Inversion in SRIOV jetlan9
2025-07-10 15:27 ` Sasha Levin [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=20250709081019-080335c8604d04c8@stable.kernel.org \
    --to=sashal@kernel.org \
    --cc=jetlan9@163.com \
    --cc=stable@vger.kernel.org \
    /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