From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C4E39C369D5 for ; Sun, 27 Apr 2025 18:04:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D239110E1B1; Sun, 27 Apr 2025 18:04:51 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="d8dfFxzs"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6F5AC10E16A; Sun, 27 Apr 2025 18:04:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1745777090; x=1777313090; h=date:from:to:cc:subject:message-id:mime-version; bh=w8iu0in0rmZmoC27jCK5DdfNJu4rYuwfXnFWyrpQkS8=; b=d8dfFxzsSieJI7tO+Qn7nBi8lJTZ83Z8bR1rV6+/hkJr6iDX3uE74dQR tNAlAkm7ZWEh/o8lAnzEyffWXwAFkO2YeiFE0ZA5exCvZQuK+oQ4oaboA 1mt1f25wmx//41IgwAcdegUbEhBhd3oMZkt3HBCR8HtwOriqeJ+SjgqE+ 5ACt8Ecmhw89ltoH7KpDk92MKgwf3TI784hv71QzM3L3WEtStoPbtTY9m K4K7Sb/nIKqCeLbYbZmhZ5/Zd2zauEsiTWGdjSFTm1rCc85dnlfpb3ZKM 6ugb4ILpQaL0fQ4wC2tP8lI6+LkSKgrxQqHaKbGgK9wFlv825bv9LDLC4 w==; X-CSE-ConnectionGUID: G62B15ONQs+23sfAWnVJrw== X-CSE-MsgGUID: btTFSDSWQTaqLQxGBPVtjA== X-IronPort-AV: E=McAfee;i="6700,10204,11416"; a="58350225" X-IronPort-AV: E=Sophos;i="6.15,244,1739865600"; d="scan'208";a="58350225" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2025 11:04:48 -0700 X-CSE-ConnectionGUID: h1sF9JZgSHaeU7Af1YC09A== X-CSE-MsgGUID: a6mEHzBBT/eEf4/UbahqPg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,244,1739865600"; d="scan'208";a="133213398" Received: from black.fi.intel.com ([10.237.72.28]) by orviesa010.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2025 11:04:47 -0700 Date: Sun, 27 Apr 2025 21:04:44 +0300 From: Raag Jadav To: jani.nikula@intel.com, rodrigo.vivi@intel.com, lucas.demarchi@intel.com, ville.syrjala@intel.com Cc: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org Subject: Rare divide error during display resume Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" I came across this while testing an unrelated feature. It's not easily reproducible so thought I'd share here. [ 1802.992726] PM: suspend entry (s2idle) [ 1802.993986] Filesystems sync: 0.001 seconds [ 1826.223060] xe 0000:03:00.0: [drm] *ERROR* Writing dc state to 0xbffffff4 failed, now 0xffffffff [ 1826.315308] xe 0000:03:00.0: [drm] *ERROR* DC state mismatch (0x0 -> 0x4000000b) [ 1830.528929] xe 0000:03:00.0: [drm] *ERROR* Writing dc state to 0xbffffff4 failed, now 0xffffffff [ 1831.130028] xe 0000:03:00.0: [drm] *ERROR* timeout waiting for CDCLK PLL unlock [ 1831.140420] Oops: divide error: 0000 [#1] PREEMPT SMP NOPTI [ 1831.145976] CPU: 14 UID: 0 PID: 9834 Comm: kworker/u128:32 Kdump: loaded Tainted: G U W 6.14.0-xe+ #14 [ 1831.156426] Tainted: [U]=USER, [W]=WARN [ 1831.160246] Hardware name: Intel Corporation Raptor Lake Client Platform/RPL-S ADP-S DDR5 UDIMM CRB, BIOS RPLSFWI1.R00.5045.A00.2401260733 01/26/2024 [ 1831.173536] Workqueue: async async_run_entry_fn [ 1831.178051] RIP: 0010:bxt_cdclk_ctl.isra.0+0x6c/0x2a0 [xe] [ 1831.183599] Code: c2 c1 e1 04 0f b7 f8 f3 0f b8 c7 90 0f af c3 85 c0 40 0f 9e c6 85 c9 0f 9f c2 40 38 d6 89 ca 0f 84 71 01 00 00 d1 fa 01 d0 99 f9 83 f8 04 0f 84 71 01 00 00 0f 8f 90 00 00 00 45 31 ff 83 f8 [ 1831.202219] RSP: 0018:ffffc9000b69fa18 EFLAGS: 00010246 [ 1831.207419] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 1831.214515] RDX: 0000000000000000 RSI: 0000000000000001 RDI: 000000000000ffff [ 1831.221611] RBP: ffffc9000b69fa58 R08: 0000000000000000 R09: ffffc9000b69f858 [ 1831.228706] R10: ffffc9000b69f850 R11: ffff88888c5fffe8 R12: 0000000000000000 [ 1831.235796] R13: ffff888173adb3f0 R14: ffffffffffffffff R15: 0000000000000000 [ 1831.242891] FS: 0000000000000000(0000) GS:ffff88888d500000(0000) knlGS:0000000000000000 [ 1831.250931] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1831.256647] CR2: 00005632ddf55000 CR3: 0000000003258001 CR4: 0000000000f72ef0 [ 1831.263741] PKRU: 55555554 [ 1831.266450] Call Trace: [ 1831.268900] [ 1831.271006] ? show_regs+0x6d/0x80 [ 1831.274400] ? die+0x3c/0xa0 [ 1831.277276] ? do_trap+0xcf/0xf0 [ 1831.280497] ? do_error_trap+0x7a/0x100 [ 1831.284319] ? bxt_cdclk_ctl.isra.0+0x6c/0x2a0 [xe] [ 1831.289264] ? exc_divide_error+0x3f/0x60 [ 1831.293260] ? bxt_cdclk_ctl.isra.0+0x6c/0x2a0 [xe] [ 1831.298200] ? asm_exc_divide_error+0x1f/0x30 [ 1831.302539] ? bxt_cdclk_ctl.isra.0+0x6c/0x2a0 [xe] [ 1831.307479] ? bxt_cdclk_ctl.isra.0+0x35/0x2a0 [xe] [ 1831.312421] ? cdclk_squash_waveform+0x9f/0xc0 [xe] [ 1831.317361] _bxt_set_cdclk+0x295/0x650 [xe] [ 1831.321699] bxt_set_cdclk+0x80/0x570 [xe] [ 1831.325863] ? bxt_calc_cdclk_pll_vco+0xa2/0xc0 [xe] [ 1831.330890] intel_cdclk_init_hw+0x238/0x470 [xe] [ 1831.335655] icl_display_core_init+0xde/0x800 [xe] [ 1831.340513] intel_power_domains_init_hw+0x1bc/0x660 [xe] [ 1831.345972] intel_power_domains_resume+0xa4/0x100 [xe] [ 1831.351256] intel_display_power_resume_early+0x5a/0xf0 [xe] [ 1831.356971] xe_display_pm_resume_early+0x27/0x30 [xe] [ 1831.362172] xe_pm_resume+0x12c/0x280 [xe] [ 1831.366324] ? __pfx_pci_pm_resume+0x10/0x10 [ 1831.370580] xe_pci_resume+0x60/0x70 [xe] [ 1831.374645] pci_pm_resume+0x78/0x110 [ 1831.378300] dpm_run_callback+0x58/0x100 [ 1831.382213] device_resume+0x13c/0x350 [ 1831.385950] ? __pfx_dpm_watchdog_handler+0x10/0x10 [ 1831.390808] async_resume+0x22/0x40 [ 1831.394287] async_run_entry_fn+0x36/0x140 [ 1831.398368] process_one_work+0x217/0x680 [ 1831.402365] worker_thread+0x1a2/0x340 [ 1831.406103] ? __pfx_worker_thread+0x10/0x10 [ 1831.410358] kthread+0x10b/0x270 [ 1831.413585] ? __pfx_kthread+0x10/0x10 [ 1831.417324] ret_from_fork+0x3d/0x60 [ 1831.420894] ? __pfx_kthread+0x10/0x10 [ 1831.424632] ret_from_fork_asm+0x1a/0x30 [ 1831.428546]