forked from Minki/linux
6839a6d96f
When a latent (unknown to 'badblocks') error is encountered, it will trigger a machine check exception. On a system with machine check recovery, this will only SIGBUS the process(es) which had the bad page mapped (as opposed to a kernel panic on platforms without machine check recovery features). In the former case, we want to trigger a full rescan of that nvdimm bus. This will allow any additional, new errors to be captured in the block devices' badblocks lists, and offending operations on them can be trapped early, avoiding machine checks. This is done by registering a callback function with the x86_mce_decoder_chain and calling the new ars_rescan functionality with the address in the mce notificatiion. Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Cc: Tony Luck <tony.luck@intel.com> Signed-off-by: Vishal Verma <vishal.l.verma@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
70 lines
2.0 KiB
Makefile
70 lines
2.0 KiB
Makefile
ldflags-y += --wrap=ioremap_wc
|
|
ldflags-y += --wrap=memremap
|
|
ldflags-y += --wrap=devm_ioremap_nocache
|
|
ldflags-y += --wrap=devm_memremap
|
|
ldflags-y += --wrap=devm_memunmap
|
|
ldflags-y += --wrap=ioremap_nocache
|
|
ldflags-y += --wrap=iounmap
|
|
ldflags-y += --wrap=memunmap
|
|
ldflags-y += --wrap=__devm_request_region
|
|
ldflags-y += --wrap=__devm_release_region
|
|
ldflags-y += --wrap=__request_region
|
|
ldflags-y += --wrap=__release_region
|
|
ldflags-y += --wrap=devm_memremap_pages
|
|
ldflags-y += --wrap=insert_resource
|
|
ldflags-y += --wrap=remove_resource
|
|
|
|
DRIVERS := ../../../drivers
|
|
NVDIMM_SRC := $(DRIVERS)/nvdimm
|
|
ACPI_SRC := $(DRIVERS)/acpi/nfit
|
|
DAX_SRC := $(DRIVERS)/dax
|
|
ccflags-y := -I$(src)/$(NVDIMM_SRC)/
|
|
|
|
obj-$(CONFIG_LIBNVDIMM) += libnvdimm.o
|
|
obj-$(CONFIG_BLK_DEV_PMEM) += nd_pmem.o
|
|
obj-$(CONFIG_ND_BTT) += nd_btt.o
|
|
obj-$(CONFIG_ND_BLK) += nd_blk.o
|
|
obj-$(CONFIG_X86_PMEM_LEGACY) += nd_e820.o
|
|
obj-$(CONFIG_ACPI_NFIT) += nfit.o
|
|
obj-$(CONFIG_DEV_DAX) += dax.o
|
|
obj-$(CONFIG_DEV_DAX_PMEM) += dax_pmem.o
|
|
|
|
nfit-y := $(ACPI_SRC)/core.o
|
|
nfit-$(CONFIG_X86_MCE) += $(ACPI_SRC)/mce.o
|
|
nfit-y += config_check.o
|
|
|
|
nd_pmem-y := $(NVDIMM_SRC)/pmem.o
|
|
nd_pmem-y += pmem-dax.o
|
|
nd_pmem-y += config_check.o
|
|
|
|
nd_btt-y := $(NVDIMM_SRC)/btt.o
|
|
nd_btt-y += config_check.o
|
|
|
|
nd_blk-y := $(NVDIMM_SRC)/blk.o
|
|
nd_blk-y += config_check.o
|
|
|
|
nd_e820-y := $(NVDIMM_SRC)/e820.o
|
|
nd_e820-y += config_check.o
|
|
|
|
dax-y := $(DAX_SRC)/dax.o
|
|
dax-y += config_check.o
|
|
|
|
dax_pmem-y := $(DAX_SRC)/pmem.o
|
|
dax_pmem-y += config_check.o
|
|
|
|
libnvdimm-y := $(NVDIMM_SRC)/core.o
|
|
libnvdimm-y += $(NVDIMM_SRC)/bus.o
|
|
libnvdimm-y += $(NVDIMM_SRC)/dimm_devs.o
|
|
libnvdimm-y += $(NVDIMM_SRC)/dimm.o
|
|
libnvdimm-y += $(NVDIMM_SRC)/region_devs.o
|
|
libnvdimm-y += $(NVDIMM_SRC)/region.o
|
|
libnvdimm-y += $(NVDIMM_SRC)/namespace_devs.o
|
|
libnvdimm-y += $(NVDIMM_SRC)/label.o
|
|
libnvdimm-$(CONFIG_ND_CLAIM) += $(NVDIMM_SRC)/claim.o
|
|
libnvdimm-$(CONFIG_BTT) += $(NVDIMM_SRC)/btt_devs.o
|
|
libnvdimm-$(CONFIG_NVDIMM_PFN) += $(NVDIMM_SRC)/pfn_devs.o
|
|
libnvdimm-$(CONFIG_NVDIMM_DAX) += $(NVDIMM_SRC)/dax_devs.o
|
|
libnvdimm-y += config_check.o
|
|
|
|
obj-m += test/
|