History log of /freebsd/sys/dev/dwc/if_dwc.c (Results 26 – 50 of 107)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/13.2.0, release/12.4.0
# 068f2c0e 20-Aug-2022 Justin Hibbits <jhibbits@FreeBSD.org>

Mechanically convert dwc(4) to IfAPI

Reviewed by: manu (older)
Sponsored by: Juniper Networks, Inc.
Differential Revision: https://reviews.freebsd.org/D37846


# 6501fcdc 08-Sep-2022 Jiahao LI <jiahali@blackberry.com>

if_dwc: fix reinitialization with changed MAC

It was observed that on RockPro64 hardware, the dwc interface is unable
to receive packets after being assigned a new MAC address. The fix is
simply to

if_dwc: fix reinitialization with changed MAC

It was observed that on RockPro64 hardware, the dwc interface is unable
to receive packets after being assigned a new MAC address. The fix is
simply to call mii_mediachg() before touching any device registers in
dwc_init_locked(). This is consistent with what the OpenBSD driver does.

PR: 263820
MFC after: 1 week

show more ...


# 97187590 21-Jun-2022 Mitchell Horne <mhorne@FreeBSD.org>

if_dwc: avoid duplicate packet counts

We already increment the unicast IPACKETS and OPACKETS counters in the
rx/tx paths, respectively. Multicast packets are counted in the generic
ethernet code. Th

if_dwc: avoid duplicate packet counts

We already increment the unicast IPACKETS and OPACKETS counters in the
rx/tx paths, respectively. Multicast packets are counted in the generic
ethernet code. Therefore, we shouldn't increment these counters in
dwc_harvest_stats().

Drop the early return from dwc_rxfinish_one() so that we still count
received packets with e.g. a checksum error.

PR: 263817
Reported by: Jiahao LI <jiahali@blackberry.com>
Reviewed by: manu
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D35499

show more ...


# 35c9edab 21-Jun-2022 Jiahao Li <jiahali@blackberry.com>

if_dwc: enable RX checksum offload feature

We claim support in ifcaps, but don't actually enable it.

PR: 263886
Reviewed by: manu
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differentia

if_dwc: enable RX checksum offload feature

We claim support in ifcaps, but don't actually enable it.

PR: 263886
Reviewed by: manu
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D35498

show more ...


# 27b39e58 21-Jun-2022 Mitchell Horne <mhorne@FreeBSD.org>

if_dwc: add detach method

It can be useful for testing.

Reviewed by: manu
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D35496


# ca018790 21-Jun-2022 Mitchell Horne <mhorne@FreeBSD.org>

if_dwc: consistently use if.c helper methods

And if_t rather than struct ifnet *. No functional change intended.

Reviewed by: manu
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differentia

if_dwc: consistently use if.c helper methods

And if_t rather than struct ifnet *. No functional change intended.

Reviewed by: manu
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D35497

show more ...


Revision tags: release/13.1.0
# e55d0536 09-May-2022 John Baldwin <jhb@FreeBSD.org>

dwc: Remove unused devclass argument to DRIVER_MODULE.


# 3e38757d 19-Apr-2022 John Baldwin <jhb@FreeBSD.org>

Remove unused miibus_devclass and miibus_fdt_devclass.


# da6252a6 22-Feb-2022 Emmanuel Vadot <manu@FreeBSD.org>

dwc: Support phy mode MII

Some board use dwc phy in MII mode, so do not fail to attach if this is
the case.
Only rockchip code uses the phy mode to program some custom syscon register.

PR: 260848
M

dwc: Support phy mode MII

Some board use dwc phy in MII mode, so do not fail to attach if this is
the case.
Only rockchip code uses the phy mode to program some custom syscon register.

PR: 260848
MFC after: 1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG

show more ...


# 30f16ad4 22-Feb-2022 Emmanuel Vadot <manu@FreeBSD.org>

dwc: Release resources when attach fails

PR: 259282
MFC after: 1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG


# a5339ba3 11-Jan-2022 Emmanuel Vadot <manu@FreeBSD.org>

dwc: Make ext_resources non-optional

EXT_RESOURCES have been introduced in 12-CURRENT and all supported
releases have it enabled in their kernel config.

MFC after: 1 month
Differential Revision: ht

dwc: Make ext_resources non-optional

EXT_RESOURCES have been introduced in 12-CURRENT and all supported
releases have it enabled in their kernel config.

MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D33820

show more ...


# 79778f86 21-Feb-2022 Emmanuel Vadot <manu@FreeBSD.org>

if_dwc: Plug set but not used variable

Sponsored by: Beckhoff Automation GmbH & Co. KG


Revision tags: release/12.3.0
# f77d8d10 11-Apr-2021 Emmanuel Vadot <manu@FreeBSD.org>

dwc: Use mii_fdt function

Use the helper function to get phy mode and configure dwc accordingly.

Reviewed by: ian


Revision tags: release/13.0.0
# e5232621 23-Dec-2020 Oleksandr Tymoshenko <gonzo@bluezbox.com>

[if_dwc] add support for multi-descriptor packets in TX path

Original if_dwc driver used m_defrag as an implementation shortcut but on
1000Mb networks it affects performance. Implement multi-descrip

[if_dwc] add support for multi-descriptor packets in TX path

Original if_dwc driver used m_defrag as an implementation shortcut but on
1000Mb networks it affects performance. Implement multi-descriptor support for
TX path.

Tested on RK3399-Firefly, patch adds ~15% of network throughput.

Reviewed By: manu
Differential Revision: https://reviews.freebsd.org/D27520

show more ...


# 3e5cd548 03-Dec-2020 Emmanuel Vadot <manu@FreeBSD.org>

if_dwc: Honor snps,pbl property

DTS node can have this property which configure the burst length
for both TX and RX if it's the same.
This unbreak if_dwc on Allwinner A20 and possibly other boards t

if_dwc: Honor snps,pbl property

DTS node can have this property which configure the burst length
for both TX and RX if it's the same.
This unbreak if_dwc on Allwinner A20 and possibly other boards that
uses this prop.

Reported by: qroxana <qroxana@mail.ru>

show more ...


# 5e38d9e4 22-Nov-2020 Emmanuel Vadot <manu@FreeBSD.org>

if_dwc: Correctly configure the DMA engine based on the fdt properties

Do not hardcode what we setup for the DMA engine configuration but
lookup the fdt properties and configuring accordingly.
Use a

if_dwc: Correctly configure the DMA engine based on the fdt properties

Do not hardcode what we setup for the DMA engine configuration but
lookup the fdt properties and configuring accordingly.
Use a default value of 8 for the burst dma length for both TX and
RX, this is what we used for TX before.

show more ...


# 98ea5a7b 20-Nov-2020 Emmanuel Vadot <manu@FreeBSD.org>

if_dwc: Add checksum offloading support


# 2b4a66ed 20-Nov-2020 Emmanuel Vadot <manu@FreeBSD.org>

if_dwc: Add flow control support


# 3bbd11ee 20-Nov-2020 Emmanuel Vadot <manu@FreeBSD.org>

if_dwc: Use if_ function where appropriate

No functional changes intended


# 2a35d391 20-Nov-2020 Emmanuel Vadot <manu@FreeBSD.org>

if_dwc: Reorder functions and sort them by usage

No functional changes intended


# f88e0af6 20-Nov-2020 Emmanuel Vadot <manu@FreeBSD.org>

if_dwc: dwc_get_hwaddr cannot fail, change return to void

No functional changes intended


# afd0c3c2 20-Nov-2020 Emmanuel Vadot <manu@FreeBSD.org>

if_dwc: Add dwc_stop_dma and use it in dwc_stop_locked

No functional changes intended


# 86c7bc68 20-Nov-2020 Emmanuel Vadot <manu@FreeBSD.org>

if_dwc: Use dwc_enable_mac in dwc_stop_locked

No functional changes intended


# f368f4b1 20-Nov-2020 Emmanuel Vadot <manu@FreeBSD.org>

if_dwc: Add a function to enable/disable the mac tx/rx

No functional changes intended


# b0cc649b 20-Nov-2020 Emmanuel Vadot <manu@FreeBSD.org>

if_dwc: Use if_setdrvflagbits to notify that we are running

No functional changes intended


12345