Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2390369ybk; Mon, 11 May 2020 20:52:39 -0700 (PDT) X-Google-Smtp-Source: APiQypL+20Vdl1dIX63USVdqt2auqdarLKHxUnZla7sjnU3+4frz6I3YMEbFpLTBNvc8WBz4S84l X-Received: by 2002:a17:906:6708:: with SMTP id a8mr11646261ejp.266.1589255559377; Mon, 11 May 2020 20:52:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589255559; cv=none; d=google.com; s=arc-20160816; b=XQ8NszNpRol2s1s1WMMovOlyEjHTKQPfDM1whMOXmkG2E00aCrFUHhlnjwfepJL2yu PDFhgMuupn/mzqPnEPSbp36R9l+AzLXaWBbhKHrbkeprSart+jJvyATyqZScPmBux6Gp OFGVoFD/5fCQM0TghyWSFkIIUJql4X2WWOfW3HCsuGk5jr+bKbm7/lEwIUZ15r6xvmgw bBNGrio7ruDruhAfAX6mzW6jN8ccf/swNmF5sqdxE4zZl09XBC6E/ynuGaAXDbYidNX8 rjRQhiPxk9VXBAQjNzQfS6ZJIuh2PC9v1pDICL3cEeX98QE5lb5oApchktDgVtnpYE6L DCyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:organization :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=5n6oxKBMVWx60og62lkJZft41oxpnNerVi+unngwoHA=; b=ZJvFIXh+ufdk1t1ygzsZ/1dPioeMQn9mp1F3+NPBQW4eWyr8BEfDqfiye+RvtizS1J 0wwI2yIOPzYWmDwqY4kPLPBXuQI8MtIygbTUTXH7bsDas4i2cND7+POKtFRN+7s2MvQO fxbERvrSwb186gSF6bJzM89AaXwN3f3XzIE9KsKYQiiN5BSNgGlj7kcBnu0TWMvZeZFt LXdyWxGqVcPc5BBCyr+x2Qta5l32tBWaxjWwk7dV6x5ockirnyWHcu7VajcM1xKJqsa+ VW2xqJUC7XCClIkUzwZmu1C/6Z5wZEjD9Bm41U69SvQa/b8TPtTQl/rVztXwsl8MMsr8 iQVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="qVLaB/gC"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n9si7363371edf.138.2020.05.11.20.52.16; Mon, 11 May 2020 20:52:39 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="qVLaB/gC"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728288AbgELDso (ORCPT + 99 others); Mon, 11 May 2020 23:48:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725892AbgELDso (ORCPT ); Mon, 11 May 2020 23:48:44 -0400 Received: from mail-qt1-x842.google.com (mail-qt1-x842.google.com [IPv6:2607:f8b0:4864:20::842]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBF31C061A0C for ; Mon, 11 May 2020 20:48:42 -0700 (PDT) Received: by mail-qt1-x842.google.com with SMTP id x8so9900920qtr.2 for ; Mon, 11 May 2020 20:48:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :organization:user-agent:mime-version; bh=5n6oxKBMVWx60og62lkJZft41oxpnNerVi+unngwoHA=; b=qVLaB/gCHZnYpvyak3zXsNxqXEbCRkuc8oJhxATrqS5TqrZcJqAdG8Fc2wVgnTqJNS peeEYBoyICAZ95H3eIAkBiEoIxNNQ2YkLBS78lx2pEWAB6q7pdXWp2YFrYQ9RO6PSM3B raQJgsuVlT0Qv5uhnyCI6hSWlKqyw3BdB+YXmS+Xjmy0nQLrxKCPUxTCCv6BkiuTq3jV TEd9RvZvvGjQ0UgVQAJ27Nt9XlOUnZI83vvAMmp6vjFzw1WYir+F3ODrlsWrGnST2xFX Uz444K+iVu9X7jae/3GCuME1uARtUsUbInj6TmXzRg3nVYP7VPavuTwKBa0rUyHK+QUb //9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:organization:user-agent:mime-version; bh=5n6oxKBMVWx60og62lkJZft41oxpnNerVi+unngwoHA=; b=JYOb9TZOyMJ4fHYoNDVNwgbX73rPVTs9Qga6q4iwhekflk0qqHMzG1e36zzBIk5Ncy sr3++MpApnK4+JND81X7NZ3dP7thWVBVnVvJ0rJFeowt5/GO5zdsH8w79cAbITWoWPlh BsAptNaQe01i3B/ctoUFWwdEsl2nPuQUu+M2wiRLw6KARMwEfoRFnqS3gtQz5mCSJ1j6 1WC1pv1eoX1fncK71p24+UXB0myxNPL2LqJfhZgyv9hBGf3Xw2+ECOrQcK16jlHQHJRk PrCR8M4E6CChdSdse8168mzTsbl7q3hDWY0C+34Rk1ymZF9ZmG44/Dm54QpdtWKyknaK Xg5Q== X-Gm-Message-State: AGi0PuaYBXiYUplribSQRlgDxMFdIOWjLDDs7zd5Tza4NyavBDJAINyN kJDIN/9fkxRd1/q6BmroSVbs1Gog X-Received: by 2002:ac8:739a:: with SMTP id t26mr19487947qtp.311.1589255321911; Mon, 11 May 2020 20:48:41 -0700 (PDT) Received: from LeoBras (143-255-224-253.dynamic.desktop.com.br. [143.255.224.253]) by smtp.gmail.com with ESMTPSA id d4sm10580366qtw.25.2020.05.11.20.48.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 May 2020 20:48:40 -0700 (PDT) Message-ID: Subject: Re: [PATCH v3 1/1] ppc/crash: Reset spinlocks during crash From: Leonardo Bras To: Paul Mackerras , Michael Ellerman Cc: peterz@infradead.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Nicholas Piggin , Alexios Zavras , Greg Kroah-Hartman , Thomas Gleixner , Enrico Weigelt Date: Tue, 12 May 2020 00:48:28 -0300 In-Reply-To: <20200409002726.GA5135@blackberry> References: <20200401000020.590447-1-leonardo@linux.ibm.com> <871rp6t9di.fsf@mpe.ellerman.id.au> <02e74be19534ab1db2f16a0c89ecb164e380c12a.camel@linux.ibm.com> <1585895551.7o9oa0ey62.astroid@bobo.none> <87v9majhh2.fsf@mpe.ellerman.id.au> <20200409002726.GA5135@blackberry> Organization: IBM Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-4yilsMbkz+4cNur9Wxoo" User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-4yilsMbkz+4cNur9Wxoo Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Paul, thanks for the reply! On Thu, 2020-04-09 at 10:27 +1000, Paul Mackerras wrote: > On Wed, Apr 08, 2020 at 10:21:29PM +1000, Michael Ellerman wrote: > > We should be able to just allocate the rtas_args on the stack, it's onl= y > > ~80 odd bytes. And then we can use rtas_call_unlocked() which doesn't > > take the global lock. >=20 > Do we instantiate a 64-bit RTAS these days, or is it still 32-bit? According to LoPAR, we can use instantiate-rtas or instantiate-rtas-64.=20 It looks like we do instantiate-rtas today (grep pointed only to prom_instantiate_rtas()). > In the old days we had to make sure the RTAS argument buffer was > below the 4GB point. If that's still necessary then perhaps putting > rtas_args inside the PACA would be the way to go. Yes, we still need to make sure of this. I will study more about PACA and try to implement that way. Best regards, Leonardo Bras --=-4yilsMbkz+4cNur9Wxoo Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQJIBAABCAAyFiEEMdeUgIzgjf6YmUyOlQYWtz9SttQFAl66HIwUHGxlb2JyYXMu Y0BnbWFpbC5jb20ACgkQlQYWtz9SttQPLA//fKKlapt9WdFQ67p8gkh+h3LOaBKS u1snYTTmKCwrvTt+MCvLADzcJRTEDOcQmfCP2qYbwOJ4eI1rwzND2NwpTZx1yVJ3 /oPkWaS8uW57rGC1cYUXYS6VxWwTYgNHSDqqV4+oqfKriuu2WuHZ93fN8C8yWxfK EiL/DnyMCNxpuAelTuZI7SpLmbfYptqASCSHmqJNmU+SDyqxC0dCuAVsa+wutrTy RQTtSPhSxJhGEy07wHJWwDPqFCj4s7L88JyCKpahIGszP/eodf5r90yqf4za+BzC y+qAizOH0NhyIcCtzlMmXK3t2d6MheJgkAzmI+O02uRiAPf5x1GOOyE6aAj7qQcU K9m+tcVIFPWry9oZVxhYWCQwwd6v4jmiIU4YvN4SD6gZxj3vWNvLbgFBwLw8PyGr WcLccCQYhCWBhYFct7C6dC6DtBeoS6TNrMjh4nEEVTk9jeRLhI13/w06GAWlGXiP nSfpf2VIrK/lHzCiM8kq4rg3NcVUHOewecxq0OlK3UzXEa8mkONXrcz648OErcGP HdJq4ZHNzG7Nq7CM7EYtI0sxvcsMVanD8nSfIwxpo4SBq0fgWzZo3spiUL5QQB1L 3Db6YAZqt6MeCySwJAXnlvsHB8Nx+WasWNwhWqcsmbvDYB9xQnMWoSteaZb0yyeO hCjbzahPdaxTPgM= =1RoD -----END PGP SIGNATURE----- --=-4yilsMbkz+4cNur9Wxoo--