netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rasmus Villemoes <ravi@prevas.dk>
To: Daniel Golle <daniel@makrotopia.org>
Cc: <netdev@vger.kernel.org>,
	 "Benny (Ying-Tsan) Weng" <yweng@maxlinear.com>
Subject: Re: question on gswip_pce_table_entry_write() in lantiq_gswip_common.c
Date: Tue, 23 Dec 2025 12:45:00 +0100	[thread overview]
Message-ID: <87o6nps9qb.fsf@prevas.dk> (raw)
In-Reply-To: <aUp3D45Ka-rYL44u@makrotopia.org> (Daniel Golle's message of "Tue, 23 Dec 2025 11:03:43 +0000")

On Tue, Dec 23 2025, Daniel Golle <daniel@makrotopia.org> wrote:

>> Another thing: I'd really appreciate it if someone could point me to
>> documentation on the various tables, i.e. what does val[2] of an entry
>> in GSWIP_TABLE_VLAN_MAPPING actually mean? I can see that BIT(port) is
>> either set or cleared from it depending on 'untagged', so I can
>> sort-of-guess, but I'd prefer to have it documented so I don't have to
>> guess. AFAICT, none of the documents I can download from MaxLinear spell
>> this out in any way.
>
> I also don't have any for-human documentation for the switch table entry
> formats and registers. I doubt any documentation of that actually
> exists.
>
> Most of the switching engine itself is covered in
>
> GSW12x_GSW14x_Register_Description_PR_Rev1.1.pdf
>
> but also that doesn't describe the individual tables.

Thanks, I do have that document (with a 621442_ prefix). Amusingly, on
page 9 it says "Attention: This document is meant to be used in
conjunction with the GSWIP API documentation." But if that is supposed
to refer to 617991_Standalone_Ethernet_Switch_API_UM_PG_Rev1.2.pdf, that
doesn't really help to understand the hardware, as that only sort-of
describes the use of some library functions, the source code of which I
do not have.

> My reference for that is the old/proprietary SW-API driver which
> describes some (but not all) of the table entry formats in code at
> least...
>
> You find the SW-API as part of various GPL leaks, all files there are
> under a dual BSD/GPLv2 license, so I can also share my (latest/official)
> version of that driver with you in case you don't have it.

I have a zip file containing a
621048_GSW12x_GSW14x_Linux_DSA_Driver_V1.0_Rev1.0/ directory, and the
code in there does resemble what is in mainline somewhat. But I can't
find any more comments on the table format(s) than what is in
mainline. If you have something with just some of the tables described,
I'd very much like to have that.

Thanks,
Rasmus

      reply	other threads:[~2025-12-23 11:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-23  8:48 question on gswip_pce_table_entry_write() in lantiq_gswip_common.c Rasmus Villemoes
2025-12-23 11:03 ` Daniel Golle
2025-12-23 11:45   ` Rasmus Villemoes [this message]

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=87o6nps9qb.fsf@prevas.dk \
    --to=ravi@prevas.dk \
    --cc=daniel@makrotopia.org \
    --cc=netdev@vger.kernel.org \
    --cc=yweng@maxlinear.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).