[PATCH] mm/hotplug: fix a trivial typo in Documentation/memory-hotplug.txt

2013-08-22 Thread Xishi Qiu
Fix a trivial typo in Documentation/memory-hotplug.txt Signed-off-by: Xishi Qiu --- Documentation/memory-hotplug.txt |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Documentation/memory-hotplug.txt b/Documentation/memory-hotplug.txt index 8e5eacb..d7a9b0a 100644 --- a/D

[PATCH 1/6] mm/hwpoison: fix lose PG_dirty flag for errors on mlocked pages

2013-08-22 Thread Wanpeng Li
memory_failure() store the page flag of the error page before doing unmap, and (only) if the first check with page flags at the time decided the error page is unknown, it do the second check with the stored page flag since memory_failure() does unmapping of the error pages before doing page_acti

[PATCH 6/6] mm/hwpoison: centralize set PG_hwpoison flag and increase num_poisoned_pages

2013-08-22 Thread Wanpeng Li
soft_offline_page will invoke __soft_offline_page for in-use normal pages and soft_offline_huge_page for in-use hugetlbfs pages. Both of them will done the same effort as for soft offline free pages set PG_hwpoison, increase num_poisoned_pages etc, this patch centralize do them in soft_offline_p

[PATCH 2/6] mm/hwpoison: don't need to hold compound lock for hugetlbfs page

2013-08-22 Thread Wanpeng Li
compound lock is introduced by commit e9da73d67("thp: compound_lock."), it is used to serialize put_page against __split_huge_page_refcount(). In addition, transparent hugepages will be splitted in hwpoison handler and just one subpage will be poisoned. There is unnecessary to hold compound loc

[PATCH 3/6] mm/hwpoison: fix num_poisoned_pages error statistics for thp

2013-08-22 Thread Wanpeng Li
There is a race between hwpoison page and unpoison page, memory_failure set the page hwpoison and increase num_poisoned_pages without hold page lock, and one page count will be accounted against thp for num_poisoned_pages. However, unpoison can occur before memory_failure hold page lock and spli

[PATCH 4/6] mm/hwpoison: don't set migration type twice to avoid hold heavy contend zone->lock

2013-08-22 Thread Wanpeng Li
Set pageblock migration type will hold zone->lock which is heavy contended in system to avoid race. However, soft offline page will set pageblock migration type twice during get page if the page is in used, not hugetlbfs page and not on lru list. There is unnecessary to set the pageblock migrati

Re: [patch 9/9] mm: workingset: keep shadow entries in check

2013-08-22 Thread Johannes Weiner
On Tue, Aug 20, 2013 at 01:59:24PM -0700, Andrew Morton wrote: > On Sat, 17 Aug 2013 15:31:23 -0400 Johannes Weiner wrote: > > > Previously, page cache radix tree nodes were freed after reclaim > > emptied out their page pointers. But now reclaim stores shadow > > entries in their place, which a

Re: [PATCH -next] ASoC: mmp-pcm: remove duplicated include from mmp-pcm.c

2013-08-22 Thread Mark Brown
On Thu, Aug 22, 2013 at 10:37:20AM +0800, Wei Yongjun wrote: > From: Wei Yongjun > > Remove duplicated include. Sorry, I already applied a patch for this which I saw first (though yours was actually sent sooner). Thanks. signature.asc Description: Digital signature

RE: [PATCH 4/4] Documentation: Add device tree bindings for Freescale FTM PWM

2013-08-22 Thread Xiubo Li-B47053
Hi Tomasz, > > > If the meaning of flags cell is the same as in generic, default PWM > > > specifier format, then it should be noted here and generic PWM > > > binding documentation mentioned. > > > > OK, How about the following ? > > - #pwm-cells: Should be 3. See pwm.txt in this directory for

[PATCH V5 0/5] POWER/cpuidle: Generic IBM-POWER cpuidle driver enabled for PSERIES and POWERNV platforms

2013-08-22 Thread Deepthi Dharwar
This patch series consolidates the backend cpuidle driver for pSeries and powernv platforms with minimal code duplication. Current existing backend driver for pseries has been moved to drivers/cpuidle and has been extended to accommodate powernv idle power mgmt states. As seen in V1 of this patc

[PATCH V5 1/5] pseries/cpuidle: Remove dependency of pseries.h file

2013-08-22 Thread Deepthi Dharwar
As a part of pseries_idle cleanup to make the backend driver code common to both pseries and powernv. Remove non-essential smt_snooze_delay declaration in pseries.h header file and pseries.h file inclusion in pseries/processor_idle.c Signed-off-by: Deepthi Dharwar --- arch/powerpc/platforms/pser

[PATCH V5 3/5] POWER/cpuidle: Generic IBM-POWER backend cpuidle driver.

2013-08-22 Thread Deepthi Dharwar
This patch involves moving the current pseries_idle backend driver code from pseries/processor_idle.c to drivers/cpuidle/cpuidle-ibm-power.c. It enables the support for pseries platform, such that going forward the same code with minimal efforts can be re-used for a common driver on powernv This r

[PATCH V5 2/5] pseries: Move plpar_wrapper.h to powerpc common include/asm location.

2013-08-22 Thread Deepthi Dharwar
As a part of pseries_idle backend driver cleanup to make the code common to both pseries and powernv platforms, it is necessary to move the backend-driver code to drivers/cpuidle. As a pre-requisite for that, it is essential to move plpar_wrapper.h to include/asm. Signed-off-by: Deepthi Dharwar

