2018-10-30 10:02:02

by David Abdurachmanov

[permalink] [raw]
Subject: [PATCH 0/2] riscv: add ARCH_HAS_SG_CHAIN to Kconfig

This should improve virtio-gpu support for riscv.

David Abdurachmanov (2):
riscv: add ARCH_HAS_SG_CHAIN
doc: re-run features-refresh.sh

Documentation/features/io/sg-chain/arch-support.txt | 4 ++--
.../features/locking/queued-spinlocks/arch-support.txt | 2 +-
Documentation/features/perf/kprobes-event/arch-support.txt | 2 +-
Documentation/features/vm/pte_special/arch-support.txt | 2 +-
arch/riscv/Kconfig | 1 +
5 files changed, 6 insertions(+), 5 deletions(-)

--
2.17.2



2018-10-30 10:02:20

by David Abdurachmanov

[permalink] [raw]
Subject: [PATCH 2/2] doc: re-run features-refresh.sh

Some arch-support.txt are out-of-date.
This also incl. riscv in sg-chain and pte_special tables.

Signed-off-by: David Abdurachmanov <[email protected]>
---
Documentation/features/io/sg-chain/arch-support.txt | 4 ++--
.../features/locking/queued-spinlocks/arch-support.txt | 2 +-
Documentation/features/perf/kprobes-event/arch-support.txt | 2 +-
Documentation/features/vm/pte_special/arch-support.txt | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/Documentation/features/io/sg-chain/arch-support.txt b/Documentation/features/io/sg-chain/arch-support.txt
index 6554f0372c3f..41ea6f738b38 100644
--- a/Documentation/features/io/sg-chain/arch-support.txt
+++ b/Documentation/features/io/sg-chain/arch-support.txt
@@ -22,12 +22,12 @@
| openrisc: | TODO |
| parisc: | TODO |
| powerpc: | ok |
- | riscv: | TODO |
+ | riscv: | ok |
| s390: | ok |
| sh: | TODO |
| sparc: | ok |
| um: | TODO |
| unicore32: | TODO |
| x86: | ok |
- | xtensa: | TODO |
+ | xtensa: | ok |
-----------------------
diff --git a/Documentation/features/locking/queued-spinlocks/arch-support.txt b/Documentation/features/locking/queued-spinlocks/arch-support.txt
index 478e9101322c..beb013a72a90 100644
--- a/Documentation/features/locking/queued-spinlocks/arch-support.txt
+++ b/Documentation/features/locking/queued-spinlocks/arch-support.txt
@@ -9,7 +9,7 @@
| alpha: | TODO |
| arc: | TODO |
| arm: | TODO |
- | arm64: | TODO |
+ | arm64: | ok |
| c6x: | TODO |
| h8300: | TODO |
| hexagon: | TODO |
diff --git a/Documentation/features/perf/kprobes-event/arch-support.txt b/Documentation/features/perf/kprobes-event/arch-support.txt
index 7331402d1887..bfe41d68b7af 100644
--- a/Documentation/features/perf/kprobes-event/arch-support.txt
+++ b/Documentation/features/perf/kprobes-event/arch-support.txt
@@ -20,7 +20,7 @@
| nds32: | ok |
| nios2: | TODO |
| openrisc: | TODO |
- | parisc: | TODO |
+ | parisc: | ok |
| powerpc: | ok |
| riscv: | TODO |
| s390: | ok |
diff --git a/Documentation/features/vm/pte_special/arch-support.txt b/Documentation/features/vm/pte_special/arch-support.txt
index a8378424bc98..5bca00664a4f 100644
--- a/Documentation/features/vm/pte_special/arch-support.txt
+++ b/Documentation/features/vm/pte_special/arch-support.txt
@@ -22,7 +22,7 @@
| openrisc: | TODO |
| parisc: | TODO |
| powerpc: | ok |
- | riscv: | TODO |
+ | riscv: | ok |
| s390: | ok |
| sh: | ok |
| sparc: | ok |
--
2.17.2


2018-10-30 10:03:32

by David Abdurachmanov

[permalink] [raw]
Subject: [PATCH 1/2] riscv: add ARCH_HAS_SG_CHAIN

This seems to be needed for virtio-gpu.

Signed-off-by: David Abdurachmanov <[email protected]>
Reported-by: Michael Forney <[email protected]>
---
arch/riscv/Kconfig | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index a344980287a5..b54f2ade769b 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -44,6 +44,7 @@ config RISCV
select RISCV_TIMER
select GENERIC_IRQ_MULTI_HANDLER
select ARCH_HAS_PTE_SPECIAL
+ select ARCH_HAS_SG_CHAIN

config MMU
def_bool y
--
2.17.2


2018-11-13 01:53:06

by Palmer Dabbelt

[permalink] [raw]
Subject: Re: [PATCH 0/2] riscv: add ARCH_HAS_SG_CHAIN to Kconfig

On Tue, 30 Oct 2018 03:01:05 PDT (-0700), [email protected] wrote:
> This should improve virtio-gpu support for riscv.
>
> David Abdurachmanov (2):
> riscv: add ARCH_HAS_SG_CHAIN
> doc: re-run features-refresh.sh
>
> Documentation/features/io/sg-chain/arch-support.txt | 4 ++--
> .../features/locking/queued-spinlocks/arch-support.txt | 2 +-
> Documentation/features/perf/kprobes-event/arch-support.txt | 2 +-
> Documentation/features/vm/pte_special/arch-support.txt | 2 +-
> arch/riscv/Kconfig | 1 +
> 5 files changed, 6 insertions(+), 5 deletions(-)

I'm not opposed to this, but I have no idea what it does or why it's in
arch/*/Kconfig. I've added the first patch to next-sg_chain, but I'm going to
re-do the second one as it looks like it batches up a bunch of updates.

Thanks!