[bug report x86] test_nx.ko is broken

2012-09-26 Thread Konstantin Khlebnikov
test_nx.ko incompatible with x86 relative exception table, which was added in commit 706276543b699d80f546e45f8b12574e7b18d952 also it conflicts with CONFIG_DEBUG_SET_MODULE_RONX=y, because it wants to modify write-protected data. -- To unsubscribe from this list: send the line unsubscribe

Re: [PATCH RFC] mm/swap: automatic tuning for swapin readahead

2012-10-04 Thread Konstantin Khlebnikov
, Konstantin Khlebnikov wrote: Hugh Dickins wrote: If I boot with mem=900M (and 1G swap: either on hard disk sda, or on Vertex II SSD sdb), and mmap anonymous 1000M (either MAP_PRIVATE, or MAP_SHARED for a shmem object), and either cycle sequentially round that making 5M touches (spaced a page

Re: [PATCH RFC] mm/swap: automatic tuning for swapin readahead

2012-10-09 Thread Konstantin Khlebnikov
Hugh Dickins wrote: On Thu, 4 Oct 2012, Konstantin Khlebnikov wrote: Here results of my test. Workload isn't very realistic, but at least it threaded: compiling linux-3.6 with defconfig in 16 threads on tmpfs, 512mb ram, dualcore cpu, ordinary hard disk. (test script in attachment) average

[PATCH] mm: fix null vm_ops dereference in sys_remap_file_pages

2012-10-11 Thread Konstantin Khlebnikov
This fixes bug introduced in commit mm: kill vma flag VM_CAN_NONLINEAR, vma-vm_ops must be checked before checking vm_ops-remap_pages. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Reported-by: Sasha Levin levinsasha...@gmail.com --- mm/fremap.c |2 +- 1 file changed, 1

Re: [PATCH] timekeeping: Add missing update call in timekeeping_resume()

2012-07-17 Thread Konstantin Khlebnikov
I run into the same regression in s2ram between v3.5-rc6 and v3.5-rc7. This patch helps. Thanks. Tested-by: Konstantin Khlebnikov khlebni...@openvz.org John Stultz wrote: From: Thomas Gleixnert...@linutronix.de Linus, Since Thomas is on vacation I wanted to send you his fix to resolve

Re: [PATCH 1/2] hugetlbfs: stop setting VM_DONTDUMP in initializing vma(VM_HUGETLB)

2013-03-28 Thread Konstantin Khlebnikov
Naoya Horiguchi wrote: On Thu, Mar 28, 2013 at 09:03:16PM +0400, Konstantin Khlebnikov wrote: Naoya Horiguchi wrote: Currently we fail to include any data on hugepages into coredump, because VM_DONTDUMP is set on hugetlbfs's vma. This behavior was recently introduced by commit 314e51b98 mm

Re: [PATCH 1/2] hugetlbfs: stop setting VM_DONTDUMP in initializing vma(VM_HUGETLB)

2013-03-29 Thread Konstantin Khlebnikov
Konstantin Khlebnikov wrote: Naoya Horiguchi wrote: On Thu, Mar 28, 2013 at 09:03:16PM +0400, Konstantin Khlebnikov wrote: Naoya Horiguchi wrote: Currently we fail to include any data on hugepages into coredump, because VM_DONTDUMP is set on hugetlbfs's vma. This behavior was recently

Re: [PATCH bugfix 3.9] PCI: Don't try to disable Bus Master on disconnected PCI devices

2013-04-01 Thread Konstantin Khlebnikov
BUMP. This is degradation from 3.8, so this patch must be in 3.9. I still don't like this forced clearing bus-master bit. But this hack definitely fixes problems in kexec, so there is reason to keep it here. Konstantin Khlebnikov wrote: This is fix for commit

Re: [PATCH v2 0/2] fix hugepage coredump

2013-04-01 Thread Konstantin Khlebnikov
Naoya Horiguchi wrote: Hi, Here is 2nd version of hugepage coredump fix. See individual patches for more details. Thanks, Naoya Horiguchi ACK to both patches VM_* bits cleanup patchset was merged into v3.7, so only two recent stable kernels needs this fix. -- To unsubscribe from this

Re: 3.9.0-rc1: kexec not working: root disk does not show up

2013-03-14 Thread Konstantin Khlebnikov
Vivek Goyal wrote: On Wed, Mar 13, 2013 at 06:53:16PM +0400, Konstantin Khlebnikov wrote: [..] PCI: Don't try to disable Bus Master on disconnected PCI devices From: Konstantin Khlebnikovkhlebni...@openvz.org This is fix for commit 7897e6022761ace7377f0f784fca059da55f5d71 from v3.9-rc1 (PCI

[PATCH bugfix 3.9] PCI: Don't try to disable Bus Master on disconnected PCI devices

2013-03-14 Thread Konstantin Khlebnikov
one bug uncovers another: -shutdown() callback might switch device to deep sleep state. PCI config space no longer available after that. Link: https://lkml.org/lkml/2013/3/12/529 Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Reported-and-Tested-by: Vivek Goyal vgo...@redhat.com Cc: Bjorn

Re: e1000e + suspend, 3.9-rc2

2013-03-19 Thread Konstantin Khlebnikov
Jiri Slaby wrote: On 03/12/2013 06:17 PM, Borislav Petkov wrote: On Mon, Mar 11, 2013 at 09:25:37PM +0100, Borislav Petkov wrote: Yeah, it is already upstream. And yeah, it did trigger with it. $ git describe v3.9-rc2-112-g7c6baa304b84 But it somehow doesn't trigger with that same kernel

[PATCH] kconfig: print each first level disjunction block from a new line

2013-03-21 Thread Konstantin Khlebnikov
This patch improves readability of complicated expressions. before: Selected by: A AA AAA || B BB (BBB || ) || C CC CCC after: Selected by: A AA AAA || B BB (BBB || ) || C CC CCC Modules' config options usually comes first in these blocks. Signed-off-by: Konstantin

[PATCH RFC 1/5] kconfig: implement weak reverse-dependencies

2013-03-21 Thread Konstantin Khlebnikov
optional dependencies without introducing new kconfig symbol for each pair of connected kconfig options. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Andrew Morton a...@linux-foundation.org Cc: Michal Marek mma...@suse.cz Cc: linux-kbu...@vger.kernel.org --- Documentation/kbuild

[PATCH RFC 5/5] e1000e: make PTP clock optional

2013-03-21 Thread Konstantin Khlebnikov
As proof of concept for new approach in managing cross-module dependencies this patch resolves hard depencency between CONFIG_E1000E and CONFIG_PTP_1588_CLOCK. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Richard Cochran richardcoch...@gmail.com --- drivers/net/ethernet/intel

[PATCH RFC 3/5] kconfig: simplity linking cross-module glue objects

2013-03-21 Thread Konstantin Khlebnikov
module-A is available. Objects from module_b-m will be linked only if CONFIG_MODULE_B=m. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Andrew Morton a...@linux-foundation.org Cc: Michal Marek mma...@suse.cz Cc: linux-kbu...@vger.kernel.org --- Documentation/kbuild/makefiles.txt | 14

[PATCH RFC 4/5] ptp: add stub function for ptp_clock_index()

2013-03-21 Thread Konstantin Khlebnikov
After this patch function ptp_clock_index(struct ptp_clock *ptp) returns -1 if ptp is NULL or CONFIG_PTP_1588_CLOCK disabled. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Richard Cochran richardcoch...@gmail.com --- drivers/net/ethernet/broadcom/tg3.c |5

Re: [PATCH RFC 1/5] kconfig: implement weak reverse-dependencies

2013-03-21 Thread Konstantin Khlebnikov
Richard Cochran wrote: On Thu, Mar 21, 2013 at 12:22:57PM +0400, Konstantin Khlebnikov wrote: This patch adds new kind of dependencies between kconfig symbols, and new kconfig keyword 'apply' for them. 'apply' works mostly like 'select', but it allows to disable target symbol. Thus target

Re: [PATCH 1/2] hugetlbfs: stop setting VM_DONTDUMP in initializing vma(VM_HUGETLB)

2013-03-28 Thread Konstantin Khlebnikov
Naoya Horiguchi wrote: Currently we fail to include any data on hugepages into coredump, because VM_DONTDUMP is set on hugetlbfs's vma. This behavior was recently introduced by commit 314e51b98 mm: kill vma flag VM_RESERVED and mm-reserved_vm counter. This looks to me a serious regression, so

Re: [ 069/100] e1000e: fix pci-device enable-counter balance

2013-03-13 Thread Konstantin Khlebnikov
Greg Kroah-Hartman wrote: 3.8-stable review patch. If anyone has any objections, please let me know. Vivek Goyal reported about problem caused by this improper fix. https://lkml.org/lkml/2013/3/12/529 (this patch also pending to 3.0-stable and 3.4-stable) -- From:

Re: [ 069/100] e1000e: fix pci-device enable-counter balance

2013-03-13 Thread Konstantin Khlebnikov
Konstantin Khlebnikov wrote: Greg Kroah-Hartman wrote: 3.8-stable review patch. If anyone has any objections, please let me know. Vivek Goyal reported about problem caused by this improper fix. https://lkml.org/lkml/2013/3/12/529 (this patch also pending to 3.0-stable and 3.4-stable

Re: 3.9.0-rc1: kexec not working: root disk does not show up

2013-03-13 Thread Konstantin Khlebnikov
Vivek Goyal wrote: On Wed, Mar 13, 2013 at 11:46:29AM +0400, Konstantin Khlebnikov wrote: [..] Ok, some more observation. - Problem seems to be in during shutdown path. Because older kernel 3.8 can kexec into newer kernel 3.9.rc1 but not vice-a-versa. I did git bisecting and following

[PATCH linux-next] procfs: fix rcu-lock/unlock in proc_reg_open() and proc_reg_release()

2013-03-06 Thread Konstantin Khlebnikov
fix for a21813be23329e2788164eab532e79cb0e513cfc (linux-next) procfs: improve scaling in proc Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Nathan Zimmer nzim...@sgi.com Cc: Andrew Morton a...@linux-foundation.org --- fs/proc/inode.c |3 ++- 1 file changed, 2 insertions

[PATCH for 3.9] memcg: initialize kmem-cache destroying work earlier

2013-03-06 Thread Konstantin Khlebnikov
This patch fixes warning from lockdep caused by calling cancel_work_sync() for uninitialized struct work. This path has been triggered by destructon kmem-cache hierarchy via destroying its root kmem-cache. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Glauber Costa glom

[PATCH v2 3/7] PCI: catch enable-counter underflows

2013-02-04 Thread Konstantin Khlebnikov
This patch adds single WARN_ONCE() check for catching 'enable_cnt' imbalances. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: linux-...@vger.kernel.org Cc: Bjorn Helgaas bhelg...@google.com Cc: Rafael J. Wysocki rafael.j.wyso...@intel.com --- drivers/pci/pci.c |3 +++ 1 file

[PATCH v2 5/7] e1000e: fix runtime power management transitions

2013-02-04 Thread Konstantin Khlebnikov
like custom 'enable_wakeup' sign. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Rafael J. Wysocki rafael.j.wyso...@intel.com Cc: e1000-de...@lists.sourceforge.net Cc: Jeff Kirsher jeffrey.t.kirs...@intel.com Cc: Bruce Allan bruce.w.al...@intel.com --- drivers/net/ethernet/intel

[PATCH v2 7/7] e1000e: fix accessing to suspended device

2013-02-04 Thread Konstantin Khlebnikov
This patch fixes some annoying messages like 'Error reading PHY register' and 'Hardware Erorr' and saves several seconds on reboot. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Rafael J. Wysocki rafael.j.wyso...@intel.com Cc: e1000-de...@lists.sourceforge.net Cc: Jeff Kirsher

[PATCH v2 6/7] PCI/PM: warn about incomplete actions in -runtime_suspend() callback

2013-02-04 Thread Konstantin Khlebnikov
() that means device alredy prepared for wakeup and probably no longer accessible. Thus driver must either do all actions or leave all these tasks to PCI subsystem. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Rafael J. Wysocki rafael.j.wyso...@intel.com Cc: Bjorn Helgaas bhelg

[PATCH v2 4/7] PCI/PM: clear state_saved during suspend

2013-02-04 Thread Konstantin Khlebnikov
in the -slot_reset() callback. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org # add comment Cc: linux-...@vger.kernel.org Cc: Bjorn Helgaas bhelg...@google.com Cc: Rafael J. Wysocki rafael.j.wyso...@intel.com --- drivers/pci/pci-driver.c |4 1 file changed, 4 insertions(+) diff --git

[PATCH v2 2/7] PCI: don't touch enable_cnt in pci_device_shutdown()

2013-02-04 Thread Konstantin Khlebnikov
should leave here only warning and disable bus-mastering for each driver individually in -shutdown() callback. Link: https://lkml.org/lkml/2012/6/6/278 Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Rafael J. Wysocki rafael.j.wyso...@intel.com Cc: Bjorn Helgaas bhelg...@google.com Cc

[PATCH v2 0/7] pci/e1000e: return runtime-pm back to work

2013-02-04 Thread Konstantin Khlebnikov
/147 --- Konstantin Khlebnikov (6): e1000e: fix pci-device enable-counter balance PCI: don't touch enable_cnt in pci_device_shutdown() PCI: catch enable-counter underflows e1000e: fix runtime power management transitions PCI/PM: warn about incomplete actions

[PATCH v2 1/7] e1000e: fix pci-device enable-counter balance

2013-02-04 Thread Konstantin Khlebnikov
support (rev. 4)) in v2.6.35 Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Rafael J. Wysocki rafael.j.wyso...@intel.com Cc: e1000-de...@lists.sourceforge.net Cc: Jeff Kirsher jeffrey.t.kirs...@intel.com Cc: Bruce Allan bruce.w.al...@intel.com --- drivers/net/ethernet/intel/e1000e

