Re: [PATCH -mm v2 1/3] slub: never fail to shrink cache

2015-01-29 Thread Vladimir Davydov
On Wed, Jan 28, 2015 at 01:57:52PM -0800, Andrew Morton wrote: > On Wed, 28 Jan 2015 19:22:49 +0300 Vladimir Davydov > wrote: > > @@ -3375,51 +3376,56 @@ int __kmem_cache_shrink(struct kmem_cache *s) > > struct kmem_cache_node *n; > > struct page *page; > > struct page *t; > > - int

Re: i915 framebuffer init too slow to find logo

2015-01-29 Thread Tomi Valkeinen
On 29/01/15 04:32, S. Gilles wrote: > Since commit 92b004d1aa9f367c372511ca0330f58216b25703 : prevent use of > logs after they have been freed, my i915 machine has no logo on boot > (reverting that commit brings it back on recent trees). My .config > builds nothing but wireless as =m, so I think th

[PATCH 19/42] perf tools: Add a test case for thread comm handling

2015-01-29 Thread Namhyung Kim
The new test case checks various thread comm handling like overridding and time sorting. Cc: Frederic Weisbecker Signed-off-by: Namhyung Kim --- tools/perf/Makefile.perf| 1 + tools/perf/tests/builtin-test.c | 4 tools/perf/tests/tests.h| 1 + tools/perf/tests/thread-com

[PATCH 03/42] perf record: Show precise number of samples

2015-01-29 Thread Namhyung Kim
After perf record finishes, it prints file size and number of samples in the file but this info is wrong since it assumes typical sample size of 24 bytes and divides file size by the value. However as we post-process recorded samples for build-id, it can show correct number like below. If build-i

[PATCH 39/42] perf tools: Convert lseek + read to pread

2015-01-29 Thread Namhyung Kim
When dso_cache__read() is called, it reads data from the given offset using lseek + normal read syscall. It can be combined to a single pread syscall. Signed-off-by: Namhyung Kim --- tools/perf/util/dso.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/perf/util/ds

[PATCH 21/42] perf tools: Convert dead thread list into rbtree

2015-01-29 Thread Namhyung Kim
Currently perf maintains dead threads in a linked list but this can be a problem if someone needs to search from it especially in a large session which might have many dead threads. Convert it to a rbtree like normal threads and it'll be used later with multi-file changes. The list node is now us

[PATCH 38/42] perf session: Handle index files generally

2015-01-29 Thread Namhyung Kim
The current code assumes that the number of index item and cpu are matched so it creates that number of threads. But it's not the case of non-system-wide session or data came from different machine. Just creates threads at most number of online cpus and process data. Signed-off-by: Namhyung Kim

[PATCH 40/42] perf callchain: Save eh/debug frame offset for dwarf unwind

2015-01-29 Thread Namhyung Kim
When libunwind tries to resolve callchains it needs to know the offset of .eh_frame_hdr or .debug_frame to access the dso. Since it calls dso__data_fd(), it'll try to grab dso->lock everytime for same information. So save it to dso_data struct and reuse it. Note that there's a window between dso

[PATCH 29/42] perf tools: Protect dso cache fd with a mutex

2015-01-29 Thread Namhyung Kim
When dso cache is accessed in multi-thread environment, it's possible to close other dso->data.fd during operation due to open file limit. Protect the file descriptors using a separate mutex. Signed-off-by: Namhyung Kim --- tools/perf/tests/dso-data.c | 5 ++ tools/perf/util/dso.c | 136

[PATCH 41/42] perf tools: Add new perf data command

2015-01-29 Thread Namhyung Kim
From: Jiri Olsa Adding new 'perf data' command to provide operations over data files. The 'perf data convert' sub command is coming in following patch, but there's possibility for other useful commands like 'perf data ls' (to display perf data file in directory in ls style). Signed-off-by: Seba

[PATCH 35/42] perf record: Synthesize COMM event for a command line workload

2015-01-29 Thread Namhyung Kim
When perf creates a new child to profile, the events are enabled on exec(). And in this case, it doesn't synthesize any event for the child since they'll be generated during exec(). But there's an window between the enabling and the event generation. It used to be overcome since samples are only

[PATCH 42/42] perf data: Implement 'index' subcommand

2015-01-29 Thread Namhyung Kim
The index command first splits a given data file into intermediate data files and merges them into a final data file with an index table so that it can processed using multi threads. The HEADER_DATA_INDEX feature bit is added to distinguish data file that has an index table. Signed-off-by: Namhyu

linux-next: Tree for Jan 29

2015-01-29 Thread Stephen Rothwell
Hi all, Changes since 20150128: The drm tree gained a conflict against Linus' tree. The sound-asoc tree lost its build failure. The block tree gained a conflict against the l2-mtd tree. The akpm-current tree gained a conflict against the xen-tip tree. Non-merge commits (relative to Linus' tre

[PATCH 36/42] perf tools: Fix progress ui to support multi thread

2015-01-29 Thread Namhyung Kim
Split ui_progress struct into global and local one. Each thread updates local struct without lock and only updates global one if meaningful progress is done (with lock). To do that, pass struct ui_progress to __perf_session__process_event() and set it for the total size of multi-file storage. Si

[PATCH 37/42] perf report: Add --multi-thread option and config item

2015-01-29 Thread Namhyung Kim
The --multi-thread option is to enable parallel processing so user can force serial processing even for indexed data file. It default to false for now but users also can changes this by setting "report.multi_thread" config option in ~/.perfconfig file. Signed-off-by: Namhyung Kim --- tools/perf

[PATCH 33/42] perf report: Parallelize perf report using multi-thread

2015-01-29 Thread Namhyung Kim
Introduce perf_session__process_events_mt() to enable multi-thread sample processing. It allocates a struct perf_tool_mt and fills needed info in it. The session and hists event stats are counted for each thread and summed after finishing the processing. Similarly hist entries are added to per-t

[PATCH 34/42] perf tools: Add missing_threads rb tree

2015-01-29 Thread Namhyung Kim
Sometimes it's possible to miss certain meta events like fork/exit and in this case it can fail to find such thread in the machine's rbtree. But adding a thread to the tree is dangerous since it's now executed in multi-thread environment otherwise it'll add an overhead in order to grab a lock for e

[PATCH 30/42] perf session: Pass struct events stats to event processing functions

2015-01-29 Thread Namhyung Kim
Pass stats structure so that it can point separate object when used in multi-thread environment. Signed-off-by: Namhyung Kim --- tools/perf/util/ordered-events.c | 4 +- tools/perf/util/session.c| 81 ++-- tools/perf/util/session.h| 1 + 3 fi

[PATCH 31/42] perf hists: Pass hists struct to hist_entry_iter functions

2015-01-29 Thread Namhyung Kim
This is a preparation for perf report multi-thread support. When multi-thread is enable, each thread will have its own hists during the sample processing. Signed-off-by: Namhyung Kim --- tools/perf/builtin-report.c | 4 ++-- tools/perf/builtin-top.c | 4 ++-- tools/perf/tests/h

[PATCH 28/42] perf tools: Protect dso cache tree using dso->lock

2015-01-29 Thread Namhyung Kim
The dso cache is accessed during dwarf callchain unwind and it might be processed concurrently when multi-thread report is enabled. Protect it under dso->lock. Note that it doesn't protect dso_cache__find(). I think it's safe to access to the cache tree without the lock since we don't delete node

[PATCH 32/42] perf tools: Move BUILD_ID_SIZE definition to perf.h

2015-01-29 Thread Namhyung Kim
The util/event.h includes util/build-id.h only for BUILD_ID_SIZE. This is a problem when I include util/event.h from util/tool.h which is also included by util/build-id.h since it now makes a circular dependency resulting in incomplete type error. Signed-off-by: Namhyung Kim --- tools/perf/perf.

[PATCH 27/42] perf tools: Protect dso symbol loading using a mutex

2015-01-29 Thread Namhyung Kim
When multi-thread support for perf report is enabled, it's possible to access a dso concurrently. Add a new pthread_mutex to protect it from concurrent dso__load(). Signed-off-by: Namhyung Kim --- tools/perf/util/dso.c| 2 ++ tools/perf/util/dso.h| 1 + tools/perf/util/symbol.c | 34 +

[PATCH 20/42] perf tools: Use thread__comm_time() when adding hist entries

2015-01-29 Thread Namhyung Kim
Now thread->comm can be handled with time properly, use it to find correct comm when adding hist entries. Cc: Frederic Weisbecker Signed-off-by: Namhyung Kim --- tools/perf/builtin-annotate.c | 5 +++-- tools/perf/builtin-diff.c | 8 tools/perf/tests/hists_link.c | 4 ++-- tools

[PATCH 25/42] perf tools: Introduce thread__find_addr_location_time() and friends

2015-01-29 Thread Namhyung Kim
The *_time() variants are for find appropriate map (and symbol) at the given time. This is based on the fact that map_groups list is sorted by time in the previous patch. Cc: Frederic Weisbecker Signed-off-by: Namhyung Kim --- tools/perf/util/event.c| 80 +++

[PATCH 24/42] perf tools: Maintain map groups list in a leader thread

2015-01-29 Thread Namhyung Kim
To support multi-threaded perf report, we need to maintain time-sorted map groups. Add ->mg_list member to struct thread and sort the list by time. Now leader threads have one more refcnt for map groups in the list so also update the thread-mg-share test case. Currently only add a new map groups

[PATCH 07/42] perf tools: Use perf_data_file__fd() consistently

2015-01-29 Thread Namhyung Kim
Do not reference file->fd directly since we want hide the implementation details from outside for possible future changes. Signed-off-by: Namhyung Kim --- tools/perf/builtin-inject.c | 5 +++-- tools/perf/builtin-record.c | 14 +++--- 2 files changed, 10 insertions(+), 9 deletions(-) d

[PATCH 22/42] perf tools: Introduce machine__find*_thread_time()

2015-01-29 Thread Namhyung Kim
With data file indexing is enabled, it needs to search thread based on sample time since sample processing is done after other (task, comm and mmap) events are processed. This can be a problem if a session is very long and pid is recycled - in that case it'll only see the last one. So keep thread

