Re: [PATCH] acpi: fix pwr_btn_event_pending build error

2012-07-21 Thread Kirill A. Shutemov
ion of _GTS on > suspend."); > MODULE_PARM_DESC(bfs, "Enable evaluation of _BFS on resume".); > > static u8 sleep_states[ACPI_S_STATE_COUNT]; > +#ifdef CONFIG_ACPI_SLEEP > static bool pwr_btn_event_pending; > +#endif /* #ifdef CONFIG_ACPI_SLEEP */

Re: [PATCH] acpi: fix pwr_btn_event_pending build error

2012-07-21 Thread Kirill A. Shutemov
On Sat, Jul 21, 2012 at 04:37:14PM -0700, Paul E. McKenney wrote: > On Sun, Jul 22, 2012 at 12:52:43AM +0300, Kirill A. Shutemov wrote: > > On Sat, Jul 21, 2012 at 02:41:56PM -0700, Paul E. McKenney wrote: > > > Hello! > > > > > > A recent build for KVM on

Re: [GIT PULL] x86/build change for v3.6

2012-07-22 Thread Kirill A. Shutemov
cflags-$(CONFIG_MPSC) += $(call cc-option,-march=nocona) > -- > 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 http://vger.kernel.org/majordomo-info.html > Plea

Re: [GIT PULL] x86/build change for v3.6

2012-07-23 Thread Kirill A. Shutemov
On Sun, Jul 22, 2012 at 04:22:04PM +0200, Ingo Molnar wrote: > > * Kirill A. Shutemov wrote: > > > On Sun, Jul 22, 2012 at 03:44:51PM +0200, Ingo Molnar wrote: > > > Linus, > > > > > > Please pull the latest x86-build-for-linus git tree from: > >

[PATCH 1/2] perf: fix build error

2012-07-23 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" util/parse-events.c:29:5: error: redundant redeclaration of ‘parse_events_parse’ [-Werror=redundant-decls] In file included from util/parse-events.c:14:0: util/parse-events-bison.h:99:5: note: previous declaration of ‘parse_events_parse’ was here cc1: al

[PATCH 2/2] perf: use XSI-complaint version of strerror_r() instead of GNU-specific

2012-07-23 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" Perf uses GNU-specific version of strerror_r(). The GNU-specific strerror_r() returns a pointer to a string containing the error message. This may be either a pointer to a string that the function stores in buf, or a pointer to some (immutable) static string

Re: [PATCH 1/2] perf: fix build error

2012-07-23 Thread Kirill A. Shutemov
On Mon, Jul 23, 2012 at 08:02:44PM +0200, Arnaldo Carvalho de Melo wrote: > Em Mon, Jul 23, 2012 at 06:00:44PM +0300, Kirill A. Shutemov escreveu: > > From: "Kirill A. Shutemov" > > > > util/parse-events.c:29:5: error: redundant redeclaration of > > ‘parse_e

Re: [PATCH 1/2] perf: fix build error

2012-07-23 Thread Kirill A. Shutemov
On Mon, Jul 23, 2012 at 08:18:49PM +0200, Arnaldo Carvalho de Melo wrote: > Em Mon, Jul 23, 2012 at 09:16:08PM +0300, Kirill A. Shutemov escreveu: > > On Mon, Jul 23, 2012 at 08:02:44PM +0200, Arnaldo Carvalho de Melo wrote: > > > Em Mon, Jul 23, 2012 at 06:00:44PM +0300,

Re: [PATCH 2/2] perf: use XSI-complaint version of strerror_r() instead of GNU-specific

2012-07-23 Thread Kirill A. Shutemov
On Mon, Jul 23, 2012 at 02:00:33PM -0400, Ulrich Drepper wrote: > On Mon, Jul 23, 2012 at 11:00 AM, Kirill A. Shutemov > wrote: > > The right way to fix it is to switch to XSI-compliant version. > > And why exactly would this be "the right way"? Just fix th

Re: [PATCH 1/2] perf: fix build error

2012-07-23 Thread Kirill A. Shutemov
On Mon, Jul 23, 2012 at 10:51:46PM +0300, Kirill A. Shutemov wrote: > On Mon, Jul 23, 2012 at 08:18:49PM +0200, Arnaldo Carvalho de Melo wrote: > > Em Mon, Jul 23, 2012 at 09:16:08PM +0300, Kirill A. Shutemov escreveu: > > > On Mon, Jul 23, 2012 at 08:02:44PM +0200, Arnaldo Carv

Re: [PATCH 2/2] perf: use XSI-complaint version of strerror_r() instead of GNU-specific

