Re: [BUG REPORT] [mm-hotplug, aio] aio ring_pages can't be offlined

2012-11-29 Thread Andrew Morton
On Fri, 30 Nov 2012 15:01:26 +0800 Lin Feng wrote: > > > On 11/30/2012 01:57 PM, Andrew Morton wrote: > > On Fri, 30 Nov 2012 11:42:05 +0800 Lin Feng wrote: > > > >> hi Andrew, > >> > >> On 11/30/2012 07:39 AM, Andrew Morton wrote: > >>> Tricky. > >>> > >>> I expect the same problem would

Re: [RFC v2 8/8] drm: tegra: Add gr2d device

2012-11-29 Thread Lucas Stach
Am Freitag, den 30.11.2012, 09:44 +0200 schrieb Terje Bergström: > On 29.11.2012 14:14, Thierry Reding wrote: > > On Thu, Nov 29, 2012 at 10:09:13AM +0100, Lucas Stach wrote: > >> This way you would also be able to construct different handles (like GEM > >> obj or V4L2 buffers) from the same

Re: [RFC v2 3/8] video: tegra: host: Add channel and client support

2012-11-29 Thread Thierry Reding
On Thu, Nov 29, 2012 at 01:00:40PM +0200, Terje Bergström wrote: > On 29.11.2012 12:04, Thierry Reding wrote: > > Looking some more at how this is used, I'm starting to think that it > > might be easier to export the various handlers and allow them to be > > passed to the nvhost_intr_add_action()

[PATCH] [trivial] treewide: Fix typos in various Kconfig

2012-11-29 Thread Masanari Iida
Correct spelling typo within various Kconfig. Signed-off-by: Masanari Iida --- arch/arm/mach-tegra/Kconfig | 2 +- arch/openrisc/Kconfig | 2 +- drivers/gpio/Kconfig| 2 +- drivers/mmc/host/Kconfig| 2 +- drivers/thermal/Kconfig | 2 +- lib/Kconfig.debug |

Re: [RFC v2 8/8] drm: tegra: Add gr2d device

2012-11-29 Thread Terje Bergström
On 29.11.2012 14:14, Thierry Reding wrote: > On Thu, Nov 29, 2012 at 10:09:13AM +0100, Lucas Stach wrote: >> This way you would also be able to construct different handles (like GEM >> obj or V4L2 buffers) from the same backing nvhost object. Note that I'm >> not sure how useful this would be, but

Re: [RFC v2 2/8] video: tegra: Add syncpoint wait and interrupts

2012-11-29 Thread Terje Bergström
Just replying to part of your mail. On 30.11.2012 09:22, Thierry Reding wrote: > Actually for the display controller we want just a notification when the > VBLANK happens. I'm not sure if we want to do that with syncpoints at > all since it works quite well using regular interrupts. VBLANK isn't

Re: [RFC v2 2/8] video: tegra: Add syncpoint wait and interrupts

2012-11-29 Thread Thierry Reding
On Thu, Nov 29, 2012 at 11:41:50AM -0700, Stephen Warren wrote: > On 11/29/2012 01:44 AM, Thierry Reding wrote: > > On Mon, Nov 26, 2012 at 03:19:08PM +0200, Terje Bergstrom wrote: > > >> diff --git a/drivers/video/tegra/host/host1x/host1x_intr.c > >>

Re: [RFC v2 2/8] video: tegra: Add syncpoint wait and interrupts

2012-11-29 Thread Thierry Reding
On Thu, Nov 29, 2012 at 12:39:23PM +0200, Terje Bergström wrote: > On 29.11.2012 10:44, Thierry Reding wrote: > >> diff --git a/drivers/video/tegra/host/dev.c > >> b/drivers/video/tegra/host/dev.c > >> index 98c9c9f..025a820 100644 > >> --- a/drivers/video/tegra/host/dev.c > >> +++

Re: [BUG REPORT] [mm-hotplug, aio] aio ring_pages can't be offlined

2012-11-29 Thread Kamezawa Hiroyuki
(2012/11/30 14:57), Andrew Morton wrote: On Fri, 30 Nov 2012 11:42:05 +0800 Lin Feng wrote: hi Andrew, On 11/30/2012 07:39 AM, Andrew Morton wrote: Tricky. I expect the same problem would occur with pages which are under O_DIRECT I/O. Obviously O_DIRECT pages won't be pinned for such long

Re: [Suggestion] drivers/tty: drivers/char/: for MAX_ASYNC_BUFFER_SIZE

2012-11-29 Thread Chen Gang
于 2012年11月30日 11:27, Paul Fulghum 写道: > > I’m the maintainer for these drivers. I only caught this message by > chance and > have not had a chance to review the entire thread and original patches. > It’s late and I’m tired so I won’t be able to look at this until tomorrow. > > I do not doubt

Re: [PATCH 2/2] ARM: tegra: moving stuff away from mach/clk.h

2012-11-29 Thread Prashant Gaikwad
On Thursday 29 November 2012 11:55 PM, Stephen Warren wrote: On 11/28/2012 11:12 PM, Prashant Gaikwad wrote: On Tuesday 27 November 2012 12:29 PM, Sivaram Nair wrote: This patch moves some stuff away from mach/clk.h to other mach-tegra files. This is part of the efforts to get rid of

Re: [PATCH 1/4] rtc: sa1100: enable/disable rtc when probe/remove the device

2012-11-29 Thread Haojian Zhuang
On Thu, Nov 29, 2012 at 6:25 PM, Russell King - ARM Linux wrote: > On Wed, Nov 28, 2012 at 09:21:07PM -0500, Chao Xie wrote: >> The original sa1100_rtc_open/sa1100_rtc_release will be called >> when the /dev/rtc0 is opened or closed. >> In fact, these two functions will enable/disable the clock,

Re: [BUG REPORT] [mm-hotplug, aio] aio ring_pages can't be offlined

2012-11-29 Thread Lin Feng
On 11/30/2012 01:57 PM, Andrew Morton wrote: > On Fri, 30 Nov 2012 11:42:05 +0800 Lin Feng wrote: > >> hi Andrew, >> >> On 11/30/2012 07:39 AM, Andrew Morton wrote: >>> Tricky. >>> >>> I expect the same problem would occur with pages which are under >>> O_DIRECT I/O. Obviously O_DIRECT pages

Re: [PATCH]realtek:r8169: Bugfix or workaround for missing extended GigaMAC registers settings

2012-11-29 Thread Francois Romieu
Wang YanQing : [...] > After add some debug code, I found this NIC only accept ethernet > broadcast package, it can't filter out the package send to its > MAC address, but it works good for sending.So ifconfig show the > RX/TX status means it can receive ARP package.(It don't its MAC > address,

Re: [GIT PULL] ARM: final SoC fixes for 3.7

2012-11-29 Thread Olof Johansson
On Thu, Nov 29, 2012 at 12:07 PM, Russell King - ARM Linux wrote: > On Thu, Nov 29, 2012 at 02:24:25PM +, Arnd Bergmann wrote: >> Hi Linus, >> >> These should be the last bug fixes you get from Olof and me for 3.7. >> This is based on the previous one you pulled and there is nothing >>

Re: zram: fix invalid memory references during disk write

2012-11-29 Thread Nitin Gupta
(somehow mail didn't go to the stable email alias and [PATCH] prefix was not added. CC'ed stable now) On 11/29/2012 10:45 PM, Nitin Gupta wrote: Fixes a bug introduced by commit c8f2f0db1 ("zram: Fix handling of incompressible pages") which caused invalid memory references during disk write.

[PATCH v2 2/2] zram: reduce metadata overhead

2012-11-29 Thread Nitin Gupta
Changelog v2 vs v1: - Use is_zero_page() instead of direct handle comparison - Use 1 as invalid handle value instead of -1 since handle is unsigned and thus -1 may refer to a valid object. While 1 is guaranteed to be invalid since can never refer to (end of) a valid object. - Remove references

[PATCH v2 1/2] zsmalloc: add function to query object size

2012-11-29 Thread Nitin Gupta
Changelog v2 vs v1: - None Adds zs_get_object_size(handle) which provides the size of the given object. This is useful since the user (zram etc.) now do not have to maintain object sizes separately, saving on some metadata size (4b per page). The object handle encodes pair which currently

Re: [RFC v2 1/8] video: tegra: Add nvhost driver

2012-11-29 Thread Thierry Reding
On Fri, Nov 30, 2012 at 08:54:32AM +0200, Terje Bergström wrote: > On 29.11.2012 20:34, Stephen Warren wrote: > > On 11/29/2012 03:21 AM, Terje Bergström wrote: > >> True. I might also as well delete the general interrupt altogether, as > >> we don't use it for any real purpose. > > > > Do make

Re: [RFC v2 1/8] video: tegra: Add nvhost driver

2012-11-29 Thread Thierry Reding
On Thu, Nov 29, 2012 at 11:38:11AM -0700, Stephen Warren wrote: > On 11/29/2012 04:47 AM, Thierry Reding wrote: > > On Thu, Nov 29, 2012 at 12:21:04PM +0200, Terje Bergström wrote: > >> On 28.11.2012 23:23, Thierry Reding wrote: > >>> This could be problematic. Since drivers/video and > >>>

Re: [RFC v2 1/8] video: tegra: Add nvhost driver

2012-11-29 Thread Terje Bergström
On 29.11.2012 20:34, Stephen Warren wrote: > On 11/29/2012 03:21 AM, Terje Bergström wrote: >> True. I might also as well delete the general interrupt altogether, as >> we don't use it for any real purpose. > > Do make sure the interrupts still are part of the DT binding though, so > that the

Re: [PATCH] gpio: New driver for GPO emulation using PWM generators

2012-11-29 Thread Thierry Reding
On Thu, Nov 29, 2012 at 04:10:24PM +, Grant Likely wrote: > On Wed, 28 Nov 2012 09:54:57 +0100, Peter Ujfalusi > wrote: > > Hi Grant, Lars, Thierry, > > > > On 11/26/2012 04:46 PM, Grant Likely wrote: > > > You're effectively asking the pwm layer to behave like a gpio (which > > > is

zram: fix invalid memory references during disk write

2012-11-29 Thread Nitin Gupta
Fixes a bug introduced by commit c8f2f0db1 ("zram: Fix handling of incompressible pages") which caused invalid memory references during disk write. Invalid references could occur in two cases: - Incoming data expands on compression: In this case, reference was made to kunmap()'ed bio page. -

Re: [Patch v4 00/12] memory-hotplug: hot-remove physical memory

2012-11-29 Thread Tang Chen
Hi Andrew, On 11/28/2012 03:27 AM, Andrew Morton wrote: - acpi framework https://lkml.org/lkml/2012/10/26/175 What's happening with the acpi framework? has it received any feedback from the ACPI developers? About ACPI framework, we are trying to do the following. The memory device

Re: [PATCH v4 7/9] trace: use this_cpu_ptr per-cpu helper

2012-11-29 Thread Shan Wei
Shan Wei said, at 2012/11/16 16:34: > Shan Wei said, at 2012/11/13 9:53: >> From: Shan Wei >> >> typeof() is a pointer to array of 1024 char, or char (*)[1024]. >> But, typeof([0]) is a pointer to char which match the return type of >> get_trace_buf(). >> As well-known, the value of is equal to

