Re: [BUG] Kernel panic when try s3c-hsotg.c with kernel 3.5

2012-08-07 Thread Peiyong Feng
2012/8/8 Lukasz Majewski : > Dear Peiyong Feng, > >> > Please enable the debug at s3c-hsotg.c driver and then paste the >> > dmesg/debug output. >> I have defined DEGUG in s3c-hsotg.c > > Thank you for 2.6.36 log. > I'd also need the log from 3.6-rc1 kernel with DEBUG enabled. I have made a define

Re: [PATCH v3 1/2] lis3: add generic DT matching code

2012-08-07 Thread Daniel Mack
On 08.08.2012 07:19, AnilKumar, Chimata wrote: > Hi Mack, Call me Daniel :) > On Wed, Aug 08, 2012 at 00:19:01, Daniel Mack wrote: >> On 06.08.2012 12:45, AnilKumar, Chimata wrote: >>> On Sun, Aug 05, 2012 at 21:48:42, Daniel Mack wrote: On 30.07.2012 09:36, Daniel Mack wrote: > This pat

Re: [PATCH 4/9] ASoC: imx: Don't use {en,dis}able_fiq() calls

2012-08-07 Thread Sascha Hauer
On Sun, Aug 05, 2012 at 04:03:34PM -0700, Anton Vorontsov wrote: > The driver uses platform-specific mxc_set_irq_fiq() with the VIRQ cookie > passed to it, so it's pretty clear that the driver is absolutely sure > that the FIQ is routed via platform-specific IC, and that the cookie can > be used to

Re: [PATCH 3/9] [media] mx1_camera: Don't use {en,dis}able_fiq() calls

2012-08-07 Thread Sascha Hauer
On Sun, Aug 05, 2012 at 04:03:33PM -0700, Anton Vorontsov wrote: > The driver uses platform-specific mxc_set_irq_fiq() with the VIRQ cookie > passed to it, so it's pretty clear that the driver is absolutely sure > that the FIQ is routed via platform-specific IC, and that the cookie can > be used to

Re: [PATCH 1/2] ARM: build ssi-fiq.S in ARM mode to prevent CONFIG_THUMB2_KERNEL build breakage

2012-08-07 Thread Sascha Hauer
On Tue, Aug 07, 2012 at 05:45:13PM -0500, Matt Sealey wrote: > If i.MX SSI FIQ support is enabled then it is impossible to build a Thumb2 > kernel image due to the code not being written with Thumb2 in mind (over-use > of registers). In order not to break Thumb2 kernels, compile this as ARM. All >

[PATCH] i2c: i2c-ocores: Use devm_request_and_ioremap()

2012-08-07 Thread Thierry Reding
Replacing the devm_request_mem_region() and devm_ioremap_nocache() calls by a single call to devm_request_and_ioremap() simplifies the code. Signed-off-by: Thierry Reding --- drivers/i2c/busses/i2c-ocores.c | 15 +++ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/driv

Re: [PATCH 2/2] ARM: only build ssi-fiq.S et al if CONFIG_SND_IMX_SOC_PCM_FIQ is selected

2012-08-07 Thread Sascha Hauer
On Tue, Aug 07, 2012 at 05:45:14PM -0500, Matt Sealey wrote: > Further to the previous patch, a custom configuration may be used based on the > imx_v6_v7_defconfig which removes the board depending on the audio driver > pulling > this support code. However, since it is built dependent on CONFIG_SN

Re: [PATCH] ARM: SAMSUNG: Fix compilation error with s3c2410_defconfig

2012-08-07 Thread Thierry Reding
On Wed, Aug 08, 2012 at 03:30:32PM +0900, Kukjin Kim wrote: > Thierry Reding wrote: > > > > On Wed, Aug 08, 2012 at 09:54:13AM +0900, Kukjin Kim wrote: > > > diff --git a/arch/arm/plat-samsung/Kconfig b/arch/arm/plat- > > samsung/Kconfig > > > index 7aca31c..dcdfb77 100644 > > > --- a/arch/arm/pla

Re: [PATCH] bnx2: update bnx2-mips-09 firmware to bnx2-mips-09-6.2.1b

2012-08-07 Thread Willy Tarreau
Hi Eric, On Wed, Aug 08, 2012 at 08:27:52AM +0200, Eric Dumazet wrote: > On Wed, 2012-08-08 at 08:17 +0200, Willy Tarreau wrote: > > > > > Well, if the drivers provided with the kernel don't work out of the box > > anymore, maybe we should also move them to a separate repository. All it > > is g

[PATCH v3] usb:musb:musb_host: Handle highmem in PIO mode

2012-08-07 Thread Virupax Sadashivpetimath
In case of USB bulk transfer, when himem page is received, the usb_sg_init function sets the urb transfer buffer to NULL. When such URB transfer is handled, kernel crashes in PIO mode. Handle this by mapping the highmem buffer in PIO mode. Signed-off-by: Virupax Sadashivpetimath Signed-off-by: P

RE: [PATCH v2] usb:musb:musb_host: Handle highmem in PIO mode

2012-08-07 Thread Virupax SADASHIVPETIMATH
> -Original Message- > From: Alan Stern [mailto:st...@rowland.harvard.edu] > Sent: Tuesday, August 07, 2012 11:17 PM > To: Virupax SADASHIVPETIMATH > Cc: ba...@ti.com; gre...@linuxfoundation.org; linux-...@vger.kernel.org; > linux- > ker...@vger.kernel.org; linus.wall...@linaro.org; Prav

Q: diskstats for MD-RAID

2012-08-07 Thread Ulrich Windl
Hello! I have a question based on the SLES11 SP1 kernel (2.6.32.59-0.3-default): In /proc/diskstats the last four values seem to be zero for md-Devices. So "%util", "await", and "svctm" from "sar" are always reported as zero. Ist this a bug or a feature? I'm tracing a fairness problem resulting

[PATCH] iio/adjd_s311: Fix potential memory leak in adjd_s311_update_scan_mode()

2012-08-07 Thread Alexey Khoroshilov
Do not leak memory by updating pointer with potentially NULL realloc return value. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/iio/light/adjd_s311.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --g

RE: question on devm_kfree

2012-08-07 Thread Venu Byravarasu
> -Original Message- > From: Lars-Peter Clausen [mailto:l...@metafoo.de] > Sent: Wednesday, August 08, 2012 12:00 PM > To: Venu Byravarasu > Cc: linux-kernel@vger.kernel.org > Subject: Re: question on devm_kfree > > On 08/08/2012 07:56 AM, Venu Byravarasu wrote: > > As per comments related

Re: [PATCH 1/3] dma-fence: dma-buf synchronization (v7)

2012-08-07 Thread Sumit Semwal
Hi Maarten, On 8 August 2012 00:17, Maarten Lankhorst wrote: > Op 07-08-12 19:53, Maarten Lankhorst schreef: >> A dma-fence can be attached to a buffer which is being filled or consumed >> by hw, to allow userspace to pass the buffer without waiting to another >> device. For example, userspace c

RE: [PATCH] ARM: SAMSUNG: Fix compilation error with s3c2410_defconfig

2012-08-07 Thread Kukjin Kim
Thierry Reding wrote: > > On Wed, Aug 08, 2012 at 09:54:13AM +0900, Kukjin Kim wrote: > > diff --git a/arch/arm/plat-samsung/Kconfig b/arch/arm/plat- > samsung/Kconfig > > index 7aca31c..dcdfb77 100644 > > --- a/arch/arm/plat-samsung/Kconfig > > +++ b/arch/arm/plat-samsung/Kconfig > > @@ -403,7 +4

Re: question on devm_kfree

2012-08-07 Thread Lars-Peter Clausen
On 08/08/2012 07:56 AM, Venu Byravarasu wrote: > As per comments related to devm_kzalloc, memory allocated using it is > freed automatically. > However there is a function called devm_kfree, comment section of which > says that it is used to free memory allocated using devm_kzalloc(). > If memory a

Re: [PATCH] bnx2: update bnx2-mips-09 firmware to bnx2-mips-09-6.2.1b

2012-08-07 Thread Eric Dumazet
On Wed, 2012-08-08 at 08:17 +0200, Willy Tarreau wrote: > > Well, if the drivers provided with the kernel don't work out of the box > anymore, maybe we should also move them to a separate repository. All it > is going to do otherwise is to cause invalid bug reports because users > don't understan

Re: [PATCH] x86: set fpmath to 387 to avoid gcc warnings

2012-08-07 Thread Tatulea, Dragos
On Wed, Aug 8, 2012 at 9:27 AM, Dragos Tatulea wrote: > If gcc has a different default fpmath set (ex: sse), > many unuseful warnings will be spewed. > > This can affect out of tree modules that compile with > -Werror (ex: systemtap stp scripts). > > Be paranoid and add -msoft-float as well to try

[PATCH] x86: set fpmath to 387 to avoid gcc warnings

2012-08-07 Thread Dragos Tatulea
If gcc has a different default fpmath set (ex: sse), many unuseful warnings will be spewed. This can affect out of tree modules that compile with -Werror (ex: systemtap stp scripts). Be paranoid and add -msoft-float as well to try to get an error if FP instructions are generated at all. Signed-o

[PATCH] x86: set fpmath to 387 to avoid gcc warnings

2012-08-07 Thread Dragos Tatulea
If gcc has a different default fpmath set (ex: sse), many unuseful warnings will be spewed. This can affect out of tree modules that compile with -Werror (ex: systemtap stp scripts). Be paranoid and add -msoft-float as well to try to get an error if FP instructions are generated at all. Change-I

[PATCH 2/2] iommu/tegra: smmu: Use __debugfs_create_dir

2012-08-07 Thread Hiroshi Doyu
The commit c3b1a35 "debugfs: make sure that debugfs_create_file() gets used only for regulars" doesn't allow to use debugfs_create_file() for dir. Use the version with "data", __debugfs_create_dir(). Signed-off-by: Hiroshi Doyu Reported-by: Laxman Dewangan --- drivers/iommu/tegra-smmu.c |4

[PATCH 1/2] debugfs: Allow debugfs_create_dir() to take data

2012-08-07 Thread Hiroshi Doyu
Add __debugfs_create_dir(), which takes data passed from caller. Signed-off-by: Hiroshi Doyu --- fs/debugfs/inode.c |7 --- include/linux/debugfs.h |9 - 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index 4733eab

Re: [PATCH V6 0/2] Improve virtio-blk performance

2012-08-07 Thread Asias He
On 08/08/2012 11:09 AM, Asias He wrote: On 08/07/2012 05:16 PM, Christoph Hellwig wrote: On Tue, Aug 07, 2012 at 04:47:13PM +0800, Asias He wrote: 1) Ramdisk device With bio-based IO path, sequential read/write, random read/write IOPS boost : 28%, 24%, 21%, 16% Latency

Re: [PATCH] bnx2: update bnx2-mips-09 firmware to bnx2-mips-09-6.2.1b