Re: [patch] mm: shmem: use new radix tree iterator

2013-02-04 Thread Konstantin Khlebnikov
Hugh Dickins wrote: On Sat, 2 Feb 2013, Konstantin Khlebnikov wrote: Johannes Weiner wrote: In shmem_find_get_pages_and_swap, use the faster radix tree iterator construct from 78c1d78 radix-tree: introduce bit-optimized iterator. Signed-off-by: Johannes Weinerhan...@cmpxchg.org Hmm, ACK

Re: [PATCH v2 6/7] PCI/PM: warn about incomplete actions in -runtime_suspend() callback

2013-02-04 Thread Konstantin Khlebnikov
Rafael J. Wysocki wrote: On Monday, February 04, 2013 03:56:12 PM Konstantin Khlebnikov wrote: Documentation/power/pci.txt says: | It is expected that the device driver's pm-runtime_suspend() callback will | not attempt to prepare the device for signaling wakeup or to put it into a | low-power

Re: [PATCH 1/5] e1000e: fix resuming from runtime-suspend

2013-01-30 Thread Konstantin Khlebnikov
Rafael J. Wysocki wrote: On Tuesday, January 29, 2013 10:32:14 AM Konstantin Khlebnikov wrote: Rafael J. Wysocki wrote: On Monday, January 28, 2013 04:05:33 PM Bjorn Helgaas wrote: [+cc Rafael, author of patch you cited] On Fri, Jan 18, 2013 at 4:42 AM, Konstantin Khlebnikov khlebni

