Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2762023ybl; Mon, 19 Aug 2019 07:11:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqyunHReBlJ9Sn8lNx7+x+MtZ4rHuMJPEh+c2Ytos7rk5hHZIMUCc4bO8VvQrIUK7EtjoqfE X-Received: by 2002:a17:90a:6d43:: with SMTP id z61mr21149543pjj.32.1566223893694; Mon, 19 Aug 2019 07:11:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566223893; cv=none; d=google.com; s=arc-20160816; b=E3rLEz/BM6UWak+0fArsJTxeL+5x3pQo47h8SLMqtveJOh8PF1+xeRsZuvkGvYY/O5 O3Et5mxh9S5I5zeZeKy0u7fnF9K0SMwE3zzp0hjNwD4HyEMpTn3Wn0gJxGheEKrCjX77 T7rAlxOXMAOi/oSDfTV3UmXWh+WGOwjL9gyv/Wz1Vgb59mrxwXRedY3yrG6Be2G5EYBK 2iTURSzj/dWQckKNyMPyiY9m05TYuzp5yT0ag7ONQbHXW6q8vMWoy0j/jdRu/tdSRsAV QaMpkE9pAv8OXOl3GvQsEIOie6Ah5KJMjZjdQUPlRcpXqqUGLBOMym3urxTclEq1zJsO lpJQ== 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:message-id :user-agent:mime-version:in-reply-to:references:cc:to:subject:from :date:dkim-signature; bh=GSLHXu1mOtlkzdO0Aoy6ALFWdjQmUSGB2auJNt7fmaY=; b=XhnQJxLfu80MDlvDGgLb29ri+e0T1SzC4kBv5MNN/avya9gxuMwxdlKe5hL55eWq4R SlBbu2UpD4USm8zAvHDIPftVVspUPoPGBUwniKhjWfVSnU/+55gekCF5UHWpRk8b2PwU 2c+1X9xaBng4Q8Xl/IodBaiJaUzW5ZsorOuwElft1NYQ9FPV59xPW0cs5/ymeWn4Ygl3 HpCUIEF+2JbT84VnSO/BBOURABcT/BRoD91h47k756au50ugn05O7QJxyhaI7pYx2p3o wtqqOMc1m5InRpO3rQjYQ50d9jqJBaW5hNER3qPmzqSTECnVdg6T2koKLtMRdrfwLmLN Fpdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hAn16Ept; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l6si9935529pgg.489.2019.08.19.07.11.17; Mon, 19 Aug 2019 07:11:33 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hAn16Ept; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726390AbfHSOI7 (ORCPT + 99 others); Mon, 19 Aug 2019 10:08:59 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:36396 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726028AbfHSOI7 (ORCPT ); Mon, 19 Aug 2019 10:08:59 -0400 Received: by mail-pl1-f195.google.com with SMTP id f19so622441plr.3; Mon, 19 Aug 2019 07:08:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:subject:to:cc:references:in-reply-to:mime-version :user-agent:message-id:content-transfer-encoding; bh=GSLHXu1mOtlkzdO0Aoy6ALFWdjQmUSGB2auJNt7fmaY=; b=hAn16EptkwYbIsimrtCVoLm3Vy2/0maL2p4sTLH/uJOqrzgirMoRwVwobxhbxRutWh Hoj/J+0xMDQQ+DRUIjfbV6AyjSf9wPse+GBYiR7P21FBQHEarrOe62Oti+ue+vs+3QIR 1ExfSZZC/TKj6jUNxFScZ86jbWp98Z2VfasIRWdrhAHCkJdZncoo06ryvn8WpySQw751 V+fss1tF3DpVSyjKRwkpPZ+fQ9EksfRmL8tqpVyiDVQs4SvyK7q2aLnABiNjdxSvIBHF lqsQfmxVD5MU+L+Ey2i1jAJ57tedIzgJ06XZ6WRhOQvaGWqDX8CGZ7vuZ/VIGDJqyHK4 uxGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:subject:to:cc:references:in-reply-to :mime-version:user-agent:message-id:content-transfer-encoding; bh=GSLHXu1mOtlkzdO0Aoy6ALFWdjQmUSGB2auJNt7fmaY=; b=qIoSg++929F4L8HBeWN3qIZH7wHqh9Ef0Dslv+Uic+Mz873KWH/G/nb/UaOseSspuD 6Z5/cm6hkiCSVZpcrKwz9Jr8kKfwwDbq3nztOuu9BWgcHh3lYD1VkraCzP3hsH3z2Jda eUExMZMqrEEmg9IdRtLEoLz07V1vEDuBdIw8kksHsEAt8ZGe7ilzFmh0cM1FqpumefjA Qq/yXEAtUF1xniu3sn0U1qI1ngujbGYaKFcpUCCYVVBBxu+c4Aqp15rj/ygDFoK6Sfqy mXlCZo2Kxj3V/3xz3UZnRKEiKgJ0go/L+5AJFjVA4JfH7Cjm4zSfpGeU6/3wonJS1G62 O9Og== X-Gm-Message-State: APjAAAWNZqcQPbb+JcUZy+I/j02elR1WyK8MSnykkPlTHwjCgTF+gWof sZtq0fwONXEe1SWW5XA81I55sgoaih4= X-Received: by 2002:a17:902:b702:: with SMTP id d2mr23407917pls.259.1566223738387; Mon, 19 Aug 2019 07:08:58 -0700 (PDT) Received: from localhost (193-116-95-121.tpgi.com.au. [193.116.95.121]) by smtp.gmail.com with ESMTPSA id d6sm14454537pgf.55.2019.08.19.07.08.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2019 07:08:57 -0700 (PDT) Date: Tue, 20 Aug 2019 00:08:46 +1000 From: Nicholas Piggin Subject: Re: [PATCH v10 1/7] powerpc/mce: Schedule work from irq_work To: Linux Kernel , linuxppc-dev , Santosh Sivaraj Cc: "Aneesh Kumar K.V" , Reza Arbab , Balbir Singh , Chandan Rajendra , christophe leroy , Mahesh Salgaonkar , Mahesh Salgaonkar , Michael Ellerman , stable@vger.kernel.org References: <20190815003941.18655-1-santosh@fossix.org> <20190815003941.18655-2-santosh@fossix.org> In-Reply-To: <20190815003941.18655-2-santosh@fossix.org> MIME-Version: 1.0 User-Agent: astroid/0.15.0 (https://github.com/astroidmail/astroid) Message-Id: <1566223307.ypgtanp5uk.astroid@bobo.none> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Santosh Sivaraj's on August 15, 2019 10:39 am: > schedule_work() cannot be called from MCE exception context as MCE can > interrupt even in interrupt disabled context. The powernv code doesn't do this in general, rather defers kernel MCEs. My patch series converts the pseries machine check exception code over to the same. However there remain special cases where that's not true for powernv, e.g., the machine check stack overflow or unrecoverable MCE paths try to force it through so something gets printed. We probably shouldn't even try to do memory failure in these cases. Still, shouldn't hurt to make this change and fixes the existing "different" pseries code. Thanks, Nick > fixes: 733e4a4c ("powerpc/mce: hookup memory_failure for UE errors") > Suggested-by: Mahesh Salgaonkar > Signed-off-by: Santosh Sivaraj > Reviewed-by: Mahesh Salgaonkar > Acked-by: Balbir Singh > Cc: stable@vger.kernel.org # v4.15+ Reviewed-by: Nicholas Piggin =