2012-08-07 Thread Willy Tarreau
On Tue, Aug 07, 2012 at 10:58:00PM -0700, David Miller wrote: > From: Jike Song > Date: Wed, 8 Aug 2012 13:50:42 +0800 > > > On Fri, Jul 13, 2012 at 9:04 PM, Chris Webb wrote: > >> Commit c2c20ef43d00 "bnx2: Update driver to use new mips firmware" > >> updated the bnx2 driver to use bnx2-mips-09

Re: [bisected] nouveau: "Failed to idle channel x" after resume

2012-08-07 Thread Sven Joachim
On 2012-08-08 08:08 +0200, Ben Skeggs wrote: > On Wed, Aug 08, 2012 at 08:00:21AM +0200, Sven Joachim wrote: >> Not for me on my GeForce 8500 GT, and I still cannot suspend more than >> once, subsequent attempts fail: >> >> , >> | Aug 8 07:49:16 turtle kernel: [ 91.697068] nouveau W[ >> | PGR

Re: [PATCH V6 2/2] virtio-blk: Add REQ_FLUSH and REQ_FUA support to bio path

2012-08-07 Thread Asias He
On 08/07/2012 05:15 PM, Christoph Hellwig wrote: At least after review is done I really think this patch sopuld be folded into the previous one. OK. Some more comments below: @@ -58,6 +58,12 @@ struct virtblk_req struct bio *bio; struct virtio_blk_outhdr out_hdr; str

Re: [PATCH 3/4] cpu: export cpu hotplug disable/enable functions as global functions

2012-08-07 Thread Srivatsa S. Bhat
On 08/07/2012 11:21 PM, Kumar Gala wrote: > > On Aug 7, 2012, at 3:43 AM, Zhao Chenhui wrote: > >> The cpufreq driver of mpc85xx will disable/enable cpu hotplug temporarily. >> Therefore, the related functions should be exported. >> >> Signed-off-by: Zhao Chenhui >> --- >> include/linux/cpu.h |

Re: [BUG] Kernel panic when try s3c-hsotg.c with kernel 3.5

2012-08-07 Thread Lukasz Majewski
Dear Peiyong Feng, > > Please enable the debug at s3c-hsotg.c driver and then paste the > > dmesg/debug output. > I have defined DEGUG in s3c-hsotg.c Thank you for 2.6.36 log. I'd also need the log from 3.6-rc1 kernel with DEBUG enabled. -- Best regards, Lukasz Majewski Samsung Poland R&D C

[PATCH 2/7] zsmalloc: prevent mappping in interrupt context

2012-08-07 Thread Minchan Kim
From: Seth Jennings Because we use per-cpu mapping areas shared among the pools/users, we can't allow mapping in interrupt context because it can corrupt another users mappings. Signed-off-by: Seth Jennings Signed-off-by: Minchan Kim --- drivers/staging/zsmalloc/zsmalloc-main.c |8 +++

[PATCH 3/7] zsmalloc: add page table mapping method

2012-08-07 Thread Minchan Kim
From: Seth Jennings This patchset provides page mapping via the page table. On some archs, most notably ARM, this method has been demonstrated to be faster than copying. The logic controlling the method selection (copy vs page table) is controlled by the definition of USE_PGTABLE_MAPPING which i

[PATCH 4/7] zsmalloc: collapse internal .h into .c

2012-08-07 Thread Minchan Kim
From: Seth Jennings The patch collapses in the internal zsmalloc_int.h into the zsmalloc-main.c file. This is done in preparation for the promotion to mm/ where separate internal headers are discouraged. Signed-off-by: Seth Jennings Signed-off-by: Minchan Kim --- drivers/staging/zsmalloc/zsm

[PATCH 7/7] zram: select ZSMALLOC when ZRAM is configured

2012-08-07 Thread Minchan Kim
At the monent, we can configure zram in driver/block once zsmalloc in mm menu is configured firstly. It's not convenient. User can configure zram in driver/block regardless of zsmalloc enabling by this patch. Signed-off-by: Minchan Kim --- drivers/block/zram/Kconfig |3 ++- 1 file changed,

[PATCH 1/7] zsmalloc: s/firstpage/page in new copy map funcs

2012-08-07 Thread Minchan Kim
From: Seth Jennings firstpage already has precedent and meaning the first page of a zspage. In the case of the copy mapping functions, it is the first of a pair of pages needing to be mapped. This patch just renames the firstpage argument to "page" to avoid confusion. Signed-off-by: Seth Jenni

[PATCH 0/7] zram/zsmalloc promotion

2012-08-07 Thread Minchan Kim
This patchset promotes zram/zsmalloc from staging. Both are very clean and zram is used by many embedded product for a long time. [1-3] are patches not merged into linux-next yet but needed it as base for [4-5] which promotes zsmalloc. Greg, if you merged [1-3] already, skip them. Seth Jennings (

Re: [PATCH] ARM: SAMSUNG: Fix compilation error with s3c2410_defconfig

2012-08-07 Thread Thierry Reding
On Wed, Aug 08, 2012 at 09:54:13AM +0900, Kukjin Kim wrote: > diff --git a/arch/arm/plat-samsung/Kconfig b/arch/arm/plat-samsung/Kconfig > index 7aca31c..dcdfb77 100644 > --- a/arch/arm/plat-samsung/Kconfig > +++ b/arch/arm/plat-samsung/Kconfig > @@ -403,7 +403,7 @@ config S5P_DEV_USB_EHCI > > c

[PATCH 6/7] zram: promote zram from staging

2012-08-07 Thread Minchan Kim
It's time to promote zram from staging because zram is in staging for a long time and is improved by many contributors so code is very clean. Most important issue, zram's dependency with x86 is solved by making zsmalloc portable. In addition, many embedded product uses zram in real practive so I th

[PATCH 5/7] zsmalloc: promote to mm/

2012-08-07 Thread Minchan Kim
From: Seth Jennings This patch promotes the slab-based zsmalloc memory allocator from the staging tree to mm/ zcache/zram depends on this allocator for storing compressed RAM pages in an efficient way under system wide memory pressure where high-order (greater than 0) page allocation are very li

Re: [bisected] nouveau: "Failed to idle channel x" after resume

2012-08-07 Thread Ben Skeggs
On Wed, Aug 08, 2012 at 08:00:21AM +0200, Sven Joachim wrote: > On 2012-08-08 07:37 +0200, Ben Skeggs wrote: > > > On Mon, Aug 06, 2012 at 11:38:04PM +0300, Maxim Levitsky wrote: > >> On Sat, 2012-08-04 at 17:41 +0300, Maxim Levitsky wrote: > >> > On Mon, 2012-07-23 at 18:25 +0300, Aioanei Rares

question on devm_kfree

2012-08-07 Thread Venu Byravarasu
As per comments related to devm_kzalloc, memory allocated using it is freed automatically. However there is a function called devm_kfree, comment section of which says that it is used to free memory allocated using devm_kzalloc(). If memory allocated by devm_kzalloc is freed automatically, what'

Re: [bisected] nouveau: "Failed to idle channel x" after resume

2012-08-07 Thread Sven Joachim
On 2012-08-08 07:37 +0200, Ben Skeggs wrote: > On Mon, Aug 06, 2012 at 11:38:04PM +0300, Maxim Levitsky wrote: >> On Sat, 2012-08-04 at 17:41 +0300, Maxim Levitsky wrote: >> > On Mon, 2012-07-23 at 18:25 +0300, Aioanei Rares wrote: >> > > On Thu, Jul 5, 2012 at 11:24 PM, Martin Nyhus >> > > wr

Re: [PATCH] pci: Account for virtual buses in pci_acs_path_enabled

2012-08-07 Thread Bjorn Helgaas
On Tue, Aug 7, 2012 at 2:50 PM, Don Dutile wrote: > On 08/06/2012 04:47 PM, Bjorn Helgaas wrote: >> >> On Sun, Aug 5, 2012 at 11:55 PM, Alex Williamson >> wrote: >>> >>> On Sun, 2012-08-05 at 23:30 -0600, Bjorn Helgaas wrote: On Sat, Aug 4, 2012 at 12:19 PM, Alex Williamson wrot

Re: [PATCH] bnx2: update bnx2-mips-09 firmware to bnx2-mips-09-6.2.1b

2012-08-07 Thread David Miller
From: Jike Song Date: Wed, 8 Aug 2012 13:50:42 +0800 > On Fri, Jul 13, 2012 at 9:04 PM, Chris Webb wrote: >> Commit c2c20ef43d00 "bnx2: Update driver to use new mips firmware" >> updated the bnx2 driver to use bnx2-mips-09-6.2.1b in place of >> bnx2-mips-09-6.2.1a, but didn't replace the copy of

Re: [PATCH 01/22] ARM: add mechanism for late code patching

2012-08-07 Thread Nicolas Pitre
On Tue, 7 Aug 2012, Cyril Chemparathy wrote: > Hi Nicolas, > > On 8/4/2012 1:38 AM, Nicolas Pitre wrote: > [...] > > > extern unsigned __patch_table_begin, __patch_table_end; > > > > You could use "exttern void __patch_table_begin" so those symbols don't > > get any type that could be misused by

Re: [PATCH] ipc/sem.c: prevent ENOMEM in semop() w/ SEM_UNDO flag

2012-08-07 Thread Seiichi Ikarashi
Hi Manfred, (2012-08-07 20:10), Manfred Spraul wrote: > Hi Seiichi, > > 2012/8/6 Seiichi Ikarashi >> >> >> A real case was as follows. >> semget(IPC_PRIVATE, 7, IPC_CREAT | IPC_EXCL); >> sops[0].sem_num = 0; >> sops[0].sem_op = 1; >> sops[0].sem_flg = SEM_UNDO; >>

Re: [PATCH 1/4] Input: cyttsp4 - bus driver for Cypress TMA4XX touchscreen devices

2012-08-07 Thread Ferruh Yigit
Hello Javier, We needed a new modular driver mechanism so that we can handle the very flexible new generation of Cypress multi-touch devices (TMA4XX and TMA5XX). With this initial set of patches we are providing the primary function of multi-touch processing, according to protocol B, as the foun

Re: KVM segfaults with 3.5 while installing ubuntu 12.04

2012-08-07 Thread Stefan Priebe
Any news? Was this applied upstream? Am 06.08.2012 14:37, schrieb Avi Kivity: On 08/06/2012 03:12 PM, Avi Kivity wrote: On 08/06/2012 11:46 AM, Stefan Priebe - Profihost AG wrote: But still i got the segfault and core dump - this is my main problem? I mean qemu-kvm master isn't declared as st

Re: [PATCH] bnx2: update bnx2-mips-09 firmware to bnx2-mips-09-6.2.1b

2012-08-07 Thread Jike Song
On Fri, Jul 13, 2012 at 9:04 PM, Chris Webb wrote: > Commit c2c20ef43d00 "bnx2: Update driver to use new mips firmware" > updated the bnx2 driver to use bnx2-mips-09-6.2.1b in place of > bnx2-mips-09-6.2.1a, but didn't replace the copy of bnx2-mips-09-6.2.1a > in firmware/bnx2/ with the new versio

[PATCH v3] arm/dts: exynos4: Add DTS file for ODROID-X

2012-08-07 Thread tobetter
From: Dongjin Kim This patch create a DTS file for ODROID-X, it desribes PMIC max77686 and LED gpios base. Changes in V2 & V3: -. Banner changed Signed-off-by: Dongjin Kim --- arch/arm/boot/dts/exynos4412-odroidx.dts | 148 ++ 1 file changed, 148 insertions(+)

Re: [PATCH v2] arm/dts: exynos4: Add DTS file for ODROID-X

2012-08-07 Thread Sachin Kamat
On 8 August 2012 11:06, wrote: > From: Dongjin Kim > > This patch create a DTS file for ODROID-X, it desribes PMIC max77686 and LED > gpios base. > > Changes in V2: > -. Banner changed > > Signed-off-by: Dongjin Kim > --- > arch/arm/boot/dts/exynos4412-odroidx.dts | 148 > +++

Re: [bisected] nouveau: "Failed to idle channel x" after resume

2012-08-07 Thread Ben Skeggs
On Mon, Aug 06, 2012 at 11:38:04PM +0300, Maxim Levitsky wrote: > On Sat, 2012-08-04 at 17:41 +0300, Maxim Levitsky wrote: > > On Mon, 2012-07-23 at 18:25 +0300, Aioanei Rares wrote: > > > On Thu, Jul 5, 2012 at 11:24 PM, Martin Nyhus > > > wrote: > > > > > > > > On Mon, 11 Jun 2012 23:18:42 +0

[PATCH v2] arm/dts: exynos4: Add DTS file for ODROID-X

2012-08-07 Thread tobetter
From: Dongjin Kim This patch create a DTS file for ODROID-X, it desribes PMIC max77686 and LED gpios base. Changes in V2: -. Banner changed Signed-off-by: Dongjin Kim --- arch/arm/boot/dts/exynos4412-odroidx.dts | 148 ++ 1 file changed, 148 insertions(+) cre

Re: [PATCH 0/4] perf: Teach perf tool to profile sleep times (v2)

2012-08-07 Thread Namhyung Kim
On Wed, 8 Aug 2012 09:02:18 +0400, Andrey Wagin wrote: > 2012/8/8 Namhyung Kim : >>> >>> $ ./perf record -e sched:sched_stat_sleep -e sched:sched_switch \ >>> -e sched:sched_process_exit -gP -o ~/perf.data.raw ~/foo > > Actually this string is not completed, because sched:sched_switch

[PATCH] thermal: Fix potential NULL pointer accesses

2012-08-07 Thread Guenter Roeck
The type parameter in thermal_zone_device_register and thermal_cooling_device_register can be NULL, indicating that no sysfs attribute for the type should be created. Only call strlen() and strcpy() on type if it is not NULL. This patch addresses Coverity #102180 and #102182: Dereference before nu

Re: Re: [RFC PATCH] block:Fix some problems about handling plug in blk_queue_bio().

2012-08-07 Thread Jianpeng Ma
On 2012-08-08 11:06 Shaohua Li Wrote: >2012/8/8 Jianpeng Ma : >> I think there are three problems about handling plug in blk_queue_bio(): >> 1:if request_count >= BLK_MAX_REQUEST_COUNT, avoid unnecessary >> plug->should_sort judge. >this makes sense, though not a big deal, nice to fix it. Thanks

[PATCH v2] arm/dts: exynos4: Add DTS files derived from common Exynos4

2012-08-07 Thread tobetter
From: Dongjin Kim This patch creates a DTS file, exynos4.dtsi, for Exynos4210/4x12 and it describes common device nodes. SoC specific device nodes are described in another DTS file derived from this, exynos4210.dtsi and exynos4412.dtsi. exynos4412.dtsi is added new for Exynos4412 as well as exyn

Re: [PATCH 1/2] perf tools: Initial bash completion support

2012-08-07 Thread Namhyung Kim
Hi, Frederic On Wed, 8 Aug 2012 07:26:48 +0200, Frederic Weisbecker wrote: > On Wed, Aug 08, 2012 at 10:10:02AM +0900, Namhyung Kim wrote: >> On Tue, 07 Aug 2012 16:10:54 -0600, David Ahern wrote: >> > On 8/7/12 11:00 AM, Frederic Weisbecker wrote: >> >> diff --git a/tools/perf/Makefile b/tools/pe

Re: [PATCH 1/2] perf tools: Initial bash completion support

2012-08-07 Thread Frederic Weisbecker
On Wed, Aug 08, 2012 at 10:10:02AM +0900, Namhyung Kim wrote: > On Tue, 07 Aug 2012 16:10:54 -0600, David Ahern wrote: > > On 8/7/12 11:00 AM, Frederic Weisbecker wrote: > >> diff --git a/tools/perf/Makefile b/tools/perf/Makefile > >> index 35655c3..ddfb7e5 100644 > >> --- a/tools/perf/Makefile > >

[PATCH] kernel_notifier: register conditional raw notifier

2012-08-07 Thread Jenny TC
Introduce a new API raw_notifier_chain_cond_register to add a notifier to a raw notifier chain, only if notifier not already present in the chain. Signed-off-by: Jenny TC --- kernel/notifier.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/kernel/notifier.c b/kernel/no

RE: [PATCH v3 1/2] lis3: add generic DT matching code

2012-08-07 Thread AnilKumar, Chimata
Hi Mack, No attachments please. On Wed, Aug 08, 2012 at 00:19:01, Daniel Mack wrote: > Hi, > > thanks for your review. > > On 06.08.2012 12:45, AnilKumar, Chimata wrote: > > On Sun, Aug 05, 2012 at 21:48:42, Daniel Mack wrote: > >> On 30.07.2012 09:36, Daniel Mack wrote: > >>> This patch adds l

[PATCH 1/1] proc: add /proc/pid/shmaps

2012-08-07 Thread Qiaowei Ren
Add a shmaps entry to /proc/pid: show information about shared memory in an address space. People that use shared memory and want to perform an analyzing about it. For example, judge whether any memory address is shared. This file just contains 'share' part of /proc/pid/maps now. There are too

Re: [BUG] Kernel panic when try s3c-hsotg.c with kernel 3.5

2012-08-07 Thread Peiyong Feng
2012/8/7 Lukasz Majewski : > On Tue, 07 Aug 2012 11:04:10 +0800 > Peiyong Feng wrote: > >> 2012/8/6 Lukasz Majewski : >> > Hi, >> > >> >> Hi, >> >> >> >> On Mon, Aug 06, 2012 at 06:12:05PM +0800, Peiyong Feng wrote: >> >> > I got a kernel panic when try hsotg of ok6410 which is based on >> >> > s3

Re: [PATCH 0/4] perf: Teach perf tool to profile sleep times (v2)

2012-08-07 Thread Andrey Wagin
2012/8/8 Namhyung Kim : >> >> $ ./perf record -e sched:sched_stat_sleep -e sched:sched_switch \ >> -e sched:sched_process_exit -gP -o ~/perf.data.raw ~/foo Actually this string is not completed, because sched:sched_switch should be filtered by state. >> [ perf record: Woken up 1 tim

RE: [PATCH] ARM: EXYNOS: Add HDMIPHY I2C adaptor

2012-08-07 Thread Kukjin Kim
I applied the patches Sachin pointed out, so we could drop this patch. Note, Dongjin, please don't use Korean character in your e-mail and keep the new line for over 80 columns, actually 76 or 78? anyways. Thanks. Best regards, Kgene. -- Kukjin Kim , Senior Engineer, SW Solution Development Team

null pointer dereference while loading i915

2012-08-07 Thread Mihai Moldovan
Hi Daniel, hi list ever since version 3.2.0 (maybe even earlier, but 3.0.2 is still working fine), my box is crashing when loading the i915 driver (mode-setting enabled.) The current version I'm testing with is 3.5.0. I was able to get the BUG output (please forgive any errors/flips in the outpu

Re: [PATCH 1/3] zsmalloc: s/firstpage/page in new copy map funcs

2012-08-07 Thread Minchan Kim
Hi Greg, When do you merge this series? Thanks. On Wed, Jul 18, 2012 at 11:55:54AM -0500, Seth Jennings wrote: > firstpage already has precedent and meaning the first page > of a zspage. In the case of the copy mapping functions, > it is the first of a pair of pages needing to be mapped. > > Th

Re: A question on serial driver

2012-08-07 Thread Shashidhar Hiremath
thanks guys, got it to work. the receive interrupt was somehow getting disabled. On Tue, Aug 7, 2012 at 4:12 PM, Jiri Slaby wrote: > A: Because it messes up the order in which people normally read text. > Q: Why is top-posting such a bad thing? > A: Top-posting. > Q: What is the most annoying thi

Re: [RFC PATCH 3/4] ftrace: Do not test frame pointers if -mfentry is used

2012-08-07 Thread Masami Hiramatsu
(2012/08/08 4:38), Steven Rostedt wrote: > From: Steven Rostedt > > The function graph has a test to check if the frame pointer is > corrupted, which can happen with various options of gcc with mcount. > But this is not an issue with -mfentry as -mfentry does not need nor use > frame pointers for

Re: [PATCH 6/6] mm: have order > 0 compaction start near a pageblock with free pages

2012-08-07 Thread Minchan Kim
On Tue, Aug 07, 2012 at 01:31:17PM +0100, Mel Gorman wrote: > commit [7db8889a: mm: have order > 0 compaction start off where it left] > introduced a caching mechanism to reduce the amount work the free page > scanner does in compaction. However, it has a problem. Consider two process > simultaneou

Re: [PATCH] MMC/omap_hsmmc: handle failure of regulator_get better.

2012-08-07 Thread Chris Ball
Hi, On Sun, Jul 29 2012, NeilBrown wrote: > 1/ if regulator_get fails, return an error. This is important >if it failed with EPROBE_DEFER, as the probe needs to be >deferred. > > 2/ Don't set .set_power until the regulator has been found, or >the deferred probe will not bother calling

What is the significance of coherent_dma_mask?

2012-08-07 Thread Venu Byravarasu
Hi, Some of the USB drivers are setting coherent_dma_mask & many others are not doing it. From the description present in the comment beside this field in device.h, I could not understand its real significance. Can some one plz let me know its real need and use case where it is mandatory to

Re: [PATCH 3/4] arm/dts: exynos4: Add DTS file for ODROID-X

2012-08-07 Thread Sachin Kamat
On 8 August 2012 00:42, Dongjin Kim wrote: > This patch create a DTS file for ODROID-X, it desribes PMIC max77686 and LED > gpios base. > > Signed-off-by: Dongjin Kim > --- > arch/arm/boot/dts/exynos4412-odroidx.dts | 148 > ++ > 1 file changed, 148 insertions(+) >

Re: [PATCH 2/2] drivers/mmc/host/vub300.c: add missing usb_free_urb

2012-08-07 Thread Chris Ball
Hi Julia, On Tue, Jul 24 2012, Julia Lawall wrote: > From: Julia Lawall > > Add missing usb_free_urb on failure path after usb_alloc_urb. Thanks, pushed to mmc-next for 3.7. - Chris. -- Chris Ball One Laptop Per Child -- To unsubscribe from this list: send the line "u

Re: [PATCH] Parallelize mtrr init between cpus

2012-08-07 Thread H. Peter Anvin
On 08/07/2012 07:08 PM, zhenzhong.duan wrote: 2012-08-08 00:32, H. Peter Anvin wrote: On 08/07/2012 12:29 AM, zhenzhong.duan wrote: Current code serialize mtrr init with set_atomicity_lock. Mtrr init is quite slow when we bootup on a hvm with large mem, vcpus and pci passthroughed devices(e

Re: [PATCH v2 1/1] ARM: dove: DT support for sdhci-dove

2012-08-07 Thread Chris Ball
Hi Sebastian, On Tue, Jul 31 2012, Sebastian Hesselbarth wrote: > This patch adds device tree support and binding documentiation for > sdhci-dove. > > v2: extended documentation and removed second interrupt as it is marked > 'reserved' in dove datasheet. > > Signed-off-by: Sebastian Hesselbar

Re: [PATCH] mmc: sdhci: fix the clock APIs for pxav2 and pxav3 driver

2012-08-07 Thread Chris Ball
Hi, On Tue, Jul 31 2012, Chao Xie wrote: > From: Chao Xie > > Signed-off-by: Chao Xie Thanks, pushed to mmc-next for 3.7. - Chris. -- Chris Ball One Laptop Per Child -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message t

Re: [PATCH 3/4] arm/dts: exynos4: Add DTS file for ODROID-X

2012-08-07 Thread Thomas Abraham
On 8 August 2012 00:42, Dongjin Kim wrote: > This patch create a DTS file for ODROID-X, it desribes PMIC max77686 and LED > gpios base. > > Signed-off-by: Dongjin Kim > --- > arch/arm/boot/dts/exynos4412-odroidx.dts | 148 > ++ > 1 file changed, 148 insertions(+) >

Re: [PATCH] Input: omap4-keypad - don't leak in omap4_keypad_probe()

2012-08-07 Thread Sachin Kamat
On 7 August 2012 23:46, Jesper Juhl wrote: > If omap4_keypad_parse_dt() does not return 0 (zero) in > omap4_keypad_probe() we will leak the memory we allocated for > 'keypad_data' with kzalloc() when we return and the variable goes out > of scope. How about using devm_kzalloc() instead which will

Re: [PATCH] fix NULL-pointer dereference on scsi_run_queue

2012-08-07 Thread Chanho Min
> I'm afraid that without the second half of that patch the following race > is still possible: > - sdev reference count drops to zero while scsi_run_queue() is in > progress and while that sdev is on the starved_list of its SCSI host; > scsi_device_dev_release_usercontext() call is scheduled b

Re: [PATCH v4] mmc: dw_mmc: Disable low power mode if SDIO interrupts are used

2012-08-07 Thread Chris Ball
Hi, On Thu, Jul 26 2012, Seungwon Jeon wrote: > July 26, 2012, Doug Anderson wrote: >> The documentation for the dw_mmc part says that the low power >> mode should normally only be set for MMC and SD memory and should >> be turned off for SDIO cards that need interrupts detected. >> >> The best

Re: [PATCH 2/4] arm/dts: exynos4: Add DTS files derived from common Exynos4

2012-08-07 Thread Thomas Abraham
On 8 August 2012 00:36, Dongjin Kim wrote: > This patch creates a DTS file, exynos4.dtsi, for Exynos4210/4x12 and it > describes common device nodes. SoC specific device nodes are described in > another DTS file derived from this, exynos4210.dtsi and exynos4412.dtsi. > > exynos4412.dtsi is added n

Re: [PATCH] dm: verity support data device offset

2012-08-07 Thread Greg KH
On Wed, Aug 08, 2012 at 12:43:28AM +, Wesley Miaw wrote: > I needed to add support for dm-verity with data that is offset into a block > device. As part of this I found that the existing code did not compute the > correct hash block index if the data_start might be non-zero. Here's a patch >

RE: [PATCHv2 3/4] modem_shm: u8500-shm: U8500 Shared Memory Driver

2012-08-07 Thread Arun MURTHY
> > drivers/modem_shm/Kconfig|2 + > > drivers/modem_shm/Makefile |1 + > > drivers/modem_shm/u8500_shm/Kconfig | 43 + > > drivers/modem_shm/u8500_shm/Makefile |7 + > > drivers/modem_shm/u8500_shm/shrm_char.c

RE: [PATCHv2 1/4] modem_shm: Add Modem Access Framework

2012-08-07 Thread Arun MURTHY
> On Tue, Aug 07, 2012 at 12:24:28PM +0530, Arun Murthy wrote: > > Adds Modem Access Framework, which allows for registering platform > specific > > modem access mechanisms. The framework also exposes APIs for client > drivers > > for getting and releasing access to modem, regardless of the > under

[PATCH 1/8] perf hists browser: Add verbose mode hotkey

2012-08-07 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Right now just shows the DSO name in callchain entries, to help debug the DWARF CFI post unwind code. Cc: David Ahern Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Mike Galbraith Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Link:

Re: Kernel Oops while disconnecting USB peripheral (always)

2012-08-07 Thread Sarbojit Ganguly
Sorry guys I was away due to personal emergency, however now I am back and will check the reply ASAP. On 28 July 2012 21:49, Alan Stern wrote: > On Sat, 28 Jul 2012, Daniel Mack wrote: > >> Hmm, interesting. Thanks for sharing this. I personally never saw this >> bug kicking in, but if I understa

[PATCH 3/8] perf header: Set the tracepoint names on PERF_RECORD_HEADER_TRACING_DATA

2012-08-07 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We only have access to pevent after processing that event, so set the tracepoint names there. Right now this isn't a problem as we're deferring resolving the tracepoint names to when we process samples, but in the next patches we will be doing it in advance, to avo

[PATCH 6/8] perf lock: Use evsel->tp_format and perf_sample

2012-08-07 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To reduce the number of parameters passed to the various event handling functions. Cc: Andrey Wagin Cc: David Ahern Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Mike Galbraith Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Link: h

[PATCH 2/8] perf tools: Add dump_stack function

2012-08-07 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To help in debugging the tools, provides functionality roughly similar to the function with the same name in the kernel. Copied from glibc backtrace function man page. Cc: David Ahern Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Mike Galbraith Cc: Namhyung Kim C

[PATCH 8/8] perf script: Stop using pevent directly

2012-08-07 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We can get all that is needed using just event_format, that is available via evsel->tp_format now. Cc: David Ahern Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Mike Galbraith Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Link: htt

[PATCH 4/8] perf evsel: Cache associated event_format

2012-08-07 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We already lookup the associated event_format when reading the perf.data header, so that we can cache the tracepoint name in evsel->name, so do it a little further and save the event_format itself, so that we can avoid relookups in tools that need to access it. Cha

[PATCH 7/8] perf sched: Use perf_sample

2012-08-07 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To reduce the number of parameters passed to the various event handling functions. Cc: Andrey Wagin Cc: David Ahern Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Mike Galbraith Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Link: h

[PATCH 5/8] perf kmem: Use evsel->tp_format and perf_sample

2012-08-07 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To reduce the number of parameters passed to the various event handling functions. Cc: Andrey Wagin Cc: David Ahern Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Mike Galbraith Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Link: h

Re: [RFC PATCH] block:Fix some problems about handling plug in blk_queue_bio().

2012-08-07 Thread Shaohua Li
2012/8/8 Jianpeng Ma : > I think there are three problems about handling plug in blk_queue_bio(): > 1:if request_count >= BLK_MAX_REQUEST_COUNT, avoid unnecessary > plug->should_sort judge. this makes sense, though not a big deal, nice to fix it. > 2:Only two device can trace plug. I didn't get t

RE: [PATCHv2 3/4] modem_shm: u8500-shm: U8500 Shared Memory Driver

2012-08-07 Thread Arun MURTHY
> > +#define SIZE_OF_FIFO (512*1024) > > + > > +static u8 message_fifo[ISA_DEVICES][SIZE_OF_FIFO]; > > Thats a huge amount of static memory that gets allocated regardless of > whether the device is open or being used ? Yes, but all of these will be used, in any system which includes APE-Modem comm

Re: [PATCH] ARM: SAMSUNG: Fix compilation error with s3c2410_defconfig

2012-08-07 Thread Tushar Behera
On 08/08/2012 07:02 AM, Kukjin Kim wrote: > Kukjin Kim wrote: >> > > [...] > >> >> From: Tushar Behera >> Subject: [PATCH] ARM: SAMSUNG: Fix compilation error with >> s3c2410_defconfig >> >> Commit 2663e766c56a ("ARM Samsung: Move s3c pwm driver to pwm framework") > > Oops, this should be "215c

Re: 答复: [PATCH 1/8] USB:support the new interfaces of Huawei Data Card devices in option driver

2012-08-07 Thread g...@kroah.com
On Wed, Aug 08, 2012 at 01:57:06AM +, Fangxiaozhi (Franko) wrote: > Dear Greg: > > Sorry, this email has included the whole patch. 1/8, I mean that it is submit > at Aug. 1st. No, please don't put the date in the Subject:, that's what the normal Date field in the email is for :) > By the way

[PATCH V2] serial: mxs-auart: fix the wrong RTS hardware flow control

2012-08-07 Thread Huang Shijie
Without checking if the auart supports the hardware flow control or not, the old mxs_auart_set_mctrl() asserted the RTS pin blindly. This will causes the auart receives wrong data in the following case: The far-end has already started the write operation, and wait for the auart asserts the RTS

[PATCH v8 6/6] allower the user to disable pv event support

2012-08-07 Thread Wen Congyang
Signed-off-by: Wen Congyang --- hw/pc_piix.c|6 +- qemu-config.c |4 qemu-options.hx |3 ++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index 4af8403..9b877a7 100644 --- a/hw/pc_piix.c +++ b/hw/pc_piix.c @@ -151,6 +151,8

[PATCH v8 5/6] introduce a new qom device to deal with panicked event

2012-08-07 Thread Wen Congyang
If the target is x86/x86_64, the guest's kernel will write 0x01 to the port KVM_PV_EVENT_PORT when it is panciked. This patch introduces a new qom device kvm_pv_ioport to listen this I/O port, and deal with panicked event according to panicked_action's value. The possible actions are: 1. emit QEVEN

  1   2   3   4   5   6   7   8   9   10   >