RE: [PATCH net-next v4 5/5] net: stmmac: add EHL SGMII 1Gbps PCI info and PCI ID

From: Voon, Weifeng
Date: Wed May 29 2019 - 14:04:09 EST


>
> > + plat->axi->axi_lpi_en = 0;
> > + plat->axi->axi_xit_frm = 0;
> > + plat->axi->axi_wr_osr_lmt = 0;
>
> This is not a valid value.

Can you please explained why is not a valid value? And what should
be the recommended value?
Databook mentioned that "Maximum outstanding requests =
WR_OSR_LMT + 1"

>
> > + plat->axi->axi_rd_osr_lmt = 2;
> > + plat->axi->axi_blen[0] = 4;
> > + plat->axi->axi_blen[1] = 8;
> > + plat->axi->axi_blen[2] = 16;
> > +
> > + /* Set default value for multicast hash bins */
> > + plat->multicast_filter_bins = HASH_TABLE_SIZE;
> > +
> > + /* Set default value for unicast filter entries */
> > + plat->unicast_filter_entries = 1;
> > +
> > + /* Set the maxmtu to a default of JUMBO_LEN */
> > + plat->maxmtu = JUMBO_LEN;
> > +
> > + /* Set 32KB fifo size as the advertised fifo size in
> > + * the HW features is not the same as the HW implementation
> > + */
>
> Hmm ? I'm curious, can you explain ?

The RTL comes with a 64KB selection in HW features. But the HW implementation
only uses a 32KB RAM. This will be documented as errata.

>
> > + plat->tx_fifo_size = 32768;
> > + plat->rx_fifo_size = 32768;
> > +
> > + return 0;
> > +}
> > +
> > +static int ehl_sgmii1g_data(struct pci_dev *pdev,
> > + struct plat_stmmacenet_data *plat) {
> > + int ret;
> > +
> > + /* Set common default data first */
> > + ret = ehl_common_data(pdev, plat);
> > +
>

Regards
Weifeng