<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/platform/x86/uv_sysfs.c, branch linux-6.9.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-6.9.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-6.9.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2023-02-10T16:24:37Z</updated>
<entry>
<title>x86/platform/uv: Make kobj_type structure constant</title>
<updated>2023-02-10T16:24:37Z</updated>
<author>
<name>Thomas Weißschuh</name>
<email>linux@weissschuh.net</email>
</author>
<published>2023-02-07T16:40:46Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=ad76d9b88c9f6065663fc2005f4b219984b3f8d8'/>
<id>urn:sha1:ad76d9b88c9f6065663fc2005f4b219984b3f8d8</id>
<content type='text'>
Since commit ee6d3dd4ed48 ("driver core: make kobj_type constant.")
the driver core allows the usage of const struct kobj_type.

Take advantage of this to constify the structure definition to prevent
modification at runtime.

Signed-off-by: Thomas Weißschuh &lt;linux@weissschuh.net&gt;
Reviewed-by: Justin Ernst &lt;justin.ernst@hpe.com&gt;
Link: https://lore.kernel.org/r/20230207-kobj_type-pdx86-v1-3-8e2c4fb83105@weissschuh.net
Reviewed-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
</content>
</entry>
<entry>
<title>platform/x86: uv_sysfs: Use sysfs_emit() instead of scnprintf()</title>
<updated>2022-12-08T16:07:01Z</updated>
<author>
<name>ye xingchen</name>
<email>ye.xingchen@zte.com.cn</email>
</author>
<published>2022-12-02T09:05:12Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=d240849c75f4efc931f38d3529dcbcbd76adbd81'/>
<id>urn:sha1:d240849c75f4efc931f38d3529dcbcbd76adbd81</id>
<content type='text'>
Follow the advice of the Documentation/filesystems/sysfs.rst and show()
should only use sysfs_emit() or sysfs_emit_at() when formatting the
value to be returned to user space.