Re: [patch] mm: shmem: use new radix tree iterator

2013-02-02 Thread Konstantin Khlebnikov
Johannes Weiner wrote: In shmem_find_get_pages_and_swap, use the faster radix tree iterator construct from 78c1d78 radix-tree: introduce bit-optimized iterator. Signed-off-by: Johannes Weinerhan...@cmpxchg.org Hmm, ACK. shmem_unuse_inode() also can be redone in this way. I did something

Re: [PATCH 3/5] PCI: revert preparing for wakeup in runtime-suspend finalization

2013-02-02 Thread Konstantin Khlebnikov
Rafael J. Wysocki wrote: On Tuesday, January 29, 2013 12:55:15 PM Rafael J. Wysocki wrote: On Tuesday, January 29, 2013 11:04:57 AM Konstantin Khlebnikov wrote: Rafael J. Wysocki wrote: On Monday, January 28, 2013 04:17:42 PM Bjorn Helgaas wrote: [+cc Rafael] On Fri, Jan 18, 2013 at 4:42 AM

Re: [PATCH 3/5] PCI: revert preparing for wakeup in runtime-suspend finalization

2013-02-03 Thread Konstantin Khlebnikov
Rafael J. Wysocki wrote: On Saturday, February 02, 2013 09:58:45 PM Rafael J. Wysocki wrote: On Saturday, February 02, 2013 04:12:03 PM Konstantin Khlebnikov wrote: Rafael J. Wysocki wrote: On Tuesday, January 29, 2013 12:55:15 PM Rafael J. Wysocki wrote: On Tuesday, January 29, 2013 11:04

