From c65ec1aa8fbcbafdc568c4206286ca77f3234caf Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Sat, 27 Sep 2014 19:10:51 +0000 Subject: brcm2708: update 3.10 patches with raspberrypi/rpi-3.10.y of 27 Apr. 2014 Update the 3.10 rasperry patches by rebasing raspberry/rpi-3.10-y against linux-stable/v3.10.49. Signed-off-by: Florian Fainelli git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42678 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- ...-create_pagelist-copes-with-vmalloc-memory.patch | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'target/linux/brcm2708/patches-3.10/0108-vchiq-create_pagelist-copes-with-vmalloc-memory.patch') diff --git a/target/linux/brcm2708/patches-3.10/0108-vchiq-create_pagelist-copes-with-vmalloc-memory.patch b/target/linux/brcm2708/patches-3.10/0108-vchiq-create_pagelist-copes-with-vmalloc-memory.patch index c2e25e1fdd..befcaa1a82 100644 --- a/target/linux/brcm2708/patches-3.10/0108-vchiq-create_pagelist-copes-with-vmalloc-memory.patch +++ b/target/linux/brcm2708/patches-3.10/0108-vchiq-create_pagelist-copes-with-vmalloc-memory.patch @@ -1,16 +1,18 @@ -From 974102eef65cd2576157b089db47386c5b29dee6 Mon Sep 17 00:00:00 2001 +From f3978e548747dfe988016ef7c99fe50975da90df Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 2 Sep 2013 16:44:57 +0100 -Subject: [PATCH 108/174] vchiq: create_pagelist copes with vmalloc memory +Subject: [PATCH 108/196] vchiq: create_pagelist copes with vmalloc memory Signed-off-by: Daniel Stone --- .../interface/vchiq_arm/vchiq_2835_arm.c | 83 ++++++++++++++-------- 1 file changed, 53 insertions(+), 30 deletions(-) +diff --git a/drivers/misc/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c b/drivers/misc/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c +index 2b5fa56..b3bdaa2 100644 --- a/drivers/misc/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c +++ b/drivers/misc/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c -@@ -374,6 +374,7 @@ create_pagelist(char __user *buf, size_t +@@ -374,6 +374,7 @@ create_pagelist(char __user *buf, size_t count, unsigned short type, unsigned int num_pages, offset, i; char *addr, *base_addr, *next_addr; int run, addridx, actual_pages; @@ -18,7 +20,7 @@ Signed-off-by: Daniel Stone offset = (unsigned int)buf & (PAGE_SIZE - 1); num_pages = (count + offset + PAGE_SIZE - 1) / PAGE_SIZE; -@@ -384,9 +385,10 @@ create_pagelist(char __user *buf, size_t +@@ -384,9 +385,10 @@ create_pagelist(char __user *buf, size_t count, unsigned short type, ** list */ pagelist = kmalloc(sizeof(PAGELIST_T) + @@ -32,7 +34,7 @@ Signed-off-by: Daniel Stone vchiq_log_trace(vchiq_arm_log_level, "create_pagelist - %x", (unsigned int)pagelist); -@@ -394,28 +396,44 @@ create_pagelist(char __user *buf, size_t +@@ -394,28 +396,44 @@ create_pagelist(char __user *buf, size_t count, unsigned short type, return -ENOMEM; addrs = pagelist->addrs; @@ -98,7 +100,7 @@ Signed-off-by: Daniel Stone pagelist->length = count; pagelist->type = type; -@@ -482,6 +500,7 @@ create_pagelist(char __user *buf, size_t +@@ -482,6 +500,7 @@ create_pagelist(char __user *buf, size_t count, unsigned short type, static void free_pagelist(PAGELIST_T *pagelist, int actual) { @@ -106,7 +108,7 @@ Signed-off-by: Daniel Stone struct page **pages; unsigned int num_pages, i; -@@ -492,7 +511,8 @@ free_pagelist(PAGELIST_T *pagelist, int +@@ -492,7 +511,8 @@ free_pagelist(PAGELIST_T *pagelist, int actual) (pagelist->length + pagelist->offset + PAGE_SIZE - 1) / PAGE_SIZE; @@ -116,7 +118,7 @@ Signed-off-by: Daniel Stone /* Deal with any partial cache lines (fragments) */ if (pagelist->type >= PAGELIST_READ_WITH_FRAGMENTS) { -@@ -528,11 +548,14 @@ free_pagelist(PAGELIST_T *pagelist, int +@@ -528,11 +548,14 @@ free_pagelist(PAGELIST_T *pagelist, int actual) up(&g_free_fragments_sema); } @@ -136,3 +138,6 @@ Signed-off-by: Daniel Stone kfree(pagelist); } +-- +1.9.1 + -- cgit v1.2.3