<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/gpu/nova-core/bitfield.rs, branch linux-6.19.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-6.19.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-6.19.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2025-10-25T04:16:31Z</updated>
<entry>
<title>gpu: nova-core: bitfield: remove BitOr implementation</title>
<updated>2025-10-25T04:16:31Z</updated>
<author>
<name>Alexandre Courbot</name>
<email>acourbot@nvidia.com</email>
</author>
<published>2025-10-22T10:50:58Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=ca16b15e78f4dee1631c0a68693f5e7d9b3bb3ec'/>
<id>urn:sha1:ca16b15e78f4dee1631c0a68693f5e7d9b3bb3ec</id>
<content type='text'>
Using this operand can produce invalid values. It also doesn't bring
any benefit as one can use the builder pattern to assemble a new value.

Reported-by: Edwin Peer &lt;epeer@nvidia.com&gt;
Link: https://lore.kernel.org/rust-for-linux/F3853912-2C1C-4F9B-89B0-3168689F35B3@nvidia.com/
Reviewed-by: Joel Fernandes &lt;joelagnelf@nvidia.com&gt;
Reviewed-by: Danilo Krummrich &lt;dakr@kernel.org&gt;
Signed-off-by: Alexandre Courbot &lt;acourbot@nvidia.com&gt;
Message-ID: &lt;20251022-nova-bitfield-v1-3-73bc0988667b@nvidia.com&gt;
</content>
</entry>
<entry>
<title>gpu: nova-core: bitfield: simplify expression</title>
<updated>2025-10-25T04:16:31Z</updated>
<author>
<name>Alexandre Courbot</name>
<email>acourbot@nvidia.com</email>
</author>
<published>2025-10-22T10:50:57Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=e6b8932b9374bd0591bb4dda3eb3e4f1cc50655e'/>
<id>urn:sha1:e6b8932b9374bd0591bb4dda3eb3e4f1cc50655e</id>
<content type='text'>
The shift is more easily expressed by the index of the lowest bit of the
field.

Reported-by: Edwin Peer &lt;epeer@nvidia.com&gt;
Link: https://lore.kernel.org/rust-for-linux/F3853912-2C1C-4F9B-89B0-3168689F35B3@nvidia.com/
Reviewed-by: Joel Fernandes &lt;joelagnelf@nvidia.com&gt;
Reviewed-by: Danilo Krummrich &lt;dakr@kernel.org&gt;
Signed-off-by: Alexandre Courbot &lt;acourbot@nvidia.com&gt;
Message-ID: &lt;20251022-nova-bitfield-v1-2-73bc0988667b@nvidia.com&gt;
</content>
</entry>
<entry>
<title>gpu: nova-core: bitfield: simplify condition</title>
<updated>2025-10-25T04:16:31Z</updated>
<author>
<name>Alexandre Courbot</name>
<email>acourbot@nvidia.com</email>
</author>
<published>2025-10-22T10:50:56Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=fa08ec789f81425c3722fd2c6df825e06c810b43'/>
<id>urn:sha1:fa08ec789f81425c3722fd2c6df825e06c810b43</id>
<content type='text'>
This condition was uselessly convoluted.

Reported-by: Edwin Peer &lt;epeer@nvidia.com&gt;
Link: https://lore.kernel.org/rust-for-linux/F3853912-2C1C-4F9B-89B0-3168689F35B3@nvidia.com/
Reviewed-by: Joel Fernandes &lt;joelagnelf@nvidia.com&gt;
Reviewed-by: Danilo Krummrich &lt;dakr@kernel.org&gt;
Signed-off-by: Alexandre Courbot &lt;acourbot@nvidia.com&gt;
Message-ID: &lt;20251022-nova-bitfield-v1-1-73bc0988667b@nvidia.com&gt;
</content>
</entry>
<entry>
<title>gpu: nova-core: bitfield: Add support for custom visibility</title>
<updated>2025-10-21T13:40:00Z</updated>
<author>
<name>Joel Fernandes</name>
<email>joelagnelf@nvidia.com</email>
</author>
<published>2025-10-16T15:13:23Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=77ed4376d7c5de8be1f2612d6b4777077fb5fdb2'/>
<id>urn:sha1:77ed4376d7c5de8be1f2612d6b4777077fb5fdb2</id>
<content type='text'>
Add support for custom visibility to allow for users to control
visibility of the structure and helpers.

Reviewed-by: Alexandre Courbot &lt;acourbot@nvidia.com&gt;
Reviewed-by: Elle Rhumsaa &lt;elle@weathered-steel.dev&gt;
Reviewed-by: Edwin Peer &lt;epeer@nvidia.com&gt;
Signed-off-by: Joel Fernandes &lt;joelagnelf@nvidia.com&gt;
[acourbot@nvidia.com: fix long lines warnings and typo in commit message.]
Signed-off-by: Alexandre Courbot &lt;acourbot@nvidia.com&gt;
Message-ID: &lt;20251016151323.1201196-5-joelagnelf@nvidia.com&gt;
</content>
</entry>
<entry>
<title>gpu: nova-core: bitfield: Add support for different storage widths</title>
<updated>2025-10-21T13:39:44Z</updated>
<author>
<name>Joel Fernandes</name>
<email>joelagnelf@nvidia.com</email>
</author>
<published>2025-10-16T15:13:22Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=7cabacb1aad647931980f63fa18292ad3f859544'/>
<id>urn:sha1:7cabacb1aad647931980f63fa18292ad3f859544</id>
<content type='text'>
Previously, bitfields were hardcoded to use u32 as the underlying
storage type.  Add support for different storage types (u8, u16, u32,
u64) to the bitfield macro.

New syntax is: struct Name(&lt;type ex., u32&gt;) { ... }

Reviewed-by: Alexandre Courbot &lt;acourbot@nvidia.com&gt;
Reviewed-by: Elle Rhumsaa &lt;elle@weathered-steel.dev&gt;
Reviewed-by: Edwin Peer &lt;epeer@nvidia.com&gt;
Signed-off-by: Joel Fernandes &lt;joelagnelf@nvidia.com&gt;
[acourbot@nvidia.com: fix long lines warnings.]
Signed-off-by: Alexandre Courbot &lt;acourbot@nvidia.com&gt;
Message-ID: &lt;20251016151323.1201196-4-joelagnelf@nvidia.com&gt;
</content>
</entry>
<entry>
<title>gpu: nova-core: bitfield: Move bitfield-specific code from register! into new macro</title>
<updated>2025-10-21T13:38:57Z</updated>
<author>
<name>Joel Fernandes</name>
<email>joelagnelf@nvidia.com</email>
</author>
<published>2025-10-16T15:13:21Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=71ea85be25b4f54a53ec03d5deaed52f5ee65da8'/>
<id>urn:sha1:71ea85be25b4f54a53ec03d5deaed52f5ee65da8</id>
<content type='text'>
Move the bitfield-specific code from the register macro into a new macro
called bitfield. This will be used to define structs with bitfields,
similar to C language.

Reviewed-by: Elle Rhumsaa &lt;elle@weathered-steel.dev&gt;
Reviewed-by: Alexandre Courbot &lt;acourbot@nvidia.com&gt;
Reviewed-by: Edwin Peer &lt;epeer@nvidia.com&gt;
Signed-off-by: Joel Fernandes &lt;joelagnelf@nvidia.com&gt;
Signed-off-by: Alexandre Courbot &lt;acourbot@nvidia.com&gt;
Message-ID: &lt;20251016151323.1201196-3-joelagnelf@nvidia.com&gt;
</content>
</entry>
</feed>
