Re: [Intel-gfx] [PATCH v6 6/7] drm/i915/gt: Create per-tile RPS sysfs interfaces

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 18.03.2022 03:10, Andi Shyti wrote:
Now tiles have their own sysfs interfaces under the gt/
directory. Because RPS is a property that can be configured on a
tile basis, then each tile should have its own interface

The new sysfs structure will have a similar layout for the 4 tile
case:

/sys/.../card0
          ├── gt
          │   ├── gt0
          │   │   ├── id
          │   │   ├── rc6_enable
          │   │   ├── rc6_residency_ms
          │   │   ├── rps_act_freq_mhz
          │   │   ├── rps_boost_freq_mhz
          │   │   ├── rps_cur_freq_mhz
          │   │   ├── rps_max_freq_mhz
          │   │   ├── rps_min_freq_mhz
          │   │   ├── rps_RP0_freq_mhz
          │   │   ├── rps_RP1_freq_mhz
          │   │   └── rps_RPn_freq_mhz
          .   .
          .   .
          .   .
          │   └── gtN
          │       ├── id
          │       ├── rc6_enable
          │       ├── rc6_residency_ms
          │       ├── rps_act_freq_mhz
          │       ├── rps_boost_freq_mhz
          │       ├── rps_cur_freq_mhz
          │       ├── rps_max_freq_mhz
          │       ├── rps_min_freq_mhz
          │       ├── rps_RP0_freq_mhz
          │       ├── rps_RP1_freq_mhz
          │       └── rps_RPn_freq_mhz
          ├── gt_act_freq_mhz   -+
          ├── gt_boost_freq_mhz  |
          ├── gt_cur_freq_mhz    |    Original interface
          ├── gt_max_freq_mhz    +─-> kept as existing ABI;
          ├── gt_min_freq_mhz    |    it points to gt0/
          ├── gt_RP0_freq_mhz    |
          ├── gt_RP1_freq_mhz    |
          └── gt_RPn_freq_mhz   -+

The existing interfaces have been kept in their original location
to preserve the existing ABI. They act on all the GTs: when
writing they loop through all the GTs and write the information
on each interface. When reading they provide the average value
from all the GTs.

This patch is not really adding exposing new interfaces (new
ABI) other than adapting the existing one to more tiles. In any
case this new set of interfaces will be a basic tool for system
managers and administrators when using i915.

Signed-off-by: Andi Shyti <andi.shyti@xxxxxxxxxxxxxxx>
Signed-off-by: Lucas De Marchi <lucas.demarchi@xxxxxxxxx>
Cc: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
Cc: Joonas Lahtinen <joonas.lahtinen@xxxxxxxxxxxxxxx>
Cc: Matt Roper <matthew.d.roper@xxxxxxxxx>
Cc: Sujaritha Sundaresan <sujaritha.sundaresan@xxxxxxxxx>
Cc: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>
---

Reviewed-by: Andrzej Hajda <andrzej.hajda@xxxxxxxxx>

Regards
Andrzej



[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux