Re: [lm-sensors] RFC: Intel QST driver

2012-12-25 Thread Tomas Winkler
> > > > 4) I don't believe the MEI (HECI) implementation that Intel have > > already submitted to the mainline kernel is usable by other kernel > > modules. I have re-implemented it in a way that is accessible to > > either the kernel or userspace. > > > 2.6.39 does not include the new mei driver,

Re: [PATCH v4 3/6] ACPI: Restructure movablecore_map with memory info from SRAT.

2012-12-25 Thread Tang Chen
On 12/26/2012 02:53 PM, Yasuaki Ishimatsu wrote: > Hi Tang, > > I don't think it can work well. > The patch gets memory range of hotpluggable memory by > acpi_numa_memory_affinity_init(). But it too late. > For example, if we use log_buf_len boot options, memblock allocator > runs before getting S

Re: [3.8-rc1+] BUG: unable to handle kernel NULL pointer dereference, wait_iff_congested+0x45/0xdd

2012-12-25 Thread Borislav Petkov
+ linux-mm. There's that kswapd deal again. On Wed, Dec 26, 2012 at 11:12:45AM +0530, devendra.aaru wrote: > Hello, > > On Wed, Dec 26, 2012 at 11:08 AM, Jongman Heo wrote: > > > > Hi, > > > > During SVN checkout (means heavy I/O), I hit this kernel BUG with current > > linus git (637704cb : M

[RFC PATCH] virtio-net: reset virtqueue affinity when doing cpu hotplug

2012-12-25 Thread Wanlong Gao
Add a cpu notifier to virtio-net, so that we can reset the virtqueue affinity if the cpu hotplug happens. It improve the performance through enabling or disabling the virtqueue affinity after doing cpu hotplug. Cc: Rusty Russell Cc: "Michael S. Tsirkin" Cc: Jason Wang Cc: virtualizat...@lists.l

Re: [PATCH 20/24] nohz: Full dynticks mode

2012-12-25 Thread Namhyung Kim
On Wed, 26 Dec 2012 15:12:22 +0900, Namhyung Kim wrote: > Hi Frederic, > > On Thu, 20 Dec 2012 19:33:07 +0100, Frederic Weisbecker wrote: >> When a CPU is in full dynticks mode, try to switch >> it to nohz mode from the interrupt exit path if it is >> running a single non-idle task. >> >> Then rest

Re: [PATCH v4 3/6] ACPI: Restructure movablecore_map with memory info from SRAT.

2012-12-25 Thread Yasuaki Ishimatsu
Hi Tang, I don't think it can work well. The patch gets memory range of hotpluggable memory by acpi_numa_memory_affinity_init(). But it too late. For example, if we use log_buf_len boot options, memblock allocator runs before getting SRAT information. In this case, this movablecore_map boot option

[PATCH] netprio_cgroup: define sk_cgrp_prioidx only if NETPRIO_CGROUP is enabled

2012-12-25 Thread Li Zefan
sock->sk_cgrp_prioidx won't be used at all if CONFIG_NETPRIO_CGROUP=n. Signed-off-by: Li Zefan --- include/net/sock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/sock.h b/include/net/sock.h index 93a6745..182ca99 100644 --- a/include/net/sock.h +++ b/include/n

Re: [Suggestion] drivers/staging/tidspbridge: pr_err and pr_debug for uninitialized buffer (name buf not initialized).

2012-12-25 Thread Chen Gang
于 2012年12月26日 14:28, Omar Ramirez Luna 写道: > > I also sent a patch for this: > > http://www.mail-archive.com/linux-omap@vger.kernel.org/msg82565.html > > However, I just saw this one which was sent 6 days ago: > > https://patchwork.kernel.org/patch/1895081/ > > The latter includes the new head

[Suggestion] [x86]: Compiler Option Os is better on latest x86

2012-12-25 Thread ling . ma . program
From: Ma Ling Currently we use O2 as compiler option for better performance, although it will enlarge code size, in modern CPUs larger instructon and unified cache, sophisticated instruction prefetch weaken instruction cache miss, meanwhile flags such as -falign-functions, -falign-jumps, -falig

Re: [tip:x86/build] x86: Default to ARCH= x86 to avoid overriding CONFIG_64BIT

2012-12-25 Thread David Rientjes
On Thu, 20 Dec 2012, tip-bot for David Woodhouse wrote: > diff --git a/Makefile b/Makefile > index 540f7b2..9a07340 100644 > --- a/Makefile > +++ b/Makefile > @@ -165,7 +165,8 @@ export srctree objtree VPATH > # then ARCH is assigned, getting whatever value it gets normally, and > # SUBARCH is

Re: [Suggestion] drivers/staging/tidspbridge: pr_err and pr_debug for uninitialized buffer (name buf not initialized).

2012-12-25 Thread Omar Ramirez Luna
On Tue, Dec 25, 2012 at 7:56 PM, Chen Gang wrote: > 于 2012年12月24日 22:26, Omar Ramirez Luna 写道: >>> b: version merging issue: >>> > in drivers/staging/tidspbridge/core/_tiomap.h >>> > need use "#include " instead of "#include >>> > " >>> > the macro OMAP3430_CM_AUTOID

Re: [PATCH v5 07/14] memory-hotplug: move pgdat_resize_lock into sparse_remove_one_section()

2012-12-25 Thread Tang Chen
On 12/26/2012 11:47 AM, Kamezawa Hiroyuki wrote: > (2012/12/24 21:09), Tang Chen wrote: >> In __remove_section(), we locked pgdat_resize_lock when calling >> sparse_remove_one_section(). This lock will disable irq. But we don't need >> to lock the whole function. If we do some work to free pagetabl

Re: [PATCH 20/24] nohz: Full dynticks mode

2012-12-25 Thread Namhyung Kim
Hi Frederic, On Thu, 20 Dec 2012 19:33:07 +0100, Frederic Weisbecker wrote: > When a CPU is in full dynticks mode, try to switch > it to nohz mode from the interrupt exit path if it is > running a single non-idle task. > > Then restart the tick if necessary if we are enqueuing a > second task whil

[3.8-rc1+] BUG: unable to handle kernel NULL pointer dereference, wait_iff_congested+0x45/0xdd

2012-12-25 Thread Jongman Heo
Hi, During SVN checkout (means heavy I/O), I hit this kernel BUG with current linus git (637704cb : Merge branch 'i2c-embedded/for-next'), in my VMWare Linux guest. [ 9141.015123] BUG: unable to handle kernel NULL pointer dereference at 0280 [ 9141.017870] IP: [] wait_iff_congested+0x45/0xd

Re: Segfault in perf tool

2012-12-25 Thread Namhyung Kim
Hi Stefan, On Sun, 23 Dec 2012 22:18:32 +0100, Stefan Beller wrote: > Hi, > > I get segmentation faults when running one of these commands: > perf report -g --sort symbol_to > perf report -g --sort symbol_from > perf report -g --sort dso_from > perf report -g --sort dso_to Those sort keys are onl

Re: [PATCH RESEND] Ensure that kernel_init_freeable() is not inlined into non __init code

2012-12-25 Thread Vineet Gupta
On Friday 21 December 2012 12:53 PM, Vineet Gupta wrote: > On Friday 21 December 2012 12:50 PM, Al Viro wrote: >> On Fri, Dec 21, 2012 at 12:25:44PM +0530, Vineet Gupta wrote: >>> Commit d6b2123802d "make sure that we always have a return path from >>> kernel_execve()" reshuffled kernel_init()/init

Re: [PATCH] Prevent loss of state between MIDI subscriptions

2012-12-25 Thread Thomas Karpiniec
Apologies for the linewrap. This will be better: A MIDI input parser is unnecessarily reset whenever a new subscription is created. This is a particular problem with the Novation Launchpad, which sends a single NOTEON command, then a series of notes indefinitely unless a control button is pres

Re: [PATCH] vfs: update atimes over one day in the past or future

2012-12-25 Thread Jan Engelhardt
On Tuesday 2012-12-18 22:14, Dave Chinner wrote: > >> >> CC: sta...@vger.kernel.org >> >> --- >> >> fs/inode.c | 7 --- >> >> 1 ??? 4 ???(+)? 3 ???(-) >> > >> > There's something wrong with the character encoding you are using... >> >> Chinese locale, but proba

[PATCH] Prevent loss of state between MIDI subscriptions

2012-12-25 Thread Thomas Karpiniec
A MIDI input parser is unnecessarily reset whenever a new subscription is created. This is a particular problem with the Novation Launchpad, which sends a single NOTEON command, then a series of notes indefinitely unless a control button is pressed or it is power cycled. If a user application

Re: [PATCH] tools lib traceevent: test correct variable after allocation

2012-12-25 Thread Namhyung Kim
Hi Sasha, On Fri, 21 Dec 2012 15:00:58 -0500, Sasha Levin wrote: > we've tested the wrong variable for allocation failure, fix it to > test the right one. > > Signed-off-by: Sasha Levin Acked-by: Namhyung Kim Thanks, Namhyung -- To unsubscribe from this list: send the line "unsubscribe linux-k

Re: [PATCH 1/5] f2fs: Introduce some information prints in the mount path

2012-12-25 Thread Namjae Jeon
2012/12/26, Joe Perches : > On Wed, 2012-12-26 at 11:10 +0900, Namjae Jeon wrote: >> 2012/12/26, Jaegeuk Kim : >> > Hi, >> Hi Jaegeuk. >> > >> > Could you make them follow the file system convention? >> > Something like "F2FS: blah blah~". >> Yes, I agree. >> >> > >> > Otherwise, how about adding

Re: [PATCH 23/25] video/exynos: don't use [delayed_]work_pending()

2012-12-25 Thread Jingoo Han
On Saturday, December 22, 2012 12:06 PM, Kukjin Kim wrote > Tejun Heo wrote: > > > > There's no need to test whether a (delayed) work item in pending > > before queueing, flushing or cancelling it. Most uses are unnecessary > > and quite a few of them are buggy. > > > > Remove unnecessary pending

[PATCH v2] regulator: lp8755: Fix mask for pchip->mphase

2012-12-25 Thread Axel Lin
According to the datasheet, it has 9 multi-phase mode from 0 to 8 and it takes 4 bits in the register. The mask for pchip->mphase should be 0x0F. Signed-off-by: Axel Lin --- v2. the mask should be 0x0f rather than 0x17. drivers/regulator/lp8755.c |2 +- 1 file changed, 1 insertion(+), 1 del

Re: [PATCH v5 14/14] memory-hotplug: free node_data when a node is offlined

2012-12-25 Thread Kamezawa Hiroyuki
(2012/12/24 21:09), Tang Chen wrote: > From: Wen Congyang > > We call hotadd_new_pgdat() to allocate memory to store node_data. So we > should free it when removing a node. > > Signed-off-by: Wen Congyang I'm sorry but is it safe to remove pgdat ? All zone cache and zonelists are properly clea

Re: [PATCH] regulator: lp8755: Fix mask for pchip->mphase

