ACPI NFIT flags field reports major errors on NVDIMM, which need
user's attention.
Update the current log to a proper error message with dev_err().
The current message string is kept for grep-compatibility.
Signed-off-by: Toshi Kani
Cc: Dan Williams
Cc: "Rafael J. Wysocki"
Cc:
Commit-ID: 5e0fb5df2ee871b841f96f9cb6a7f2784e96aa4e
Gitweb: https://git.kernel.org/tip/5e0fb5df2ee871b841f96f9cb6a7f2784e96aa4e
Author: Toshi Kani
AuthorDate: Wed, 27 Jun 2018 08:13:48 -0600
Committer: Thomas Gleixner
CommitDate: Wed, 4 Jul 2018 21:37:09 +0200
x86/mm: Add TLB purge to
Commit-ID: f967db0b9ed44ec3057a28f3b28efc51df51b835
Gitweb: https://git.kernel.org/tip/f967db0b9ed44ec3057a28f3b28efc51df51b835
Author: Toshi Kani
AuthorDate: Wed, 27 Jun 2018 08:13:46 -0600
Committer: Thomas Gleixner
CommitDate: Wed, 4 Jul 2018 21:37:08 +0200
x86/mm: Disable ioremap
ck for the page alloc in patch 03.
---
Toshi Kani (2):
1/3 x86/mm: disable ioremap free page handling on x86-PAE
3/3 x86/mm: add TLB purge to free pmd/pte page interfaces
Chintan Pandya (1):
2/3 ioremap: Update pgtable free interfaces with addr
---
arch/arm64/mm/mmu.c | 4 +
nterfaces")
Reported-by: Joerg Roedel
Signed-off-by: Toshi Kani
Cc: Andrew Morton
Cc: Michal Hocko
Cc: Thomas Gleixner
Cc: Ingo Molnar
Cc: "H. Peter Anvin"
Cc: Joerg Roedel
Cc:
---
arch/x86/mm/pgtable.c | 19 +++
1 file changed, 19 insertions(+)
diff --git
rent PCID regardless of the liner addresses to which they correspond.
Fixes: 28ee90fe6048 ("x86/mm: implement free pmd/pte page interfaces")
Signed-off-by: Toshi Kani
Cc: Andrew Morton
Cc: Michal Hocko
Cc: Thomas Gleixner
Cc: Ingo Molnar
Cc: "H. Peter Anvin"
Cc: Joerg Roedel
Cc
86/mm: implement free pmd/pte page interfaces")
Signed-off-by: Chintan Pandya
Signed-off-by: Toshi Kani
Cc: Andrew Morton
Cc: Michal Hocko
Cc: Thomas Gleixner
Cc: Ingo Molnar
Cc: "H. Peter Anvin"
Cc: Will Deacon
Cc: Joerg Roedel
Cc:
---
arch/arm64/mm/mmu.c |4 ++
m: implement free pmd/pte page interfaces")
Signed-off-by: Chintan Pandya
Signed-off-by: Toshi Kani
Cc: Andrew Morton
Cc: Michal Hocko
Cc: Thomas Gleixner
Cc: Ingo Molnar
Cc: "H. Peter Anvin"
Cc: Will Deacon
Cc: Joerg Roedel
Cc:
---
v3-UPDATE - Rewrite patch description
-
rent PCID regardless of the liner addresses to which they correspond.
Fixes: 28ee90fe6048 ("x86/mm: implement free pmd/pte page interfaces")
Signed-off-by: Toshi Kani
Cc: Andrew Morton
Cc: Michal Hocko
Cc: Thomas Gleixner
Cc: Ingo Molnar
Cc: "H. Peter Anvin"
Cc: Joerg Roedel
Cc
nterfaces")
Reported-by: Joerg Roedel
Signed-off-by: Toshi Kani
Cc: Andrew Morton
Cc: Michal Hocko
Cc: Thomas Gleixner
Cc: Ingo Molnar
Cc: "H. Peter Anvin"
Cc: Joerg Roedel
Cc:
---
arch/x86/mm/pgtable.c | 19 +++
1 file changed, 19 insertions(+)
diff --git
")
Signed-off-by: Chintan Pandya
Signed-off-by: Toshi Kani
Cc:
---
arch/arm64/mm/mmu.c |4 ++--
arch/x86/mm/pgtable.c | 12 +++-
include/asm-generic/pgtable.h |8
lib/ioremap.c |4 ++--
4 files changed, 15 insertions(+), 13 d
ernel.org/patch/10371015/
v3:
- Fixed a build error in v2.
v2:
- Reordered patch-set, so that patch 01 can be applied independently.
- Added a NULL pointer check for the page alloc in patch 03.
---
Toshi Kani (2):
1/3 x86/mm: disable ioremap free page handling on x86-PAE
3/3 x86/mm: add TL
tal.
[1] https://patchwork.kernel.org/patch/10371015/
v2:
- Reordered patch-set, so that patch 01 can be applied independently.
- Added a NULL pointer check for the page alloc in patch 03.
---
Toshi Kani (2):
1/3 x86/mm: disable ioremap free page handling on x86-PAE
3/3 x86/mm: add TLB purge to fr
rent PCID regardless of the liner addresses to which they correspond.
Fixes: 28ee90fe6048 ("x86/mm: implement free pmd/pte page interfaces")
Signed-off-by: Toshi Kani
Cc: Andrew Morton
Cc: Michal Hocko
Cc: Thomas Gleixner
Cc: Ingo Molnar
Cc: "H. Peter Anvin"
Cc: Joerg Roedel
Cc
nterfaces")
Reported-by: Joerg Roedel
Signed-off-by: Toshi Kani
Cc: Andrew Morton
Cc: Michal Hocko
Cc: Thomas Gleixner
Cc: Ingo Molnar
Cc: "H. Peter Anvin"
Cc: Joerg Roedel
Cc:
---
arch/x86/mm/pgtable.c | 19 +++
1 file changed, 19 insertions(+)
diff --git
ance after updating pagetable entry even in map.
Why ? Read this,
https://patchwork.kernel.org/patch/10134581/
Pass 'addr' in these interfaces so that proper TLB ops
can be performed.
Fixes: 28ee90fe6048 ("x86/mm: implement free pmd/pte page interfaces")
Signed-off-by: Chinta
The ghes_edac driver obtains memory type from SMBIOS type 17,
but it does not recognize DDR4 and NVDIMM types.
Add support of DDR4 and NVDIMM types. NVDIMM type is set when
memory type is DDR3/4 and non-volatile.
Reported-by: Robert Elliott
Signed-off-by: Toshi Kani
Cc: Borislav Petkov
Cc
rent PCID regardless of the liner addresses to which they correspond.
Fixes: 28ee90fe6048 ("x86/mm: implement free pmd/pte page interfaces")
Signed-off-by: Toshi Kani
Cc: Andrew Morton
Cc: Michal Hocko
Cc: Thomas Gleixner
Cc: Ingo Molnar
Cc: "H. Peter Anvin"
Cc: Joerg Roedel
Cc
ay be cached by speculation. See patch 2/2 for the detals.
Patch 03 disables free page handling on x86-PAE to address BUG_ON reported
by Joerg.
[1] https://patchwork.kernel.org/patch/10371015/
---
Chintan Pandya (1):
1/3 ioremap: Update pgtable free interfaces with addr
Toshi Kani (2):
2/3 x86/mm
Chintan Pandya
Signed-off-by: Toshi Kani
Cc:
---
arch/arm64/mm/mmu.c |4 ++--
arch/x86/mm/pgtable.c |8 +---
include/asm-generic/pgtable.h |8
lib/ioremap.c |4 ++--
4 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/ar
nterfaces")
Reported-by: Joerg Roedel
Signed-off-by: Toshi Kani
Cc: Andrew Morton
Cc: Michal Hocko
Cc: Thomas Gleixner
Cc: Ingo Molnar
Cc: "H. Peter Anvin"
Cc: Joerg Roedel
Cc:
---
arch/x86/mm/pgtable.c | 19 +++
1 file changed, 19 insertions(+)
diff --git
es interface to use
struct dev_pagemap")
Signed-off-by: Toshi Kani
Cc: Christoph Hellwig
Cc: Dan Williams
Cc:
---
drivers/nvdimm/pmem.c |4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/nvdimm/pmem.c b/drivers/nvdimm/pmem.c
index 9d714926ecf5..2d7875209bce
Commit-ID: 565977a3d929fc4427769117a8ac976ec16776d5
Gitweb: https://git.kernel.org/tip/565977a3d929fc4427769117a8ac976ec16776d5
Author: Toshi Kani
AuthorDate: Wed, 14 Mar 2018 14:59:32 -0600
Committer: Thomas Gleixner
CommitDate: Thu, 15 Mar 2018 15:27:47 +0100
x86/mm: Remove
lt(). Also rename the kernel
pgd/p4d pointers to pgd_k/p4d_k so that their names are consistent in
the file.
Suggested-by: Andy Lutomirski
Signed-off-by: Toshi Kani
Cc: Thomas Gleixner
Cc: Ingo Molnar
Cc: "H. Peter Anvin"
Cc: Borislav Petkov
Cc: Andy Lutomirski
Cc: Gratian Crisan
-
Commit-ID: 18a955219bf7d9008ce480d4451b6b8bf4483a22
Gitweb: https://git.kernel.org/tip/18a955219bf7d9008ce480d4451b6b8bf4483a22
Author: Toshi Kani
AuthorDate: Tue, 13 Mar 2018 11:03:46 -0600
Committer: Thomas Gleixner
CommitDate: Wed, 14 Mar 2018 20:22:42 +0100
x86/mm: Fix
t;)
Signed-off-by: Toshi Kani
Cc: Michal Hocko
Cc: Andrew Morton
Cc: Thomas Gleixner
Cc: Ingo Molnar
Cc: "H. Peter Anvin"
Cc: Borislav Petkov
Cc: Matthew Wilcox
Cc:
---
arch/x86/mm/pgtable.c | 28 ++--
1 file changed, 26 insertions(+), 2 deletions(-)
diff
and arm64, which
work as workaround.
Reported-by: Lei Li
Signed-off-by: Toshi Kani
Cc: Catalin Marinas
Cc: Wang Xuefeng
Cc: Will Deacon
Cc: Hanjun Guo
Cc: Michal Hocko
Cc: Andrew Morton
Cc: Thomas Gleixner
Cc: Ingo Molnar
Cc: "H. Peter Anvin"
Cc: Borislav Petkov
Cc: Matthew
g the interfaces.
A separate patch (not included in this series) is necessary for arm64.
[1] https://patchwork.kernel.org/patch/10134581/
---
v2
- Added cc to stable (Andrew Morton)
- Added proper function headers (Matthew Wilcox)
- Added descriptions why fixing in the ioremap path. (Will Deacon)
---
lt(). Also rename the kernel
pgd/p4d pointers to pgd_k/p4d_k so that their names are consistent in
the file.
Suggested-by: Andy Lutomirski
Signed-off-by: Toshi Kani
Cc: Thomas Gleixner
Cc: Ingo Molnar
Cc: "H. Peter Anvin"
Cc: Borislav Petkov
Cc: Andy Lutomirski
Cc: Gratian Cris
vmalloc_fault().
[1] https://lkml.org/lkml/2018/3/8/1281
---
Toshi Kani (2):
1/2 x86/mm: fix vmalloc_fault to use pXd_large
2/2 x86/mm: remove pointless checks in vmalloc_fault
---
arch/x86/mm/fault.c | 62 +
1 file changed, 20 insertions
t;x86/mm: Fix vmalloc_fault() to handle large pages
properly")
Reported-by: Gratian Crisan
Signed-off-by: Toshi Kani
Cc: Thomas Gleixner
Cc: Ingo Molnar
Cc: "H. Peter Anvin"
Cc: Borislav Petkov
Cc: Andy Lutomirski
Cc: Gratian Crisan
Cc: sta...@vger.kernel.org
---
arch/x
Implement pud_free_pmd_page() and pmd_free_pte_page() on x86, which
clear a given pud/pmd entry and free up lower level page table(s).
Address range associated with the pud/pmd entry must have been purged
by INVLPG.
Signed-off-by: Toshi Kani
Cc: Michal Hocko
Cc: Andrew Morton
Cc: Thomas
workaround.
Reported-by: Lei Li
Signed-off-by: Toshi Kani
Cc: Catalin Marinas
Cc: Wang Xuefeng
Cc: Will Deacon
Cc: Hanjun Guo
Cc: Michal Hocko
Cc: Andrew Morton
Cc: Thomas Gleixner
Cc: Ingo Molnar
Cc: "H. Peter Anvin"
Cc: Borislav Petkov
---
arch/arm64/mm/mmu.c
https://patchwork.kernel.org/patch/10134581/
---
Toshi Kani (2):
1/2 mm/vmalloc: Add interfaces to free unused page table
2/2 x86/mm: implement free pmd/pte page interfaces
---
arch/arm64/mm/mmu.c | 10 ++
arch/x86/mm/pgtable.c | 44 +++
in
This patchset updates label storage size check and index block size
calculation according to UEFI 2.7 spec.
---
Toshi Kani (2):
1/2 libnvdimm, label: change min label storage size per UEFI 2.7
2/2 libnvdimm, label: change nvdimm_num_label_slots per UEFI 2.7
---
drivers/nvdimm/label.c | 34
ND_LABEL_MIN_SIZE to (256 * 4) so that NVDIMM devices with
the minimum label storage area do not fail with the size check in
nvdimm_init_config_data().
Signed-off-by: Toshi Kani
Cc: Dan Williams
---
drivers/nvdimm/label.h |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nvdimm
-by: Toshi Kani
Cc: Dan Williams
---
drivers/nvdimm/label.c | 34 --
1 file changed, 24 insertions(+), 10 deletions(-)
diff --git a/drivers/nvdimm/label.c b/drivers/nvdimm/label.c
index de66c02f6140..be3ccf7c5413 100644
--- a/drivers/nvdimm/label.c
+++ b/drivers
gned-off-by: Toshi Kani
Cc: Dan Williams
Cc: "Rafael J. Wysocki"
---
drivers/acpi/nfit/core.c |3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c
index abeb4df4f22e..b28ce440a06f 100644
--- a/drivers/acpi/nfit/core.c
+++ b/dri
les/538438/
Signed-off-by: Toshi Kani
Cc: Borislav Petkov
Cc: Mauro Carvalho Chehab
Cc: Tony Luck
---
v5
- Remove prefix from 'force_load'
- Update comment of force_load option
---
drivers/edac/ghes_edac.c | 28 +++-
1 file changed, 23 insertions(+), 5 deleti
check in acpi_blacklisted() to a new common
utility function, acpi_match_platform_list(), so that other
drivers do not have to implement their own version.
There is no change in functionality.
Signed-off-by: Toshi Kani
Cc: "Rafael J. Wysocki"
Cc: Borislav Petkov
---
drivers/acpi/b
Convert to use acpi_match_platform_list() for the platform check.
There is no change in functionality.
Signed-off-by: Toshi Kani
Acked-by: Srinivas Pandruvada
Reviewed-by: Borislav Petkov
Cc: "Rafael J. Wysocki"
Cc: Srinivas Pandruvada
Cc: Len Brown
Cc: Borislav Petkov
---
drive
edac_mc_add_mc().
Signed-off-by: Toshi Kani
Suggested-by: Borislav Petkov
Cc: Borislav Petkov
Cc: Mauro Carvalho Chehab
Cc: Tony Luck
---
drivers/edac/edac_mc.c |7 ++-
drivers/edac/edac_mc.h |8
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/drivers/edac
4)
- Change edac_mc_owner to const char * (patch 4)
- Change to call edac_get_owner() at the beginning (patch 5)
- Remove ".c" from mod_name (patch 5)
v2:
- Address review comments (patch 1)
- Add OSC APEI check (patch 3)
- Avoid multiple dmi_walk (patch 4)
- Add EDAC MC owner chec
, remove ".c" from module names of pnp2_edac, sb_edac,
and skx_edac.
Signed-off-by: Toshi Kani
Suggested-by: Borislav Petkov
Cc: Borislav Petkov
Cc: Mauro Carvalho Chehab
Cc: Tony Luck
---
drivers/edac/amd64_edac.c |5 +
drivers/edac/pnd2_edac.c |9 -
dr
les/538438/
Signed-off-by: Toshi Kani
Cc: Borislav Petkov
Cc: Mauro Carvalho Chehab
Cc: Tony Luck
---
drivers/edac/ghes_edac.c | 29 -
1 file changed, 24 insertions(+), 5 deletions(-)
diff --git a/drivers/edac/ghes_edac.c b/drivers/edac/ghes_edac.c
index 8d904df..0030
- Add OSC APEI check (patch 3)
- Avoid multiple dmi_walk (patch 4)
- Add EDAC MC owner check (patch 6,7)
---
Toshi Kani (5):
1/5 ACPI / blacklist: add acpi_match_platform_list()
2/5 intel_pstate: convert to use acpi_match_platform_list()
3/5 ghes_edac: add platform check to enable ghes_edac
Convert to use acpi_match_platform_list() for the platform check.
There is no change in functionality.
Signed-off-by: Toshi Kani
Cc: "Rafael J. Wysocki"
Cc: Srinivas Pandruvada
Cc: Len Brown
Cc: Borislav Petkov
---
drivers/cpufreq/intel_pstat
, remove ".c" from module names of pnp2_edac, sb_edac,
and skx_edac.
Signed-off-by: Toshi Kani
Suggested-by: Borislav Petkov
Cc: Borislav Petkov
Cc: Mauro Carvalho Chehab
Cc: Tony Luck
---
drivers/edac/amd64_edac.c |5 +
drivers/edac/pnd2_edac.c |9 -
dr
les/538438/
Signed-off-by: Toshi Kani
Cc: Borislav Petkov
Cc: Mauro Carvalho Chehab
Cc: Tony Luck
---
drivers/edac/ghes_edac.c | 28 +++-
1 file changed, 23 insertions(+), 5 deletions(-)
diff --git a/drivers/edac/ghes_edac.c b/drivers/edac/ghes_edac.c
index 4e61a62..367e
check in acpi_blacklisted() to a new common
utility function, acpi_match_platform_list(), so that other
drivers do not have to implement their own version.
There is no change in functionality.
Signed-off-by: Toshi Kani
Cc: "Rafael J. Wysocki"
Cc: Borislav Petkov
---
drivers/acpi/b
edac_mc_add_mc().
Signed-off-by: Toshi Kani
Suggested-by: Borislav Petkov
Cc: Borislav Petkov
Cc: Mauro Carvalho Chehab
Cc: Tony Luck
---
drivers/edac/edac_mc.c |7 ++-
drivers/edac/edac_mc.h |8
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/drivers/edac
check in acpi_blacklisted() to a new common
utility function, acpi_match_oemlist(), so that other drivers
do not have to implement their own version.
There is no change in functionality.
Signed-off-by: Toshi Kani
Cc: "Rafael J. Wysocki"
Cc: Borislav Petkov
---
drivers/acpi/blacklis
nitialized.
Signed-off-by: Toshi Kani
Suggested-by: Borislav Petkov
Cc: Borislav Petkov
Cc: Mauro Carvalho Chehab
---
drivers/edac/ghes_edac.c |9 ++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/drivers/edac/ghes_edac.c b/drivers/edac/ghes_edac.c
index 4e61a62..2e9c
S properly.
Add check to 'osc_sb_apei_support_acked' before calling
ghes_edac_register() to restrict that ghes_edac is enabled
on platforms with APEI support capability set in _OSC.
Signed-off-by: Toshi Kani
Cc: "Rafael J. Wysocki"
Cc: Borislav Petkov
Cc: Mauro Carvalho Cheha
Convert to use acpi_match_oemlist() for the platform check.
There is no change in functionality.
Signed-off-by: Toshi Kani
Cc: "Rafael J. Wysocki"
Cc: Srinivas Pandruvada
Cc: Len Brown
Cc: Borislav Petkov
---
drivers/cpufreq/intel_pstate.c | 64 -
38/
Signed-off-by: Toshi Kani
Cc: Borislav Petkov
Cc: Mauro Carvalho Chehab
Cc: Tony Luck
---
drivers/edac/ghes_edac.c | 29 +++--
1 file changed, 23 insertions(+), 6 deletions(-)
diff --git a/drivers/edac/ghes_edac.c b/drivers/edac/ghes_edac.c
index 2e9ce9c..72bab02 10
optimization and there is no functional change.
Signed-off-by: Toshi Kani
Suggested-by: Borislav Petkov
Cc: Borislav Petkov
Cc: Mauro Carvalho Chehab
Cc: Tony Luck
---
drivers/edac/amd64_edac.c |3 +++
drivers/edac/pnd2_edac.c |7 ++-
drivers/edac/sb_edac.c|7
init code.
Patch 5 introduces platform check to ghes_edac.
Patch 6-7 optimizes regular edac driver's init code when ghes_edac is used.
v2:
- Address review comments (patch 1).
- Add OSC APEI check (patch 3).
- Avoid multiple dmi_walk (patch 4).
- Add EDAC MC owner check (patch 6,7)
---
beginning of initialization.
Also change the owner check to string comparison from address check.
Signed-off-by: Toshi Kani
Cc: Borislav Petkov
Cc: Mauro Carvalho Chehab
Cc: Tony Luck
---
drivers/edac/edac_mc.c | 15 ++-
drivers/edac/edac_mc.h | 12
2 files changed, 26
intel_pstate driver to use acpi_match_oemlist().
Patch 3 introduces a platform check to the ghes_edac driver.
---
Toshi Kani (3):
1/3 ACPI / blacklist: add acpi_match_oemlist() interface
2/3 intel_pstate: convert to use acpi_match_oemlist()
3/3 ghes_edac: add platform check to enable ghes_edac
Convert to use acpi_match_oemlist() for the platform type check.
There is no change in functionality.
Signed-off-by: Toshi Kani
Cc: "Rafael J. Wysocki"
Cc: Srinivas Pandruvada
Cc: Len Brown
Cc: Borislav Petkov
Cc: Thomas Gleixner
---
drivers/cpufreq/intel_pstat
les/538438/
Signed-off-by: Toshi Kani
Cc: Borislav Petkov
Cc: Mauro Carvalho Chehab
Cc: Thomas Gleixner
---
drivers/edac/ghes_edac.c | 28 +++-
1 file changed, 23 insertions(+), 5 deletions(-)
diff --git a/drivers/edac/ghes_edac.c b/drivers/edac/ghes_edac.c
ind
type check in acpi_blacklisted() to a common
utility function, acpi_match_oemlist(), so that other drivers
do not have to implement their own.
There is no change in functionality.
Signed-off-by: Toshi Kani
Cc: "Rafael J. Wysocki"
Cc: Borislav Petkov
Cc: Thomas Gleixner
---
dr
27; properly.
Fixes: 0caeef63e6d2f866d85bb507bf63e0ce8ec91cef
Signed-off-by: Toshi Kani
Cc: Dan Williams
Cc: Vishal Verma
Cc:
---
drivers/nvdimm/core.c |7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/nvdimm/core.c b/drivers/nvdimm/core.c
index 2dee908..9
the Query ARS Status function to
retrieve the records.
Add support to call a Start ARS from acpi_nfit_uc_error_notify()
with ND_ARS_RETURN_PREV_DATA set when HW_ERROR_SCRUB_ON is not set.
Link: http://www.uefi.org/sites/default/files/resources/ACPI_6_2.pdf
Signed-off-by: Toshi Kani
Cc: Dan
the Query ARS Status function to
retrieve the records.
Add support to call a Start ARS from acpi_nfit_uc_error_notify()
with ND_ARS_RETURN_PREV_DATA set when HW_ERROR_SCRUB_ON is not set.
Link: http://www.uefi.org/sites/default/files/resources/ACPI_6_2.pdf
Signed-off-by: Toshi Kani
Cc: Dan
en their badblocks information
is re-evaluated (but is not necessarily changed) during run-time.
Signed-off-by: Toshi Kani
Cc: Dan Williams
Cc: Vishal Verma
Cc: Linda Knippers
---
v2: Send notifications for the clearing case
---
drivers/nvdimm/bus.c|3 +++
drivers/nvdimm/nd.h |
arily changed) during run-time.
Signed-off-by: Toshi Kani
Cc: Dan Williams
Cc: Vishal Verma
Cc: Linda Knippers
---
drivers/nvdimm/nd.h |1 +
drivers/nvdimm/pmem.c | 12
drivers/nvdimm/pmem.h |1 +
drivers/nvdimm/region.c | 12 ++--
4 files changed, 24 inser
the Query ARS Status function to
retrieve the records.
Add support to call a Start ARS from acpi_nfit_uc_error_notify()
with ND_ARS_RETURN_PREV_DATA set when HW_ERROR_SCRUB_ON is not set.
Link: http://www.uefi.org/sites/default/files/resources/ACPI_6_2.pdf
Signed-off-by: Toshi Kani
Cc: Dan
consuming the new
error.
v2:
- Set flags Bit[1] for Start ARS. (Dan Williams)
Link: http://www.uefi.org/sites/default/files/resources/ACPI_6_2.pdf
---
Toshi Kani (2):
1/2 acpi/nfit: Add support of NVDIMM memory error notification in ACPI 6.2
2/2 acpi/nfit: Issue Start ARS to retrieve existing
://www.uefi.org/sites/default/files/resources/ACPI_6_2.pdf
Signed-off-by: Toshi Kani
Cc: Dan Williams
Cc: Rafael J. Wysocki
Cc: Vishal Verma
Cc: Linda Knippers
---
drivers/acpi/nfit/core.c | 28 ++--
drivers/acpi/nfit/nfit.h |1 +
2 files changed, 23 insertions
://www.uefi.org/sites/default/files/resources/ACPI_6_2.pdf
Signed-off-by: Toshi Kani
Cc: Dan Williams
Cc: Rafael J. Wysocki
Cc: Vishal Verma
---
drivers/acpi/nfit/core.c | 28 ++--
drivers/acpi/nfit/nfit.h |1 +
2 files changed, 23 insertions(+), 6 deletions
right direction, or we should change the
modularity to let dax_pmem call alloc_dax() with its dax_pmem (or
I completely missed something).
Signed-off-by: Toshi Kani
Cc: Dan Williams
Cc: Dave Jiang
---
drivers/dax/device-dax.h |4 +++-
drivers/dax/device.c | 22
ND_CMD_CLEAR_ERROR command returns 'clear_err.cleared', the length
of error actually cleared, which may be smaller than its requested
'len'.
Change nvdimm_clear_poison() to call nvdimm_forget_poison() with
'clear_err.cleared' when this value is valid.
Signed-off-by
nvdimm_clear_poison() to update backblocks at the region
level to keep them consistent.
Signed-off-by: Toshi Kani
Cc: Dan Williams
Cc: Dave Jiang
Cc: Vishal Verma
---
Based on 'libnvdimm-for-next'.
---
drivers/nvdimm/bus.c |9 +
1 file changed, 9 insertions(+)
diff --git a/driv
nd_region and badblocks pointers
properly for BTT.
Signed-off-by: Toshi Kani
Cc: Dan Williams
Cc: Vishal Verma
---
drivers/nvdimm/pmem.c | 37 +
1 file changed, 25 insertions(+), 12 deletions(-)
diff --git a/drivers/nvdimm/pmem.c b/drivers/nvdimm/pmem.c
nvdimm_clear_poison() expects a physical address, not an offset.
Fix nsio_rw_bytes() to call nvdimm_clear_poison() with a physical
address.
Signed-off-by: Toshi Kani
Cc: Dan Williams
Cc: Dave Jiang
Cc: Vishal Verma
---
drivers/nvdimm/claim.c |3 ++-
1 file changed, 2 insertions(+), 1
e backport
it up to 4.4.
[1] 'Commit bdee237c0343 ("x86: mm: Use 2GB memory block size on
large-memory x86-64 systems")'
v2:
- Rebase to the -mm tree. (Andrew Morton)
- Add more descriptions about the issue. (Andrew Morton)
- Add cc to stable kernels. (Greg Kroah-Hart
operly setting 'sec_end_pfn' to the next section pfn.
Also make sure that this function returns 1 only when the range
belongs to a zone.
Signed-off-by: Toshi Kani
Cc: Andrew Morton
Cc: Andrew Banman
Cc: Reza Arbab
Cc: # v4.4+
---
mm/memory_hotplug.c | 12
1 file changed
e valid
range.
[1] 'Commit bdee237c0343 ("x86: mm: Use 2GB memory block size on
large-memory x86-64 systems")'
Signed-off-by: Toshi Kani
Cc: Greg Kroah-Hartman
Cc: Andrew Morton
Cc: Zhang Zhen
Cc: Reza Arbab
Cc: David Rientjes
Cc: Dan Williams
Cc: # v4.4+
---
drive
alid_zones+0x6f/0x160
Since test_pages_in_a_zone() already checks holes, extend this
function to return 'valid_start' and 'valid_end' for a given range.
show_valid_zones() then proceeds with the valid range.
Signed-off-by: Toshi Kani
Cc: Greg Kroah-Hartman
Cc: Andrew Morton
Cc:
operly setting 'sec_end_pfn' to the next section pfn.
Also make sure that this function returns 1 only when the range
belongs to a zone.
Signed-off-by: Toshi Kani
Cc: Andrew Morton
Cc: Andrew Banman
Cc: Reza Arbab
---
mm/memory_hotplug.c | 12
1 file changed
fixes this issue.
Patch 1 first fixes an issue in test_pages_in_a_zone() that it does
not test the start section.
Patch 2 then fixes the kernel oops by extending test_pages_in_a_zone()
to return valid [start, end).
[1] 2GB when the system has 64GB or larger memory.
---
Toshi Kani (2):
1/2 mm
access directly.
Signed-off-by: Toshi Kani
Cc: Andrew Morton
Cc: Dan Williams
Cc: Alexander Viro
Cc: Dave Chinner
Cc: Ross Zwisler
Cc: Joe Perches
---
v6:
- Change min_t() to max_t(), and sector_t to size_t. (Joe Perches)
---
fs/dax.c | 15 +++
1 file changed, 15 insertions
access directly.
Signed-off-by: Toshi Kani
Cc: Andrew Morton
Cc: Dan Williams
Cc: Alexander Viro
Cc: Dave Chinner
Cc: Ross Zwisler
Cc: Joe Perches
---
v5:
- Add a flag in case 'start' is 0 after 'jiffies' rolls over.
(Dan Williams)
- Fix a signed/unsigned conversion. (
access directly.
Signed-off-by: Toshi Kani
Cc: Andrew Morton
Cc: Dan Williams
Cc: Alexander Viro
Cc: Dave Chinner
Cc: Ross Zwisler
---
v4: Rebased to 4.10, applied the v3 change to new dax_iomap_rw().
---
fs/dax.c | 13 +
1 file changed, 13 insertions(+)
diff --git a/fs/dax.c b/fs
() and generic_end_io_acct() for
both dax and libnvdimm. (Dave Chinner, Dan Williams)
v2:
- Set a minimum of one sector. (Dan Williams)
---
Toshi Kani (2):
1/2 DAX: enable iostat for read/write
2/2 libnvdimm: use generic iostat interfaces
---
drivers/nvdimm/core.c | 29
nd_iostat_start() and nd_iostat_end() implement the same functionality
that generic_start_io_acct() and generic_end_io_acct() already provide.
Change nd_iostat_start() and nd_iostat_end() to call the generic iostat
interfaces. There is no change in the nd interfaces.
Signed-off-by: Toshi Kani
access directly.
Signed-off-by: Toshi Kani
Cc: Andrew Morton
Cc: Dan Williams
Cc: Alexander Viro
Cc: Dave Chinner
Cc: Ross Zwisler
---
fs/dax.c | 15 +++
1 file changed, 15 insertions(+)
diff --git a/fs/dax.c b/fs/dax.c
index 014defd..2646969 100644
--- a/fs/dax.c
+++ b/fs/dax.c
access directly.
Signed-off-by: Toshi Kani
Cc: Andrew Morton
Cc: Alexander Viro
Cc: Dan Williams
Cc: Ross Zwisler
---
v2:
- Set a minimum of one sector (Dan Williams)
---
fs/dax.c | 37 +
1 file changed, 37 insertions(+)
diff --git a/fs/dax.c b/fs/dax.c
index
access directly.
Signed-off-by: Toshi Kani
Cc: Andrew Morton
Cc: Alexander Viro
Cc: Dan Williams
Cc: Ross Zwisler
---
fs/dax.c | 37 +
1 file changed, 37 insertions(+)
diff --git a/fs/dax.c b/fs/dax.c
index 014defd..3c2 100644
--- a/fs/dax.c
+++ b/fs
error message.
Signed-off-by: Toshi Kani
Cc: Dan Williams
Cc: Vishal Verma
---
drivers/nvdimm/pmem.c |8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/nvdimm/pmem.c b/drivers/nvdimm/pmem.c
index 42b3a82..2461843 100644
--- a/drivers/nvdimm/pmem.c
+++ b/drivers
ge=" option to
enable huge page mappings.
Reported-by: Hillf Danton
Signed-off-by: Toshi Kani
Cc: Andrew Morton
Cc: Kirill A. Shutemov
Cc: Hugh Dickins
---
mm/shmem.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/shmem.c b/mm/shmem.c
index fd8b2b5..aec5b49 100644
changes shmem_get_unmapped_area() to call
__thp_get_unmapped_area() for sharing the code.
This patch-set applies on top of my patchset below.
https://lkml.org/lkml/2016/8/29/560
---
Toshi Kani (2):
1/2 shmem: fix tmpfs to handle the huge= option properly
2/2 shmem: call __thp_get_unmapped_area to
/2016/8/29/620
Suggested-by: Kirill A. Shutemov
Signed-off-by: Toshi Kani
Cc: Andrew Morton
Cc: Kirill A. Shutemov
Cc: Hugh Dickins
Cc: Matthew Wilcox
Cc: Dan Williams
---
include/linux/huge_mm.h | 10 +++
mm/shmem.c | 68 +--
2
en aligns it for a DAX file.
The patch is based on Matthew Wilcox's change that allows adding
support of the pud page size easily.
[1]: https://github.com/axboe/fio/blob/master/engines/mmap.c
Signed-off-by: Toshi Kani
Cc: Andrew Morton
Cc: Dan Williams
Cc: Matthew Wilcox
Cc: Ross Zwisler
To support DAX pmd mappings with unmodified applications,
filesystems need to align an mmap address by the pmd size.
Call thp_get_unmapped_area() from f_op->get_unmapped_area.
Note, there is no change in behavior for a non-DAX file.
Signed-off-by: Toshi Kani
Cc: Andrew Morton
Cc: Dan Willi
vide their get_unmapped_area().
(Matthew Wilcox)
- Add more description about the benefit. (Matthew Wilcox)
---
Toshi Kani (2):
1/2 thp, dax: add thp_get_unmapped_area for pmd mappings
2/2 ext2/4, xfs, blk: call thp_get_unmapped_area() for pmd mappings
---
fs/ext2/file.c | 1 +
fs/ext4/file.c
ory() has set up direct mappings to the NVDIMM
range with altmap, pfn_first() should not modify the start pfn.
Change pfn_first() to simply return pfn of res->start.
Reported-and-tested-by: Abhilash Kumar Mulumudi
Signed-off-by: Toshi Kani
Cc: Dan Williams
Cc: Andrew Morton
Cc: Ard Biesheuv
dimm_probe() to accept the case that the CONFIG_DATA
command is not implemented for NVDIMM-Ns. The driver attaches
without ndd, which keeps it no-op to the device.
Reported-by: Brian Boylston
Signed-off-by: Toshi Kani
Cc: Dan Williams
---
v2:
- Fix failures in ndctl unit test suite. (Dan Williams)
1 - 100 of 1776 matches
Mail list logo