Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp935870ybb; Wed, 8 Apr 2020 12:54:09 -0700 (PDT) X-Google-Smtp-Source: APiQypJMKI1ElpTJ/QS+ZfjeU3jr1TWN+BLxxOdHQy9Dqk+EVPSBGbIpg4ogoYCCtyvJCjUcsMmo X-Received: by 2002:a4a:e38c:: with SMTP id l12mr1152235oov.7.1586375649544; Wed, 08 Apr 2020 12:54:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586375649; cv=none; d=google.com; s=arc-20160816; b=mJCbJlOw7Op45eR8tuKZajjqMP55Rr3Z2p0ZkrPuEXHbkQqY5G1g1bEXE/aBd1+k/a QB0VC58bMsUWs9/tFeP0rbmluDZ8bFvFevBbbVVleaPdWhDxdSk2o9fJNxOTk9+QSniG f7rFfw+ANELt2AcEyW8b5RKCvwysAM0RBgPxYcZXndF/+f32KTMQA0CuI7v/Pf0NTK57 4N7I87uJ+1xGdg8U+ErBTkT68kMM260NGPUy9j5als8tWJE6lm+cyg7cb5zB6g4q69pP IbQwu0L24ftRveDaptQCUOd4PTmNSQFPqAu4hFaWHI/y/nAkPA20Ouwho7QJjxCVsxJp XQQA== 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:references :in-reply-to:date:cc:to:from:subject:message-id; bh=IGKjqPXeCOTSGYqPgSMn8muoGotdZHHXzSYPGCVXCdg=; b=boJTe+6B357VYtdgEc8PIbSrOynDC/dCcBdhx8zzWP3XXFNlH9SJ70LHZ/vbXjCmjF tlVMnBxv9+9C7XG2g/vVVnH0SJGlFFKP4Cg6CnqEydwqwN8FHxKRVEgfx0uPLkgLWb4L E1w5I8P2AN8vkEDWA1eWqdGi26vWY2UdgzVjFNWxyoKR1yi3OE15otkTejF3Jkajw7a9 PATAX/Ea5auPG+5NjGy58p1l2Q4Jh6LZA7fg9LnvZ++xTRhXgtAW84jEvhjSgPoZFvdp T53UNDphx9PM4ONRU0RPlMhkDpT9roxrSRjavxgSgBcTbkstAi+PovgJ2BiLXnVqT3t1 Espg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id u64si2585854oig.238.2020.04.08.12.53.56; Wed, 08 Apr 2020 12:54:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1729495AbgDHSBn (ORCPT + 99 others); Wed, 8 Apr 2020 14:01:43 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:53826 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726780AbgDHSBm (ORCPT ); Wed, 8 Apr 2020 14:01:42 -0400 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 038HXC6Z075944; Wed, 8 Apr 2020 14:01:09 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com with ESMTP id 309210cugm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 08 Apr 2020 14:01:08 -0400 Received: from m0098413.ppops.net (m0098413.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 038HnJg0123775; Wed, 8 Apr 2020 14:01:08 -0400 Received: from ppma04wdc.us.ibm.com (1a.90.2fa9.ip4.static.sl-reverse.com [169.47.144.26]) by mx0b-001b2d01.pphosted.com with ESMTP id 309210cug7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 08 Apr 2020 14:01:08 -0400 Received: from pps.filterd (ppma04wdc.us.ibm.com [127.0.0.1]) by ppma04wdc.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id 038I17Fo005697; Wed, 8 Apr 2020 18:01:07 GMT Received: from b01cxnp22033.gho.pok.ibm.com (b01cxnp22033.gho.pok.ibm.com [9.57.198.23]) by ppma04wdc.us.ibm.com with ESMTP id 3091mdxxva-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 08 Apr 2020 18:01:07 +0000 Received: from b01ledav006.gho.pok.ibm.com (b01ledav006.gho.pok.ibm.com [9.57.199.111]) by b01cxnp22033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 038I17E052756932 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 8 Apr 2020 18:01:07 GMT Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4A011AC065; Wed, 8 Apr 2020 18:01:07 +0000 (GMT) Received: from b01ledav006.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A00ADAC05B; Wed, 8 Apr 2020 18:00:56 +0000 (GMT) Received: from LeoBras (unknown [9.85.164.111]) by b01ledav006.gho.pok.ibm.com (Postfix) with ESMTP; Wed, 8 Apr 2020 18:00:55 +0000 (GMT) Message-ID: <08fd515f1e0925a9d640dffd6a97c3ddbcd0cf18.camel@linux.ibm.com> Subject: Re: [PATCH v3 1/1] ppc/crash: Reset spinlocks during crash From: Leonardo Bras To: Michael Ellerman , Nicholas Piggin , Alexios Zavras , Benjamin Herrenschmidt , Christophe Leroy , Greg Kroah-Hartman , Enrico Weigelt , Paul Mackerras , peterz@infradead.org, Thomas Gleixner Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Wed, 08 Apr 2020 15:00:33 -0300 In-Reply-To: <87v9majhh2.fsf@mpe.ellerman.id.au> 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> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-dPAT5Uf265gBn5bk+UIE" User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.676 definitions=2020-04-07_10:2020-04-07,2020-04-07 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 spamscore=0 mlxscore=0 impostorscore=0 suspectscore=0 adultscore=0 malwarescore=0 lowpriorityscore=0 phishscore=0 priorityscore=1501 mlxlogscore=999 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004080129 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-dPAT5Uf265gBn5bk+UIE Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2020-04-08 at 22:21 +1000, Michael Ellerman wrote: > We should be able to just allocate the rtas_args on the stack, it's only > ~80 odd bytes. And then we can use rtas_call_unlocked() which doesn't > take the global lock. At this point, would it be a problem using kmalloc?=20 Best regards, --=-dPAT5Uf265gBn5bk+UIE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEMdeUgIzgjf6YmUyOlQYWtz9SttQFAl6OEUEACgkQlQYWtz9S ttRQYBAAjA9TrNO0aSybcGBUbLI3D/xxV/K5oX2uvgUE80/JxGaCtDT09vhBmu1L zf0fNtV1m6+DtbMQWeXeAexvSR5Roz1QCkYW8HEndnoavaDHn5InmBPi1iLXe3h0 1ANo9fyO0HhwNUI9I42OnnH/cKrIRsvtLHxLvLkT2oM4kFlOzfR981dR1ACDVR6M FAo1e0Dt85utw+yVvJFfWfY/Ys9H7eTrtowSRqW6GrZ2nKuWW8sgxGPuuuSv84Tn KDjMAEqaSw/JR5QEQkMfK8FzFy7h+ra8uhoA+Uasjz6tX4H142baUqjdj0n/hfXC KrJ+FuU+AHzmKoUsgP2zeT29F2Zu6ZsmjcctKSvcsHT3/hCrzp2iha0EyV1+A+oF v1s7JBEGu1smnq/6Cilw6+MLS7uktbjZQSvWbCuk+Brt9UX8dxVbPSdy3jVeao51 Dfds2Bz66ECsPZ56OCDmfUmpsQFmFhjCBL/O7BDI5yqf65b1R2KMUp2ozJUfGTIv Q8QdzdsY1RE9ED0Rcr4+zOiQWQLXwLcarsrF1DIuD58Bml8+8HpF07I9PHhs/QFh VN7wgWQh23m1sVjiMGRdMt4ofR8ZBcUCV+iP2RQewrKWFU4bPoJvai2g9YwlMPZE T4UXnRfKeuNxqktKeA02LZBTMPumazdoe/jdUy5v/clZtdC6KCM= =2bkq -----END PGP SIGNATURE----- --=-dPAT5Uf265gBn5bk+UIE--