[PATCH] iommu/amd: Workaround wrong IOAPIC devid in IVRS.

2012-10-10 Thread andrew
From: Andrew Oakley The IOAPIC always has the same device id but is sometimes reported in the IVRS table with a different id. This patch allows interrupt remapping to work on devices with this bug. --- drivers/iommu/amd_iommu_init.c |9 + 1 files changed, 9 insertions(+), 0

kernel 2.4, iproute2 and routing rules that refuse to match

2001-01-18 Thread Andrew
tc advanced routing mailing list archives by looking through q4 of 2000 for the following subject lines: (http://mailman.ds9a.nl/pipermail/lartc/2000q4/author.html) [LARTC] A complicated routing scenario (for me at least) [LARTC] Backup Route Andrew [LARTC] A bug in ip? Andrew [LARTC] simple routi

Re: Hang in 2.6.23-rc5

2007-09-02 Thread Andrew
Confirmed, same scenario here. Here's my config (x86_64), hope it helps. I will bring up a netconsole and try and catch it the next time it happens. [EMAIL PROTECTED] ~ $ cat /usr/src/linux/.config # # Automatically generated make config: don't edit # Linux kernel version: 2.6.23-rc5 # Sun Sep 2

Re: [patch] natsemi: fix oops, link back netdevice from private-struct

2007-10-24 Thread Andrew
On Wed, October 24, 2007 12:58, Ingo Molnar wrote: > > the NULL dereference is here: > > (gdb) list *0x804a9504 > 0x804a9504 is in natsemi_poll (drivers/net/natsemi.c:717). > 712 return count; > 713 } > 714 > 715 static inline void __iomem *ns_ioaddr(struct net_d

2.6.21-rc1: framebuffer/console boot failure

2007-02-23 Thread Andrew
Hi, 2.6.21-rc1 fails to boot on my machine. As soon as I switch from grub the screen turns and remains black with no sign of Tux or any output. I've run a git-bisect between 2.6.20 (which works fine) and 2.6.21-rc1 and found the first bad commit to be #59b8175c771040afcd4ad67022b0cc80c216b866 whi

Re: 2.6.21-rc1: framebuffer/console boot failure

2007-02-23 Thread Andrew
I have just discovered 2.6.21-rc1 boots with pci=noacpi ... - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [4/6] 2.6.21-rc2: known regressions

2007-03-09 Thread Andrew
thanks, -Len > Yep. You can knock this one off the regression list :) Thanks, Andrew - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [4/6] 2.6.21-rc2: known regressions

2007-03-05 Thread Andrew
On Mon, March 5, 2007 10:35 am, Antonino A. Daplas wrote: > > This is not a framebuffer nor console problem. > > > I think Andrew Nelless confirmed that the cause is from the above > commit. How to fix it, I don't know. Perhaps the acpi_skip_timer_override > bo

Re: [RFC][PATCH 2/2] staging: ion: Add files for parsing the devicetree (WIP)

2015-10-06 Thread Andrew
lper utils? I had to call it liblinuxion, since libion is something already present in repositories. -- Regards, Andrew RC Module -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at ht

Re: [RFC][PATCH 1/2] WIP: Devicetree bindings for Ion

2015-10-07 Thread Andrew
properties. Signed-off-by: Laura Abbott Signed-off-by: Andrew Andrianov --- drivers/staging/android/ion/devicetree.txt | 53 ++ I have no issue with this going in here, but I do have lots of issues with this binding. 1 file changed, 53 insertions(+) create mode

Re: [RFC][PATCH 1/2] WIP: Devicetree bindings for Ion

2015-10-07 Thread Andrew
On 2015-10-07 21:36, Rob Herring wrote: On Wed, Oct 7, 2015 at 5:36 AM, Andrew wrote: On 2015-10-07 02:01, Laura Abbott wrote: On 10/6/15 3:35 PM, Rob Herring wrote: On Tue, Oct 6, 2015 at 3:47 PM, Laura Abbott wrote: From: Laura Abbott This adds a base set of devicetree bindings

Re: [RFC][PATCH 1/2] WIP: Devicetree bindings for Ion

2015-10-13 Thread Andrew
3.14#n53 [2] https://www.codeaurora.org/cgit/quic/la/kernel/msm-3.14/tree/drivers/staging/android/ion/msm/msm_ion.c?h=msm-3.14#n398 -Mitch -- Regards, Andrew -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.o

Re: [RFC][PATCH 1/2] WIP: Devicetree bindings for Ion

2015-10-22 Thread andrew
20 октября 2015 г., 19:34, "Mitchel Humpherys" написал: > On Tue, Oct 13 2015 at 11:14:23 AM, Andrew wrote: > >> On 2015-10-12 21:39, Mitchel Humpherys wrote: >>> On Tue, Oct 06 2015 at 05:35:41 PM, Rob Herring >>> wrote: >>>> On T

Reply

2018-01-23 Thread Andrew
Dear Sir, I am Andrew Wetkas.Personal Assistant to a former Governor in Nigeria. We need your assistance to invest a huge sum in your country. I will give you further details once I hear from you. Regards Andrew

Re: [PATCH 1/2] staging: ion: Add ion-physmem driver

2015-04-07 Thread Andrew
Paul Bolle писал 07.04.2015 11:35: This patch adds a mismatch between the Kconfig symbol (a bool) and the code (which suggests it could be built modular too). On Mon, 2015-04-06 at 18:58 +0300, Andrew Andrianov wrote: +config ION_PHYSMEM + bool "Generic PhysMem ION d