Re: [E1000-devel] [PATCH RESEND 3/3] e1000e: fix accessing to suspended device

2013-02-26 Thread Konstantin Khlebnikov
Waskiewicz Jr, Peter P wrote: On 2/24/2013 9:19 PM, Konstantin Khlebnikov wrote: This patch fixes some annoying messages like 'Error reading PHY register' and 'Hardware Erorr' and saves several seconds on reboot. Any networking-related patches should also include net...@vger.kernel.org

Re: [E1000-devel] [PATCH RESEND 3/3] e1000e: fix accessing to suspended device

2013-03-02 Thread Konstantin Khlebnikov
Ben Hutchings wrote: On Tue, 2013-02-26 at 14:03 +0400, Konstantin Khlebnikov wrote: Waskiewicz Jr, Peter P wrote: On 2/24/2013 9:19 PM, Konstantin Khlebnikov wrote: This patch fixes some annoying messages like 'Error reading PHY register' and 'Hardware Erorr' and saves several seconds

[PATCH] workqueue: un-GPL function delayed_work_timer_fn()

2013-01-24 Thread Konstantin Khlebnikov
schedule_delayed_work() available for non-GPL. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Tejun Heo t...@kernel.org Cc: sta...@vger.kernel.org # 3.7 --- kernel/workqueue.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/workqueue.c b/kernel

Re: [PATCH 1/5] e1000e: fix resuming from runtime-suspend

2013-01-28 Thread Konstantin Khlebnikov
Rafael J. Wysocki wrote: On Monday, January 28, 2013 04:05:33 PM Bjorn Helgaas wrote: [+cc Rafael, author of patch you cited] On Fri, Jan 18, 2013 at 4:42 AM, Konstantin Khlebnikov khlebni...@openvz.org wrote: Bug was introduced in commit 23606cf5d1192c2b17912cb2ef6e62f9b11de133 (e1000e

Re: [PATCH 2/5] e1000e: fix pci device enable counter balance

2013-01-28 Thread Konstantin Khlebnikov
Bjorn Helgaas wrote: [+cc Rafael @sisk.pl] On Mon, Jan 28, 2013 at 4:09 PM, Bjorn Helgaasbhelg...@google.com wrote: [+cc Rafael] On Fri, Jan 18, 2013 at 4:42 AM, Konstantin Khlebnikov khlebni...@openvz.org wrote: __e1000_shutdown() calls pci_disable_device() at the end, thus __e1000_resume

Re: [PATCH 3/5] PCI: revert preparing for wakeup in runtime-suspend finalization

2013-01-28 Thread Konstantin Khlebnikov
Rafael J. Wysocki wrote: On Monday, January 28, 2013 04:17:42 PM Bjorn Helgaas wrote: [+cc Rafael] On Fri, Jan 18, 2013 at 4:42 AM, Konstantin Khlebnikov khlebni...@openvz.org wrote: This patch effectively reverts commit 42eca2302146fed51335b95128e949ee6f54478f (PCI: Don't touch card regs

[PATCH RFC] mm/mmu_notifier: get rid of srcu-based synchronization

2013-01-21 Thread Konstantin Khlebnikov
faster than sequence mm_take_all_locks() - mm_drop_all_locks(). mm_synchronize_all_locks() needs only mmap_sem read-lock, but caller must lock mmap_sem for write at least once to synchronize with the rest operations which are protected with mmap_sem read-lock. Signed-off-by: Konstantin Khlebnikov

[PATCH] mm/rmap: rename anon_vma_unlock() = anon_vma_unlock_write()

2013-01-21 Thread Konstantin Khlebnikov
. But that commit renames only anon_vma_lock() Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Ingo Molnar mi...@kernel.org Cc: Rik van Riel r...@redhat.com --- include/linux/huge_mm.h |2 +- include/linux/rmap.h|2 +- mm/huge_memory.c|6 +++--- mm/mmap.c

[PATCH 0/5] pci/e1000e: return runtime-pm back to work

2013-01-18 Thread Konstantin Khlebnikov
--- Konstantin Khlebnikov (5): e1000e: fix resuming from runtime-suspend e1000e: fix pci device enable counter balance PCI: revert preparing for wakeup in runtime-suspend finalization PCI: don't touch enable_cnt in pci_device_shutdown() PCI: catch enable-counter

[PATCH 1/5] e1000e: fix resuming from runtime-suspend

2013-01-18 Thread Konstantin Khlebnikov
Bug was introduced in commit 23606cf5d1192c2b17912cb2ef6e62f9b11de133 (e1000e / PCI / PM: Add basic runtime PM support (rev. 4)) in v2.6.35 Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: e1000-de...@lists.sourceforge.net Cc: Jeff Kirsher jeffrey.t.kirs...@intel.com Cc: Bruce Allan

[PATCH 3/5] PCI: revert preparing for wakeup in runtime-suspend finalization

2013-01-18 Thread Konstantin Khlebnikov
it as an exception. Its driver should set device state to D3cold and the rest code will handle it properly. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: linux-...@vger.kernel.org Cc: Bjorn Helgaas bhelg...@google.com Cc: Dave Airlie airl...@redhat.com --- drivers/pci/pci-driver.c |5

[PATCH 4/5] PCI: don't touch enable_cnt in pci_device_shutdown()

2013-01-18 Thread Konstantin Khlebnikov
unconditionally and doesn't changes enable_cnt. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: linux-...@vger.kernel.org Cc: Bjorn Helgaas bhelg...@google.com Cc: Khalid Aziz khalid.a...@hp.com --- drivers/pci/pci-driver.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 5/5] PCI: catch enable-counter underflows

2013-01-18 Thread Konstantin Khlebnikov
This patch adds single WARN_ONCE() check for catching 'enable_cnt' imbalances. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: linux-...@vger.kernel.org Cc: Bjorn Helgaas bhelg...@google.com --- drivers/pci/pci.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers

[PATCH 2/5] e1000e: fix pci device enable counter balance

2013-01-18 Thread Konstantin Khlebnikov
Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: e1000-de...@lists.sourceforge.net Cc: Jeff Kirsher jeffrey.t.kirs...@intel.com Cc: Bruce Allan bruce.w.al...@intel.com --- drivers/net/ethernet/intel/e1000e/netdev.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net

Re: Uhhuh. NMI received for unknown reason 2c on CPU 0.

2013-02-15 Thread Konstantin Khlebnikov
Borislav Petkov wrote: On Thu, Feb 14, 2013 at 10:17:46AM -0700, Bjorn Helgaas wrote: On Thu, Feb 14, 2013 at 7:39 AM, Borislav Petkovb...@suse.de wrote: On Sun, Feb 03, 2013 at 03:46:56PM +0100, Borislav Petkov wrote: On Sun, Feb 03, 2013 at 12:04:46AM +0100, Rafael J. Wysocki wrote: The

[PATCH RESEND 0/3] e1000e: return runtime-pm back to work

2013-02-24 Thread Konstantin Khlebnikov
here some fixes for e1000e driver from: https://lkml.org/lkml/2013/2/4/185 The rest patches from that patchset already committed. --- Konstantin Khlebnikov (3): e1000e: fix pci-device enable-counter balance e1000e: fix runtime power management transitions e1000e: fix accessing

[PATCH RESEND 1/3] e1000e: fix pci-device enable-counter balance

2013-02-24 Thread Konstantin Khlebnikov
support (rev. 4)) in v2.6.35 Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Acked-by: Rafael J. Wysocki rafael.j.wyso...@intel.com Cc: e1000-de...@lists.sourceforge.net Cc: Jeff Kirsher jeffrey.t.kirs...@intel.com Cc: Bruce Allan bruce.w.al...@intel.com --- drivers/net/ethernet/intel/e1000e

[PATCH RESEND 2/3] e1000e: fix runtime power management transitions

2013-02-24 Thread Konstantin Khlebnikov
like custom 'enable_wakeup' sign. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Acked-by: Rafael J. Wysocki rafael.j.wyso...@intel.com Cc: e1000-de...@lists.sourceforge.net Cc: Jeff Kirsher jeffrey.t.kirs...@intel.com Cc: Bruce Allan bruce.w.al...@intel.com --- drivers/net/ethernet

[PATCH RESEND 3/3] e1000e: fix accessing to suspended device

2013-02-24 Thread Konstantin Khlebnikov
This patch fixes some annoying messages like 'Error reading PHY register' and 'Hardware Erorr' and saves several seconds on reboot. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Acked-by: Rafael J. Wysocki rafael.j.wyso...@intel.com Cc: e1000-de...@lists.sourceforge.net Cc: Jeff

[PATCH RFC] mm/swap: automatic tuning for swapin readahead

2012-09-06 Thread Konstantin Khlebnikov
/linux-mm/msg41128.html mine version uses system wide state rather than per-VMA counters. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Shaohua Li s...@kernel.org Cc: Rik van Riel r...@redhat.com Cc: Minchan Kim minc...@kernel.org --- include/linux/page-flags.h |1 + mm

Re: [PATCH] memory cgroup: update root memory cgroup when node is onlined

2012-09-15 Thread Konstantin Khlebnikov
Hugh Dickins wrote: On Thu, 13 Sep 2012, Johannes Weiner wrote: On Thu, Sep 13, 2012 at 03:14:28PM +0800, Wen Congyang wrote: root_mem_cgroup-info.nodeinfo is initialized when the system boots. But NODE_DATA(nid) is null if the node is not onlined, so

[PATCH v3 00/10] mm: vma-vm_flags diet

2012-07-31 Thread Konstantin Khlebnikov
This patchset kills some VM_* flags in vma-vm_flags, as result there appears five free bits. Changes since v2 [ https://lkml.org/lkml/2012/4/7/67 ] * killing VM_EXECUTABLE combined back into single patch * new (the biggest one) patch which kills VM_RESERVED --- Konstantin Khlebnikov (8

[PATCH v3 01/10] x86, pat: remove the dependency on 'vm_pgoff' in track/untrack pfn vma routines

2012-07-31 Thread Konstantin Khlebnikov
to paddr conversion] Signed-off-by: Suresh Siddha suresh.b.sid...@intel.com Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Venkatesh Pallipadi ve...@google.com Cc: H. Peter Anvin h...@zytor.com Cc: Nick Piggin npig...@kernel.dk Cc: Ingo Molnar mi...@redhat.com --- arch/x86/mm/pat.c

[PATCH v3 02/10] x86, pat: separate the pfn attribute tracking for remap_pfn_range and vm_insert_pfn

2012-07-31 Thread Konstantin Khlebnikov
over the ownership of setting PAT specific vm_flag in the 'vma'. [khlebni...@openvz.org: Clear checks in track_pfn_remap()] Signed-off-by: Suresh Siddha suresh.b.sid...@intel.com Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Venkatesh Pallipadi ve...@google.com Cc: H. Peter Anvin

[PATCH v3 03/10] mm, x86, pat: rework linear pfn-mmap tracking

2012-07-31 Thread Konstantin Khlebnikov
the VM_PAT flag as part of untrack_pfn_vma()] Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Signed-off-by: Suresh Siddha suresh.b.sid...@intel.com Cc: Venkatesh Pallipadi ve...@google.com Cc: H. Peter Anvin h...@zytor.com Cc: Nick Piggin npig...@kernel.dk Cc: Ingo Molnar mi...@redhat.com