2012-07-23 Thread Kirill A. Shutemov
On Mon, Jul 23, 2012 at 04:48:22PM -0400, Ulrich Drepper wrote: > On Mon, Jul 23, 2012 at 4:31 PM, Kirill A. Shutemov > wrote: > > + const char *err = strerror_r(errnum, buf, buflen); > > + > > + if (err != buf && buflen > 0) { >

Re: [PATCH, RFC 0/6] Avoid cache trashing on clearing huge/gigantic page

2012-07-24 Thread Kirill A. Shutemov
On Mon, Jul 23, 2012 at 04:30:20PM -0700, Andrew Morton wrote: > On Fri, 20 Jul 2012 15:50:16 +0300 > "Kirill A. Shutemov" wrote: > > > Clearing a 2MB huge page will typically blow away several levels of CPU > > caches. To avoid this only cache clear the 4K area a

Re: [PATCH 15/19] perf tools: use XSI-complaint version of strerror_r() instead of GNU-specific

2012-07-25 Thread Kirill A. Shutemov
Could you take subject from updated patch? This one: perf: fix strerror_r() usage -- Kirill A. Shutemov -- 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 http://vger.kernel.org

Re: [PATCH 02/10] consider a memcg parameter in kmem_create_cache

2012-07-25 Thread Kirill A. Shutemov
f (!memcg) > + id = ida_simple_get(&cache_types, 0, MAX_KMEM_CACHE_TYPES, > + GFP_KERNEL); MAX_KMEM_CACHE_TYPES is 0 if CONFIG_MEMCG_KMEM undefined. If 'end' parameter of ida_simple_get() is 0 it will use default max value which is 0x8000. I guess you want MAX_KMEM_CACHE_T

Re: [PATCH 01/10] slab/slub: struct memcg_params

2012-07-25 Thread Kirill A. Shutemov
#ifdef CONFIG_MEMCG_KMEM > +struct mem_cgroup_cache_params { > + struct mem_cgroup *memcg; > + int id; > +}; IIUC, we only need the id to make slab name unique. Why can't we embed the id to struct mem_cgroup? Is it possible to have multiple slabs with the same combination o

Re: [PATCH 03/10] memcg: infrastructure to match an allocation to the right cache

2012-07-25 Thread Kirill A. Shutemov
(s->flags & ~SLAB_PANIC), s->ctor); > + > + kfree(name); > + return new; > +} > + > struct ida cache_types; > > void memcg_register_cache(struct mem_cgroup *memcg, struct kmem_cache > *cachep) > @@ -656,6 +699,14 @@ void __memcg_kmem_free_page(struct page *page, int order) > } > EXPORT_SYMBOL(__memcg_kmem_free_page); > > +static void memcg_slab_init(struct mem_cgroup *memcg) > +{ > + int i; > + > + for (i = 0; i < MAX_KMEM_CACHE_TYPES; i++) > + memcg->slabs[i] = NULL; > +} It seems redundant. mem_cgroup_alloc() uses kzalloc()/vzalloc() to allocate struct mem_cgroup. -- Kirill A. Shutemov -- 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 http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH v3 6/7] mm: make clear_huge_page cache clear only around the fault address

2012-08-16 Thread Kirill A. Shutemov
On Thu, Aug 16, 2012 at 08:29:44PM +0200, Andrea Arcangeli wrote: > On Thu, Aug 16, 2012 at 07:43:56PM +0300, Kirill A. Shutemov wrote: > > Hm.. I think with static_key we can avoid cache overhead here. I'll try. > > Could you elaborate on the static_key? Is it some sort of s

Re: [PATCH, RFC 6/9] thp: add address parameter to split_huge_page_pmd()

2012-08-17 Thread Kirill A. Shutemov
On Thu, Aug 16, 2012 at 09:42:01PM +0200, Andrea Arcangeli wrote: > On Thu, Aug 09, 2012 at 12:08:17PM +0300, Kirill A. Shutemov wrote: > > From: "Kirill A. Shutemov" > > > > It's required to implement huge zero pmd splitting. > > > > This isn&#x

Re: [PATCH, RFC 7/9] thp: implement splitting pmd for huge zero page

2012-08-17 Thread Kirill A. Shutemov
On Thu, Aug 16, 2012 at 09:27:38PM +0200, Andrea Arcangeli wrote: > On Thu, Aug 09, 2012 at 12:08:18PM +0300, Kirill A. Shutemov wrote: > > +static void __split_huge_zero_page_pmd(struct mm_struct *mm, pmd_t *pmd, > > + unsigned long address) > > +{ >

[PATCH v4 3/8] hugetlb: pass fault address to hugetlb_no_page()

2012-08-20 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" Signed-off-by: Kirill A. Shutemov --- mm/hugetlb.c | 38 +++--- 1 files changed, 19 insertions(+), 19 deletions(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index bc72712..3c86d3d 100644 --- a/mm/hugetlb.c +++ b/mm

[PATCH v4 4/8] mm: pass fault address to clear_huge_page()

2012-08-20 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" Signed-off-by: Kirill A. Shutemov --- include/linux/mm.h |2 +- mm/huge_memory.c |2 +- mm/hugetlb.c |3 ++- mm/memory.c|7 --- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/include/linux/mm.h b/include/

[PATCH v4 5/8] x86: Add clear_page_nocache

2012-08-20 Thread Kirill A. Shutemov
hook in. This is not needed on x86 of course. If an architecture wants to provide cache avoiding version of clear_page it should to define ARCH_HAS_USER_NOCACHE to 1 and implement clear_page_nocache() and clear_user_highpage_nocache(). Signed-off-by: Andi Kleen Signed-off-by: Kirill A. Shutemov

[PATCH v4 8/8] mm: implement vm.clear_huge_page_nocache sysctl

2012-08-20 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" In some cases cache avoiding clearing huge page may slow down workload. Let's provide an sysctl handle to disable it. We use static_key here to avoid extra work on fast path. Signed-off-by: Kirill A. Shutemov --- Documentation/sysct

[PATCH v4 0/8] Avoid cache trashing on clearing huge/gigantic page

2012-08-20 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" Clearing a 2MB huge page will typically blow away several levels of CPU caches. To avoid this only cache clear the 4K area around the fault address and use a cache avoiding clears for the rest of the 2MB area. This patchset implements cache avoiding

[PATCH v4 1/8] THP: Use real address for NUMA policy

2012-08-20 Thread Kirill A. Shutemov
From: Andi Kleen Use the fault address, not the rounded down hpage address for NUMA policy purposes. In some circumstances this can give more exact NUMA policy. Signed-off-by: Andi Kleen Signed-off-by: Kirill A. Shutemov --- mm/huge_memory.c |8 1 files changed, 4 insertions

[PATCH v4 7/8] x86: switch the 64bit uncached page clear to SSE/AVX v2

2012-08-20 Thread Kirill A. Shutemov
: Properly save/restore arguments] Signed-off-by: Kirill A. Shutemov --- arch/x86/lib/clear_page_64.S | 79 ++ 1 files changed, 64 insertions(+), 15 deletions(-) diff --git a/arch/x86/lib/clear_page_64.S b/arch/x86/lib/clear_page_64.S index 9d2f3c2..b302cff 100644

[PATCH v4 6/8] mm: make clear_huge_page cache clear only around the fault address

2012-08-20 Thread Kirill A. Shutemov
From: Andi Kleen Clearing a 2MB huge page will typically blow away several levels of CPU caches. To avoid this only cache clear the 4K area around the fault address and use a cache avoiding clears for the rest of the 2MB area. Signed-off-by: Andi Kleen Signed-off-by: Kirill A. Shutemov

[PATCH v4 2/8] THP: Pass fault address to __do_huge_pmd_anonymous_page()

2012-08-20 Thread Kirill A. Shutemov
From: Andi Kleen Signed-off-by: Andi Kleen Signed-off-by: Kirill A. Shutemov --- mm/huge_memory.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 70737ec..6f0825b611 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c

Re: [RFC, PATCH] CLONE_NEWIPC and exit_group()

2012-07-10 Thread Kirill A. Shutemov
On Tue, Jun 26, 2012 at 03:04:25PM +0300, Kirill A. Shutemov wrote: > Hi, > > Patch to move kern_unmount() out of exit_group() code path is below. Andrew, do you have any opinion about the patch? > Dmitry, could you check if it's beneficial for your use-case? > &g

Re: [RFC, PATCH] CLONE_NEWIPC and exit_group()

2012-07-12 Thread Kirill A. Shutemov
*/ - synchronize_rcu(); - free_nsproxy(ns); - } + if (ns && atomic_dec_and_test(&ns->count)) + schedule_work(&ns->free_nsproxy_work); } void exit_task_namespaces(struct task_struct *p) -- Kirill A. Shutemov signature.asc Description: Digital signature

[PATCH] ns: move free_nsproxy() out of do_exit() path

2012-07-13 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" free_nsproxy() is too heavy to be on exit path. Let's free namespaces asynchronously to not block exit_group() syscall. Microbenchmark: : #define _GNU_SOURCE : #include : #include : #include : #include : : int : main(void) : { : int i; :

Re: uhid: broken interface: 32/64-bit compatibility

2013-02-15 Thread Kirill A. Shutemov
Johan Hedberg wrote: > Hi David, > > On Fri, Feb 15, 2013, David Herrmann wrote: > > On Fri, Feb 15, 2013 at 12:29 PM, Kirill A. Shutemov > > wrote: > > > Hi David and all, > > > > > > There's claim in uhid.h that the interface is "comp

Re: uhid: broken interface: 32/64-bit compatibility

2013-02-18 Thread Kirill A. Shutemov
Dmitry Torokhov wrote: > On Fri, Feb 15, 2013 at 03:51:41PM +0200, Kirill A. Shutemov wrote: > > Johan Hedberg wrote: > > > Hi David, > > > > > > On Fri, Feb 15, 2013, David Herrmann wrote: > > > > On Fri, Feb 15, 2013 at 12:29 PM, Kirill A. Shu

Re: [PATCH] cgroup: fail if monitored file and event_control are in different cgroup

2013-02-18 Thread Kirill A. Shutemov
'll end up > accessing NULL pointer! > > Disallow this kind of invalid usage. > > Signed-off-by: Li Zefan Acked-by: Kirill A. Shutemov -- Kirill A. Shutemov -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to ma

Re: [PATCH v2] cgroup: fix cgroup_rmdir() vs close(eventfd) race

2013-02-18 Thread Kirill A. Shutemov
ce. > + */ > + if (event->signal_on_remove) > + eventfd_signal(event->eventfd, 1); It's safe to notify anyway, isn't it? Let's just drop signal_on_remove. Otherwise, look good. Acked-by: Kirill A. Shutemov -- Kirill A. Shutemov -- To unsubscribe f

Re: [PATCH v3 07/10] thp: implement splitting pmd for huge zero page

2012-10-11 Thread Kirill A. Shutemov
On Fri, Oct 12, 2012 at 11:23:37AM +0800, Ni zhan Chen wrote: > On 10/02/2012 11:19 PM, Kirill A. Shutemov wrote: > >From: "Kirill A. Shutemov" > > > >We can't split huge zero page itself, but we can split the pmd which > >points to it. > > > &g

[PATCH v4 01/10] thp: huge zero page: basic preparation

2012-10-14 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" Huge zero page (hzp) is a non-movable huge page (2M on x86-64) filled with zeros. For now let's allocate the page on hugepage_init(). We'll switch to lazy allocation later. We are not going to map the huge zero page until we can handle it proper

[PATCH v4 09/10] thp: lazy huge zero page allocation

2012-10-14 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" Instead of allocating huge zero page on hugepage_init() we can postpone it until first huge zero page map. It saves memory if THP is not in use. cmpxchg() is used to avoid race on huge_zero_pfn initialization. Signed-off-by: Kirill A. Shutemov --- mm/hug

[PATCH v4 07/10] thp: implement splitting pmd for huge zero page

2012-10-14 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" We can't split huge zero page itself (and it's bug if we try), but we can split the pmd which points to it. On splitting the pmd we create a table with all ptes set to normal zero page. Signed-off-by: Kirill A. Shutemov --- mm/

[PATCH v4 08/10] thp: setup huge zero page on non-write page fault

2012-10-14 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" All code paths seems covered. Now we can map huge zero page on read page fault. We setup it in do_huge_pmd_anonymous_page() if area around fault address is suitable for THP and we've got read page fault. If we fail to setup huge zero page (ENOMEM)

[PATCH v4 05/10] thp: change_huge_pmd(): keep huge zero page write-protected

2012-10-14 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" We want to get page fault on write attempt to huge zero page, so let's keep it write-protected. Signed-off-by: Kirill A. Shutemov --- mm/huge_memory.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/mm/huge_memory.c b/mm/huge

[PATCH v4 00/10, REBASED] Introduce huge zero page

2012-10-14 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" Hi, Andrew, here's huge zero page patchset rebased to v3.7-rc1. Andrea, I've dropped your Reviewed-by due not-so-trivial conflicts in during rebase. Could you look through it again. Patches 2, 3, 4, 7, 10 had conflicts. Mostly due new MMU

[PATCH v4 02/10] thp: zap_huge_pmd(): zap huge zero pmd

2012-10-14 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" We don't have a real page to zap in huge zero page case. Let's just clear pmd and remove it from tlb. Signed-off-by: Kirill A. Shutemov --- mm/huge_memory.c | 21 + 1 files changed, 13 insertions(+), 8 deletions

[PATCH v4 10/10] thp: implement refcounting for huge zero page

2012-10-14 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" H. Peter Anvin doesn't like huge zero page which sticks in memory forever after the first allocation. Here's implementation of lockless refcounting for huge zero page. We have two basic primitives: {get,put}_huge_zero_page(). They manipulate re

[PATCH v4 06/10] thp: change split_huge_page_pmd() interface

2012-10-14 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" Pass vma instead of mm and add address parameter. In most cases we already have vma on the stack. We provides split_huge_page_pmd_mm() for few cases when we have mm, but not vma. This change is preparation to huge zero pmd splitting implementation. Sig

[PATCH v4 04/10] thp: do_huge_pmd_wp_page(): handle huge zero page

2012-10-14 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" On write access to huge zero page we alloc a new huge page and clear it. If ENOMEM, graceful fallback: we create a new pmd table and set pte around fault address to newly allocated normal (4k) page. All other ptes in the pmd set to normal zero page. Sig

[PATCH v4 03/10] thp: copy_huge_pmd(): copy huge zero page

2012-10-14 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" It's easy to copy huge zero page. Just set destination pmd to huge zero page. It's safe to copy huge zero page since we have none yet :-p Signed-off-by: Kirill A. Shutemov --- mm/huge_memory.c | 17 + 1 files changed, 17 insert

Re: [PATCH v4 00/10, REBASED] Introduce huge zero page

2012-10-16 Thread Kirill A. Shutemov
190,424,932 branches # 80.195 M/sec > > ( +- 0.12% ) [41.66%] > > 1,028,630 branch-misses #0.05% of all branches > > ( +- 1.50% ) [41.66%] > > 3,302,006,540 L1-dcache-loads > > #

Re: [PATCH v4 00/10, REBASED] Introduce huge zero page

2012-10-16 Thread Kirill A. Shutemov
On Tue, Oct 16, 2012 at 07:13:07PM +0800, Ni zhan Chen wrote: > On 10/16/2012 06:54 PM, Kirill A. Shutemov wrote: > >On Tue, Oct 16, 2012 at 05:53:07PM +0800, Ni zhan Chen wrote: > >>>By hpa request I've tried alternative approach for hzp implementation (see > >&

Re: [RFC v3 0/3] vmpressure_fd: Linux VM pressure notifications

2012-11-21 Thread Kirill A. Shutemov
nto Anton's > scheme BTW, there's interface for OOM notification in memcg. See oom_control. I guess other pressure levels can also fit to the interface. -- Kirill A. Shutemov -- 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 http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: 3.8-rc1 build failure with MIPS/SPARSEMEM

2013-01-14 Thread Kirill A. Shutemov
On Sun, Dec 30, 2012 at 12:38:50PM +0200, Kirill A. Shutemov wrote: > On Thu, Dec 27, 2012 at 02:16:07PM +0200, Aaro Koskinen wrote: > > Hi, > > > > On Wed, Dec 26, 2012 at 02:34:35AM +0200, Kirill A. Shutemov wrote: > > > On MIPS if SPARSEMEM is enabled we

Re: [PATCH 0/2] kernel BUG at mm/huge_memory.c:212!

2012-12-12 Thread Kirill A. Shutemov
On Wed, Dec 12, 2012 at 01:36:36PM +0800, Bob Liu wrote: > On Mon, Dec 3, 2012 at 9:02 PM, Jiri Slaby wrote: > > On 11/30/2012 04:03 PM, Kirill A. Shutemov wrote: > >> From: "Kirill A. Shutemov" > >> > >> Hi Jiri, > >> > >> Sorr

Re: [PATCH] mm: introduce numa_zero_pfn

2012-12-12 Thread Kirill A. Shutemov
coloring for zero page. Do you have benchmark numbers? -- Kirill A. Shutemov signature.asc Description: Digital signature

Re: [PATCH v5 09/11] thp: lazy huge zero page allocation

2012-12-12 Thread Kirill A. Shutemov
nst a > > thp huge page, yes? In which case it's a quite infrequent event and I > > suspect this isn't worth bothering about. > > > > Not to mention that flipping the static key is *incredibly* expensive. I'm fine with current code. -- Kirill A. Shutemov signature.asc Description: Digital signature

[PATCH 2/3] PCI Hotplug: convert acpiphp_hp_work to use delayed work

2012-12-13 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" Some broken ACPI PCI Hotplug implementations notify OS about hotplug before devices ready to be enumerated. Let's convert acpiphp_hp_work to delayed work. It will allow to delay enumeration on broken hardware to workaround the issue. Signed-off-by: Kir

[PATCH 3/3] PCI Hotplug: workaround for Thunderbolt on Intel DZ77RE-75K motherboard

2012-12-13 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" BIOS on Intel DZ77RE-75K motherboard notifies OS about Thunderbolt hotplug before devices behind Thunderbolt are ready to be enumerated. Let's delay enumeration by 2 seconds. Signed-off-by: Kirill A. Shutemov --- drivers/pci/hotplug/acpiph

[PATCH 1/3] PCI Hotplug: workaround for Thunderbolt on Acer Aspire S5

2012-12-13 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" Correct ACPI PCI hotplug imeplementation should have _RMV method in a PCI slot (device under pci bridge). In Acer Aspire S5 case we have it deeper in hierarchy: Device (RP05) { // ... Device (HRUP) { // ... De

[PATCH 0/3] Thunderbolt workarounds

2012-12-13 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" I had chance to test two PC setups with Thunderbolt: Acer Aspire S5 and Intel DZ77RE-75K motherboard. Unfortunately, both of them are broken in different ways. This patchset contains workarounds for the issues. Kirill A. Shutemov (3): PCI Hotplug: work

Re: [PATCH 1/3] PCI Hotplug: workaround for Thunderbolt on Acer Aspire S5

2012-12-13 Thread Kirill A. Shutemov
On Thu, Dec 13, 2012 at 10:44:41AM -0800, Greg KH wrote: > On Thu, Dec 13, 2012 at 05:31:46PM +0200, Kirill A. Shutemov wrote: > > From: "Kirill A. Shutemov" > > > > Correct ACPI PCI hotplug imeplementation should have _RMV method in a > > PCI slot (device

Re: [PATCH 3/3] PCI Hotplug: workaround for Thunderbolt on Intel DZ77RE-75K motherboard

2012-12-13 Thread Kirill A. Shutemov
On Thu, Dec 13, 2012 at 10:48:20AM -0800, Greg KH wrote: > On Thu, Dec 13, 2012 at 05:31:48PM +0200, Kirill A. Shutemov wrote: > > From: "Kirill A. Shutemov" > > > > BIOS on Intel DZ77RE-75K motherboard notifies OS about Thunderbolt > > hotplug before devic

Re: [PATCH 3/3] PCI Hotplug: workaround for Thunderbolt on Intel DZ77RE-75K motherboard

2012-12-13 Thread Kirill A. Shutemov
reasingly long delays > (ie something like start with 10ms, then double the delay until you > hit 1s, and then just give up: end result, ~2s total wait, but 10ms > for any sane device that doesn't suck). PCI rescan is expensive and generate noise in dmesg. We'll end up with tons

Re: [PATCH 3/3] PCI Hotplug: workaround for Thunderbolt on Intel DZ77RE-75K motherboard

2012-12-14 Thread Kirill A. Shutemov
m. Even worse: there's no way to distinguish between plug and unplug events and kernel uses the same code path for both cases. -- Kirill A. Shutemov signature.asc Description: Digital signature

Re: [PATCH 1/3] PCI Hotplug: workaround for Thunderbolt on Acer Aspire S5

2012-12-14 Thread Kirill A. Shutemov
On Thu, Dec 13, 2012 at 05:22:25PM -0700, Bjorn Helgaas wrote: > [+cc Rafael] > > On Thu, Dec 13, 2012 at 8:31 AM, Kirill A. Shutemov > wrote: > > From: "Kirill A. Shutemov" > > > > Correct ACPI PCI hotplug imeplementation should have _RMV method in a &g

BUG: MAX_LOCK_DEPTH too low!

2012-12-17 Thread Kirill A. Shutemov
39152] [] sys_ioctl+0x91/0xb0 [ 1145.439158] [] ? trace_hardirqs_on_thunk+0x3a/0x3f [ 1145.439163] [] system_call_fastpath+0x1a/0x1f -- Kirill A. Shutemov -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordom

[PATCH 2/3] mm, thp: implement virtual huge zero page

2012-09-28 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" Virtual huge zero page is a PMD table with all entries set to zero page. When we get write-protect page fault to zero page in such PMD we drop the whole page table and allow THP (if enabled) to allocate a real memory instead. The implementatio

[PATCH 3/3] x86: implement HAVE_PMD_SPECAIL

2012-09-28 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" We can use the same bit as for special PTE. There's no conflict with _PAGE_SPLITTING since it's only defined for PSE pmd, but special PMD is only valid for non-PSE. Signed-off-by: Kirill A. Shutemov --- arch/x86/Kconfig |1 +

[PATCH 0/3] Virtual huge zero page

2012-09-28 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" Here's alternative implementation of huge zero page: virtual huge zero page. Virtual huge zero page is a PMD table with all entries set to zero page. H. Peter Anvin asked to evaluate this implementation option. Pros: - cache friendly (not yet benchm

[PATCH 1/3] asm-generic: introduce pmd_special() and pmd_mkspecial()

2012-09-28 Thread Kirill A. Shutemov
From: "Kirill A. Shutemov" Special PMD is similar to special PTE: it requires special handling. Currently, it's needed to mark PMD with all PTEs set to zero page. If an arch wants to provide support of special PMD it need to select HAVE_PMD_SPECIAL config option and implement pm

Re: [PATCH 0/3] Virtual huge zero page

2012-10-01 Thread Kirill A. Shutemov
[83.32%] 13,509,150,683 branches # 445.447 M/sec ( +- 0.11% ) [83.34%] 1,017,667 branch-misses #0.01% of all branches ( +- 1.07% ) [83.32%] 30.381324695 seconds time elapsed ( +- 0.13% ) On Westm

Re: [PATCH] mm: thp: Set the accessed flag for old pages on access fault.

2012-10-01 Thread Kirill A. Shutemov
it to 'else' is wrong. You should not touch pmd, if it's under splitting. > } > + > return 0; > } > } -- Kirill A. Shutemov -- To unsubscribe from this list: send the line "unsubscribe linux-kern

Re: [PATCH 0/3] Virtual huge zero page

2012-10-01 Thread Kirill A. Shutemov
some applications/macrobenchmarks benefit, and I think those > are the right thing to look at. I think performance is not the first thing we should look at. We need to choose which implementation is easier to support. Applications which benefit from zero page are quite rare. We need to provid

Re: [PATCH 0/3] Virtual huge zero page

2012-10-01 Thread Kirill A. Shutemov
On Mon, Oct 01, 2012 at 06:14:37PM +0200, Andrea Arcangeli wrote: > On Mon, Oct 01, 2012 at 04:49:48PM +0300, Kirill A. Shutemov wrote: > > On Sat, Sep 29, 2012 at 04:37:37PM +0200, Andrea Arcangeli wrote: > > > But I agree we need to verify it before taking a decision, and that

Re: [PATCH 0/3] Virtual huge zero page

2012-10-01 Thread Kirill A. Shutemov
On Mon, Oct 01, 2012 at 10:33:12AM -0700, H. Peter Anvin wrote: > Overall, I'm okay with either as long as we don't lock down 2 MB when > there isn't a huge zero page in use. Is shinker-reclaimable huge zero page okay for you? -- Kirill A. Shutemov -- To unsubscribe fro

Re: [PATCH 0/3] Virtual huge zero page

2012-10-01 Thread Kirill A. Shutemov
On Mon, Oct 01, 2012 at 10:37:23AM -0700, H. Peter Anvin wrote: > One can otherwise argue that if hzp doesn't matter for except in a small > number of cases that we shouldn't use it at all. These small number of cases can easily trigger OOM if THP is enabled. :) -- Kirill A

Re: [PATCH 0/3] Virtual huge zero page

2012-10-01 Thread Kirill A. Shutemov
On Mon, Oct 01, 2012 at 10:52:06AM -0700, H. Peter Anvin wrote: > On 10/01/2012 10:44 AM, Kirill A. Shutemov wrote: > > On Mon, Oct 01, 2012 at 10:37:23AM -0700, H. Peter Anvin wrote: > >> One can otherwise argue that if hzp doesn't matter for except in a small >

PAGE_CACHE_SIZE vs. PAGE_SIZE

2013-01-18 Thread Kirill A. Shutemov
abling. Is it time to get rid of PAGE_CACHE_* macros? I can prepare patchset if it's okay. -- Kirill A. Shutemov signature.asc Description: Digital signature

Re: [PATCH 00/36] AArch64 Linux kernel port

2012-07-07 Thread Kirill A. Shutemov
? Without those it's > impossible for people outside ARM to build the toolchain and kernel. I guess ARM doesn't want to expose instruction set details before the time. ;) -- Kirill A. Shutemov -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the bo

Re: oops in copy_page_rep()

2013-01-08 Thread Kirill A. Shutemov
The check should be moved up. > Also, do we actually need it for huge_pmd_set_accessed()? The > *placement* of that thing confuses me. And because it confuses me, I'd > like to understand it. We need it for huge_pmd_set_accessed() too. Looks like a mis-merge. The original patch

