Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3387834rdb; Thu, 16 Nov 2023 08:15:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IHxuvsDF9S89aDSFMg5s5uC4qs0uc3LLqJqrGfVlEPtI/MdUV1BMjzb0ZmBx9/9S2R0vyt8 X-Received: by 2002:a05:6a20:daa6:b0:187:7af3:bb0c with SMTP id iy38-20020a056a20daa600b001877af3bb0cmr5758556pzb.58.1700151322618; Thu, 16 Nov 2023 08:15:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700151322; cv=none; d=google.com; s=arc-20160816; b=hH3XTEFqRXCcKnOxhCXG7J9D/PBngUakqOlm/aMsm+yExRMhi8px7wTJFVHif5pnSB UeQ2TMNAiSVfaZeCziKSVyqTLQqJoHCafizGE/PLu+DUjqVy+X3zKAcs0NUErBkTWAne 3Cj53ELwtNPw+zqKVoXlLWOcaE3X52np0g2IGD3bPLEa4eZLKLz94ycsOL8bVRpcCDlh Ido+Dar2bssLffX8g2tjTZ9Dv2ASfKR62dg+mdIFBPFVUbB60QpirmUPo017TlJX0ZM9 g2m5Xnmpth5C/uHj5GkQ3Whg4/5glSZmQ17gJeezf6CBZf97yyT7grwXYjd4iYRs7hU9 GShQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=CiIMIpeV2slPoSnSt0oRpnnL1pxLGVGI9/vyDDAeZPg=; fh=4fataBzJ6KgmtayhjucjHG81HNh7TCRbIPCdokWxzGI=; b=K2ZKKEHrkTScRuWcCp7nV5xJlI8djCLFRKQLM1ds3o8x+1+IHDlZaz1/dAjGOThchk q/d7bEX9bDkmao5X2ijI9Q79KLy34JjgI1eQtHuw7lAsEyqYbMvdLp25SquFmkg6Ibut xQOwzJpAePfEmWS9qHTSQ4BmL9yVL/JE6DJToO4ZSCLIM/dUqZKRFUmAjiRo9qhPkyXB fZhzmDIDBNw8qKv2dGgUGdtx8w5DTveMMRJIqwnHj0cJF3w8w+AXLwWDidTkCpJXePsm MkPyKMaGkH38xLdzUa2zJ45JNQSWYsCzkJlEB8ylvrqULaiXfmCHByqIczd2I7vTfBsE QDTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xen0n.name header.s=mail header.b=cVrV5NIk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id x28-20020a634a1c000000b0059779ae5899si12110655pga.836.2023.11.16.08.15.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 08:15:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@xen0n.name header.s=mail header.b=cVrV5NIk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 5CA4481D808D; Thu, 16 Nov 2023 08:15:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230492AbjKPQPU (ORCPT + 99 others); Thu, 16 Nov 2023 11:15:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229562AbjKPQPT (ORCPT ); Thu, 16 Nov 2023 11:15:19 -0500 Received: from mailbox.box.xen0n.name (mail.xen0n.name [115.28.160.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE693D50 for ; Thu, 16 Nov 2023 08:15:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xen0n.name; s=mail; t=1700151312; bh=nszHQM2D01crUxQ/pqUr37Hl4TAA5ocLSCr1LbLEbbE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=cVrV5NIkYja+DMsdvgDcOs/VTn4kZtPQ2pOUuOc5qdHRKsdRBZLcs0c4S4EGlYxu1 8vQpljer1Nqp5GEn2+UIidTpwzZcx1x3UJVAp0esfbWoGfFS8UhvZAgK3QmfNwRqPI gKoM7DnkwP5i7Ut5t+qRr2H36pp6QftcCKHPMC+Q= Received: from [IPV6:240e:388:8d26:bf00:1bbb:841f:9d6a:e85e] (unknown [IPv6:240e:388:8d26:bf00:1bbb:841f:9d6a:e85e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mailbox.box.xen0n.name (Postfix) with ESMTPSA id 8BF0060123; Fri, 17 Nov 2023 00:15:12 +0800 (CST) Message-ID: <696b7c76-6672-4c33-b729-992ccbcf786f@xen0n.name> Date: Fri, 17 Nov 2023 00:15:12 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] LoongArch: Implement stable timer shutdown interface Content-Language: en-US To: maobibo , Huacai Chen Cc: Peter Zijlstra , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org References: <20231114114656.1003841-1-maobibo@loongson.cn> <21c772c3-b1ad-49c4-b6ca-204cb65042de@xen0n.name> <762523c4-5452-bfad-e5dc-f3bca035fb69@loongson.cn> From: WANG Xuerui In-Reply-To: <762523c4-5452-bfad-e5dc-f3bca035fb69@loongson.cn> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 16 Nov 2023 08:15:21 -0800 (PST) On 11/16/23 16:21, maobibo wrote: >>> arch_cpu_idle_dead is called. Timer interrupt for this processor should >>> be disabled, else there will be timer interrupt for the dead cpu. Also >>> this prevents vcpu to schedule out during halt-polling flow when system >>> is running in vm mode, since there is pending timer interrupt. >> >> The logical relationship is a bit unclear, is my paraphrasing correct >> in your opinion? >> >> "Timer interrupt for this processor should be disabled, else a >> pending timer interrupt will prevent the vCPU from scheduling out >> during the halt-polling flow when system is running in VM mode" >> >> (I don't immediately know what a "schedule out" is. Is that a >> translation artifact or some KVM jargon?) > how about "prevent the vCPU from giving up scheduling"? That's very easy to understand, so no problem and thanks! -- WANG "xen0n" Xuerui Linux/LoongArch mailing list: https://lore.kernel.org/loongarch/