Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp486052lqb; Wed, 29 May 2024 01:21:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU5/1wuiyZCF4dVX+MyVwFzchWTe2fRYDfhuRDBEVTqV3AEmZhgRTPUnj8pI58anWbsktiErND1SuKKf8VydaztUxnKLGWkWeaO2x58oQ== X-Google-Smtp-Source: AGHT+IGMKixAdvViDk56DOb8zf2yGCayzj/6qY9hpulvp/ye2l4t7c0NiuClbo2gcHd+yL2nc51p X-Received: by 2002:a05:622a:1a20:b0:43e:26ab:4fc1 with SMTP id d75a77b69052e-43fb0ef0e14mr166152351cf.42.1716970902764; Wed, 29 May 2024 01:21:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716970902; cv=pass; d=google.com; s=arc-20160816; b=t/cJrJfZSeQXyGfMFL+b3U0P35PYxyTB5C7DRY+v72PZTTB3isWFlcY1iIeBYE503s zqvCrwJjL8VJHPKlTjYPhEsIOniRCYKr7eUG7aNDOuBi0vwoxGO+kJ+wo0X7w+5lzLry 5izvHUq3Xayx677O8UmL2fWuDkgG31hpLpxqOSwuaUi5kU2kq5sOYiVOhFSyVQ8+iUk+ 4xg4/vl+Pws/fvL5B3fKypRmUuwv8hg0Mw2VLqfZdnQBRrD+UeMgsJhsbhT2xBoz/FTW fUHL69yWDazQBE4kOheNdeWfhCW2S5+OJduiZM171j1c+6XjNq4tcBjagcXm/hHPd37h 9maQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=/OIMD3h5zNOxEVYbd6R8UUxeAYZuFrN+r2G3FhgYPmY=; fh=FSCrSZwImijT0S64kia3nPuYNZpARZ7VJE0ViULyq3k=; b=SV9rjNpU0r94pLYAm0cESE/E8rwh/JUM0pQsX/O1hfoKetyUZtQuNol7fTSju0pmKI 08ht88fDbLm9DyR5HqvYOMv3iaOFyOKJSj54DhjVBE7dy2rcMsySO7vRmKtJZISISBmS oSkkB5X4QKjWUFlIvpIb0+xdP8y5birBdAjCBBcr+xsiCJR7VOl/4Y+X6WVsp2+vOCPa AEtkaR1am6VEn8nyjggtUSyAlwfeDVd/CEbHjxRGIII/o7MCaCef4tE8LYiVnDdr+wbu ZPIyK8MDuZfCo6ieYdtoVGAfppYh0XsGFyS+CaE47YlLarbJgQAjymEOyCzSgBtj60t0 9LLw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=zhaoxin.com); spf=pass (google.com: domain of linux-kernel+bounces-193709-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193709-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43fb18b1decsi134685161cf.397.2024.05.29.01.21.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 01:21:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193709-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=zhaoxin.com); spf=pass (google.com: domain of linux-kernel+bounces-193709-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193709-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 70E091C2113A for ; Wed, 29 May 2024 08:21:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4CA3F168C3B; Wed, 29 May 2024 08:15:55 +0000 (UTC) Received: from mx1.zhaoxin.com (MX1.ZHAOXIN.COM [210.0.225.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A09115B0E0 for ; Wed, 29 May 2024 08:15:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.0.225.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716970554; cv=none; b=fxuosoXxUs0cV6BleF4Yi5vKixpTCxKPPLnJgn+xvaVTgLIkiGX6np4okX8p87AdSZIR4zYaMveYlBxt10xyAnoM9hrpyA/JBplWuDZ5vJGLpp3vpYjGbhW6QVcQqs0vAHBmPeOZd8Or1dnll/dxTL0bNkdiNEsyG+BWC/NiPpA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716970554; c=relaxed/simple; bh=cuxz7ztoxm/x637MW1ZSYEWD/c8J3SkKlVkO85drTEs=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=hJIM/HmTO4xdqbcy/s7Oz5MlazcobnfABAqMGmxBXGo06VV77K4GdpLNNhmU4A69l61iAHQuzJ5AmP8QAzNWtu2AlECjs9iZ/ZUbexVzGh1Bpu0EasWzQZ2jrDU+ZKrmI2oE+pjSOzh1BHhMTq9TXddNj4RykQet9m7BzVfXvpo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=zhaoxin.com; spf=pass smtp.mailfrom=zhaoxin.com; arc=none smtp.client-ip=210.0.225.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=zhaoxin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zhaoxin.com X-ASG-Debug-ID: 1716970546-086e23110513300001-xx1T2L Received: from ZXSHMBX2.zhaoxin.com (ZXSHMBX2.zhaoxin.com [10.28.252.164]) by mx1.zhaoxin.com with ESMTP id fvfnuKaLOC7Ez4wT (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Wed, 29 May 2024 16:15:46 +0800 (CST) X-Barracuda-Envelope-From: TonyWWang-oc@zhaoxin.com X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.164 Received: from ZXBJMBX03.zhaoxin.com (10.29.252.7) by ZXSHMBX2.zhaoxin.com (10.28.252.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 29 May 2024 16:15:45 +0800 Received: from [10.32.65.162] (10.32.65.162) by ZXBJMBX03.zhaoxin.com (10.29.252.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.27; Wed, 29 May 2024 16:15:43 +0800 X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.164 Message-ID: X-Barracuda-RBL-Trusted-Forwarder: 10.32.65.162 Date: Wed, 29 May 2024 16:15:37 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] x86/hpet: Read HPET directly if panic in progress To: Thomas Gleixner , Dave Hansen , , , , , , , , , , , , , , , , , X-ASG-Orig-Subj: Re: [PATCH] x86/hpet: Read HPET directly if panic in progress CC: , , , Linus Torvalds References: <20240528063836.5248-1-TonyWWang-oc@zhaoxin.com> <50fc1bd3-909e-41c4-a991-9d81e32ef92c@intel.com> <87wmnda8mc.ffs@tglx> <2553dd17-f763-4894-89b7-5f76c03d3a37@zhaoxin.com> <199ba55d-8eb8-47df-9f42-55a865b51ab7@zhaoxin.com> <87fru19i3x.ffs@tglx> Content-Language: en-US From: Tony W Wang-oc In-Reply-To: <87fru19i3x.ffs@tglx> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: ZXSHCAS2.zhaoxin.com (10.28.252.162) To ZXBJMBX03.zhaoxin.com (10.29.252.7) X-Barracuda-Connect: ZXSHMBX2.zhaoxin.com[10.28.252.164] X-Barracuda-Start-Time: 1716970546 X-Barracuda-Encrypted: ECDHE-RSA-AES128-GCM-SHA256 X-Barracuda-URL: https://10.28.252.35:4443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at zhaoxin.com X-Barracuda-Scan-Msg-Size: 628 X-Barracuda-BRTS-Status: 1 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.125498 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- On 2024/5/29 15:45, Thomas Gleixner wrote: > > > [这封邮件来自外部发件人 谨防风险] > > On Wed, May 29 2024 at 14:44, Tony W Wang-oc wrote: >> Actually, this scenario is what this patch is trying to solve. >> >> We encountered hpet_lock deadlock from the call path of the MCE handler, >> and this hpet_lock deadlock scenario may happen when others exceptions' >> handler like #PF/#GP... to call the panic. So read_hpet should avoid >> deadlock if panic in progress. > > That's not what your changelog says. Yes. The example flow I gave with the MCE handler in my changelog is misleading.