mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
Merge pull request #3496 from jernejsk/linux_51_final
Allwinner: update to Linux 5.1
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
diff -Nur a/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mem_linux.c b/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mem_linux.c
|
||||
--- a/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mem_linux.c 2019-04-18 22:11:29.000000000 +0200
|
||||
+++ b/driver/product/kernel/drivers/gpu/arm/midgard/mali_kbase_mem_linux.c 2019-04-18 22:15:09.982940904 +0200
|
||||
@@ -1661,7 +1661,11 @@
|
||||
static int kbase_cpu_vm_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
|
||||
{
|
||||
#else
|
||||
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(4, 17, 0))
|
||||
static int kbase_cpu_vm_fault(struct vm_fault *vmf)
|
||||
+#else
|
||||
+static vm_fault_t kbase_cpu_vm_fault(struct vm_fault *vmf)
|
||||
+#endif
|
||||
{
|
||||
struct vm_area_struct *vma = vmf->vma;
|
||||
#endif
|
||||
@@ -0,0 +1,14 @@
|
||||
diff -Nur a/driver/src/devicedrv/mali/linux/mali_memory.c b/driver/src/devicedrv/mali/linux/mali_memory.c
|
||||
--- a/driver/src/devicedrv/mali/linux/mali_memory.c 2018-09-13 08:52:20.000000000 +0200
|
||||
+++ b/driver/src/devicedrv/mali/linux/mali_memory.c 2019-04-18 19:58:27.389785486 +0200
|
||||
@@ -70,7 +70,9 @@
|
||||
}
|
||||
}
|
||||
|
||||
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
|
||||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 17, 0)
|
||||
+static vm_fault_t mali_mem_vma_fault(struct vm_fault *vmf)
|
||||
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
|
||||
static int mali_mem_vma_fault(struct vm_fault *vmf)
|
||||
#else
|
||||
static int mali_mem_vma_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
|
||||
@@ -0,0 +1,12 @@
|
||||
diff --git a/arch/arm/boot/dts/sunxi-bananapi-m2-plus.dtsi b/arch/arm/boot/dts/sunxi-bananapi-m2-plus.dtsi
|
||||
index 39263e74fbb5..0ec6109ec625 100644
|
||||
--- a/arch/arm/boot/dts/sunxi-bananapi-m2-plus.dtsi
|
||||
+++ b/arch/arm/boot/dts/sunxi-bananapi-m2-plus.dtsi
|
||||
@@ -219,6 +219,7 @@
|
||||
|
||||
bluetooth {
|
||||
compatible = "brcm,bcm43438-bt";
|
||||
+ max-speed = <1500000>;
|
||||
clocks = <&rtc 1>;
|
||||
clock-names = "lpo";
|
||||
vbat-supply = <®_vcc3v3>;
|
||||
@@ -125,81 +125,6 @@ index ff11cbeba205..b98add3cdedd 100644
|
||||
2.20.1
|
||||
|
||||
|
||||
From b4ca53c594950b80d71ac320b3505a303e7f6092 Mon Sep 17 00:00:00 2001
|
||||
From: Jernej Skrabec <jernej.skrabec@siol.net>
|
||||
Date: Mon, 28 Jan 2019 20:05:47 +0100
|
||||
Subject: [PATCH 4/6] dt-bindings: sram: sunxi: Add compatible for the H6 SRAM
|
||||
C1
|
||||
|
||||
This introduces a new compatible for the H6 SRAM C1 section, that is
|
||||
compatible with the SRAM C1 section as found on the A10.
|
||||
|
||||
Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
|
||||
---
|
||||
Documentation/devicetree/bindings/sram/sunxi-sram.txt | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/Documentation/devicetree/bindings/sram/sunxi-sram.txt b/Documentation/devicetree/bindings/sram/sunxi-sram.txt
|
||||
index ab5a70bb9a64..380246a805f2 100644
|
||||
--- a/Documentation/devicetree/bindings/sram/sunxi-sram.txt
|
||||
+++ b/Documentation/devicetree/bindings/sram/sunxi-sram.txt
|
||||
@@ -63,6 +63,7 @@ The valid sections compatible for H5 are:
|
||||
|
||||
The valid sections compatible for H6 are:
|
||||
- allwinner,sun50i-h6-sram-c, allwinner,sun50i-a64-sram-c
|
||||
+ - allwinner,sun50i-h6-sram-c1, allwinner,sun4i-a10-sram-c1
|
||||
|
||||
The valid sections compatible for F1C100s are:
|
||||
- allwinner,suniv-f1c100s-sram-d, allwinner,sun4i-a10-sram-d
|
||||
--
|
||||
2.20.1
|
||||
|
||||
|
||||
From 6a505c910b90581b2a980e52f9b6fcb03d234cb7 Mon Sep 17 00:00:00 2001
|
||||
From: Jernej Skrabec <jernej.skrabec@siol.net>
|
||||
Date: Mon, 28 Jan 2019 19:53:30 +0100
|
||||
Subject: [PATCH 5/6] arm64: dts: allwinner: h6: Add support for the SRAM C1
|
||||
section
|
||||
|
||||
Add a node for H6 SRAM C1 section.
|
||||
|
||||
Manual calls it VE SRAM, but for consistency with older SoCs, SRAM C1
|
||||
name is used.
|
||||
|
||||
Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
|
||||
---
|
||||
arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 14 ++++++++++++++
|
||||
1 file changed, 14 insertions(+)
|
||||
|
||||
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
|
||||
index d93a7add67e7..247dc0a5ce89 100644
|
||||
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
|
||||
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
|
||||
@@ -167,6 +167,20 @@
|
||||
reg = <0x0000 0x1e000>;
|
||||
};
|
||||
};
|
||||
+
|
||||
+ sram_c1: sram@1a00000 {
|
||||
+ compatible = "mmio-sram";
|
||||
+ reg = <0x01a00000 0x200000>;
|
||||
+ #address-cells = <1>;
|
||||
+ #size-cells = <1>;
|
||||
+ ranges = <0 0x01a00000 0x200000>;
|
||||
+
|
||||
+ ve_sram: sram-section@0 {
|
||||
+ compatible = "allwinner,sun50i-h6-sram-c1",
|
||||
+ "allwinner,sun4i-a10-sram-c1";
|
||||
+ reg = <0x000000 0x200000>;
|
||||
+ };
|
||||
+ };
|
||||
};
|
||||
|
||||
ccu: clock@3001000 {
|
||||
--
|
||||
2.20.1
|
||||
|
||||
|
||||
From c1b3128ac98c05c0afde4e6e065d6b1f2ae1dfa7 Mon Sep 17 00:00:00 2001
|
||||
From: Jernej Skrabec <jernej.skrabec@siol.net>
|
||||
Date: Mon, 28 Jan 2019 19:59:27 +0100
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -401,9 +401,9 @@ index ccb5aa8468e0..e78be449e763 100644
|
||||
--- a/include/drm/bridge/dw_hdmi.h
|
||||
+++ b/include/drm/bridge/dw_hdmi.h
|
||||
@@ -156,6 +156,8 @@ void dw_hdmi_setup_rx_sense(struct dw_hdmi *hdmi, bool hpd, bool rx_sense);
|
||||
void dw_hdmi_set_sample_rate(struct dw_hdmi *hdmi, unsigned int rate);
|
||||
void dw_hdmi_audio_enable(struct dw_hdmi *hdmi);
|
||||
void dw_hdmi_audio_disable(struct dw_hdmi *hdmi);
|
||||
void dw_hdmi_set_high_tmds_clock_ratio(struct dw_hdmi *hdmi);
|
||||
+void dw_hdmi_set_update_eld(struct dw_hdmi *hdmi,
|
||||
+ void (*update_eld)(struct device *dev, u8 *eld));
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,91 @@
|
||||
From e3a864e94eb7b22812d7d9b80403aaba7ade8e49 Mon Sep 17 00:00:00 2001
|
||||
From: Jernej Skrabec <jernej.skrabec@siol.net>
|
||||
Date: Wed, 8 May 2019 23:36:51 +0200
|
||||
Subject: [PATCH] Revert "media: vb2: keep track of timestamp status"
|
||||
|
||||
This reverts commit 7e4e71624491d8a8befe62b43138beb0ab696006.
|
||||
---
|
||||
drivers/media/common/videobuf2/videobuf2-core.c | 3 ---
|
||||
drivers/media/common/videobuf2/videobuf2-v4l2.c | 3 +--
|
||||
drivers/media/v4l2-core/v4l2-mem2mem.c | 1 -
|
||||
include/media/videobuf2-core.h | 3 ---
|
||||
4 files changed, 1 insertion(+), 9 deletions(-)
|
||||
|
||||
diff --git a/drivers/media/common/videobuf2/videobuf2-core.c b/drivers/media/common/videobuf2/videobuf2-core.c
|
||||
index 3cf25abf5807..3b0c6d3dd1e3 100644
|
||||
--- a/drivers/media/common/videobuf2/videobuf2-core.c
|
||||
+++ b/drivers/media/common/videobuf2/videobuf2-core.c
|
||||
@@ -1041,7 +1041,6 @@ static int __prepare_userptr(struct vb2_buffer *vb)
|
||||
if (vb->planes[plane].mem_priv) {
|
||||
if (!reacquired) {
|
||||
reacquired = true;
|
||||
- vb->copied_timestamp = 0;
|
||||
call_void_vb_qop(vb, buf_cleanup, vb);
|
||||
}
|
||||
call_void_memop(vb, put_userptr, vb->planes[plane].mem_priv);
|
||||
@@ -1166,7 +1165,6 @@ static int __prepare_dmabuf(struct vb2_buffer *vb)
|
||||
|
||||
if (!reacquired) {
|
||||
reacquired = true;
|
||||
- vb->copied_timestamp = 0;
|
||||
call_void_vb_qop(vb, buf_cleanup, vb);
|
||||
}
|
||||
|
||||
@@ -1957,7 +1955,6 @@ static void __vb2_queue_cancel(struct vb2_queue *q)
|
||||
if (vb->request)
|
||||
media_request_put(vb->request);
|
||||
vb->request = NULL;
|
||||
- vb->copied_timestamp = 0;
|
||||
}
|
||||
}
|
||||
|
||||
diff --git a/drivers/media/common/videobuf2/videobuf2-v4l2.c b/drivers/media/common/videobuf2/videobuf2-v4l2.c
|
||||
index fb9ac7696fc6..ba57dee66592 100644
|
||||
--- a/drivers/media/common/videobuf2/videobuf2-v4l2.c
|
||||
+++ b/drivers/media/common/videobuf2/videobuf2-v4l2.c
|
||||
@@ -608,8 +608,7 @@ int vb2_find_timestamp(const struct vb2_queue *q, u64 timestamp,
|
||||
unsigned int i;
|
||||
|
||||
for (i = start_idx; i < q->num_buffers; i++)
|
||||
- if (q->bufs[i]->copied_timestamp &&
|
||||
- q->bufs[i]->timestamp == timestamp)
|
||||
+ if (q->bufs[i]->timestamp == timestamp)
|
||||
return i;
|
||||
return -1;
|
||||
}
|
||||
diff --git a/drivers/media/v4l2-core/v4l2-mem2mem.c b/drivers/media/v4l2-core/v4l2-mem2mem.c
|
||||
index 3392833d9541..82ef90af3de1 100644
|
||||
--- a/drivers/media/v4l2-core/v4l2-mem2mem.c
|
||||
+++ b/drivers/media/v4l2-core/v4l2-mem2mem.c
|
||||
@@ -989,7 +989,6 @@ void v4l2_m2m_buf_copy_metadata(const struct vb2_v4l2_buffer *out_vb,
|
||||
cap_vb->field = out_vb->field;
|
||||
cap_vb->flags &= ~mask;
|
||||
cap_vb->flags |= out_vb->flags & mask;
|
||||
- cap_vb->vb2_buf.copied_timestamp = 1;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(v4l2_m2m_buf_copy_metadata);
|
||||
|
||||
diff --git a/include/media/videobuf2-core.h b/include/media/videobuf2-core.h
|
||||
index 22f3ff76a8b5..7cdeadb6b596 100644
|
||||
--- a/include/media/videobuf2-core.h
|
||||
+++ b/include/media/videobuf2-core.h
|
||||
@@ -260,8 +260,6 @@ struct vb2_buffer {
|
||||
* prepared: this buffer has been prepared, i.e. the
|
||||
* buf_prepare op was called. It is cleared again
|
||||
* after the 'buf_finish' op is called.
|
||||
- * copied_timestamp: the timestamp of this capture buffer was copied
|
||||
- * from an output buffer.
|
||||
* queued_entry: entry on the queued buffers list, which holds
|
||||
* all buffers queued from userspace
|
||||
* done_entry: entry on the list that stores all buffers ready
|
||||
@@ -271,7 +269,6 @@ struct vb2_buffer {
|
||||
enum vb2_buffer_state state;
|
||||
unsigned int synced:1;
|
||||
unsigned int prepared:1;
|
||||
- unsigned int copied_timestamp:1;
|
||||
|
||||
struct vb2_plane planes[VB2_MAX_PLANES];
|
||||
struct list_head queued_entry;
|
||||
--
|
||||
2.21.0
|
||||
|
||||
Reference in New Issue
Block a user