* [PATCH net] net: ti: icssg-prueth: Fix r30 CMDs bitmasks
@ 2023-10-13 11:17 MD Danish Anwar
2023-10-13 12:07 ` Ravi Gunasekaran
2023-10-13 16:00 ` Andrew Lunn
0 siblings, 2 replies; 4+ messages in thread
From: MD Danish Anwar @ 2023-10-13 11:17 UTC (permalink / raw)
To: Grygorii Strashko, Andrew Lunn, Roger Quadros, Simon Horman,
MD Danish Anwar, Paolo Abeni, Jakub Kicinski, Eric Dumazet,
David S. Miller
Cc: linux-kernel, netdev, srk, Vignesh Raghavendra, r-gunasekaran
The bitmask for EMAC_PORT_DISABLE and EMAC_PORT_FORWARD has been changed
in the latest ICSSG firmware.
The current bitmasks are wrong and as a result EMAC_PORT_DISABLE and
EMAC_PORT_FORWARD commands do not work.
Update r30 commands to use the same bitmask as used by the latest ICSSG
firmware.
Fixes: e9b4ece7d74b ("net: ti: icssg-prueth: Add Firmware config and classification APIs.")
Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
---
drivers/net/ethernet/ti/icssg/icssg_config.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/ti/icssg/icssg_config.c b/drivers/net/ethernet/ti/icssg/icssg_config.c
index 933b84666574..b272361e378f 100644
--- a/drivers/net/ethernet/ti/icssg/icssg_config.c
+++ b/drivers/net/ethernet/ti/icssg/icssg_config.c
@@ -379,9 +379,9 @@ int icssg_config(struct prueth *prueth, struct prueth_emac *emac, int slice)
/* Bitmask for ICSSG r30 commands */
static const struct icssg_r30_cmd emac_r32_bitmask[] = {
- {{0xffff0004, 0xffff0100, 0xffff0100, EMAC_NONE}}, /* EMAC_PORT_DISABLE */
+ {{0xffff0004, 0xffff0100, 0xffff0004, EMAC_NONE}}, /* EMAC_PORT_DISABLE */
{{0xfffb0040, 0xfeff0200, 0xfeff0200, EMAC_NONE}}, /* EMAC_PORT_BLOCK */
- {{0xffbb0000, 0xfcff0000, 0xdcff0000, EMAC_NONE}}, /* EMAC_PORT_FORWARD */
+ {{0xffbb0000, 0xfcff0000, 0xdcfb0000, EMAC_NONE}}, /* EMAC_PORT_FORWARD */
{{0xffbb0000, 0xfcff0000, 0xfcff2000, EMAC_NONE}}, /* EMAC_PORT_FORWARD_WO_LEARNING */
{{0xffff0001, EMAC_NONE, EMAC_NONE, EMAC_NONE}}, /* ACCEPT ALL */
{{0xfffe0002, EMAC_NONE, EMAC_NONE, EMAC_NONE}}, /* ACCEPT TAGGED */
--
2.34.1
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH net] net: ti: icssg-prueth: Fix r30 CMDs bitmasks
2023-10-13 11:17 [PATCH net] net: ti: icssg-prueth: Fix r30 CMDs bitmasks MD Danish Anwar
@ 2023-10-13 12:07 ` Ravi Gunasekaran
2023-10-13 16:00 ` Andrew Lunn
1 sibling, 0 replies; 4+ messages in thread
From: Ravi Gunasekaran @ 2023-10-13 12:07 UTC (permalink / raw)
To: MD Danish Anwar, Grygorii Strashko, Andrew Lunn, Roger Quadros,
Simon Horman, Paolo Abeni, Jakub Kicinski, Eric Dumazet,
David S. Miller
Cc: linux-kernel, netdev, srk, Vignesh Raghavendra
On 10/13/2023 4:47 PM, MD Danish Anwar wrote:
> The bitmask for EMAC_PORT_DISABLE and EMAC_PORT_FORWARD has been changed
> in the latest ICSSG firmware.
Please mention the version/tag of the ICSSG firmware.
>
> The current bitmasks are wrong and as a result EMAC_PORT_DISABLE and
> EMAC_PORT_FORWARD commands do not work.
> Update r30 commands to use the same bitmask as used by the latest ICSSG
> firmware.
>
> Fixes: e9b4ece7d74b ("net: ti: icssg-prueth: Add Firmware config and classification APIs.")
> Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
> ---
> drivers/net/ethernet/ti/icssg/icssg_config.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/ethernet/ti/icssg/icssg_config.c b/drivers/net/ethernet/ti/icssg/icssg_config.c
> index 933b84666574..b272361e378f 100644
> --- a/drivers/net/ethernet/ti/icssg/icssg_config.c
> +++ b/drivers/net/ethernet/ti/icssg/icssg_config.c
> @@ -379,9 +379,9 @@ int icssg_config(struct prueth *prueth, struct prueth_emac *emac, int slice)
>
> /* Bitmask for ICSSG r30 commands */
> static const struct icssg_r30_cmd emac_r32_bitmask[] = {
> - {{0xffff0004, 0xffff0100, 0xffff0100, EMAC_NONE}}, /* EMAC_PORT_DISABLE */
> + {{0xffff0004, 0xffff0100, 0xffff0004, EMAC_NONE}}, /* EMAC_PORT_DISABLE */
> {{0xfffb0040, 0xfeff0200, 0xfeff0200, EMAC_NONE}}, /* EMAC_PORT_BLOCK */
> - {{0xffbb0000, 0xfcff0000, 0xdcff0000, EMAC_NONE}}, /* EMAC_PORT_FORWARD */
> + {{0xffbb0000, 0xfcff0000, 0xdcfb0000, EMAC_NONE}}, /* EMAC_PORT_FORWARD */
> {{0xffbb0000, 0xfcff0000, 0xfcff2000, EMAC_NONE}}, /* EMAC_PORT_FORWARD_WO_LEARNING */
> {{0xffff0001, EMAC_NONE, EMAC_NONE, EMAC_NONE}}, /* ACCEPT ALL */
> {{0xfffe0002, EMAC_NONE, EMAC_NONE, EMAC_NONE}}, /* ACCEPT TAGGED */
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH net] net: ti: icssg-prueth: Fix r30 CMDs bitmasks
2023-10-13 11:17 [PATCH net] net: ti: icssg-prueth: Fix r30 CMDs bitmasks MD Danish Anwar
2023-10-13 12:07 ` Ravi Gunasekaran
@ 2023-10-13 16:00 ` Andrew Lunn
2023-10-16 4:48 ` [EXTERNAL] " Anwar, Md Danish
1 sibling, 1 reply; 4+ messages in thread
From: Andrew Lunn @ 2023-10-13 16:00 UTC (permalink / raw)
To: MD Danish Anwar
Cc: Grygorii Strashko, Roger Quadros, Simon Horman, Paolo Abeni,
Jakub Kicinski, Eric Dumazet, David S. Miller, linux-kernel,
netdev, srk, Vignesh Raghavendra, r-gunasekaran
On Fri, Oct 13, 2023 at 04:47:58PM +0530, MD Danish Anwar wrote:
> The bitmask for EMAC_PORT_DISABLE and EMAC_PORT_FORWARD has been changed
> in the latest ICSSG firmware.
>
> The current bitmasks are wrong and as a result EMAC_PORT_DISABLE and
> EMAC_PORT_FORWARD commands do not work.
> Update r30 commands to use the same bitmask as used by the latest ICSSG
> firmware.
Please indicate in the commit message this is backwards compatible
with old firmware. I assume it is actually backwards compatible.
Andrew
---
pw-bot: cr
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [EXTERNAL] Re: [PATCH net] net: ti: icssg-prueth: Fix r30 CMDs bitmasks
2023-10-13 16:00 ` Andrew Lunn
@ 2023-10-16 4:48 ` Anwar, Md Danish
0 siblings, 0 replies; 4+ messages in thread
From: Anwar, Md Danish @ 2023-10-16 4:48 UTC (permalink / raw)
To: Andrew Lunn, MD Danish Anwar
Cc: Grygorii Strashko, Roger Quadros, Simon Horman, Paolo Abeni,
Jakub Kicinski, Eric Dumazet, David S. Miller, linux-kernel,
netdev, srk, Vignesh Raghavendra, r-gunasekaran
Hi Andrew
On 10/13/2023 9:30 PM, Andrew Lunn wrote:
> On Fri, Oct 13, 2023 at 04:47:58PM +0530, MD Danish Anwar wrote:
>> The bitmask for EMAC_PORT_DISABLE and EMAC_PORT_FORWARD has been changed
>> in the latest ICSSG firmware.
>>
>> The current bitmasks are wrong and as a result EMAC_PORT_DISABLE and
>> EMAC_PORT_FORWARD commands do not work.
>> Update r30 commands to use the same bitmask as used by the latest ICSSG
>> firmware.
>
> Please indicate in the commit message this is backwards compatible
> with old firmware. I assume it is actually backwards compatible.
>
The bitmasks that are used in driver currently is not used in firmware
anymore. The latest ICSSG firmware is using different bitmasks and the
older bitmasks are no longer compatible with the latets ICSSG firmware.
So it is not backwards compatible. I'll mention this in commit message
once I post next revision.
> Andrew
>
> ---
> pw-bot: cr
--
Thanks and Regards,
Md Danish Anwar
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-10-16 4:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-13 11:17 [PATCH net] net: ti: icssg-prueth: Fix r30 CMDs bitmasks MD Danish Anwar
2023-10-13 12:07 ` Ravi Gunasekaran
2023-10-13 16:00 ` Andrew Lunn
2023-10-16 4:48 ` [EXTERNAL] " Anwar, Md Danish
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®