[PATCH v3 04/10] mm: introduce arch-specific vma flag VM_ARCH_1

2012-07-31 Thread Konstantin Khlebnikov
- VM_ARCH_1 - - And voila! One completely free bit. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org --- include/linux/mm.h | 34 +- mm/huge_memory.c |2 +- mm/ksm.c |7 ++- 3 files changed, 28

[PATCH v3 05/10] mm: kill vma flag VM_INSERTPAGE

2012-07-31 Thread Konstantin Khlebnikov
() handler under mm-mmap_sem write-lock, so it able to change vma-vm_flags. Caller must set VM_MIXEDMAP at mmap time if it wants to call this function from other places, for example from page-fault handler. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Peter Zijlstra a.p.zijls

[PATCH v3 06/10] mm: kill vma flag VM_CAN_NONLINEAR

2012-07-31 Thread Konstantin Khlebnikov
this method and obtain nonlinear vma support. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Alexander Viro v...@zeniv.linux.org.uk Cc: Nick Piggin npig...@kernel.dk Cc: Ingo Molnar mi...@redhat.com --- drivers/staging/android/ashmem.c |1 - fs/9p/vfs_file.c |1

[PATCH v3 07/10] mm: use mm-exe_file instead of first VM_EXECUTABLE vma-vm_file

2012-07-31 Thread Konstantin Khlebnikov
Some security modules and oprofile still uses VM_EXECUTABLE for retrieving task's executable file, after this patch they will use mm-exe_file directly. mm-exe_file protected with mm-mmap_sem, so locking stays the same. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Acked-by: Chris

[PATCH v3 09/10] mm: prepare VM_DONTDUMP for using in drivers

2012-07-31 Thread Konstantin Khlebnikov
mappings VM_SPECIAL (VM_IO | VM_DONTEXPAND | VM_RESERVED | VM_PFNMAP) Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Jason Baron jba...@redhat.com Cc: Nick Piggin npig...@kernel.dk Cc: Hugh Dickins hu...@google.com --- fs/binfmt_elf.c|2 +- include/linux/mm.h |2 +- mm

[PATCH v3 10/10] mm: kill vma flag VM_RESERVED and mm-reserved_vm counter

2012-07-31 Thread Konstantin Khlebnikov
into userspace directly, it only reduces total_vm showed in proc. Thus VM_RESERVED can be replaced with VM_IO or pair VM_DONTEXPAND | VM_DONTDUMP. remap_pfn_range() and io_remap_pfn_range() set VM_IO|VM_DONTEXPAND|VM_DONTDUMP. remap_vmalloc_range() set VM_DONTEXPAND | VM_DONTDUMP. Signed-off-by: Konstantin

[PATCH v3 08/10] mm: kill vma flag VM_EXECUTABLE and mm-num_exe_file_vmas

2012-07-31 Thread Konstantin Khlebnikov
with mm-mmap_sem, because we want to change it via new sys_prctl(PR_SET_MM_EXE_FILE). Also via this syscall task can change its mm-exe_file and unpin mountpoint explicitly. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Matt Helsley matth...@us.ibm.com Cc: Oleg Nesterov o

[PATCH RESEND v3 00/10] mm: vma-vm_flags diet

2012-07-31 Thread Konstantin Khlebnikov
which kills VM_RESERVED --- Konstantin Khlebnikov (8): mm, x86, pat: rework linear pfn-mmap tracking mm: introduce arch-specific vma flag VM_ARCH_1 mm: kill vma flag VM_INSERTPAGE mm: kill vma flag VM_CAN_NONLINEAR mm: use mm-exe_file instead of first VM_EXECUTABLE

[PATCH v3 01/10] x86, pat: remove the dependency on 'vm_pgoff' in track/untrack pfn vma routines

2012-07-31 Thread Konstantin Khlebnikov
to paddr conversion] Signed-off-by: Suresh Siddha suresh.b.sid...@intel.com Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Venkatesh Pallipadi ve...@google.com Cc: H. Peter Anvin h...@zytor.com Cc: Nick Piggin npig...@kernel.dk Cc: Ingo Molnar mi...@redhat.com --- arch/x86/mm/pat.c

[PATCH v3 02/10] x86, pat: separate the pfn attribute tracking for remap_pfn_range and vm_insert_pfn

2012-07-31 Thread Konstantin Khlebnikov
over the ownership of setting PAT specific vm_flag in the 'vma'. [khlebni...@openvz.org: Clear checks in track_pfn_remap()] Signed-off-by: Suresh Siddha suresh.b.sid...@intel.com Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Venkatesh Pallipadi ve...@google.com Cc: H. Peter Anvin

[PATCH v3 04/10] mm: introduce arch-specific vma flag VM_ARCH_1

2012-07-31 Thread Konstantin Khlebnikov
- VM_ARCH_1 - - And voila! One completely free bit. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org --- include/linux/mm.h | 34 +- mm/huge_memory.c |2 +- mm/ksm.c |7 ++- 3 files changed, 28

[PATCH v3 06/10] mm: kill vma flag VM_CAN_NONLINEAR

2012-07-31 Thread Konstantin Khlebnikov
this method and obtain nonlinear vma support. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Alexander Viro v...@zeniv.linux.org.uk Cc: Nick Piggin npig...@kernel.dk Cc: Ingo Molnar mi...@redhat.com --- drivers/staging/android/ashmem.c |1 - fs/9p/vfs_file.c |1

[PATCH v3 07/10] mm: use mm-exe_file instead of first VM_EXECUTABLE vma-vm_file

2012-07-31 Thread Konstantin Khlebnikov
Some security modules and oprofile still uses VM_EXECUTABLE for retrieving task's executable file, after this patch they will use mm-exe_file directly. mm-exe_file protected with mm-mmap_sem, so locking stays the same. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Acked-by: Chris

[PATCH v3 08/10] mm: kill vma flag VM_EXECUTABLE and mm-num_exe_file_vmas

2012-07-31 Thread Konstantin Khlebnikov
with mm-mmap_sem, because we want to change it via new sys_prctl(PR_SET_MM_EXE_FILE). Also via this syscall task can change its mm-exe_file and unpin mountpoint explicitly. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Matt Helsley matth...@us.ibm.com Cc: Oleg Nesterov o

[PATCH v3 10/10] mm: kill vma flag VM_RESERVED and mm-reserved_vm counter

2012-07-31 Thread Konstantin Khlebnikov
into userspace directly, it only reduces total_vm showed in proc. Thus VM_RESERVED can be replaced with VM_IO or pair VM_DONTEXPAND | VM_DONTDUMP. remap_pfn_range() and io_remap_pfn_range() set VM_IO|VM_DONTEXPAND|VM_DONTDUMP. remap_vmalloc_range() set VM_DONTEXPAND | VM_DONTDUMP. Signed-off-by: Konstantin

[PATCH v3 09/10] mm: prepare VM_DONTDUMP for using in drivers

2012-07-31 Thread Konstantin Khlebnikov
mappings VM_SPECIAL (VM_IO | VM_DONTEXPAND | VM_RESERVED | VM_PFNMAP) Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Jason Baron jba...@redhat.com Cc: Nick Piggin npig...@kernel.dk Cc: Hugh Dickins hu...@google.com --- fs/binfmt_elf.c|2 +- include/linux/mm.h |2 +- mm

[PATCH v3 05/10] mm: kill vma flag VM_INSERTPAGE

2012-07-31 Thread Konstantin Khlebnikov
() handler under mm-mmap_sem write-lock, so it able to change vma-vm_flags. Caller must set VM_MIXEDMAP at mmap time if it wants to call this function from other places, for example from page-fault handler. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Peter Zijlstra a.p.zijls

[PATCH v3 03/10] mm, x86, pat: rework linear pfn-mmap tracking

2012-07-31 Thread Konstantin Khlebnikov
the VM_PAT flag as part of untrack_pfn_vma()] Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Signed-off-by: Suresh Siddha suresh.b.sid...@intel.com Cc: Venkatesh Pallipadi ve...@google.com Cc: H. Peter Anvin h...@zytor.com Cc: Nick Piggin npig...@kernel.dk Cc: Ingo Molnar mi...@redhat.com

[PATCH] pci: convert new_id/remove_id into generic pci_bus driver attributes

2012-08-08 Thread Konstantin Khlebnikov
This patch removes hardcoded sysfs attributes manipulation and converts them into generic pci_bus-dev_attrs. This saves several bytes. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org --- drivers/pci/pci-driver.c | 57 -- 1 file changed, 10

[PATCH] drivers/watchdog/eurotechwdt: handle spurious interrupts on wrong hardware

2012-12-18 Thread Konstantin Khlebnikov
hardware, but such bugs blocks mine automatic testing for allmodconfig kernels. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Wim Van Sebroeck w...@iguana.be Cc: linux-watch...@vger.kernel.org Cc: Alan Cox a...@lxorguk.ukuu.org.uk --- by default driver uses 10th irq, on my machine

Re: [PATCH] mm/swap: abort swapoff after disk error

2012-12-18 Thread Konstantin Khlebnikov
Hugh Dickins wrote: On Fri, 14 Dec 2012, Konstantin Khlebnikov wrote: Content of non-uptodate pages completely random, we cannot expose them into userspace. This leads to information leak and will crash userspace for sure. Good find, yes, it's very wrong as is. But, sorry, I don't like your

Re: [PATCH] drivers/watchdog/eurotechwdt: handle spurious interrupts on wrong hardware

2012-12-19 Thread Konstantin Khlebnikov
Konstantin Khlebnikov wrote: eurotechwdt hasn't any PCI-ID or DMI checks, thus is can be loaded on any hardware. On my PC this leads to immediate reboot, because driver got irq right after registering irq handler. This patch rejects interrupts until device activation. There is no sense to load

Re: [PATCH] mm/swap: add independed bio pool for swap

2012-12-20 Thread Konstantin Khlebnikov
Andrew Morton wrote: On Mon, 17 Dec 2012 20:45:13 -0800 (PST) Hugh Dickinshu...@google.com wrote: On Fri, 14 Dec 2012, Konstantin Khlebnikov wrote: This bio pool guarantees reclaiming progress for anonymous pages. All avaliable bio in fs_bio_set may be borrowed by writeback which may never

Re: [REGRESSION 3.8-r1] broken pci irq/pm state for e1000e device