[PATCH 23/42] perf tools: Add a test case for timed thread handling

2015-01-29 Thread Namhyung Kim
A test case for verifying live and dead thread tree management during time change and new machine__find{,new}_thread_time(). Cc: Frederic Weisbecker Signed-off-by: Namhyung Kim --- tools/perf/Makefile.perf | 1 + tools/perf/tests/builtin-test.c | 4 + tools/perf/tests/tes

[PATCH 18/42] perf tools: Introduce thread__comm_time() helpers

2015-01-29 Thread Namhyung Kim
When data file indexing is enabled, it processes all task, comm and mmap events first and then goes to the sample events. So all it sees is the last comm of a thread although it has information at the time of sample. Sort thread's comm by time so that it can find appropriate comm at the sample ti

[PATCH 26/42] perf tools: Add a test case for timed map groups handling

2015-01-29 Thread Namhyung Kim
A test case for verifying thread->mg and ->mg_list handling during time change and new thread__find_addr_map_time() and friends. Cc: Frederic Weisbecker Signed-off-by: Namhyung Kim --- tools/perf/Makefile.perf | 1 + tools/perf/tests/builtin-test.c | 4 ++ tools/perf/tests/tests.h

Re: [RESEND] ssb: Fix Sparse error in main

2015-01-29 Thread Kalle Valo
> This change fixes below sparse error: > drivers/ssb/main.c:94:16: warning: symbol 'ssb_sdio_func_to_bus' > was not declared. Should it be static? > > Acked-by: Michael Buesch > Signed-off-by: Pramod Gurav Thanks, applied to wireless-drivers-next.git. Kalle Valo -- To unsubscribe from this l

[PATCH 17/42] perf script: Pass session arg to ->process_event callback

2015-01-29 Thread Namhyung Kim
Sometimes it needs to retrieve symbol info inside a script engine so we need to pass the session pointer to find the symbol correctly as with previous patch. Signed-off-by: Namhyung Kim --- tools/perf/builtin-script.c| 23 -- tools/perf/util/db-export.

[PATCH 13/42] perf tools: Handle indexed data file properly

2015-01-29 Thread Namhyung Kim
When perf detects data file has index table, process header file first and then rest data files in a row. Note that the indexed data is recorded for each cpu/thread separately, it's already ordered with respect to themselves so no need to use the ordered event queue interface. Signed-off-by: Namh

Re: linux-next: manual merge of the drm tree with Linus' tree

2015-01-29 Thread Oded Gabbay
On 01/29/2015 04:17 AM, Stephen Rothwell wrote: Hi Dave, Today's linux-next merge of the drm tree got conflicts in drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c and drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.h between commits b8cbab042cd6 ("drm/amdkfd: Allow user to limit only

[PATCH 09/42] perf tools: Introduce copyfile_offset() function

2015-01-29 Thread Namhyung Kim
The copyfile_offset() function is to copy source data from given offset to a destination file with an offset. It'll be used to build an indexed data file. Signed-off-by: Namhyung Kim --- tools/perf/util/util.c | 38 +- tools/perf/util/util.h | 1 + 2 files c

[PATCH 15/42] perf report: Skip dummy tracking event

2015-01-29 Thread Namhyung Kim
The dummy tracking event is only for tracking task/comom/mmap events and has no sample data for itself. So no need to report, just skip it. Signed-off-by: Namhyung Kim --- tools/perf/builtin-report.c| 3 +++ tools/perf/ui/browsers/hists.c | 30 -- tools/perf/ui/

[PATCH 16/42] perf tools: Pass session arg to perf_event__preprocess_sample()

2015-01-29 Thread Namhyung Kim
The perf_event__preprocess_sample() translates a given ip into a matching symbol. To do that, it first finds a corresponding thread and map in the current thread tree. But for indexed data files, it needs to find a thread (and map) with slightly different APIs using timestamp. So it needs a way

[PATCH 08/42] perf tools: Add rm_rf() utility function

2015-01-29 Thread Namhyung Kim
The rm_rf() function does same as the shell command 'rm -rf' which removes all directory entries recursively. Signed-off-by: Namhyung Kim --- tools/perf/util/util.c | 43 +++ tools/perf/util/util.h | 1 + 2 files changed, 44 insertions(+) diff --git a/to

[PATCH 12/42] perf tools: Add HEADER_DATA_INDEX feature

2015-01-29 Thread Namhyung Kim
The HEADER_DATA_INDEX feature is to record index table for sample data so that they can be processed by multiple thread concurrently. Each item is a struct perf_file_section which consists of an offset and size. Signed-off-by: Namhyung Kim --- tools/perf/builtin-data.c | 0 tools/perf/builti

getrandom(2) man page for final review

2015-01-29 Thread Michael Kerrisk (man-pages)
Hello Ted, I've now merged the branch that contains the getrandom(2) page that you initially contributed, Heinrich greatly enhanced, and to which I also added a few pieces. If you have a chance to do a final review, it would be most appreciated. If you are very short if time, then parts I'd most l

[PATCH 14/42] perf record: Add --index option for building index table

2015-01-29 Thread Namhyung Kim
The new --index option will create indexed data file which can be processed by multiple threads parallelly. It saves meta event and sample data in separate files and merges them with an index table. To build an index table, it needs to know exact offsets and sizes for each sample data. However t

[PATCH 06/42] perf tools: Use a software dummy event to track task/mmap events

2015-01-29 Thread Namhyung Kim
Add APIs for software dummy event to track task/comm/mmap events separately. The perf record will use them to save such events in a separate mmap buffer to make it easy to index. This is a preparation of multi-thread support which will come later. Cc: Adrian Hunter Signed-off-by: Namhyung Kim

[PATCH 10/42] perf tools: Create separate mmap for dummy tracking event

2015-01-29 Thread Namhyung Kim
When indexed data file support is enabled, a dummy tracking event will be used to track metadata (like task, comm and mmap events) for a session and actual samples will be recorded in separate (intermediate) files and then merged (with index table). Provide separate mmap to the dummy tracking even

Re: linux-next: build failure after merge of the drm tree

2015-01-29 Thread Oded Gabbay
On 01/29/2015 04:38 AM, Stephen Rothwell wrote: After merging the drm tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/gpu/drm/amd/amdkfd/kfd_device.c: In function 'kgd2kfd_device_init': drivers/gpu/drm/amd/amdkfd/kfd_device.c:193:11: error: 'max_num_of_processes'

[PATCH 05/42] perf tools: Set attr.task bit for a tracking event

2015-01-29 Thread Namhyung Kim
The perf_event_attr.task bit is to track task (fork and exit) events but it missed to be set by perf_evsel__config(). While it was not a problem in practice since setting other bits (comm/mmap) ended up being in same result, it'd be good to set it explicitly anyway. The attr->task is to track tas

[PATCH 11/42] perf tools: Introduce perf_evlist__mmap_track()

2015-01-29 Thread Namhyung Kim
The perf_evlist__mmap_track function creates data mmaps and optionally tracking mmaps for events. It'll be used for perf record to save events in a separate files and build an index table. Checking dummy tracking event in perf_evlist__mmap() alone is not enough as users can specify a dummy event

[PATCH 01/42] perf tools: Support to read compressed module from build-id cache

2015-01-29 Thread Namhyung Kim
The commit c00c48fc6e6e ("perf symbols: Preparation for compressed kernel module support") added support for compressed kernel modules but it only supports system path DSOs. When a dso is read from build-id cache, its filename doesn't end with ".gz" but has build-id. In this case, we should fallba

[PATCH 04/42] perf header: Set header version correctly

2015-01-29 Thread Namhyung Kim
When check_magic_endian() is called, it checks the magic number in the perf data file to determine version and endianness. But if it uses a same endian the verison number wasn't updated and makes confusion. Signed-off-by: Namhyung Kim --- tools/perf/util/header.c | 2 +- 1 file changed, 1 inser

[RFC/PATCHSET 00/42] perf tools: Speed-up perf report by using multi thread (v2)

2015-01-29 Thread Namhyung Kim
Hello, This patchset converts perf report to use multiple threads in order to speed up the processing on large data files. I can see a minimum ~30% of speedup with this change. The code is still experimental and contains many rough edges. But I'd like to share and give some feedbacks. The main

[PATCH 02/42] perf tools: Do not use __perf_session__process_events() directly

2015-01-29 Thread Namhyung Kim
It's only used for perf record to process build-id because its file size it's not fixed at this time due to remaining header features. However data offset and size is available so that we can use the perf_session__process_events() once we set the file size as the current offset like for now. Signe

Re: [PATCH v4 2/2] thermal: exynos: Add TMU support for Exynos7 SoC

2015-01-29 Thread Lukasz Majewski
Hi Abhilash, > Add registers, bit fields and compatible strings for Exynos7 TMU > (Thermal Management Unit). Following are a few of the differences > in the Exynos7 TMU from earlier SoCs: > - 8 trigger levels > - Different bit offsets and more registers for the rising > and

Re: [PATCH -mm v2 1/3] slub: never fail to shrink cache

2015-01-29 Thread Balbir Singh
On Thu, Jan 29, 2015 at 3:27 AM, Andrew Morton wrote: > On Wed, 28 Jan 2015 19:22:49 +0300 Vladimir Davydov > wrote: > >> SLUB's version of __kmem_cache_shrink() not only removes empty slabs, >> but also tries to rearrange the partial lists to place slabs filled up >> most to the head to cope wi

kobject (00000000008e10d8): tried to init an initialized object, something is seriously wrong.

2015-01-29 Thread Meelis Roos
Tried 3.19.0-rc6-00105-gc59c961-dirty (first kernel after 3.18) on Sun E3000 (spoarc64), got a bunch on warnings in blk_mq_register_disk. After that, it seems to work fine. -dirty means the following patch to fix the warnings in "Another (ESP?) scsi blk-mq problem on sparc64" thread from Nov 14

Re: [PATCH] cpufreq: fix another race between PPC notification and vcpu_hotplug()

