Intel-Wired-Lan Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jacob Keller <jacob.e.keller@intel.com>
To: Vladimir Oltean <olteanv@gmail.com>
Cc: netdev <netdev@vger.kernel.org>,
	Intel Wired LAN <intel-wired-lan@lists.osuosl.org>,
	Anthony Nguyen <anthony.l.nguyen@intel.com>,
	Przemek Kitszel <przemyslaw.kitszel@intel.com>
Subject: Re: [Intel-wired-lan] [PATCH iwl-next v2 08/13] lib: packing: fix QUIRK_MSB_ON_THE_RIGHT behavior
Date: Tue, 3 Sep 2024 14:03:35 -0700	[thread overview]
Message-ID: <a150453e-6a98-4d57-938c-d499edf0d759@intel.com> (raw)
In-Reply-To: <20240902232524.cz77daj2tsajhrpb@skbuf>



On 9/2/2024 4:25 PM, Vladimir Oltean wrote:
> Hi Jacob,
> 
> It's very cool that you and Przemek (and possibly others) spent the time
> to untangle this. Thanks! Just a microscopic nitpick below.
> 
> On Wed, Aug 28, 2024 at 01:57:24PM -0700, Jacob Keller wrote:
>>   That is, QUIRK_MSB_ON_THE_RIGHT does not affect byte positioning, but
>>   inverts bit offsets inside a byte.
>>
>> Essentially, the mapping for physical bit offsets should be reserved for a
> 							      ~~~~~~~~
> 							      reversed
> 

Yep.

>>   Logical: 55 54 53 52 51 50 49 48 47 45 44 43 42 41 40 39
>>                   ^  ^  ^  ^  ^  ^  ^  ^  ^
> 
> These 16 bits should have been 55-40. Bit 46 is missing, and bit 39 is
> extraneous.
> 
> Also, I honestly think that another "Byte boundary:" line would help the
> reader see the transformation proposed as an example better. Like this:
> 
>  Byte boundary: |                       |                       |
>        Logical:   55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40
>                          ^  ^  ^  ^  ^  ^  ^  ^  ^
> 

Good catch, and yea a byte boundary helps readability.

>> Fixes: 554aae35007e ("lib: Add support for generic packing operations")
> 
> When there is no user-observable issue in mainline, I believe there is
> no reason for a Fixes: tag, even if the bug is very real. My understanding
> is that the role of the tag is to help the backporting process to stable.
> Using it here could possibly confuse the maintainers that it needs to be
> backported, even though it is spelled out that it needs not be.
> 

Fair. I view the fixes tags as also helpful because it helps quickly
locate the code when I'm reviewing a past commit when trying to
understand why something was changed. I could move this to a mention in
the commit message text without an explicit fixes tag though.

  reply	other threads:[~2024-09-03 21:03 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-28 20:57 [Intel-wired-lan] [PATCH iwl-next v2 00/13] ice: use <linux/packing.h> for Tx and Rx queue context data Jacob Keller
2024-08-28 20:57 ` [Intel-wired-lan] [PATCH iwl-next v2 01/13] lib: packing: refuse operating on bit indices which exceed size of buffer Jacob Keller
2024-08-28 20:57 ` [Intel-wired-lan] [PATCH iwl-next v2 02/13] lib: packing: adjust definitions and implementation for arbitrary buffer lengths Jacob Keller
2024-08-28 20:57 ` [Intel-wired-lan] [PATCH iwl-next v2 03/13] lib: packing: remove kernel-doc from header file Jacob Keller
2024-08-28 20:57 ` [Intel-wired-lan] [PATCH iwl-next v2 04/13] lib: packing: add pack() and unpack() wrappers over packing() Jacob Keller
2024-08-28 20:57 ` [Intel-wired-lan] [PATCH iwl-next v2 05/13] lib: packing: duplicate pack() and unpack() implementations Jacob Keller
2024-08-28 20:57 ` [Intel-wired-lan] [PATCH iwl-next v2 06/13] lib: packing: add KUnit tests adapted from selftests Jacob Keller
2024-08-28 20:57 ` [Intel-wired-lan] [PATCH iwl-next v2 07/13] lib: packing: add additional KUnit tests Jacob Keller
2024-08-28 20:57 ` [Intel-wired-lan] [PATCH iwl-next v2 08/13] lib: packing: fix QUIRK_MSB_ON_THE_RIGHT behavior Jacob Keller
2024-09-02 23:25   ` Vladimir Oltean
2024-09-03 21:03     ` Jacob Keller [this message]
2024-08-28 20:57 ` [Intel-wired-lan] [PATCH iwl-next v2 09/13] ice: remove int_q_state from ice_tlan_ctx Jacob Keller
2024-08-28 20:57 ` [Intel-wired-lan] [PATCH iwl-next v2 10/13] ice: use <linux/packing.h> for Tx and Rx queue context data Jacob Keller
2024-09-03  0:08   ` Vladimir Oltean
2024-09-03 21:16     ` Jacob Keller
2024-09-03 22:13       ` Vladimir Oltean
2024-09-03 22:24         ` Jacob Keller
2024-08-28 20:57 ` [Intel-wired-lan] [PATCH iwl-next v2 11/13] ice: reduce size of queue context fields Jacob Keller
2024-08-28 20:57 ` [Intel-wired-lan] [PATCH iwl-next v2 12/13] ice: move prefetch enable to ice_setup_rx_ctx Jacob Keller
2024-08-28 20:57 ` [Intel-wired-lan] [PATCH iwl-next v2 13/13] ice: cleanup Rx queue context programming functions Jacob Keller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a150453e-6a98-4d57-938c-d499edf0d759@intel.com \
    --to=jacob.e.keller@intel.com \
    --cc=anthony.l.nguyen@intel.com \
    --cc=intel-wired-lan@lists.osuosl.org \
    --cc=netdev@vger.kernel.org \
    --cc=olteanv@gmail.com \
    --cc=przemyslaw.kitszel@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox