public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* Mark dGPUs as devices
@ 2023-07-12 21:51 Limonciello, Mario
  2023-07-16  9:26 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Limonciello, Mario @ 2023-07-12 21:51 UTC (permalink / raw)
  To: stable@vger.kernel.org; +Cc: Pananchikkal, Renjith, Gong, Richard

Hi,

A problem exists where dGPUs with type-C ports are considered power 
supplies that power the system.
This leads to poor performance of the dGPU because graphics drivers like 
amdgpu use power_supply_is_system_supplied() to decide how to configure 
the dGPU.
This has been fixed in 6.5-rc1 by marking dGPUs as "DEVICE".

The logic to fix what to do when DEVICE is encountered was fixed in 
6.4-rc4 and already backported to stable:
95339f40a8b6 ("power: supply: Fix logic checking if system is running 
from battery")

So to wrap up the fix in stable kernels can you please backport:

6.4.y:
a7fbfd44c020 ("usb: typec: ucsi: Mark dGPUs as DEVICE scope")

6.1.y:
f510b0a3565b ("i2c: nvidia-gpu: Add ACPI property to align with 
device-tree")
430b38764fbb ("i2c: nvidia-gpu: Remove ccgx,firmware-build property")
a7fbfd44c020 ("usb: typec: ucsi: Mark dGPUs as DEVICE scope")

Thanks!


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

* Re: Mark dGPUs as devices
  2023-07-12 21:51 Mark dGPUs as devices Limonciello, Mario
@ 2023-07-16  9:26 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2023-07-16  9:26 UTC (permalink / raw)
  To: Limonciello, Mario
  Cc: stable@vger.kernel.org, Pananchikkal, Renjith, Gong, Richard

On Wed, Jul 12, 2023 at 04:51:24PM -0500, Limonciello, Mario wrote:
> Hi,
> 
> A problem exists where dGPUs with type-C ports are considered power supplies
> that power the system.
> This leads to poor performance of the dGPU because graphics drivers like
> amdgpu use power_supply_is_system_supplied() to decide how to configure the
> dGPU.
> This has been fixed in 6.5-rc1 by marking dGPUs as "DEVICE".
> 
> The logic to fix what to do when DEVICE is encountered was fixed in 6.4-rc4
> and already backported to stable:
> 95339f40a8b6 ("power: supply: Fix logic checking if system is running from
> battery")
> 
> So to wrap up the fix in stable kernels can you please backport:
> 
> 6.4.y:
> a7fbfd44c020 ("usb: typec: ucsi: Mark dGPUs as DEVICE scope")
> 
> 6.1.y:
> f510b0a3565b ("i2c: nvidia-gpu: Add ACPI property to align with
> device-tree")
> 430b38764fbb ("i2c: nvidia-gpu: Remove ccgx,firmware-build property")
> a7fbfd44c020 ("usb: typec: ucsi: Mark dGPUs as DEVICE scope")

All now qeueud up, thanks.

greg k-h

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

end of thread, other threads:[~2023-07-16  9:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-12 21:51 Mark dGPUs as devices Limonciello, Mario
2023-07-16  9:26 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox