All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] RK3588 rockchip-dfi enhancements
@ 2025-05-30 13:38 ` Nicolas Frattaroli
  0 siblings, 0 replies; 24+ messages in thread
From: Nicolas Frattaroli @ 2025-05-30 13:38 UTC (permalink / raw)
  To: Chanwoo Choi, MyungJoo Ham, Kyungmin Park, Heiko Stuebner,
	Sascha Hauer, Jonathan Cameron, Sebastian Reichel
  Cc: kernel, linux-pm, linux-arm-kernel, linux-rockchip, linux-kernel,
	Nicolas Frattaroli

This series consists of two related patches. The first fixes the memory
cycle counter on RK3588, which read half of what it should've been
reading. You can easily verify this with

  perf stat -a -e rockchip_ddr/cycles/ sleep 1

and then dividing the result by the number of Hertz the ddr init settles
on, which for LPDDR4X on RK3588 appears to be 2112MHz.

The second adds support for measuring memory bandwidth with LPDDR5
memory. Results have been validated by comparing its reported bandwidth
with that reported by stress-ng --stream 8 --timeout 15, which line up
almost perfectly.

Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
---
Nicolas Frattaroli (2):
      PM / devfreq: rockchip-dfi: double count on RK3588
      PM / devfreq: rockchip-dfi: add support for LPDDR5

 drivers/devfreq/event/rockchip-dfi.c | 91 ++++++++++++++++++++++++++++--------
 include/soc/rockchip/rk3588_grf.h    |  8 +++-
 include/soc/rockchip/rockchip_grf.h  |  1 +
 3 files changed, 79 insertions(+), 21 deletions(-)
---
base-commit: ba2b2250bbaf005016ba85e345add6e19116a1ea
change-id: 20250530-rk3588-dfi-improvements-f646424715d2

Best regards,
-- 
Nicolas Frattaroli <nicolas.frattaroli@collabora.com>



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

end of thread, other threads:[~2025-09-06 22:50 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-30 13:38 [PATCH 0/2] RK3588 rockchip-dfi enhancements Nicolas Frattaroli
2025-05-30 13:38 ` Nicolas Frattaroli
2025-05-30 13:38 ` [PATCH 1/2] PM / devfreq: rockchip-dfi: double count on RK3588 Nicolas Frattaroli
2025-05-30 13:38   ` Nicolas Frattaroli
2025-05-30 13:38 ` [PATCH 2/2] PM / devfreq: rockchip-dfi: add support for LPDDR5 Nicolas Frattaroli
2025-05-30 13:38   ` Nicolas Frattaroli
2025-06-04  8:24   ` Diederik de Haas
2025-06-04  8:24     ` Diederik de Haas
2025-06-05 15:14     ` Nicolas Frattaroli
2025-06-05 15:14       ` Nicolas Frattaroli
2025-06-05 19:49       ` Diederik de Haas
2025-06-05 19:49         ` Diederik de Haas
2025-06-11  7:32   ` Sascha Hauer
2025-06-11  7:32     ` Sascha Hauer
2025-09-06 16:09   ` Chanwoo Choi
2025-09-06 16:09     ` Chanwoo Choi
2025-09-06 18:38     ` Heiko Stübner
2025-09-06 18:38       ` Heiko Stübner
2025-09-06 22:46       ` Chanwoo Choi
2025-09-06 22:46         ` Chanwoo Choi
2025-09-06 18:37   ` Heiko Stübner
2025-09-06 18:37     ` Heiko Stübner
2025-06-20 16:08 ` [PATCH 0/2] RK3588 rockchip-dfi enhancements Nicolas Frattaroli
2025-06-20 16:08   ` Nicolas Frattaroli

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.