mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: 林濬哲 <m18667909625@163.com>
Cc: linux-kernel@vger.kernel.org, x86@kernel.org,
	linux-api@vger.kernel.org, luto@kernel.org, tglx@kernel.org,
	mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com,
	hpa@zytor.com
Subject: Re: [PATCH] kernel: add system_energy_efficiency syscall (nr 337)
Date: Sun, 20 Sep 2026 12:20:09 +0200	[thread overview]
Message-ID: <2026092041-foster-eradicate-822b@gregkh> (raw)
In-Reply-To: <20260920100714.46206-1-m18667909625@163.com>

On Sun, Sep 20, 2026 at 06:07:13PM +0800, 林濬哲 wrote:
> Add a new syscall that reports GPU presence and system-wide
> energy information:
> 
> - mode 0: returns the number of display devices found on the PCI bus
> - mode 1: returns an energy efficiency metric; prefers the real GPU
>   power reported through hwmon, falls back to runtime PM status
>   weights, plus the online CPU count
> - mode 2: returns the real-time GPU power in milliwatts read from
>   the hwmon power1_input channel exposed by GPU drivers
>   (amdgpu/nouveau/radeon/nvidia); returns 0 if not reported

Cute, but you missed a bunch of other gpu drivers, AND all of this can
be done today from userspace, no syscall is needed, right?

thanks,

greg k-h

  reply	other threads:[~2026-09-20 10:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-20 10:07 林濬哲
2026-09-20 10:20 ` Greg KH [this message]
2026-09-20 10:59 ` 林濬哲

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=2026092041-foster-eradicate-822b@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=hpa@zytor.com \
    --cc=linux-api@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luto@kernel.org \
    --cc=m18667909625@163.com \
    --cc=mingo@redhat.com \
    --cc=tglx@kernel.org \
    --cc=x86@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

all inboxes | Powered by JetHome®