[PATCH v6 02/10] net: eth: altera: set rx and tx ring size before init_dma call

2020-08-18 Thread Ooi, Joyce
From: Dalon Westergreen It is more appropriate to set the rx and tx ring size before calling the init function for the dma. Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi Reviewed-by: Thor Thayer --- v2: no change v3: no change v4: no change v5: no change v6: no change --- drivers

[PATCH v6 03/10] net: eth: altera: fix altera_dmaops declaration

2020-08-18 Thread Ooi, Joyce
From: Dalon Westergreen The declaration of struct altera_dmaops does not have identifier names. Add identifier names to confrom with required coding styles. Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi Reviewed-by: Thor Thayer --- v2: no change v3: no change v4: no change v5: no

[PATCH v6 07/10] net: eth: altera: change tx functions to type netdev_tx_t

2020-08-18 Thread Ooi, Joyce
From: Dalon Westergreen Modify all msgdma and sgdma tx_buffer functions to be of type netdev_tx_t, and also modify main tx function to be of netdev_tx_t type. Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi Reviewed-by: Thor Thayer --- v2: this patch is added in patch version 2 v3:

[PATCH v6 10/10] net: eth: altera: update devicetree bindings documentation

2020-08-18 Thread Ooi, Joyce
From: Dalon Westergreen Update devicetree bindings documentation to include msgdma prefetcher and ptp bindings. Cc: Rob Herring Cc: devicet...@vger.kernel.org Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi Reviewed-by: Rob Herring --- v2: no change v3: no change v4: no change v5:

[PATCH v6 09/10] net: eth: altera: add msgdma prefetcher

2020-08-18 Thread Ooi, Joyce
From: Dalon Westergreen Add support for the mSGDMA prefetcher. The prefetcher adds support for a linked list of descriptors in system memory. The prefetcher feeds these to the mSGDMA dispatcher. The prefetcher is configured to poll for the next descriptor in the list to be owned by hardware, t

[PATCH v6 06/10] net: eth: altera: Add missing identifier names to function declarations

2020-08-18 Thread Ooi, Joyce
From: Dalon Westergreen The sgdma and msgdma header files included function declarations without identifier names for pointers. Add appropriate identifier names. Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi Reviewed-by: Thor Thayer --- v2: this patch is added in patch version 2

[PATCH v6 04/10] net: eth: altera: add optional function to start tx dma

2020-08-18 Thread Ooi, Joyce
From: Dalon Westergreen Allow for optional start up of tx dma if the start_txdma function is defined in altera_dmaops. Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi Reviewed-by: Thor Thayer --- v2: no change v3: no change v4: no change v5: no change v6: no change --- drivers/net/

[PATCH v6 05/10] net: eth: altera: Move common functions to altera_utils

2020-08-18 Thread Ooi, Joyce
From: Dalon Westergreen Move request_and_map and other shared functions to altera_utils. This is the first step to moving common code out of tse specific code so that it can be shared with future altera ethernet ip. Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi Reviewed-by: Thor Th

[PATCH v6 00/10] net: eth: altera: tse: Add PTP and mSGDMA prefetcher

2020-08-18 Thread Ooi, Joyce
From: Joyce Ooi This patch series cleans up the Altera TSE driver and adds support for the newer msgdma prefetcher as well as ptp support when using the msgdma prefetcher. v2: Rename altera_ptp to intel_fpga_tod, modify msgdma and sgdma tx_buffer functions to be of type netdev_tx_t, and mino

[PATCH v6 08/10] net: eth: altera: add support for ptp and timestamping

2020-08-18 Thread Ooi, Joyce
From: Dalon Westergreen Add support for the ptp clock used with the tse, and update the driver to support timestamping when enabled. We also enable debugfs entries for the ptp clock to allow some user control and interaction with the ptp clock. Cc: Richard Cochran Signed-off-by: Dalon Westergr

[PATCH v6 01/10] net: eth: altera: tse_start_xmit ignores tx_buffer call response

2020-08-18 Thread Ooi, Joyce
From: Dalon Westergreen The return from tx_buffer call in tse_start_xmit is inapropriately ignored. tse_buffer calls should return 0 for success or NETDEV_TX_BUSY. tse_start_xmit should return not report a successful transmit when the tse_buffer call returns an error condition. In addition to

RE: [PATCH v5 08/10] net: eth: altera: add support for ptp and timestamping

