Bug#1020765: Does Debian 11.x 32 bit support NVDIMM?

2022-10-05 Thread Adam Borowski
Control: severity -1 normal
Control: tags -1 +moreinfo

On Tue, Oct 04, 2022 at 05:57:12PM +, Williams, Dan J wrote:
> On Mon, 26 Sep 2022 08:26:56 + Winnie Yue  wrote:
> > Package: ndctl
> > Version: 71.1-1
> > Severity: serious

> > For Debian 11.5 32 bit, I got below info:
> > But I found that Debian 11.5 32 bit vm couldn’t recognize the NVDIMM device:
> > # dmesg | grep -i bios-e820 | grep persistent
> > [ 0.00] BIOS-e820: [mem 0x00024000-0x00043fff] 
> > persistent (type 7)
> 
> Note that this is not sufficient for advertising NVDIMM resources.  A
> Type-7 memory range still requires an ACPI NFIT to advertise the memory
> range.

Thanks Dan for this bit, I've missed it.

Winnie: please try passing the proper ACPI data; your email address suggests
that your VM is one I don't know how to operate.

> That said, why are you trying to run a 32-bit environment.  If you need a
> 32-bit userspace you can still use a 64-bit kernel.  32-bit x86 is not
> well looked after by the kernel community in general these days.

That's another point; time spent validating a 32-bit kernel isn't that
useful.  I was really shocked it can use NVDIMM at all.  In the userland,
you can't count on the stack other than the very lowest level (ie, ndctl).


Meow!
-- 
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ It's time to migrate your Imaginary Protocol from version 4i to 6i.
⢿⡄⠘⠷⠚⠋⠀
⠈⠳⣄



Bug#1020765: Does Debian 11.x 32 bit support NVDIMM?

2022-10-04 Thread Williams, Dan J
Comments inline below

On Mon, 26 Sep 2022 08:26:56 + Winnie Yue  wrote:
> Package: ndctl
> Version: 71.1-1
> Severity: serious
>
> For Debian 11.5 32 bit, I got below info:
>
> apt-cache search ndctl
>
> libndctl-dev - Development files for libndctl
>
> libndctl6 - Utility library for managing the libnvdimm subsystem
>
> ndctl - Utility for managing the nvdimm subsystem
>
> It is same to what I got from Debian 11.5 64 bit:
>
> apt-cache search ndctl
>
> libndctl-dev - Development files for libndctl
>
> libndctl6 - Utility library for managing the libnvdimm subsystem
>
> ndctl - Utility for managing the nvdimm subsystem
>
>
> From https://lists.debian.org/debian-devel/2016/12/msg00330.html, 
> https://lists.debian.org/debian-devel/2016/12/msg00343.html, NVDIMM will be 
> fully supported once OS has the package ndctl.
>
> But I found that Debian 11.5 32 bit vm couldn’t recognize the NVDIMM device:
>
>
> #cat /etc/debian_version
>
> 11.5
>
>
>
> #uname -m
>
> i686
>
>
>
> # dmesg | grep -i bios-e820 | grep persistent
>
> [ 0.00] BIOS-e820: [mem 0x00024000-0x00043fff] persistent 
> (type 7)

Note that this is not sufficient for advertising NVDIMM resources. A Type-7 
memory range still requires an ACPI NFIT to advertise the memory range.

That said, why are you trying to run a 32-bit environment. If you need a 32-bit 
userspace you can still use a 64-bit kernel. 32-bit x86 is not well looked 
after by the kernel community in general these days.



Bug#1020765: Does Debian 11.x 32 bit support NVDIMM?

2022-09-26 Thread Winnie Yue
Package: ndctl
Version: 71.1-1
Severity: serious

For Debian 11.5 32 bit, I got below info:

apt-cache search ndctl

libndctl-dev - Development files for libndctl

libndctl6 - Utility library for managing the libnvdimm subsystem

ndctl - Utility for managing the nvdimm subsystem

It is same to what I got from Debian 11.5 64 bit:

apt-cache search ndctl

libndctl-dev - Development files for libndctl

libndctl6 - Utility library for managing the libnvdimm subsystem

ndctl - Utility for managing the nvdimm subsystem


>From https://lists.debian.org/debian-devel/2016/12/msg00330.html, 
>https://lists.debian.org/debian-devel/2016/12/msg00343.html, NVDIMM will be 
>fully supported once OS has the package ndctl.

But I found that Debian 11.5 32 bit vm couldn’t recognize the NVDIMM device:


#cat /etc/debian_version

11.5



#uname -m

i686



# dmesg | grep -i bios-e820 | grep persistent

[0.00] BIOS-e820: [mem 0x00024000-0x00043fff] 
persistent (type 7)



# lsmod | grep -i pmem



# lsmod | grep -i nvdimm
The NVDIMM device has been added to Debian 11.5 32bit VM, and it appears in 
BIOS-e820 table, but no NVDIMM modules were loaded and no PMem device is listed

For Debian 11.5 64 bit vm, I got below info:

#  cat /etc/debian_version

11.5



# uname -m

x86_64



#dmesg | grep -i bios-e820 | grep persistent

[0.00] BIOS-e820: [mem 0x00024000-0x00043fff] 
persistent (type 7)



#  lsmod | grep -i pmem

dax_pmem_compat16384  0

device_dax 20480  1 dax_pmem_compat

nd_pmem24576  0

dax_pmem_core  16384  1 dax_pmem_compat

nd_btt 28672  1 nd_pmem

libnvdimm 200704  5 
dax_pmem_core,nd_btt,nd_pmem,dax_pmem_compat,nfit



# lsmod | grep -i nvdimm

libnvdimm 200704  5 
dax_pmem_core,nd_btt,nd_pmem,dax_pmem_compat,nfit
So I’d like to confirm whether Debian 11.x 32 bit support NVDIMM or not. Your 
reply would be appreciated.

Best regards,
Winnie Yue