mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 15:32:33 +00:00
4070e2a64c
This target adds support for the StarFive JH7100 and JH7110 SoCs, based on 6.1, as well as a couple boards equipped with these. Specifications: SoCs: JH7100: - StarFive JH7100 dual-core RISC-V (U74, RC64GC) - additional monitoring (S7) and control (E24) cores - 2Mb L2 cache JH7110: - StarFive JH7110 quad-core RISC-V (U74, RV64GC) - additional monitoring (S7) and control (E24) cores - 2Mb L2 cache Boards: VisionFive1: - JH7100 @ 1GHz - Memory: 8Gb LPDDR4 - 4x USB3.0 - 1x GBit ethernet - AMPak 6236 wifi / bluetooth - audio - powered via USB-C VisionFive2: - JH7110 @ 1.5GHz - Memory: 2/4/8Gb DDR4 - 2x Gbit ethernet - 2x USB3.0 / 2x USB2.0 - eMMC / SDIO - various multimedia input/outputs (MIPI CSI, HDMI, audio) - M.2 key M slot - PoE support - powered via USB-C Installation: Standard SD-card installation via dd-ing the generated image to an SD-card of at least 256Mb. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
56 lines
1.7 KiB
Diff
56 lines
1.7 KiB
Diff
From 5fdd2623dd3eed156fa1ec65b2096da735bb0cde Mon Sep 17 00:00:00 2001
|
|
From: Samin Guo <samin.guo@starfivetech.com>
|
|
Date: Wed, 17 Nov 2021 14:50:45 +0800
|
|
Subject: [PATCH 1007/1024] dmaengine: dw-axi-dmac: Handle xfer start while
|
|
non-idle
|
|
|
|
Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
|
|
Signed-off-by: Curry Zhang <curry.zhang@starfivetech.com>
|
|
---
|
|
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 12 +++++++++++-
|
|
drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 1 +
|
|
2 files changed, 12 insertions(+), 1 deletion(-)
|
|
|
|
--- a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
|
|
+++ b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
|
|
@@ -382,11 +382,13 @@ static void axi_chan_block_xfer_start(st
|
|
u32 irq_mask;
|
|
u8 lms = 0; /* Select AXI0 master for LLI fetching */
|
|
|
|
+ chan->is_err = false;
|
|
if (unlikely(axi_chan_is_hw_enable(chan))) {
|
|
dev_err(chan2dev(chan), "%s is non-idle!\n",
|
|
axi_chan_name(chan));
|
|
|
|
- return;
|
|
+ axi_chan_disable(chan);
|
|
+ chan->is_err = true;
|
|
}
|
|
|
|
axi_dma_enable(chan->chip);
|
|
@@ -1028,6 +1030,14 @@ static noinline void axi_chan_handle_err
|
|
axi_chan_name(chan));
|
|
goto out;
|
|
}
|
|
+ if (chan->is_err) {
|
|
+ struct axi_dma_desc *desc = vd_to_axi_desc(vd);
|
|
+
|
|
+ axi_chan_block_xfer_start(chan, desc);
|
|
+ chan->is_err = false;
|
|
+ goto out;
|
|
+ }
|
|
+
|
|
/* Remove the completed descriptor from issued list */
|
|
list_del(&vd->node);
|
|
|
|
--- a/drivers/dma/dw-axi-dmac/dw-axi-dmac.h
|
|
+++ b/drivers/dma/dw-axi-dmac/dw-axi-dmac.h
|
|
@@ -50,6 +50,7 @@ struct axi_dma_chan {
|
|
struct dma_slave_config config;
|
|
enum dma_transfer_direction direction;
|
|
bool cyclic;
|
|
+ bool is_err;
|
|
/* these other elements are all protected by vc.lock */
|
|
bool is_paused;
|
|
};
|