Skip to contentSkip to conversation

cadence_gem: Fix Rx buffer size field mask

PATCH Applied Sai Pavan Boddu 3 participants 3 messages May 29, 2015 – Jun 2, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cadence_gem: Fix Rx buffer size field mask

This patch corrects the Rx buffer size field mask to mask bits 23 to 16

---
 hw/net/cadence_gem.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
hw/net/cadence_gem.c +1 -1
index dafe914..494a346 100644
@@ -155,7 +155,7 @@
 #define GEM_NWCFG_BCAST_REJ    0x00000020 /* Reject broadcast packets */
 #define GEM_NWCFG_PROMISC      0x00000010 /* Accept all packets */
 
-#define GEM_DMACFG_RBUFSZ_M    0x007F0000 /* DMA RX Buffer Size mask */
+#define GEM_DMACFG_RBUFSZ_M    0x00FF0000 /* DMA RX Buffer Size mask */
 #define GEM_DMACFG_RBUFSZ_S    16         /* DMA RX Buffer Size shift */
 #define GEM_DMACFG_RBUFSZ_MUL  64         /* DMA RX Buffer Size multiplier */
 #define GEM_DMACFG_TXCSUM_OFFL 0x00000800 /* Transmit checksum offload */
Signature · 1 line
1.7.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Sai Pavan Boddu

This patch corrects the Rx buffer size field mask to mask bits 23 to 16

Matches Xilinx UG585 documentation.

Can this go via the trivial queue?

Regards,
Peter

Quoted 21 lines
---
 hw/net/cadence_gem.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
hw/net/cadence_gem.c +1 -2
index dafe914..494a346 100644
@@ -155,7 +155,7 @@
 #define GEM_NWCFG_BCAST_REJ    0x00000020 /* Reject broadcast packets */
 #define GEM_NWCFG_PROMISC      0x00000010 /* Accept all packets */
 
-#define GEM_DMACFG_RBUFSZ_M    0x007F0000 /* DMA RX Buffer Size mask */
+#define GEM_DMACFG_RBUFSZ_M    0x00FF0000 /* DMA RX Buffer Size mask */
 #define GEM_DMACFG_RBUFSZ_S    16         /* DMA RX Buffer Size shift */
 #define GEM_DMACFG_RBUFSZ_MUL  64         /* DMA RX Buffer Size multiplier */
 #define GEM_DMACFG_TXCSUM_OFFL 0x00000800 /* Transmit checksum offload */
--

1.7.4

#2 lore raw
Quoted 4 lines · Peter Crosthwaite
Quoted 2 lines · Sai Pavan Boddu

This patch corrects the Rx buffer size field mask to mask bits 23 to 16

Quoted 8 lines
Quoted 2 lines

Matches Xilinx UG585 documentation.

Can this go via the trivial queue?

Applied to -trivial, with tiny comment change (combining the two comments, by Sai Pavan Boddy and Peter Crosthwaite, together).

Thanks,

/mjt