* [PATCH] ntb: fix peer_spad_read() returning -EINVAL instead of 0 @ 2026-11-20 8:45 zhangjiao2 2026-11-20 15:36 ` Dave Jiang 2026-11-20 16:34 ` Koichiro Den 0 siblings, 2 replies; 5+ messages in thread From: zhangjiao2 @ 2026-11-20 8:45 UTC (permalink / raw) To: jdmason Cc: dave.jiang, alok.a.tiwari, u.kleine-koenig, den, bhelgaas, mani, Frank.Li, Maciej.Grochowski, linux-kernel, trivial, zhang jiao From: zhang jiao <zhangjiao2@cmss.chinamobile.com> The amd_ntb_peer_spad_read(), ntb_epf_peer_spad_read() and switchtec_ntb_peer_spad_read() functions have a return type of u32 but return -EINVAL on error, which results in a garbage value (0xFFFFFFEA) being returned to callers. Other NTB hardware drivers (e.g. Intel's ndev_spad_read) correctly return 0 for out-of-range scratchpad indices. Fix all three functions to return 0 on error, matching the established convention in the NTB subsystem. Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com> --- drivers/ntb/hw/amd/ntb_hw_amd.c | 2 +- drivers/ntb/hw/epf/ntb_hw_epf.c | 4 ++-- drivers/ntb/hw/mscc/ntb_hw_switchtec.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/ntb/hw/amd/ntb_hw_amd.c b/drivers/ntb/hw/amd/ntb_hw_amd.c index 36bee0d8ac6c..40ced4043340 100644 --- a/drivers/ntb/hw/amd/ntb_hw_amd.c +++ b/drivers/ntb/hw/amd/ntb_hw_amd.c @@ -529,7 +529,7 @@ static u32 amd_ntb_peer_spad_read(struct ntb_dev *ntb, int pidx, int sidx) u32 offset; if (sidx < 0 || sidx >= ndev->spad_count) - return -EINVAL; + return 0; offset = ndev->peer_spad + (sidx << 2); return readl(mmio + AMD_SPAD_OFFSET + offset); diff --git a/drivers/ntb/hw/epf/ntb_hw_epf.c b/drivers/ntb/hw/epf/ntb_hw_epf.c index c47607d4f8a7..dcc5eb4bea74 100644 --- a/drivers/ntb/hw/epf/ntb_hw_epf.c +++ b/drivers/ntb/hw/epf/ntb_hw_epf.c @@ -273,12 +273,12 @@ static u32 ntb_epf_peer_spad_read(struct ntb_dev *ntb, int pidx, int idx) if (pidx != NTB_DEF_PEER_IDX) { dev_err(dev, "Unsupported Peer ID %d\n", pidx); - return -EINVAL; + return 0; } if (idx < 0 || idx >= ndev->spad_count) { dev_err(dev, "WRITE: Invalid Peer ScratchPad Index %d\n", idx); - return -EINVAL; + return 0; } offset = (idx << 2); diff --git a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c index e38540b92716..a9fc94869aeb 100644 --- a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c +++ b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c @@ -762,7 +762,7 @@ static u32 switchtec_ntb_peer_spad_read(struct ntb_dev *ntb, int pidx, struct switchtec_ntb *sndev = ntb_sndev(ntb); if (pidx != NTB_DEF_PEER_IDX) - return -EINVAL; + return 0; if (sidx < 0 || sidx >= ARRAY_SIZE(sndev->peer_shared->spad)) return 0; -- 2.33.0 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ntb: fix peer_spad_read() returning -EINVAL instead of 0 2026-11-20 8:45 [PATCH] ntb: fix peer_spad_read() returning -EINVAL instead of 0 zhangjiao2 @ 2026-11-20 15:36 ` Dave Jiang 2026-11-20 16:34 ` Koichiro Den 1 sibling, 0 replies; 5+ messages in thread From: Dave Jiang @ 2026-11-20 15:36 UTC (permalink / raw) To: zhangjiao2, jdmason Cc: alok.a.tiwari, u.kleine-koenig, den, bhelgaas, mani, Frank.Li, Maciej.Grochowski, linux-kernel, trivial On 11/20/26 1:45 AM, zhangjiao2 wrote: > From: zhang jiao <zhangjiao2@cmss.chinamobile.com> > > The amd_ntb_peer_spad_read(), ntb_epf_peer_spad_read() and > switchtec_ntb_peer_spad_read() functions have a return type of u32 > but return -EINVAL on error, which results in a garbage value > (0xFFFFFFEA) being returned to callers. Other NTB hardware drivers > (e.g. Intel's ndev_spad_read) correctly return 0 for out-of-range > scratchpad indices. > > Fix all three functions to return 0 on error, matching the > established convention in the NTB subsystem. > > Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com> > --- > drivers/ntb/hw/amd/ntb_hw_amd.c | 2 +- > drivers/ntb/hw/epf/ntb_hw_epf.c | 4 ++-- > drivers/ntb/hw/mscc/ntb_hw_switchtec.c | 2 +- > 3 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/ntb/hw/amd/ntb_hw_amd.c b/drivers/ntb/hw/amd/ntb_hw_amd.c > index 36bee0d8ac6c..40ced4043340 100644 > --- a/drivers/ntb/hw/amd/ntb_hw_amd.c > +++ b/drivers/ntb/hw/amd/ntb_hw_amd.c > @@ -529,7 +529,7 @@ static u32 amd_ntb_peer_spad_read(struct ntb_dev *ntb, int pidx, int sidx) > u32 offset; > > if (sidx < 0 || sidx >= ndev->spad_count) > - return -EINVAL; > + return 0; > > offset = ndev->peer_spad + (sidx << 2); > return readl(mmio + AMD_SPAD_OFFSET + offset); > diff --git a/drivers/ntb/hw/epf/ntb_hw_epf.c b/drivers/ntb/hw/epf/ntb_hw_epf.c > index c47607d4f8a7..dcc5eb4bea74 100644 > --- a/drivers/ntb/hw/epf/ntb_hw_epf.c > +++ b/drivers/ntb/hw/epf/ntb_hw_epf.c > @@ -273,12 +273,12 @@ static u32 ntb_epf_peer_spad_read(struct ntb_dev *ntb, int pidx, int idx) > > if (pidx != NTB_DEF_PEER_IDX) { > dev_err(dev, "Unsupported Peer ID %d\n", pidx); > - return -EINVAL; > + return 0; > } > > if (idx < 0 || idx >= ndev->spad_count) { > dev_err(dev, "WRITE: Invalid Peer ScratchPad Index %d\n", idx); > - return -EINVAL; > + return 0; > } > > offset = (idx << 2); > diff --git a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c > index e38540b92716..a9fc94869aeb 100644 > --- a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c > +++ b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c > @@ -762,7 +762,7 @@ static u32 switchtec_ntb_peer_spad_read(struct ntb_dev *ntb, int pidx, > struct switchtec_ntb *sndev = ntb_sndev(ntb); > > if (pidx != NTB_DEF_PEER_IDX) > - return -EINVAL; > + return 0; > > if (sidx < 0 || sidx >= ARRAY_SIZE(sndev->peer_shared->spad)) > return 0; ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ntb: fix peer_spad_read() returning -EINVAL instead of 0 2026-11-20 8:45 [PATCH] ntb: fix peer_spad_read() returning -EINVAL instead of 0 zhangjiao2 2026-11-20 15:36 ` Dave Jiang @ 2026-11-20 16:34 ` Koichiro Den 2026-11-20 16:45 ` Dave Jiang 1 sibling, 1 reply; 5+ messages in thread From: Koichiro Den @ 2026-11-20 16:34 UTC (permalink / raw) To: zhangjiao2 Cc: jdmason, dave.jiang, alok.a.tiwari, u.kleine-koenig, bhelgaas, mani, Frank.Li, Maciej.Grochowski, linux-kernel, trivial On Fri, Nov 20, 2026 at 05:45:45PM +0900, zhangjiao2 wrote: > From: zhang jiao <zhangjiao2@cmss.chinamobile.com> > > The amd_ntb_peer_spad_read(), ntb_epf_peer_spad_read() and > switchtec_ntb_peer_spad_read() functions have a return type of u32 > but return -EINVAL on error, which results in a garbage value > (0xFFFFFFEA) being returned to callers. Other NTB hardware drivers > (e.g. Intel's ndev_spad_read) correctly return 0 for out-of-range > scratchpad indices. > > Fix all three functions to return 0 on error, matching the > established convention in the NTB subsystem. > > Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com> I wonder if it would make more sense for ntb_peer_spad_read() and its callback to take a u32 *val for the result and return 0 on success or -errno on failure. (The wrapper could then return -EOPNOTSUPP if the callback is missing.) It looks like ntb_msi_test can legitimately publish an irq_count of 0 to its SPAD, and ntb_perf uses all 1's for an empty command slot (ie. PERF_CMD_INVAL). So I'm not sure overloading the return value to signal a failed read is a good choice from the beginning. That said, I agree that returning -EINVAL as a u32 is misleading. One thing I'm not sure about is whether switching to 0 is really harmless. In ntb_msit_db_event(), what if the doorbell bit isn't a valid peer index? From what I can see, on ntb_hw_epf or switchtec, the old value (-EINVAL) makes the allocation fail, while with 0, kzalloc_objs() returns ZERO_SIZE_PTR rather than NULL. Wouldn't the code then use that invalid peer index in nm->peers[]? Best regards, Koichiro Den > --- > drivers/ntb/hw/amd/ntb_hw_amd.c | 2 +- > drivers/ntb/hw/epf/ntb_hw_epf.c | 4 ++-- > drivers/ntb/hw/mscc/ntb_hw_switchtec.c | 2 +- > 3 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/ntb/hw/amd/ntb_hw_amd.c b/drivers/ntb/hw/amd/ntb_hw_amd.c > index 36bee0d8ac6c..40ced4043340 100644 > --- a/drivers/ntb/hw/amd/ntb_hw_amd.c > +++ b/drivers/ntb/hw/amd/ntb_hw_amd.c > @@ -529,7 +529,7 @@ static u32 amd_ntb_peer_spad_read(struct ntb_dev *ntb, int pidx, int sidx) > u32 offset; > > if (sidx < 0 || sidx >= ndev->spad_count) > - return -EINVAL; > + return 0; > > offset = ndev->peer_spad + (sidx << 2); > return readl(mmio + AMD_SPAD_OFFSET + offset); > diff --git a/drivers/ntb/hw/epf/ntb_hw_epf.c b/drivers/ntb/hw/epf/ntb_hw_epf.c > index c47607d4f8a7..dcc5eb4bea74 100644 > --- a/drivers/ntb/hw/epf/ntb_hw_epf.c > +++ b/drivers/ntb/hw/epf/ntb_hw_epf.c > @@ -273,12 +273,12 @@ static u32 ntb_epf_peer_spad_read(struct ntb_dev *ntb, int pidx, int idx) > > if (pidx != NTB_DEF_PEER_IDX) { > dev_err(dev, "Unsupported Peer ID %d\n", pidx); > - return -EINVAL; > + return 0; > } > > if (idx < 0 || idx >= ndev->spad_count) { > dev_err(dev, "WRITE: Invalid Peer ScratchPad Index %d\n", idx); > - return -EINVAL; > + return 0; > } > > offset = (idx << 2); > diff --git a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c > index e38540b92716..a9fc94869aeb 100644 > --- a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c > +++ b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c > @@ -762,7 +762,7 @@ static u32 switchtec_ntb_peer_spad_read(struct ntb_dev *ntb, int pidx, > struct switchtec_ntb *sndev = ntb_sndev(ntb); > > if (pidx != NTB_DEF_PEER_IDX) > - return -EINVAL; > + return 0; > > if (sidx < 0 || sidx >= ARRAY_SIZE(sndev->peer_shared->spad)) > return 0; > -- > 2.33.0 > > > ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ntb: fix peer_spad_read() returning -EINVAL instead of 0 2026-11-20 16:34 ` Koichiro Den @ 2026-11-20 16:45 ` Dave Jiang 2026-11-24 5:01 ` Koichiro Den 0 siblings, 1 reply; 5+ messages in thread From: Dave Jiang @ 2026-11-20 16:45 UTC (permalink / raw) To: Koichiro Den, zhangjiao2 Cc: jdmason, alok.a.tiwari, u.kleine-koenig, bhelgaas, mani, Frank.Li, Maciej.Grochowski, linux-kernel, trivial On 11/20/26 9:34 AM, Koichiro Den wrote: > On Fri, Nov 20, 2026 at 05:45:45PM +0900, zhangjiao2 wrote: >> From: zhang jiao <zhangjiao2@cmss.chinamobile.com> >> >> The amd_ntb_peer_spad_read(), ntb_epf_peer_spad_read() and >> switchtec_ntb_peer_spad_read() functions have a return type of u32 >> but return -EINVAL on error, which results in a garbage value >> (0xFFFFFFEA) being returned to callers. Other NTB hardware drivers >> (e.g. Intel's ndev_spad_read) correctly return 0 for out-of-range >> scratchpad indices. >> >> Fix all three functions to return 0 on error, matching the >> established convention in the NTB subsystem. >> >> Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com> > > I wonder if it would make more sense for ntb_peer_spad_read() and its callback > to take a u32 *val for the result and return 0 on success or -errno on failure. > (The wrapper could then return -EOPNOTSUPP if the callback is missing.) > > It looks like ntb_msi_test can legitimately publish an irq_count of 0 to its > SPAD, and ntb_perf uses all 1's for an empty command slot (ie. PERF_CMD_INVAL). > So I'm not sure overloading the return value to signal a failed read is a good > choice from the beginning. > > That said, I agree that returning -EINVAL as a u32 is misleading. > One thing I'm not sure about is whether switching to 0 is really harmless. > In ntb_msit_db_event(), what if the doorbell bit isn't a valid peer index? > From what I can see, on ntb_hw_epf or switchtec, the old value (-EINVAL) makes > the allocation fail, while with 0, kzalloc_objs() returns ZERO_SIZE_PTR rather > than NULL. Wouldn't the code then use that invalid peer index in nm->peers[]? Yeah maybe return int and pass in an u32 ptr. Thought about MAX_INT as error but we are reading a u32 spad so any value should be valid. DJ > > Best regards, > Koichiro Den > >> --- >> drivers/ntb/hw/amd/ntb_hw_amd.c | 2 +- >> drivers/ntb/hw/epf/ntb_hw_epf.c | 4 ++-- >> drivers/ntb/hw/mscc/ntb_hw_switchtec.c | 2 +- >> 3 files changed, 4 insertions(+), 4 deletions(-) >> >> diff --git a/drivers/ntb/hw/amd/ntb_hw_amd.c b/drivers/ntb/hw/amd/ntb_hw_amd.c >> index 36bee0d8ac6c..40ced4043340 100644 >> --- a/drivers/ntb/hw/amd/ntb_hw_amd.c >> +++ b/drivers/ntb/hw/amd/ntb_hw_amd.c >> @@ -529,7 +529,7 @@ static u32 amd_ntb_peer_spad_read(struct ntb_dev *ntb, int pidx, int sidx) >> u32 offset; >> >> if (sidx < 0 || sidx >= ndev->spad_count) >> - return -EINVAL; >> + return 0; >> >> offset = ndev->peer_spad + (sidx << 2); >> return readl(mmio + AMD_SPAD_OFFSET + offset); >> diff --git a/drivers/ntb/hw/epf/ntb_hw_epf.c b/drivers/ntb/hw/epf/ntb_hw_epf.c >> index c47607d4f8a7..dcc5eb4bea74 100644 >> --- a/drivers/ntb/hw/epf/ntb_hw_epf.c >> +++ b/drivers/ntb/hw/epf/ntb_hw_epf.c >> @@ -273,12 +273,12 @@ static u32 ntb_epf_peer_spad_read(struct ntb_dev *ntb, int pidx, int idx) >> >> if (pidx != NTB_DEF_PEER_IDX) { >> dev_err(dev, "Unsupported Peer ID %d\n", pidx); >> - return -EINVAL; >> + return 0; >> } >> >> if (idx < 0 || idx >= ndev->spad_count) { >> dev_err(dev, "WRITE: Invalid Peer ScratchPad Index %d\n", idx); >> - return -EINVAL; >> + return 0; >> } >> >> offset = (idx << 2); >> diff --git a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c >> index e38540b92716..a9fc94869aeb 100644 >> --- a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c >> +++ b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c >> @@ -762,7 +762,7 @@ static u32 switchtec_ntb_peer_spad_read(struct ntb_dev *ntb, int pidx, >> struct switchtec_ntb *sndev = ntb_sndev(ntb); >> >> if (pidx != NTB_DEF_PEER_IDX) >> - return -EINVAL; >> + return 0; >> >> if (sidx < 0 || sidx >= ARRAY_SIZE(sndev->peer_shared->spad)) >> return 0; >> -- >> 2.33.0 >> >> >> ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ntb: fix peer_spad_read() returning -EINVAL instead of 0 2026-11-20 16:45 ` Dave Jiang @ 2026-11-24 5:01 ` Koichiro Den 0 siblings, 0 replies; 5+ messages in thread From: Koichiro Den @ 2026-11-24 5:01 UTC (permalink / raw) To: Dave Jiang Cc: zhangjiao2, jdmason, alok.a.tiwari, u.kleine-koenig, bhelgaas, mani, Frank.Li, Maciej.Grochowski, linux-kernel, trivial On Fri, Nov 20, 2026 at 09:45:57AM -0700, Dave Jiang wrote: > > > On 11/20/26 9:34 AM, Koichiro Den wrote: > > On Fri, Nov 20, 2026 at 05:45:45PM +0900, zhangjiao2 wrote: > >> From: zhang jiao <zhangjiao2@cmss.chinamobile.com> > >> > >> The amd_ntb_peer_spad_read(), ntb_epf_peer_spad_read() and > >> switchtec_ntb_peer_spad_read() functions have a return type of u32 > >> but return -EINVAL on error, which results in a garbage value > >> (0xFFFFFFEA) being returned to callers. Other NTB hardware drivers > >> (e.g. Intel's ndev_spad_read) correctly return 0 for out-of-range > >> scratchpad indices. > >> > >> Fix all three functions to return 0 on error, matching the > >> established convention in the NTB subsystem. > >> > >> Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com> > > > > I wonder if it would make more sense for ntb_peer_spad_read() and its callback > > to take a u32 *val for the result and return 0 on success or -errno on failure. > > (The wrapper could then return -EOPNOTSUPP if the callback is missing.) > > > > It looks like ntb_msi_test can legitimately publish an irq_count of 0 to its > > SPAD, and ntb_perf uses all 1's for an empty command slot (ie. PERF_CMD_INVAL). > > So I'm not sure overloading the return value to signal a failed read is a good > > choice from the beginning. > > > > That said, I agree that returning -EINVAL as a u32 is misleading. > > One thing I'm not sure about is whether switching to 0 is really harmless. > > In ntb_msit_db_event(), what if the doorbell bit isn't a valid peer index? > > From what I can see, on ntb_hw_epf or switchtec, the old value (-EINVAL) makes > > the allocation fail, while with 0, kzalloc_objs() returns ZERO_SIZE_PTR rather > > than NULL. Wouldn't the code then use that invalid peer index in nm->peers[]? > > Yeah maybe return int and pass in an u32 ptr. Thought about MAX_INT as error but we are reading a u32 spad so any value should be valid. Thanks, Dave. BTW, taking another look at the ntb_msit_db_event(), it looks like there is a mix-up between port number and pidx, which seems to me a much more serious issue. If we fix it as a prereq before Zhang's patch, the concern I raised as an example of a potential regression would go away. Given that I haven't seen any complaints about the misuse of port number as pidx, I guess no one runs the test on affected topo, so now I wouldn't even hesitate to just add another R-b from me, if it would help. Of course I'd still like to hear Zhang's thoughts (analysis) on the API rework. Best regards, Koichiro Den > > DJ > > > > > Best regards, > > Koichiro Den > > > >> --- > >> drivers/ntb/hw/amd/ntb_hw_amd.c | 2 +- > >> drivers/ntb/hw/epf/ntb_hw_epf.c | 4 ++-- > >> drivers/ntb/hw/mscc/ntb_hw_switchtec.c | 2 +- > >> 3 files changed, 4 insertions(+), 4 deletions(-) > >> > >> diff --git a/drivers/ntb/hw/amd/ntb_hw_amd.c b/drivers/ntb/hw/amd/ntb_hw_amd.c > >> index 36bee0d8ac6c..40ced4043340 100644 > >> --- a/drivers/ntb/hw/amd/ntb_hw_amd.c > >> +++ b/drivers/ntb/hw/amd/ntb_hw_amd.c > >> @@ -529,7 +529,7 @@ static u32 amd_ntb_peer_spad_read(struct ntb_dev *ntb, int pidx, int sidx) > >> u32 offset; > >> > >> if (sidx < 0 || sidx >= ndev->spad_count) > >> - return -EINVAL; > >> + return 0; > >> > >> offset = ndev->peer_spad + (sidx << 2); > >> return readl(mmio + AMD_SPAD_OFFSET + offset); > >> diff --git a/drivers/ntb/hw/epf/ntb_hw_epf.c b/drivers/ntb/hw/epf/ntb_hw_epf.c > >> index c47607d4f8a7..dcc5eb4bea74 100644 > >> --- a/drivers/ntb/hw/epf/ntb_hw_epf.c > >> +++ b/drivers/ntb/hw/epf/ntb_hw_epf.c > >> @@ -273,12 +273,12 @@ static u32 ntb_epf_peer_spad_read(struct ntb_dev *ntb, int pidx, int idx) > >> > >> if (pidx != NTB_DEF_PEER_IDX) { > >> dev_err(dev, "Unsupported Peer ID %d\n", pidx); > >> - return -EINVAL; > >> + return 0; > >> } > >> > >> if (idx < 0 || idx >= ndev->spad_count) { > >> dev_err(dev, "WRITE: Invalid Peer ScratchPad Index %d\n", idx); > >> - return -EINVAL; > >> + return 0; > >> } > >> > >> offset = (idx << 2); > >> diff --git a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c > >> index e38540b92716..a9fc94869aeb 100644 > >> --- a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c > >> +++ b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c > >> @@ -762,7 +762,7 @@ static u32 switchtec_ntb_peer_spad_read(struct ntb_dev *ntb, int pidx, > >> struct switchtec_ntb *sndev = ntb_sndev(ntb); > >> > >> if (pidx != NTB_DEF_PEER_IDX) > >> - return -EINVAL; > >> + return 0; > >> > >> if (sidx < 0 || sidx >= ARRAY_SIZE(sndev->peer_shared->spad)) > >> return 0; > >> -- > >> 2.33.0 > >> > >> > >> > ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-11-24 5:01 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2026-11-20 8:45 [PATCH] ntb: fix peer_spad_read() returning -EINVAL instead of 0 zhangjiao2 2026-11-20 15:36 ` Dave Jiang 2026-11-20 16:34 ` Koichiro Den 2026-11-20 16:45 ` Dave Jiang 2026-11-24 5:01 ` Koichiro Den
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®