[PATCH] posix-clock: Use an unsigned data type for a variable

2015-12-20 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 20 Dec 2015 09:09:34 +0100 The data type "int" was used by the variable "result" in the function "posix_clock_poll" even though the type "uint" will usually be needed for the return value from a call of the function which was assigned to the pointer "poll" of the v

Re: [RESEND GIT PULL 0/9] phy: for 4.4 -rc

2015-12-20 Thread Kishon Vijay Abraham I
On Friday 18 December 2015 10:57 PM, Greg KH wrote: > On Tue, Dec 15, 2015 at 03:34:15PM +0530, Kishon Vijay Abraham I wrote: >> Hi Greg, >> >> Looks like this have not been merged yet. Can you merge it in this >> -rc cycle. Let me know if I have to change something. >> >> Bulk of the changes are

CONTACT HIM NOW FOR YOUR ATM CARD DELIVERY

2015-12-20 Thread Mark
Attention, We have deposited your fund ($7.500`00USD) through UPS department after our finally meeting regarding your ATM CARD, All you will do is to contact UPS director Andy Chalk via E-mail:(chalka...@gmail.com). he will give you direction on how you will be receiving your ATM CARD .Reme

[PATCH v4 2/5] thermal: rockchip: fix a impossible condition caused by the warning

2015-12-20 Thread Caesar Wang
As the Dan report the smatch check the thermal driver warning: drivers/thermal/rockchip_thermal.c:551 rockchip_configure_from_dt() warn: impossible condition '(thermal->tshut_temp > ((~0 >> 1))) => (s32min-s32max > s32max)' Although The shut_temp read from DT is u32,the temperature is currently re

Re: [PATCH v3 7/8] clk: rockchip: fix usbphy-related clocks

2015-12-20 Thread Kishon Vijay Abraham I
Hi, On Saturday 19 December 2015 10:51 PM, Heiko Stübner wrote: > Hi Kishon, > > Am Dienstag, 15. Dezember 2015, 16:22:32 schrieb Kishon Vijay Abraham I: >> On Friday 20 November 2015 02:52 AM, Heiko Stuebner wrote: >>> The otgphy clocks really only drive the phy blocks. These in turn >>> contain

Re: [PATCH v3 0/5] Fix a trivial typo and support rk3228/rk3399 SoCs for thermal driver.

2015-12-20 Thread Caesar Wang
在 2015年12月18日 04:09, Eduardo Valentin 写道: Hello, On Thu, Dec 03, 2015 at 04:48:38PM +0800, Caesar Wang wrote: This series pacthes to support the next soc for this thermal driver. I don't add the dts thermal data since these SoCs have *_not_* land in this mainline. I believe these SoCs dts will

Re: [PATCH 1/2] x86/mm/pat: Change untrack_pfn() to handle unmapped vma

2015-12-20 Thread Thomas Gleixner
Toshi, On Wed, 9 Dec 2015, Toshi Kani wrote: > diff --git a/arch/x86/mm/pat.c b/arch/x86/mm/pat.c > index 188e3e0..f3e391e 100644 > --- a/arch/x86/mm/pat.c > +++ b/arch/x86/mm/pat.c > @@ -966,8 +966,14 @@ int track_pfn_insert(struct vm_area_struct *vma, > pgprot_t *prot, > > /* > * untrack_p

new barrier type for paravirt (was Re: [PATCH] virtio_ring: use smp_store_mb)

2015-12-20 Thread Michael S. Tsirkin
On Thu, Dec 17, 2015 at 03:39:10PM +0100, Peter Zijlstra wrote: > On Thu, Dec 17, 2015 at 04:33:44PM +0200, Michael S. Tsirkin wrote: > > On Thu, Dec 17, 2015 at 02:57:26PM +0100, Peter Zijlstra wrote: > > > > > > You could of course go fix that instead of mutilating things into > > > sort-of func

Re: [PATCH 2/2] x86/mm/pat: Change free_memtype() to free shrinking range

2015-12-20 Thread Thomas Gleixner
Toshi, On Wed, 9 Dec 2015, Toshi Kani wrote: > diff --git a/arch/x86/mm/pat_rbtree.c b/arch/x86/mm/pat_rbtree.c > index 6393108..d6faef8 100644 > --- a/arch/x86/mm/pat_rbtree.c > +++ b/arch/x86/mm/pat_rbtree.c > @@ -107,7 +112,12 @@ static struct memtype *memtype_rb_exact_match(struct > rb_root *

[PATCH] ASoC: ssm2518: Use a signed return type for ssm2518_lookup_mcs()

2015-12-20 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 20 Dec 2015 10:34:25 +0100 The return type "unsigned int" was used by the ssm2518_lookup_mcs() function even though it will eventually return a negative error code. Improve this implementation detail by deletion of the type modifier then. This issue was detected b

RE: [char-misc-next 4/7] watchdog: mei_wdt: add status debugfs entry

2015-12-20 Thread Winkler, Tomas
> On 12/17/2015 06:49 AM, Tomas Winkler wrote: > > Add entry for dumping current watchdog internal state > > > > Signed-off-by: Tomas Winkler > > --- > > drivers/watchdog/mei_wdt.c | 84 > ++ > > 1 file changed, 84 insertions(+) > > > > diff --git a/

Re: [PATCH] devpts: Sensible /dev/ptmx & force newinstance

2015-12-20 Thread Eric W. Biederman
"H. Peter Anvin" writes: > Does it matter if it mounts devpts twice? It seems like a waste of a > minuscule amount of memory, and nothing else. It breaks system("mknod /tmp/ptmx c 5 2"); open("/tmp/ptmx"); As it opens a pty in an inaccessible instance of devpts. When previously the instance o

Re: [Propose] Isolate core_pattern in mnt namespace.

2015-12-20 Thread Eric W. Biederman
Dongsheng Yang writes: > On 12/20/2015 10:37 AM, Al Viro wrote: >> On Sun, Dec 20, 2015 at 10:14:29AM +0800, Dongsheng Yang wrote: >>> On 12/17/2015 07:23 PM, Dongsheng Yang wrote: Hi guys, We are working on making core dump behaviour isolated in container. But the problem is,

JUST REPLY YES ONLY

2015-12-20 Thread Richard
Hello My proposal will give us 2 million in seven days reply "YES" for details. Regards, Richard. -- 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 Pl

[PATCH] ARM: dts: veyron: enable the tsadc on pinky board

2015-12-20 Thread Caesar Wang
I think the tsadc is fakly hand on pinky board, maybe that's fixed in newest kernel. As the following patch is a example: https://patchwork.kernel.org/patch/7472051/ I don't have meet this issue on pinky board. Let me know if that's still hanging on pinky board. Signed-off-by: Caesar Wang ---

Re: [char-misc-next 4/7] watchdog: mei_wdt: add status debugfs entry

2015-12-20 Thread Guenter Roeck
On 12/20/2015 01:44 AM, Winkler, Tomas wrote: On 12/17/2015 06:49 AM, Tomas Winkler wrote: Add entry for dumping current watchdog internal state Signed-off-by: Tomas Winkler --- drivers/watchdog/mei_wdt.c | 84 ++ 1 file changed, 84 insertio

Re: [PATCH v5] mtd: support BB SRAM on ICP DAS LP-8x4x

2015-12-20 Thread Sergei Ianovich
On Sat, 2015-12-19 at 21:38 -0600, Rob Herring wrote: > On Tue, Dec 15, 2015 at 09:58:53PM +0300, Sergei Ianovich wrote: > > This provides an MTD device driver for 512kB of battery backed up > > SRAM > > on ICPDAS LP-8X4X programmable automation controllers. > > > > SRAM chip is connected via FPGA

[PATCH v2 0/4] x86: KVM vdso and clock improvements

2015-12-20 Thread Andy Lutomirski
x86: KVM vdso and clock improvements NB: patch 1 doesn't really belong here, but it makes this a lot easier for me to test. Patch 1, if it's okay at all, should go though the kvm tree. The rest should probably go through tip:x86/vdso once they're reviewed. I'll do a followup to enable vdso pvcl

[PATCH v2 1/4] x86, vdso, pvclock: Simplify and speed up the vdso pvclock reader

2015-12-20 Thread Andy Lutomirski
From: Andy Lutomirski The pvclock vdso code was too abstracted to understand easily and excessively paranoid. Simplify it for a huge speedup. This opens the door for additional simplifications, as the vdso no longer accesses the pvti for any vcpu other than vcpu 0. Before, vclock_gettime using

[PATCH v2 2/4] x86/vdso: Get pvclock data from the vvar VMA instead of the fixmap

2015-12-20 Thread Andy Lutomirski
Acked-by: Paolo Bonzini Signed-off-by: Andy Lutomirski --- arch/x86/entry/vdso/vclock_gettime.c | 20 arch/x86/entry/vdso/vdso-layout.lds.S | 3 ++- arch/x86/entry/vdso/vdso2c.c | 3 +++ arch/x86/entry/vdso/vma.c | 13 + arch/x86/include/a

[PATCH v2 3/4] x86/vdso: Remove pvclock fixmap machinery

2015-12-20 Thread Andy Lutomirski
Acked-by: Paolo Bonzini Signed-off-by: Andy Lutomirski --- arch/x86/entry/vdso/vclock_gettime.c | 1 - arch/x86/entry/vdso/vma.c| 1 + arch/x86/include/asm/fixmap.h| 5 - arch/x86/include/asm/pvclock.h | 5 - arch/x86/kernel/kvmclock.c | 6 --

[PATCH v2 4/4] x86/vdso: Enable vdso pvclock access on all vdso variants

2015-12-20 Thread Andy Lutomirski
Now that pvclock doesn't require access to the fixmap, all vdso variants can use it. The kernel side isn't wired up for 32-bit kernels yet, but this covers 32-bit and x32 userspace on 64-bit kernels. Acked-by: Paolo Bonzini Signed-off-by: Andy Lutomirski --- arch/x86/entry/vdso/vclock_gettime.

Re: [PATCH] posix-clock: Use an unsigned data type for a variable

2015-12-20 Thread Julia Lawall
On Sun, 20 Dec 2015, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 20 Dec 2015 09:09:34 +0100 > > The data type "int" was used by the variable "result" in the > function "posix_clock_poll" even though the type "uint" will usually > be needed for the return value from a call of t

Re: [PATCH] iio: add ad5761 DAC driver

2015-12-20 Thread Ricardo Ribalda Delgado
Hello Jonthan Thanks for your comments, I have fixed all the style problems in v2, so we can focus in the range parameter. On Sat, Dec 19, 2015 at 5:31 PM, Jonathan Cameron wrote: > Range isn't actually specified in the ABI docs. > Documenation\ABI\testing\sysfs-bus-iio* > The control interface

Re: [PATCH v4 1/2] serial: rewrite pxa2xx-uart to use 8250_core

2015-12-20 Thread Sergei Ianovich
On Sun, 2015-12-20 at 00:12 +0100, Robert Jarzmik wrote: > Sergei Ianovich writes: > > > On Sat, 2015-12-19 at 20:31 +0100, Robert Jarzmik wrote: > > > Sergei Ianovich writes: > > > Thanks for spotting this. This is caused by a change in the latest > > > > version of the patch (SERIAL_8250_PXA i

Re: [PATCH] iio: add ad5761 DAC driver

2015-12-20 Thread Ricardo Ribalda Delgado
Hello Peter: Thanks for your review! I agree on all your points but one: On Sat, Dec 19, 2015 at 6:06 PM, Peter Meerwald-Stadler wrote: >> + .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), \ >> + .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE) | \ >> + BIT(IIO_CHAN_INF

[PATCH 4/4] ASoC: Intel: add NULL test

2015-12-20 Thread Julia Lawall
Add NULL test on call to devm_kzalloc. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression x; identifier fld; @@ * x = devm_kzalloc(...); ... when != x == NULL x->fld // Signed-off-by: Julia Lawall --- sound/soc/intel/baytrail/sst-bay

[PATCH 0/4] add NULL test

2015-12-20 Thread Julia Lawall
Add NULL tests on various calls to kzalloc and devm_kzalloc. The semantic match that finds these problems is as follows: (http://coccinelle.lip6.fr/) // @@ expression x,y; identifier fld; @@ ( x = \(vmalloc\|kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|krealloc\| kmemdup\|kstrdup\|

[PATCH 3/4] s390/cio: add NULL test

2015-12-20 Thread Julia Lawall
Add NULL test on call to kzalloc. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression x; identifier fld; @@ * x = kzalloc(...); ... when != x == NULL x->fld // Signed-off-by: Julia Lawall --- drivers/s390/char/con3215.c |2 ++ 1 f

[PATCH 2/4] ASoC: omap-hdmi-audio: add NULL test

2015-12-20 Thread Julia Lawall
Add NULL test on call to devm_kzalloc. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression x; identifier fld; @@ * x = devm_kzalloc(...); ... when != x == NULL x->fld // Signed-off-by: Julia Lawall --- sound/soc/omap/omap-hdmi-audio.c

[PATCH 1/4] ASoC: imx-pcm-dma: add NULL test

2015-12-20 Thread Julia Lawall
Add NULL test on call to devm_kzalloc. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression x; @@ * x = devm_kzalloc(...); ... when != x == NULL *x // Signed-off-by: Julia Lawall --- sound/soc/fsl/imx-pcm-dma.c |2 ++ 1 file change

[tip:irq/core] genirq/msi: Export functions to allow MSI domains in modules

2015-12-20 Thread tip-bot for Jake Oshins
Commit-ID: a4289dc2ec3a5821076a78ee9678909b4eff297e Gitweb: http://git.kernel.org/tip/a4289dc2ec3a5821076a78ee9678909b4eff297e Author: Jake Oshins AuthorDate: Thu, 10 Dec 2015 17:52:59 + Committer: Thomas Gleixner CommitDate: Sun, 20 Dec 2015 12:26:52 +0100 genirq/msi: Export funct

Re: [PATCH 2/3] RTC/PCF85063: fix time/date reading (part II)

2015-12-20 Thread Alexandre Belloni
Hi, On 07/12/2015 at 14:49:33 +0100, Juergen Borleis wrote : > Use the function to read the whole time/date register in one turn and now > check if the RTC signals an invalid time/date (due to a battery power loss > for example). In this case ignore the time/date until it is really set > again. >

This Is A MIRACLE, I Have Cured My Diabetes, from: Latoya Richards

2015-12-20 Thread Latoya Richards
. Hi, There is a complete natural treatment that treats the r00t cause of diabetes that the medical establishment has been hiding from you all along. A treatment that is 100 percent effective yet totally unknown to your doctor and almost all doctors around the country. Watch our presentaion b

[PATCH v2] iio: add ad5761 DAC driver

2015-12-20 Thread Ricardo Ribalda Delgado
ad5761 is a 1-channel DAC with configurable output range. The driver uses the regulator interface for its voltage ref. It shares its register layout with ad5761r, ad5721 and ad5721r. Differences: ad5761* are 16 bit, ad5721* are 12 bits. ad57*1r have an internal reference. --- v2: A lot of CodeSt

Re: [PATCH 3/3] RTC/PCF85063: fix time/date setting

2015-12-20 Thread Alexandre Belloni
On 07/12/2015 at 14:49:34 +0100, Juergen Borleis wrote : > When setting a new time/date the RTC's clock must be stopped first, in > order to write the time/date registers in an atomic manner. > So, this change stops the clock first and then writes the time/date > registers and the clock control reg

[tip:x86/apic] x86/irq: Export functions to allow MSI domains in modules

2015-12-20 Thread tip-bot for Jake Oshins
Commit-ID: c8f3e518d3444ee9200a4987421fcee60f768f11 Gitweb: http://git.kernel.org/tip/c8f3e518d3444ee9200a4987421fcee60f768f11 Author: Jake Oshins AuthorDate: Thu, 10 Dec 2015 17:52:59 + Committer: Thomas Gleixner CommitDate: Sun, 20 Dec 2015 12:40:49 +0100 x86/irq: Export function

RE: [char-misc-next 4/7] watchdog: mei_wdt: add status debugfs entry

2015-12-20 Thread Winkler, Tomas
> >>> +#if IS_ENABLED(CONFIG_DEBUG_FS) > >>> +static const char *mei_wdt_state_str(enum mei_wdt_state state) > >>> +{ > >>> + switch (state) { > >>> + case MEI_WDT_IDLE: return "IDLE"; > >>> + case MEI_WDT_START: return "START"; > >>> + case MEI_WDT_RUNNING: return "RUNNING"; > >>> + case MEI_WDT

Re: [PATCH v3 9/9] phy: omap-usb2: use *syscon* framework API to power on/off the PHY

2015-12-20 Thread Kishon Vijay Abraham I
Hi Rob, On Sunday 20 December 2015 09:09 AM, Rob Herring wrote: > On Tue, Dec 15, 2015 at 02:46:08PM +0530, Kishon Vijay Abraham I wrote: >> Deprecate using phy-omap-control driver to power on/off the PHY, >> and use *syscon* framework to do the same. This handles >> powering on/off the PHY for th

Re: [PATCH v5] rtc: support DS1302 RTC on ICP DAS LP-8x4x

2015-12-20 Thread Sergei Ianovich
On Sat, 2015-12-19 at 21:38 -0600, Rob Herring wrote: > On Tue, Dec 15, 2015 at 08:45:23PM +0300, Sergei Ianovich wrote: > > Nothing in this is specific to ICP, so the subject should be updated. > > > Signed-off-by: Sergei Ianovich > > CC: Alexandre Belloni > > --- > >    v4..v5 > >    * drop T

firmware_class warnings on resume

2015-12-20 Thread Andy Lutomirski
I hit this warning fairly frequently when resuming 4.4-rc5: ret = usermodehelper_read_trylock(); if (WARN_ON(ret)) { dev_err(device, "firmware: %s will not be loaded\n", name); goto out; } It seems like it could be improved in two wa

RE: [char-misc-next v2 6/7] watchdog: mei_wdt: register wd device only if required

2015-12-20 Thread Winkler, Tomas
> > On 12/17/2015 06:49 AM, Tomas Winkler wrote: > > From: Alexander Usyskin > > > > For Intel Broadwell and newer platforms, the ME device can inform > > the host whether the watchdog functionality is activated or not. > > If the watchdog functionality is not activated then the watchdog interfac

Re: [PATCH v3 3/7] tpm_tis: Do not fall back to a hardcoded address for TPM2

2015-12-20 Thread Jarkko Sakkinen
On Fri, Dec 18, 2015 at 09:51:27AM -0700, Jason Gunthorpe wrote: > On Fri, Dec 18, 2015 at 11:34:32AM +0200, Jarkko Sakkinen wrote: > > > + st = acpi_get_table(ACPI_SIG_TPM2, 1, > > > + (struct acpi_table_header **) &tbl); > > > + if (ACPI_FAILURE(st) || tbl->header.length < siz

[PATCH] Drivers: hv: vmbus: fix the building warning with hyperv-keyboard

2015-12-20 Thread Dexuan Cui
With the recent change af3ff643ea91ba64dd8d0b1cbed54d44512f96cd (Drivers: hv: vmbus: Use uuid_le type consistently), we always get this warning: CC [M] drivers/input/serio/hyperv-keyboard.o drivers/input/serio/hyperv-keyboard.c:427:2: warning: missing braces around initializer [-Wmissin

Re: [PATCH v5 2/2] spi: sun4i: Add support for wait time between word transmissions

2015-12-20 Thread Marcus Weseloh
Hi, 2015-12-18 12:16 GMT+01:00 Maxime Ripard : >> sun4i_spi_write(sspi, SUN4I_CLK_CTL_REG, reg); >> >> + /* >> + * Setup wait time between words. >> + * >> + * Wait time is set in SPI_CLK cycles. The SPI hardware needs 3 >> + * additional cycles to setup the wait cou

Re: [PATCH v1 0/6] Support the rk3036 Kylin board

2015-12-20 Thread Caesar Wang
Hi Heiko, 在 2015年12月20日 01:16, Heiko Stübner 写道: Hi Caesar, Am Donnerstag, 17. Dezember 2015, 22:21:46 schrieb Caesar Wang: Kylin-board is based on RK3036 SOCs, add the initiation version for working. I've applied: - patch1 (please include the "rockchip:" part in dts subjects) - patch3 (dito)

Re: [PATCH] posix-clock: Use an unsigned data type for a variable

2015-12-20 Thread SF Markus Elfring
>> Reuse the type from this poll call instead. > > Why use uint when the function return type it unsigned int? Do you prefer to express the type modifier once more there? > On the other hand, why is the function return type unsigned int > when there is a return of a negative constant? This imp

Re: [PATCH] Input: xpad - use LED API when identifying wireless controllers

2015-12-20 Thread Pavel Rojtberg
2015-12-20 8:55 GMT+01:00 Dmitry Torokhov : > On Sat, Dec 19, 2015 at 10:17:09PM +0100, Clement Calmels wrote: >> On Wed, 16 Dec 2015 14:44:08 -0800 >> Dmitry Torokhov wrote: >> >> > When lighting up the segment identifying wireless controller, Instead >> > of sending command directly to the contr

Re: [PATCH] posix-clock: Use an unsigned data type for a variable

2015-12-20 Thread Julia Lawall
On Sun, 20 Dec 2015, SF Markus Elfring wrote: > >> Reuse the type from this poll call instead. > > > > Why use uint when the function return type it unsigned int? > > Do you prefer to express the type modifier once more there? I don't know what the sentence means, but I think that the type sh

Re: Indent issus in kernel module development

2015-12-20 Thread chunguang qu
I tried it. Not worked unfortunately,. ```bash $ ~/share/linux/scripts/checkpatch.pl --fix --types=spacing testcompletion.c total: 0 errors, 0 warnings, 0 lines checked testcompletion.c has no obvious style problems and is ready for submission. NOTE: Used message types: SPACING ``` 2015-12-19

RE: [char-misc-next v2 7/7] watchdog: mei_wdt: re-register device on event

2015-12-20 Thread Winkler, Tomas
> > > > That breaks the existing behaviour of hot pluggable watchdog interfaces > > > and is different to just about any other device in the kernel. Today with > > > any desktop or server distribution you can already trivially arrange for > > > watchdog daemons to start at the point a watchdog is

[GIT PULL] RTC fixes for 4.4 #2

2015-12-20 Thread Alexandre Belloni
Hi Linus, Please pull those late fixes for the RTC subsystem for 4.4. The following changes since commit 3abb1ada21a4fb5b2920457a2e5c8483abb09a45: rtc: ds1307: fix alarm reading at probe time (2015-11-26 18:11:26 +0100) are available in the git repository at: git://git.kernel.org/pub/scm/l

Re: [PATCH] posix-clock: Use an unsigned data type for a variable

2015-12-20 Thread SF Markus Elfring
Reuse the type from this poll call instead. >>> >>> Why use uint when the function return type it unsigned int? >> >> Do you prefer to express the type modifier once more there? > > I don't know what the sentence means, Can it be a matter of taste if the key word "unsigned" should be repeate

[tip:locking/core] futex: Drop refcount if requeue_pi() acquired the rtmutex

2015-12-20 Thread tip-bot for Thomas Gleixner
Commit-ID: fb75a4282d0d9a3c7c44d940582c2d226cf3acfb Gitweb: http://git.kernel.org/tip/fb75a4282d0d9a3c7c44d940582c2d226cf3acfb Author: Thomas Gleixner AuthorDate: Sat, 19 Dec 2015 20:07:38 + Committer: Thomas Gleixner CommitDate: Sun, 20 Dec 2015 12:43:24 +0100 futex: Drop refcount

[tip:locking/core] futex: Rename free_pi_state() to put_pi_state( )

2015-12-20 Thread tip-bot for Thomas Gleixner
Commit-ID: 29e9ee5d48c35d6cf8afe09bdf03f77125c9ac11 Gitweb: http://git.kernel.org/tip/29e9ee5d48c35d6cf8afe09bdf03f77125c9ac11 Author: Thomas Gleixner AuthorDate: Sat, 19 Dec 2015 20:07:39 + Committer: Thomas Gleixner CommitDate: Sun, 20 Dec 2015 12:43:24 +0100 futex: Rename free_p

[tip:locking/core] futex: Cleanup the goto confusion in requeue_pi()

2015-12-20 Thread tip-bot for Thomas Gleixner
Commit-ID: 885c2cb770b5ac2507c41bc9f91a5d1c98337bee Gitweb: http://git.kernel.org/tip/885c2cb770b5ac2507c41bc9f91a5d1c98337bee Author: Thomas Gleixner AuthorDate: Sat, 19 Dec 2015 20:07:41 + Committer: Thomas Gleixner CommitDate: Sun, 20 Dec 2015 12:43:25 +0100 futex: Cleanup the g

[tip:locking/core] futex: Document pi_state refcounting in requeue code

2015-12-20 Thread tip-bot for Thomas Gleixner
Commit-ID: ecb38b78f698a51988ec456751b20440e54702fb Gitweb: http://git.kernel.org/tip/ecb38b78f698a51988ec456751b20440e54702fb Author: Thomas Gleixner AuthorDate: Sat, 19 Dec 2015 20:07:39 + Committer: Thomas Gleixner CommitDate: Sun, 20 Dec 2015 12:43:24 +0100 futex: Document pi_s

[tip:locking/core] futex: Remove pointless put_pi_state calls in requeue()

2015-12-20 Thread tip-bot for Thomas Gleixner
Commit-ID: 4959f2de11ca532a120a337429e5576fd283700f Gitweb: http://git.kernel.org/tip/4959f2de11ca532a120a337429e5576fd283700f Author: Thomas Gleixner AuthorDate: Sat, 19 Dec 2015 20:07:40 + Committer: Thomas Gleixner CommitDate: Sun, 20 Dec 2015 12:43:25 +0100 futex: Remove pointl

[tip:locking/core] futex: Allow FUTEX_CLOCK_REALTIME with FUTEX_WAIT op

2015-12-20 Thread tip-bot for Darren Hart
Commit-ID: 337f13046ff03717a9e99675284a817527440a49 Gitweb: http://git.kernel.org/tip/337f13046ff03717a9e99675284a817527440a49 Author: Darren Hart AuthorDate: Fri, 18 Dec 2015 13:36:37 -0800 Committer: Thomas Gleixner CommitDate: Sun, 20 Dec 2015 12:43:25 +0100 futex: Allow FUTEX_CLOCK

[PATCH v3] serial: 8250: add gpio support to exar

2015-12-20 Thread Sudip Mukherjee
Exar XR17V352/354/358 chips have 16 multi-purpose inputs/outputs which can be controlled using gpio interface. Add support to use these pins and select GPIO_SYSFS also so that these pins can be used from the userspace through sysfs. Tested-by: Rob Groner Signed-off-by: Sudip Mukherjee --- v3: A

Re: [PATCH 1/2] x86/msr: add on cpu read/modify/write function

2015-12-20 Thread Thomas Gleixner
Jacob, On Fri, 11 Dec 2015, Jacob Pan wrote: > +static inline int rmwmsrl_safe_on_cpu(unsigned int cpu, u32 msr_no, u64 > mask, u64 bits) > +{ > + int err; > + u64 val; > + > + err = rdmsrl_safe(msr_no, &val); > + if (err) > + goto out; > + > + val &= ~mask; > +

Re: [PATCH 05/10] perf tools: Add dynamic sort key for tracepoint events

2015-12-20 Thread Jiri Olsa
On Wed, Dec 16, 2015 at 12:35:38AM +0900, Namhyung Kim wrote: SNIP > + > + if (!len) > + len = hde_width(hde); > + > + return len; > +} > + > +static int __sort__hde_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, > + struct hist_entry *he) > +{

Re: [PATCH 05/10] perf tools: Add dynamic sort key for tracepoint events

2015-12-20 Thread Namhyung Kim
Hi Jiri, On Sun, Dec 20, 2015 at 02:51:32PM +0100, Jiri Olsa wrote: > On Wed, Dec 16, 2015 at 12:35:38AM +0900, Namhyung Kim wrote: > > SNIP > > > + > > + if (!len) > > + len = hde_width(hde); > > + > > + return len; > > +} > > + > > +static int __sort__hde_entry(struct perf_hpp_fm

[PATCH] ibmveth: consolidate kmalloc of array, memset 0 to kcalloc

2015-12-20 Thread Nicholas Mc Guire
This is an API consolidation only. The use of kmalloc + memset to 0 is equivalent to kcalloc in this case as it is allocating an array of elements. Signed-off-by: Nicholas Mc Guire --- Found by coccinelle script (relaxed version of scripts/coccinelle/api/alloc/kzalloc-simple.cocci) Patch was co

Re: Aw: Re: [RFC PATCH urcu on mips, parisc] Fix: compat_futex should work-around futex signal-restart kernel bug

2015-12-20 Thread Mathieu Desnoyers
- On Dec 19, 2015, at 5:37 AM, Helge Deller del...@gmx.de wrote: > Hi Mathieu, > > On 18.12.2015 21:42, Helge Deller wrote: >> On 18.12.2015 20:58, Mathieu Desnoyers wrote: >> When testing liburcu on a 3.18 Linux kernel, 2-core MIPS (cpu model : >> Ingenic JZRISC V4.15 FPU V0.0), we

Re: [PATCH 06/10] perf tools: Try to show pretty printed output for dynamic sort keys

2015-12-20 Thread Jiri Olsa
On Wed, Dec 16, 2015 at 12:35:39AM +0900, Namhyung Kim wrote: SNIP > struct trace_seq seq; > + char *str, *pos; > + struct format_field *field; > + struct pevent_record rec = { > + .cpu = he->cpu, > + .data = he->raw_data, > + .size = he->raw

Re: [PATCH v3] serial: 8250: add gpio support to exar

2015-12-20 Thread Andy Shevchenko
On Sun, Dec 20, 2015 at 3:24 PM, Sudip Mukherjee wrote: > Exar XR17V352/354/358 chips have 16 multi-purpose inputs/outputs which > can be controlled using gpio interface. > Add support to use these pins and select GPIO_SYSFS also so that these > pins can be used from the userspace through sysfs. >

Re: [PATCH v5] extcon: add Maxim MAX3355 driver

2015-12-20 Thread Chanwoo Choi
Hi, This patch depend on GPIOLIB configuration as following: I modified it with following diff and applied it. diff --git a/drivers/extcon/Kconfig b/drivers/extcon/Kconfig index ba4db7d..3d89e60 100644 --- a/drivers/extcon/Kconfig +++ b/drivers/extcon/Kconfig @@ -54,6 +54,7 @@ config EXTCON_MAX14

Re: [PATCH v1 0/6] Support the rk3036 Kylin board

2015-12-20 Thread Heiko Stübner
Hi Caesar, Am Sonntag, 20. Dezember 2015, 20:49:14 schrieb Caesar Wang: > Hi Heiko, > > 在 2015年12月20日 01:16, Heiko Stübner 写道: > > Hi Caesar, > > > > Am Donnerstag, 17. Dezember 2015, 22:21:46 schrieb Caesar Wang: > >> Kylin-board is based on RK3036 SOCs, add the initiation > >> version for work

Re: [PATCH v3] serial: 8250: add gpio support to exar

2015-12-20 Thread Sudip Mukherjee
On Sun, Dec 20, 2015 at 04:18:17PM +0200, Andy Shevchenko wrote: > On Sun, Dec 20, 2015 at 3:24 PM, Sudip Mukherjee > wrote: > > Exar XR17V352/354/358 chips have 16 multi-purpose inputs/outputs which > > can be controlled using gpio interface. > > Add support to use these pins and select GPIO_SYSF

Re: [PATCH 1/1] Fix 'sleeping function called from invalid context' warning in sysrq generated crash.

2015-12-20 Thread Anirban Sinha
On Fri, 18 Dec 2015, Paul E. McKenney wrote: > On Thu, Dec 17, 2015 at 05:15:10PM -0800, Ani Sinha wrote: > > Commit 984d74a72076a1 ("sysrq: rcu-ify __handle_sysrq") > > replaced spin_lock_irqsave() calls with > > rcu_read_lock() calls in sysrq. Since rcu_read_lock() does not > > disable preempt

Re: [PATCH 08/10] perf tools: Add --raw-trace option

2015-12-20 Thread Jiri Olsa
On Wed, Dec 16, 2015 at 12:35:41AM +0900, Namhyung Kim wrote: > The --raw-trace option is to prevent pretty printing by event's > print_fmt or plugin. Besides that, each dynamic sort key now receives > 'raw' suffix separated by '/' to apply the raw trace to a specific > field. > > $ perf report

Re: [PATCH v3] serial: 8250: add gpio support to exar

2015-12-20 Thread Andy Shevchenko
On Sun, Dec 20, 2015 at 4:47 PM, Sudip Mukherjee wrote: > On Sun, Dec 20, 2015 at 04:18:17PM +0200, Andy Shevchenko wrote: >> On Sun, Dec 20, 2015 at 3:24 PM, Sudip Mukherjee >> wrote: >> > Exar XR17V352/354/358 chips have 16 multi-purpose inputs/outputs which >> > can be controlled using gpio in

Re: "special" key when Lenovo Yoga 900 in tablet mode

2015-12-20 Thread Andy Shevchenko
On Tue, Dec 15, 2015 at 9:27 PM, Nish Aravamudan wrote: > So the Lenovo Yoga 900 has 4 "modes" (laptop, tent, stand and tablet). > In tablet mode, it appears that the following is printed roughly every > second: > > atkbd serio0: Unknown key pressed (translated set 2, code 0xbf on > isa0060/serio0

Re: [PATCH 1/2] x86/msr: add on cpu read/modify/write function

2015-12-20 Thread Borislav Petkov
On Sun, Dec 20, 2015 at 02:28:48PM +0100, Thomas Gleixner wrote: > So this is a copy of the above !SMP inline. What's wrong with providing: > > int rmwmsrl_safe(msr_no, clear_mask, set_mask) > > in x86/lib/msr.c and make the !SMP variant of rdmsrl_safe_on_cpu() and that > variant for the SMP cas

Re: [PATCH V7 02/24] coresight: associating path with session rather than tracer

2015-12-20 Thread Rabin Vincent
On Fri, Dec 18, 2015 at 01:58:58PM -0700, Mathieu Poirier wrote: > When using the Coresight framework from the sysFS interface a > tracer is always handling a single session and as such, a path > can be associated with a tracer. But when supporting multiple > session per tracer there is no guarant

Re: Aw: Re: [RFC PATCH urcu on mips, parisc] Fix: compat_futex should work-around futex signal-restart kernel bug

2015-12-20 Thread Helge Deller
On 20.12.2015 15:11, Mathieu Desnoyers wrote: > - On Dec 19, 2015, at 5:37 AM, Helge Deller del...@gmx.de wrote: > >> Hi Mathieu, >> >> On 18.12.2015 21:42, Helge Deller wrote: >>> On 18.12.2015 20:58, Mathieu Desnoyers wrote: >>> When testing liburcu on a 3.18 Linux kernel, 2-core MIPS (c

Re: [PATCH v1 1/3] i2c: rk3x: add calc_divs ops for new version

2015-12-20 Thread Andy Shevchenko
On Tue, Dec 15, 2015 at 2:32 AM, Jianqun Xu wrote: > Hi David: > > It's better to add a cover-letter, and add changes note for new version, > such as: > > changes since v0: > - split patch to two patches or more, one patch for one new feature (Heiko) > > and NOT to have two same signed-off-by Bes

Re: [PATCH v15 20/25] x86/asm/acpi: Create a stack frame in do_suspend_lowlevel()

2015-12-20 Thread Rafael J. Wysocki
On Friday, December 18, 2015 06:39:34 AM Josh Poimboeuf wrote: > do_suspend_lowlevel() is a callable non-leaf function which doesn't > honor CONFIG_FRAME_POINTER, which can result in bad stack traces. > > Create a stack frame for it when CONFIG_FRAME_POINTER is enabled. > > Signed-off-by: Josh Po

Re: [PATCH v15 23/25] x86/asm/power: Create stack frames in hibernate_asm_64.S

2015-12-20 Thread Rafael J. Wysocki
On Friday, December 18, 2015 06:39:37 AM Josh Poimboeuf wrote: > swsusp_arch_suspend() and restore_registers() are callable non-leaf > functions which don't honor CONFIG_FRAME_POINTER, which can result in > bad stack traces. Also they aren't annotated as ELF callable functions > which can confuse

[PATCH] drivers/tty: add kernel.restrict_pushback sysctl

2015-12-20 Thread Jann Horn
This new sysctl can be set to 1 to require CAP_SYS_ADMIN for the TIOCSTI ioctl (which lets the caller push input back into the TTY and thereby fake input to other processes that read from the same TTY). This is a well-known problem that hasn't been handled particularly well in userland, e.g. allow

Dear Friend,

2015-12-20 Thread Dr. David White
Dear Friend, With due respect to your person and much sincerity of purpose . I have a business proposal which I will like to handle with you. $35 million USD is involves. But be rest assured that everything is legal and risk free as I have concluded all the arrangements and the legal papers t

NULL pointer deref in dccp (inet_csk_listen_start/inet_csk_get_port)

2015-12-20 Thread Vegard Nossum
Hi all, I've been running into the following oops: [ 1128.895622] BUG: unable to handle kernel NULL pointer dereference at (null) [ 1128.896010] IP: [< (null)>] (null) [ 1128.896010] PGD 179ee067 PUD 189b1067 PMD 0 [ 1128.896010] Oops: 0010 [#1] PREEMPT SMP [ 1128.

Re: [PATCH v2 10/14] serial: pic32_uart: Add PIC32 UART driver

2015-12-20 Thread Andy Shevchenko
On Tue, Dec 15, 2015 at 12:42 AM, Joshua Henderson wrote: > From: Andrei Pistirica > > This adds UART and a serial console driver for Microchip PIC32 class > devices. > > Signed-off-by: Andrei Pistirica > Signed-off-by: Joshua Henderson > Cc: Ralf Baechle > --- > drivers/tty/serial/Kconfig

Re: Power off problem with newer kernels on Acer laptop

2015-12-20 Thread Andy Shevchenko
On Sun, Dec 13, 2015 at 10:57 PM, Bruce Mayo wrote: > Dear kernel maintainers, > > Newer versions of the linux kernel don't shut off the power on an Acer > Aspire E11 laptop. The full bug report is attached. I'm pretty sure this is related to https://bugzilla.kernel.org/show_bug.cgi?id=101271.

Re: Power off problem with newer kernels on Acer laptop

2015-12-20 Thread Andy Shevchenko
On Sun, Dec 20, 2015 at 6:27 PM, Andy Shevchenko wrote: > On Sun, Dec 13, 2015 at 10:57 PM, Bruce Mayo wrote: >> Dear kernel maintainers, >> >> Newer versions of the linux kernel don't shut off the power on an Acer >> Aspire E11 laptop. The full bug report is attached. > > I'm pretty sure this is

[PATCH] perf tools: Do not show trace command if it's not compiled in

2015-12-20 Thread Jiri Olsa
The trace command still appears in help message when you run simple 'perf' command. It's because the generate-cmdlist.sh does not care about the HAVE_LIBAUDIT_SUPPORT dependency of trace command and puts it into generated common_cmds array. Wrapping trace command under HAVE_LIBAUDIT_SUPPORT depen

Re: [PATCH] drivers/tty: add kernel.restrict_pushback sysctl

2015-12-20 Thread One Thousand Gnomes
On Sun, 20 Dec 2015 16:45:26 +0100 Jann Horn wrote: > This new sysctl can be set to 1 to require CAP_SYS_ADMIN for > the TIOCSTI ioctl (which lets the caller push input back into > the TTY and thereby fake input to other processes that read > from the same TTY). You can already do tbis with an L

Re: [PATCH v3] serial: 8250: add gpio support to exar

2015-12-20 Thread One Thousand Gnomes
On Sun, 20 Dec 2015 20:17:22 +0530 Sudip Mukherjee wrote: > On Sun, Dec 20, 2015 at 04:18:17PM +0200, Andy Shevchenko wrote: > > On Sun, Dec 20, 2015 at 3:24 PM, Sudip Mukherjee > > wrote: > > > Exar XR17V352/354/358 chips have 16 multi-purpose inputs/outputs which > > > can be controlled using

Re: [PATCH v5 2/3] tty: Add software emulated RS485 support for 8250

2015-12-20 Thread Andy Shevchenko
On Sat, Dec 12, 2015 at 1:23 PM, Matwey V. Kornilov wrote: > Implementation of software emulation of RS485 direction handling is based > on omap_serial driver. > Before and after transmission RTS is set to the appropriate value. > > Note that before calling serial8250_em485_init the caller has to

arch/x86/xen/suspend.c:70:9: error: implicit declaration of function 'xen_pv_domain'

2015-12-20 Thread kbuild test robot
Hi Sasha, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 69c37a92ddbf79d9672230f21a04580d7ac2f4c3 commit: 71458cfc782eafe4b27656e078d379a34e472adf kernel: add support for gcc 5 date: 1 year, 2 months ago config:

Re: [PATCH v3] serial: 8250: add gpio support to exar

2015-12-20 Thread One Thousand Gnomes
> v3: Alan commented on v2, few things like NULL check, name of the gpio chip, > moving some more code into the gpio code. He also commented on it being > a separate module, but since this will not be needed by someone who is not > using Exar chip, and even those who are using, some of them may not

Re: [PATCH v9 1/3] serial: 8250_dw: Avoid serial_outx code duplicate with new dw8250_check_lcr()

2015-12-20 Thread Andy Shevchenko
On Sat, Dec 12, 2015 at 7:18 PM, Noam Camus wrote: > From: Noam Camus > > With the help of Heikki we take common code that > makes sure LCR write wasn't ignored and put it in new function called > dw8250_check_lcr(). This function serves 3 serial_out routines: > dw8250_serial_out(), dw8250_serial

Re: [PATCH v2 1/2] crypto: KEYS: convert public key to the akcipher api

2015-12-20 Thread Tadeusz Struk
On 12/19/2015 03:49 PM, kbuild test robot wrote: > Hi Tadeusz, > > [auto build test ERROR on crypto/master] > [also build test ERROR on v4.4-rc5 next-20151218] > > url: > https://github.com/0day-ci/linux/commits/Tadeusz-Struk/crypto-KEYS-convert-public-key-to-akcipher-api/20151213-103429 >

[RFC PATCH] ARM: pxa: add defconfig covering all the boards

2015-12-20 Thread Robert Jarzmik
Add a defconfig covering all known pxa board, ie. all selectable machine files in arch/arm/mach-pxa/*.c. This defconfig was built by doing : - aggregation of all known defconfigs by cat am200epdkit_defconfig cm_x2xx_defconfig cm_x300_defconfig colibri_pxa270_defcon

Re: [Xen-devel] new barrier type for paravirt (was Re: [PATCH] virtio_ring: use smp_store_mb)

2015-12-20 Thread Andrew Cooper
On 20/12/15 09:25, Michael S. Tsirkin wrote: > On Thu, Dec 17, 2015 at 03:39:10PM +0100, Peter Zijlstra wrote: >> On Thu, Dec 17, 2015 at 04:33:44PM +0200, Michael S. Tsirkin wrote: >>> On Thu, Dec 17, 2015 at 02:57:26PM +0100, Peter Zijlstra wrote: You could of course go fix that instead of m

Re: [PATCH v3] serial: 8250: add gpio support to exar

2015-12-20 Thread Sudip Mukherjee
On Sun, Dec 20, 2015 at 04:41:31PM +, One Thousand Gnomes wrote: > On Sun, 20 Dec 2015 20:17:22 +0530 > Sudip Mukherjee wrote: > > > On Sun, Dec 20, 2015 at 04:18:17PM +0200, Andy Shevchenko wrote: > > > On Sun, Dec 20, 2015 at 3:24 PM, Sudip Mukherjee > > > wrote: > > > > Exar XR17V352/354/

Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel

2015-12-20 Thread Måns Rullgård
Julian Margetson writes: > On 12/19/2015 4:41 PM, Måns Rullgård wrote: >> Andy Shevchenko writes: >> >>> On Sat, Dec 19, 2015 at 10:16 PM, Julian Margetson wrote: On 12/19/2015 3:07 PM, Måns Rullgård wrote: > Julian Margetson writes: >> Total pages: 522752 >> [0.00] Ke

Re: [PATCH v5] extcon: add Maxim MAX3355 driver

2015-12-20 Thread Sergei Shtylyov
Hello. On 12/20/2015 05:31 PM, Chanwoo Choi wrote: This patch depend on GPIOLIB configuration as following: I modified it with following diff and applied it. diff --git a/drivers/extcon/Kconfig b/drivers/extcon/Kconfig index ba4db7d..3d89e60 100644 --- a/drivers/extcon/Kconfig +++ b/drivers/ex

Re: [PATCH RESEND 1/1] serial: 8250_pci: Fix real serial port count for F81504/508/512

2015-12-20 Thread Andy Shevchenko
On Tue, Dec 15, 2015 at 4:56 AM, Peter Hung wrote: > Andy Shevchenko 於 2015/12/13 上午 09:08 寫道: >> >> On Tue, Dec 1, 2015 at 8:54 AM, Peter Hung wrote: >>> +/* The device is multi-function with UART & GPIO */ >>> +static u8 fintek_gpio_mapping[] = {2, 3, 8, 9, 10, 11}; >> >> >> Clearly you have bi

  1   2   3   >