[PATCH V5 4/5] POWER/cpuidle: Enable powernv cpuidle support.

2013-08-22 Thread Deepthi Dharwar
The following patch extends the current power backend idle driver to the powernv platform. Signed-off-by: Deepthi Dharwar --- drivers/cpuidle/cpuidle-ibm-power.c | 37 --- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/drivers/cpuidle/cpuidle-ibm

[PATCH 1/2] gpio: mcp23s08: rename the device tree property

2013-08-22 Thread Lars Poeschel
From: Lars Poeschel The device tree property should be more descriptive. microchip seems more reasonable than mcp. As there are no in tree users of this property, so the rename can still be done without pain. Signed-off-by: Lars Poeschel --- .../devicetree/bindings/gpio/gpio-mcp23s08.txt

[PATCH V5 5/5] powernv/cpuidle: Enable idle powernv cpu to call into the cpuidle framework.

2013-08-22 Thread Deepthi Dharwar
This patch enables idle cpu on the powernv platform to hook on to the cpuidle framework, if available, else call on to default idle platform code. Signed-off-by: Deepthi Dharwar --- arch/powerpc/platforms/powernv/setup.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) di

[PATCH 2/2] of: add vendor prefix for Microchip Technology Inc

2013-08-22 Thread Lars Poeschel
From: Lars Poeschel Trivial patch to add Microchip Technology Inc. to the list of devicetree vendor prefixes. Signed-off-by: Lars Poeschel --- Documentation/devicetree/bindings/vendor-prefixes.txt |1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-p

ATTN:HI----supply fumed silica----menjie chemicals

2013-08-22 Thread Dwcgko
Dear Sir or Madam: Good Day! Glad to learn you`re on the market of fumed silica products. We are a professional manufacturers of hydrophilic fumed silica products with many years experience, now our featured products are: Hydrophilic fumed silica : fumed silica (SiO2): A150 /200 /

Re: [PATCH] drivers: regmap: bugfix in regcache-rbtree.c

2013-08-22 Thread Mark Brown
On Wed, Aug 21, 2013 at 06:03:45PM +0100, Dimitris Papastamos wrote: > Once I have some free time I will look into implementing block > merges. That'd be great, thanks. signature.asc Description: Digital signature

[PATCH 5/6] mm/hwpoison: drop forward reference declarations __soft_offline_page()

2013-08-22 Thread Wanpeng Li
Drop forward reference declarations __soft_offline_page. Signed-off-by: Wanpeng Li --- mm/memory-failure.c | 129 ++-- 1 file changed, 64 insertions(+), 65 deletions(-) diff --git a/mm/memory-failure.c b/mm/memory-failure.c index 3bfb45f..0a52571

Re: [PATCH 02/10] sched: Factor out code to should_we_balance()

2013-08-22 Thread Paul Turner
On Mon, Aug 19, 2013 at 9:01 AM, Peter Zijlstra wrote: > From: Joonsoo Kim > > Now checking whether this cpu is appropriate to balance or not > is embedded into update_sg_lb_stats() and this checking has no direct > relationship to this function. There is not enough reason to place > this checkin

RE: [PATCH] cpuidle: coupled: fix dead loop corner case

2013-08-22 Thread Neil Zhang
Daniel & Colin, > -Original Message- > From: Rafael J. Wysocki [mailto:r...@sisk.pl] > Sent: 2013年8月20日 20:37 > To: Neil Zhang; Daniel Lezcano > Cc: linux...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH] cpuidle: coupled: fix dead loop corner case > > On Tuesday, Au

Re: [PATCH] mm: strictlimit feature -v4

2013-08-22 Thread Maxim Patlasov
08/22/2013 12:38 AM, Andrew Morton пишет: On Wed, 21 Aug 2013 17:56:32 +0400 Maxim Patlasov wrote: The feature prevents mistrusted filesystems to grow a large number of dirty pages before throttling. For such filesystems balance_dirty_pages always check bdi counters against bdi limits. I.e. e

Re: [PATCH 0/4] arm: atmel: enable kernel uncompress info output

2013-08-22 Thread Nicolas Ferre
On 04/07/2013 09:16, Bo Shen : this patch set enable kernel uncompress info output - sama5d3 - at91sam9n12 Acked-by: Nicolas Ferre Whole series integrated in at91-3.12-soc branch. Thanks, bye, without this patch set, it won't show following information ---8>--- Uncompressing Linux..

Re: [PATCH 5/6] regulator: ti-abb: simplify platform_get_resource_byname/devm_ioremap_resource

2013-08-22 Thread Mark Brown
On Mon, Aug 19, 2013 at 10:51:55AM +0200, Julia Lawall wrote: > From: Julia Lawall > > Remove unneeded error handling on the result of a call to > platform_get_resource_byname when the value is passed to > devm_ioremap_resource. Applied, thanks. signature.asc Description: Digital signature

[PATCH] f2fs: use strncasecmp() simplify the string comparison

2013-08-22 Thread Gu Zheng
Signed-off-by: Gu Zheng --- fs/f2fs/namei.c | 12 +--- 1 files changed, 1 insertions(+), 11 deletions(-) diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c index 4e47518..106c0b4 100644 --- a/fs/f2fs/namei.c +++ b/fs/f2fs/namei.c @@ -83,21 +83,11 @@ static int is_multimedia_file(const unsi

Re: Regression: x86/mm: new _PTE_SWP_SOFT_DIRTY bit conflicts with existing use

2013-08-22 Thread Pavel Emelyanov
On 08/22/2013 01:32 PM, David Vrabel wrote: > On 22/08/13 00:04, Linus Torvalds wrote: >> On Wed, Aug 21, 2013 at 12:03 PM, Cyrill Gorcunov wrote: >>> >>> I personally don't see bug here because >>> >>> - this swapped page soft dirty bit is set for non-present entries only, >>>never for prese

Re: [PATCH] of: reduce the number of PROBE_DEFERs

2013-08-22 Thread Grant Likely
On Thu, Aug 22, 2013 at 9:00 AM, Jean-Francois Moine wrote: > On Tue, 20 Aug 2013 11:13:24 +0100 > Grant Likely wrote: > >> On Tue, Aug 20, 2013 at 11:01 AM, Jean-Francois Moine >> wrote: >> > This patch populates the platform from the device tree into two steps: >> > the first step creates the

Re: Re: Re: [PATCH-SR9700] Merge USB 1.1 Ethernet Adapter SR9700DeviceDriver into the Linux Kernel

2013-08-22 Thread liujunliang_ljl
Dear all : Thanks all of you about your attentions and suggestions, and I think firstly I should read the documentations carefully. and then commiting the patch. Thanks all of you for your help and welcome all of you to come to china.

Re: [PATCH 01/10] sched: Remove one division operation in find_busiest_queue()

2013-08-22 Thread Peter Zijlstra
On Thu, Aug 22, 2013 at 01:58:28AM -0700, Paul Turner wrote: > > wl_i / power_i > wl_j / power_j := > > wl_i * power_j > wl_j * power_i > > > > struct rq *busiest = NULL, *rq; > > - unsigned long max_load = 0; > > + unsigned long busiest_load = 0, busiest_power

oops.kernel.org, reporting. [Was: [ATTEND] oops.kernel.org prospect]

2013-08-22 Thread Anton Arapov
Hello, Thank you for contacting me. I will cross-post this to LKML, as there is an information that might be interested for other folks. On Wed, Aug 21, 2013 at 10:31:21PM +0200, Tom Wijsman wrote: > We, the Gentoo Kernel Project Team at Gentoo Linux, might be interested > to contribute oopses to

Re: [PATCH 02/10] sched: Factor out code to should_we_balance()

2013-08-22 Thread Peter Zijlstra
On Thu, Aug 22, 2013 at 02:58:27AM -0700, Paul Turner wrote: > On Mon, Aug 19, 2013 at 9:01 AM, Peter Zijlstra wrote: > > + if (local_group) > > load = target_load(i, load_idx); > > Keep the braces here: > > if (local_group) { > load = target_load(i,

Re: [ATTEND] oops.kernel.org prospect

2013-08-22 Thread Anton Arapov
On Wed, Aug 21, 2013 at 09:43:57PM +0200, Francois Romieu wrote: > Anton Arapov : > [...] > > Oh well,... I didn't have a time for this right now, nor project is > > not exactly in the state I'm willing to show (mostly webui) > > I have sorted the r8169 oopses by kernel revision to start with th

Re: [PATCH v2 2/2] perf tools: add attr->mmap2 support

2013-08-22 Thread Peter Zijlstra
On Wed, Aug 21, 2013 at 12:10:25PM +0200, Stephane Eranian wrote: > This patch adds support for the new PERF_RECORD_MMAP2 > record type exposed by the kernel. This is an extended > PERF_RECORD_MMAP record. It adds for each file-backed > mapping the device major, minor number and the inode > number

Re: [PATCH V4 3/5] powerpc/cpuidle: Generic powerpc backend cpuidle driver.

2013-08-22 Thread Bartlomiej Zolnierkiewicz
Hi, On Thursday, August 22, 2013 11:00:29 AM Deepthi Dharwar wrote: > This patch involves moving the current pseries_idle backend driver code > from pseries/processor_idle.c to drivers/cpuidle/cpuidle-powerpc.c, > and making the backend code generic enough to be able to extend this > driver code

Re: Proposed stable release changes

2013-08-22 Thread Geert Uytterhoeven
On Wed, Aug 21, 2013 at 10:54 PM, Tony Luck wrote: > Running daily git snapshots can be "exciting" during the merge window. But > I rarely see problems running a random build after -rc1. If you are still Indeed. > running that ancient 3.11-rc6 released on Sunday - then you are missing out > on

Re: [PATCH v5] Soft limit rework

2013-08-22 Thread Michal Hocko
[I am mostly offline for the whole week with very limitted internet access so it will get longer for me to respond to emails. Sorry about that] On Tue 20-08-13 10:13:39, Johannes Weiner wrote: > On Tue, Aug 20, 2013 at 11:14:14AM +0200, Michal Hocko wrote: > > On Mon 19-08-13 12:35:12, Johannes We

Re: ipvsadm: One-packet scheduling with UDP service is unstable

2013-08-22 Thread Drunkard Zhang
2013/8/22 Julian Anastasov : > > Hello, > > On Tue, 20 Aug 2013, Drunkard Zhang wrote: > >> Need help here, thank you for replying :-) >> >> I'm setting up a syslog cluster based on IPVS, all UDP datagrams sent >> from firewall with fixed source IP and fixed source port, so >> pseudo-random

Fwd: ipw2200: Fix race condition in the command completion acknowledge

2013-08-22 Thread Stan G
-- Forwarded message -- From: Stan G Date: Wed, Aug 21, 2013 at 3:16 PM Subject: ipw2200: Fix race condition in the command completion acknowledge To: stas.yakov...@gmail.com Cc: linux-wirel...@vger.kernel.org, linux-kernel@vger.kernel.org Hi, This is regarding kernel patch hist

[PATCH 00/18 v3] Signature verification of hibernate snapshot

2013-08-22 Thread Lee, Chun-Yi
Hi experts, This patchset is the implementation for signature verification of hibernate snapshot image. The origin idea is from Jiri Kosina: Let EFI bootloader generate key-pair in UEFI secure boot environment, then pass it to kernel for sign/verify S4 image. Due to there have potential threat fr

[PATCH 01/18] asymmetric keys: add interface and skeleton for implement signature generation

2013-08-22 Thread Lee, Chun-Yi
Add generate_signature interface on signature.c, asymmetric-subtype and rsa.c for prepare to implement signature generation. Reviewed-by: Jiri Kosina Signed-off-by: Lee, Chun-Yi --- crypto/asymmetric_keys/private_key.h | 29 + crypto/asymmetric_keys/public_key.c |

Re: [PATCH] pinctrl: sh-pfc: remove unnecessary platform_set_drvdata()

2013-08-22 Thread Laurent Pinchart
Hi Jingoo, Thank you for the patch. On Thursday 22 August 2013 11:00:55 Jingoo Han wrote: > The driver core clears the driver data to NULL after device_release > or on probe failure. Thus, it is not needed to manually clear the > device driver data to NULL. > > Signed-off-by: Jingoo Han Acked-

[RFC PATCH 00/18 v3] Signature verification of hibernate snapshot

2013-08-22 Thread Lee, Chun-Yi
Hi experts, This patchset is the implementation for signature verification of hibernate snapshot image. The origin idea is from Jiri Kosina: Let EFI bootloader generate key-pair in UEFI secure boot environment, then pass it to kernel for sign/verify S4 image. Due to there have potential threat fr

[PATCH 01/18] asymmetric keys: add interface and skeleton for implement signature generation

2013-08-22 Thread Lee, Chun-Yi
Add generate_signature interface on signature.c, asymmetric-subtype and rsa.c for prepare to implement signature generation. Reviewed-by: Jiri Kosina Signed-off-by: Lee, Chun-Yi --- crypto/asymmetric_keys/private_key.h | 29 + crypto/asymmetric_keys/public_key.c |

[PATCH 02/18] asymmetric keys: implement EMSA_PKCS1-v1_5-ENCODE in rsa

2013-08-22 Thread Lee, Chun-Yi
Implement EMSA_PKCS1-v1_5-ENCODE [RFC3447 sec 9.2] in rsa.c. It's the first step of signature generation operation (RSASSA-PKCS1-v1_5-SIGN). This patch is temporary set emLen to pks->k, and temporary set EM to pks->S for debugging. We will replace the above values to real signature after implement

[PATCH 04/18] asymmetric keys: implement OS2IP in rsa

2013-08-22 Thread Lee, Chun-Yi
Implement Octet String to Integer conversion [RFC3447 sec 4.2] in rsa.c. It's the second step of signature generation operation. This patch is temporary set non-RSASP1 message to pks->S for debugging. Reviewed-by: Jiri Kosina Signed-off-by: Lee, Chun-Yi --- crypto/asymmetric_keys/rsa.c | 29

[PATCH 03/18] asymmetric keys: separate the length checking of octet string from RSA_I2OSP

2013-08-22 Thread Lee, Chun-Yi
Due to RSA_I2OSP is not only used by signature verification path but also used in signature generation path. So, separate the length checking of octet string because it's not for generate 0x00 0x01 leading string when used in signature generation. Reviewed-by: Jiri Kosina Signed-off-by: Lee, Chun

[PATCH 07/18] asymmetric keys: explicitly add the leading zero byte to encoded message

2013-08-22 Thread Lee, Chun-Yi
Per PKCS1 spec, the EMSA-PKCS1-v1_5 encoded message is leading by 0x00 0x01 in its first 2 bytes. The leading zero byte is suppressed by MPI so we pass a pointer to the _preceding_ byte to RSA_verify() in original code, but it has risk for the byte is not zero because it's not in EM buffer's scope,

[PATCH 05/18] asymmetric keys: implement RSASP1

2013-08-22 Thread Lee, Chun-Yi
Implement RSASP1 and fill-in the following data to public key signature structure: signature length (pkcs->k), signature octet strings (pks->S) and MPI of signature (pks->rsa.s). Reviewed-by: Jiri Kosina Signed-off-by: Lee, Chun-Yi --- crypto/asymmetric_keys/rsa.c | 47 +++

[PATCH 06/18] asymmetric keys: support parsing PKCS #8 private key information

2013-08-22 Thread Lee, Chun-Yi
Add ASN.1 files and parser to support parsing PKCS #8 noncompressed private key information. It's better than direct parsing pure private key because PKCS #8 has a privateKeyAlgorithm to indicate the algorithm of private key, e.g. RSA from PKCS #1 Reviewed-by: Jiri Kosina Signed-off-by: Lee, Chun

[PATCH 08/18] Secure boot: Add new capability

2013-08-22 Thread Lee, Chun-Yi
From: Matthew Garrett Secure boot adds certain policy requirements, including that root must not be able to do anything that could cause the kernel to execute arbitrary code. The simplest way to handle this would seem to be to add a new capability and gate various functionality on that. We'll the

[PATCH 11/18] Hibernate: introduced RSA key-pair to verify signature of snapshot

2013-08-22 Thread Lee, Chun-Yi
Introduced a hibernate_key.c file to query the key pair from EFI variables and maintain key pair for check signature of S4 snapshot image. We loaded the private key when snapshot image stored success. This patch introduced 2 EFI variables for store the key to sign S4 image and verify signature whe

[PATCH 09/18] Secure boot: Add a dummy kernel parameter that will switch on Secure Boot mode

2013-08-22 Thread Lee, Chun-Yi
From: Josh Boyer This forcibly drops CAP_COMPROMISE_KERNEL from both cap_permitted and cap_bset in the init_cred struct, which everything else inherits from. This works on any machine and can be used to develop even if the box doesn't have UEFI. Signed-off-by: Josh Boyer Acked-by: Lee, Chun-Yi

[PATCH 10/18] efi: Enable secure boot lockdown automatically when enabled in firmware

2013-08-22 Thread Lee, Chun-Yi
From: Matthew Garrett The firmware has a set of flags that indicate whether secure boot is enabled and enforcing. Use them to indicate whether the kernel should lock itself down. We also indicate the machine is in secure boot mode by adding the EFI_SECURE_BOOT bit for use with efi_enabled. Sign

[PATCH 13/18] Hibernate: Avoid S4 sign key data included in snapshot image

2013-08-22 Thread Lee, Chun-Yi
This patch add swsusp_page_is_sign_key() method to hibernate_key.c and check the page is S4 sign key data when collect saveable page in snapshot.c to avoid sign key data included in snapshot image. Reviewed-by: Jiri Kosina Signed-off-by: Lee, Chun-Yi --- kernel/power/snapshot.c |6 ++ 1

[PATCH 16/18] Hibernate: show the verification time for monitor performance

2013-08-22 Thread Lee, Chun-Yi
Show the verification time for monitor the performance of SHA256 and RSA verification. Reviewed-by: Jiri Kosina Signed-off-by: Lee, Chun-Yi --- kernel/power/snapshot.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/kernel/power/snapshot.c b/kernel/power/snapshot.

[PATCH 12/18] Hibernate: generate and verify signature of snapshot

2013-08-22 Thread Lee, Chun-Yi
This patch add the code for generate/verify signature of snapshot, it put the signature to snapshot header. This approach can support both on userspace hibernate and in-kernel hibernate. v2: - Due to loaded S4 sign key before ExitBootServices, we need forward key from boot kernel to resume targe

[PATCH 14/18] Hibernate: applied SNAPSHOT_VERIFICATION config to switch signature check

2013-08-22 Thread Lee, Chun-Yi
This patch applied SNAPSHOT_VERIFICATION kernel config for switching signature check of hibernate snapshot image. Reviewed-by: Jiri Kosina Signed-off-by: Lee, Chun-Yi --- kernel/power/snapshot.c | 19 +++ kernel/power/swap.c | 30 +++--- kernel/po

[PATCH 15/18] Hibernate: adapt to UEFI secure boot with signature check

2013-08-22 Thread Lee, Chun-Yi
In current solution, the snapshot signature check used the RSA key-pair that are generated by bootloader(e.g. shim) and pass the key-pair to kernel through EFI variables. I choice to binding the snapshot signature check mechanism with UEFI secure boot for provide stronger protection of hibernate. C

[PATCH 17/18] Hibernate: introduced SNAPSHOT_SIG_HASH config for select hash algorithm

2013-08-22 Thread Lee, Chun-Yi
This patch introduced SNAPSHOT_SIG_HASH config for user to select which hash algorithm will be used during signature generation of snapshot. v2: Add define check of oCONFIG_SNAPSHOT_VERIFICATION in snapshot.c before declare pkey_hash(). Reviewed-by: Jiri Kosina Signed-off-by: Lee, Chun-Yi ---

[PATCH 18/18] Hibernate: notify bootloader regenerate key-pair for snapshot verification

2013-08-22 Thread Lee, Chun-Yi
This patch introduced SNAPSHOT_REGEN_KEYS kernel config, enable this option let kernel notify booloader (e.g. shim) to regenerate key-pair of snapshot verification for each hibernate. Kernel loaded S4 sign key in efi stub, so the private key forward from efi bootloader to kernel in UEFI secure env

Re: [PATCH v2 12/20] mm, hugetlb: remove vma_has_reserves()

2013-08-22 Thread Aneesh Kumar K.V
Joonsoo Kim writes: > On Thu, Aug 22, 2013 at 02:14:38PM +0530, Aneesh Kumar K.V wrote: >> Joonsoo Kim writes: >> >> > vma_has_reserves() can be substituted by using return value of >> > vma_needs_reservation(). If chg returned by vma_needs_reservation() >> > is 0, it means that vma has reserve

[PATCH] mn10300: Truncate base in do_div()

2013-08-22 Thread Geert Uytterhoeven
Explicitly truncate the second operand of do_div() to 32 bits to guard against bogus code calling it with a 64-bit divisor. Based on commit ea077b1b96e073eac5c3c5590529e964767fc5f7 ("m68k: Truncate base in do_div()") While it doesn't really hurt on little-endian mn10300, unlike on m68k, mn10300 w

Re: [RFC PATCH v3] sched: Limit idle balance based on max cost per sched domain

2013-08-22 Thread Peter Zijlstra
On Tue, Aug 20, 2013 at 02:32:46AM -0700, Jason Low wrote: > Hi Peter, > > So this is my sample implementation of the concept of matching the CPU's > avg_idle > with the maximum time we ever spend in a new idle load balance for each > domain. > This is based on our previous patch which compares

RE: [patch] mm, thp: count thp_fault_fallback anytime thp fault fails

2013-08-22 Thread Kirill A. Shutemov
David Rientjes wrote: > On Wed, 21 Aug 2013, Kirill A. Shutemov wrote: > > > David Rientjes wrote: > > > Currently, thp_fault_fallback in vmstat only gets incremented if a > > > hugepage allocation fails. If current's memcg hits its limit or the page > > > fault handler returns an error, it is in

Re: [patch 9/9] mm: thrash detection-based file cache sizing v4

2013-08-22 Thread Metin Doslu
Hey everbody, I run following tests, and it shows in what cases this patch is beneficial for us. Test Environment: * Ubuntu Server 12.04.2 LTS Linux 3.2.0-40-virtual #64-Ubuntu on EC2. * 15 GB memory (DMA32 4GB + Normal 11GB). Test Settings: We have two PostgreSQL tables with same size of 9.75

Re: AMD Bobcat cpufreq

2013-08-22 Thread Borislav Petkov
On Tue, Aug 20, 2013 at 10:58:07PM +0300, Joonas Saarinen wrote: > Hi guys, > > The turbo core feature on AMD Bobcat platform seems not to be > working. I have a netbook with C-60 CPU which never cranks the > frequency over 1000MHz (it could reach 1333MHz). Yeah, how about more info like which ke

Re: Regression: x86/mm: new _PTE_SWP_SOFT_DIRTY bit conflicts with existing use

2013-08-22 Thread Cyrill Gorcunov
On Thu, Aug 22, 2013 at 08:27:45AM +0100, Jan Beulich wrote: > >>> On 22.08.13 at 09:03, Cyrill Gorcunov wrote: > > Ok, how about this? > > > > static inline pte_t pte_swp_mksoft_dirty(pte_t pte) > > { > > BUG_ON(pte_present(pte)); > > return pte_set_flags(pte, _PAGE_SWP_SOFT_DIRTY); > >

Re: linux-next: Tree for Aug 21 [ screen corruption in graphical mode ]

2013-08-22 Thread Daniel Vetter
On Thu, Aug 22, 2013 at 1:13 PM, Sedat Dilek wrote: > dmesg (a lot of traces) and kernel-config attached. > > UXA causes still screen corruption. Hm, was only a slim chance that this patch would fix anything - I think you'd always see an oops when you'd hit this bug instead of just a bit of corru

Re: linux-next: Tree for Aug 21 [ screen corruption in graphical mode ]

2013-08-22 Thread Daniel Vetter
On Thu, Aug 22, 2013 at 1:30 PM, Daniel Vetter wrote: > On Thu, Aug 22, 2013 at 1:13 PM, Sedat Dilek wrote: >> dmesg (a lot of traces) and kernel-config attached. >> >> UXA causes still screen corruption. > > Hm, was only a slim chance that this patch would fix anything - I > think you'd always s

Re: [PATCH v2 4/8] drm/i2c: tda998x: prepare for video input configuration

2013-08-22 Thread Rob Clark
On Thu, Aug 22, 2013 at 2:53 AM, Jean-Francois Moine wrote: > On Wed, 21 Aug 2013 23:36:05 +0100 > Russell King - ARM Linux wrote: > >> > AFAIK, the TI boards have no "pin-swapped", nor has the Cubox (there is >> > no need to set the bit CFG_GRA_SWAPRB of the register LCD_SPU_DMA_CTRL0 >> > of th

Re: Regression: x86/mm: new _PTE_SWP_SOFT_DIRTY bit conflicts with existing use

2013-08-22 Thread Jan Beulich
>>> On 22.08.13 at 13:27, Cyrill Gorcunov wrote: > On Thu, Aug 22, 2013 at 08:27:45AM +0100, Jan Beulich wrote: >> >>> On 22.08.13 at 09:03, Cyrill Gorcunov wrote: >> > Ok, how about this? >> > >> > static inline pte_t pte_swp_mksoft_dirty(pte_t pte) >> > { >> >BUG_ON(pte_present(pte)); >> >

Re: [PATCH 1/3] misc: Add crossbar driver

2013-08-22 Thread Sricharan R
Hi Linus, On Thursday 22 August 2013 02:40 AM, Linus Walleij wrote: > On Thu, Aug 15, 2013 at 11:14 PM, Santosh Shilimkar > wrote: >> On Thursday 15 August 2013 04:51 PM, Linus Walleij wrote: > (...) >>> Sorry I don't understand what thread that is... can you point me there? >>> My previous state

RE: [PATCH v3 0/3] Input: omap-keypad: Convert to threaded IRQ and cleanup

2013-08-22 Thread Smyrnov, Illia
Dmitry, should I take any additional action regarding these patches? Best regards, Illia Smyrnov From: linux-kernel-ow...@vger.kernel.org [linux-kernel-ow...@vger.kernel.org] on behalf of Smyrnov, Illia Sent: Wednesday, July 24, 2013 6:54 PM To: Dmitry

Re: [PATCH] pxa: sharpsl_param: fix invalid memory access in sharpsl_save_param()

2013-08-22 Thread Andrea Adami
I'm bumping this after one month. Will, I put you in copy because you did some observations about the patch last time and you seemingly committe the change which broke boot of sharpsl devices. Is there something wrong with it? Thanks Andrea Was: Devices that call sharpsl_save_param() will han

Re: [PATCH v2 4/8] drm/i2c: tda998x: prepare for video input configuration

2013-08-22 Thread Russell King - ARM Linux
On Thu, Aug 22, 2013 at 07:33:43AM -0400, Rob Clark wrote: > On Thu, Aug 22, 2013 at 2:53 AM, Jean-Francois Moine wrote: > > On Wed, 21 Aug 2013 23:36:05 +0100 > > Russell King - ARM Linux wrote: > > > >> > AFAIK, the TI boards have no "pin-swapped", nor has the Cubox (there is > >> > no need to

Re: [PATCH] sa1100: collie: fall back to jedec_probe flash detection

2013-08-22 Thread Andrea Adami
BUMP At the moment cfi will not detect the collie NOR. In the meanwhile we can revert to the jedec-probe map which has been fixed with following commit: mtd: jedec_probe: fix LH28F640BF definition fe2f4c8e0bf2756b670ee78fa9772613a2ea8495 Somehow this is unsatisfactory because the flash is mounte

Re: [PATCH v2 2/3] HID: detect Win 8 multitouch devices in core

2013-08-22 Thread Benjamin Tissoires
Hi Henrik, On Wed, Aug 21, 2013 at 8:26 PM, Henrik Rydberg wrote: > Hi Benjamin, > >> Detecting Win 8 multitouch devices in core allows us to set quirks >> before the device is parsed through hid_hw_start(). >> It also simplifies the detection of those devices in hid-multitouch and >> makes the h

Re: [PATCH 4/4] Documentation: Add device tree bindings for Freescale FTM PWM

2013-08-22 Thread Tomasz Figa
On Thursday 22 of August 2013 09:52:42 Xiubo Li-B47053 wrote: > Hi Tomasz, > > > > > If the meaning of flags cell is the same as in generic, default PWM > > > > specifier format, then it should be noted here and generic PWM > > > > binding documentation mentioned. > > > > > > OK, How about the fo

Re: Regression: x86/mm: new _PTE_SWP_SOFT_DIRTY bit conflicts with existing use

2013-08-22 Thread Pavel Emelyanov
On 08/22/2013 03:33 PM, Jan Beulich wrote: >> From: Cyrill Gorcunov >> Subject: [PATCH] mm: Make sure _PAGE_SWP_SOFT_DIRTY bit is not set on >> present pte >> >> _PAGE_SOFT_DIRTY bit should never be set on present pte so add >> VM_BUG_ON to catch any potential future abuse. >> >> Also add a comm

[RFC PATCH] phylib: mdio: handle register/unregister/register sequence

2013-08-22 Thread Boris BREZILLON
Hello, This patch is a proposal to support the register/unregister/register sequence on a given mdio bus. I use the register/unregister/register sequence to add a fallback when the of_mdiobus_register (this function calls mdiobus_register with phy_mask set to ~0) does not register any phy device

Re: [PATCH] dma: ste_dma: Fix warning when CONFIG_ARM_LPAE=y

2013-08-22 Thread Kevin Hilman
Fabio Estevam writes: > From: Fabio Estevam > > When CONFIG_ARM_LPAE=y the following build warning are generated: > > drivers/dma/ste_dma40.c:3228:2: warning: format '%x' expects argument of type > 'unsigned int', but argument 4 has type 'resource_size_t' [-Wformat] > drivers/dma/ste_dma40.c:35

Re: [PATCH] scsi: fix the build warning

2013-08-22 Thread Akinobu Mita
2013/8/22 Martin K. Petersen : >> "Joe" == Joe Perches writes: > > Joe> I don't get this build warning in the first place and I think the > Joe> scsi_debug file is quite old and probably doesn't need to be > Joe> changed at all. > > guard isn't a boolean, it selects the checksum algorithm used

[RFC PATCH] phylib: mdio: handle register/unregister/register sequence

2013-08-22 Thread Boris BREZILLON
The current implementation does not accept this sequence on a given mdio bus: register/unregister/register. The device core framework complain about already initialized kobject struct: "kobject (df9e9848): tried to init an initialized object, something is seriously wrong." This patch replaces th

Re: [RFC PATCH] phylib: mdio: handle register/unregister/register sequence

2013-08-22 Thread Florian Fainelli
Hello Boris, 2013/8/22 Boris BREZILLON : > Hello, > > This patch is a proposal to support the register/unregister/register > sequence on a given mdio bus. > > I use the register/unregister/register sequence to add a fallback when the > of_mdiobus_register (this function calls mdiobus_register with

[PATCH v3 1/3] usb: fix cleanup after failure in hub_configure()

2013-08-22 Thread Krzysztof Mazur
If the hub_configure() fails after setting the hdev->maxchild the hub->ports might be NULL or point to uninitialized kzallocated memory causing NULL pointer dereference in hub_quiesce() during cleanup. Now after such error the hdev->maxchild is set to 0 to avoid cleanup of uninitialized ports. Si

[PATCH v3 3/3] usb: don't use bNbrPorts after initialization

2013-08-22 Thread Krzysztof Mazur
After successful initialization hub->descriptor->bNbrPorts and hub->hdev->maxchild are equal, but using hub->hdev->maxchild is preferred because that value is explicitly used for initialization of hub->ports[]. Signed-off-by: Krzysztof Mazur Acked-by: Alan Stern --- drivers/usb/core/hub.c | 12

[PATCH v3 0/3] usb: fix hub_configure() error handling

2013-08-22 Thread Krzysztof Mazur
Hi, this series fixes hub_configure() error handling that causes hub->ports[i] NULL pointer dereferences. Changes in v3: Added Acked-by from Alan Stern. Changes in v2: After review by Alan Stern. The new label has been placed in other place to avoid changes in existing code. Third patch "usb:

[PATCH 0/4] arm: mvebu: add missing of_node_put and iounmap

2013-08-22 Thread Jisheng Zhang
These patches add missing of_node_put() to fix reference leak or iounmap in setup/probe error path. Jisheng Zhang (4): arm: mvebu: add missing of_node_put() to fix reference leak bus: mvebu: add missing of_node_put() to fix reference leak clk: mvebu: add missing iounmap pinctrl: mvebu: add

[PATCH v3 3/3] HID: do not init input reports for Win 8 multitouch devices

2013-08-22 Thread Benjamin Tissoires
Some multitouch screens do not like to be polled for input reports. However, the Win8 spec says that all touches should be sent during each report, making the initialization of reports unnecessary. The Win7 spec is less precise, so do not use this for those devices. Add the quirk HID_QUIRK_NO_INIT

[PATCH v3 2/3] usb: fail on usb_hub_create_port_device() errors

2013-08-22 Thread Krzysztof Mazur
Ignoring usb_hub_create_port_device() errors cause later NULL pointer deference when uninitialized hub->ports[i] entries are dereferenced after port memory allocation error. Signed-off-by: Krzysztof Mazur Acked-by: Alan Stern --- drivers/usb/core/hub.c | 10 -- 1 file changed, 8 inserti

[PATCH v3 0/3] HID: Win 8 multitouch panels detection in core

2013-08-22 Thread Benjamin Tissoires
Hi guys, this is the v3 of this patch series. Srinivas, I still did not added your tested-by as I made minors modifications of the patches 1 and 2. Now only the patch 1 will impact sensor_hub, and patch 2 will not impact this. Maybe just wait for Henrik to put his "Reviewed-by" before giving one

[PATCH v3 2/3] HID: detect Win 8 multitouch devices in core

2013-08-22 Thread Benjamin Tissoires
Detecting Win 8 multitouch devices in core allows us to set quirks before the device is parsed through hid_hw_start(). It also simplifies the detection of those devices in hid-multitouch and makes the handling of those devices cleaner. As Win 8 multitouch panels are in the group multitouch and rel

[PATCH 1/4] arm: mvebu: add missing of_node_put() to fix reference leak

2013-08-22 Thread Jisheng Zhang
Add of_node_put to properly decrement the refcount when we are done using a given node. Signed-off-by: Jisheng Zhang --- arch/arm/mach-mvebu/armada-370-xp.c | 1 + arch/arm/mach-mvebu/coherency.c | 8 +++- arch/arm/mach-mvebu/platsmp.c | 1 + arch/arm/mach-mvebu/pmsu.c

[PATCH 4/4] pinctrl: mvebu: add missing iounmap

2013-08-22 Thread Jisheng Zhang
Add missing iounmap to prove error path and remove path Signed-off-by: Jisheng Zhang --- drivers/pinctrl/mvebu/pinctrl-mvebu.c | 24 +--- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/drivers/pinctrl/mvebu/pinctrl-mvebu.c b/drivers/pinctrl/mvebu/pinctrl-mveb

[PATCH v3 1/3] HID: Use hid_parser for pre-scanning the report descriptors

2013-08-22 Thread Benjamin Tissoires
The Win 8 detection is sufficiently complex to warrant use of the full parser code, in spite of the inferred memory usage. Therefore, we can use the existing HID parser in hid-core for hid_scan_report() by re-using the code from hid_open_report(). hid_parser_global, hid_parser_local and hid_parser_

[PATCH 3/4] clk: mvebu: add missing iounmap

2013-08-22 Thread Jisheng Zhang
Add missing iounmap to setup error path. Signed-off-by: Jisheng Zhang --- drivers/clk/mvebu/clk-cpu.c | 4 +++- drivers/clk/mvebu/common.c | 18 -- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/drivers/clk/mvebu/clk-cpu.c b/drivers/clk/mvebu/clk-cpu.c index b0

[PATCH 2/4] bus: mvebu: add missing of_node_put() to fix reference leak

2013-08-22 Thread Jisheng Zhang
Add of_node_put to properly decrement the refcount when we are done using a given node. Signed-off-by: Jisheng Zhang --- drivers/bus/mvebu-mbus.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/bus/mvebu-mbus.c b/drivers/bus/mvebu-mbus.c index 33c6947..20da90f 10

Re: [PATCHv4 0/5] ceph: persistent caching with fscache

2013-08-22 Thread Milosz Tanski
Sage, Thanks. If you run into any problems please let me know and I'll resolve them quick and I'll make sure I'm watching the qa mailing list. - Milosz On Thu, Aug 22, 2013 at 1:05 AM, Sage Weil wrote: > Hi Milosz, > > I've pulled this into the ceph testing branch to make sure it holds up > in

Re: [RFC] Get rid of SUBARCH

2013-08-22 Thread Geert Uytterhoeven
On Wed, Aug 21, 2013 at 9:51 PM, Sam Ravnborg wrote: >> > The series touches also m68k, sh, mips and unicore32. >> > These architectures magically select a cross compiler if ARCH != SUBARCH. >> > Do really need that behavior? >> >> This does remove functionality. >> It allows to build a kernel usi

<    1   2   3   4   5   6   7   >