Re: [PATCH] trace: use __this_cpu_inc/dec operation instead of __get_cpu_var

2012-11-29 Thread Shan Wei
ping .. Shan Wei said, at 2012/11/19 13:21: > From: Shan Wei > > __this_cpu_inc_return() or __this_cpu_dec generates a single instruction, > which is faster than __get_cpu_var operation. > > Signed-off-by: Shan Wei > --- > kernel/trace/trace.c |4 ++-- > 1 files changed, 2

Re: [Suggestion] drivers/tty: drivers/char/: for MAX_ASYNC_BUFFER_SIZE

2012-11-29 Thread Chen Gang
于 2012年11月30日 11:27, Paul Fulghum 写道: > > I’m the maintainer for these drivers. I only caught this message by > chance and it seems you are not in MAINTAINER file. is it suitable to add your name into MAINTAINER file ? (if it was, please help adding ? I am not quite familiar with it)

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

2012-11-29 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm tree got a conflict in include/linux/percpu-rwsem.h between commit 4b05a1c74d1c ("percpu-rwsem: use synchronize_sched_expedited") from Linus' tree and commit "percpu_rw_semaphore: reimplement to not block the readers unnecessarily" from the akpm

Re: A vague, murky topic of "Buffer I/O error on device sdb6, logical block NNNNNNNNN" and a ext4/VFS oops

2012-11-29 Thread Robert Hancock
On 11/29/2012 01:27 PM, Artem S. Tashkinov wrote: Hello, When I was copying a lot of information (tens of gigabytes) from my primary HDD to a secondary HDD I got gazillions of errors like these ones: [19568.964762] EXT4-fs warning (device sdb6): ext4_end_bio:250: I/O error writing to inode

[PATCH rcu] Remove unused code originally used for context tracking

2012-11-29 Thread Li Zhong
As new context tracking subsystem added, it seems ignore_user_qs and in_user defined in struct rcu_dynticks are no longer needed, so remove them. Signed-off-by: Li Zhong --- kernel/rcutree.c | 3 --- kernel/rcutree.h | 4 2 files changed, 7 deletions(-) diff --git a/kernel/rcutree.c

Re: [PATCH 1/2] Btrfs: fix permissions of empty files not affected by umask

2012-11-29 Thread Liu Bo
On Thu, Nov 29, 2012 at 07:40:08PM -0800, Filipe Brandenburger wrote: > When a new file is created with btrfs_create(), the inode will initially be > created with permissions 0666 and later on in btrfs_init_acl() it will be > adapted to mask out the umask bits. The problem is that this change

Re: [PATCH] vfio powerpc: enabled on powernv platform

2012-11-29 Thread Alexey Kardashevskiy
On 29/11/12 15:20, Alex Williamson wrote: + /* Put tces to the table */ + for (i = 0; (i < pages) && !ret; ++i, tce += IOMMU_PAGE_SIZE) { + ret = put_tce(tbl, entry + i, tce, direction); + /* +* As IOMMU page size is always 4K, the system

Re: [PATCH 2/2] i2c-s3c2410: Add bus arbitration implementation

2012-11-29 Thread Olof Johansson
On Thu, Nov 29, 2012 at 6:13 PM, Simon Glass wrote: > +Olof > > On Thu, Nov 29, 2012 at 8:34 AM, Mark Brown > wrote: >> On Thu, Nov 29, 2012 at 10:35:35AM +0530, Naveen Krishna Chatradhi wrote: >> >>> The arbitrator is a general purpose function which uses two GPIOs to >>> communicate with

[PATCH] vfio powerpc: enabled on powernv platform

2012-11-29 Thread Alexey Kardashevskiy
This patch initializes IOMMU groups based on the IOMMU configuration discovered during the PCI scan on POWERNV (POWER non virtualized) platform. The IOMMU groups are to be used later by VFIO driver (PCI pass through). It also implements an API for mapping/unmapping pages for guest PCI drivers and

Re: [RFC,v2,3/8] video: tegra: host: Add channel and client support

2012-11-29 Thread Mark Zhang
On 11/29/2012 06:46 PM, Terje Bergström wrote: > On 29.11.2012 12:01, Mark Zhang wrote: >> >> Just for curious, why "pb->mapped + 1K" is the end of a 4K pushbuffer? > > pb->mapped is u32 *, so compiler will take care of multiplying by > sizeof(u32). > Ah, yes. Sorry, I must be insane at that

Re: [RESEND PATCH] fs/super.c set_anon_super calling optimization

2012-11-29 Thread Al Viro
On Fri, Nov 30, 2012 at 11:10:02AM +0530, Abhijit Pawar wrote: > > Because we want it to be a valid sget() callback. I doubt that this > > optimization is worth doing, though - might even micro-pessimize the things > > on architectures where all arguments are passed in registers. > > > Al,

Re: [BUG REPORT] [mm-hotplug, aio] aio ring_pages can't be offlined

2012-11-29 Thread Andrew Morton
On Fri, 30 Nov 2012 11:42:05 +0800 Lin Feng wrote: > hi Andrew, > > On 11/30/2012 07:39 AM, Andrew Morton wrote: > > Tricky. > > > > I expect the same problem would occur with pages which are under > > O_DIRECT I/O. Obviously O_DIRECT pages won't be pinned for such long > > periods, but the

linux-next: manual merge of the signal tree with the ftrace tree

2012-11-29 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the signal tree got a conflict in arch/microblaze/include/asm/Kbuild between commit 8cbd9cc62540 ("tracing,x86: Add a TSC trace_clock") from the ftrace tree and commit 24465a40ba45 ("take sys_fork/sys_vfork/sys_clone prototypes to linux/syscalls.h") from the

Re: [PATCH v2 -tip 3/4] tracing: make a snapshot feature available from userspace

2012-11-29 Thread Hiraku Toyooka
Hi, Steven, Thank you for your review. (2012/11/16 10:46), Steven Rostedt wrote: [snip] > I was thinking about this some more, and I don't like the > snapshot_allocate part. Also, I think the snapshot should not be > allocated by default, and not used until the user explicitly asks for > it. >

[PATCH] ARM: dt: tegra: cardhu: Add drm components

2012-11-29 Thread Mark Zhang
This patch adds the RGB & HDMI nodes in Tegra 30 cardhu's dts. This makes the LVDS & HDMI working. Signed-off-by: Mark Zhang --- Changes: - This patch depcrates the patch: "[PATCH V2] ARM: dt: tegra: cardhu: Add drm components" Because the issue that LCD and HDMI can't work at the same time

Re: [RESEND PATCH] fs/super.c set_anon_super calling optimization

2012-11-29 Thread Abhijit Pawar
On 11/30/2012 09:35 AM, Al Viro wrote: > On Fri, Oct 26, 2012 at 11:14:41AM -0200, Carlos Maiolino wrote: >> Hi, >> >> On Thu, Oct 25, 2012 at 05:08:19PM +0530, Abhijit Pawar wrote: >>> Hi, >>> set_anon_super is called by many filesystems. Some call directly and >>> some call through the wrapper.

Re: [PATCH 6/6] fs:sysfs pass NULL as second parameter for set_anon_super

2012-11-29 Thread Abhijit Pawar
On 11/29/2012 09:06 PM, Greg Kroah-Hartman wrote: > On Thu, Nov 29, 2012 at 12:05:45PM +0530, Abhijit Pawar wrote: >> set_anon_super does not use the second parameter in its implementation. >> So there is no need to pass on the second parameter. > > Why not just remove the second parameter from

Re: [PATCH v2 RESEND] Add NumaChip remote PCI support

2012-11-29 Thread Daniel J Blueman
Hi Bjorn, On 29/11/2012 07:08, Bjorn Helgaas wrote: On Wed, Nov 21, 2012 at 1:39 AM, Daniel J Blueman wrote: Add NumaChip-specific PCI access mechanism via MMCONFIG cycles, but preventing access to AMD Northbridges which shouldn't respond. v2: Use PCI_DEVFN in precomputed constant limit;

Re: [PATCH] staging/serqt_usb2: Refactor qt_status_change_check() in serqt_usb2.c

2012-11-29 Thread YAMANE Toshiaki
On Fri, Nov 30, 2012 at 11:10 AM, Greg Kroah-Hartman wrote: > On Thu, Nov 29, 2012 at 01:57:56PM +0900, YAMANE Toshiaki wrote: >> Improved position to increment variable i, >> And typo fixes. >> >> Signed-off-by: YAMANE Toshiaki >> --- >> drivers/staging/serqt_usb2/serqt_usb2.c | 12

[PATCH] regulator: wm831x-dcdc: Ensure selected voltage falls within requested range

2012-11-29 Thread Axel Lin
Use DIV_ROUND_UP to ensure selected voltage won't less than min_uV due to integer truncation. Signed-off-by: Axel Lin --- drivers/regulator/wm831x-dcdc.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/wm831x-dcdc.c b/drivers/regulator/wm831x-dcdc.c

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

2012-11-29 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the arm-soc tree got a conflict in arch/arm/mach-davinci/devices-da8xx.c between commit 3b43ad201dea ("da8xx-fb: cleanup LCDC configurations") from the omap_dss2 tree and commit 8e0d72d2c7a6 ("ARM: davinci: da8xx: add DA850 PRUSS support") from the arm-soc

[PATCH] [trivial] treewide: Fix typos in various drivers

2012-11-29 Thread Masanari Iida
Fix typos in printk within various drivers. Signed-off-by: Masanari Iida --- arch/arm/kernel/kprobes-test.c | 2 +- arch/arm/mach-netx/xc.c| 2 +- arch/blackfin/mach-bf609/Kconfig | 2 +- arch/blackfin/mm/sram-alloc.c | 2 +-

[PATCH v3 2/4] ARM: dts: Add disable-wp for sd card slot on smdk5250

2012-11-29 Thread Doug Anderson
The next change will remove the code from the dw_mmc-exynos that added the DW_MCI_QUIRK_NO_WRITE_PROTECT. Keep existing functionality of having no write protect pin on smdk5250 by adding the disable-wp property. Signed-off-by: Doug Anderson --- Changes in v3: - New for this version of the patch

[PATCH v3 4/4] mmc: dw_mmc: Handle wp-gpios from device tree

2012-11-29 Thread Doug Anderson
On some SoCs (like exynos5250) you need to use an external GPIO for write protect. Add support for wp-gpios to the core dw_mmc driver since it could be useful across multiple SoCs. With this change I am able to make use of the write protect for the external SD slot on exynos5250-snow.

[PATCH v3 3/4] mmc: dw_mmc: exynos: Remove code for wp-gpios

2012-11-29 Thread Doug Anderson
The exynos code claimed the write protect with devm_gpio_request() but never did anything with it. That meant that anyone using a write protect GPIO would effectively be write protected all the time. The handling for wp-gpios belongs in the main dw_mmc driver and has been moved there.

[PATCH v3 1/4] mmc: dw_mmc: Add "disable-wp" device tree property

2012-11-29 Thread Doug Anderson
The "disable-wp" property is used to specify that a given SD card slot doesn't have a concept of write protect. This eliminates the need for special case code for SD slots that should never be write protected (like a micro SD slot or a dev board). The dw_mmc driver is special in needing to

Re: [PATCH v2 1/2] mmc: dw_mmc: exynos: Stop claiming wp-gpio

2012-11-29 Thread Doug Anderson
Seungwon, On Wed, Nov 28, 2012 at 11:46 PM, Seungwon Jeon wrote: > Hi Doug, > > On Thursday, November 29, 2012, Doug Anderson wrote: >> Seungwon, >> >> Thanks for the review. See below for comments. If you'd like me to >> respin then please let me know. Otherwise I look forward to your ack.

[PATCH]realtek:r8169: Bugfix or workaround for missing extended GigaMAC registers settings

2012-11-29 Thread Wang YanQing
I get a board with 8168e-vl(10ec:8168 with RTL_GIGA_MAC_VER_34), everything looks well first, I can use ifconfig to set ip, netmask, etc. And the rx/tx statistics show by ifconfig looks good when I ping another host or ping it from another host. But it don't work, I can't get ICMP REPLAY from both

Re: [PATCH 10/14] perf tool: Centralize default columns init in perf_hpp__init

2012-11-29 Thread Namhyung Kim
Hi Jiri, On Thu, 29 Nov 2012 13:13:19 +0100, Jiri Olsa wrote: > On Thu, Nov 29, 2012 at 08:55:47PM +0900, Namhyung Kim wrote: >> On Wed, 28 Nov 2012 14:52:45 +0100, Jiri Olsa wrote: >> > Now when diff command is separated from other standard outputs, >> > we can use perf_hpp__init to initialize

Re: [PATCH V3 RFC 2/2] kvm: Handle yield_to failure return code for potential undercommit case

2012-11-29 Thread Raghavendra K T
On 11/29/2012 05:46 PM, Gleb Natapov wrote: On Wed, Nov 28, 2012 at 10:40:56AM +0530, Raghavendra K T wrote: On 11/28/2012 06:42 AM, Marcelo Tosatti wrote: Don't understand the reasoning behind why 3 is a good choice. Here is where I came from. (explaining from scratch for completeness,

Re: [PATCH 1/1] ARM: tegra: bus_notifier registers IOMMU devices(was: How to specify IOMMU'able devices in DT)

2012-11-29 Thread Mark Zhang
On 11/28/2012 09:48 PM, Hiroshi Doyu wrote: > Hiroshi Doyu wrote @ Mon, 24 Sep 2012 14:50:14 +0300 > (EEST): > ... > On Mon, 2012-09-24 at 12:04 +0300, Hiroshi Doyu wrote: >> diff --git a/drivers/base/platform.c b/drivers/base/platform.c >> index a1a7225..9eae3be 100644 >> ---

[PATCH] OMAPDSS: Add terminating entry for picodlp_i2c_id table

2012-11-29 Thread Axel Lin
The i2c_device_id table is supposed to be zero-terminated. Signed-off-by: Axel Lin --- drivers/video/omap2/displays/panel-picodlp.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/omap2/displays/panel-picodlp.c b/drivers/video/omap2/displays/panel-picodlp.c index

linux-next: manual merge of the kvm tree with the tip tree

2012-11-29 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm tree got a conflict in kernel/sched/core.c between commit 0a74bef8bed1 ("sched: Add an rq migration call-back to sched_class") from the tip tree and commit 582b336ec2c0 ("sched: add notifier for cross-cpu migrations") from the kvm tree. I fixed it up

[PATCH 2/2] mac802154: use kfree_skb() instead of dev_kfree_skb()

2012-11-29 Thread Alan Ott
kfree_skb() indicates failure, which is where this is being used. Signed-off-by: Alan Ott --- net/mac802154/tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mac802154/tx.c b/net/mac802154/tx.c index db63914..4e09d07 100644 --- a/net/mac802154/tx.c +++

[PATCH 1/2] mac802154: fix memory leaks

2012-11-29 Thread Alan Ott
kfree_skb() was not getting called in the case of some failures. This was pointed out by Eric Dumazet. Signed-off-by: Alan Ott --- net/mac802154/tx.c | 5 - net/mac802154/wpan.c | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/net/mac802154/tx.c

Re: [patch v2 6/6] cgroup: remove css_get_next

2012-11-29 Thread Kamezawa Hiroyuki
(2012/11/27 3:47), Michal Hocko wrote: > Now that we have generic and well ordered cgroup tree walkers there is > no need to keep css_get_next in the place. > > Signed-off-by: Michal Hocko Hm, then, the next think will be css_is_ancestor() etc.. Acked-by: KAMEZAWA Hiroyuki -- To unsubscribe

Re: Regression with initramfs and nfsroot (appears to be in the dcache)

2012-11-29 Thread Al Viro
On Thu, Nov 29, 2012 at 06:33:53PM -0800, Patrick McLean wrote: > Excellent, thanks. Is there any chance this will make it to 3.7? Also we > might want to cc stable@ on this as well since it is a regression in 3.6. Definitely. I've dropped that into vfs.git#for-linus and vfs.git#for-next and

Re: [patch v2 5/6] memcg: further simplify mem_cgroup_iter

2012-11-29 Thread Kamezawa Hiroyuki
(2012/11/27 3:47), Michal Hocko wrote: > mem_cgroup_iter basically does two things currently. It takes care of > the house keeping (reference counting, raclaim cookie) and it iterates > through a hierarchy tree (by using cgroup generic tree walk). > The code would be much more easier to follow if

Re: [patch v2 4/6] memcg: simplify mem_cgroup_iter

2012-11-29 Thread Kamezawa Hiroyuki
(2012/11/27 3:47), Michal Hocko wrote: > Current implementation of mem_cgroup_iter has to consider both css and > memcg to find out whether no group has been found (css==NULL - aka the > loop is completed) and that no memcg is associated with the found node > (!memcg - aka css_tryget failed

Re: [patch v2 3/6] memcg: rework mem_cgroup_iter to use cgroup iterators

2012-11-29 Thread Kamezawa Hiroyuki
(2012/11/27 3:47), Michal Hocko wrote: > mem_cgroup_iter curently relies on css->id when walking down a group > hierarchy tree. This is really awkward because the tree walk depends on > the groups creation ordering. The only guarantee is that a parent node > is visited before its children. >

Re: [RESEND PATCH] fs/super.c set_anon_super calling optimization

2012-11-29 Thread Al Viro
On Fri, Oct 26, 2012 at 11:14:41AM -0200, Carlos Maiolino wrote: > Hi, > > On Thu, Oct 25, 2012 at 05:08:19PM +0530, Abhijit Pawar wrote: > > Hi, > > set_anon_super is called by many filesystems. Some call directly and > > some call through the wrapper. Many of them in the wrapper's call to > >

Re: Bisected regression: iterate_fd() selinux change affects flash plugin

2012-11-29 Thread Al Viro
On Fri, Nov 30, 2012 at 03:40:34AM +, Al Viro wrote: > The bug is real, but Pavel's patch is all wrong. The problem is in the > argument; we should pass descriptor number, not descriptor + 1. And fixing > that (in iterator_fd() itself) makes all callbacks work as they ought to. > > PS:

Re: [BUG REPORT] [mm-hotplug, aio] aio ring_pages can't be offlined

2012-11-29 Thread Lin Feng
hi Andrew, On 11/30/2012 07:39 AM, Andrew Morton wrote: > Tricky. > > I expect the same problem would occur with pages which are under > O_DIRECT I/O. Obviously O_DIRECT pages won't be pinned for such long > periods, but the durations could still be lengthy (seconds). the offline retry timeout

Re: Bisected regression: iterate_fd() selinux change affects flash plugin

2012-11-29 Thread Al Viro
On Fri, Nov 16, 2012 at 02:58:46PM -0500, Eric Paris wrote: > On Mon, Nov 12, 2012 at 11:57 AM, Pavel Roskin wrote: > > Quoting Eric Paris : > > > >> OMG this +1 -1 stuff is nuts... > > Ping, Al. > > int iterate_fd(struct files_struct *files, unsigned n, > [snip] > while (!res && n <

[PATCH 2/2] Btrfs: refactor error handling to drop inode in btrfs_create()

2012-11-29 Thread Filipe Brandenburger
Refactor it by checking whether the inode has been created and needs to be dropped (drop_inode_on_err) and also if the err variable is set. That way the variable doesn't need to be set on each and every error handling block. Signed-off-by: Filipe Brandenburger --- fs/btrfs/inode.c | 27

[PATCH 1/2] Btrfs: fix permissions of empty files not affected by umask

2012-11-29 Thread Filipe Brandenburger
When a new file is created with btrfs_create(), the inode will initially be created with permissions 0666 and later on in btrfs_init_acl() it will be adapted to mask out the umask bits. The problem is that this change won't make it into the btrfs_inode unless there's another change to the inode

[PATCH 0/2] Btrfs: fix mode umasking on empty files

2012-11-29 Thread Filipe Brandenburger
Hi, This set of patches fix bug #50861: "Btrfs sometimes ignore umask and create world writable files" https://bugzilla.kernel.org/show_bug.cgi?id=50861 It turns out that btrfs_create() will create an inode with permissions 0666 and these will be changed to match the umask inside

Re: [BUG REPORT] [mm-hotplug, aio] aio ring_pages can't be offlined

2012-11-29 Thread Lin Feng
Hi Zach, Thanks for your advice. So agree, I will look into it to lead aio to use non-movable pages. Thanks, linfeng On 11/30/2012 08:04 AM, Zach Brown wrote: >> The best I can think of is to make changes in or around >> get_user_pages(), to steal the pages from userspace and replace them >>

linux-3.6.7-rt18 smoke test on ARM

2012-11-29 Thread Frank Rowand
3.6.7-rt18 builds and boots on some ARM boards (PandaBoard, Realview) for: - SMP, PREEMPT_RT_FULL - SMP, PREEMPT_NONE - UP, PREEMPT_RT_FULL - UP, PREEMPT_NONE A patch is required to resolve a BUG_ON() from preempt_schedule_irq(). The patch is available at

Re: Supermicro X9SRL-F - channel enumeration error & ACPI/firmware bug question

2012-11-29 Thread Bjorn Helgaas
[+cc Jeff, linux-ide, David, Joerg, iommu] On Thu, Nov 29, 2012 at 7:39 PM, Robert Hancock wrote: > On Thu, Nov 29, 2012 at 12:16 PM, Bjorn Helgaas wrote: >> On Thu, Nov 29, 2012 at 1:55 AM, Justin Piszcz >> wrote: >>> >>> >>> -Original Message- >>> From: Robert Hancock

Re: [Suggestion] drivers/tty: drivers/char/: for MAX_ASYNC_BUFFER_SIZE

2012-11-29 Thread Chen Gang
于 2012年11月30日 10:27, Chen Gang 写道: > 于 2012年11月29日 21:41, Alan Cox 写道: >> On Thu, 29 Nov 2012 13:07:28 +0800 >> Chen Gang wrote: >> >>> Hello Greg Kroah-Hartman: >>> >>> for MAX_ASYNC_BUFFER_SIZE: >>> it is defined as 4096; >>> but for the max buffer size which it processes, is 65535. >>>

RE: [PATCH v2 0/5] Add movablecore_map boot option

2012-11-29 Thread H. Peter Anvin
Disk I/O is still a big consumer of lowmem. "Luck, Tony" wrote: >> If any significant percentage of memory is in ZONE_MOVABLE then the >memory >> hotplug people will have to deal with all the lowmem/highmem problems >> that used to be faced by 32-bit x86 with PAE enabled. > >While these

Re: [ANNOUNCE] 3.0.53-rt77

2012-11-29 Thread Frank Rowand
On 11/27/12 18:44, Steven Rostedt wrote: > > Dear RT Folks, > > I'm pleased to announce the 3.0.53-rt77 stable release. 3.0.53-rt77 builds and boots on some ARM boards (PandaBoard, Realview) for: - SMP, PREEMPT_RT_FULL - SMP, PREEMPT_NONE - UP, PREEMPT_RT_FULL - UP, PREEMPT_NONE

Re: [PATCHSET cgroup/for-3.8] cpuset: decouple cpuset locking from cgroup core

2012-11-29 Thread Kamezawa Hiroyuki
(2012/11/29 6:34), Tejun Heo wrote: > Hello, guys. > > Depending on cgroup core locking - cgroup_mutex - is messy and makes > cgroup prone to locking dependency problems. The current code already > has lock dependency loop - memcg nests get_online_cpus() inside > cgroup_mutex. cpuset the other

Re: [PATCH v2 0/5] Add movablecore_map boot option

2012-11-29 Thread Yasuaki Ishimatsu
Hi Jiang, 2012/11/30 11:56, Jiang Liu wrote: Hi Mel, Thanks for your great comments! On 2012-11-29 19:00, Mel Gorman wrote: On Wed, Nov 28, 2012 at 01:38:47PM -0800, H. Peter Anvin wrote: On 11/28/2012 01:34 PM, Luck, Tony wrote: 2. use boot option This is our proposal. New boot

Re: [PATCH][GIT PULL] ftrace: Clear bits properly in reset_iter_read()

2012-11-29 Thread Steven Rostedt
On Fri, 2012-11-16 at 08:22 -0500, Steven Rostedt wrote: > Ingo, Ping? -- Steve > > Please pull the latest tip/perf/urgent tree, which can be found at: > > git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git > tip/perf/urgent > > Head SHA1:

RE: [PATCH V1 1/2] Xen acpi memory hotplug driver

2012-11-29 Thread Liu, Jinsong
Konrad Rzeszutek Wilk wrote: > On Wed, Nov 21, 2012 at 11:45:04AM +, Liu, Jinsong wrote: >>> From 630c65690c878255ce71e7c1172338ed08709273 Mon Sep 17 00:00:00 >>> 2001 >> From: Liu Jinsong >> Date: Tue, 20 Nov 2012 21:14:37 +0800 >> Subject: [PATCH 1/2] Xen acpi memory hotplug driver >> >>

Re: [PATCH 1/2] percpu-rwsem: use synchronize_sched_expedited

2012-11-29 Thread Mikulas Patocka
On Thu, 29 Nov 2012, Andrew Morton wrote: > On Tue, 27 Nov 2012 22:59:52 -0500 (EST) > Mikulas Patocka wrote: > > > percpu-rwsem: use synchronize_sched_expedited > > > > Use synchronize_sched_expedited() instead of synchronize_sched() > > to improve mount speed. > > > > This patch improves

Re: [PATCH v2 0/5] Add movablecore_map boot option

2012-11-29 Thread Jiang Liu
Hi Mel, Thanks for your great comments! On 2012-11-29 19:00, Mel Gorman wrote: > On Wed, Nov 28, 2012 at 01:38:47PM -0800, H. Peter Anvin wrote: >> On 11/28/2012 01:34 PM, Luck, Tony wrote: 2. use boot option This is our proposal. New boot option can specify memory range

RE: [PATCH v2 0/5] Add movablecore_map boot option

2012-11-29 Thread Luck, Tony
> If any significant percentage of memory is in ZONE_MOVABLE then the memory > hotplug people will have to deal with all the lowmem/highmem problems > that used to be faced by 32-bit x86 with PAE enabled. While these problems may still exist on large systems - I think it becomes harder to

Re: [Patch v4 08/12] memory-hotplug: remove memmap of sparse-vmemmap

2012-11-29 Thread Yasuaki Ishimatsu
Hi Jianguo, 2012/11/30 11:47, Jianguo Wu wrote: Hi Congyang, Thanks for your review and comments. On 2012/11/30 9:45, Wen Congyang wrote: At 11/28/2012 05:40 PM, Jianguo Wu Wrote: Hi Congyang, I think vmemmap's pgtable pages should be freed after all entries are cleared, I have a patch

Re: [ 02/38] PCI/PM: Fix deadlock when unbinding device if parent in D3cold

2012-11-29 Thread Huang Ying
On Thu, 2012-11-29 at 18:01 -0800, Greg Kroah-Hartman wrote: > On Fri, Nov 23, 2012 at 03:47:42PM +0800, Huang Ying wrote: > > On Fri, 2012-11-23 at 11:09 +0800, Huang Ying wrote: > > > On Fri, 2012-11-23 at 02:35 +, Ben Hutchings wrote: > > > > On Wed, 2012-11-21 at 16:39 -0800, Greg

Re: [Suggestion] drivers/tty: drivers/char/: for MAX_ASYNC_BUFFER_SIZE

2012-11-29 Thread Chen Gang
于 2012年11月30日 02:32, Greg KH 写道: > On Thu, Nov 29, 2012 at 01:57:59PM +0800, Chen Gang wrote: >>> And, I really don't understand here, why do you want to change this? >>> What is it going to change? And why? >>> >> >> Why: >> for the context MGSLPC_INFO *info in

Re: [PATCH v2] Do a proper locking for mmap and block size change

2012-11-29 Thread Dave Chinner
On Thu, Nov 29, 2012 at 02:16:50PM -0800, Linus Torvalds wrote: > On Thu, Nov 29, 2012 at 1:29 PM, Chris Mason wrote: > > > > Just reading the new blkdev_get_blocks, it looks like we're mixing > > shifts. In direct-io.c map_bh->b_size is how much we'd like to map, and > > it has no relation at

Re: [Patch v4 08/12] memory-hotplug: remove memmap of sparse-vmemmap

2012-11-29 Thread Jianguo Wu
Hi Congyang, Thanks for your review and comments. On 2012/11/30 9:45, Wen Congyang wrote: > At 11/28/2012 05:40 PM, Jianguo Wu Wrote: >> Hi Congyang, >> >> I think vmemmap's pgtable pages should be freed after all entries are >> cleared, I have a patch to do this. >> The code logic is the same

Re: Supermicro X9SRL-F - channel enumeration error & ACPI/firmware bug question

2012-11-29 Thread Robert Hancock
On Thu, Nov 29, 2012 at 12:16 PM, Bjorn Helgaas wrote: > On Thu, Nov 29, 2012 at 1:55 AM, Justin Piszcz > wrote: >> >> >> -Original Message- >> From: Robert Hancock [mailto:hancock...@gmail.com] >> Sent: Wednesday, November 28, 2012 7:55 PM >> To: Justin Piszcz >> Cc: Bjorn Helgaas;

Re: Regression with initramfs and nfsroot (appears to be in the dcache)

2012-11-29 Thread Patrick McLean
On 29/11/12 06:00 PM, Al Viro wrote: > On Thu, Nov 29, 2012 at 05:54:02PM -0800, Patrick McLean wrote: >>> Very interesting. Do you have anything mounted on the corresponding >>> directories on server? The picture looks like you are getting empty >>> fhandles in readdir+ respons for exactly

Re: [PATCH for 3.2.34] memcg: do not trigger OOM from add_to_page_cache_locked

2012-11-29 Thread azurIt
>Here we go with the patch for 3.2.34. Could you test with this one, >please? Michal, unfortunately i had to boot to another kernel because the one with this patch keeps killing my MySQL server :( it was, probably, doing it on OOM in any cgroup - looks like OOM was not choosing processes only

Re: [PATCH 1/2] zsmalloc: add function to query object size

2012-11-29 Thread Nitin Gupta
On Thu, Nov 29, 2012 at 5:58 PM, Minchan Kim wrote: > On Thu, Nov 29, 2012 at 04:53:15PM -0800, Nitin Gupta wrote: >> On Thu, Nov 29, 2012 at 4:03 PM, Minchan Kim wrote: >> > On Thu, Nov 29, 2012 at 01:09:56AM -0800, Nitin Gupta wrote: >> >> On 11/28/2012 11:45 PM, Minchan Kim wrote: >> >> >On

Re: [PATCH v2] Do a proper locking for mmap and block size change

2012-11-29 Thread Chris Mason
On Thu, Nov 29, 2012 at 07:13:02PM -0700, Linus Torvalds wrote: > On Thu, Nov 29, 2012 at 5:16 PM, Chris Mason wrote: > > > > I searched through filemap.c for the magic i_size check that would let > > us get away with ignoring i_blkbits in get_blocks, but its just not > > there. The whole

Re: [Suggestion] drivers/tty: drivers/char/: for MAX_ASYNC_BUFFER_SIZE

2012-11-29 Thread Chen Gang
于 2012年11月29日 21:41, Alan Cox 写道: > On Thu, 29 Nov 2012 13:07:28 +0800 > Chen Gang wrote: > >> Hello Greg Kroah-Hartman: >> >> for MAX_ASYNC_BUFFER_SIZE: >> it is defined as 4096; >> but for the max buffer size which it processes, is 65535. >> so suggest to #define MAX_ASYNC_BUFFER_SIZE

Re: [PATCH v3] zram: fix invalid memory references during disk write

2012-11-29 Thread Nitin Gupta
On Thu, Nov 29, 2012 at 6:13 PM, Greg KH wrote: > On Fri, Nov 30, 2012 at 09:36:09AM +0900, Minchan Kim wrote: >> Hi Greg, >> >> I would like to tidy zram_bvec_write up but it needs more churn >> than needed to fix this bug and makes review hard. So I want you to pick up >> this patch asap

Re: [PATCH 036/270] kbuild: Do not package /boot and /lib in make tar-pkg

2012-11-29 Thread Ben Hutchings
On Thu, 2012-11-29 at 17:38 -0800, Greg Kroah-Hartman wrote: > On Tue, Nov 27, 2012 at 02:26:27AM +, Ben Hutchings wrote: > > On Mon, 2012-11-26 at 14:55 -0200, Herton Ronaldo Krzesinski wrote: > > > 3.5.7u1 -stable review patch. If anyone has any objections, please let > > > me know. > > >

Re: [PATCH v3] zram: fix invalid memory references during disk write

2012-11-29 Thread Greg KH
On Fri, Nov 30, 2012 at 09:36:09AM +0900, Minchan Kim wrote: > Hi Greg, > > I would like to tidy zram_bvec_write up but it needs more churn > than needed to fix this bug and makes review hard. So I want you to pick up > this patch asap because it's a candidate of stable. Ok, I have way too many

Re: [PATCH v2] Do a proper locking for mmap and block size change

2012-11-29 Thread Linus Torvalds
On Thu, Nov 29, 2012 at 5:16 PM, Chris Mason wrote: > > I searched through filemap.c for the magic i_size check that would let > us get away with ignoring i_blkbits in get_blocks, but its just not > there. The whole fallback-to-buffered scheme seems to rely on > get_blocks checking for i_size.

  1   2   3   4   5   6   7   8   9   10   >