2015-01-29 Thread Viresh Kumar
Looks like you just save my time here, Santosh has also reported a similar race in a personal mail.. On 29 January 2015 at 12:12, Ethan Zhao wrote: > There is race observed between PPC changed notification handler worker thread > and vcpu_hotplug() called within xenbus_thread() context. > It is s

RE: [v3 02/26] iommu: Add new member capability to struct irq_remap_ops

2015-01-29 Thread Wu, Feng
> -Original Message- > From: David Woodhouse [mailto:dw...@infradead.org] > Sent: Wednesday, January 28, 2015 11:23 PM > To: Wu, Feng > Cc: t...@linutronix.de; mi...@redhat.com; h...@zytor.com; x...@kernel.org; > g...@kernel.org; pbonz...@redhat.com; j...@8bytes.org; > alex.william...@red

Re: [PATCH 2/2] mmc: dw_mmc: wait until card ready if tuning fails

2015-01-29 Thread Ulf Hansson
On 26 January 2015 at 12:19, Addy Ke wrote: > This patch based on Alex's patch: > https://patchwork.kernel.org/patch/5516411/ This above patch was rejected, since it doesn't use mmc_send_tuning(). Please base you work on my latest next branch. If you need other patches which has been posted rece

[PATCH 2/2] extcon: max77693: Fix cable name of USB-HOST

2015-01-29 Thread Jaewon Kim
This patch unifies the term called 'USB_OTG' and 'USB_HOST' into USB_HOST. OTG(On-The-Go) function supports USB host and this driver sents 'USB-Host event. So, unifies term to USB_HOST. Signed-off-by: Jaewon Kim --- drivers/extcon/extcon-max77693.c | 20 ++-- 1 file changed, 10

[PATCH 0/2] extcon: max77693: Fix cable name of MHL-TA and USB-HOST

2015-01-29 Thread Jaewon Kim
This patch series fixes extcon cable name of MHL-TA and unify the term 'USB-HOST' and 'USB-OTG' to 'USB-HOST'. Jaewon Kim (2): extcon: max77693: Fix cable name of MHL-TA extcon: max77693: Fix cable name of USB-HOST drivers/extcon/extcon-max77693.c | 32 1 f

[PATCH 1/2] extcon: max77693: Fix cable name of MHL-TA

2015-01-29 Thread Jaewon Kim
This patch fixes extcon cable name of MHL-TA instead of MHL_TA to unify cable name style. Signed-off-by: Jaewon Kim --- drivers/extcon/extcon-max77693.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/extcon/extcon-max77693.c b/drivers/extcon/extcon-max

Re: [PATCH 01/13] kdbus: add documentation

2015-01-29 Thread Daniel Mack
Hi Andy, On 01/27/2015 05:03 PM, Andy Lutomirski wrote: > On Tue, Jan 27, 2015 at 7:05 AM, David Herrmann wrote: >> A 16byte copy does not affect the performance of kdbus message >> transactions in any way that matters. > What are the performance goals of kdbus? How fast is it ever intended >

Re: [PATCHv3 0/8] perf tools: Add perf data CTF conversion

2015-01-29 Thread Jiri Olsa
On Wed, Jan 28, 2015 at 05:37:56PM -0500, Jérémie Galarneau wrote: > On Sun, Jan 25, 2015 at 8:43 AM, Jiri Olsa wrote: > > On Fri, Jan 16, 2015 at 11:46:36AM -0500, Jérémie Galarneau wrote: > >> On Fri, Jan 16, 2015 at 10:26 AM, Alexandre Montplaisir > >> wrote: > >> > On 2015-01-15 03:57 PM, Ale

Re: [PATCH v2] lib/checksum.c: fix carry in csum_tcpudp_nofold

2015-01-29 Thread Karl Beldan
On Wed, Jan 28, 2015 at 10:32:49PM -0800, David Miller wrote: > From: Karl Beldan > Date: Wed, 28 Jan 2015 10:58:11 +0100 > > > The carry from the 64->32bits folding was dropped, e.g with: > > saddr=0x daddr=0xFFFF len=0x proto=0 sum=1, > > csum_tcpudp_nofold returned 0 instead of

Re: [RFC PATCH 1/1] mmc: dw_mmc: Add runtime pm to dw_mmc

2015-01-29 Thread Karol Wrona
On 01/22/2015 10:02 AM, Ulf Hansson wrote: > On 21 January 2015 at 17:43, Karol Wrona wrote: >> This patch adds runtime pm handling to dw_mmc and enables it for >> dw_mmc-exynos. >> It mainly uses mci_request/mci_request_end for mmc host state information. >> >> Signed-off-by: Karol Wrona >> ---

[PATCH 3.12 170/176] mmc: sdhci: Don't signal the sdio irq if it's not setup

2015-01-29 Thread Jiri Slaby
From: Sjoerd Simons 3.12-stable review patch. If anyone has any objections, please let me know. === [Not needed in newer kernels due to refactoring fixing this issue.] With 3.14.29 (and older kernels) some of my I.mx6 Sabrelite boards were crashing with the following oops: sdhc

[PATCH 3.12 126/176] decompress_bunzip2: off by one in get_next_block()

2015-01-29 Thread Jiri Slaby
From: Dan Carpenter 3.12-stable review patch. If anyone has any objections, please let me know. === commit b5c8afe5be51078a979d86ae5ae78c4ac948063d upstream. "origPtr" is used as an offset into the bd->dbuf[] array. That array is allocated in start_bunzip() and has "bd->dbufSize"

[PATCH 3.12 160/176] x86, tls: Interpret an all-zero struct user_desc as "no segment"

2015-01-29 Thread Jiri Slaby
From: Andy Lutomirski 3.12-stable review patch. If anyone has any objections, please let me know. === commit 3669ef9fa7d35f573ec9c0e0341b29251c2734a7 upstream. The Witcher 2 did something like this to allocate a TLS segment index: struct user_desc u_info; bzero(&u

[PATCH 3.12 168/176] crypto: include crypto- module prefix in template

2015-01-29 Thread Jiri Slaby
From: Kees Cook 3.12-stable review patch. If anyone has any objections, please let me know. === commit 4943ba16bbc2db05115707b3ff7b4874e9e3c560 upstream. This adds the module loading prefix "crypto-" to the template lookup as well. For example, attempting to load 'vfat(blowfish)'

[PATCH 3.12 164/176] KEYS: close race between key lookup and freeing

2015-01-29 Thread Jiri Slaby
From: Sasha Levin 3.12-stable review patch. If anyone has any objections, please let me know. === commit a3a8784454692dd72e5d5d34dcdab17b4420e74c upstream. When a key is being garbage collected, it's key->user would get put before the ->destroy() callback is called, where the key

[PATCH 3.12 176/176] deal with deadlock in d_walk()

2015-01-29 Thread Jiri Slaby
From: Al Viro 3.12-stable review patch. If anyone has any objections, please let me know. === commit ca5358ef75fc69fee5322a38a340f5739d997c10 upstream. ... by not hitting rename_retry for reasons other than rename having happened. In other words, do _not_ restart when finding tha

[PATCH 3.12 123/176] ARM: clk-imx6q: fix video divider for rev T0 1.0

2015-01-29 Thread Jiri Slaby
From: Gary Bisson 3.12-stable review patch. If anyone has any objections, please let me know. === commit 81ef447950bf0955aca46f4a7617d8ce435cf0ce upstream. The post dividers do not work on i.MX6Q rev T0 1.0 so they must be fixed to 1. As the table index was wrong, a divider a of 4

[PATCH 3.12 147/176] ipr: wait for aborted command responses

2015-01-29 Thread Jiri Slaby
From: Brian King 3.12-stable review patch. If anyone has any objections, please let me know. === commit 6cdb08172bc89f0a39e1643c5e7eab362692fd1b upstream. Fixes a race condition in abort handling that was injected when multiple interrupt support was added. When only a single inter

[PATCH 3.12 143/176] ALSA: usb-audio: Add mic volume fix quirk for Logitech Webcam C210

2015-01-29 Thread Jiri Slaby
From: Jason Lee Cragg 3.12-stable review patch. If anyone has any objections, please let me know. === commit 6455931186bff407493135e74c5f32efd30860e2 upstream. Signed-off-by: Jason Lee Cragg Signed-off-by: Takashi Iwai Signed-off-by: Jiri Slaby --- sound/usb/mixer.c | 1 + 1 f

[PATCH 3.12 016/176] pstore-ram: Allow optional mapping with pgprot_noncached

2015-01-29 Thread Jiri Slaby
From: Tony Lindgren 3.12-stable review patch. If anyone has any objections, please let me know. === commit 027bc8b08242c59e19356b4b2c189f2d849ab660 upstream. On some ARMs the memory can be mapped pgprot_noncached() and still be working for atomic operations. As pointed out by Coli

[PATCH 3.12 013/176] powerpc/powernv: Switch off MMU before entering nap/sleep/rvwinkle mode

2015-01-29 Thread Jiri Slaby
From: Paul Mackerras 3.12-stable review patch. If anyone has any objections, please let me know. === commit 8117ac6a6c2fa0f847ff6a21a1f32c8d2c8501d0 upstream. Currently, when going idle, we set the flag indicating that we are in nap mode (paca->kvm_hstate.hwthread_state) and then

[PATCH 3.12 116/176] can: kvaser_usb: Don't free packets when tight on URBs

2015-01-29 Thread Jiri Slaby
From: "Ahmed S. Darwish" 3.12-stable review patch. If anyone has any objections, please let me know. === commit b442723fcec445fb0ae1104888dd22cd285e0a91 upstream. Flooding the Kvaser CAN to USB dongle with multiple reads and writes in high frequency caused seemingly-random panics

[PATCH 3.12 093/176] video/logo: prevent use of logos after they have been freed

2015-01-29 Thread Jiri Slaby
From: Tomi Valkeinen 3.12-stable review patch. If anyone has any objections, please let me know. === commit 92b004d1aa9f367c372511ca0330f58216b25703 upstream. If the probe of an fb driver has been deferred due to missing dependencies, and the probe is later ran when a module is lo

[PATCH 3.12 083/176] genirq: Prevent proc race against freeing of irq descriptors

2015-01-29 Thread Jiri Slaby
From: Thomas Gleixner 3.12-stable review patch. If anyone has any objections, please let me know. === commit c291ee622165cb2c8d4e7af63fffd499354a23be upstream. Since the rework of the sparse interrupt code to actually free the unused interrupt descriptors there exists a race betwe

[PATCH 3.12 047/176] Revert "ARM: 7830/1: delay: don't bother reporting bogomips in /proc/cpuinfo"

2015-01-29 Thread Jiri Slaby
From: Pavel Machek 3.12-stable review patch. If anyone has any objections, please let me know. === commit 4bf9636c39ac70da091d5a2e28d3448eaa7f115c upstream. Commit 9fc2105aeaaf ("ARM: 7830/1: delay: don't bother reporting bogomips in /proc/cpuinfo") breaks audio in python, and pro

[PATCH 3.12 032/176] USB: cdc-acm: check for valid interfaces

2015-01-29 Thread Jiri Slaby
From: Greg Kroah-Hartman 3.12-stable review patch. If anyone has any objections, please let me know. === commit 403dff4e2c94f275e24fd85f40b2732ffec268a1 upstream. We need to check that we have both a valid data and control inteface for both types of headers (union and not union.)

[PATCH 3.12 109/176] USB: cp210x: fix ID for production CEL MeshConnect USB Stick

2015-01-29 Thread Jiri Slaby
From: Preston Fick 3.12-stable review patch. If anyone has any objections, please let me know. === commit 90441b4dbe90ba0c38111ea89fa093a8c9627801 upstream. Fixing typo for MeshConnect IDs. The original PID (0x8875) is not in production and is not needed. Instead it has been chang

[PATCH 3.12 021/176] HID: i2c-hid: prevent buffer overflow in early IRQ

2015-01-29 Thread Jiri Slaby
From: Gwendal Grignou 3.12-stable review patch. If anyone has any objections, please let me know. === commit d1c7e29e8d276c669e8790bb8be9f505ddc4 upstream. Before ->start() is called, bufsize size is set to HID_MIN_BUFFER_SIZE, 64 bytes. While processing the IRQ, we were askin

[PATCH 3.12 035/176] cdc-acm: memory leak in error case

2015-01-29 Thread Jiri Slaby
From: Oliver Neukum 3.12-stable review patch. If anyone has any objections, please let me know. === commit d908f8478a8d18e66c80a12adb27764920c1f1ca upstream. If probe() fails not only the attributes need to be removed but also the memory freed. Reported-by: Ahmed Tamrawi Signed-

[PATCH 3.12 037/176] serial: samsung: wait for transfer completion before clock disable

2015-01-29 Thread Jiri Slaby
From: Robert Baldyga 3.12-stable review patch. If anyone has any objections, please let me know. === commit 1ff383a4c3eda8893ec61b02831826e1b1f46b41 upstream. This patch adds waiting until transmit buffer and shifter will be empty before clock disabling. Without this fix it's pos

[PATCH 3.12 102/176] ftrace/jprobes/x86: Fix conflict between jprobes and function graph tracing

2015-01-29 Thread Jiri Slaby
From: "Steven Rostedt (Red Hat)" 3.12-stable review patch. If anyone has any objections, please let me know. === commit 237d28db036e411f22c03cfd5b0f6dc2aa9bf3bc upstream. If the function graph tracer traces a jprobe callback, the system will crash. This can easily be demonstrated

[PATCH 3.12 027/176] x86, vdso: Use asm volatile in __getcpu

2015-01-29 Thread Jiri Slaby
From: Andy Lutomirski 3.12-stable review patch. If anyone has any objections, please let me know. === commit 1ddf0b1b11aa8a90cef6706e935fc31c75c406ba upstream. In Linux 3.18 and below, GCC hoists the lsl instructions in the pvclock code all the way to the beginning of __vdso_clock

[PATCH 3.12 089/176] ALSA: usb-audio: Add support for Focusrite Saffire 6 USB

2015-01-29 Thread Jiri Slaby
From: Eduard Gilmutdinov 3.12-stable review patch. If anyone has any objections, please let me know. === commit 11e424e88bd493b5d55d73d96c82bd889002ef30 upstream. Signed-off-by: Eduard Gilmutdinov Signed-off-by: Takashi Iwai Signed-off-by: Jiri Slaby --- sound/usb/quirks-table

[PATCH 3.12 063/176] tcp: Do not apply TSO segment limit to non-TSO packets

2015-01-29 Thread Jiri Slaby
From: Herbert Xu 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 843925f33fcc293d80acf2c5c8a78adf3344d49b ] Thomas Jarosch reported IPsec TCP stalls when a PMTU event occurs. In fact the problem was completely unrelated to IPsec.

[PATCH 3.12 076/176] drm/radeon: properly filter DP1.2 4k modes on non-DP1.2 hw

2015-01-29 Thread Jiri Slaby
From: Alex Deucher 3.12-stable review patch. If anyone has any objections, please let me know. === commit 410cce2a6b82299b46ff316c6384e789ce275ecb upstream. The check was already in place in the dp mode_valid check, but radeon_dp_get_dp_link_clock() never returned the high clock m

[PATCH 3.12 015/176] pstore-ram: Fix hangs by using write-combine mappings

2015-01-29 Thread Jiri Slaby
From: Rob Herring 3.12-stable review patch. If anyone has any objections, please let me know. === commit 7ae9cb81933515dc7db1aa3c47ef7653717e3090 upstream. Currently trying to use pstore on at least ARMs can hang as we're mapping the peristent RAM with pgprot_noncached(). On ARMs

[PATCH 3.12 090/176] ALSA: snd-usb: re-order some quirk entries

2015-01-29 Thread Jiri Slaby
From: Daniel Mack 3.12-stable review patch. If anyone has any objections, please let me know. === commit 358b7dfa1c32dfb77ff3261d244991a7c7c6d2cb upstream. No code change, just a cosmetic cleanup to keep entries ordered by the device ID within a block of unique vendor IDs. Signed