2012-12-25 Thread gshark
2012년 12월 26일 11:12, Axel Lin 쓴 글: According to lp8755.h: enum lp8755_mphase_config { MPHASE_CONF0, MPHASE_CONF1, MPHASE_CONF2, MPHASE_CONF3, MPHASE_CONF4, MPHASE_CONF5, MPHASE_CONF6, MPHASE_CONF7, MPHASE_CONF8,

Re: [PATCH v5 07/14] memory-hotplug: move pgdat_resize_lock into sparse_remove_one_section()

2012-12-25 Thread Kamezawa Hiroyuki
(2012/12/24 21:09), Tang Chen wrote: > In __remove_section(), we locked pgdat_resize_lock when calling > sparse_remove_one_section(). This lock will disable irq. But we don't need > to lock the whole function. If we do some work to free pagetables in > free_section_usemap(), we need to call flush_t

Re: [RFC v4 0/3] Support volatile for anonymous range

2012-12-25 Thread Minchan Kim
Hi Kame, What are you doing these holiday season? :) I can't believe you sit down in front of computer. On Wed, Dec 26, 2012 at 11:37:02AM +0900, Kamezawa Hiroyuki wrote: > (2012/12/18 15:47), Minchan Kim wrote: > > This is still RFC because we need more input from user-space > > people and discu

Re: [PATCH v5 05/14] memory-hotplug: introduce new function arch_remove_memory() for removing page table depends on architecture

2012-12-25 Thread Kamezawa Hiroyuki
(2012/12/24 21:09), Tang Chen wrote: > From: Wen Congyang > > For removing memory, we need to remove page table. But it depends > on architecture. So the patch introduce arch_remove_memory() for > removing page table. Now it only calls __remove_pages(). > > Note: __remove_pages() for some archte

Re: [PATCH v5 04/14] memory-hotplug: remove /sys/firmware/memmap/X sysfs

2012-12-25 Thread Kamezawa Hiroyuki
(2012/12/24 21:09), Tang Chen wrote: > From: Yasuaki Ishimatsu > > When (hot)adding memory into system, /sys/firmware/memmap/X/{end, start, type} > sysfs files are created. But there is no code to remove these files. The patch > implements the function to remove them. > > Note: The code does not

RE: [PATCH 3/8] Thermal: Add APIs to bind cdev to new zone structure

2012-12-25 Thread R, Durgadoss
> -Original Message- > From: linux-pm-ow...@vger.kernel.org [mailto:linux-pm- > ow...@vger.kernel.org] On Behalf Of Wei Ni > Sent: Tuesday, December 25, 2012 2:01 PM > To: R, Durgadoss > Cc: Zhang, Rui; linux...@vger.kernel.org; linux-kernel@vger.kernel.org; > hongbo.zh...@linaro.org > Su

RE: [PATCH 8/8] Thermal: Dummy driver used for testing

2012-12-25 Thread R, Durgadoss
> -Original Message- > From: Wei Ni [mailto:w...@nvidia.com] > Sent: Tuesday, December 25, 2012 2:08 PM > To: R, Durgadoss > Cc: Zhang, Rui; linux...@vger.kernel.org; linux-kernel@vger.kernel.org; > hongbo.zh...@linaro.org > Subject: Re: [PATCH 8/8] Thermal: Dummy driver used for testing

Re: [PATCH v5 06/14] memory-hotplug: implement register_page_bootmem_info_section of sparse-vmemmap

