Re: [PATCH v1 15/15] scsi: ufs: add wrapper for retrying sending query attribute

2015-08-25 Thread ygardi
> On Aug 21, 2015 3:10 PM, "Yaniv Gardi" wrote: >> >> Sometimes queries from the device might return a failure so it is >> recommended to retry sending the query, before giving up. >> This change adds a wrapper to retry sending a query attribute, >> in cases where we need to wait longer, before we

Re: rsi: Fix possible leak when loading firmware

2015-08-25 Thread Kalle Valo
> Commit 5d5cd85ff441 ("rsi: Fix failure to load firmware after memory > leak fix and fix the leak") also added a check on the allocation of > DMA-accessible memory that may directly return. In that case the > already allocated firmware data is leaked. Make sure the data is > always freed correctl

Re: [PATCH] usbnet: Fix two races between usbnet_stop() and the BH

2015-08-25 Thread Oliver Neukum
On Mon, 2015-08-24 at 14:21 -0400, Alan Stern wrote: > > In theory, an architecture could implement atomic bit operations > using > > a spinlock to insure atomicity. I don't know if any architectures > do > > this, but if they do then the scenario above could arise. > > Now that I see this in w

Re: [PATCH v1 14/15] scsi: ufs: commit descriptors before setting the doorbell

2015-08-25 Thread ygardi
> On Aug 21, 2015 3:10 PM, "Yaniv Gardi" wrote: >> >> Add a write memory barrier to make sure descriptors prepared are >> actually >> written to memory before ringing the doorbell. We have also added the >> write memory barrier after ringing the doorbell register so that >> controller sees the new

Re: [PATCH] usbnet: Fix two races between usbnet_stop() and the BH

2015-08-25 Thread Oliver Neukum
On Mon, 2015-08-24 at 15:29 +0200, Bjørn Mork wrote: > Eugene Shatokhin writes: > > > 19.08.2015 15:31, Bjørn Mork пишет: > >> Eugene Shatokhin writes: > >> Stopping the tasklet rescheduling etc depends only on netif_running(), > >> which will be false when usbnet_stop is called. There is no n

[PATCH] clk: qcom: Fix MSM8916 prng clock enable bit

2015-08-25 Thread Georgi Djakov
Fix the enable bit of the pseudorandom number generator clock. Reported-by: Stanimir Varbanov Fixes: 3966fab8b6ab "clk: qcom: Add MSM8916 Global Clock Controller support" Signed-off-by: Georgi Djakov --- drivers/clk/qcom/gcc-msm8916.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

Re: [v2] rtlwifi: rtl8192cu: Add new device ID

2015-08-25 Thread Kalle Valo
> The v2 of NetGear WNA1000M uses a different idProduct: USB ID 0846:9043 > > Signed-off-by: Adrien Schildknecht > Cc: Stable > Acked-by: Larry Finger Thanks, applied to wireless-drivers-next.git. Kalle Valo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the bo

RE: [PATCH] ipmi: add of_device_id in MODULE_DEVICE_TABLE

2015-08-25 Thread Singh, Brijeshkumar
Hi, I have compile tested on both x86 and arm64 on 4.1, but today will try with 4.2 and send updated patch. Thanks -Brijesh From: Corey Minyard [tcminy...@gmail.com] on behalf of Corey Minyard [miny...@acm.org] Sent: Tuesday, August 25, 2015 6:59 AM To:

Potential data race in uart_ioctl

