[PATCH v2 14/16] net: dsa: mv88e6171: Add defines for switch product IDs

2015-03-26 Thread Guenter Roeck
From: Andrew Lunn Make the code more readable by using defines for the switch IDs. Signed-off-by: Andrew Lunn Reviewed-by: Guenter Roeck Signed-off-by: Guenter Roeck --- drivers/net/dsa/mv88e6171.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/net/dsa/mv

[PATCH] MIPS: Loongson-3: remove deprecated IRQF_DISABLED

2015-03-26 Thread Michael Opdenacker
This removes the use of the IRQF_DISABLED flag from arch/mips/loongson/loongson-3/hpet.c It's a NOOP since 2.6.35. Signed-off-by: Michael Opdenacker --- arch/mips/loongson/loongson-3/hpet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/loongson/loongson-3/hpet.c

Re: [PATCH 7/7] x86/intel_rdt: Add CAT documentation and usage guide

2015-03-26 Thread Marcelo Tosatti
On Thu, Mar 26, 2015 at 11:38:59AM -0700, Vikas Shivappa wrote: > > Hello Marcelo, Hi Vikas, > On Wed, 25 Mar 2015, Marcelo Tosatti wrote: > > >On Thu, Mar 12, 2015 at 04:16:07PM -0700, Vikas Shivappa wrote: > >>This patch adds a description of Cache allocation technology, overview > >>of kerne

Re: [PATCH] leds-gpio: Fix error handling and memory leak

2015-03-26 Thread Bryan Wu
On Mon, Mar 9, 2015 at 5:43 PM, wrote: > From: Corey Minyard > > The leds-gpio driver would not clean up properly if it failed in some > places, and it wasn't freeing its private data. > > Signed-off-by: Corey Minyard > --- > drivers/leds/leds-gpio.c | 13 + > 1 file changed, 9 ins

Re: [PATCH v4 14/15] ASoC: rockchip/rockchip-hdmi-audio: add sound driver for hdmi audio

2015-03-26 Thread Mark Brown
On Fri, Mar 27, 2015 at 09:16:17AM +0800, yakir wrote: > On 2015年03月27日 02:16, Mark Brown wrote: > >>+free_cpu_of_node: > >>+ hdmi_audio_dai.cpu_of_node = NULL; > >>+ hdmi_audio_dai.platform_of_node = NULL; > >>+free_priv_data: > >>+ snd_soc_card_set_drvdata(card, NULL); > >>+ platform_set

[PATCH] [RESEND][SCSI] ips: remove unused defines

2015-03-26 Thread Michael Opdenacker
This patch removes unused defines from drivers/scsi/ips.h - the min() macro is not used - the __iomem define is no longer needed to compile ips.c without warnings Signed-off-by: Michael Opdenacker --- drivers/scsi/ips.h | 8 1 file changed, 8 deletions(-) diff --git a/drivers/scsi/i

Re: [PATCH v4 14/15] ASoC: rockchip/rockchip-hdmi-audio: add sound driver for hdmi audio

2015-03-26 Thread yakir
Hi Mark, On 2015年03月27日 02:16, Mark Brown wrote: On Sat, Feb 28, 2015 at 10:04:30PM -0500, Yakir Yang wrote: + ret = snd_soc_dai_set_fmt(cpu_dai, dai_fmt); + if (ret < 0) { + dev_err(cpu_dai->dev, "failed to set cpu_dai fmt.\n"); + return ret; + }

[PATCH] [RESEND] drivers: bus: omap_l3: remove deprecated IRQF_DISABLED

2015-03-26 Thread Michael Opdenacker
This patch removes the use of the IRQF_DISABLED flag from drivers/bus/omap_l3_* It's a NOOP since 2.6.35 and it will be removed one day. Signed-off-by: Michael Opdenacker Acked-by: Santosh Shilimkar --- drivers/bus/omap_l3_noc.c | 4 ++-- drivers/bus/omap_l3_smx.c | 6 ++ 2 files changed,

[PATCH] [RESEND] cpqarray: remove deprecated IRQF_DISABLED

2015-03-26 Thread Michael Opdenacker
This patch removes the use of the IRQF_DISABLED flag from drivers/block/cpqarray.c It's a NOOP since 2.6.35 and it will be removed one day. Signed-off-by: Michael Opdenacker --- drivers/block/cpqarray.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/cpqarray.c

Re: [RFCv2] mm: page allocation for less fragmentation

2015-03-26 Thread Gioh Kim
2015-03-26 오후 7:28에 Mel Gorman 이(가) 쓴 글: On Thu, Mar 26, 2015 at 06:16:22AM +0900, Gioh Kim wrote: 2015-03-25 ?? 7:56??? Mel Gorman ???(???) ??? ???: On Wed, Mar 25, 2015 at 11:39:15AM +0900, Gioh Kim wrote: My driver allocates more than 40MB pages via alloc_page() at a time and maps t

[PATCH] [RESEND] aic7xxx: replace kmalloc/memset by kzalloc

2015-03-26 Thread Michael Opdenacker
This replaces kmalloc + memset by a call to kzalloc This also fixes one checkpatch.pl issue in the process. This improvement was suggested by "make coccicheck" Signed-off-by: Michael Opdenacker Reviewed-by: Hannes Reinecke --- drivers/scsi/aic7xxx/aic79xx_core.c | 3 +-- drivers/scsi/aic7xxx

Re: missing MS_RDONLY check in fsync

2015-03-26 Thread Matt
Hi Sanidhya, you might be interested in the following patch by Richard Yao: http://marc.info/?l=linux-fsdevel&m=141523828324345&w=2 [PATCH v4 1/1] vfs: Respect MS_RDONLY at bind mount creation Regards Matt -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body

