From patchwork Fri Jun 30 19:17:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Verma, Vishal L" X-Patchwork-Id: 13298683 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5A8E7171BB for ; Fri, 30 Jun 2023 19:17:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688152675; x=1719688675; h=from:to:cc:subject:date:message-id:content-id: content-transfer-encoding:mime-version; bh=cI7QH6PXnJ2+yV60boV0wKoiVgCsj1GszN6VLufcFmc=; b=ZIOzCVu64EFbvVJoxh/OnmmfhFxaGA0QDcTYtZy3+yVEKi+Lgh49qAKs 4Jj45aW33pdrAHmAIMCcIz65e66/5N0DUzWg4qBfS79WCU1rhyQFDjqaM qg9KktH6O3zTikSr0SntJYUVy+nV3i7gT5HcVmNdb93wozTUmmzI7JqAj tRjzjtKTnpyrYFDRTUcSQik0w0mNt0D94/uANifCptrM5GPRUCCtiend4 77aB/P8O/DZQVHYEpgbYuzGDGpwjee7nJHdtI5Yux/R4611O1VjIGPap2 jPZkZKySRv5jiux/ZW7GD9lVhjPvVoF5d05wss7FOLULbuuEYX5X3n22d Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10757"; a="342806522" X-IronPort-AV: E=Sophos;i="6.01,171,1684825200"; d="scan'208";a="342806522" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jun 2023 12:17:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10757"; a="747515134" X-IronPort-AV: E=Sophos;i="6.01,171,1684825200"; d="scan'208";a="747515134" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga008.jf.intel.com with ESMTP; 30 Jun 2023 12:17:54 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 30 Jun 2023 12:17:53 -0700 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 30 Jun 2023 12:17:53 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27 via Frontend Transport; Fri, 30 Jun 2023 12:17:53 -0700 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (104.47.73.172) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.27; Fri, 30 Jun 2023 12:17:50 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WdgKQq0Fm/oe2UOzBcnFInGEc54j1jHjBWG8lrzxW4cqR4LfyCzMOI9XxBWzPfbfq2XN7Q+0qt4yByHHWeCDO2GYMzsY5TgStWjEGXwupgn22f565ByjiOm+6W6IWgQcjT55+xK/4mcTFFQLaG/Onvg8Pc5hctKhvNSRusTj6AmBv8ztO1JhA3MiG3MUJN4bsR3xxTWrDw8zAMsyuUJauvN2MCZNMYzzc8FnDpkJ17EawVyEXv3rrXVoL3Y5ZH4wLnOrj1prSkkN1GCAclAcfuV7Utsg64rAOTHg8jk334pFfDzbXy1oFF8jFBXupFi80vbRI6Im166P/T/dFZNQew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cI7QH6PXnJ2+yV60boV0wKoiVgCsj1GszN6VLufcFmc=; b=VpHIqgE/w8B6IQX2ZhTwhs3qVcYSPuZ4es+hxpmwP1gTEXpKMXNShzvpXMjTfTMKVdVRRlot1T/+rwqpWG2ryukBdvK865prZgXmwDs/vpIHU/Cn85jpk1XaIsHFI4l8odTJsZe5wK6VQ7yfwsZLHs3zOZ/hXbKm0XQJhHm4/60N1ykk3TMYrt7be5jFptsfOS8qz1U/JHwVL2nCyia6OLyl1ll88RdARlcQJEMac1yKZrxUgLgyCrrKlxBZGTqAa6R/tWHH00G3INdssP0ZIpajTLlA52HeXMs6Hx6azsEZr1S9t9I4DavsKIdAglr5ZgH23XLSL2npD+j/gbG7nA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from MW4PR11MB7125.namprd11.prod.outlook.com (2603:10b6:303:219::12) by MW3PR11MB4666.namprd11.prod.outlook.com (2603:10b6:303:56::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.19; Fri, 30 Jun 2023 19:17:47 +0000 Received: from MW4PR11MB7125.namprd11.prod.outlook.com ([fe80::c1d2:a32a:f7ef:1803]) by MW4PR11MB7125.namprd11.prod.outlook.com ([fe80::c1d2:a32a:f7ef:1803%7]) with mapi id 15.20.6521.024; Fri, 30 Jun 2023 19:17:47 +0000 From: "Verma, Vishal L" To: "Torvalds, Linus" CC: "Williams, Dan J" , "nvdimm@lists.linux.dev" , "linux-kernel@vger.kernel.org" Subject: [GIT PULL] NVDIMM and DAX for 6.5 Thread-Topic: [GIT PULL] NVDIMM and DAX for 6.5 Thread-Index: AQHZq4eN8+cRTdpSmk2H0698Ut9SpA== Date: Fri, 30 Jun 2023 19:17:47 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Evolution 3.48.3 (3.48.3-1.fc38) authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MW4PR11MB7125:EE_|MW3PR11MB4666:EE_ x-ms-office365-filtering-correlation-id: 569f0c15-d459-4f97-0276-08db799eb065 x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: My7r+IUJufdsqmPKRdaWMMNT3pcg4o1Fztz9Oz2pLCPKDg45xYA4D5td8qnvki3Y3QfJu/w9Kkj95usSRALJmWX5tDwoEYRa4pOaa3QFS8n9K41vGaplhRZAZgVvz4OMVAo2vBpGFuOsxK3e2oO6nxP4vvyb32pT0dej/+AtuVMYbsMPEoLhpaq+iaPhtBttbxofdEH3nKl6GpvjappbyWOpRoGi/TdOWO6oCRj1AqEyeWbJOyE1Dw9BtCQvtI07RvUqT0SkFklXFgPAsfDJ1wsaZPAZIVK6kjlRkZkhguCsZ/o5cAJzML+Q8lc6uYJEgHaJbwh4KX6qIp96iYQcEWOLZLKipU+fLDD4/lPONRR8gAreOxFMlzti+Qltt94S2SPUaDb3iS2h980bX3Bj/KI77OZztFpACc/E2MLiyop8tdxGqUEZw0mmhY6ek6xxrSYvfmUIwhOxrZbya8kfDFWO0OgaPnDhjGxYF8TEdKEPnAaZ65fNaQXlZlLEpml0JVuEtlitfe50X2FkQ88UaAILW5Q9J4NFchdFKDdYkQiR3NYDtpfcXrmvoXmLfNr1ZepmktyJG2chChjZM3+LjI/y10gCrKbYfBzIYwrr6GiLIyAOoc5io+7rS5c+F/5v x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW4PR11MB7125.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(396003)(366004)(346002)(39860400002)(376002)(136003)(451199021)(66574015)(83380400001)(38070700005)(2616005)(2906002)(122000001)(38100700002)(82960400001)(36756003)(8936002)(8676002)(5660300002)(86362001)(71200400001)(54906003)(6512007)(41300700001)(76116006)(66556008)(66476007)(66446008)(64756008)(6916009)(4326008)(66946007)(316002)(6486002)(478600001)(186003)(6506007)(26005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?q?9cm/wQP/kfLOMCcxXV1xyl+yzTGa?= =?utf-8?q?bzyz2CgqvLEILM+sZsomklGcsjJ4bKQT9RqlF5NJuIB3c0mskrdwnodg2NiTfCnUX?= =?utf-8?q?adCH/fgHeqtFAHUCJ2ZWMzXl1pDq2U4+O0NgPYS1cx+VZrjiCofquQoatShwSHzEI?= =?utf-8?q?zD4+8GrOrEUC1xSc4YpCA4AkOxPPQg7blddPG7DD5oJ/zEPjaQ9xdiUeIZuBb1avs?= =?utf-8?q?9NPlx/OEsbj5DDLM1oFKVWOLthBObP6IXegqR012inhuQkzx7WsGfUv2cgu7ttl/K?= =?utf-8?q?zvTZahi3MF208Y34NoybmVX5i3CkgIIYLQmyOTuhINJWy57RhObXpnK8nAPdvbSWW?= =?utf-8?q?Me59oWrDkK1JBGUNN76c8DM5ffV02hFphXNheVvkgpFlZzq+WizrJRzpeuZ7lOE1s?= =?utf-8?q?hy/zr6gCzoQpWexPo1oYRPNEh7jesTyyxPBQwU+5LEzBEvT8cL1Xf6ErjmA1EjF7U?= =?utf-8?q?QkTgNhrtfryGfBDvmkLGWJEvTrhIMuo/R6U5951szr9I2VSkD4ug+MmO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940vt8pS9tQRcZVbu8vg/0QzABiHebOKqUpUSuKlLAFbWcYsDkA9wy+yWpo0vaW?= =?utf-8?q?HuKado0uzUQfbFj0rlUh3v0MICHoZmIFIWFRZtnPViH4XFnOTAUaILXtdTvDJKVtA?= =?utf-8?q?Lv3lvbq3kUgl/Q5slf02ytWTINfo4Kaeow=3D=3D?= Content-ID: <71517BF39B7A7E459127E93FF3760EA6@namprd11.prod.outlook.com> Precedence: bulk X-Mailing-List: nvdimm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW4PR11MB7125.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 569f0c15-d459-4f97-0276-08db799eb065 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Jun 2023 19:17:47.4009 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: s7zVi4o5KtMbK2qTljimUiQbTkN2MhTlyLHhEW1sCBbRA7Apnz1QCMp8+SEq2QFDOXBlDx3A2H70h3IRgUpLOmesMIuNJ/M7xZVxQgzH3J0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR11MB4666 X-OriginatorOrg: intel.com Hi Linus, please pull from git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm.git tags/libnvdimm-for-6.5 ... to receive the libnvdimm and DAX update for v6.5. This is mostly small cleanups and fixes, with the biggest change being the change to the DAX fault handler allowing it to return VM_FAULT_HWPOISON. It has appeared in linux-next with no reported issues. On an operational note, as Dan handed off the branch to me for this cycle, we missed that the original few commits were inadvertently made on top of a few CXL commits that went in in the 6.4-rc cycle via the CXL tree. git-request-pull included these, and hence they appear in the shortlog and diffstat below, but the actual merge correctly identifies and skips over them. I kept it as it is to preserve the linux-next soak time, but if I should have done it differently, please let me know. --- The following changes since commit f1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6: Linux 6.4-rc2 (2023-05-14 12:51:40 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm.git tags/libnvdimm-for-6.5 for you to fetch changes up to 1ea7ca1b090145519aad998679222f0a14ab8fce: dax: enable dax fault handler to report VM_FAULT_HWPOISON (2023-06-26 07:54:23 -0600) ---------------------------------------------------------------- libnvdimm for 6.5 - DAX fixes and cleanups including a use after free, extra references, and device unregistration, and a redundant variable. - Allow the DAX fault handler to return VM_FAULT_HWPOISON - A few libnvdimm cleanups such as making some functions and variables static where sufficient. - Add a few missing prototypes for wrapped functions in tools/testing/nvdimm ---------------------------------------------------------------- Arnd Bergmann (3): dax: fix missing-prototype warnings testing: nvdimm: add missing prototypes for wrapped functions libnvdimm: mark 'security_show' static again Ben Dooks (2): nvdimm: make nd_class variable static nvdimm: make security_show static Colin Ian King (1): fsdax: remove redundant variable 'error' Dan Williams (5): cxl/port: Enable the HDM decoder capability for switch ports dax: Fix dax_mapping_release() use after free dax: Use device_unregister() in unregister_dax_mapping() dax: Introduce alloc_dev_dax_id() dax: Cleanup extra dax_region references Dave Jiang (2): cxl: Wait Memory_Info_Valid before access memory related info cxl: Move cxl_await_media_ready() to before capacity info retrieval Jane Chu (1): dax: enable dax fault handler to report VM_FAULT_HWPOISON Tarun Sahu (1): dax/kmem: Pass valid argument to memory_group_register_static Uwe Kleine-König (1): tools/testing/nvdimm: Drop empty platform remove function Vishal Verma (1): Merge branch 'for-6.5/dax-cleanups' into nvdimm-for-next include/linux/dax.h | 13 ++++ include/linux/mm.h | 2 + drivers/cxl/cxl.h | 1 + drivers/cxl/cxlmem.h | 2 + drivers/cxl/cxlpci.h | 2 + drivers/dax/bus.h | 8 --- drivers/dax/dax-private.h | 11 +++- tools/testing/nvdimm/test/nfit_test.h | 29 +++++++++ drivers/cxl/core/mbox.c | 15 +++-- drivers/cxl/core/pci.c | 112 ++++++++++++++++++++++++++++++---- drivers/cxl/mem.c | 3 + drivers/cxl/pci.c | 6 ++ drivers/cxl/port.c | 20 +++--- drivers/dax/bus.c | 64 +++++++++++-------- drivers/dax/cxl.c | 8 +-- drivers/dax/device.c | 3 +- drivers/dax/hmem/hmem.c | 8 +-- drivers/dax/kmem.c | 2 +- drivers/dax/pmem.c | 7 +-- drivers/dax/super.c | 5 +- drivers/nvdimm/bus.c | 2 +- drivers/nvdimm/dimm_devs.c | 4 +- drivers/nvdimm/pmem.c | 2 +- drivers/s390/block/dcssblk.c | 3 +- fs/dax.c | 14 ++--- fs/fuse/virtio_fs.c | 3 +- tools/testing/cxl/test/mem.c | 1 + tools/testing/cxl/test/mock.c | 15 +++++ tools/testing/nvdimm/test/nfit.c | 6 -- tools/testing/cxl/Kbuild | 1 + 30 files changed, 265 insertions(+), 107 deletions(-)