2015-08-25 Thread Andrey Konovalov
Hi! We are working on a dynamic data race detector for the Linux kernel called KernelThreadSanitizer (ktsan) (https://github.com/google/ktsan/wiki). While booting the kernel (upstream revision 21bdb584af8c) we got a report: == Threa

Re: rtlwifi: rtl8192ee: fix semicolon.cocci warnings

2015-08-25 Thread Kalle Valo
> drivers/net/wireless/rtlwifi/rtl8192ee/phy.c:856:2-3: Unneeded semicolon > drivers/net/wireless/rtlwifi/rtl8192ee/phy.c:492:3-4: Unneeded semicolon > drivers/net/wireless/rtlwifi/rtl8192ee/phy.c:452:3-4: Unneeded semicolon > > > Remove unneeded semicolon. > > Generated by: scripts/coccinelle

Re: [linux-sunxi] [PATCH v3 1/3] mmc: sunxi: fix timeout in sunxi_mmc_oclk_onoff

2015-08-25 Thread Ulf Hansson
On 12 August 2015 at 16:49, Hans de Goede wrote: > Hi, > > On 08/12/2015 03:29 PM, Michal Suchanek wrote: >> >> The 250ms timeout is too short. >> >> On my system enabling the oclk takes under 50ms and disabling slightly >> over 100ms when idle. Under load disabling the clock can take over >> 350m

Re: [PATCH v1] mmc: block: skip trim for some kingston eMMCs

2015-08-25 Thread Ulf Hansson
On 12 August 2015 at 07:08, Shawn Lin wrote: > For some mass production of kingston eMMCs which adopt Phison's > firmware will meet an unrecoverable data conrruption occasionally > if performing trim due to a firmware bug confirmed by vendor. We > found it on Intel-C3230RK platform. So we add fixu

Re: [PATCH v2 0/3] introduce driver for the Atmel SDMMC

2015-08-25 Thread Ulf Hansson
On 29 July 2015 at 16:22, Ludovic Desroches wrote: > Hi, > > This set of patches introduce a driver for the new Atmel SDMMC device avaible > on SAMA5D2 SoC. > > There is also a resend of an old patch which has not been taken. Ulf asked > for some reviews since it could impact all sdhci devices but

Re: [PATCH 1/4] mmc: mediatek: Add online-tuning support of EMMC/SD

2015-08-25 Thread Ulf Hansson
On 17 August 2015 at 14:01, Chaotian Jing wrote: > Hi Ulf, > Thanks, please see my comment: > On Mon, 2015-08-17 at 13:31 +0200, Ulf Hansson wrote: >> On 12 August 2015 at 10:24, Chaotian Jing wrote: >> > Schedule a workqueue to do tuning when CRC error >> > Call mmc_hw_reset to re-init card when

Re: [PATCH] mmc: atmel-mci: remove useless include

2015-08-25 Thread Ulf Hansson
On 10 August 2015 at 16:26, Alexandre Belloni wrote: > Definitions from linux/platform_data/atmel.h are not used, remove the > include. > > Signed-off-by: Alexandre Belloni Thanks, applied for next! Kind regards Uffe > --- > drivers/mmc/host/atmel-mci.c | 1 - > 1 file changed, 1 deletion(-)

Re: [PATCH v3] mmc: sdhci: also get preset value and driver type for MMC_DDR52

2015-08-25 Thread Ulf Hansson
On 18 August 2015 at 10:21, Jisheng Zhang wrote: > commit bb8175a8aa42 ("mmc: sdhci: clarify DDR timing mode between > SD-UHS and eMMC") added MMC_DDR52 as eMMC's DDR mode to be > distinguished from SD-UHS, but it missed setting driver type for > MMC_DDR52 timing mode. > > So sometimes we get the

Re: [PATCH] pwrseq: bind pinctrl pins before using the gpios

2015-08-25 Thread Ulf Hansson
On 17 August 2015 at 13:58, Srinivas Kandagatla wrote: > Some of the pin-controllers like the Qualcomms "qcom,pm8921", which > require a pinconf to be setup to use pins as gpios. Using the pins > directly without pinconf setup would result in incorrect output voltage > or load settings. On the oth

Re: [PATCH] mmc: block: disable the reliable write If the card does not support CMD23

2015-08-25 Thread Ulf Hansson
On 14 August 2015 at 09:30, wrote: > From: Yong Li > > Signed-off-by: Yong Li > --- > drivers/mmc/card/block.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c > index 452782b..d9e3c45 100644 > --- a/drivers/mmc/card

Re: [RFC PATCH v1] mmc: sdhci-of-arasan: Add the support for sdhci-5.1

2015-08-25 Thread Ulf Hansson
On 18 August 2015 at 01:40, Shawn Lin wrote: > Hi Ulf, > > > On 2015/8/12 13:07, Michal Simek wrote: >> >> +linux-mmc >> >> On 08/11/2015 04:53 PM, Michal Simek wrote: >>> >>> On 08/11/2015 09:46 AM, Shawn Lin wrote: This patch adds the compatible string in sdhci-of-arasan.c to supp

[PATCH v4] qcom: ipq4019: Add basic board/dts support for IPQ4019 SoC

2015-08-25 Thread Varadarajan Narayanan
Add initial dts files and SoC support for IPQ4019 Signed-off-by: Varadarajan Narayanan --- Changes in v2: - Added devicetree bindings documentation Changes in v3: - Split 'gcnt' into a separate patch - Added the new entries to Makefiles, Kconfig & board.c in sorted order - Used "qcom,ipq

Re: [PATCH v6 0/6] mmc: imx: a few fixes and new feature

2015-08-25 Thread Ulf Hansson
On 11 August 2015 at 13:38, Haibo Chen wrote: > Changes for v6: > -remove duplicate code in esdhc_set_uhs_signaling(). > -fix a typo for patch-2. > -make commit log of patch-3 more specific. > > Haibo Chen (6): > mmc: sdhci-esdhc-imx: add imx7d support and support HS400 > mmc: sdhci-esdhc-imx:

Re: [PATCH] mmc: sdhci: fix dma memory leak in sdhci_pre_req()

2015-08-25 Thread Ulf Hansson
On 25 August 2015 at 04:02, Haibo Chen wrote: > Currently one mrq->data maybe execute dma_map_sg() twice > when mmc subsystem prepare over one new request, and the > following log show up: > sdhci[sdhci_pre_dma_transfer] invalid cookie: 24, next-cookie 25 > > In this condition, mrq->date m

Re: [PATCH v3 1/2] mmc: sdhci: fix abort due to missing runtime PM

2015-08-25 Thread Ulf Hansson
On 30 July 2015 at 13:37, Stefan Agner wrote: > Hi Ulf, > > What is the status on that? > > -- > Stefan > > On 2015-05-21 09:15, Stefan Agner wrote: >> When using i.MX ESDHC driver, while entering suspend while the device >> is in runtime PM, the sdhci_(suspend|resume)_host function are called >>

Re: [PATCH v2] mmc: host: use of_property_read_bool()

2015-08-25 Thread Ulf Hansson
On 7 August 2015 at 00:06, Sergei Shtylyov wrote: > Use more compact of_property_read_bool() calls instead of the > of_find_property() > calls. > > Signed-off-by: Sergei Shtylyov Thanks, applied for next! Next, time please run checkpatch to remove errors/warnings. Kind regards Uffe > > --- >

Re: [PATCH] mmc: Kconfig: Add dependency on GPIOLIB for MMC_SDHCI

2015-08-25 Thread Ulf Hansson
On 6 August 2015 at 07:39, Michal Simek wrote: > Add GPIOLIB dependency for MMC_SDHCI. > > Problem was observed after adding the patch > "mmc: sdhci-of-arasan: Call OF parsing for MMC" > (sha1: 16b23787fc709fe60c5d2bd05927b1a3da33d4e9) which calls > mmc_of_parse() -> mmc_gpiod_request_cd() (slot-g

Re: [PATCH] cpupower tools: Fix error when running cpupower monitor

2015-08-25 Thread Shreyas B Prabhu
On 08/17/2015 01:22 PM, Shreyas B Prabhu wrote: > > > On 08/10/2015 05:58 PM, Thomas Renninger wrote: >> On Monday, August 03, 2015 11:46:00 AM Shreyas B. Prabhu wrote: >>> get_cpu_topology() tries to get topology info from all cpus by reading >>> files in the topology sysfs dir. If a cpu is of

Re: [PATCH] ipmi: add of_device_id in MODULE_DEVICE_TABLE

2015-08-25 Thread Corey Minyard
On 08/24/2015 09:04 PM, yalin wang wrote: >> On Aug 25, 2015, at 08:48, Corey Minyard wrote: >> >> Well, I should have compile tested first. On x86_64: >> >> >> CC [M] drivers/char/ipmi/ipmi_si_intf.o >> In file included from ../drivers/char/ipmi/ipmi_si_intf.c:42:0: >> ../drivers/char/ipmi/ipm

[PATCH v3 0/4] irqchip: GICv2/v3: Add support for irq_vcpu_affinity

2015-08-25 Thread Marc Zyngier
The GICv2 and GICv3 architectures allow an active physical interrupt to be forwarded to a guest, and the guest to indirectly perform the deactivation of the interrupt by performing an EOI on the virtual interrupt (see for example the GICv2 spec, 3.2.1). This allows some substantial performance imp

Re: [PATCH v3 4/8] add ufshcd_get_variant ufshcd_set_variant

2015-08-25 Thread ygardi
Reviewed-by: Akinobu Mita > Signed-off-by: Yaniv Gardi > > --- > drivers/scsi/ufs/ufs-qcom.c | 34 +- > drivers/scsi/ufs/ufshcd.h | 21 + > 2 files changed, 38 insertions(+), 17 deletions(-) > > diff --git a/drivers/scsi/ufs/ufs-qcom.c b/dr

[PATCH v3 2/4] irqchip: GICv3: Don't deactivate interrupts forwarded to a guest

2015-08-25 Thread Marc Zyngier
Commit 0a4377de3056 ("genirq: Introduce irq_set_vcpu_affinity() to target an interrupt to a VCPU") added just what we needed at the lowest level to allow an interrupt to be deactivated by a guest. When such a request reaches the GIC, it knows it doesn't need to perform the deactivation anymore, an

Re: [PATCH v3 7/8] scsi: ufs-qcom: add debug prints for test bus

2015-08-25 Thread ygardi
Reviewed-by: Akinobu Mita > Adds support for configuring and reading the test bus and debug > registers. This change also adds another vops in order to print the > debug registers. > > Signed-off-by: Yaniv Gardi > > --- > drivers/scsi/ufs/ufs-qcom.c | 165 >

[PATCH v3 4/4] irqchip: GIC: Don't deactivate interrupts forwarded to a guest

2015-08-25 Thread Marc Zyngier
Commit 0a4377de3056 ("genirq: Introduce irq_set_vcpu_affinity() to target an interrupt to a VCPU") added just what we needed at the lowest level to allow an interrupt to be deactivated by a guest. When such a request reaches the GIC, it knows it doesn't need to perform the deactivation anymore, an

Re: [PATCH v3 8/8] scsi: ufs-qcom: add QUniPro hardware support and power optimizations

2015-08-25 Thread ygardi
Reviewed-by: Akinobu Mita > New revisions of UFS host controller supports the new UniPro > hardware controller (referred as QUniPro). This patch adds > the support to enable this new UniPro controller hardware. > > This change also adds power optimization for bus scaling feature, > as well as su

Re: [PATCH v3 5/8] scsi: ufs: creates wrapper functions for vops

2015-08-25 Thread ygardi
Reviewed-by: Akinobu Mita > In order to simplify the code a set of wrapper functions is created > to test and call each of the variant operations. > > Signed-off-by: Yaniv Gardi > > --- > drivers/scsi/ufs/ufs-qcom.c | 1 - > drivers/scsi/ufs/ufshcd.c | 104 > +--

Re: [PATCH v3 6/8] scsi: ufs: make the UFS variant a platform device

2015-08-25 Thread ygardi
Reviewed-by: Akinobu Mita > This change turns the UFS variant (SCSI_UFS_QCOM) into a UFS > a platform device. > In order to do so a few additional changes are required: > 1. The ufshcd-pltfrm is no longer serves as a platform device. >Now it only serves as a group of platform APIs such as PM

[PATCH v3 1/4] irqchip: GICv3: Convert to EOImode == 1

2015-08-25 Thread Marc Zyngier
So far, GICv3 has been used in with EOImode == 0. The effect of this mode is to perform the priority drop and the deactivation of the interrupt at the same time. While this works perfectly for Linux (we only have a single priority), it causes issues when an interrupt is forwarded to a guest, and w

Re: [PATCH v3 3/8] scsi: ufs-qcom: update configuration option of SCSI_UFS_QCOM component

2015-08-25 Thread ygardi
Reviewed-by: Akinobu Mita > This change is required in order to be able to build the component > as a module. > > Signed-off-by: Yaniv Gardi > > --- > drivers/scsi/ufs/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/scsi/ufs/Kconfig b/drivers/scsi/ufs/Kc

[PATCH v3 3/4] irqchip: GIC: Convert to EOImode == 1

2015-08-25 Thread Marc Zyngier
So far, GICv2 has been used with EOImode == 0. The effect of this mode is to perform the priority drop and the deactivation of the interrupt at the same time. While this works perfectly for Linux (we only have a single priority), it causes issues when an interrupt is forwarded to a guest, and when

Re: [PATCH v3 0/8] Fix error message and present UFS variant

2015-08-25 Thread ygardi
Reviewed-by: Akinobu Mita > V3: fixes a few minor issues. > > V2: fixes a few issues of unnecessary EXPORT_SYMBOL, > types of parameters in routine definition, > build errors in case CONFIG_PM is not defined and some > other minor fixes. > > Yaniv Gardi (8): > phy: qcom-ufs: fix build error whe

Re: [PATCH v3 1/8] phy: qcom-ufs: fix build error when the component is built as a module

2015-08-25 Thread ygardi
Reviewed-by: Akinobu Mita > Export the following functions in order to avoid build errors > when the component PHY_QCOM_UFS is compiled as a module: > > ERROR: "ufs_qcom_phy_disable_ref_clk" > [drivers/scsi/ufs/ufs-qcom.ko] undefined! > ERROR: "ufs_qcom_phy_enable_ref_clk" > [drivers/

Re: [PATCH v3 2/8] scsi: ufs-qcom: fix compilation warning if compiled as a module

2015-08-25 Thread ygardi
Reviewed-by: Akinobu Mita > This change fixes a compilation warning that happens if SCSI_UFS_QCOM > is compiled as a module. > Also this patch fixes an error happens when insmod the module: > "ufs_qcom: module license 'unspecified' taints kernel." > > Signed-off-by: Yaniv Gardi > > --- > driver

Re: [PATCH V3 2/3] kvm: don't register wildcard MMIO EVENTFD on two buses

2015-08-25 Thread Michael S. Tsirkin
On Tue, Aug 25, 2015 at 05:05:47PM +0800, Jason Wang wrote: > We register wildcard mmio eventfd on two buses, one for KVM_MMIO_BUS > and another is KVM_FAST_MMIO_BUS. This leads to issue: > > - kvm_io_bus_destroy() knows nothing about the devices on two buses > points to a single dev. Which will

Re: [PATCH 3.12 49/82] xen/gntdevt: Fix race condition in gntdev_release()

2015-08-25 Thread Marek Marczykowski-Górecki
On Tue, Aug 25, 2015 at 12:35:59PM +0100, Luis Henriques wrote: > [ Adding Greg has he seems to have this patch queued for 3.10 and 3.14 ] > > On Mon, Aug 24, 2015 at 11:09:09AM +0200, Jiri Slaby wrote: > > From: Marek Marczykowski-Górecki > > > > 3.12-stable review patch. If anyone has any obj

Re: [PATCH v2 00/16] omap_hsmmc: regulator usage cleanup and fixes

2015-08-25 Thread Ulf Hansson
On 3 August 2015 at 14:26, Kishon Vijay Abraham I wrote: > Changes from v1: > *) return on -EPROBE_DEFER and other fatal errors. (Don't return only >if the return value is -ENODEV) > *) Remove the beagle x15 dts patch. It can be part of a different >series. > *) Avoid using regulator_is_en

Re: [PATCH v2 0/8] Fix error message and present UFS variant

2015-08-25 Thread ygardi
Thank you Mita, We appreciate your comments and your time. will add "Reviewed-by". regards, Yaniv > Hi Yaniv, > > 2015-08-23 22:09 GMT+09:00 Yaniv Gardi : >> V3: fixes a few minor issues. >> >> V2: fixes a few issues of unnecessary EXPORT_SYMBOL, >> types of parameters in routine definition, >>

Re: Build failure due to Intel PT

2015-08-25 Thread Adrian Hunter
On 25/08/15 14:35, Arnaldo Carvalho de Melo wrote: > Em Tue, Aug 25, 2015 at 10:20:00AM +0300, Adrian Hunter escreveu: >> On 24/08/15 23:04, Arnaldo Carvalho de Melo wrote: >>> Em Mon, Aug 24, 2015 at 11:51:31AM -0700, Sukadev Bhattiprolu escreveu: I am trying to build perf tool on Powerpc and

Re: [PATCHv3 4/5] mm: make compound_head() robust

2015-08-25 Thread Vlastimil Babka
On 08/21/2015 02:10 PM, Kirill A. Shutemov wrote: On Thu, Aug 20, 2015 at 04:36:43PM -0700, Andrew Morton wrote: On Wed, 19 Aug 2015 12:21:45 +0300 "Kirill A. Shutemov" wrote: The patch introduces page->compound_head into third double word block in front of compound_dtor and compound_order.

Re: [PATCH v8 1/2] mfd: devicetree: add bindings for Atmel Flexcom

2015-08-25 Thread Cyrille Pitchen
Hi all, any feedback on this kind of DT bindings? Is it a proper way of using the "ranges" property? Best regards, Cyrille Le 24/07/2015 17:08, Lee Jones a écrit : > DT chaps, > > Please can you take a look at this binding. > > In particular the use of the 'ranges' property to store device 'm

Re: [PATCH 0/7] gpio: omap: fixes and improvements

2015-08-25 Thread Grygorii Strashko
On 08/21/2015 11:13 AM, Tony Lindgren wrote: > * Tony Lindgren [150818 23:42]: >> Hi, >> >> * Grygorii Strashko [150818 04:14]: >>> Hi, >>> >>> This patch series contains set of trivial fixes and improvements, and also >>> patches which fixes wrong APIs usage in atomic context as for -RT as for >

Re: [PATCH v5 2/5] pci:host: Add Altera PCIe host controller driver

2015-08-25 Thread Marc Zyngier
On 25/08/15 10:35, Ley Foon Tan wrote: > This patch adds the Altera PCIe host controller driver. > > Signed-off-by: Ley Foon Tan > --- > drivers/pci/host/Kconfig | 7 + > drivers/pci/host/Makefile | 1 + > drivers/pci/host/pcie-altera.c | 588 > +++

Re: [PATCH V3 2/3] kvm: don't register wildcard MMIO EVENTFD on two buses

2015-08-25 Thread Michael S. Tsirkin
On Tue, Aug 25, 2015 at 05:05:47PM +0800, Jason Wang wrote: > We register wildcard mmio eventfd on two buses, one for KVM_MMIO_BUS > and another is KVM_FAST_MMIO_BUS. This leads to issue: > > - kvm_io_bus_destroy() knows nothing about the devices on two buses > points to a single dev. Which will

Re: [PATCH V3 3/3] kvm: add tracepoint for fast mmio

2015-08-25 Thread Michael S. Tsirkin
On Tue, Aug 25, 2015 at 05:05:48PM +0800, Jason Wang wrote: > Cc: Gleb Natapov > Cc: Paolo Bonzini > Cc: Michael S. Tsirkin > Signed-off-by: Jason Wang > --- > arch/x86/kvm/trace.h | 17 + > arch/x86/kvm/vmx.c | 1 + > arch/x86/kvm/x86.c | 1 + > 3 files changed, 19 inser

Re: [PATCH 3.12 49/82] xen/gntdevt: Fix race condition in gntdev_release()

2015-08-25 Thread Luis Henriques
[ Adding Greg has he seems to have this patch queued for 3.10 and 3.14 ] On Mon, Aug 24, 2015 at 11:09:09AM +0200, Jiri Slaby wrote: > From: Marek Marczykowski-Górecki > > 3.12-stable review patch. If anyone has any objections, please let me know. > > === > > commit 30b03d05e07467

Re: Build failure due to Intel PT

2015-08-25 Thread Arnaldo Carvalho de Melo
Em Tue, Aug 25, 2015 at 10:20:00AM +0300, Adrian Hunter escreveu: > On 24/08/15 23:04, Arnaldo Carvalho de Melo wrote: > > Em Mon, Aug 24, 2015 at 11:51:31AM -0700, Sukadev Bhattiprolu escreveu: > >> I am trying to build perf tool on Powerpc and get this: > >> util/intel-pt-decoder/intel-pt-insn-d

Re: [PATCH v1 3/3] arm64: dts: add Hi6220 mailbox node

2015-08-25 Thread Sudeep Holla
On 19/08/15 10:37, Leo Yan wrote: On Hi6220, below memory regions in DDR have specific purpose: 0x05e0, - 0x05ef,: For MCU firmware using at runtime; 0x0740,f000 - 0x0740,: For MCU firmware's section; 0x06df,f000 - 0x06df,: For mailbox message data. Unless I am read

Re: [PATCH] mm: mmap: Check all failures before set values

2015-08-25 Thread Michal Hocko
On Tue 25-08-15 05:54:00, Chen Gang wrote: > On 8/24/15 21:57, Michal Hocko wrote: > > On Mon 24-08-15 21:34:25, Chen Gang wrote: > > [...] > > > >> It is always a little better to let the external function suppose fewer > >> callers' behalf. > > > > I am sorry but I do not understand what you

Re: [PATCH V2 3/3] kvm: add tracepoint for fast mmio

2015-08-25 Thread Michael S. Tsirkin
On Tue, Aug 25, 2015 at 03:47:15PM +0800, Jason Wang wrote: > Cc: Gleb Natapov > Cc: Paolo Bonzini > Cc: Michael S. Tsirkin > Signed-off-by: Jason Wang > --- > arch/x86/kvm/trace.h | 17 + > arch/x86/kvm/vmx.c | 1 + > arch/x86/kvm/x86.c | 1 + > 3 files changed, 19 inser

Re: [PATCH V2 2/3] kvm: don't register wildcard MMIO EVENTFD on two buses

2015-08-25 Thread Michael S. Tsirkin
On Tue, Aug 25, 2015 at 03:47:14PM +0800, Jason Wang wrote: > We register wildcard mmio eventfd on two buses, one for KVM_MMIO_BUS > and another is KVM_FAST_MMIO_BUS. This leads to issue: > > - kvm_io_bus_destroy() knows nothing about the devices on two buses > points to a single dev. Which will

Re: [PATCH net-next] macvtap/macvlan: use IFF_NO_QUEUE

2015-08-25 Thread Jason Wang
On 08/25/2015 06:17 PM, Michael S. Tsirkin wrote: > On Mon, Aug 24, 2015 at 04:33:12PM +0800, Jason Wang wrote: >> > For macvlan, switch to use IFF_NO_QUEUE instead of tx_queue_len = 0. >> > >> > For macvtap, after commit 6acf54f1cf0a6747bac9fea26f34cfc5a9029523 >> > ("macvtap: Add support of pa

Re: linux: sata_nv: adma support

2015-08-25 Thread Mark Lord
On 15-08-01 09:45 PM, Robert Hancock wrote: On Sat, Aug 1, 2015 at 2:09 PM, Pali Rohár wrote: On Thursday 25 December 2014 07:22:13 Robert Hancock wrote: On Tue, Dec 23, 2014 at 1:51 PM, Pali Rohár wrote: Hello, I have nvidia nforce4 motherboard with nvidia sata controller: .. It looks li

Re: [PATCH] pci: acpi: Generic function for setting up PCI device DMA coherency

2015-08-25 Thread Suthikulpanit, Suravee
Hi Bjorn, On 8/25/2015 3:14 AM, Bjorn Helgaas wrote: On Mon, Aug 24, 2015 at 12:09 PM, Suravee Suthikulpanit wrote: commit 84cfb2213cd400fef227ec0d7829ec4e12895da9 Author: Bjorn Helgaas Date: Thu Aug 13 19:49:52 2015 -0500 ACPI / scan: Rename acpi_check_dma() to acpi_dma_is_coherent

Re: [PATCH v5 3/5] pci: altera: Add Altera PCIe MSI driver

2015-08-25 Thread Marc Zyngier
On 25/08/15 10:35, Ley Foon Tan wrote: > This patch adds Altera PCIe MSI driver. This soft IP supports configurable > number of vectors, which is a dts parameter. > > Signed-off-by: Ley Foon Tan > --- > drivers/pci/host/Kconfig | 8 + > drivers/pci/host/Makefile | 1 + > d

Re: [PATCH linux-next v4 5/5] mtd: atmel-quadspi: add driver for Atmel QSPI controller

2015-08-25 Thread Cyrille Pitchen
Hi! Le 25/08/2015 03:44, Bean Huo 霍斌斌 (beanhuo) a écrit : > >> +nor->read_reg = atmel_qspi_read_reg; >> +nor->write_reg = atmel_qspi_write_reg; >> +nor->read = atmel_qspi_read; >> +nor->write = atmel_qspi_write; >> +nor->erase = atmel_qspi_erase; >> +nor->set_protocol = at

Re: [PATCH v1 1/3] dt-bindings: mailbox: Document Hi6220 mailbox driver

2015-08-25 Thread Sudeep Holla
On 19/08/15 10:37, Leo Yan wrote: Document the new compatible for Hisilicon Hi6220 mailbox driver. Signed-off-by: Leo Yan --- .../bindings/mailbox/hisilicon,hi6220-mailbox.txt | 57 ++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bind

Re: [PATCH] Memory hot added,The memory can not been added to movable zone

2015-08-25 Thread Vlastimil Babka
On 08/25/2015 12:25 PM, Changsheng Liu wrote: Thanks very much for your review, I can move the memory from normal zone to movable zone succesfully. And thank you for let me understand the memory mechanism better. 在 2015/8/25 3:15, Yasuaki Ishimatsu 写道: So you agree to drop the patch from -mm?

Re: [PATCH v1 3/3] arm64: dts: add Hi6220 mailbox node

2015-08-25 Thread Mark Rutland
Hi, On Tue, Aug 25, 2015 at 09:04:45AM +0100, Haojian Zhuang wrote: > On Mon, 2015-08-24 at 13:48 +0100, Mark Rutland wrote: > > > > > > I don't see why you need reserved-memory here, given you're not > > > > > > referring to > > > > > > these regions by phandle anyway. > > > > > > > > > > - Now

Re: [PATCH 04/12] mm, page_alloc: Only check cpusets when one exists that can be mem-controlled

2015-08-25 Thread Vlastimil Babka
On 08/25/2015 12:33 PM, Mel Gorman wrote: On Mon, Aug 24, 2015 at 10:53:37PM +0200, Vlastimil Babka wrote: On 24.8.2015 15:16, Mel Gorman wrote: return read_seqcount_retry(¤t->mems_allowed_seq, seq); @@ -139,7 +141,7 @@ static inline void set_mems_allowed(nodemask_t nodemask) #else

[PATCH 4/5] usb: dwc3: core: convert to unified device property interface

2015-08-25 Thread Heikki Krogerus
No functional affect on existing platforms, but the driver is now ready to extract the properties also from ACPI tables as well as from DT. Signed-off-by: Heikki Krogerus --- drivers/usb/dwc3/core.c | 45 ++--- 1 file changed, 22 insertions(+), 23 deletion

[PATCH 5/5] usb: dwc3: pci: passing forward the ACPI companion

2015-08-25 Thread Heikki Krogerus
Sharing the ACPI companion with dwc3 core so it has access to the properties defined for DWC3 in ACPI tables. Signed-off-by: Heikki Krogerus --- drivers/usb/dwc3/dwc3-pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc3/dwc3-pci.c b/drivers/usb/dwc3/dwc3-pci.c index f626179

[PATCH 3/5] usb: common: of_usb_get_dr_mode to usb_get_dr_mode

2015-08-25 Thread Heikki Krogerus
By using the unified device property interface, the function can be made available for all platforms and not just the ones using DT. Signed-off-by: Heikki Krogerus --- drivers/usb/chipidea/core.c | 2 +- drivers/usb/common/common.c | 15 --- drivers/usb/dwc2/platform.c |

[PATCH 0/5] usb: common and dwc3: converting to unified device property

2015-08-25 Thread Heikki Krogerus
Hi, While converting dwc3 to the unified device property interface, I noticed that there is really nothing preventing of_usb_get_dr_mode and of_usb_get_maximum_speed from being converted as well. Hope that's OK. The only special case was dwc3-st.c, where the dr_mode is requested before the platfo

[PATCH 2/5] usb: dwc3: st: prepare the driver for generic usb_get_dr_mode function

2015-08-25 Thread Heikki Krogerus
of_usb_get_dr_mode will be converted into more generic usb_get_dr_mode function that will take struct device instead of struct device_node as it's parameter. To make the conversion possible later, waiting for the platform device for dwc3 to be populated before calling of_usb_get_dr_mode. Signed-o

[PATCH 1/5] usb: common: of_usb_get_maximum_speed to usb_get_maximum_speed

2015-08-25 Thread Heikki Krogerus
By using the unified device property interface, the function can be made available for all platforms and not just the ones using DT. Signed-off-by: Heikki Krogerus --- drivers/usb/chipidea/core.c | 2 +- drivers/usb/common/common.c | 44 ++-- drivers/usb/

RE: [PATCH 2/5] gic-its: Allow pci_requester_id to be overridden.

2015-08-25 Thread Pavel Fedin
Hello! > > What if instead of this function we simply add a field to a struct > > pci_bus ? Then bus driver would > > fill in HW-specific ID bits for every bus. > > I can send a patch if interested. > > There is a lot of work being done in the upstream to extract the proper > information fr

Re: "scsi: convert host_busy to atomic_t" series causes regressions for some hardware configurations

2015-08-25 Thread Christoph Hellwig
Hi Sergio, can you give the patch below a try? libata currently completes the SCSI command before freeing the internal command structure, which could lead to various races that mess with the ATA command state, which might cause issues like the one you see. diff --git a/drivers/ata/libata-scsi.c

Re: Proposal for finishing the 64-bit x86 syscall cleanup

2015-08-25 Thread Brian Gerst
On Mon, Aug 24, 2015 at 5:13 PM, Andy Lutomirski wrote: > Hi all- > > I want to (try to) mostly or fully get rid of the messy bits (as > opposed to the hardware-bs-forced bits) of the 64-bit syscall asm. > There are two major conceptual things that are in the way. > > Thing 1: partial pt_regs > >

Re: [PATCH V3 2/3] kvm: don't register wildcard MMIO EVENTFD on two buses

2015-08-25 Thread Cornelia Huck
On Tue, 25 Aug 2015 17:05:47 +0800 Jason Wang wrote: > We register wildcard mmio eventfd on two buses, one for KVM_MMIO_BUS > and another is KVM_FAST_MMIO_BUS. This leads to issue: > > - kvm_io_bus_destroy() knows nothing about the devices on two buses > points to a single dev. Which will lead

Re: [PATCH-v2 1/5] mfd: 88pm800: Fix tabbing issue

2015-08-25 Thread Vaibhav Hiremath
On Tuesday 25 August 2015 04:05 PM, Lee Jones wrote: On Tue, 25 Aug 2015, Vaibhav Hiremath wrote: On Tuesday 25 August 2015 01:22 PM, Lee Jones wrote: On Tue, 25 Aug 2015, Vaibhav Hiremath wrote: Driver had coding style issues where spaces were used instead of tabs. This patch fixes them

[PATCH -next] static-keys: Fix documentation

2015-08-25 Thread Chuck Ebbert
Fix some mistakes and typos, clean up text a bit. Signed-off-by: Chuck Ebbert diff --git a/Documentation/static-keys.txt b/Documentation/static-keys.txt index f4cb0b2..127391c 100644 --- a/Documentation/static-keys.txt +++ b/Documentation/static-keys.txt @@ -3,8 +3,8 @@ DEPRECATED API: -The

Re: [PATCH v3 06/14] Documentation: drm/bridge: add document for analogix_dp

2015-08-25 Thread Russell King - ARM Linux
On Tue, Aug 25, 2015 at 12:40:01PM +0200, Thierry Reding wrote: > On Tue, Aug 25, 2015 at 10:29:39AM +0100, Russell King - ARM Linux wrote: > > Now, what happens when some other DRM driver wants to use the tda998x > > driver, and its bindings are not compatible with the component helpers? > > They'

[PATCH v2] irqchip, gicv3-its, numa: Workaround for Cavium ThunderX erratum 23144

2015-08-25 Thread Ganapatrao Kulkarni
The patch below adds a workaround for gicv3 in a numa environment. It is on top of Robert's recent gicv3 errata patch submission v4 and my arm64 numa patches v5. This implements a workaround for gicv3-its erratum 23144 on Cavium's ThunderX dual-socket platforms, where LPI cannot be routed to a red

Re: [PATCH-v2 1/5] mfd: 88pm800: Fix tabbing issue

2015-08-25 Thread Vaibhav Hiremath
On Tuesday 25 August 2015 04:00 PM, Lee Jones wrote: On Tue, 25 Aug 2015, Vaibhav Hiremath wrote: On Tuesday 25 August 2015 01:21 PM, Lee Jones wrote: On Tue, 25 Aug 2015, Vaibhav Hiremath wrote: Driver had coding style issues where spaces were used instead of tabs. This patch fixes them al

[PATCH 2/2] perf tools: Make NO_AUXTRACE default for non-x86 architectures

2015-08-25 Thread Adrian Hunter
Currently the AUXTRACE infrastructure is only used by Intel PT and Intel BTS but is compiled into all architectures to support the ability to process a perf.data file (including one containing Intel PT or Intel BTS data) from any architecture on any other architecture. Generally people don't want

[PATCH 1/2] perf tools: Fix build on powerpc broken by pt/bts

2015-08-25 Thread Adrian Hunter
It is theoretically possible to process perf.data files created on x86 and that contain Intel PT or Intel BTS data, on any other architecture, which is why it is possible for there to be build errors on powerpc caused by pt/bts. The errors were: util/intel-pt-decoder/intel-pt-insn-decoder

Re: [RFCv5 PATCH 38/46] sched: scheduler-driven cpu frequency selection

2015-08-25 Thread Juri Lelli
Hi Peter, On 15/08/15 14:05, Peter Zijlstra wrote: > On Tue, Jul 07, 2015 at 07:24:21PM +0100, Morten Rasmussen wrote: >> +void cpufreq_sched_set_cap(int cpu, unsigned long capacity) >> +{ >> +unsigned int freq_new, cpu_tmp; >> +struct cpufreq_policy *policy; >> +struct gov_data *gd; >

Re: [PATCH v1 3/3] arm64: dts: add Hi6220 mailbox node

2015-08-25 Thread Mark Rutland
On Tue, Aug 25, 2015 at 11:15:10AM +0100, Haojian Zhuang wrote: > On Tue, 2015-08-25 at 10:46 +0100, Leif Lindholm wrote: > > On Tue, Aug 25, 2015 at 04:13:47PM +0800, Haojian Zhuang wrote: > > > On Mon, 2015-08-24 at 12:49 +0100, Leif Lindholm wrote: > > > > On Mon, Aug 24, 2015 at 06:19:56PM +080

Re: [PATCH v1 3/3] arm64: dts: add Hi6220 mailbox node

2015-08-25 Thread Leif Lindholm
On Tue, Aug 25, 2015 at 06:15:10PM +0800, Haojian Zhuang wrote: > > > 1. We need support both UEFI and uboot. So the reserved buffer have to > > > be declared in DTB since they are used by kernel driver, not UEFI. > > > > The buffer may need to be declared in DTB also, but it most certanily > > ne

Re: [PATCH v3 06/14] Documentation: drm/bridge: add document for analogix_dp

2015-08-25 Thread Thierry Reding
On Tue, Aug 25, 2015 at 10:29:39AM +0100, Russell King - ARM Linux wrote: > On Tue, Aug 25, 2015 at 11:12:48AM +0200, Thierry Reding wrote: > > On Mon, Aug 24, 2015 at 09:48:27AM -0500, Rob Herring wrote: > > > It goes beyond bindings IMO. The use of the component framework or not > > > has been at

[PATCH] Smack: fix a NULL dereference in wrong smack_import_entry() usage

2015-08-25 Thread Lukasz Pawelczyk
The e774ad683f425a51f87711164ea166d9dcc41477 commit made this function return proper error codes instead of NULL. Reflect that. This is a fix for a NULL dereference introduced in 21abb1ec414c75abe32c3854848ff30e2b4a6113: echo "$SOME_IPV6_ADDR \"test" > /smack/ipv6host (this should return EINVAL

Re: [PATCH 3/3 v6] mm/vmalloc: Cache the vmalloc memory info

2015-08-25 Thread George Spelvin
>> Second, and this is up to you, I'd be inclined to go fully non-blocking >> and only spin_trylock(). If that fails, just skip the cache update. > So I'm not sure about this one: we have no guarantee of the order every > updater reaches the spinlock, and we want the 'freshest' updater to do > th

Re: [PATCH-v2 1/5] mfd: 88pm800: Fix tabbing issue

2015-08-25 Thread Lee Jones
On Tue, 25 Aug 2015, Vaibhav Hiremath wrote: > > > On Tuesday 25 August 2015 01:22 PM, Lee Jones wrote: > >On Tue, 25 Aug 2015, Vaibhav Hiremath wrote: > > > >>Driver had coding style issues where spaces were used instead > >>of tabs. This patch fixes them all. > >> > >>Signed-off-by: Vaibhav Hi

Re: [PATCH 04/12] mm, page_alloc: Only check cpusets when one exists that can be mem-controlled

2015-08-25 Thread Mel Gorman
On Mon, Aug 24, 2015 at 10:53:37PM +0200, Vlastimil Babka wrote: > On 24.8.2015 15:16, Mel Gorman wrote: > >>> > >>> return read_seqcount_retry(¤t->mems_allowed_seq, seq); > >>> @@ -139,7 +141,7 @@ static inline void set_mems_allowed(nodemask_t > >>> nodemask) > >>> > >>> #else /* !CONFIG_CPUSE

Re: [PATCH] sched: fix tsk->pi_lock isn't held when do_set_cpus_allowed()

2015-08-25 Thread Peter Zijlstra
On Tue, Aug 25, 2015 at 12:10:32PM +0200, Peter Zijlstra wrote: > On Tue, Aug 25, 2015 at 12:05:27PM +0200, Peter Zijlstra wrote: > > On Tue, Aug 25, 2015 at 03:59:54PM +0800, Wanpeng Li wrote: > > > +++ b/kernel/cpuset.c > > > @@ -2376,8 +2376,12 @@ void cpuset_cpus_allowed(struct task_struct *tsk

Re: [PATCH-v2 1/5] mfd: 88pm800: Fix tabbing issue

2015-08-25 Thread Lee Jones
On Tue, 25 Aug 2015, Vaibhav Hiremath wrote: > On Tuesday 25 August 2015 01:21 PM, Lee Jones wrote: > >On Tue, 25 Aug 2015, Vaibhav Hiremath wrote: > > > >>Driver had coding style issues where spaces were used instead > >>of tabs. This patch fixes them all. > > > >That's not all it's doing though i

Re: [PATCH] Memory hot added,The memory can not been added to movable zone

2015-08-25 Thread Changsheng Liu
Thanks very much for your review, I can move the memory from normal zone to movable zone succesfully. And thank you for let me understand the memory mechanism better. 在 2015/8/25 3:15, Yasuaki Ishimatsu 写道: Hi On Thu, 20 Aug 2015 14:15:13 +0800 Changsheng Liu wrote: Hi Andrew Morton: First, t

Re: [PATCH linux-next v4 5/5] mtd: atmel-quadspi: add driver for Atmel QSPI controller

2015-08-25 Thread Marek Vasut
On Tuesday, August 25, 2015 at 12:17:37 PM, Cyrille Pitchen wrote: > Hi Marek, Hi! > Le 24/08/2015 13:03, Marek Vasut a écrit : > > On Monday, August 24, 2015 at 12:14:00 PM, Cyrille Pitchen wrote: > >> This driver add support to the new Atmel QSPI controller embedded into > >> sama5d2x SoCs. It

Re: [PATCH linux-next v4 5/5] mtd: atmel-quadspi: add driver for Atmel QSPI controller

2015-08-25 Thread Cyrille Pitchen
Le 25/08/2015 11:46, Jonas Gorski a écrit : > On Mon, Aug 24, 2015 at 7:45 PM, Marek Vasut wrote: >> On Monday, August 24, 2015 at 07:04:38 PM, Cyrille Pitchen wrote: >>> Hi Marek, >> >> Hi! >> >>> Le 24/08/2015 13:03, Marek Vasut a écrit : On Monday, August 24, 2015 at 12:14:00 PM, Cyrille P

Re: [PATCH v2 0/6] perf: Introduce extended syscall error reporting

2015-08-25 Thread Johannes Berg
On Tue, 2015-08-25 at 12:07 +0200, Ingo Molnar wrote: > Having a separate syscall has two (big!) appeals: > > - we wouldn't have to touch existing system calls at all. > > - extended error reporting would be available for any system call that opts > to >use it. (The current scheme as submi

Re: [PATCH stable] md/bitmap: return an error when bitmap superblock is corrupt.

2015-08-25 Thread Luis Henriques
On Fri, Aug 14, 2015 at 05:04:21PM +1000, NeilBrown wrote: > > commit b97e92574c0bf335db1cd2ec491d8ff5cd5d0b49 upstream > Use separate bitmaps for each nodes in the cluster > > bitmap_read_sb() validates the bitmap superblock that it reads in. > If it finds an inconsistency like a bad magic n

Re: [RESEND PATCH 4/7] ALSA: ppc: keywest: Export I2C module alias information

2015-08-25 Thread Takashi Iwai
On Tue, 25 Aug 2015 08:31:14 +0200, Javier Martinez Canillas wrote: > > The I2C core always reports the MODALIAS uevent as "i2c: regardless if the driver was matched using the I2C id_table or the > of_match_table. So the driver needs to export the I2C table and this > be built into the module or u

<    2   3   4   5   6   7   8   9   10   >