2020-08-07 Thread Ooi, Joyce
> -Original Message- > From: Richard Cochran > Sent: Monday, July 27, 2020 10:29 PM > To: Ooi, Joyce > Cc: Thor Thayer ; David S . Miller > ; Jakub Kicinski ; > netdev@vger.kernel.org; linux-ker...@vger.kernel.org; Dalon Westergreen > ; Tan, Ley Foon > ; See,

[PATCH v5 02/10] net: eth: altera: set rx and tx ring size before init_dma call

2020-07-27 Thread Ooi, Joyce
From: Dalon Westergreen It is more appropriate to set the rx and tx ring size before calling the init function for the dma. Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi Reviewed-by: Thor Thayer --- v2: no change v3: no change v4: no change v5: no change --- drivers/net/ethernet/

[PATCH v5 01/10] net: eth: altera: tse_start_xmit ignores tx_buffer call response

2020-07-27 Thread Ooi, Joyce
From: Dalon Westergreen The return from tx_buffer call in tse_start_xmit is inapropriately ignored. tse_buffer calls should return 0 for success or NETDEV_TX_BUSY. tse_start_xmit should return not report a successful transmit when the tse_buffer call returns an error condition. In addition to

[PATCH v5 03/10] net: eth: altera: fix altera_dmaops declaration

2020-07-27 Thread Ooi, Joyce
From: Dalon Westergreen The declaration of struct altera_dmaops does not have identifier names. Add identifier names to confrom with required coding styles. Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi Reviewed-by: Thor Thayer --- v2: no change v3: no change v4: no change v5: no

[PATCH v5 00/10] net: eth: altera: tse: Add PTP and mSGDMA prefetcher

2020-07-27 Thread Ooi, Joyce
From: Joyce Ooi This patch series cleans up the Altera TSE driver and adds support for the newer msgdma prefetcher as well as ptp support when using the msgdma prefetcher. v2: Rename altera_ptp to intel_fpga_tod, modify msgdma and sgdma tx_buffer functions to be of type netdev_tx_t, and mino

[PATCH v5 06/10] net: eth: altera: Add missing identifier names to function declarations

2020-07-27 Thread Ooi, Joyce
From: Dalon Westergreen The sgdma and msgdma header files included function declarations without identifier names for pointers. Add appropriate identifier names. Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi Reviewed-by: Thor Thayer --- v2: this patch is added in patch version 2

[PATCH v5 07/10] net: eth: altera: change tx functions to type netdev_tx_t

2020-07-27 Thread Ooi, Joyce
From: Dalon Westergreen Modify all msgdma and sgdma tx_buffer functions to be of type netdev_tx_t, and also modify main tx function to be of netdev_tx_t type. Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi Reviewed-by: Thor Thayer --- v2: this patch is added in patch version 2 v3:

[PATCH v5 05/10] net: eth: altera: Move common functions to altera_utils

2020-07-27 Thread Ooi, Joyce
From: Dalon Westergreen Move request_and_map and other shared functions to altera_utils. This is the first step to moving common code out of tse specific code so that it can be shared with future altera ethernet ip. Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi Reviewed-by: Thor Th

[PATCH v5 04/10] net: eth: altera: add optional function to start tx dma

2020-07-27 Thread Ooi, Joyce
From: Dalon Westergreen Allow for optional start up of tx dma if the start_txdma function is defined in altera_dmaops. Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi Reviewed-by: Thor Thayer --- v2: no change v3: no change v4: no change v5: no change --- drivers/net/ethernet/alter

[PATCH v5 10/10] net: eth: altera: update devicetree bindings documentation

2020-07-27 Thread Ooi, Joyce
From: Dalon Westergreen Update devicetree bindings documentation to include msgdma prefetcher and ptp bindings. Cc: Rob Herring Cc: devicet...@vger.kernel.org Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi Reviewed-by: Rob Herring --- v2: no change v3: no change v4: no change v5:

[PATCH v5 09/10] net: eth: altera: add msgdma prefetcher

2020-07-27 Thread Ooi, Joyce
From: Dalon Westergreen Add support for the mSGDMA prefetcher. The prefetcher adds support for a linked list of descriptors in system memory. The prefetcher feeds these to the mSGDMA dispatcher. The prefetcher is configured to poll for the next descriptor in the list to be owned by hardware, t

[PATCH v5 08/10] net: eth: altera: add support for ptp and timestamping

2020-07-27 Thread Ooi, Joyce
From: Dalon Westergreen Add support for the ptp clock used with the tse, and update the driver to support timestamping when enabled. We also enable debugfs entries for the ptp clock to allow some user control and interaction with the ptp clock. Cc: Richard Cochran Signed-off-by: Dalon Westergr

RE: [PATCH v4 09/10] net: eth: altera: add msgdma prefetcher

2020-07-14 Thread Ooi, Joyce
> -Original Message- > From: Jakub Kicinski > Sent: Thursday, July 9, 2020 5:49 AM > To: Ooi, Joyce > Cc: Thor Thayer ; David S . Miller > ; netdev@vger.kernel.org; linux- > ker...@vger.kernel.org; Dalon Westergreen > ; Tan, Ley Foon > ; See, Chin Liang ; &

RE: [PATCH v4 09/10] net: eth: altera: add msgdma prefetcher

2020-07-14 Thread Ooi, Joyce
> -Original Message- > From: David Miller > Sent: Thursday, July 9, 2020 1:34 AM > To: Ooi, Joyce > Cc: thor.tha...@linux.intel.com; k...@kernel.org; netdev@vger.kernel.org; > linux-ker...@vger.kernel.org; dalon.westergr...@linux.intel.com; Tan, Ley > Foon ; See,

RE: [PATCH v4 08/10] net: eth: altera: add support for ptp and timestamping

2020-07-14 Thread Ooi, Joyce
> -Original Message- > From: Richard Cochran > Sent: Thursday, July 9, 2020 7:31 PM > To: Ooi, Joyce > Cc: Thor Thayer ; David S . Miller > ; Jakub Kicinski ; > netdev@vger.kernel.org; linux-ker...@vger.kernel.org; Dalon Westergreen > ; Tan, Ley Foon > ; See,

[PATCH] net: stmmac: Add SMC support for EMAC System Manager register

2019-02-12 Thread Ooi, Joyce
As there is restriction to access to EMAC System Manager registers in the kernel for Intel Stratix10, the use of SMC calls are required and added in dwmac-socfpga driver. Signed-off-by: Ooi, Joyce --- .../net/ethernet/stmicro/stmmac/dwmac-socfpga.c| 101 1 files

RE: [PATCH] net: stmmac: Add SMC support for EMAC System Manager register

2019-02-12 Thread Ooi, Joyce
> -Original Message- > From: Thor Thayer [mailto:thor.tha...@linux.intel.com] > Sent: Wednesday, February 13, 2019 4:53 AM > To: Ooi, Joyce ; Giuseppe Cavallaro > ; Alexandre Torgue ; > Jose Abreu ; David S. Miller ; > Maxime Coquelin > Cc: netdev@vger.kerne

RE: [PATCHv2 10/10] net: eth: altera: update devicetree bindings documentation

2020-05-13 Thread Ooi, Joyce
> -Original Message- > From: Rob Herring > Sent: Wednesday, May 13, 2020 6:53 AM > To: Ooi, Joyce > Cc: Thor Thayer ; David S . Miller > ; netdev@vger.kernel.org; linux- > ker...@vger.kernel.org; Westergreen, Dalon > ; Tan, Ley Foon ; > See, Chin Liang

RE: [PATCHv2 10/10] net: eth: altera: update devicetree bindings documentation

2020-05-13 Thread Ooi, Joyce
> -Original Message- > From: Ooi, Joyce > Sent: Wednesday, May 13, 2020 8:01 PM > To: Rob Herring > Cc: Thor Thayer ; David S . Miller > ; netdev@vger.kernel.org; linux- > ker...@vger.kernel.org; Westergreen, Dalon ; > Tan, Ley Foon ; See, Chin Liang >

[PATCH v3 00/10] net: eth: altera: tse: Add PTP and mSGDMA prefetcher

2020-06-04 Thread Ooi, Joyce
From: Joyce Ooi This patch series cleans up the Altera TSE driver and adds support for the newer msgdma prefetcher as well as ptp support when using the msgdma prefetcher. v2: Rename altera_ptp to intel_fpga_tod, modify msgdma and sgdma tx_buffer functions to be of type netdev_tx_t, and mino

[PATCH v3 01/10] net: eth: altera: tse_start_xmit ignores tx_buffer call response

2020-06-04 Thread Ooi, Joyce
From: Dalon Westergreen The return from tx_buffer call in tse_start_xmit is inapropriately ignored. tse_buffer calls should return 0 for success or NETDEV_TX_BUSY. tse_start_xmit should return not report a successful transmit when the tse_buffer call returns an error condition. In addition to