[PATCH 3.12 028/176] driver core: Fix unbalanced device reference in drivers_probe

2015-01-29 Thread Jiri Slaby
From: Alex Williamson 3.12-stable review patch. If anyone has any objections, please let me know. === commit bb34cb6bbd287b57e955bc5cfd42fcde6aaca279 upstream. bus_find_device_by_name() acquires a device reference which is never released. This results in an object leak, which on

[PATCH 3.12 072/176] drm/ttm: Avoid memory allocation from shrinker functions.

2015-01-29 Thread Jiri Slaby
From: Tetsuo Handa 3.12-stable review patch. If anyone has any objections, please let me know. === commit 881fdaa5e4cb0d68e52acab0ad4e1820e2bfffa4 upstream. Andrew Morton wrote: > On Wed, 12 Nov 2014 13:08:55 +0900 Tetsuo Handa > wrote: > > > Andrew Morton wrote: > > > Poor ttm

[PATCH 3.12 018/176] UBI: Fix double free after do_sync_erase()

2015-01-29 Thread Jiri Slaby
From: Richard Weinberger 3.12-stable review patch. If anyone has any objections, please let me know. === commit aa5ad3b6eb8feb2399a5d26c8fb0060561bb9534 upstream. If the erase worker is unable to erase a PEB it will free the ubi_wl_entry itself. The failing ubi_wl_entry must not f

[PATCH 3.12 094/176] smiapp-pll: Correct clock debug prints

2015-01-29 Thread Jiri Slaby
From: Sakari Ailus 3.12-stable review patch. If anyone has any objections, please let me know. === commit bc47150ab93988714d1fab7bc82fe5f505a107ad upstream. The PLL flags were not used correctly. Signed-off-by: Sakari Ailus Acked-by: Laurent Pinchart Signed-off-by: Mauro Carval

[PATCH 3.12 071/176] drm/vmwgfx: Fix fence event code

2015-01-29 Thread Jiri Slaby
From: Thomas Hellstrom 3.12-stable review patch. If anyone has any objections, please let me know. === commit 89669e7a7f96be3ee8d9a22a071d7c0d3b4428fc upstream. The commit "vmwgfx: Rework fence event action" introduced a number of bugs that are fixed with this commit: a) A forgot

[PATCH 3.12 111/176] USB: keyspan: fix null-deref at probe

2015-01-29 Thread Jiri Slaby
From: Johan Hovold 3.12-stable review patch. If anyone has any objections, please let me know. === commit b5122236bba8d7ef62153da5b55cc65d0944c61e upstream. Fix null-pointer dereference during probe if the interface-status completion handler is called before the individual ports h

[PATCH 3.12 070/176] drm/i915: Resolving the memory region conflict for Stolen area

2015-01-29 Thread Jiri Slaby
From: Akash Goel 3.12-stable review patch. If anyone has any objections, please let me know. === commit 3617dc9675f0184b7bb210cfa34f3cac928d8055 upstream. There is a conflict seen when requesting the kernel to reserve the physical space used for the stolen area. This is because so

[PATCH 3.12 079/176] drm/i915: Force the CS stall for invalidate flushes

2015-01-29 Thread Jiri Slaby
From: Chris Wilson 3.12-stable review patch. If anyone has any objections, please let me know. === commit add284a3a2481e759d6bec35f6444c32c8ddc383 upstream. In order to act as a full command barrier by itself, we need to tell the pipecontrol to actually stall the command streamer

[PATCH 3.12 002/176] drivers/rtc/rtc-sirfsoc.c: move hardware initilization earlier in probe

2015-01-29 Thread Jiri Slaby
From: Guo Zeng 3.12-stable review patch. If anyone has any objections, please let me know. === commit 0e95325525c4383565cea4f402f15a3113162d05 upstream. Move rtc register to be later than hardware initialization. The reason is that devm_rtc_device_register() will do read_time() w

[PATCH 3.12 057/176] netlink: Always copy on mmap TX.

2015-01-29 Thread Jiri Slaby
From: David Miller 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 4682a0358639b29cf69437ed909c6221f8c89847 ] Checking the file f_count and the nlk->mapped count is not completely sufficient to prevent the mmap'd area contents from

  1   2   3   4   5   6   7   8   9   10   >