Signed-off-by: ye xingchen &lt;ye.xingchen@zte.com.cn&gt;
Reviewed-by: Justin Ernst &lt;justin.ernst@hpe.com&gt;
Link: https://lore.kernel.org/r/202212021705128095546@zte.com.cn
Reviewed-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
</content>
</entry>
<entry>
<title>x86/platform/uv: use default_groups in kobj_type</title>
<updated>2021-12-30T18:32:23Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2021-12-29T14:13:32Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=afca4cbe3a25dbe16424e6199793b38f41a17ed9'/>
<id>urn:sha1:afca4cbe3a25dbe16424e6199793b38f41a17ed9</id>
<content type='text'>
There are currently 2 ways to create a set of sysfs files for a
kobj_type, through the default_attrs field, and the default_groups
field.  Move the uv sysfs code to use default_groups field which has
been the preferred way since aa30f47cf666 ("kobject: Add support for
default attribute groups to kobj_type") so that we can soon get rid of
the obsolete default_attrs field.

Cc: Justin Ernst &lt;justin.ernst@hpe.com&gt;
Cc: Hans de Goede &lt;hdegoede@redhat.com&gt;
Cc: Mark Gross &lt;markgross@kernel.org&gt;
Cc: platform-driver-x86@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Link: https://lore.kernel.org/r/20211229141332.2552428-1-gregkh@linuxfoundation.org
Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
</content>
</entry>
<entry>
<title>x86/platform/uv: Constify static attribute_group struct</title>
<updated>2021-06-16T15:47:55Z</updated>
<author>
<name>Rikard Falkeborn</name>
<email>rikard.falkeborn@gmail.com</email>
</author>
<published>2021-06-05T20:38:07Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=77d06ec65a281c5382f4ea2398a267dc3bd7bfe3'/>
<id>urn:sha1:77d06ec65a281c5382f4ea2398a267dc3bd7bfe3</id>
<content type='text'>
The only use of base_attr_group and hubless_base_attr_group is to pass
their addresses to sysfs_create_group() and sysfs_remove_group(), both
which takes pointers to const attribute_group structs. Make them const
to allow the compiler to put them in read-only memory.

Signed-off-by: Rikard Falkeborn &lt;rikard.falkeborn@gmail.com&gt;
Reviewed-by: Justin Ernst &lt;justin.ernst@hpe.com&gt;
Link: https://lore.kernel.org/r/20210605203807.60547-5-rikard.falkeborn@gmail.com
Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
</content>
</entry>
<entry>
<title>x86/platform/uv: Add sysfs hubless leaves</title>
<updated>2020-12-07T18:51:05Z</updated>
<author>
<name>Mike Travis</name>
<email>mike.travis@hpe.com</email>
</author>
<published>2020-11-28T03:42:25Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=433e817ae157479844d84b186dd4d165a3f2b06e'/>
<id>urn:sha1:433e817ae157479844d84b186dd4d165a3f2b06e</id>
<content type='text'>
Add uv_sysfs hubless leaves for UV hubless systems.

Signed-off-by: Mike Travis &lt;mike.travis@hpe.com&gt;
Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
Reviewed-by: Steve Wahl &lt;steve.wahl@hpe.com&gt;
Acked-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Link: https://lkml.kernel.org/r/20201128034227.120869-4-mike.travis@hpe.com
</content>
</entry>
<entry>
<title>x86/platform/uv: Add sysfs leaves to replace those in procfs</title>
<updated>2020-12-07T18:49:01Z</updated>
<author>
<name>Mike Travis</name>
<email>mike.travis@hpe.com</email>
</author>
<published>2020-11-28T03:42:24Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=612a0063c9ba3aba79b9006faa0edad5f9d41162'/>
<id>urn:sha1:612a0063c9ba3aba79b9006faa0edad5f9d41162</id>
<content type='text'>
Add uv_sysfs leaves to display the info.

Signed-off-by: Mike Travis &lt;mike.travis@hpe.com&gt;
Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
Reviewed-by: Steve Wahl &lt;steve.wahl@hpe.com&gt;
Acked-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Link: https://lkml.kernel.org/r/20201128034227.120869-3-mike.travis@hpe.com
</content>
</entry>
<entry>
<title>x86/platform/uv: Make uv_pcibus_kset and uv_hubs_kset static</title>
<updated>2020-12-03T07:53:47Z</updated>
<author>
<name>Zou Wei</name>
<email>zou_wei@huawei.com</email>
</author>
<published>2020-11-30T11:11:53Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=0c683e9de0c78ee53e220eac9ee3604ca662737a'/>
<id>urn:sha1:0c683e9de0c78ee53e220eac9ee3604ca662737a</id>
<content type='text'>
Fix the following sparse warnings:

  drivers/platform/x86/uv_sysfs.c:22:13: warning: symbol \
	  'uv_pcibus_kset' was not declared. Should it be static?
  drivers/platform/x86/uv_sysfs.c:23:13: warning: symbol \
	  'uv_hubs_kset' was not declared. Should it be static?

Signed-off-by: Zou Wei &lt;zou_wei@huawei.com&gt;
Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
Acked-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Link: https://lkml.kernel.org/r/1606734713-43919-1-git-send-email-zou_wei@huawei.com
</content>
</entry>
<entry>
<title>x86/platform/uv: Fix an error code in uv_hubs_init()</title>
<updated>2020-12-03T07:51:06Z</updated>
<author>
<name>Dan Carpenter</name>
<email>dan.carpenter@oracle.com</email>
</author>
<published>2020-12-02T14:44:07Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=18d047bd89b8c1f9ba3c9b2d2f7309c953b3ce97'/>
<id>urn:sha1:18d047bd89b8c1f9ba3c9b2d2f7309c953b3ce97</id>
<content type='text'>
Return -ENOMEM on allocation failure instead of returning random stack
memory contents.

Fixes: 4fc2cf1f2daf ("x86/platform/uv: Add new uv_sysfs platform driver")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
Reviewed-by: Justin Ernst &lt;justin.ernst@hpe.com&gt;
Link: https://lkml.kernel.org/r/X8eoN/jMAJb3H3iv@mwanda
</content>
</entry>
<entry>
<title>x86/platform/uv: Add new uv_sysfs platform driver</title>
<updated>2020-11-26T13:46:11Z</updated>
<author>
<name>Justin Ernst</name>
<email>justin.ernst@hpe.com</email>
</author>
<published>2020-11-25T17:54:42Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=4fc2cf1f2daf8303000efb7c9dc0307ea638a8f3'/>
<id>urn:sha1:4fc2cf1f2daf8303000efb7c9dc0307ea638a8f3</id>
<content type='text'>
Add the uv_sysfs driver to construct a read-only sysfs interface at
/sys/firmware/sgi_uv/ to expose information gathered from UV BIOS. This
information includes:

  * UV Hub descriptions, including physical location
  * Cabling layout between hubs on the fabric
  * PCI topology, including physical location of PCI cards

Together, the information provides a robust physical description of a UV
system, useful for correlating to performance data or performing remote
support.

Signed-off-by: Justin Ernst &lt;justin.ernst@hpe.com&gt;
Signed-off-by: Borislav Petkov &lt;bp@suse.de&gt;
Reviewed-by: Steve Wahl &lt;steve.wahl@hpe.com&gt;
Acked-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Link: https://lkml.kernel.org/r/20201125175444.279074-4-justin.ernst@hpe.com
</content>
</entry>
</feed>
