Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp948081lql; Tue, 12 Mar 2024 02:58:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVmobw9AtNn8np4cu6buvOsg/w7cPNz2eByRh1opXZAnglP6m6e53LH/xhMJJrtqJ3Ka7vzoMfpJc3PlIRFj3phjjyobGUCCla6DVdWvQ== X-Google-Smtp-Source: AGHT+IGCEkk6SbJ7qnkrHB1YvCQuZxn6eGEDrrH70U02lCKhXFiQ2AU0sW+/Xa4U3dY6WzDi7rTq X-Received: by 2002:a17:903:1104:b0:1dc:cd2e:fc68 with SMTP id n4-20020a170903110400b001dccd2efc68mr9949965plh.27.1710237488013; Tue, 12 Mar 2024 02:58:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710237488; cv=pass; d=google.com; s=arc-20160816; b=V/p/QZTwbrAni0r4akDrGK55TI2aCAZFsnLXMUmkaoXjDAZzAMPgs6Zm/yOGAxL29v 0dVYbCKqZCTL7YCbrOusRSwVN6N4qEnN8LeqtKFbW150QKpBU5BttIf1hOQSQfsF51Ve t9+Ffmf9kMYTfz39WMIQGtNYd2Dkqw9WMedlksZMoTCvtVL4V3YpkZ9woHYjcW6Tvc1q 5n+ZMVhXIb9/kRWZuPt5P9z4Ff/xfIBDuHu9X2bIa7/Im6wcrM5OorEMMLzX9R1NoGV2 lTIqX0vpdVrcXFEFsLXUK22Z2ID6qb30nZzwF1RNStL2L+7vgFMa6sFBSghIhK1soFHS 7azQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XRrd/mRYiuVNaYDbIbSa1EEqn9i8XS+3pxvuW9JmMSQ=; fh=XpE+xvla5FzSHoYdplpJx5UO2Ki6WORZtzgBYLJRUlE=; b=ipLLJjJshT1tWUeU8Ysoa88Rd2kMJI8S7yEi0DJpjPrMCwIWY5ZhsSasOFGybU4fvk nbGhVsWUz4qzbj3Ph18BQXzS8WpLcPPZGQnUngyRrheeRSlUktsDHlBGbHBmYSJNZuSs Kx8LSu+4pJOCSTNymCqWMfvSM/U71K0T2vAhuDB7tCTT+opRXAgyxXoWZ+5SvdiWOug+ vjorUS0jdKUU0q1ej7pCkI/iLWrdLCQzqx1ivH7ALzxS92eUIXSnN8IYiTHKgjD28E1f dl2xwbxWCQlFjVNwUgzmmOvjt2V9wkcoyBA83gppClHiMY4xMU9KUcaYmTot4dvzwggt F7Mw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iWiN612H; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-100081-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100081-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ju1-20020a170903428100b001dd44cfa743si6436419plb.593.2024.03.12.02.58.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 02:58:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100081-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iWiN612H; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-100081-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100081-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id B088D282E4B for ; Tue, 12 Mar 2024 09:58:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C3BA78292; Tue, 12 Mar 2024 09:58:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="iWiN612H" Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 782B133994 for ; Tue, 12 Mar 2024 09:58:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710237482; cv=none; b=objimq+iEx+c8pTAW9xVO0vIVHloo4LvDeEX/BUuGRuTR7ilgzrjbGD43JkjLLkN2pzU8r2UQeEBdRpN+3OTbnlv+45/3BBzpAQQVMiq1V3SxmyW4dbnIli8EMIyFhSGT/OI6S6mMP43xBW7DV2gyLAhm2SvtembGeka7/J8kfo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710237482; c=relaxed/simple; bh=XRrd/mRYiuVNaYDbIbSa1EEqn9i8XS+3pxvuW9JmMSQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CseOi/Gc8almSsZ6Y6RPTSAl5RABywqT5xrukEH0FS/IC06IE8HHkNOiYXqUu0lAikTM49zSRpted7sbLt2/Kc2hiyf4DRthcC9H4g7iMohfAhbrO8Vk2iYSexQsxasGpVzD+pPtKoHIoaw72Fas5/WFxG+U3IP284L9jczPgts= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=iWiN612H; arc=none smtp.client-ip=209.85.221.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-33e99b62e01so1364974f8f.0 for ; Tue, 12 Mar 2024 02:58:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710237479; x=1710842279; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=XRrd/mRYiuVNaYDbIbSa1EEqn9i8XS+3pxvuW9JmMSQ=; b=iWiN612H4XiEmaR6YxjQmgAQ6InikZD4vddxmqXfcYilphYeoqrJjx2/pnzjoxFbJZ 2o2cTP0aJs3zRzkeimUCYb0CWYVgZZE8t76Ng3rOO59hAhUfKJyHLZ11xlRWeZ5/yMPC JvfL5H+sLKDAs48wZw2w2QErG8tQFx7LWhnkJ7TWT5ZtRbRAaZMInxXKEF8R2wUt5O3a N8hHXgF2cb36NqGJEW/4vay/G+A6kMzFm7GKHAA9eNXx/21iL/k3mCYa57lymrAEMUPO 1c+KoZuNDj7Da2DVl7t2zY6t30V1t1mStV0gcYeFGKZkmlYoNkuqWJsd1KdNSfW3kIgt rvig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710237479; x=1710842279; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=XRrd/mRYiuVNaYDbIbSa1EEqn9i8XS+3pxvuW9JmMSQ=; b=FHjQIk2XNxQ6pP1WGuGlXNafSgfSKTsitSDf4MWWXsZxINLiqUwi9nS+DHMsz5S4Pd Bxy2+OnD2MTlU9kUUQCLec6pJrqo9NU2jsSBeFNo7+xxYXCpj2uwF/yymYNLZkM/8EDX Wawo/cJIfk41sXSe16KeMFSkGxjZM9xevgdhu+itodTZSDX60DNE9F1EsQBaq8N4w+5z RouigkghI/y0gK8ArzhKCNkdZt1CC/ArigcAdTB/iw7vy84aJXbAI30gyCpEnbBqrz5f gdwJwBxAzA7J5rxwT3/ShhP9SG+WUgO3RWbJg48d38GYQh0WZ76F5AgTLvpPqfROwoyA 5LKQ== X-Forwarded-Encrypted: i=1; AJvYcCUc8+MdYhvoC31e7cPImqzhCP8FhVb2KHphxli1ozHStDwipaZ0uuzgAMEjunNbrahr1RktcsHg03mp/IjgbSctDHoxKXN0zkOPInvu X-Gm-Message-State: AOJu0Yz8gwzxuq6bGNf/UuLrOG3Ir0mi5vmDywSwUXbVQ26W6TEqy9Fy 8DxPkVedGLSJNIsw40xNC4UkdqFTGV/e+CgQA2bQuQjGPO49WwCgPSY1DVVHz7T6XikR+3fLaUy pHHo= X-Received: by 2002:a5d:4306:0:b0:33e:7fcb:c0e with SMTP id h6-20020a5d4306000000b0033e7fcb0c0emr874687wrq.6.1710237478891; Tue, 12 Mar 2024 02:57:58 -0700 (PDT) Received: from aspen.lan (aztw-34-b2-v4wan-166919-cust780.vm26.cable.virginm.net. [82.37.195.13]) by smtp.gmail.com with ESMTPSA id y3-20020adff143000000b0033dc3f3d689sm8594544wro.93.2024.03.12.02.57.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 02:57:58 -0700 (PDT) Date: Tue, 12 Mar 2024 09:57:56 +0000 From: Daniel Thompson To: Liuye Cc: "jason.wessel@windriver.com" , "dianders@chromium.org" , "gregkh@linuxfoundation.org" , "jirislaby@kernel.org" , "kgdb-bugreport@lists.sourceforge.net" , "linux-kernel@vger.kernel.org" , "linux-serial@vger.kernel.org" Subject: Re: =?utf-8?B?562U5aSNOiDnrZTlpI0=?= =?utf-8?Q?=3A?= [PATCH] kdb: Fix the deadlock issue in KDB debugging. Message-ID: <20240312095756.GB202685@aspen.lan> References: <20240228025602.3087748-1-liu.yeC@h3c.com> <20240228120516.GA22898@aspen.lan> <8b41d34adaef4ddcacde2dd00d4e3541@h3c.com> <20240301105931.GB5795@aspen.lan> <2ea381e7407a49aaa0b08fa7d4ff62d3@h3c.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2ea381e7407a49aaa0b08fa7d4ff62d3@h3c.com> On Tue, Mar 12, 2024 at 08:37:11AM +0000, Liuye wrote: > I know that you said schedule_work is not NMI save, which is the first > issue. Perhaps it can be fixed using irq_work_queue. But even if > irq_work_queue is used to implement it, there will still be a deadlock > problem because slave cpu1 still has not released the running queue > lock of master CPU0. This doesn't sound right to me. Why do you think CPU1 won't release the run queue lock? Daniel.