[PATCH v3 06/10] net: eth: altera: Add missing identifier names to function declarations

2020-06-04 Thread Ooi, Joyce
From: Dalon Westergreen The sgdma and msgdma header files included function declarations without identifier names for pointers. Add appropriate identifier names. Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi --- v2: this patch is added in patch version 2 v3: no change --- drivers

[PATCH v3 05/10] net: eth: altera: Move common functions to altera_utils

2020-06-04 Thread Ooi, Joyce
From: Dalon Westergreen Move request_and_map and other shared functions to altera_utils. This is the first step to moving common code out of tse specific code so that it can be shared with future altera ethernet ip. Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi --- v2: no change v3

[PATCH v3 04/10] net: eth: altera: add optional function to start tx dma

2020-06-04 Thread Ooi, Joyce
From: Dalon Westergreen Allow for optional start up of tx dma if the start_txdma function is defined in altera_dmaops. Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi --- v2: no change v3: no change --- drivers/net/ethernet/altera/altera_tse.h | 1 + drivers/net/ethernet/altera

[PATCH v3 02/10] net: eth: altera: set rx and tx ring size before init_dma call

2020-06-04 Thread Ooi, Joyce
From: Dalon Westergreen It is more appropriate to set the rx and tx ring size before calling the init function for the dma. Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi --- v2: no change v3: no change --- drivers/net/ethernet/altera/altera_tse_main.c | 6 -- 1 file changed, 4

[PATCH v3 07/10] net: eth: altera: change tx functions to type netdev_tx_t

2020-06-04 Thread Ooi, Joyce
From: Dalon Westergreen Modify all msgdma and sgdma tx_buffer functions to be of type netdev_tx_t, and also modify main tx function to be of netdev_tx_t type. Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi --- v2: this patch is added in patch version 2 v3: no change --- drivers/net

[PATCH v3 03/10] net: eth: altera: fix altera_dmaops declaration

2020-06-04 Thread Ooi, Joyce
From: Dalon Westergreen The declaration of struct altera_dmaops does not have identifier names. Add identifier names to confrom with required coding styles. Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi --- v2: no change v3: no change --- drivers/net/ethernet/altera/altera_tse.h

[PATCH v3 08/10] net: eth: altera: add support for ptp and timestamping

2020-06-04 Thread Ooi, Joyce
From: Dalon Westergreen Add support for the ptp clock used with the tse, and update the driver to support timestamping when enabled. We also enable debugfs entries for the ptp clock to allow some user control and interaction with the ptp clock. Cc: Richard Cochran Signed-off-by: Dalon Westergr

[PATCH v3 09/10] net: eth: altera: add msgdma prefetcher

2020-06-04 Thread Ooi, Joyce
From: Dalon Westergreen Add support for the mSGDMA prefetcher. The prefetcher adds support for a linked list of descriptors in system memory. The prefetcher feeds these to the mSGDMA dispatcher. The prefetcher is configured to poll for the next descriptor in the list to be owned by hardware, t

[PATCH v3 10/10] net: eth: altera: update devicetree bindings documentation

2020-06-04 Thread Ooi, Joyce
From: Dalon Westergreen Update devicetree bindings documentation to include msgdma prefetcher and ptp bindings. Cc: Rob Herring Cc: devicet...@vger.kernel.org Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi --- v2: no change v3: no change --- .../devicetree/bindings/net/altera_tse.

RE: [PATCH v3 10/10] net: eth: altera: update devicetree bindings documentation

2020-06-04 Thread Ooi, Joyce
> -Original Message- > From: Rob Herring > Sent: Friday, June 5, 2020 6:23 AM > To: Ooi, Joyce > Cc: David S . Miller ; Jakub Kicinski > ; Thor Thayer ; > netdev@vger.kernel.org; Rob Herring ; See, Chin > Liang ; linux-ker...@vger.kernel.org; Nguyen, >

RE: [PATCHv2 01/10] net: eth: altera: tse_start_xmit ignores tx_buffer call response

2020-05-05 Thread Ooi, Joyce
> -Original Message- > From: David Miller > Sent: Tuesday, May 5, 2020 1:40 AM > To: Ooi, Joyce > Cc: thor.tha...@linux.intel.com; netdev@vger.kernel.org; linux- > ker...@vger.kernel.org; Westergreen, Dalon ; > Tan, Ley Foon ; See, Chin Liang > ; Nguyen, Dinh &g

[PATCH v4 00/10] net: eth: altera: tse: Add PTP and mSGDMA prefetcher

2020-07-08 Thread Ooi, Joyce
From: Joyce Ooi This patch series cleans up the Altera TSE driver and adds support for the newer msgdma prefetcher as well as ptp support when using the msgdma prefetcher. v2: Rename altera_ptp to intel_fpga_tod, modify msgdma and sgdma tx_buffer functions to be of type netdev_tx_t, and mino

[PATCH v4 03/10] net: eth: altera: fix altera_dmaops declaration

2020-07-08 Thread Ooi, Joyce
From: Dalon Westergreen The declaration of struct altera_dmaops does not have identifier names. Add identifier names to confrom with required coding styles. Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi --- v2: no change v3: no change v4: no change --- drivers/net/ethernet/altera

[PATCH v4 04/10] net: eth: altera: add optional function to start tx dma

2020-07-08 Thread Ooi, Joyce
From: Dalon Westergreen Allow for optional start up of tx dma if the start_txdma function is defined in altera_dmaops. Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi --- v2: no change v3: no change v4: no change --- drivers/net/ethernet/altera/altera_tse.h | 1 + drivers/net/e

[PATCH v4 01/10] net: eth: altera: tse_start_xmit ignores tx_buffer call response

2020-07-08 Thread Ooi, Joyce
From: Dalon Westergreen The return from tx_buffer call in tse_start_xmit is inapropriately ignored. tse_buffer calls should return 0 for success or NETDEV_TX_BUSY. tse_start_xmit should return not report a successful transmit when the tse_buffer call returns an error condition. In addition to

[PATCH v4 02/10] net: eth: altera: set rx and tx ring size before init_dma call

2020-07-08 Thread Ooi, Joyce
From: Dalon Westergreen It is more appropriate to set the rx and tx ring size before calling the init function for the dma. Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi --- v2: no change v3: no change v4: no change --- drivers/net/ethernet/altera/altera_tse_main.c | 6 -- 1 f

[PATCH v4 06/10] net: eth: altera: Add missing identifier names to function declarations

2020-07-08 Thread Ooi, Joyce
From: Dalon Westergreen The sgdma and msgdma header files included function declarations without identifier names for pointers. Add appropriate identifier names. Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi --- v2: this patch is added in patch version 2 v3: no change v4: no chang

[PATCH v4 08/10] net: eth: altera: add support for ptp and timestamping

2020-07-08 Thread Ooi, Joyce
From: Dalon Westergreen Add support for the ptp clock used with the tse, and update the driver to support timestamping when enabled. We also enable debugfs entries for the ptp clock to allow some user control and interaction with the ptp clock. Cc: Richard Cochran Signed-off-by: Dalon Westergr

[PATCH v4 07/10] net: eth: altera: change tx functions to type netdev_tx_t

2020-07-08 Thread Ooi, Joyce
From: Dalon Westergreen Modify all msgdma and sgdma tx_buffer functions to be of type netdev_tx_t, and also modify main tx function to be of netdev_tx_t type. Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi --- v2: this patch is added in patch version 2 v3: no change v4: no change --

[PATCH v4 05/10] net: eth: altera: Move common functions to altera_utils

2020-07-08 Thread Ooi, Joyce
From: Dalon Westergreen Move request_and_map and other shared functions to altera_utils. This is the first step to moving common code out of tse specific code so that it can be shared with future altera ethernet ip. Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi --- v2: no change v3

[PATCH v4 10/10] net: eth: altera: update devicetree bindings documentation

2020-07-08 Thread Ooi, Joyce
From: Dalon Westergreen Update devicetree bindings documentation to include msgdma prefetcher and ptp bindings. Cc: Rob Herring Cc: devicet...@vger.kernel.org Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi Reviewed-by: Rob Herring --- v2: no change v3: no change v4: no change ---

[PATCH v4 09/10] net: eth: altera: add msgdma prefetcher

2020-07-08 Thread Ooi, Joyce
From: Dalon Westergreen Add support for the mSGDMA prefetcher. The prefetcher adds support for a linked list of descriptors in system memory. The prefetcher feeds these to the mSGDMA dispatcher. The prefetcher is configured to poll for the next descriptor in the list to be owned by hardware, t