Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1466560ybh; Sun, 19 Jul 2020 21:32:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzd4gEhilEQIDaEsdstYTy9xn41uH3hhnsUFbk1+s1A/kqt8nZ0vSTKwUZ9e/k422A4LKhM X-Received: by 2002:a17:906:408c:: with SMTP id u12mr18595779ejj.162.1595219569349; Sun, 19 Jul 2020 21:32:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595219569; cv=none; d=google.com; s=arc-20160816; b=wnhUm/glLRHSSj9TMq2iml4PHTalejApons5L5BBDWCWOFcN9jaH4ZyNe9b+E5SqH3 KJsraWBYR4O7aH+KxuuTDsmB97M93l1JCAt8EZ6EItCuIjwRlCT4PNxQwzWc3DWFvCVj Qb1onoScYX2xLeJGaoy+O/pKjASOWNDk5IuHXwhxkh2AKtCg2lcScmuBQOH6/9gSUWjF xYIflBe90IXy5BkAbLrucGsOP5/9Avozo+aLp6RQeE/hc/PuX+5GgV2PYkG2D0S5nmwd saPBXgf24CYpm8s9sBWR63MRVIXoFuybmvIziG3pCTa9cgbHoCu8rMZy/zSuC4Wn3WqP 2qnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:cc:from:references:to:subject; bh=rZGig0Aq12Beqz0VN7zuw2t2kOLJL9PToECyLnZ5ES0=; b=BZGIu2Q4SX25BvImhqcOoYRXThsgV9b6lPGS+SKuZxsmZRelQRLouut3SJXkqISp0O Zx8h5rCogGuye4ZEcx9P9b0KPRgXspnA08XmRDHDm1iG6SS9aG5G8Ds1c2yiYW+SEmTH ssWqIX3y/NDEK/F5zplK4T2n7PJe8VLevm8NLzwoMLMSUofirL9dpjaqadXv3ZsYNvER 6xBrFzMwejNf+Aqvww9+sHqf6kv2htxyS3k6ye6ARzPWyXFYdEI2T+ja1JyDayIHQfEm Z1rNn1PjuAt4rgHn1obEi15PC65WNM3kNcGn9CsZ+OncT7pm+MuejiuQyuwqmG1hGWmF 8E7A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id me7si9661692ejb.716.2020.07.19.21.32.26; Sun, 19 Jul 2020 21:32:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726015AbgGTEbn (ORCPT + 99 others); Mon, 20 Jul 2020 00:31:43 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:23738 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725267AbgGTEbn (ORCPT ); Mon, 20 Jul 2020 00:31:43 -0400 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 06K43ORn185348; Mon, 20 Jul 2020 00:31:05 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 32bt0sh8q1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Jul 2020 00:31:05 -0400 Received: from m0098419.ppops.net (m0098419.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 06K45dnM191005; Mon, 20 Jul 2020 00:31:04 -0400 Received: from ppma05fra.de.ibm.com (6c.4a.5195.ip4.static.sl-reverse.com [149.81.74.108]) by mx0b-001b2d01.pphosted.com with ESMTP id 32bt0sh8pj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Jul 2020 00:31:04 -0400 Received: from pps.filterd (ppma05fra.de.ibm.com [127.0.0.1]) by ppma05fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 06K4U1Ir011876; Mon, 20 Jul 2020 04:31:02 GMT Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by ppma05fra.de.ibm.com with ESMTP id 32brq810cy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 Jul 2020 04:31:02 +0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 06K4Ux6a33620128 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Jul 2020 04:31:00 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E17CFAE055; Mon, 20 Jul 2020 04:30:59 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 72E48AE045; Mon, 20 Jul 2020 04:30:57 +0000 (GMT) Received: from [9.199.36.102] (unknown [9.199.36.102]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 20 Jul 2020 04:30:57 +0000 (GMT) Subject: Re: [PATCH v2 2/3] powerpc/powernv/idle: save-restore DAWR0, DAWRX0 for P10 To: Nicholas Piggin , Pratik Rajesh Sampat References: <20200710052207.12003-1-psampat@linux.ibm.com> <20200710052207.12003-3-psampat@linux.ibm.com> <1594619458.45vrahx59w.astroid@bobo.none> From: Ravi Bangoria Cc: benh@kernel.crashing.org, ego@linux.vnet.ibm.com, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, mikey@neuling.org, mpe@ellerman.id.au, paulus@samba.org, pratik.r.sampat@gmail.com, svaidy@linux.ibm.com Message-ID: Date: Mon, 20 Jul 2020 10:00:56 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <1594619458.45vrahx59w.astroid@bobo.none> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-07-19_04:2020-07-17,2020-07-19 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 priorityscore=1501 malwarescore=0 mlxscore=0 adultscore=0 suspectscore=0 bulkscore=0 phishscore=0 mlxlogscore=834 spamscore=0 impostorscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2007200025 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nick, On 7/13/20 11:22 AM, Nicholas Piggin wrote: > Excerpts from Pratik Rajesh Sampat's message of July 10, 2020 3:22 pm: >> Additional registers DAWR0, DAWRX0 may be lost on Power 10 for >> stop levels < 4. >> Therefore save the values of these SPRs before entering a "stop" >> state and restore their values on wakeup. > > Hmm, where do you get this from? Documentation I see says DAWR is lost > on POWER9 but not P10. > > Does idle thread even need to save DAWR, or does it get switched when > going to a thread that has a watchpoint set? I don't know how idle states works internally but IIUC, we need to save/restore DAWRs. This is needed when user creates per-cpu watchpoint event. Ravi