Re: oops in copy_page_rep()

2013-01-08 Thread Kirill A. Shutemov
On Tue, Jan 08, 2013 at 08:52:14AM -0800, Linus Torvalds wrote: > On Tue, Jan 8, 2013 at 8:31 AM, Kirill A. Shutemov > wrote: > >> > >> Heh. I was more thinking about why do_huge_pmd_wp_page() needs it, but > >> do_huge_pmd_numa_page() does not. > > &g

Re: oops in copy_page_rep()

2013-01-08 Thread Kirill A. Shutemov
On Tue, Jan 08, 2013 at 06:49:51PM +0100, Andrea Arcangeli wrote: > Hi Kirill, > > On Tue, Jan 08, 2013 at 07:30:58PM +0200, Kirill A. Shutemov wrote: > > Merged patch is obviously broken: huge_pmd_set_accessed() can be called > > only if the pmd is under splitting. >

Re: 2.6.24-rc3-mm1: usb mouse doesn't work

2007-11-21 Thread Kirill A. Shutemov
ub 4-0:1.0: 2 ports detected usb usb4: new device found, idVendor=, idProduct= usb usb4: new device strings: Mfr=3, Product=2, SerialNumber=1 usb usb4: Product: UHCI Host Controller usb usb4: Manufacturer: Linux 2.6.24-kas-alt1 uhci_hcd usb usb4: SerialNumber: :00:1d.3 uhci_hcd 0000:00:1

Re: 2.6.24-rc3-mm1

2007-11-21 Thread Kirill A. Shutemov
failed); > EXPORT_SYMBOL(__down_failed_interruptible); > @@ -22,3 +23,4 @@ EXPORT_SYMBOL(__put_user_8); > EXPORT_SYMBOL(strstr); > > EXPORT_SYMBOL(csum_partial); > +EXPORT_SYMBOL(empty_zero_page); > _ Symbol init_level4_pgt is needed by nvidia module. Is it really need to unexport it? -- Regards, Kirill A. Shutemov + Belarus, Minsk + Velesys LLC, http://www.velesys.com/ + ALT Linux Team, http://www.altlinux.com/ signature.asc Description: Digital signature

Re: 2.6.24-rc3-mm1 - Kernel Panic on IO-APIC

2007-11-22 Thread Kirill A. Shutemov
mer doesn't work! Try using > > > >> the 'noapic' kernel parameter > > I seen an identical error. This bug is also reproducible with qemu. -- Regards, Kirill A. Shutemov + Belarus, Minsk + Velesys LLC, http://www.velesys.com/ + ALT Linux Team, http://www.altlinux.com/ signature.asc Description: Digital signature

Re: 2.6.24-rc3-mm1: usb mouse doesn't work

2007-11-22 Thread Kirill A. Shutemov
On [Wed, 21.11.2007 14:22], Andrew Morton wrote: > On Wed, 21 Nov 2007 20:23:46 +0200 > "Kirill A. Shutemov" <[EMAIL PROTECTED]> wrote: > > > USB mouse(Logitech M-BT58) doesn't work. TouchPad works. > > dmesg after rmmod usbcore && modprobe uh

Re: 2.6.24-rc3-mm1

2007-11-22 Thread Kirill A. Shutemov
On x86_64 'uname -m' return 'x86'. It break many userspace programs. apt and rpm for example. -- Regards, Kirill A. Shutemov + Belarus, Minsk + Velesys LLC, http://www.velesys.com/ + ALT Linux Team, http://www.altlinux.com/ signature.asc Description: Digital signature

Re: [linux-usb-devel] 2.6.24-rc3-mm1: usb mouse doesn't work

2007-11-22 Thread Kirill A. Shutemov
rned off a > > > particular bit after a 4-us delay. If the udelay() function wasn't > > > working right, it could cause this problem. > > > > udelay() _is_ OK for 2.6.24-rc3, so it is not the cause of the problem > > But is it OK for 2.6.24-rc3-mm1? Kirill said specifically that > 2.6.24-rc3 does not display the message but 2.6.24-rc3-mm1 does. How can I test it? -- Regards, Kirill A. Shutemov + Belarus, Minsk + Velesys LLC, http://www.velesys.com/ + ALT Linux Team, http://www.altlinux.com/ signature.asc Description: Digital signature

Re: 2.6.24-rc3-mm1

2007-11-22 Thread Kirill A. Shutemov
On [Fri, 23.11.2007 01:48], Thomas Gleixner wrote: > On Thu, 22 Nov 2007, Andrew Morton wrote: > > > On Thu, 22 Nov 2007 12:22:05 +0200 "Kirill A. Shutemov" <[EMAIL PROTECTED]> > > wrote: > > > > > On x86_64 'uname -m' return 

[PATCH 0/4] Unexport several headers and cleanup

2007-10-30 Thread Kirill A. Shutemov
This series of patches unexport several unneeded(I guess) headers from userspace. Patches based on patch posted to linux-kernel@ by Mike Frysinger in July. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info a

[PATCH 2/4] Unexport asm/elf.h

2007-10-30 Thread Kirill A. Shutemov
Do not export asm/elf.h during make headers_install. Signed-off-by: Kirill A. Shutemov <[EMAIL PROTECTED]> --- include/asm-generic/Kbuild.asm |3 --- include/linux/Kbuild |2 +- include/linux/elf.h|2 ++ include/linux/elfcore.h|2 ++ 4 files c

[PATCH 1/4] Unexport asm/page.h

2007-10-30 Thread Kirill A. Shutemov
Do not export asm/page.h during make headers_install. This removes PAGE_SIZE from userspace headers. Signed-off-by: Kirill A. Shutemov <[EMAIL PROTECTED]> --- include/asm-frv/Kbuild |1 - include/asm-generic/Kbuild.asm |1 - include/asm-s390/kexec.h |2 ++ inclu

[PATCH 3/4] Unexport asm/user.h and linux/user.h

2007-10-30 Thread Kirill A. Shutemov
Do not export asm/user.h and linux/user.h during make headers_install. Signed-off-by: Kirill A. Shutemov <[EMAIL PROTECTED]> --- include/asm-generic/Kbuild.asm |1 - include/asm-x86/Kbuild |2 -- include/linux/Kbuild |1 - include/linux/elfcore.h|2

[PATCH 4/4] Cleanup asm/{elf,page,user}.h: #ifdef __KERNEL__ is no longer needed

2007-10-30 Thread Kirill A. Shutemov
asm/elf.h, asm/page.h and asm/user.h don't export to userspace now, so we can drop #ifdef __KERNEL__ for them. Signed-off-by: Kirill A. Shutemov <[EMAIL PROTECTED]> --- include/asm-alpha/elf.h |3 --- include/asm-alpha/page.h |3 --- include/asm-arm/elf.h

Re: [PATCH 0/4] Unexport several headers and cleanup

2007-10-30 Thread Kirill A. Shutemov
On [Tue, 30.10.2007 08:47], David Woodhouse wrote: > On Tue, 2007-10-30 at 13:02 +0200, Kirill A. Shutemov wrote: > > This series of patches unexport several unneeded(I guess) headers from > > userspace. Patches based on patch posted to linux-kernel@ by Mike Frysinger > > i

[PATCH] Unexport asm/elf.h

2007-10-31 Thread Kirill A. Shutemov
Do not export asm/elf.h during make headers_install. Signed-off-by: Kirill A. Shutemov <[EMAIL PROTECTED]> Reviewed-By: David Woodhouse <[EMAIL PROTECTED]> --- include/asm-generic/Kbuild.asm |3 --- include/linux/Kbuild |2 +- include/linux/elf.h|2

[PATCH] Unexport asm/page.h

2007-10-31 Thread Kirill A. Shutemov
Do not export asm/page.h during make headers_install. This removes PAGE_SIZE from userspace headers. Signed-off-by: Kirill A. Shutemov <[EMAIL PROTECTED]> Reviewed-By: David Woodhouse <[EMAIL PROTECTED]> Cc: David Howells <[EMAIL PROTECTED]> Cc: Martin Schwidefsky <[EMAIL

[PATCH] Unexport asm/user.h and linux/user.h

2007-10-31 Thread Kirill A. Shutemov
Do not export asm/user.h and linux/user.h during make headers_install. Signed-off-by: Kirill A. Shutemov <[EMAIL PROTECTED]> Reviewed-By: David Woodhouse <[EMAIL PROTECTED]> Cc: Thomas Gleixner <[EMAIL PROTECTED]> Cc: Ingo Molnar <[EMAIL PROTECTED]> Cc: H. Peter

[PATCH] Cleanup asm/{elf,page,user}.h: #ifdef __KERNEL__ is no longer needed

2007-10-31 Thread Kirill A. Shutemov
asm/elf.h, asm/page.h and asm/user.h don't export to userspace now, so we can drop #ifdef __KERNEL__ for them. Signed-off-by: Kirill A. Shutemov <[EMAIL PROTECTED]> Reviewed-By: David Woodhouse <[EMAIL PROTECTED]> --- include/asm-alpha/elf.h |3 --- include/asm-alpha/p

[PATCH] Do not export PAGE_SIZE to userspace.

2007-10-23 Thread Kirill A. Shutemov
not find PAGE_SIZE at compile time from a header file, but use an actual system call, at least for those architectures (like sun4) where this dependency exists. Signed-off-by: Kirill A. Shutemov <[EMAIL PROTECTED]> --- include/asm-blackfin/page.h |4 ++-- include/asm-m32r/page.h

Re: [PATCH] Do not export PAGE_SIZE to userspace.

2007-10-23 Thread Kirill A. Shutemov
On [Tue, 23.10.2007 12:22], Mike Frysinger wrote: > On 10/23/07, Kirill A. Shutemov <[EMAIL PROTECTED]> wrote: > > Userspace should use getpagesize() or sysconf(_SC_PAGESIZE) to get memory > > page size. > > please go back through the archives and read the history

[PATCH] Unexport asm/user.h and linux/user.h

2007-10-24 Thread Kirill A. Shutemov
Do not export asm/user.h and linux/user.h during make headers_install. Signed-off-by: Kirill A. Shutemov <[EMAIL PROTECTED]> --- include/asm-generic/Kbuild.asm |1 - include/asm-x86/Kbuild |2 -- include/linux/Kbuild |1 - include/linux/elfcore.h|2

<    2   3   4   5   6   7   8   9   10   11   >