Re: [PATCH 1/2] spi/rockchip: Round up clock rate divisor to err on the safe side

2015-03-26 Thread Mark Brown
On Thu, Mar 26, 2015 at 04:30:24PM -0700, Julius Werner wrote: > The Rockchip SPI driver currently calculates its clock rate divisor by > integer dividing the parent rate by the target rate, and then rounding > the result up to the next even number (since the divisor must be > even). Applied both,

Kernel warning at fs/btrfs/inode.c:8693 btrfs_destroy_inode+0x1fa/0x2a0 [btrfs]()

2015-03-26 Thread Nikolaus Rath
Hello, I'm running 4.0-rc3, and I'm regularly getting these warnings in my kernel log: Mar 26 17:31:13 vostro kernel: [21480.088671] [ cut here ] Mar 26 17:31:13 vostro kernel: [21480.088682] WARNING: CPU: 0 PID: 28958 at fs/btrfs/inode.c:8693 btrfs_destroy_inode+0x1fa/0

Re: [PATCH] [RESEND] aic7xxx: replace kmalloc/memset by kzalloc

2015-03-26 Thread Michael Opdenacker
On 03/24/2015 04:16 PM, Elliott, Robert (Server Storage) wrote: > > It was a reply to the original post on 2014-10-16, not the resend > this month. > > From http://permalink.gmane.org/gmane.linux.kernel/1808168: > > kcalloc is helpful when one of the values is a variable that > might cause the mu

Re: [LKP] [xfs] 834ffca6f7e: WARNING: CPU: 3 PID: 23390 at fs/xfs/xfs_file.c:700 xfs_file_dio_aio_write+0x27c/0x2e0()

2015-03-26 Thread Huang Ying
On Fri, 2015-03-27 at 08:22 +1100, Dave Chinner wrote: > On Thu, Mar 26, 2015 at 02:45:19PM +0800, Huang Ying wrote: > > FYI, we noticed the below changes on > > > > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > > commit 834ffca6f7e345a79f6f2e2d131b0dfba8a4b67a ("xfs: d

Re: [PATCH 2/2] spi/rockchip: Add device tree property to configure Rx Sample Delay

2015-03-26 Thread Doug Anderson
Julius, On Thu, Mar 26, 2015 at 4:30 PM, Julius Werner wrote: > We have found that we can sometimes see read failures on boards with > high-capacitance SPI lines. It seems that the controller samples the Rx > data line too early, and its register interface has an "Rx Sample Delay" > setting to fi

Re: [PATCH] ASoC: Add support for NAU8824 codec to ASoC

2015-03-26 Thread Mark Brown
On Thu, Mar 26, 2015 at 02:58:53PM -0700, Chih-Chiang Chang wrote: > On 3/6/2015 1:07 PM, Mark Brown wrote: > > On Fri, Mar 06, 2015 at 03:28:33PM +0800, Chih-Chiang Chang wrote: > > Please fix your mailer to word wrap within paragraphs, it makes things a > > lot easier to read. > This seems to v

Re: [PATCH 1/2] spi/rockchip: Round up clock rate divisor to err on the safe side

2015-03-26 Thread Doug Anderson
Julius, On Thu, Mar 26, 2015 at 4:30 PM, Julius Werner wrote: > The Rockchip SPI driver currently calculates its clock rate divisor by > integer dividing the parent rate by the target rate, and then rounding > the result up to the next even number (since the divisor must be > even). > > Clock rat

linux-next: build failure after merge of the arm64 tree

2015-03-26 Thread Stephen Rothwell
Hi Catalin, Yesterday's linux-next overnight builds (most arm builds) failed like this: ./arch/arm/kernel/vmlinux.lds:677: undefined symbol `__hyp_idmap_size' referenced in expression See, for example, http://kisskb.ellerman.id.au/kisskb/buildresult/12391163/ . Have a look at http://kisskb.elle

Re: [PATCH v3 2/2] powerpc/mm: Tracking vDSO remap

2015-03-26 Thread Benjamin Herrenschmidt
On Thu, 2015-03-26 at 10:43 +0100, Ingo Molnar wrote: > * Benjamin Herrenschmidt wrote: > > > On Wed, 2015-03-25 at 19:36 +0100, Ingo Molnar wrote: > > > * Ingo Molnar wrote: > > > > > > > > +#define __HAVE_ARCH_REMAP > > > > > +static inline void arch_remap(struct mm_struct *mm, > > > > > +

[PATCH] dmaengine: pl330: fix the race condition in pl330 driver.

2015-03-26 Thread Scott Branden
From: ismail Update the thread running index before issuing the GO command to the DMAC. Tested-by: Mohamed Ismail Abdul Packir Mohamed Reviewed-by: Ray Jui Reviewed-by: Arun Parameswaran Reviewed-by: Scott Branden Signed-off-by: Scott Branden Signed-off-by: Mohamed Ismail Abdul Packir Moham

Re: [patch 2/2] mm, selftests: test return value of munmap for MAP_HUGETLB memory

2015-03-26 Thread Michael Ellerman
On Thu, 2015-03-26 at 16:23 -0700, David Rientjes wrote: > When MAP_HUGETLB memory is unmapped, the length must be hugepage aligned, > otherwise it fails with -EINVAL. > > All tests currently behave correctly, but it's better to explcitly test > the return value for completeness and document the r

Re: [PATCH v7 2/5] power: max77843_charger: Add Max77843 charger device driver

2015-03-26 Thread Beomho Seo
On 03/26/2015 10:54 PM, Lee Jones wrote: > On Thu, 26 Mar 2015, Beomho Seo wrote: >> On 03/24/2015 05:38 PM, Krzysztof Kozlowski wrote: >>> 2015-03-24 9:01 GMT+01:00 Beomho Seo : On 03/10/2015 10:44 PM, Beomho Seo wrote: > On 03/09/2015 09:13 PM, Krzysztof Kozlowski wrote: >> On pon, 2

Re: [PATCH v4 2/4] mfd: lubbock_cplds: add lubbock IO board

2015-03-26 Thread Greg Kroah-Hartman
On Thu, Mar 26, 2015 at 10:38:54PM +0100, Robert Jarzmik wrote: > Greg Kroah-Hartman writes: > > > On Fri, Feb 20, 2015 at 05:02:57PM +0100, Robert Jarzmik wrote: > >> If there is no solution, I'll fallback through arch/arm/plat-pxa, not very > >> nice, > >> but it has to land somewhere, I don't

Re: [PATCH] Staging: rtl8192 Clean up function definition

2015-03-26 Thread Eddie Kovsky
On Thu, Mar 26, 2015 at 11:37:45AM +0300, Dan Carpenter wrote: > Huh. Weird. Please, could you just move it forward instead so we don't > have to have the prototype declaration? > > regars, > dan carpenter > Dan You're right. That's a better solution. But I already got a message from Greg tha

Propagating clock rate constraints

2015-03-26 Thread Boris Brezillon
Hello, I recently had a problem with the at91 clk implementation: the programmable clock driver is not forwarding set_rate() requests to its parent, meaning that, if the PLLB is set to 0, it will choose another parent which might be inappropriate to generate the requested clock. ITOH, if we author

Re: [PATCH v1 02/47] x86: mtrr: generalize run time disabling of MTRR

2015-03-26 Thread Luis R. Rodriguez
On Wed, Mar 25, 2015 at 03:59:41PM -0400, Konrad Rzeszutek Wilk wrote: > On Fri, Mar 20, 2015 at 04:17:52PM -0700, Luis R. Rodriguez wrote: > > From: "Luis R. Rodriguez" > > > > It is possible to enable CONFIG_MTRR and up with it > > disabled at run time and yet CONFIG_X86_PAT continues > > to ki

Re: [Linux-nvdimm] [PATCH] SQUASHME: Streamline pmem.c

2015-03-26 Thread Dan Williams
On Thu, Mar 26, 2015 at 10:02 AM, Boaz Harrosh wrote: > > Christoph why did you choose the fat and ugly version of > pmem.c beats me. Boaz, I am so very tired of your snide commentary. It severely detracts from the technical merit of your patches. Please stop. -- To unsubscribe from this list:

Re: [PATCH v3] led/led-class: Handle LEDs with the same name

2015-03-26 Thread Sakari Ailus
Hi Ricardo, On Sat, Mar 14, 2015 at 12:05:39AM +0100, Ricardo Ribalda Delgado wrote: > @@ -219,12 +239,19 @@ static const struct dev_pm_ops leds_class_dev_pm_ops = { > */ > int led_classdev_register(struct device *parent, struct led_classdev > *led_cdev) > { > + char name[64]; > + int

[PATCH 2/2] spi/rockchip: Add device tree property to configure Rx Sample Delay

2015-03-26 Thread Julius Werner
We have found that we can sometimes see read failures on boards with high-capacitance SPI lines. It seems that the controller samples the Rx data line too early, and its register interface has an "Rx Sample Delay" setting to fine-tune against this issue. This patch adds a new optional device tree

[PATCH 1/2] spi/rockchip: Round up clock rate divisor to err on the safe side

2015-03-26 Thread Julius Werner
The Rockchip SPI driver currently calculates its clock rate divisor by integer dividing the parent rate by the target rate, and then rounding the result up to the next even number (since the divisor must be even). Clock rate divisors should always be rounded up, so that the resulting frequency is

Re: d63e2e1f3df breaks sparc/T5-8

2015-03-26 Thread David Ahern
On 3/26/15 2:43 PM, Yinghai Lu wrote: Can you send out boot log with "debug ignore_loglevel"? attached PROMLIB: Sun IEEE Boot Prom 'OBP 4.36.2 2014/10/24 08:15' PROMLIB: Root node compatible: sun4v Initializing cgroup subsys cpuset Initializing cgroup subsys cpu Initializing cgroup subsys cpuac

[PATCH v14] sched/deadline: support dl task migration during cpu hotplug

2015-03-26 Thread Wanpeng Li
I observe that dl task can't be migrated to other cpus during cpu hotplug, in addition, task may/may not be running again if cpu is added back. The root cause which I found is that dl task will be throtted and removed from dl rq after comsuming all budget, which leads to stop task can't pick it up

[PATCH v2 4/4] drm/msm/mdp5: Enable DSI connector in msm drm driver

2015-03-26 Thread Hai Li
This change adds the support in mdp5 kms driver for single and dual DSI. Dual DSI case depends on the framework API and sequence change to support dual data path. v1: Initial change v2: Address Rob Clark's comment - Separate command mode encoder to a new file mdp5_cmd_encoder.c - Rebase to not dep

[PATCH v2 3/4] drm/msm: Initial add DSI connector support

2015-03-26 Thread Hai Li
This change adds the DSI connector support in msm drm driver. v1: Initial change v2: - Address comments from Archit + minor clean-ups - Rebase to not depend on msm_drm_sub_dev change [Rob's comment] Signed-off-by: Hai Li --- drivers/gpu/drm/msm/Kconfig | 11 + drivers/gpu/drm/msm/Ma

[PATCH v2 0/4] drm/msm: Initial add DSI support

2015-03-26 Thread Hai Li
Resending initial MSM DSI patches DSI is supported by both mdp4 and mdp5. This patch series adds the common DSI controller driver and also enable it in mdp5. Hai Li (4): drm/msm/mdp5: Move *_modeset_init out of construct_encoder function drm/msm: Add split display interface drm/msm: Initial

[PATCH v2 2/4] drm/msm: Add split display interface

2015-03-26 Thread Hai Li
This change is to add an interface to MDP for connector devices setting split display information. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/msm_kms.h | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/msm/msm_kms.h b/drivers/gpu/drm/msm/msm_kms.h index 3a78cb4..a9f17bd

[PATCH v2 1/4] drm/msm/mdp5: Move *_modeset_init out of construct_encoder function

2015-03-26 Thread Hai Li
This change is to make the content in construct_encoder reflect its name. Also, DSI connector may be connected to video mode or command mode encoder, so that 2 different encoders need to be constructed for DSI. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c | 89 ++

[patch 2/2] mm, selftests: test return value of munmap for MAP_HUGETLB memory

2015-03-26 Thread David Rientjes
When MAP_HUGETLB memory is unmapped, the length must be hugepage aligned, otherwise it fails with -EINVAL. All tests currently behave correctly, but it's better to explcitly test the return value for completeness and document the requirement, especially if users copy map_hugetlb.c as a sample impl

[patch 1/2] mm, doc: cleanup and clarify munmap behavior for hugetlb memory

2015-03-26 Thread David Rientjes
munmap(2) of hugetlb memory requires a length that is hugepage aligned, otherwise it may fail. Add this to the documentation. This also cleans up the documentation and separates it into logical units: one part refers to MAP_HUGETLB and another part refers to requirements for shared memory segment

Re: [PATCH v2] sched/deadline: reduce rq lock contention by eliminating locking of non-feasible target

2015-03-26 Thread Wanpeng Li
Ping Juri, ;) On Mon, Mar 23, 2015 at 05:02:13PM +0800, Wanpeng Li wrote: >This patch adds checks that prevents futile attempts to move dl tasks to >a CPU with active tasks of equal or earlier deadline. The same behavior as >commit 80e3d87b2c55 ("sched/rt: Reduce rq lock contention by eliminating >

Re: [PATCH v13] sched/deadline: support dl task migration during cpu hotplug

2015-03-26 Thread Wanpeng Li
Hi Juri, On Thu, Mar 26, 2015 at 11:14:37AM +, Juri Lelli wrote: > >I think we could have better naming and the BUG_ON part could be >simplified. I'd propose something like this (sorry, it is based >on one of your previous versions.. I'm a bit struggling keeping >up with the pace ;)). Cool, th

Re: [PATCH 1/3] phy: core: Add devm_of_phy_get_by_index to phy-core

2015-03-26 Thread Dmitry Torokhov
On Wed, Mar 25, 2015 at 05:04:32PM -0700, Arun Ramamurthy wrote: > > > On 15-03-25 03:03 PM, Kishon Vijay Abraham I wrote: > >Hi, > > > >On Saturday 21 March 2015 02:59 AM, Arun Ramamurthy wrote: > >> > >> > >>On 15-03-20 02:26 PM, Dmitry Torokhov wrote: > >>>Hi Arun, > >>> > >>>On Fri, Mar 20, 2

[PATCH V2] UBI: power cut emulation for testing

2015-03-26 Thread david . oberhollenzer
Emulate random power cuts by switching device to ro after a number of writes to allow simple power cut testing with nand-sim. Maximum and minimum number of successful writes before power cut and what kind of writes (EC header, VID header or none) to interrupt configurable via debugfs. Signed-off-

Re: [PATCH v1 2/3] Phy: DT binding documentation for Broadcom Cygnus USB PHY driver

2015-03-26 Thread Dmitry Torokhov
Hi Arun, On Wed, Mar 25, 2015 at 05:04:57PM -0700, Arun Ramamurthy wrote: > > > On 15-03-25 03:16 PM, Kishon Vijay Abraham I wrote: > >Hi, > > > >On Saturday 21 March 2015 02:55 AM, Arun Ramamurthy wrote: > >>Broadcom's Cygnus chip has a USB 2.0 host controller connected to > >>three separate ph

Re: [patch v11 12/23] ARM64 / ACPI: Parse MADT for SMP initialization

2015-03-26 Thread Hanjun Guo
On 2015年03月27日 05:12, Will Deacon wrote: On Thu, Mar 26, 2015 at 07:48:50PM +, Hanjun Guo wrote: On 2015年03月26日 23:15, Will Deacon wrote: commit 8ef320319592693f4a6286d80df210fd47b3e356 Author: Will Deacon Date: Thu Mar 26 15:09:20 2015 + ARM64 / ACPI: fix usage of acpi_map_gi

Re: [PATCH 2/3] x86: add a is_e820_ram() helper

2015-03-26 Thread Yinghai Lu
On Thu, Mar 26, 2015 at 2:34 AM, Christoph Hellwig wrote: > On Thu, Mar 26, 2015 at 10:02:15AM +0100, Ingo Molnar wrote: >> This is_e820_ram() factoring out becomes really messy in patch #3. ... > Does this patch (replaces patches 2 and 3) look better to you? > > --- > From 4a6fdc8433559d649d7bf70

Re: [PATCH V5 0/2] add support for pmic_arb v2 and correct framework

2015-03-26 Thread Greg KH
On Thu, Mar 26, 2015 at 10:26:09AM -0500, Kumar Gala wrote: > > On Mar 26, 2015, at 4:51 AM, Ivan T. Ivanov wrote: > > > > > On Wed, 2015-03-25 at 11:37 -0600, Gilad Avidov wrote: > >> pmic_arb v2 has no support for spmi non-data commands and thus > >> returns -EOPNOTSUPP on .cmd callback. This

Re: [patch v2 4/4] mm, mempool: poison elements backed by page allocator

2015-03-26 Thread David Rientjes
On Thu, 26 Mar 2015, Andrey Ryabinin wrote: > > +static void check_element(mempool_t *pool, void *element) > > +{ > > + /* Mempools backed by slab allocator */ > > + if (pool->free == mempool_free_slab || pool->free == mempool_kfree) > > + __check_element(pool, element, k

RE: Oops with tip/x86/fpu

2015-03-26 Thread Yu, Fenghua
> From: Hansen, Dave > Sent: Thursday, March 26, 2015 3:44 PM > On 03/26/2015 03:37 PM, Yu, Fenghua wrote: > >> > void sighup(int sig, siginfo_t *info, void *ctxt) { > >> > struct ucontext *uctxt = ctxt; > >> > struct sigcontext *sctxt = (void*)&uctxt->uc_mcontext; > >> > > >> > printf("SIGHUP!

Re: [PATCH 1/1] Add mkopci driver

2015-03-26 Thread Greg KH
On Fri, Mar 20, 2015 at 03:10:26PM +0300, sergej.ba...@gmail.com wrote: > mkopci (MB11.xx) device (RC Module project) provides data transference > through a serial bus bar according to MIL-STD-1553. > the driver used for operating devices, reads PCI configuration space and pass > interrupts to us

Re: Oops with tip/x86/fpu

2015-03-26 Thread Dave Hansen
On 03/26/2015 03:37 PM, Yu, Fenghua wrote: >> > void sighup(int sig, siginfo_t *info, void *ctxt) { >> >struct ucontext *uctxt = ctxt; >> >struct sigcontext *sctxt = (void*)&uctxt->uc_mcontext; >> > >> >printf("SIGHUP! %p\n", sctxt->fpstate); >> >sctxt->fpstate = (void *)1; > sctxt

RE: Oops with tip/x86/fpu

2015-03-26 Thread Yu, Fenghua
> From: Oleg Nesterov [mailto:o...@redhat.com] > Sent: Thursday, March 05, 2015 10:22 AM > > On 03/05, Oleg Nesterov wrote: > > > > Does it trigger something else on your machine? > > Oleg. > > #include > #include > #include > #include > > void sighup(int sig, siginfo_t *info, void *ctxt)

Re: [PATCH 09/17] x86: make is_64bit_mm() widely available

2015-03-26 Thread Andy Lutomirski
On 03/26/2015 11:33 AM, Dave Hansen wrote: From: Dave Hansen The uprobes code has a nice helper, is_64bit_mm(), that consults both the runtime and compile-time flags for 32-bit support. Instead of reinventing the wheel, pull it in to an x86 header so we can use it for MPX. I prefer passing th

Re: [PATCH v2 01/11] stm class: Introduce an abstraction for System Trace Module devices

2015-03-26 Thread Greg Kroah-Hartman
On Sun, Mar 22, 2015 at 10:32:51PM +0200, Alexander Shishkin wrote: > +static struct attribute *stm_attrs[] = { > + &dev_attr_masters.attr, > + &dev_attr_channels.attr, > + NULL, > +}; > + > +static const struct attribute_group stm_group = { > + .attrs = stm_attrs, > +}; > + > +sta

[char-misc-next 04/11] mei: revamp client disconnection flow

2015-03-26 Thread Tomas Winkler
Split disconnected state into two parts first reception disconnect response from the firmware and second actually setting of disconnected state. Book keeping data are needed for processing and after firmware disconnected the client and are cleaned when setting the disconnected state in mei_cl_set_

[char-misc-next 05/11] mei: revamp client connection

2015-03-26 Thread Tomas Winkler
Simplify connect state machine by changing the logic around Connection request in progress - only check if we have a callback in relevant queue. Extract common code into mei_cl_send_connect() function Signed-off-by: Tomas Winkler Signed-off-by: Alexander Usyskin --- drivers/misc/mei/bus.c

[char-misc-next 06/11] mei: add a reference from the host client to the me client

2015-03-26 Thread Tomas Winkler
From: Alexander Usyskin Keep a pointer to associated me client in the host client object to eliminate me client searches. Check if the me client is active in the firmware by checking if its is linked on the me clients list Add accessors for the me client properties from host client. Signed-off-b

[char-misc-next 01/11] mei: fix mei_poll operation

2015-03-26 Thread Tomas Winkler
mei_poll returned with POLLIN w/o checking whether the operation has really completed. remove redundant check and locking in amthif specific handler Signed-off-by: Tomas Winkler --- drivers/misc/mei/amthif.c | 25 +++-- drivers/misc/mei/client.c | 2 +- drivers/misc/mei/main

[char-misc-next 07/11] mei: fix flow control for single buffer clients

2015-03-26 Thread Tomas Winkler
From: Alexander Usyskin For ME clients that use single receiving buffer the driver tracks credentials on mei_me_clients structure for all connections. The driver needs to book keep the shared resource correctly and track the connections, particularly the credit has to be cleaned when there is no

[char-misc-next 02/11] mei: use mei_cl_is_connected consistently

2015-03-26 Thread Tomas Winkler
Replace open coded check for cl->state !=/== MEI_FILE_CONNECTED with mei_cl_is_connected function. Note that cl->state != MEI_FILE_CONNECTED is not the same as cl->state == MEI_FILE_DISCONNECTED Signed-off-by: Tomas Winkler --- drivers/misc/mei/bus.c | 4 ++-- drivers/misc/mei/client.c

[char-misc-next 09/11] mei: connection to fixed address clients from user-space

2015-03-26 Thread Tomas Winkler
From: Alexander Usyskin This should be used for debug only. The feaure is gated by "allow_fixed_address" control exposed in debugfs. Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler --- drivers/misc/mei/debugfs.c | 6 ++ drivers/misc/mei/main.c| 8 +++- drivers/misc/m

[char-misc-next 10/11] mei: drop iamthif_mtu from device structure

2015-03-26 Thread Tomas Winkler
From: Alexander Usyskin We can receive mtu with one call now, no need to store it. Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler --- drivers/misc/mei/amthif.c | 9 + drivers/misc/mei/mei_dev.h | 2 -- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/driv

[char-misc-next 11/11] mei: txe: fix incorrect indentation

2015-03-26 Thread Tomas Winkler
Remove spurious blank Signed-off-by: Tomas Winkler --- drivers/misc/mei/pci-txe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/mei/pci-txe.c b/drivers/misc/mei/pci-txe.c index dcfcba44b6f7..0882c0201907 100644 --- a/drivers/misc/mei/pci-txe.c +++ b/drivers/mis

[char-misc-next 03/11] mei: replace check for connection instead of transitioning

2015-03-26 Thread Tomas Winkler
The function mei_cl_is_transitioning is just opposite of mei_cl_is_connected. What we actually wanted to check is if we lost connection so we can discard the check for transition and check for 'not connected' Signed-off-by: Tomas Winkler --- drivers/misc/mei/bus.c| 4 ++-- drivers/misc/mei/

[char-misc-next 08/11] mei: support for fixed address clients

2015-03-26 Thread Tomas Winkler
From: Alexander Usyskin Fixed address is simplified FW client that doesn't require connection and doesn't support flow control. So it can be only one host client per fixed FW client. Fixed client access is available only for drivers on mei bus, connection from user-space is blocked. Signed-off-b

Re: [PATCH v2 01/11] stm class: Introduce an abstraction for System Trace Module devices

2015-03-26 Thread Greg Kroah-Hartman
On Sun, Mar 22, 2015 at 10:32:51PM +0200, Alexander Shishkin wrote: > A System Trace Module (STM) is a device exporting data in System Trace > Protocol (STP) format as defined by MIPI STP standards. Examples of such > devices are Intel Trace Hub and Coresight STM. > > This abstraction provides a u

Re: [PATCH v2] coresight: moving to new "hwtracing" directory

2015-03-26 Thread Greg KH
On Fri, Mar 20, 2015 at 11:01:23AM -0600, Mathieu Poirier wrote: > Keeping drivers related to HW tracing on ARM, i.e coresight, > under "drivers/coresight" doesn't make sense when other > architectures start rolling out technologies of the same > nature. > > As such creating a new "drivers/hwtraci

Re: [PATCH] SQUASHME: Streamline pmem.c

2015-03-26 Thread Ross Zwisler
On Thu, 2015-03-26 at 19:02 +0200, Boaz Harrosh wrote: > static void pmem_do_bvec(struct pmem_device *pmem, struct page *page, > unsigned int len, unsigned int off, int rw, > sector_t sector) > { > void *mem = kmap_atomic(page); > + size_t pme

Re: [PATCH v5] add support for Freescale's MMA8653FC 10 bit accelerometer

2015-03-26 Thread Greg KH
On Sat, Mar 21, 2015 at 12:26:04PM +0100, Martin Kepplinger wrote: > From: Martin Kepplinger > > The MMA8653FC is a low-power, three-axis, capacitive micromachined > accelerometer with 10 bits of resolution with flexible user-programmable > options. > > Embedded interrupt functions enable overal

Re: [PATCH 1/1] serial: samsung: Clear operation mode on UART shutdown

2015-03-26 Thread Javier Martinez Canillas
On 03/26/2015 10:57 PM, Greg Kroah-Hartman wrote: > On Fri, Mar 20, 2015 at 01:19:44PM +0100, Javier Martinez Canillas wrote: >> > The offending commit landed in v4.0-rc1 so this fix is -rc material. >> > >> > drivers/tty/serial/samsung.c | 1 + >> > 1 file changed, 1 insertion(+) >> > >> > diff

Re: [PATCH v6 2/3] cgroups: allow a cgroup subsystem to reject a fork

2015-03-26 Thread Tejun Heo
On Fri, Mar 27, 2015 at 08:41:05AM +1100, Aleksa Sarai wrote: > > You can't pin css_set from inside cgroup callbacks. It's a construct > > which in general shouldn't be accessible outside cgroup core. > > Yeah, sorry I meant css (you aren't pinning, but you're still saving under RCU > and dealing

Re: [PATCH] SQUASHME: Streamline pmem.c

2015-03-26 Thread Ross Zwisler
On Thu, 2015-03-26 at 19:02 +0200, Boaz Harrosh wrote: > Christoph why did you choose the fat and ugly version of > pmem.c beats me. Anyway, here are the cleanups you need on > top of your pmem patch. > > Among other it does: > * Remove getgeo. It is not needed for modern fdisk and was never > n

Re: String literals in __init functions

2015-03-26 Thread Andrew Morton
On Thu, 26 Mar 2015 14:58:40 -0700 Joe Perches wrote: > > I'd have thought that a function-wide > > __attribute__((__string_section__(foo)) > > wouldn't be a ton of work to implement. > > Maybe not. > > Could some future version of gcc move string constants > in a function to a specific sec

Re: [V4.0-rc5 Regression] drm/intel problem

2015-03-26 Thread Linus Torvalds
Jörg, can you verify/confirm that current git works for you? And if not, maybe bisect exactly where it happened? Linus On Mon, Mar 23, 2015 at 2:02 AM, Jörg Otte wrote: > The display remains dark in V4.0-rc5 except of a small white line > at the top of the screen so I c

Re: [PATCH v1] arm64:mm: enable the kernel execute attribute for HEAD_TEXT segment

2015-03-26 Thread Mark Rutland
On Thu, Mar 26, 2015 at 01:53:48PM +, Zhichang Yuan wrote: > From: yuanzhichang > > In the patch whose title is "add better page protections to arm64" > (commit da141706aea52c1a9fbd28cb8d289b78819f5436), The direct mapping > page table entries for HEAD_TEXT segment were configured as PAGE_KER

Re: [PATCH v3 10/15] serial: stm32-usart: Add STM32 USART Driver

2015-03-26 Thread Maxime Coquelin
2015-03-26 16:46 GMT+01:00 Russell King - ARM Linux : > On Tue, Mar 24, 2015 at 02:23:38PM -0400, Peter Hurley wrote: >> Hi Maxime, >> >> On 03/12/2015 05:55 PM, Maxime Coquelin wrote: >> > +static unsigned int stm32_get_mctrl(struct uart_port *port) >> > +{ >> > + /* >> > +* This routine is

[PATCH net-next] hv_netvsc: remove vmbus_are_subchannels_present() in rndis_filter_device_add()

2015-03-26 Thread Haiyang Zhang
The vmbus_are_subchannels_present() also involves opening the channels, which may be too early at this point. Checking for subchannels is not necessary here. So this patch removes it. Subchannels will be opened when offer messages arrive. Signed-off-by: Haiyang Zhang --- drivers/net/hyperv/rndis

Re: [PATCH v3 10/15] serial: stm32-usart: Add STM32 USART Driver

2015-03-26 Thread Maxime Coquelin
HI Peter 2015-03-24 19:23 GMT+01:00 Peter Hurley : > Hi Maxime, > > On 03/12/2015 05:55 PM, Maxime Coquelin wrote: >> From: Maxime Coquelin >> >> This drivers adds support to the STM32 USART controller, which is a >> standard serial driver. > > Comments below. Thanks for the review, please find

Re: [PATCH] ASoC: Add support for NAU8824 codec to ASoC

2015-03-26 Thread Chih-Chiang Chang
Hi Mark, Sorry late to the response. On 3/6/2015 1:07 PM, Mark Brown wrote: > On Fri, Mar 06, 2015 at 03:28:33PM +0800, Chih-Chiang Chang wrote: > > Please fix your mailer to word wrap within paragraphs, it makes things a > lot easier to read. This seems to violate the kernel's rule. I am using t

Re: String literals in __init functions

2015-03-26 Thread Joe Perches
(adding g...@gcc.gnu.org) On Thu, 2015-03-26 at 14:40 -0700, Andrew Morton wrote: > On Thu, 26 Mar 2015 21:49:06 +0100 Mathias Krause > wrote: > > > Andrew, what's your opinion on such a patch set? Do you too think it's > > useful? Or do you share Ingo's fear about the additional maintenance >

Re: [PATCH 1/1] serial: samsung: Clear operation mode on UART shutdown

2015-03-26 Thread Greg Kroah-Hartman
On Fri, Mar 20, 2015 at 01:19:44PM +0100, Javier Martinez Canillas wrote: > Hello, > > On 03/13/2015 12:38 PM, Javier Martinez Canillas wrote: > > Exynos serial ports operate either in a DMA-based or interrupt-based > > modes. In DMA-based mode, the UART generates a transfer data request > > and a

[git pull] drm intel fixes

2015-03-26 Thread Dave Airlie
Hi Linus, here is the complete set of i915 bug/warn/refcounting fixes. Dave. The following changes since commit 90a5a895cc8b284ac522757a01de15e36710c2b9: Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (2015-03-23 10:16:13 -0700) are available in the git repository at: git

[PATCH] stm class: Adding master and channel parameter to ioctl function

2015-03-26 Thread Mathieu Poirier
Hey Alex, Have a look at the following patch and see if you agree with my approach. If so simply add the code to a third version. Thanks, Mathieu >From 70b4709b668ef59b303dabeff73ed850a4980cfc Mon Sep 17 00:00:00 2001 From: Mathieu Poirier Date: Thu, 26 Mar 2015 15:33:03 -0600 Subject: [PATCH

Re: [PATCH] mm: Use GFP_KERNEL allocation for the page cache in page_cache_read

2015-03-26 Thread Dave Chinner
On Thu, Mar 26, 2015 at 10:53:02AM +0100, Michal Hocko wrote: > On Fri 20-03-15 14:48:20, Dave Chinner wrote: > > On Thu, Mar 19, 2015 at 01:44:41PM +0100, Michal Hocko wrote: > [...] > > > Or did I miss your point? Are you concerned about some fs overloading > > > filemap_fault and do some locking

Re: [PATCH v2 2/2] Staging: slicoss: Get rid of redundant pointer variable

2015-03-26 Thread Joe Perches
On Thu, 2015-03-26 at 22:32 +0100, Greg KH wrote: > On Thu, Mar 26, 2015 at 01:52:33PM -0700, Joe Perches wrote: > > On Thu, 2015-03-26 at 19:52 +0100, Greg KH wrote: > > > On Thu, Mar 26, 2015 at 11:52:43PM +0530, Niranjan Dighe wrote: > > > > Replace string directly in place of format string and

Re: [PATCH v6 2/3] cgroups: allow a cgroup subsystem to reject a fork

2015-03-26 Thread Aleksa Sarai
Hi, >> callback if the association changes [we could call it something else if you >> like, since reapply_fork() is a pids-specific name -- what about >> switch_fork(), >> reassoc_fork(), re_fork() or something to show that it's a callback if the >> association changes?] (the subsystem can decide

Re: String literals in __init functions

2015-03-26 Thread Andrew Morton
On Thu, 26 Mar 2015 21:49:06 +0100 Mathias Krause wrote: > Andrew, what's your opinion on such a patch set? Do you too think it's > useful? Or do you share Ingo's fear about the additional maintenance > burden? I don't think the burden would be t high, although it will mess the code up a bi

Re: [PATCH v4 2/4] mfd: lubbock_cplds: add lubbock IO board

2015-03-26 Thread Robert Jarzmik
Greg Kroah-Hartman writes: > On Fri, Feb 20, 2015 at 05:02:57PM +0100, Robert Jarzmik wrote: >> If there is no solution, I'll fallback through arch/arm/plat-pxa, not very >> nice, >> but it has to land somewhere, I don't want lubbock to remain broken. > > drivers/platform/arm ? Most certainly.

Re: [PATCH v2] perf tool: Fix ppid for synthesized fork events

2015-03-26 Thread David Ahern
On 3/26/15 3:11 PM, Don Zickus wrote: Sorry for drawing this out. Originally the performance still seemed off. But as we split the patch up to see where the perf impact was, the problem seemed to have disappeared. So we are testing the original patch again. The only difference now is we were p

Re: [Linux-nvdimm] [PATCH 1/3] pmem: Initial version of persistent memory driver

2015-03-26 Thread Ross Zwisler
On Thu, 2015-03-26 at 15:35 +0100, Christoph Hellwig wrote: > On Thu, Mar 26, 2015 at 07:12:23AM -0700, Dan Williams wrote: > > > + struct resource *res_mem; > > > + int err; > > > + > > > + res_mem = request_mem_region_exclusive(pmem->phys_addr, > > > pmem->size, > > > +

Re: [PATCH v2] tty/n_gsm.c: fix a memory leak when gsmtty is removed

2015-03-26 Thread Greg KH
On Wed, Mar 25, 2015 at 03:05:33PM +0800, Pan Xinhui wrote: > when gsmtty_remove put dlci, it will cause memory leak if > dlci->port's refcount is zero. > So we do the cleanup work in .cleanup callback instead. > > dlci will be last put in two call chains. > 1) gsmld_close -> gsm_cleanup_mux -> gs

Re: [PATCH v2 2/2] Staging: slicoss: Get rid of redundant pointer variable

2015-03-26 Thread Greg KH
On Thu, Mar 26, 2015 at 01:52:33PM -0700, Joe Perches wrote: > On Thu, 2015-03-26 at 19:52 +0100, Greg KH wrote: > > On Thu, Mar 26, 2015 at 11:52:43PM +0530, Niranjan Dighe wrote: > > > Replace string directly in place of format string and remove pointer > > > variable which was used just once. >

Re: [v3, 01/11] powerpc/8xx: remove remaining unnecessary code in FixupDAR

2015-03-26 Thread Scott Wood
On Tue, Feb 03, 2015 at 12:38:16PM +0100, LEROY Christophe wrote: > Since commit 33fb845a6f01 ("powerpc/8xx: Don't use MD_TWC for walk"), MD_EPN > and > MD_TWC are not writen anymore in FixupDAR so saving r3 has become useless. > > Signed-off-by: Christophe Leroy > --- > v2: no change > v3: no c

Re: [PATCH 1/8] pmem: Initial version of persistent memory driver

2015-03-26 Thread Dave Chinner
On Thu, Mar 26, 2015 at 04:00:57AM +, Elliott, Robert (Server Storage) wrote: > > -Original Message- > > From: linux-kernel-ow...@vger.kernel.org [mailto:linux-kernel- > > ow...@vger.kernel.org] On Behalf Of Andy Lutomirski > > Sent: Wednesday, March 18, 2015 1:07 PM > > To: Boaz Harro

Re: [PATCH] c6x: platforms: cache: Export symbol L1P_cache_block_invalidate and L1D_cache_block_writeback

2015-03-26 Thread Chen Gang
On 3/26/15 22:58, Mark Salter wrote: > On Wed, 2015-03-04 at 15:05 +0800, Chen Gang wrote: >> They are needed by other modules, the related error with allmodconfig: >> >> MODPOST 3327 modules >> ERROR: "L1P_cache_block_invalidate" [drivers/misc/lkdtm.ko] undefined! >> ERROR: "L1D_cache_bloc

[PATCH v3] perf/rapl: support per domain energy unit

2015-03-26 Thread Jacob Pan
RAPL energy hardware unit can vary within a single CPU package, e.g. HSW server DRAM has a fixed energy unit of 15.3 uJ (2^-16) whereas the unit on other domains can be enumerated from power unit MSR. There might be other variations in the future, this patch adds per cpu model quirk to allow specia

Re: [PATCH V2 RESEND 0/2] serial: 8250_pci: Fintek products patches

2015-03-26 Thread Greg KH
On Tue, Mar 17, 2015 at 06:02:13PM +0800, Peter Hung wrote: > These series patches works for Fintek F81504/F81508/F81512 PCI to Serial Port. > and patch 0002 is following with patch 0001. > > patch 0001 is just cleanup non-used source code. > patch 0002 is major patch. > > The serial port of our

Re: [LKP] [xfs] 834ffca6f7e: WARNING: CPU: 3 PID: 23390 at fs/xfs/xfs_file.c:700 xfs_file_dio_aio_write+0x27c/0x2e0()

2015-03-26 Thread Dave Chinner
On Thu, Mar 26, 2015 at 02:45:19PM +0800, Huang Ying wrote: > FYI, we noticed the below changes on > > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > commit 834ffca6f7e345a79f6f2e2d131b0dfba8a4b67a ("xfs: don't zero partial > page cache pages during O_DIRECT writes") D

<    1   2   3   4   5   6   7   8   9   >