All of lore.kernel.org
 help / color / mirror / Atom feed
From: <Nicolas.Ferre@microchip.com>
To: <sean.anderson@seco.com>, <linux@armlinux.org.uk>
Cc: <netdev@vger.kernel.org>, <davem@davemloft.net>,
	<kuba@kernel.org>, <Claudiu.Beznea@microchip.com>,
	<atenart@kernel.org>, <pthombar@cadence.com>,
	<mparab@cadence.com>
Subject: Re: [PATCH v4] net: macb: Fix several edge cases in validate
Date: Wed, 27 Oct 2021 07:02:11 +0000	[thread overview]
Message-ID: <7022cd00-e863-d0ed-3a48-8fe9d48968e2@microchip.com> (raw)
In-Reply-To: <7d3d60af-d089-c7bd-bef7-d60d86b97333@seco.com>

Sean, Russell,

On 26/10/2021 at 20:52, Sean Anderson wrote:
>>
>> Going back to the first point I mentioned above, how much should we
>> take from these documents as actually being correct? Should we not
>> assume anything, but instead just experiment with the hardware and
>> see what works.
>> For example, are the two speed bits in the PCS control register
>> really read-only when in Cisco SGMII mode, or can they be changed -
>> and if they can be changed, does that have an effect on the ethernet
>> link?
> Keep in mind that it is not only Zynq(MP) parts with have GEMs, but
> several other SoCs as well. I have not reviewed their datasheets (except
> for SiFive's which just say "go read the Linux driver"). It is possible
> that other SoCs may not have these limitations. So any experimental
> program will need to also experiment with e.g. sama.

Claudiu and myself can certainly help in reviewing and testing on 
Microchip devices. The limitation that I see is that we only have 10/100 
and 1000 speeds implemented in our SoC with limited number of link types 
covered (MII, RMII, GMII and RGMII).

Our datasheets including different variants of MACB and GEM can give 
some information:
MACB example in: 
http://ww1.microchip.com/downloads/en/DeviceDoc/SAM9X60-Data-Sheet-DS60001579A.pdf

GEM example at 10/100 in: 
https://www.microchip.com/content/dam/mchp/documents/MPU32/ProductDocuments/DataSheets/SAMA5D2-Series-Data-sheet-ds60001476G.pdf

GEM example with 10/100/1000 in: 
https://www.microchip.com/content/dam/mchp/documents/MPU32/ProductDocuments/DataSheets/SAMA5D3-Series-Data-sheet-DS60001609b.pdf

We can also explore some of the design and configuration registers (DCFGn).

> Perhaps someone from cadence could comment on what is actually supported
> by gem/macb?

That could be good as well.

Best regards,
   Nicolas

-- 
Nicolas Ferre

  reply	other threads:[~2021-10-27  7:02 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-25 17:24 [PATCH v4] net: macb: Fix several edge cases in validate Sean Anderson
2021-10-25 21:19 ` Russell King (Oracle)
2021-10-25 21:35   ` Sean Anderson
2021-10-26 16:37     ` Nicolas Ferre
2021-10-26 17:04       ` Russell King (Oracle)
2021-10-26 17:28         ` Sean Anderson
2021-10-26 17:46           ` Russell King (Oracle)
2021-10-26 17:49             ` Sean Anderson
2021-10-26 18:28               ` Russell King (Oracle)
2021-10-26 18:52                 ` Sean Anderson
2021-10-27  7:02                   ` Nicolas.Ferre [this message]
2021-10-26  0:44 ` Jakub Kicinski
2021-10-26 15:30   ` Sean Anderson
2021-10-26 15:39     ` Jakub Kicinski
2021-10-26 16:32       ` Nicolas Ferre
2021-10-26 15:51     ` Russell King (Oracle)

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=7022cd00-e863-d0ed-3a48-8fe9d48968e2@microchip.com \
    --to=nicolas.ferre@microchip.com \
    --cc=Claudiu.Beznea@microchip.com \
    --cc=atenart@kernel.org \
    --cc=davem@davemloft.net \
    --cc=kuba@kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=mparab@cadence.com \
    --cc=netdev@vger.kernel.org \
    --cc=pthombar@cadence.com \
    --cc=sean.anderson@seco.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.