2013-01-01 Thread Konstantin Khlebnikov
Konstantin Khlebnikov wrote: Seems like it's unrelated to e1000e driver itself, because I tried to revert all it's changes down to 3.6 one by one and it does not help. Looks like regression somewhere in pci-bus irq or power-management. because I see underflow of counter pci_dev-enable_cnt

Re: [REGRESSION 3.8-r1] broken pci irq/pm state for e1000e device

2013-01-05 Thread Konstantin Khlebnikov
Konstantin Khlebnikov wrote: Konstantin Khlebnikov wrote: Seems like it's unrelated to e1000e driver itself, because I tried to revert all it's changes down to 3.6 one by one and it does not help. Ouch, 3.6 also affected, seems like I was more lucky at that time and bug never showed up. root

[PATCH] cpufreq_stats: fix race between stats allocation and first usage

2012-12-14 Thread Konstantin Khlebnikov
-freq_table is NULL. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Rafael J. Wysocki r...@sisk.pl Cc: cpufreq cpuf...@vger.kernel.org Cc: linux-pm linux...@vger.kernel.org --- 1[ 363.116198] BUG: unable to handle kernel NULL pointer dereference at (null) 1[ 363.116668] IP

[PATCH] drm/fb: avoid sleeping in unblank_screen() if oops in progress

2012-12-14 Thread Konstantin Khlebnikov
() drm_fb_helper_dpms() mutex_lock(dev-mode_config.mutex) Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Andrew Morton a...@linux-foundation.org Cc: David Airlie airl...@linux.ie Cc: dri-de...@lists.freedesktop.org --- drivers/gpu/drm/drm_fb_helper.c | 25 + 1 file changed

[PATCH] mm/swap: abort swapoff after disk error

2012-12-14 Thread Konstantin Khlebnikov
Content of non-uptodate pages completely random, we cannot expose them into userspace. This leads to information leak and will crash userspace for sure. Probably we can reuse hwpoison entries here, but tmpfs already too complex. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Original

[PATCH] mm/swap: add independed bio pool for swap

2012-12-14 Thread Konstantin Khlebnikov
on top of special fuse-based filesystem. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Andrew Morton a...@linux-foundation.org Cc: Hugh Dickins hu...@google.com --- mm/page_io.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/mm/page_io.c b/mm

[PATCH] x86/hpet: initialize hpet event_handler to noop

2012-12-14 Thread Konstantin Khlebnikov
() global_clock_event-event_handler() OOPS Signed-off-by: Vladimir Davydov vdavy...@parallels.com Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Thomas Gleixner t...@linutronix.de --- previous (failed) attempt of submitting this patch: http

[PATCH] ata: uncomment ata_timing for XFER_PIO_SLOW

2012-12-14 Thread Konstantin Khlebnikov
-by: Konstantin Khlebnikov khlebni...@openvz.org Signed-off-by: Borislav Petkov b...@alien8.de Signed-off-by: Jeff Garzik jgar...@redhat.com --- Sep 27 13:48:23 buzz kernel: [ 63.815060] ACPI: PCI Interrupt Link [APSI] enabled at IRQ 20 Sep 27 13:48:23 buzz kernel: [ 63.987035] scsi0 : pata_acpi Sep

[PATCH] x86/test_nx: update testing module after recent kernel changes

2012-12-14 Thread Konstantin Khlebnikov
protection for loadable kernel modules) thus fourth testcase can be enabled. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Arjan van de Ven ar...@linux.intel.com Cc: H. Peter Anvin h...@zytor.com Cc: x...@kernel.org --- sample oops on module loading before this patch: [2.343411

[PATCH 01/12] tools/testing/modules: introduce test which loads/unloads random modules

2012-12-14 Thread Konstantin Khlebnikov
--verbose --ignore-remove --ignore-install # # overriding priority: MODULES EXCLUDE_* = LOADED INCLUDE_* Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc: Jon Masters j...@redhat.com Cc: linux-modu

[PATCH 02/12] driver core: add debug-objects debug for device-drivers

2012-12-14 Thread Konstantin Khlebnikov
CONFIG_DEBUG_OBJECTS_DRIVERS together with CONFIG_DEBUG_OBJECTS_FREE can catch unloading device driver modules without proper unregistering. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Greg Kroah-Hartman gre...@linuxfoundation.org Cc: Thomas Gleixner t...@linutronix.de

[PATCH 03/12] mISDN: fix race in timer canceling on module unloading

2012-12-14 Thread Konstantin Khlebnikov
Using timer_pending() without additional syncronization is racy, del_timer_sync() must be used here for waiting in-flight handler. Bug caught with help from debug-objects during random insmod/rmmod. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Karsten Keil i...@linux-pingi.de Cc

[PATCH 05/12] staging: vme_pio2: fix oops on module unloading

2012-12-14 Thread Konstantin Khlebnikov
This patch forbids loading vme_pio2 module without specifing num_bus parameter. Otherwise on module unloading pio2_exit() calls vme_unregister_driver() for not registered pio2_driver. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Martyn Welch martyn.we...@ge.com Cc: Manohar

[PATCH 06/12] media/rc: fix oops on unloading module rc-core

2012-12-14 Thread Konstantin Khlebnikov
or cancel/wait pending work on unloading, because this leads to deadlock on modules_mutex between several modprobe processes. Signed-off-by: Konstantin Khlebnikov khlebni...@openvz.org Cc: Mauro Carvalho Chehab mche...@redhat.com Cc: linux-me...@vger.kernel.org --- drivers/media/rc/ir-raw.c

  1   2   3   4   5   6   7   8   9   10   >