The Linux Kernel Mailing List
 help / color / mirror / Atom feed
  • [parent not found: <20260407124421.282766-3-mani@kernel.org>]
  • * Re: [PATCH 0/2] PCI: endpoint: pci-epf-{v}ntb: A couple of fixes
           [not found] <20260407124421.282766-1-mani@kernel.org>
           [not found] ` <20260407124421.282766-2-mani@kernel.org>
           [not found] ` <20260407124421.282766-3-mani@kernel.org>
    @ 2026-05-12  5:34 ` Krzysztof Wilczyński
      2 siblings, 0 replies; 3+ messages in thread
    From: Krzysztof Wilczyński @ 2026-05-12  5:34 UTC (permalink / raw)
      To: Manivannan Sadhasivam
      Cc: mani, kishon, bhelgaas, jdmason, dave.jiang, allenbh, ntb,
    	linux-pci, linux-kernel, den, Frank.li
    
    Hello,
    
    > These two fixes are flagged by Sashiko during the review of doorbell series:
    > https://sashiko.dev/#/patchset/20260406155717.880246-1-den%40valinux.co.jp
    > 
    > Manivannan Sadhasivam (2):
    >   PCI: endpoint: pci-epf-vntb: Add check to detect 'db_count' value of 0
    >   PCI: endpoint: pci-epf-ntb: Add check to detect 'db_count' value of 0
    > 
    >  drivers/pci/endpoint/functions/pci-epf-ntb.c  | 15 +++++++++------
    >  drivers/pci/endpoint/functions/pci-epf-vntb.c |  9 +++------
    >  2 files changed, 12 insertions(+), 12 deletions(-)
    
    Might be out of scope, but since we removed one redundant "db_count"
    variable already, perhaps we could also drop this one, too.  Just to add
    a small clean-up since we are touching this code already...  Thoughts?
    
    Looking at epf_ntb_db_mw_bar_init():
    
      (...)
    
      db_count = ntb->db_count;
    
      for (bar = BAR_DB_MW1, i = 0; i < num_mws; bar++, i++) {
            if (bar == BAR_DB_MW1) {
                    align = align ? align : 4;
                    size = db_count * align;
                    size = ALIGN(size, ntb->mws_size[i]);
                    ctrl = ntb_epc->reg;
                    ctrl->mw1_offset = size;
                    size += ntb->mws_size[i];
            } else {
                    size = ntb->mws_size[i];
            }
    
            (...)
      }
    
    Thank you!
    
    	Krzysztof
    
    ^ permalink raw reply	[flat|nested] 3+ messages in thread

  • end of thread, other threads:[~2026-05-12  5:34 UTC | newest]
    
    Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <20260407124421.282766-1-mani@kernel.org>
         [not found] ` <20260407124421.282766-2-mani@kernel.org>
    2026-05-12  5:01   ` [PATCH 1/2] PCI: endpoint: pci-epf-vntb: Add check to detect 'db_count' value of 0 Koichiro Den
         [not found] ` <20260407124421.282766-3-mani@kernel.org>
    2026-05-12  5:29   ` [PATCH 2/2] PCI: endpoint: pci-epf-ntb: " Krzysztof Wilczyński
    2026-05-12  5:34 ` [PATCH 0/2] PCI: endpoint: pci-epf-{v}ntb: A couple of fixes Krzysztof Wilczyński
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox