`pps.panel_power_cycle_delay` not logged
From drivers/gpu/drm/i915/display/intel_pps.c
(v6.12-8756-g42d9e8b7ccdd):
static void wait_panel_power_cycle(struct intel_dp *intel_dp)
{
struct intel_display *display = to_intel_display(intel_dp);
struct intel_digital_port *dig_port = dp_to_dig_port(intel_dp);
ktime_t panel_power_on_time;
s64 panel_power_off_duration;
drm_dbg_kms(display->drm,
"[ENCODER:%d:%s] %s wait for panel power cycle\n",
dig_port->base.base.base.id, dig_port->base.base.name,
pps_name(intel_dp));
/* take the difference of current time and panel power off time
* and then make panel wait for t11_t12 if needed. */
panel_power_on_time = ktime_get_boottime();
panel_power_off_duration = ktime_ms_delta(panel_power_on_time, intel_dp->pps.panel_power_off_time);
/* When we disable the VDD override bit last we have to do the manual
* wait. */
if (panel_power_off_duration < (s64)intel_dp->pps.panel_power_cycle_delay) {
drm_dbg_kms(display->drm,
"[ENCODER:%d:%s] %s panel_power_on_time = %d, power_cycle_delay = %d",
dig_port->base.base.base.id, dig_port->base.base.name,
pps_name(intel_dp),
panel_power_on_time,
intel_dp->pps.panel_power_cycle_delay);
wait_remaining_ms_from_jiffies(jiffies,
intel_dp->pps.panel_power_cycle_delay - panel_power_off_duration);
}
wait_panel_status(intel_dp, IDLE_CYCLE_MASK, IDLE_CYCLE_VALUE);
}
Despite echo 0x11e | sudo tee /sys/module/drm/parameters/debug
the value of intel_dp->pps.panel_power_cycle_delay
is not logged.
[ 6951.821123] i915 0000:00:02.0: [drm:intel_pps_on_unlocked [i915]] [ENCODER:98:DDI A/PHY A] PPS 0 turn panel power on
[ 6951.821339] i915 0000:00:02.0: [drm:wait_panel_power_cycle [i915]] [ENCODER:98:DDI A/PHY A] PPS 0 wait for panel power cycle
[ 6951.821588] i915 0000:00:02.0: [drm:wait_panel_status [i915]] [ENCODER:98:DDI A/PHY A] PPS 0 mask: 0xb800000f value: 0x00000000 PP_STATUS: 0x00000000 PP_CONTROL: 0x00000000
[ 6951.821795] i915 0000:00:02.0: [drm:intel_pps_on_unlocked [i915]] Wait complete
[ 6951.822015] i915 0000:00:02.0: [drm:intel_pps_on_unlocked [i915]] [ENCODER:98:DDI A/PHY A] PPS 0 wait for panel power on
[ 6951.822245] i915 0000:00:02.0: [drm:wait_panel_status [i915]] [ENCODER:98:DDI A/PHY A] PPS 0 mask: 0xb000000f value: 0x80000008 PP_STATUS: 0x9000000a PP_CONTROL: 0x00000003
[ 6951.871344] i915 0000:00:02.0: [drm:spt_irq_handler [i915]] hotplug event received, stat 0x01000000, dig 0x12001010, pins 0x00000010, long 0x00000010
[ 6951.871560] i915 0000:00:02.0: [drm:intel_hpd_irq_handler [i915]] digital hpd on [ENCODER:98:DDI A/PHY A] - long
[ 6951.871750] i915 0000:00:02.0: [drm:intel_hpd_irq_handler [i915]] Received HPD interrupt on PIN 4 - cnt: 10
[ 6951.871991] i915 0000:00:02.0: [drm:intel_dp_hpd_pulse [i915]] ignoring long hpd on eDP [ENCODER:98:DDI A/PHY A]
[ 6952.022376] i915 0000:00:02.0: [drm:intel_pps_on_unlocked [i915]] Wait complete
It’d be nice to know to understand delays (during ACPI S3 resume).