Re: [Patch v2 2/3] firmware: dmi_scan: add SBMIOS entry and DMI tables

2015-04-23 Thread Jean Delvare
Le Tuesday 21 April 2015 à 19:03 +0300, Ivan.khoronzhuk a écrit : > On 21.04.15 18:36, Jean Delvare wrote: > > I just found that more work is needed here for the SMBIOS v3 entry > > point case. These entry points do not specify the exact length of the > > table, but only its maximum. The real world

Re: [Patch v2 2/3] firmware: dmi_scan: add SBMIOS entry and DMI tables

2015-04-21 Thread Ivan.khoronzhuk
Jean, On 21.04.15 18:36, Jean Delvare wrote: Hi again Ivan, On Mon, 20 Apr 2015 13:19:46 +0300, Ivan Khoronzhuk wrote: + bin_attr_DMI.size = dmi_len; + bin_attr_DMI.private = dmi_table; + ret = sysfs_create_bin_file(tables_kobj, &bin_attr_DMI); + if (!ret) +

Re: [Patch v2 2/3] firmware: dmi_scan: add SBMIOS entry and DMI tables

2015-04-21 Thread Jean Delvare
Hi again Ivan, On Mon, 20 Apr 2015 13:19:46 +0300, Ivan Khoronzhuk wrote: > + bin_attr_DMI.size = dmi_len; > + bin_attr_DMI.private = dmi_table; > + ret = sysfs_create_bin_file(tables_kobj, &bin_attr_DMI); > + if (!ret) > + return 0; I just found that more work is need

Re: [Patch v2 2/3] firmware: dmi_scan: add SBMIOS entry and DMI tables

2015-04-21 Thread Ivan.khoronzhuk
Hi Jean, On 21.04.15 17:24, Jean Delvare wrote: Hi Ivan, On Mon, 20 Apr 2015 13:19:46 +0300, Ivan Khoronzhuk wrote: Some utils, like dmidecode and smbios, need to access SMBIOS entry table area in order to get information like SMBIOS version, size, etc. Currently it's done via /dev/mem. But fo

Re: [Patch v2 2/3] firmware: dmi_scan: add SBMIOS entry and DMI tables

2015-04-21 Thread Jean Delvare
Hi Ivan, On Mon, 20 Apr 2015 13:19:46 +0300, Ivan Khoronzhuk wrote: > Some utils, like dmidecode and smbios, need to access SMBIOS entry > table area in order to get information like SMBIOS version, size, etc. > Currently it's done via /dev/mem. But for situation when /dev/mem > usage is disabled,

Re: [Patch v2 2/3] firmware: dmi_scan: add SBMIOS entry and DMI tables

2015-04-20 Thread Roy Franz
On Mon, Apr 20, 2015 at 3:19 AM, Ivan Khoronzhuk wrote: > Some utils, like dmidecode and smbios, need to access SMBIOS entry > table area in order to get information like SMBIOS version, size, etc. > Currently it's done via /dev/mem. But for situation when /dev/mem > usage is disabled, the utils h

[Patch v2 2/3] firmware: dmi_scan: add SBMIOS entry and DMI tables

2015-04-20 Thread Ivan Khoronzhuk
Some utils, like dmidecode and smbios, need to access SMBIOS entry table area in order to get information like SMBIOS version, size, etc. Currently it's done via /dev/mem. But for situation when /dev/mem usage is disabled, the utils have to use dmi sysfs instead, which doesn't represent SMBIOS entr