linux-next: manual merge of the drm tree with the drm-fixes tree

Mark Brown <[email protected]> Fri, 31 Jul 2026 15:01:26 +0100
Newsgroups org.kernel.vger.linux-next,org.freedesktop.lists.dri-devel,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
--MmhSx7XsVUWz7dfO
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi all,

Today's linux-next merge of the drm tree got a conflict in:

  drivers/gpu/drm/amd/pm/amdgpu_dpm.c

between commits:

  bb493058c35c8 ("drm/amd/pm: fix pptable use-after-free")
  a65f5179d3f0c ("drm/amd/pm: hide pp_table sysfs on APUs")

=66rom the drm-fixes tree and commit:

  b0ae60ea3f3f1 ("drm/amdgpu: Resolve VM through DRM PASID ownership")

=66rom the drm tree.

I fixed it up (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.

diff --combined drivers/gpu/drm/amd/pm/amdgpu_dpm.c
index e5e89294958a8,8f59ea12fe0ea..0000000000000
--- a/drivers/gpu/drm/amd/pm/amdgpu_dpm.c
+++ b/drivers/gpu/drm/amd/pm/amdgpu_dpm.c
@@@ -1183,13 -1183,6 +1183,16 @@@ int amdgpu_dpm_dispatch_task(struct amd
  	return ret;
  }
 =20
++<<<<<<< HEAD
 +static bool amdgpu_dpm_is_pp_table_allowed(struct amdgpu_device *adev)
 +{
 +	return !amdgpu_sriov_vf(adev) &&
 +	       !(adev->flags & AMD_IS_APU) &&
 +	       !adev->scpm_enabled;
 +}
 +
++=3D=3D=3D=3D=3D=3D=3D
++>>>>>>> drm/drm-next
  int amdgpu_dpm_get_pp_table(struct amdgpu_device *adev, char *table,
  			    size_t size)
  {
@@@ -1200,8 -1193,7 +1203,8 @@@
  	if ((!table && size) || (table && !size))
  		return -EINVAL;
 =20
 -	if (amdgpu_sriov_vf(adev) || !pp_funcs->get_pp_table || adev->scpm_enabl=
ed)
 +	if (!amdgpu_dpm_is_pp_table_allowed(adev) ||
 +	    !pp_funcs->get_pp_table)
  		return -EOPNOTSUPP;
 =20
  	mutex_lock(&adev->pm.mutex);
@@@ -1725,8 -1717,7 +1728,8 @@@ int amdgpu_dpm_set_pp_table(struct amdg
  	if (!buf || !size)
  		return -EINVAL;
 =20
 -	if (amdgpu_sriov_vf(adev) || !pp_funcs->set_pp_table || adev->scpm_enabl=
ed)
 +	if (!amdgpu_dpm_is_pp_table_allowed(adev) ||
 +	    !pp_funcs->set_pp_table)
  		return -EOPNOTSUPP;
 =20
  	mutex_lock(&adev->pm.mutex);
@@@ -2133,10 -2124,3 +2136,3 @@@ ssize_t amdgpu_dpm_get_xcp_metrics(stru
 =20
  	return ret;
  }
-=20
- const struct ras_smu_drv *amdgpu_dpm_get_ras_smu_driver(struct amdgpu_dev=
ice *adev)
- {
- 	void *pp_handle =3D adev->powerplay.pp_handle;
-=20
- 	return smu_get_ras_smu_driver(pp_handle);
- }

--MmhSx7XsVUWz7dfO
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmpsqrUACgkQJNaLcl1U
h9AMxAf/Wcuf8AqPNSGLyMiyKfG89DM5CGWJGm+B6uQkSsnaIdnpxrGLjxMwdVvW
slxKYePiTrLDsqnPjsf/eDiT3X7RS4Z11cISyORRqBXhKylIk4q3W/9Z14OcJk2M
c8SypC79XB0YNUNIqFIAJBOFhLlLfdf8oHDdzOjoOyVon3aoOY1yxCM3BLoSs9Hx
uHohlLtUpcyN3Me1nyBEKXRcp7U4RGZDThHOYrG7suWP5KjI2KZno9hr9C6nWrYd
PJqQHZZGtm8zQp5cCtDyHHXhZz1NiQxTppiApchyKqDXD6lmpZ/sjRgWFmMVsUEG
wRaNRutn6OEpXyS1LUJNlw6lka+nmQ==
=b5wi
-----END PGP SIGNATURE-----

--MmhSx7XsVUWz7dfO--