2012-12-25 Thread Tang Chen
On 12/25/2012 04:09 PM, Jianguo Wu wrote: + + if (!cpu_has_pse) { + next = (addr + PAGE_SIZE)& PAGE_MASK; + pmd = pmd_offset(pud, addr); + if (pmd_none(*pmd)) + continue; +

Re: [PATCH v5 03/14] memory-hotplug: remove redundant codes

2012-12-25 Thread Kamezawa Hiroyuki
(2012/12/24 21:09), Tang Chen wrote: > From: Wen Congyang > > offlining memory blocks and checking whether memory blocks are offlined > are very similar. This patch introduces a new function to remove > redundant codes. > > Signed-off-by: Wen Congyang > --- > mm/memory_hotplug.c | 101 > +++

Re: [PATCH v5 08/14] memory-hotplug: Common APIs to support page tables hot-remove

2012-12-25 Thread Tang Chen
On 12/26/2012 11:11 AM, Tang Chen wrote: On 12/26/2012 10:49 AM, Tang Chen wrote: On 12/25/2012 04:17 PM, Jianguo Wu wrote: + +static void __meminit free_pagetable(struct page *page, int order) +{ + struct zone *zone; + bool bootmem = false; + unsigned long magic; + + /* bootmem page has reserv

Re: [PATCH v5 08/14] memory-hotplug: Common APIs to support page tables hot-remove

2012-12-25 Thread Tang Chen
On 12/26/2012 10:49 AM, Tang Chen wrote: On 12/25/2012 04:17 PM, Jianguo Wu wrote: + +static void __meminit free_pagetable(struct page *page, int order) +{ + struct zone *zone; + bool bootmem = false; + unsigned long magic; + + /* bootmem page has reserved flag */ + if (PageReserved(page)) { + _

Re: [PATCH v5 02/14] memory-hotplug: check whether all memory blocks are offlined or not when removing memory

2012-12-25 Thread Kamezawa Hiroyuki
(2012/12/24 21:09), Tang Chen wrote: > From: Yasuaki Ishimatsu > > We remove the memory like this: > 1. lock memory hotplug > 2. offline a memory block > 3. unlock memory hotplug > 4. repeat 1-3 to offline all memory blocks > 5. lock memory hotplug > 6. remove memory(TODO) > 7. unlock memory hotp

Re: [PATCH v5 01/14] memory-hotplug: try to offline the memory twice to avoid dependence

2012-12-25 Thread Kamezawa Hiroyuki
(2012/12/24 21:09), Tang Chen wrote: > From: Wen Congyang > > memory can't be offlined when CONFIG_MEMCG is selected. > For example: there is a memory device on node 1. The address range > is [1G, 1.5G). You will find 4 new directories memory8, memory9, memory10, > and memory11 under the director

Re: [PATCH v5 08/14] memory-hotplug: Common APIs to support page tables hot-remove

2012-12-25 Thread Tang Chen
On 12/25/2012 04:17 PM, Jianguo Wu wrote: + +static void __meminit free_pagetable(struct page *page, int order) +{ + struct zone *zone; + bool bootmem = false; + unsigned long magic; + + /* bootmem page has reserved flag */ + if (PageReserved(page)) { +

Re: kernel BUG at mm/huge_memory.c:1798!

2012-12-25 Thread Zhouping Liu
On 12/25/2012 08:05 PM, Hillf Danton wrote: On Tue, Dec 25, 2012 at 12:38 PM, Zhouping Liu wrote: Hello all, I found the below kernel bug using latest mainline(637704cbc95), my hardware has 2 numa nodes, and it's easy to reproduce the issue using LTP test case: "# ./mmap10 -a -s -c 200": Can

[PATCH v4 -tip 3/3] tracing: add description of snapshot to Documentation/trace/ftrace.txt

2012-12-25 Thread Hiraku Toyooka
This patch adds snapshot description in ftrace documentation. This description includes what the snapshot is and how to use it. Signed-off-by: Hiraku Toyooka Cc: Steven Rostedt Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Rob Landley Cc: linux-...@vger.kernel.org Cc: linux-kernel@vger.kernel.o

[PATCH v4 -tip 2/3] tracing: make a snapshot feature available from userspace

2012-12-25 Thread Hiraku Toyooka
Ftrace has a snapshot feature available from kernel space and latency tracers (e.g. irqsoff) are using it. This patch enables user applictions to take a snapshot via debugfs. Add "snapshot" debugfs file in "tracing" directory. snapshot: This is used to take a snapshot and to read the output

[PATCH v4 -tip 1/3] tracing: replace static old_tracer with trace iterator's pointer to the original tracer's name

2012-12-25 Thread Hiraku Toyooka
Currently the trace buffer read functions use a static variable "old_tracer" for detecting if the current tracer changes. This was suitable for a single trace file ("trace"), but to add a snapshot feature that will use the same function for its file, a check against a static variable is not suffici

[PATCH v4 -tip 0/3] tracing: make a snapshot feature available from userspace

2012-12-25 Thread Hiraku Toyooka
Hi, Steven, I updated the patch which replaces static variable 'old_tracer'. v3->v4: [1/3] tracing: replace static old_tracer with trace iterator's pointer to the original tracer's name - changed to comparison between pointers instead of strcmp (v3: https://lkml.org/lkml/2012/12/

Re: [PATCH review] f2fs: Don't assign e_id in f2fs_acl_from_disk

2012-12-25 Thread Jaegeuk Kim
2012-12-25 (화), 16:41 -0800, Eric W. Biederman: > With user namespaces enabled building f2fs fails with: > > CC fs/f2fs/acl.o > fs/f2fs/acl.c: In function ‘f2fs_acl_from_disk’: > fs/f2fs/acl.c:85:21: error: ‘struct posix_acl_entry’ has no member named > ‘e_id’ > make[2]: *** [fs/f2fs/acl.o]

Re: [PATCH] fb: Rework locking to fix lock ordering on takeover

2012-12-25 Thread Cong Wang
On Wed, Dec 26, 2012 at 12:08 AM, Sasha Levin wrote: > On Tue, Dec 18, 2012 at 10:20 AM, Josh Boyer wrote: >> On Wed, Nov 21, 2012 at 7:53 AM, Alan Cox wrote: >>> On Wed, 21 Nov 2012 07:45:45 -0500 >>> Josh Boyer wrote: >>> On Fri, Nov 16, 2012 at 2:27 PM, Alan Cox wrote: > > [T

Re: [RFC v4 0/3] Support volatile for anonymous range

2012-12-25 Thread Kamezawa Hiroyuki
(2012/12/18 15:47), Minchan Kim wrote: > This is still RFC because we need more input from user-space > people and discussion about interface/reclaim policy of volatile > pages and I want to expand this concept to tmpfs volatile range > if it is possbile without big performance drop of anonymous vo

Re: [REGRESSION][3.8.-rc1][ INFO: possible circular locking dependency detected ]

2012-12-25 Thread Shawn Guo
It seems that I'm running into the same locking issue. My setup is: - i.MX28 (ARM) - v3.8-rc1 - mxs_defconfig Shawn [ 602.229899] == [ 602.229905] [ INFO: possible circular locking dependency detected ] [ 602.229926] 3.8.0-rc1-3-gde4ae7

Re: [PATCH] rtk_btusb: Add Bluetooth firmware

2012-12-25 Thread Larry Finger
On 12/25/2012 05:26 PM, Ben Hutchings wrote: On Thu, 2012-12-20 at 20:37 -0600, Larry Finger wrote: Signed-off-by: Larry Finger Signed-off-by: Champion Chen --- WHENCE |8 rtl_bt/rtl8723a.bin | Bin 0 -> 23772 bytes 2 files changed, 8 insertions(+) create mode

Re: [PATCH 1/5] f2fs: Introduce some information prints in the mount path

2012-12-25 Thread Joe Perches
On Wed, 2012-12-26 at 11:10 +0900, Namjae Jeon wrote: > 2012/12/26, Jaegeuk Kim : > > Hi, > Hi Jaegeuk. > > > > Could you make them follow the file system convention? > > Something like "F2FS: blah blah~". > Yes, I agree. > > > > > Otherwise, how about adding a debugging function to express the p

[PATCH] regulator: lp8755: Fix mask for pchip->mphase

2012-12-25 Thread Axel Lin
According to lp8755.h: enum lp8755_mphase_config { MPHASE_CONF0, MPHASE_CONF1, MPHASE_CONF2, MPHASE_CONF3, MPHASE_CONF4, MPHASE_CONF5, MPHASE_CONF6, MPHASE_CONF7, MPHASE_CONF8, MPHASE_CONF_MAX }; MPHASE_CONF_MAX is 9,

Re: [PATCH 1/5] f2fs: Introduce some information prints in the mount path

2012-12-25 Thread Namjae Jeon
2012/12/26, Jaegeuk Kim : > Hi, Hi Jaegeuk. > > Could you make them follow the file system convention? > Something like "F2FS: blah blah~". Yes, I agree. > > Otherwise, how about adding a debugging function to express the prefix? Okay, I will send you the patches included your suggestion. Thanks

[PATCH v6 07/12] ARM: EXYNOS: remove system mmu initialization from exynos tree

2012-12-25 Thread Cho KyongHo
This removes System MMU initialization from arch/arm/mach-exynos/ to move them to DT and the exynos-iommu driver except gating clock definitions. Signed-off-by: KyongHo Cho --- arch/arm/mach-exynos/Kconfig | 5 - arch/arm/mach-exynos/Makefile | 1 - arch/arm/mach-e

Re: [PATCH 1/5] f2fs: Introduce some information prints in the mount path

2012-12-25 Thread Jaegeuk Kim
Hi, Could you make them follow the file system convention? Something like "F2FS: blah blah~". Otherwise, how about adding a debugging function to express the prefix? Thanks, 2012-12-22 (토), 12:08 +0900, Namjae Jeon: > From: Namjae Jeon > > Added few informative prints in the mount path, to con

Re: [Suggestion] drivers/staging/tidspbridge: pr_err and pr_debug for uninitialized buffer (name buf not initialized).

2012-12-25 Thread Chen Gang
于 2012年12月24日 22:26, Omar Ramirez Luna 写道: >> b: version merging issue: >> > in drivers/staging/tidspbridge/core/_tiomap.h >> > need use "#include " instead of "#include >> > " >> > the macro OMAP3430_CM_AUTOIDLE_PLL has already move from >> > cm2xxx_3xxx.h to cm3xxx

[PATCH v6 10/12] iommu/exynos: pass version information from DT

2012-12-25 Thread Cho KyongHo
System MMUs in some implementation of Exynos core does not include correct version information in the System MMU. If the version information is not correct, exynos-iommu driver cannot take advantages of feature of higher versions of System MMu like prefetching page table entries prior to TLB miss.

[PATCH v6 12/12] iommu/exynos: add debugfs entries for System MMU

2012-12-25 Thread Cho KyongHo
This commit adds debugfs directory and nodes for inspecting internal state of System MMU. Signed-off-by: KyongHo Cho --- drivers/iommu/exynos-iommu.c | 204 +-- 1 file changed, 198 insertions(+), 6 deletions(-) diff --git a/drivers/iommu/exynos-iommu.c b/

[PATCH v6 11/12] iommu/exynos: add literal name of System MMU for debugging

2012-12-25 Thread Cho KyongHo
This commit adds System MMU name to the driver data of each System MMU. It is used by fault information. Signed-off-by: KyongHo Cho --- drivers/iommu/exynos-iommu.c | 72 1 file changed, 59 insertions(+), 13 deletions(-) diff --git a/drivers/iommu/ex

[PATCH v6 08/12] iommu/exynos: add support for runtime pm and suspend/resume

2012-12-25 Thread Cho KyongHo
This change enables the client device drivers not to care about the state of System MMU since the internal state of System MMU is controlled by the runtime PM and suspend/resume callback functions. Signed-off-by: KyongHo Cho --- drivers/iommu/exynos-iommu.c | 176 ++--

[PATCH v6 09/12] iommu/exynos: add support for System MMU 3.2 and 3.3

2012-12-25 Thread Cho KyongHo
Since System MMU 3.2 and 3.3 have more prefetch buffers than 2, the existing function to set prefetch buffers, exynos_sysmmu_set_prefbuf() is not able to support them. This commit removes exynos_sysmmu_set_prefbuf() and introduces new interface, exynos_sysmmu_set_pbuf() that can pass information of

[PATCH v6 06/12] iommu/exynos: set System MMU as the parent of client device

2012-12-25 Thread Cho KyongHo
This commit sets System MM as the parent of the client device for power management. If System MMU is the parent of a device, it is guaranteed that System MMU is suspended later than the device and resumed earlier. Runtime suspend/resume on the device is also propagated to the System MMU. If a devic

[PATCH v6 05/12] iommu/exynos: support for device tree

2012-12-25 Thread Cho KyongHo
This commit adds device tree support for System MMU. Signed-off-by: KyongHo Cho --- drivers/iommu/Kconfig| 2 +- drivers/iommu/exynos-iommu.c | 282 ++- 2 files changed, 174 insertions(+), 110 deletions(-) diff --git a/drivers/iommu/Kconfig b/dr

[PATCH v6 03/12] iommu/exynos: allocate lv2 page table from own slab

2012-12-25 Thread Cho KyongHo
Since kmalloc() does not guarantee the alignment of 1KB when it allocates 1KB, it is required to allocate lv2 page table from own slab that guarantees alignment of 1KB. Signed-off-by: KyongHo Cho --- drivers/iommu/exynos-iommu.c | 24 1 file changed, 20 insertions(+), 4

[PATCH v6 04/12] iommu/exynos: change rwlock to spinlock

2012-12-25 Thread Cho KyongHo
Since acquiring read_lock is not more frequent than write_lock, it is not beneficial to use rwlock, this commit changes rwlock to spinlock. Signed-off-by: KyongHo Cho --- drivers/iommu/exynos-iommu.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git

[PATCH v6 01/12] iommu/exynos: add missing cache flush for removed pagetable entries

2012-12-25 Thread Cho KyongHo
This commit adds cache flush for removed small page and large page entries in exynos_iommu_unmap(). Missing cache flush of removed page table entries can cause missing page fault interrupt when a master IP accesses an unmapped area. Signed-off-by: KyongHo Cho --- drivers/iommu/exynos-iommu.c | 2

[PATCH v6 02/12] iommu/exynos: always use iommu fault handler

2012-12-25 Thread Cho KyongHo
This commit removes fault handler definition only for exynos-iommu driver. Instead, always call iommu fault handler when a fault is generated by a System MMU. Every new iommu_domain will have a default fault handler and it can be overridden with iommu_set_fault_handler(). The default fault handler

Re: [Suggestion] drivers/staging/tidspbridge: strcpy and strncpy, src length checking issue.

2012-12-25 Thread Chen Gang
于 2012年12月24日 22:27, Omar Ramirez Luna 写道: > Hi Gchen, > > On Mon, Dec 17, 2012 at 8:40 PM, Chen Gang wrote: >> Hello Omar Ramirez Luna: >> >> excuse me to bother you (maybe you are busy in these days). >> please help checking this suggestion when you have free time. > > Yes, I'm checking yo

[PATCH v6 00/12] iommu/exynos: Fixes and Enhancements of System MMU driver with DT

2012-12-25 Thread Cho KyongHo
notice: v6 patch-set is rebased on next/iommu-exynos branch of linux-samsung.git. This patch-set does not include 2 patches (05 and 06 patches in v5 patch-se) because they alread exist already in the branch. The current exynos-iommu(System MMU) driver does not work autonomously since it is lack o

Re: [Suggestion] drivers/staging/tidspbridge: pr_err and pr_debug for uninitialized buffer (name buf not initialized).

2012-12-25 Thread Chen Gang
于 2012年12月24日 22:26, Omar Ramirez Luna 写道: > Hi, > > On Thu, Dec 13, 2012 at 7:30 PM, Chen Gang wrote: >> also another suggestions: >> I built ti otmap with ti dsp bridge by arm cross-compiler under i386 >> platform. >> the version tag is next-20121213 >> I met 2 compiling issues.

Re: [PATCH 16/25] PM / Domains: don't use [delayed_]work_pending()

2012-12-25 Thread Tejun Heo
Hello, On Tue, Dec 25, 2012 at 09:33:07PM +0100, Rafael J. Wysocki wrote: > OK, so I'd generally prefer changelogs like this: > > "There's no need to test whether a (delayed) work item is pending > before queueing, flushing or cancelling it, so remove work_pending() > tests used in those cases."

Re: [PATCH] regulator: lp8755: Fix lp8755_regulator_init unwind code

2012-12-25 Thread gshark
2012년 12월 25일 11:06, Axel Lin 쓴 글: This patch also includes below cleanups: Show correct regulator id in dev_err. Remove __devexit_p. Signed-off-by: Axel Lin --- drivers/regulator/lp8755.c |9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/regulator/lp8755

Re: [PATCH 4/4 v2] net/smsc911x: Provide common clock functionality

2012-12-25 Thread Linus Walleij
On Fri, Dec 21, 2012 at 12:41 PM, Lee Jones wrote: > + if (IS_ERR(pdata->clk)) { > + ret = clk_prepare_enable(pdata->clk); > + if (ret < 0) > + netdev_err(ndev, "failed to enable clock %d\n", ret); > + } I think you got all of these b

Re: [PATCH 28/29] net/: rename net_random() to prandom_u32()

2012-12-25 Thread Neil Horman
On Tue, Dec 25, 2012 at 08:47:26PM +0900, Akinobu Mita wrote: > 2012/12/25 Neil Horman : > > On Mon, Dec 24, 2012 at 11:14:15AM +0900, Akinobu Mita wrote: > >> Use more preferable function name which implies using a pseudo-random > >> number generator. > >> > >> Signed-off-by: Akinobu Mita > >> Cc

[PATCH review] f2fs: Don't assign e_id in f2fs_acl_from_disk

2012-12-25 Thread Eric W. Biederman
With user namespaces enabled building f2fs fails with: CC fs/f2fs/acl.o fs/f2fs/acl.c: In function ‘f2fs_acl_from_disk’: fs/f2fs/acl.c:85:21: error: ‘struct posix_acl_entry’ has no member named ‘e_id’ make[2]: *** [fs/f2fs/acl.o] Error 1 make[2]: Target `__build' not remade because of error

Re: linux-next: manual merge of the arm-soc tree with the pinctrl tree

2012-12-25 Thread Linus Walleij
On Fri, Dec 21, 2012 at 4:38 AM, Kukjin Kim wrote: > Stephen Rothwell wrote: >> >> Hi all, >> >> Today's linux-next merge of the arm-soc tree got conflicts in >> drivers/pinctrl/pinctrl-exynos5440.c and >> drivers/pinctrl/pinctrl-samsung.c between commit e5b4c9d4ab55 ("pinctrl: >> exynos5440: Fix

Re: 3.8-rc1 build failure with MIPS/SPARSEMEM

2012-12-25 Thread Kirill A. Shutemov
On Sat, Dec 22, 2012 at 02:27:57PM +0200, Aaro Koskinen wrote: > Hi, > > It looks like commit 816422ad76474fed8052b6f7b905a054d082e59a > (asm-generic, mm: pgtable: consolidate zero page helpers) broke > MIPS/SPARSEMEM build in 3.8-rc1: > > CHK include/generated/uapi/linux/version.h > CHK

Re: [PATCH] kconfig:lxdialog: remove duplicate code

2012-12-25 Thread Yann E. MORIN
Wang, All, On Tuesday 25 December 2012 Yann E. MORIN wrote: > On Monday 24 December 2012 Wang YanQing wrote: [--SNIP--] > > and consider others' three patch I sented one week > > ago? I just don't want delay them to 2013, and they can get > > more test when they appear in next tree. > > https://pa

[RFC PATCH] [SCSI] sd: When no media present ignore WCE in suspend/shutdown

2012-12-25 Thread Andreas Bombe
When the WCE flag is set for a drive, sd_shutdown() and sd_suspend() try to send a SYNCHRONIZE_CACHE command to that drive. This is not meaningful when no media are present and causes errors with devices where the media are the actual command processing devices, such as SATA attached RDX docks wher

Re: [PATCH] rtk_btusb: Add Bluetooth firmware

2012-12-25 Thread Ben Hutchings
On Thu, 2012-12-20 at 20:37 -0600, Larry Finger wrote: > Signed-off-by: Larry Finger > Signed-off-by: Champion Chen > --- > WHENCE |8 > rtl_bt/rtl8723a.bin | Bin 0 -> 23772 bytes > 2 files changed, 8 insertions(+) > create mode 100644 rtl_bt/rtl8723a.bin > > diff -

[Alternative][PATCH] ACPI / PCI: Set root bridge ACPI handle in advance

2012-12-25 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Subject: PCI / ACPI: Set root bridge ACPI handle in advance The ACPI handles of PCI root bridges need to be known to acpi_bind_one(), so that it can create the appropriate "firmware_node" and "physical_node" files for them, but currently the way it gets to know those handl

kvm lockdep splat with 3.8-rc1+

2012-12-25 Thread Borislav Petkov
Hi all, just saw this in dmesg while running -rc1 + tip/master: [ 6983.694615] = [ 6983.694617] [ INFO: possible recursive locking detected ] [ 6983.694620] 3.8.0-rc1+ #26 Not tainted [ 6983.694621] - [ 6983.

[PATCH v3] tty: don't deadlock while flushing workqueue

2012-12-25 Thread Sebastian Andrzej Siewior
From: Sebastian Andrzej Siewior Since commit 89c8d91e31f2 ("tty: localise the lock") I see a dead lock in one of my dummy_hcd + g_nokia test cases. The first run was usually okay, the second often resulted in a splat by lockdep and the third was usually a dead lock. Lockdep complained about tty->

[PATCH] cdrom: remove extraneous braces to comply with coding style.

2012-12-25 Thread Michael Rawson
Hi list, Jens. Please note that I'm a kernel newbie, hope I'm not about to embarrass myself. :-) From https://github.com/torvalds/linux/blob/master/Documentation/CodingStyle: "Printing numbers in parentheses (%d) adds no value and should be avoided." I saw a couple of parenthesized messages in

Re: [Qemu-devel] [PATCH v12 0/8] pv event to notify host when the guest is panicked

2012-12-25 Thread Marcelo Tosatti
On Thu, Dec 20, 2012 at 03:53:59PM +0800, Hu Tao wrote: > Hi, > > Any comments? Did you verify possibilities listed at https://lkml.org/lkml/2012/11/20/653 ? If so, a summary in the patchset would be helpful. > On Wed, Dec 12, 2012 at 02:13:43PM +0800, Hu Tao wrote: > > This series implements

Re: [Qemu-devel] [PATCH v12 0/8] pv event to notify host when the guest is panicked

2012-12-25 Thread Marcelo Tosatti
On Thu, Dec 20, 2012 at 03:53:59PM +0800, Hu Tao wrote: > Hi, > > Any comments? As far as i can see, items 2 and 3 of https://lkml.org/lkml/2012/11/12/588 Have not been addressed. https://lkml.org/lkml/2012/11/20/653 contains discussions on those items. 2) Format of the interface for other ar

Re: [PATCH 19/29] batman-adv: fix random jitter calculation

2012-12-25 Thread Akinobu Mita
2012/12/25 Antonio Quartulli : > On Mon, Dec 24, 2012 at 11:14:06AM +0900, Akinobu Mita wrote: >> batadv_iv_ogm_emit_send_time() attempts to calculates a random integer >> in the range of 'orig_interval +- BATADV_JITTER' by the below lines. >> >> msecs = atomic_read(&bat_priv->orig_interval

Re: Does init start with any open files?

2012-12-25 Thread Rob Landley
On 12/25/2012 01:38:09 AM, bbi5291 wrote: When the init process is created on system startup, does it have any open file descriptors? If so, where do they point? Last I checked, it worked like this: If there's a /dev/console in initramfs, stdin, stdout, and stderr will point to that. If you

Re: [PATCH 19/29] batman-adv: fix random jitter calculation

2012-12-25 Thread David Miller
From: Akinobu Mita Date: Wed, 26 Dec 2012 06:35:37 +0900 > 2012/12/25 Antonio Quartulli : >> On Mon, Dec 24, 2012 at 11:14:06AM +0900, Akinobu Mita wrote: >>> batadv_iv_ogm_emit_send_time() attempts to calculates a random integer >>> in the range of 'orig_interval +- BATADV_JITTER' by the below l

Re: [PATCH v7 00/27] x86, boot, 64bit: Add support for loading ramdisk and bzImage above 4G

2012-12-25 Thread Yinghai Lu
On Mon, Dec 24, 2012 at 3:56 PM, H. Peter Anvin wrote: > On 12/23/2012 10:00 AM, Yinghai Lu wrote: >> On Sun, Dec 23, 2012 at 6:33 AM, H. Peter Anvin wrote: >>> Explanation please? >>> >> >> you have following change in the patch >> >> /* Finally jump to run C code and to be on real kerne

Re: [PATCH v7 06/27] x86, 64bit: early #PF handler set page table

2012-12-25 Thread Yinghai Lu
On Tue, Dec 25, 2012 at 3:20 AM, Borislav Petkov wrote: > On Mon, Dec 24, 2012 at 08:04:18PM -0800, Yinghai Lu wrote: >> well, I updated for-x86-boot-v7 that stop #PF handler after >> init_mem_mapping. >> >> it has fix for AMD system aka reverting far jmp to ret. > > -v7? > > You told me yesterday

Re: [PATCH 16/25] PM / Domains: don't use [delayed_]work_pending()

2012-12-25 Thread Rafael J. Wysocki
On Tuesday, December 25, 2012 09:03:28 AM Tejun Heo wrote: > Hello, Rafael. > > On Sat, Dec 22, 2012 at 12:57:20PM +0100, Rafael J. Wysocki wrote: > > On Friday, December 21, 2012 05:57:06 PM Tejun Heo wrote: > > > There's no need to test whether a (delayed) work item in pending > > > before queue

Re: namei.h: include errno.h

2012-12-25 Thread Al Viro
On Tue, Dec 25, 2012 at 01:24:49PM -0500, Theodore Ts'o wrote: > On Mon, Dec 24, 2012 at 08:14:58AM -, Stephen Warren wrote: > > This solves: > > > > In file included from fs/ext3/symlink.c:20:0: > > include/linux/namei.h: In function 'retry_estale': > > include/linux/namei.h:114:19: error: 'E

Re: [PATCH] ext4: Fix an incorrect comment about i_mutex

2012-12-25 Thread Theodore Ts'o
On Fri, Dec 21, 2012 at 11:24:58AM -0800, Andy Lutomirski wrote: > i_mutex is not held when ->sync_file is called. > > Reviewed-by: Jan Kara > Signed-off-by: Andy Lutomirski Thanks, applied. - Ted -- To unsubscribe from this list: send the line "

Re: [PATCH] kconfig:lxdialog: remove duplicate code

2012-12-25 Thread Yann E. MORIN
Wang, All, On Monday 24 December 2012 Wang YanQing wrote: > On Mon, Dec 17, 2012 at 07:19:07PM +0100, Yann E. MORIN wrote: > > Wang, All, > > > > On Monday 17 December 2012 Wang YanQing wrote: > > > dialog.h has two line the same below: > > > extern char dialog_input_result[]; > > > This patch re

Re: namei.h: include errno.h

2012-12-25 Thread Theodore Ts'o
On Mon, Dec 24, 2012 at 08:14:58AM -, Stephen Warren wrote: > This solves: > > In file included from fs/ext3/symlink.c:20:0: > include/linux/namei.h: In function 'retry_estale': > include/linux/namei.h:114:19: error: 'ESTALE' undeclared (first use in this > function) > > Signed-off-by: Steph

Re: Regression in kernel 3.8-rc1 bisected to commit adfa79d: I now get many "unable to enumerate USB device" messages

2012-12-25 Thread Larry Finger
On 12/25/2012 10:26 AM, Alan Stern wrote: On Mon, 24 Dec 2012, Larry Finger wrote: The problem has been bisected to commit adfa79d entitled "USB: EHCI: make ehci-pci a separate driver". The symptom is that my NVIDIA controller again reverts to unended logging of messages of the form "hub 2-0:1.

[PATCH V3 6/8] memcg: Don't account root_mem_cgroup page statistics

2012-12-25 Thread Sha Zhengju
From: Sha Zhengju If memcg is enabled and no non-root memcg exists, all allocated pages belongs to root_mem_cgroup and go through root memcg statistics routines which brings some overheads. So for the sake of performance, we can give up accounting stats of root memcg for MEM_CGROUP_STAT_FILE_MAPP

[PATCH V3 5/8] memcg: add per cgroup writeback pages accounting

2012-12-25 Thread Sha Zhengju
From: Sha Zhengju Similar to dirty page, we add per cgroup writeback pages accounting. The lock rule still is: mem_cgroup_begin_update_page_stat() modify page WRITEBACK stat mem_cgroup_update_page_stat() mem_cgroup_end_update_page_stat() There're two writeback int

[PATCH V3 8/8] memcg: Document cgroup dirty/writeback memory statistics

2012-12-25 Thread Sha Zhengju
From: Sha Zhengju Signed-off-by: Sha Zhengju --- Documentation/cgroups/memory.txt |2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/cgroups/memory.txt b/Documentation/cgroups/memory.txt index addb1f1..2828164 100644 --- a/Documentation/cgroups/memory.txt +++ b/Documentation

[PATCH V3 7/8] memcg: disable memcg page stat accounting code when not in use

2012-12-25 Thread Sha Zhengju
From: Sha Zhengju It's inspired by a similar optimization from Glauber Costa (memcg: make it suck faster; https://lkml.org/lkml/2012/9/25/154). Here we use jump label to patch the memcg page stat accounting code in or out when not used. when the first non-root memcg comes to life the code is patc

[PATCH V3 1/8] memcg: remove MEMCG_NR_FILE_MAPPED

2012-12-25 Thread Sha Zhengju
From: Sha Zhengju While accounting memcg page stat, it's not worth to use MEMCG_NR_FILE_MAPPED as an extra layer of indirection because of the complexity and presumed performance overhead. We can use MEM_CGROUP_STAT_FILE_MAPPED directly. Signed-off-by: Sha Zhengju Acked-by: KAMEZAWA Hiroyuki A

  1   2   >