From patchwork Wed Aug 14 08:24:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Santosh Sivaraj X-Patchwork-Id: 1146834 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 467jNk4DWHz9sDQ for ; Wed, 14 Aug 2019 18:26:46 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=fossix.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=fossix-org.20150623.gappssmtp.com header.i=@fossix-org.20150623.gappssmtp.com header.b="FqMXxIMa"; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 467jNk3BJnzDqlZ for ; Wed, 14 Aug 2019 18:26:46 +1000 (AEST) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=none (mailfrom) smtp.mailfrom=fossix.org (client-ip=2607:f8b0:4864:20::643; helo=mail-pl1-x643.google.com; envelope-from=santosh@fossix.org; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=fossix.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=fossix-org.20150623.gappssmtp.com header.i=@fossix-org.20150623.gappssmtp.com header.b="FqMXxIMa"; dkim-atps=neutral Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 467jLs1jsRzDqNj for ; Wed, 14 Aug 2019 18:25:06 +1000 (AEST) Received: by mail-pl1-x643.google.com with SMTP id m9so50234676pls.8 for ; Wed, 14 Aug 2019 01:25:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fossix-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0rpKBQceBN5zUsdD9UzIHV+FqR0WBSXrACuRfsl6/m0=; b=FqMXxIMaWexz3HrcdGtlBPLcFDGrIT4cGYTE4MI4krIWAVRts2whuO4aprJZMIbiuw WY78HMken3awwYL1twwiHfaR9BkXo8CJ7FwqDfw/mUAXDvixoWoksBgnaJR2V8i8X3QW PaL37g5F65Jybuxno/dYXm0dNYa68jhNeG11NXMUZPCSLvZXwwabcpNaHMjMRdNuqYQB ndWQHac4OPiWEgHUqkV4zmcQpIMqzFs7F1xxfJDZW2E5OVfSQqpH2DIECqCsZnqfbsNB aAzpT/8nEq2AK+CJWChOzWtOnLPM75bpXgRW0FKUsaQaZdHmUBF6kuBcm8ahcuIQY8p1 ToHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0rpKBQceBN5zUsdD9UzIHV+FqR0WBSXrACuRfsl6/m0=; b=Am0V2wNvsSE2xq18vN1AVBu8v0Gsm9YecnC/UUDeJk6yvZkVcghW6jBgSN3aStIxay ulN29H0zcFemxkz0noTTKeHsebyRQLs6LcHwkRyt8iYemh7oWut845x8C5OrWew8qw5q DFcHHKStjHiKlhpxdyod8YAlCyD1KWlAw7JwgHK8NGTtcgjtGBkWUDXMTFbJvuvHDUJ2 geoD8jhzudX+LqpZGebRXksk0Tx/jfRnKb19iyiOeJ1OElm1L1D50ul+qx/g0M98x7GD kgdQDB1+0iQW6DeuRFHNBVJPHs5psG8DKZTYWzrtb4iXeGd3tCEc382kUzWuiBEMLQlM Tmiw== X-Gm-Message-State: APjAAAVvHoxza9t8lMDUKOWTUsNzccGOEWjOQZImq25pQWmK72cZl3ay 3JI3kkpiXTdyfOM2KoAZoGIVGVcTTG8= X-Google-Smtp-Source: APXvYqxSXvuWsbaBOqxrxTh6yDbkfkaYxwEBLvEBLRfCNnO+i5aWd4ImhamuN7JmxU8pX2U8CNUZuQ== X-Received: by 2002:a17:902:9689:: with SMTP id n9mr42285411plp.241.1565771103154; Wed, 14 Aug 2019 01:25:03 -0700 (PDT) Received: from santosiv.in.ibm.com ([129.41.84.76]) by smtp.gmail.com with ESMTPSA id y194sm124672463pfg.116.2019.08.14.01.25.00 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 14 Aug 2019 01:25:02 -0700 (PDT) From: Santosh Sivaraj To: linuxppc-dev Subject: [PATCH 0/3] Add bad pmem bad blocks to bad range Date: Wed, 14 Aug 2019 13:54:49 +0530 Message-Id: <20190814082452.28013-1-santosh@fossix.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Aneesh Kumar K.V" , Oliver O'Halloran , Chandan Rajendra , Reza Arbab , Mahesh Salgaonkar Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" This series, which should be based on top of the still un-merged "powerpc: implement machine check safe memcpy" series, adds support to add the bad blocks which generated an MCE to the NVDIMM bad blocks. The next access of the same memory will be blocked by the NVDIMM layer itself. Santosh Sivaraj (3): powerpc/mce: Add MCE notification chain of_pmem: Add memory ranges which took a mce to bad range papr/scm: Add bad memory ranges to nvdimm bad ranges arch/powerpc/include/asm/mce.h | 3 + arch/powerpc/kernel/mce.c | 15 +++ arch/powerpc/platforms/pseries/papr_scm.c | 65 ++++++++++++ drivers/nvdimm/of_pmem.c | 122 ++++++++++++++++++---- 4 files changed, 186 insertions(+), 19 deletions(-)