Re: Fwd: Re: [PATCH 2/2] ARM: mvebu: dts: Add dts file for DLink DNS-327L

2015-04-20 Thread Andrew
Gregory CLEMENT писал 20.04.2015 18:04: Hi Andrew, On 13/04/2015 16:32, Andrew wrote: Gregory CLEMENT писал 13.04.2015 17:16: Hi Andrew(s), On 12/04/2015 21:47, Andrew Lunn wrote: On Sun, Apr 12, 2015 at 06:41:31PM +0300, Andrew wrote: Andrew Lunn ?? 12.04.2015 17:58: Okay, got it

Re: [PATCH 2/2] ARM: mvebu: dts: Add dts file for DLink DNS-327L

2015-04-11 Thread Andrew
Andrew Lunn писал 12.04.2015 00:40: On Sat, Apr 11, 2015 at 11:29:20PM +0300, Andrew Andrianov wrote: Signed-off-by: Andrew Andrianov --- arch/arm/boot/dts/Makefile |1 + arch/arm/boot/dts/armada-370-dlink-dns327l.dts | 309 2 files changed

Fwd: Re: [PATCH 2/2] ARM: mvebu: dts: Add dts file for DLink DNS-327L

2015-04-12 Thread Andrew
Sebastian Hesselbarth писал 12.04.2015 14:20: On 11.04.2015 22:29, Andrew Andrianov wrote: Signed-off-by: Andrew Andrianov Andrew, thanks for providing this dts, please _always_ add a commit log describing what the patch is about. The introduction in the cover letter is nice, but it will

Re: Fwd: Re: [PATCH 2/2] ARM: mvebu: dts: Add dts file for DLink DNS-327L

2015-04-12 Thread Andrew
Sebastian Hesselbarth писал 12.04.2015 15:16: On 12.04.2015 13:43, Andrew wrote: Sebastian Hesselbarth писал 12.04.2015 14:20: On 11.04.2015 22:29, Andrew Andrianov wrote: Signed-off-by: Andrew Andrianov [...] + * CONFIG_ARM_MVEBU_V7_CPUIDLE=y causes hard freezes every 1-8 hours I don&#

Re: Fwd: Re: [PATCH 2/2] ARM: mvebu: dts: Add dts file for DLink DNS-327L

2015-04-12 Thread Andrew
Andrew Lunn писал 12.04.2015 17:58: Okay, got it. I'll file a bug about this issue to the the bugzilla. However something tells me it might not be cpuidle, but D-link. This one's sounds nasty and it has been around since 3.16.x. How could it go unnoticed? Unfortunately I have no ot

Re: Fwd: Re: [PATCH 2/2] ARM: mvebu: dts: Add dts file for DLink DNS-327L

2015-04-13 Thread Andrew
Gregory CLEMENT писал 13.04.2015 17:16: Hi Andrew(s), On 12/04/2015 21:47, Andrew Lunn wrote: On Sun, Apr 12, 2015 at 06:41:31PM +0300, Andrew wrote: Andrew Lunn ?? 12.04.2015 17:58: Okay, got it. I'll file a bug about this issue to the the bugzilla. However something tells

Re: [PATCH 1/2] pinctrl: mvebu: Fix mapping of pin 63 (gpo -> gpio)

2015-05-29 Thread Andrew
Thomas Petazzoni писал 29.05.2015 12:10: Dear Andrew Andrianov, On Sat, 11 Apr 2015 23:29:19 +0300, Andrew Andrianov wrote: Signed-off-by: Andrew Andrianov --- drivers/pinctrl/mvebu/pinctrl-armada-370.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl

Re: [PATCH v4 1/2] staging: ion: Add generic ion-physmem driver

2015-06-13 Thread Andrew
Greg Kroah-Hartman писал 13.06.2015 03:16: On Tue, Jun 09, 2015 at 05:58:24PM +0300, Andrew Andrianov wrote: This patch adds a generic ion driver that allows ion heaps to be added via devicetree. It provides a simple and generic way to feed physical memory regions to ion without writing a

Re: [PATCH 1/4] ARM: rcm-k1879xb1: Add support for K1879XB1 SoC

2015-06-23 Thread Andrew
Russell King - ARM Linux писал 23.06.2015 19:11: On Tue, Jun 23, 2015 at 06:50:01PM +0300, Andrew Andrianov wrote: +config ARCH_RCM_K1879XB1 + bool "RC Module K1879XB1YA" + depends on MMU + select CPU_V6 +select ARM_AMBA + select ARM_VIC Obviously s

Re: Fwd: Re: [PATCH 2/2] ARM: mvebu: dts: Add dts file for DLink DNS-327L

2015-05-06 Thread Andrew
Gregory CLEMENT писал 06.05.2015 15:13: Hi Andrew, Sorry for the long delay with testing, but here come the results. I've rebased everything to 4.1-rc1 1. WFI + DeepIdle => freeze after approx: * 1 hours and 30 minutes, first test * 3 hours and 40 minutes, second test 2.

Re: [PATCH v4 1/1] ARM: mvebu: dts: Add dts file for DLink DNS-327L

2015-05-20 Thread Andrew
Sebastian Hesselbarth писал 20.05.2015 12:05: On 19.05.2015 23:10, Andrew Andrianov wrote: DNS-327L is a 2-bay NAS with the following specs: [...] Signed-off-by: Andrew Andrianov --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/armada-370-dlink-dns327l.dts

Re: Fwd: Re: [PATCH 2/2] ARM: mvebu: dts: Add dts file for DLink DNS-327L

2015-05-03 Thread Andrew
Gregory CLEMENT писал 20.04.2015 18:17: On 20/04/2015 17:15, Andrew wrote: Gregory CLEMENT писал 20.04.2015 18:04: Hi Andrew, On 13/04/2015 16:32, Andrew wrote: Gregory CLEMENT писал 13.04.2015 17:16: Hi Andrew(s), On 12/04/2015 21:47, Andrew Lunn wrote: On Sun, Apr 12, 2015 at 06:41:31PM

Re: Fwd: Re: [PATCH 2/2] ARM: mvebu: dts: Add dts file for DLink DNS-327L

2015-05-03 Thread Andrew
Sebastian Hesselbarth писал 03.05.2015 13:58: On 03.05.2015 12:18, Andrew wrote: [...] Sorry for the long delay with testing, but here come the results. I've rebased everything to 4.1-rc1 1. WFI + DeepIdle => freeze after approx: * 1 hours and 30 minutes, first test * 3 hour

Re: [PATCH v3 0/1] ARM: mvebu: dts: Add dts file for DLink DNS-327L

2015-05-03 Thread Andrew
Andrew Lunn писал 03.05.2015 23:50: Hi Andrew DNS-327L is a 2-bay NAS with the following specs: - 512MiB RAM - 128MiB NAND Flash - 1 GbE interface (Marvell PHY) ... /* Set RGMII voltage to 1.8v, according to public docs. Nice! */ mw.l 0xd00184e0 0xa8a; /* Some weird magic

Re: [PATCH v5.1 1/2] staging: ion: Add generic ion-physmem driver

2015-06-30 Thread Andrew
Thanks for the detailed review Laura Abbott писал 30.06.2015 20:56: On 06/30/2015 08:34 AM, Andrew Andrianov wrote: if (!idev) + return -ENOMEM; + } Yeah this is a bit messy as your comments note. Since there can only be one Ion device in the system, it

Re: [PATCH v2 5/5] cpuidle: ARM: Add cpuidle driver for K1879XB1YA

2015-06-30 Thread Andrew
Arnd Bergmann писал 01.07.2015 00:09: On Tuesday 30 June 2015 18:15:07 Andrew Andrianov wrote: +static struct platform_driver rcm_cpuidle_driver = { + .driver = { + .name = "cpuidle-rcm-k1879xb1", + }, +}; + Who creates this device? Arnd Sorr

Re: [PATCH v5.1 2/2] staging: ion: Add ion-physmem documentation

2015-06-30 Thread Andrew
Laura Abbott писал 30.06.2015 20:54: (adding devicetree mailing list since I didn't see it cc-ed) Please also remember to cc the staging list since Ion is still a staging framework. On 06/30/2015 08:34 AM, Andrew Andrianov wrote: Signed-off-by: Andrew Andrianov --- Documentation/devic

Re: [PATCH 1/4] ARM: rcm-k1879xb1: Add support for K1879XB1 SoC

2015-06-26 Thread Andrew
these fixups. diff --git a/arch/arm/mach-rcm-k1879xb1/cpuidle.c b/arch/arm/mach-rcm-k1879xb1/cpuidle.c new file mode 100644 index 000..7c621b6 --- /dev/null +++ b/arch/arm/mach-rcm-k1879xb1/cpuidle.c This should be a separate patch and located in drivers/cpuidle/ Got it, thanks. -- Re

Re: linux-next: Tree for Nov 26 (staging/fwserial)

2012-11-26 Thread Andrew Morton
On Mon, 26 Nov 2012 12:56:07 -0800 Randy Dunlap wrote: > On 11/26/2012 06:17 AM, Stephen Rothwell wrote: > > > Hi all, > > > > Changes since 20121115: > > > > > on i386: > > drivers/staging/fwserial/dma_fifo.c: In function 'dma_fifo_in': > drivers/staging/fwserial/dma_fifo.c:174:2: error: i

Re: [patch 7/7] fs, notify: Add procfs fdinfo helper v6

2012-11-26 Thread Andrew Morton
On Wed, 14 Nov 2012 19:19:44 +0400 Cyrill Gorcunov wrote: > This allow us to print out fsnotify details such as > watchee inode, device, mask and optionally a file handle. This helps the compiler quite a lot: --- a/fs/notify/fdinfo.c~fs-notify-add-procfs-fdinfo-helper-v7-fix +++ a/fs/notify/fdi

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

2012-11-27 Thread Andrew Jones
On Tue, Nov 27, 2012 at 03:57:25PM +0530, Raghavendra K T wrote: > On 11/26/2012 07:13 PM, Andrew Jones wrote: > >On Mon, Nov 26, 2012 at 05:38:04PM +0530, Raghavendra K T wrote: > >>From: Raghavendra K T > >> > >>yield_to returns -ESRCH, When source and target

Re: [PATCH V3 RFC 1/2] sched: Bail out of yield_to when source and target runqueue has one task

2012-11-27 Thread Andrew Theurer
On Tue, 2012-11-27 at 16:00 +0530, Raghavendra K T wrote: > On 11/26/2012 07:05 PM, Andrew Jones wrote: > > On Mon, Nov 26, 2012 at 05:37:54PM +0530, Raghavendra K T wrote: > >> From: Peter Zijlstra > >> > >> In case of undercomitted scenarios, especially in la

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

2012-11-27 Thread Andrew Morton
On Tue, 27 Nov 2012 18:00:10 +0800 Wen Congyang wrote: > The patch-set was divided from following thread's patch-set. > https://lkml.org/lkml/2012/9/5/201 > > The last version of this patchset: > https://lkml.org/lkml/2012/11/1/93 As we're now at -rc7 I'd prefer to take a look at all of

Re: [PATCH v6 0/6] solve deadlock caused by memory allocation with I/O

2012-11-27 Thread Andrew Morton
demonstrate > how to use the introduced mechanism to fix the deadlock problem. > > Andrew, could you queue these patches into your tree since V6 fixes all > your concerns and looks no one objects these patches? Yes, this patchset looks ready to run with. But as we're at -rc7 I&#

Re: [PATCH RESEND] rtc: Add NXP PCF8523 support

2012-11-27 Thread Andrew Morton
On Fri, 23 Nov 2012 16:17:37 +0100 Thierry Reding wrote: > This commit adds an RTC driver for PCF8523 chips by NXP Semiconductors. > No support is currently provided for the alarm and interrupt functions. > Only the time and date functionality is implemented. > > ... > > +static int pcf8523_rtc_

Re: [PATCH] mm, soft offline: split thp at the beginning of soft_offline_page()

2012-11-27 Thread Andrew Morton
On Tue, 27 Nov 2012 16:05:31 -0500 Naoya Horiguchi wrote: > When we try to soft-offline a thp tail page, put_page() is called on the > tail page unthinkingly and VM_BUG_ON is triggered in put_compound_page(). > This patch splits thp before going into the main body of soft-offlining. > > The inte

Re: [Patch v3 3/7] rtc: DA9055 RTC driver

2012-11-27 Thread Andrew Morton
On Fri, 23 Nov 2012 15:41:03 +0530 Ashish Jangam wrote: > On Tue, 2012-10-23 at 15:33 +0530, Ashish Jangam wrote: > > Does this patch looks good? > > On Thu, 2012-10-11 at 16:10 +0530, Ashish Jangam wrote: > > > This is the RTC patch for the DA9055 PMIC. This patch has got dependency > > > on >

Re: [patch -mm 4/4] docs: Add documentation about /proc//fdinfo/ output

2012-11-27 Thread Andrew Morton
On Fri, 23 Nov 2012 01:15:26 +0400 Cyrill Gorcunov wrote: > Documentation/filesystems/proc.txt | 81 > + Looks good to me. Here's a small tune-up: --- a/Documentation/filesystems/proc.txt~docs-add-documentation-about-proc-pid-fdinfo-fd-output-fix +++ a/D

Re: [PATCH 1/2 v2] wait: add wait_event_lock_irq() interface

2012-11-27 Thread Andrew Morton
On Thu, 22 Nov 2012 09:18:34 +0100 Lukas Czerner wrote: > New wait_event{_interruptible}_lock_irq{_cmd} macros added. This commit > moves the private wait_event_lock_irq() macro from MD to regular wait > includes, introduces new macro wait_event_lock_irq_cmd() instead of using > the old method wi

Re: [PATCH] mm: fix balloon_page_movable() page->flags check

2012-11-27 Thread Andrew Morton
On Tue, 27 Nov 2012 21:31:10 -0200 Rafael Aquini wrote: > This patch fixes the following crash by fixing and enhancing the way > page->flags are tested to identify a ballooned page. > > ---8<--- > BUG: unable to handle kernel NULL pointer dereference at 0194 > IP: [] isolate_migrate

Re: [PATCH] mm: fix balloon_page_movable() page->flags check

2012-11-27 Thread Andrew Morton
On Tue, 27 Nov 2012 22:34:10 -0200 Rafael Aquini wrote: > Do you want me to resubmit this patch with the changes you suggested? oh, I think I can reach that far. How's this look? From: Andrew Morton Subject: mm-introduce-a-common-interface-for-balloon-pages-mobilit

Re: kswapd craziness in 3.7

2012-11-28 Thread Andrew Morton
On Wed, 28 Nov 2012 10:13:59 + Mel Gorman wrote: > Based on the reports I've seen I expect the following to work for 3.7 > > Keep > 96710098 mm: revert "mm: vmscan: scale number of pages reclaimed by > reclaim/compaction based on failures" > ef6c5be6 fix incorrect NR_FREE_PAGES accounti

Re: [RFC] Add mempressure cgroup

2012-11-28 Thread Andrew Morton
On Wed, 28 Nov 2012 02:29:08 -0800 Anton Vorontsov wrote: > The main characteristics are the same to what I've tried to add to vmevent > API: > > Internally, it uses Mel Gorman's idea of scanned/reclaimed ratio for > pressure index calculation. But we don't expose the index to the > userla

Re: [PATCH v2] rtc: Add NXP PCF8523 support

2012-11-28 Thread Andrew Morton
On Wed, 28 Nov 2012 20:21:26 +0100 Thierry Reding wrote: > + err = i2c_transfer(client->adapter, &msg, 1); > + if (err < 0) { > + /* > + * If the time cannot be set, restart the RTC anyway. Note > + * that errors are ignored if the RTC cannot be start

Re: [PATCH 0/8] aoe: miscellaneous fixes follow-up recent patch submissions

2012-11-28 Thread Andrew Morton
On Wed, 21 Nov 2012 19:52:41 -0500 Ed Cashin wrote: > This patch series applies to today's linux-next/akpm, commit > d3faae60d84f586ff8937b77c8476bca1b5f8ec6. > > Ed L. Cashin (8): > aoe: copy fallback timing information on destination failover > aoe: remove vestigial request queue allocatio

Re: [RFT PATCH v2 4/5] mm: provide more accurate estimation of pages occupied by memmap

2012-11-28 Thread Andrew Morton
On Wed, 21 Nov 2012 23:09:46 +0800 Jiang Liu wrote: > Subject: Re: [RFT PATCH v2 4/5] mm: provide more accurate estimation of pages > occupied by memmap How are people to test this? "does it boot"? > If SPARSEMEM is enabled, it won't build page structures for > non-existing pages (holes) with

Re: [PATCH, resend] kfifo: initialize fifo accordingly to C99 standard

2012-11-28 Thread Andrew Morton
On Wed, 21 Nov 2012 16:31:11 +0200 Andy Shevchenko wrote: > When build a kernel with "make W=1" we will get a warning about missing > initializer. It comes from kfifo usage style. The DEFINE_KFIFO macro doesn't > initialize the buf[] field of the fifo structure. So, using C99 style helps in > suc

Re: kswapd craziness in 3.7

2012-11-28 Thread Andrew Morton
On Wed, 28 Nov 2012 23:54:12 + Mel Gorman wrote: > On Wed, Nov 28, 2012 at 02:52:15PM -0800, Andrew Morton wrote: > > On Wed, 28 Nov 2012 10:13:59 + > > Mel Gorman wrote: > > > > > Based on the reports I've seen I expect the following to work for 3.7

Re: [PATCH, resend] kfifo: initialize fifo accordingly to C99 standard

2012-11-28 Thread Andrew Morton
On Wed, 21 Nov 2012 16:31:11 +0200 Andy Shevchenko wrote: > When build a kernel with "make W=1" we will get a warning about missing > initializer. It comes from kfifo usage style. The DEFINE_KFIFO macro doesn't > initialize the buf[] field of the fifo structure. So, using C99 style helps in > suc

Re: [PATCH V3 RFC 1/2] sched: Bail out of yield_to when source and target runqueue has one task

2012-11-28 Thread Andrew Theurer
On Wed, 2012-11-28 at 14:26 -0800, Chegu Vinod wrote: > On 11/27/2012 6:23 AM, Chegu Vinod wrote: > > > On 11/27/2012 2:30 AM, Raghavendra K T wrote: > > > On 11/26/2012 07:05 PM, Andrew Jones wrote: > > > > On Mon, Nov 26, 2012 at 05:37:54PM +05

Re: [PATCH V2 00/23] printk: refactoring

2012-11-29 Thread Andrew Morton
On Thu, 29 Nov 2012 14:08:15 -0800 Joe Perches wrote: > On Mon, 2012-11-12 at 15:26 -0800, Andrew Morton wrote: > > On Mon, 12 Nov 2012 14:54:10 -0800 > > Joe Perches wrote: > > > > > On Fri, 2012-11-02 at 06:49 -0700, Joe Perches wrote: > > > > On W

Re: [PATCH] tmpfs: support SEEK_DATA and SEEK_HOLE (reprise)

2012-11-29 Thread Andrew Morton
y well established convention that the lseek seek mode is called "whence". The below gets most of it. Too anal? From: Andrew Morton Subject: lseek: the "whence" argument is called "whence" But the kernel decided to call it "origin" instead. Fix

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

2012-11-29 Thread Andrew Morton
On Thu, 29 Nov 2012 14:54:58 +0800 Lin Feng wrote: > Hi all, > > We encounter a "Resource temporarily unavailable" fail while trying > to offline a memory section in a movable zone. We found that there are > some pages can't be migrated. The offline operation fails in function > migrate_page_m

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

2012-11-29 Thread Andrew Morton
ented behaviour of synchronize_sched(), it doesn't try to pair synchronize_sched() with barrier. Signed-off-by: Oleg Nesterov Reviewed-by: Paul E. McKenney Cc: Linus Torvalds Cc: Mikulas Patocka Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Srikar Dronamraju Cc: Ananth N Mavinakayanahalli

Re: [PATCH 2/2] rtc-tps65910: enable RTC power domain on initialization

2012-11-29 Thread Andrew Morton
On Thu, 29 Nov 2012 23:11:37 + "Kim, Milo" wrote: > Hi Venu > > > > Enabling RTC HW block depends on the default value of TPS65910 > > register. > > > In some mode, RTC block is disabled by default.(eg. AM3517 > > Craneboard) > > > In this case, RTC_PWDN(RTC power down) bit should be clea

Re: [PATCH] tmpfs: support SEEK_DATA and SEEK_HOLE (reprise)

2012-11-29 Thread Andrew Morton
On Thu, 29 Nov 2012 15:29:15 -0800 (PST) Hugh Dickins wrote: > On Thu, 29 Nov 2012, Andrew Morton wrote: > > On Wed, 28 Nov 2012 17:22:03 -0800 (PST) > > Hugh Dickins wrote: > > > > > +/* > > > + * llseek SEEK_DATA or SEEK_HOLE through the radix

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 pin

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: > >

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

2012-11-30 Thread Andrew Morton
On Fri, 30 Nov 2012 16:13:16 +0900 Kamezawa Hiroyuki wrote: > > What about futexes? > > > > IIUC, futex's key is now a pair of (mm,address) or (inode, pgoff). > Then, get_user_page() in futex.c will release the page by put_page(). > 'struct page' is just touched by get_futex_key() to obtain pag

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

2012-11-30 Thread Andrew Morton
On Fri, 30 Nov 2012 18:29:30 +0800 Lin Feng wrote: > > add a new library function which callers can use before (or after?) > > calling get_user_pages[_fast](). > Sorry, I'm not quite understand what "library function" function means.. > Does it means a function aids get_user_pages() or totally wr

Re: [PATCH 2/2] relay: move FIX_SIZE macro into relay.c

2013-03-18 Thread Andrew Morton
On Mon, 18 Mar 2013 10:51:54 +0800 "zhangwei(Jovi)" wrote: > +/* Needs a _much_ better name... */ > +#define FIX_SIZE(x) x) - 1) & PAGE_MASK) + PAGE_SIZE) > + Gad. That's the same as PAGE_ALIGN(), is it not? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: [RFC PATCH] seq_file: Use seq_puts when seq_printf has only a format with no args

2013-03-18 Thread Andrew Morton
On Sat, 16 Mar 2013 17:54:47 + Al Viro wrote: > On Sat, Mar 16, 2013 at 06:50:44AM -0700, Joe Perches wrote: > > Instead of converting the 800 or so uses of seq_printf with > > a constant format (without a % substitution) to seq_puts, > > maybe there's another way to slightly speed up these o

Re: [PATCH 4/4] selftests: Add basic posix timers selftests

2013-03-18 Thread Andrew Morton
On Fri, 15 Mar 2013 17:54:02 +0100 Frederic Weisbecker wrote: > Add some initial basic tests on a few posix timers > interface such as setitimer() and timer_settime(). > > These simply check that expiration happens in a reasonable > timeframe after expected elapsed clock time (user time, > user

[PATCH v6 2/2] mm: replace hardcoded 3% with admin_reserve_pages knob

2013-03-18 Thread Andrew Shewmaker
everno 1 5323/5428 no 0MB no 10MB barely neverno 1 5332/5428 no 0MB no 50MB yes neverno 1 5293/5429 no 0MB no 90MB yes neverno 1 5001/5427 no 230MB yes 338M

[PATCH v6 1/2] mm: limit growth of 3% hardcoded other user reserve

2013-03-18 Thread Andrew Shewmaker
everno 1 5332/5428 no 0MB no 50MB yes neverno 1 5293/5429 no 0MB no 90MB yes neverno 1 5001/5427 no 230MB yes 338MB yes neverno 4* 4998/5424 no 230MB yes 338MB yes *

Re: [PATCH 1/2] teach argv_split() to handle the mutable strings

2013-03-18 Thread Andrew Morton
On Sat, 16 Mar 2013 21:23:53 +0100 Oleg Nesterov wrote: > argv_split() allocates argv[count_argc(str)] array and assumes that > it will find the same number of arguments later. This is obviously > wrong if this string can be changed, say, by sysctl. > > With this patch argv_split() kstrndup's th

Re: [Patch v1] rtc: fix for the DA9052 rtc device registration

2013-03-18 Thread Andrew Morton
On Fri, 15 Mar 2013 13:59:39 +0530 Ashish Jangam wrote: > DA9052/53 MFD core handles only virtual irq therefore rtc driver needs > to be updated to work on virtual irq. Without this update DA9052/53 rtc > driver will fail during its registration. > Also getting irq by it name is no longer suppo

Re: [PATCH v3 00/21] kdump, vmcore: support mmap() on /proc/vmcore

2013-03-19 Thread Andrew Morton
On Sat, 16 Mar 2013 13:00:47 +0900 HATAYAMA Daisuke wrote: > Currently, read to /proc/vmcore is done by read_oldmem() that uses > ioremap/iounmap per a single page. For example, if memory is 1GB, > ioremap/iounmap is called (1GB / 4KB)-times, that is, 262144 > times. This causes big performance

Re: [PATCH v3 07/21] vmcore, procfs: introduce a flag to distinguish objects copied in 2nd kernel

2013-03-19 Thread Andrew Morton
On Sat, 16 Mar 2013 13:01:26 +0900 HATAYAMA Daisuke wrote: > The part of dump target memory is copied into the 2nd kernel if it > doesn't satisfy mmap()'s page-size boundary requirement. To > distinguish such copied object from usual old memory, a flag > MEM_TYPE_CURRENT_KERNEL is introduced. If

Re: [PATCH v3 08/21] vmcore: copy non page-size aligned head and tail pages in 2nd kernel

2013-03-19 Thread Andrew Morton
On Sat, 16 Mar 2013 13:01:32 +0900 HATAYAMA Daisuke wrote: > Due to mmap() requirement, we need to copy pages not starting or > ending with page-size aligned address in 2nd kernel and to map them to > user-space. > > For example, see the map below: > > -0001 : reserved > 00

Re: [PATCH v3 18/21] vmcore: check if vmcore objects satify mmap()'s page-size boundary requirement

2013-03-19 Thread Andrew Morton
On Sat, 16 Mar 2013 13:02:29 +0900 HATAYAMA Daisuke wrote: > If there's some vmcore object that doesn't satisfy page-size boundary > requirement, remap_pfn_range() fails to remap it to user-space. > > Objects that posisbly don't satisfy the requirement are ELF note > segments only. The memory c

Re: [PATCH 0/2] lib,crypto: Add lz4 compressor module and crypto API

2013-03-19 Thread Andrew Morton
On Tue, 19 Mar 2013 15:42:04 +0100 Yann Collet wrote: > Thanks for pointing that out. > I've been looking into the document pointed by Andrew, > and here is my understanding : > > Signed-off-by is a one-line, so in this case : > > Signed-off-by: Yann Collet >

Re: [PATCH] mqueue: sys_mq_open: do not call mnt_drop_write() if read-only

2013-03-19 Thread Andrew Morton
On Tue, 19 Mar 2013 13:31:18 +0400 Vladimir Davydov wrote: > mnt_drop_write() must be called only if mnt_want_write() succeeded, > otherwise the mnt_writers counter will diverge. > > ... > > --- a/ipc/mqueue.c > +++ b/ipc/mqueue.c > @@ -840,7 +840,8 @@ out_putfd: > fd = error; >

Re: gen_pool_add broken with LPAE based systems

2013-03-19 Thread Andrew Morton
On Thu, 14 Mar 2013 16:05:27 -0700 Laura Abbott wrote: > Hi, > > We use genalloc for managing certain pools of physical memory. genalloc > currently uses unsigned long for virtual addresses and phys_addr_t for > physical addresses. Our ARM LPAE systems have 64-bit physical addresses > but uns

Re: [PATCH 1/4] posix_cpu_timer: Consolidate expiry time type

2013-03-19 Thread Andrew Morton
On Fri, 15 Mar 2013 17:53:59 +0100 Frederic Weisbecker wrote: > The posix cpu timer expiry time is stored in a union of > two types: a 64 bits field if we rely on scheduler precise > accounting, or a cputime_t if we rely on jiffies. > > This result in quite some duplicate code and special cases

Re: gen_pool_add broken with LPAE based systems

2013-03-19 Thread Andrew Morton
On Tue, 19 Mar 2013 15:49:24 -0700 Laura Abbott wrote: > On 3/19/2013 2:54 PM, Andrew Morton wrote: > > On Thu, 14 Mar 2013 16:05:27 -0700 Laura Abbott > > wrote: > > > >> Hi, > >> > >> We use genalloc for managing certain pools of physical me

Re: make[2]: execvp: /bin/bash: Argument list too long

2013-03-19 Thread Andrew Morton
On Wed, 20 Mar 2013 13:41:07 +1030 Rusty Russell wrote: > Fengguang Wu writes: > > On Tue, Mar 19, 2013 at 09:10:25AM -0400, Konrad Rzeszutek Wilk wrote: > >> On Mon, Mar 18, 2013 at 11:50:58PM -0700, Andrew Morton wrote: > >> > On Tue, 19 Mar 2013 14

Re: [PATCH] rtc: rtc-at91rm9200: use a variable for storing IMR

2013-03-20 Thread Andrew Morton
On Fri, 15 Mar 2013 18:37:12 +0100 Nicolas Ferre wrote: > On some revisions of AT91 SoCs, the RTC IMR register is not working. > Instead of elaborating a workaround for that specific SoC or IP version, > we simply use a software variable to store the Interrupt Mask Register and > modify it for e

Re: [PATCH} mm: Merging memory blocks resets mempolicy

2013-03-20 Thread Andrew Morton
On Mon, 18 Mar 2013 06:13:42 + "Hampson, Steven T" wrote: > Using mbind to change the mempolicy to MPOL_BIND on several adjacent > mmapped blocks > may result in a reset of the mempolicy to MPOL_DEFAULT in vma_adjust. > > ... > > --- a/mm/mmap.c > +++ b/mm/mmap.c > @@ -820,7 +820,7 @@ again

Re: Linux 3.0.70

2013-03-20 Thread Andrew Collins
ka->sa.sa_handler = SIG_DFL; ka->sa.sa_flags = 0; +#ifdef SA_RESTORER + ka->sa.sa_restorer = NULL; +#endif sigemptyset(&ka->sa.sa_mask); ka++; } goes kaboom. Andrew Collins -- To unsubscribe from this list: send the li

Re: [patch] mm: speedup in __early_pfn_to_nid

2013-03-20 Thread Andrew Morton
On Mon, 18 Mar 2013 10:56:19 -0500 Russ Anderson wrote: > When booting on a large memory system, the kernel spends > considerable time in memmap_init_zone() setting up memory zones. > Analysis shows significant time spent in __early_pfn_to_nid(). > > The routine memmap_init_zone() checks each PF

Re: [PATCH 2/2] netlink: Diag core and basic socket info dumping

2013-03-21 Thread Andrew Vagin
On Thu, Mar 21, 2013 at 12:52:30PM +, Thomas Graf wrote: > On 03/21/13 at 01:21pm, Andrey Vagin wrote: > > diff --git a/include/uapi/linux/netlink_diag.h > > b/include/uapi/linux/netlink_diag.h > > new file mode 100644 > > index 000..9328866 > > --- /dev/null > > +++ b/include/uapi/linux/n

Re: [PATCH 10/18] mm: teach truncate_inode_pages_range() to handle non page aligned ranges

2013-02-04 Thread Andrew Morton
On Mon, 4 Feb 2013 15:51:19 +0100 (CET) Luk Czerner wrote: > I hope I explained myself well enough :). Are you ok with this king > of approach ? If so, I'll resend the patch set without the > initialisation-at-declaration. uh, maybe. Next time I'll apply the patch and look at the end result

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

2013-02-04 Thread Andrew Morton
On Wed, 9 Jan 2013 17:32:32 +0800 Tang Chen wrote: > +static void __meminit > +remove_pagetable(unsigned long start, unsigned long end, bool direct) > +{ > + unsigned long next; > + pgd_t *pgd; > + pud_t *pud; > + bool pgd_changed = false; > + > + for (; start < end; start = n

Re: [PATCH] mm: cma: fix accounting of CMA pages placed in high memory

2013-02-04 Thread Andrew Morton
On Mon, 04 Feb 2013 11:27:05 +0100 Marek Szyprowski wrote: > The total number of low memory pages is determined as > totalram_pages - totalhigh_pages, so without this patch all CMA > pageblocks placed in highmem were accounted to low memory. What are the end-user-visible effects of this bug? (T

Re: [PATCH 3/3] acpi, memory-hotplug: Support getting hotplug info from SRAT.

2013-02-04 Thread Andrew Morton
On Fri, 25 Jan 2013 17:42:09 +0800 Tang Chen wrote: > We now provide an option for users who don't want to specify physical > memory address in kernel commandline. > > /* > * For movablemem_map=acpi: > * > * SRAT:|_| |_| |_| |___

Re: [PATCH 1/2] mm: hotplug: implement non-movable version of get_user_pages() called get_user_pages_non_movable()

2013-02-04 Thread Andrew Morton
->node_zones + ZONE_MOVABLE; > +} A better name would be zone_is_movable(). We haven't been very consistent about this in mmzone.h, but zone_is_foo() is pretty common. And a neater implementation would be return zone_idx(zone) == ZONE_MOVABLE; All of which made me look

Re: [PATCH 1/2] mm: hotplug: implement non-movable version of get_user_pages() called get_user_pages_non_movable()

2013-02-04 Thread Andrew Morton
Also... On Mon, 4 Feb 2013 16:06:24 -0800 Andrew Morton wrote: > > +put_page: > > + /* Undo the effects of former get_user_pages(), we won't pin anything */ > > + for (i = 0; i < ret; i++) > > + put_page(pages[i]); We can use release_pages() here.

Re: [GIT PULL] printk: Support for full dynticks mode

2013-02-04 Thread Andrew Morton
On Tue, 5 Feb 2013 01:51:18 +0100 Frederic Weisbecker wrote: > printk: Wake up klogd using irq_work That seems reasonable. I'm wondering if we can now remove the printk_sched() special-case. iirc, that was needed because wake_up(klogd) would deadlock when called from sched internals. B

Re: [GIT PULL] printk: Support for full dynticks mode

2013-02-04 Thread Andrew Morton
On Tue, 5 Feb 2013 02:37:54 +0100 Frederic Weisbecker wrote: > 2013/2/5 Andrew Morton : > > On Tue, 5 Feb 2013 01:51:18 +0100 > > Frederic Weisbecker wrote: > > > >> printk: Wake up klogd using irq_work > > > > That seems reasonable. >

Re: [GIT PULL] printk: Support for full dynticks mode

2013-02-04 Thread Andrew Morton
On Mon, 04 Feb 2013 21:42:02 -0500 Steven Rostedt wrote: > On Mon, 2013-02-04 at 18:09 -0800, Andrew Morton wrote: > > > I don't think so. Conceptually printk() should be "inner" to the > > scheduler and shouldn't call into sched things at all. The (afa

Re: [PATCH v2] printk: Avoid softlockups in console_unlock()

2013-02-05 Thread Andrew Morton
On Mon, 4 Feb 2013 23:17:10 +0100 Jan Kara wrote: > A CPU can be caught in console_unlock() for a long time (tens of seconds are > reported by our customers) when other CPUs are using printk heavily and serial > console makes printing slow. Despite serial console drivers are calling > touch_nmi_

Re: [PATCH 1/2] mm: hotplug: implement non-movable version of get_user_pages() called get_user_pages_non_movable()

2013-02-05 Thread Andrew Morton
ould we update other ones in a separate patch later or just keep the old > style? I do think the old names were poorly chosen. Yes, we could fix them up sometime but it's hardly a pressing issue. > > And a neater implementation would be > > > > return zone_i

Re: [PATCH] mm: break circular include from linux/mmzone.h

2013-02-05 Thread Andrew Morton
On Tue, 05 Feb 2013 13:56:36 +0800 li guang wrote: > ___ 2013-02-04__ 21:20 -0800___David Rientjes_ > > On Tue, 5 Feb 2013, liguang wrote: > > > > > linux/mmzone.h included linux/memory_hotplug.h, > > > and linux/memory_hotplug.h also included > > > linux/mmzone.h, so there's a bad c

Re: [PATCH] mm: introduce __linear_page_index()

2013-02-05 Thread Andrew Morton
On Tue, 5 Feb 2013 15:03:39 +0800 Huang Shijie wrote: > There are many places we should get the offset(in PAGE_SIZE unit) of > an address within a non-hugetlb vma. > > In order to simplify the code, add a new helper __linear_page_index() > to do the work. > Seems nice. > --- a/include/linux/p

  1   2   3   4   5   6   7   8   9   10   >