Created attachment 203111 [details] dmesg output On an Ironlake platform (Intel Core i5 CPU 650 @ 3.20GHz) , the /sys/kernel/debug/dri/0/i915_energy_uJ file is created but it cannot be opened, since the platform does not have RAPL driver support. # sudo cat /sys/kernel/debug/dri/0/i915_energy_uJ cat: /sys/kernel/debug/dri/0/i915_energy_uJ: No such device
Created attachment 203121 [details] Components built
Works as expected, then. For sure we will keep creating the file for all platforms (and we have plenty of similar cases). It's more up to debate whether the file should be empty or access should return -ENODEV or similar. We seem to do a little bit of both, but the error is more obvious.
Also, new bugs against i915 should be filed at the freedesktop.org bugzilla: https://bugs.freedesktop.org/enter_bug.cgi?product=DRI&component=DRM/Intel