[RFC PATCH v2 0/6] mmc: sdhci: adding support for a new Fujitsu sdhci IP

2014-06-26 Thread Vincent Yang
Hi, We are adding support for a new Fujitsu sdhci IP. These patches are against v3.16-rc1 mainline since nothing in mmc-next at this moment. These patches are tested on 3.16-rc1 integration tree. We welcome any comment and advice about how to make any improvements or better align them with

[RFC PATCH v2 1/6] mmc: sdhci: add quirk for voltage switch callback

2014-06-26 Thread Vincent Yang
This patch defines a quirk to do a callback when switching voltages so do controller-specific actions. It is a preparation and will be used by Fujitsu SDHCI controller f_sdh30 driver. Signed-off-by: Vincent Yang vincent.y...@tw.fujitsu.com --- drivers/mmc/host/sdhci.c | 5 +

[RFC PATCH v2 2/6] mmc: sdhci: add quirk for tuning work around

2014-06-26 Thread Vincent Yang
This patch defines a quirk for tuning work around for some sdhci host controller. It sets both SDHCI_CTRL_EXEC_TUNING and SDHCI_CTRL_TUNED_CLK for tuning. It is a preparation and will be used by Fujitsu SDHCI controller f_sdh30 driver. Signed-off-by: Vincent Yang vincent.y...@tw.fujitsu.com ---

[RFC PATCH v2 3/6] mmc: sdhci: add quirk for single block transactions

2014-06-26 Thread Vincent Yang
This patch defines a quirk to disable the block count for single block transactions. It is a preparation and will be used by Fujitsu SDHCI controller f_sdh30 driver. Signed-off-by: Vincent Yang vincent.y...@tw.fujitsu.com --- drivers/mmc/host/sdhci.c | 8 +--- include/linux/mmc/sdhci.h | 2

[RFC PATCH v2 4/6] mmc: sdhci: host: add new f_sdh30

2014-06-26 Thread Vincent Yang
This patch adds new host controller driver for Fujitsu SDHCI controller f_sdh30. Signed-off-by: Vincent Yang vincent.y...@tw.fujitsu.com --- .../devicetree/bindings/mmc/sdhci-fujitsu.txt | 35 +++ drivers/mmc/host/Kconfig | 7 + drivers/mmc/host/Makefile

[RFC PATCH v2 5/6] mmc: core: hold SD Clock before CMD11 during Signal Voltage Switch Procedure

2014-06-26 Thread Vincent Yang
This patch is to fix an issue found on mb86s7x platforms. [symptom] There are some UHS-1 SD memory cards sometimes cannot be detected correctly, e.g., Transcend 600x SDXC 64GB UHS-1 memory card. During Signal Voltage Switch Procedure, failure to switch is indicated by the card holding DAT[3:0]

[RFC PATCH v2 6/6] mmc: core: add manual resume capability

2014-06-26 Thread Vincent Yang
This patch adds manual resume for some embedded platforms with rootfs stored in SD card. It references CONFIG_MMC_BLOCK_DEFERRED_RESUME in kernel 3.10. It lets host controller driver to manually handle resume by itself. [symptom] This issue is found on mb86s7x platforms with rootfs stored in SD

Re: [PATCH] Bugfix: powerpc/eeh: Create eeh sysfs entry in post_init()

2014-06-26 Thread Mike Qiu
On 06/26/2014 08:12 AM, Gavin Shan wrote: On Wed, Jun 25, 2014 at 03:27:55PM +0800, Mike Qiu wrote: On 06/25/2014 01:33 PM, Gavin Shan wrote: On Tue, Jun 24, 2014 at 11:32:07PM -0400, Mike Qiu wrote: [ cc Richard ] Eeh sysfs entry created must be after EEH_ENABLED been set in

Re: powerpc: crash with 3.16.0-rc2

2014-06-26 Thread Cedric Le Goater
Hi Suka, On 06/26/2014 08:10 AM, Sukadev Bhattiprolu wrote: I got the following crash in Open Firmware, on two separate systems with recent mainline kernel (3.16.0-rc2). One was a P8 LPAR with no changes to kernel and another a Power7 LPAR with some kernel changes (24x7 perf counter patches).

[PATCH] powerpc/eeh: sysfs entries lost

2014-06-26 Thread Mike Qiu
The sysfs entries are lost because of commit 2213fb1 (powerpc/eeh: Skip eeh sysfs when eeh is disabled). That commit added condition to create sysfs entries with EEH_ENABLED, which isn't populated when trying to create sysfs entries on PowerNV platform during system boot time. The patch fixes the

Re: [PATCH] powerpc/eeh: sysfs entries lost

2014-06-26 Thread Gavin Shan
On Thu, Jun 26, 2014 at 02:58:47AM -0400, Mike Qiu wrote: The sysfs entries are lost because of commit 2213fb1 (powerpc/eeh: Skip eeh sysfs when eeh is disabled). That commit added condition to create sysfs entries with EEH_ENABLED, which isn't populated when trying to create sysfs entries on

Re: [PATCH 1/1] selftests/powerpc: fix TARGETS in powerpc selftests makefile

2014-06-26 Thread Michael Ellerman
On Wed, 2014-06-25 at 15:18 +1000, Sam Bobroff wrote: This patch changes the name of a make variable (TARGETS) to prevent it from colliding with a value set by the user on the command line (as they are recommended to do by tools/testing/selftests/README.txt). Before this patch, make -C

Re: powerpc: crash with 3.16.0-rc2

2014-06-26 Thread Michael Ellerman
On Thu, 2014-06-26 at 08:53 +0200, Cedric Le Goater wrote: Hi Suka, On 06/26/2014 08:10 AM, Sukadev Bhattiprolu wrote: I got the following crash in Open Firmware, on two separate systems with recent mainline kernel (3.16.0-rc2). One was a P8 LPAR with no changes to kernel and another a

Re: [PATCH v2 2/2] powerpc: bpf: Fix the broken LD_VLAN_TAG_PRESENT test

2014-06-26 Thread Michael Ellerman
On Wed, 2014-06-25 at 21:34 +0400, Denis Kirjanov wrote: We have to return the boolean here if the tag presents or not, not just ANDing the TCI with the mask which results to: [ 709.412097] test_bpf: #18 LD_VLAN_TAG_PRESENT [ 709.412245] ret 4096 != 1 [ 709.412332] ret 4096 != 1 [

Re: [PATCH v2 2/2] powerpc: bpf: Fix the broken LD_VLAN_TAG_PRESENT test

2014-06-26 Thread Daniel Borkmann
On 06/26/2014 10:30 AM, Michael Ellerman wrote: On Wed, 2014-06-25 at 21:34 +0400, Denis Kirjanov wrote: We have to return the boolean here if the tag presents or not, not just ANDing the TCI with the mask which results to: [ 709.412097] test_bpf: #18 LD_VLAN_TAG_PRESENT [ 709.412245] ret

[PATCH] perf/powerpc: reset event hw state when adding it to the PMU

2014-06-26 Thread Alexandru-Cezar Sardan
When adding an event to the PMU with PERF_EF_START the STOPPED and UPTODATE flags need to be cleared in the hw.event status variable because they are preventing the update of the event count on overflow interrupt. Signed-off-by: Alexandru-Cezar Sardan alexandru.sar...@freescale.com ---

Re: [PATCH 0/3] Prepare for in-kernel VFIO DMA operations acceleration

2014-06-26 Thread Alexander Graf
On 26.06.14 01:59, Alexey Kardashevskiy wrote: On 06/26/2014 07:12 AM, Alexander Graf wrote: On 06.06.14 02:20, Alexey Kardashevskiy wrote: On 06/05/2014 09:57 PM, Alexander Graf wrote: On 05.06.14 09:25, Alexey Kardashevskiy wrote: This reserves 2 capability numbers. This implements an

Re: [RFC PATCH v2 6/6] mmc: core: add manual resume capability

2014-06-26 Thread Ulf Hansson
On 26 juni 2014 08:23:32 CEST, Vincent Yang vincent.yang.fuji...@gmail.com wrote: This patch adds manual resume for some embedded platforms with rootfs stored in SD card. It references CONFIG_MMC_BLOCK_DEFERRED_RESUME in kernel 3.10. It lets host controller driver to manually handle resume by

Re: [RFC PATCH v2 4/6] mmc: sdhci: host: add new f_sdh30

2014-06-26 Thread Mark Rutland
On Thu, Jun 26, 2014 at 07:23:30AM +0100, Vincent Yang wrote: This patch adds new host controller driver for Fujitsu SDHCI controller f_sdh30. Signed-off-by: Vincent Yang vincent.y...@tw.fujitsu.com --- .../devicetree/bindings/mmc/sdhci-fujitsu.txt | 35 +++ drivers/mmc/host/Kconfig

Re: [PATCH v2 2/2] powerpc: bpf: Fix the broken LD_VLAN_TAG_PRESENT test

2014-06-26 Thread Denis Kirjanov
On 6/26/14, Michael Ellerman m...@ellerman.id.au wrote: On Wed, 2014-06-25 at 21:34 +0400, Denis Kirjanov wrote: We have to return the boolean here if the tag presents or not, not just ANDing the TCI with the mask which results to: [ 709.412097] test_bpf: #18 LD_VLAN_TAG_PRESENT [

Re: [PATCH 2/9] drivers: base: support cpu cache information interface to userspace via sysfs

2014-06-26 Thread Sudeep Holla
Hi, On 25/06/14 23:23, Russell King - ARM Linux wrote: On Wed, Jun 25, 2014 at 06:30:37PM +0100, Sudeep Holla wrote: + coherency_line_size: the minimum amount of data that gets transferred So, what value to do envision this taking for a CPU where the cache line size is 32

Re: [PATCH 2/9] drivers: base: support cpu cache information interface to userspace via sysfs

2014-06-26 Thread Russell King - ARM Linux
On Thu, Jun 26, 2014 at 07:41:32PM +0100, Sudeep Holla wrote: Hi, On 25/06/14 23:23, Russell King - ARM Linux wrote: On Wed, Jun 25, 2014 at 06:30:37PM +0100, Sudeep Holla wrote: + coherency_line_size: the minimum amount of data that gets transferred So, what value to do

Re: [PATCH 2/9] drivers: base: support cpu cache information interface to userspace via sysfs

2014-06-26 Thread Sudeep Holla
On 26/06/14 19:50, Russell King - ARM Linux wrote: On Thu, Jun 26, 2014 at 07:41:32PM +0100, Sudeep Holla wrote: Hi, On 25/06/14 23:23, Russell King - ARM Linux wrote: On Wed, Jun 25, 2014 at 06:30:37PM +0100, Sudeep Holla wrote: + coherency_line_size: the minimum amount of

Re: OF_DYNAMIC node lifecycle

2014-06-26 Thread Nathan Fontenot
On 06/25/2014 03:22 PM, Grant Likely wrote: On Tue, 24 Jun 2014 15:07:05 -0500, Nathan Fontenot nf...@austin.ibm.com wrote: On 06/23/2014 09:58 AM, Grant Likely wrote: On Thu, 19 Jun 2014 11:33:20 +0300, Pantelis Antoniou pantelis.anton...@konsulko.com wrote: Hi Grant, CCing Thomas

Re: OF_DYNAMIC node lifecycle

2014-06-26 Thread Nathan Fontenot
On 06/25/2014 03:24 PM, Grant Likely wrote: On Tue, 24 Jun 2014 15:10:55 -0500, Nathan Fontenot nf...@austin.ibm.com wrote: On 06/23/2014 09:48 AM, Grant Likely wrote: On Thu, 19 Jun 2014 10:26:15 -0500, Nathan Fontenot nf...@austin.ibm.com wrote: On 06/18/2014 03:07 PM, Grant Likely

Re: powerpc: crash with 3.16.0-rc2

2014-06-26 Thread Sukadev Bhattiprolu
Michael Ellerman [m...@ellerman.id.au] wrote: | A patch from Michael Ellerman was just merged : | | powerpc/powernv: Remove OPAL v1 takeover | | I think it fixes the problem you are seeing. | | Yes it should. It does fix the problem. ___

Re: BookE branch taken behavior vis-a-vis updating the NIP register

2014-06-26 Thread Sakthi
pegasus, Were you able to achieve the intended behavior with any of the suggested RFC patch? Thanks! pegasus wrote I re-read the link you posted earlier and this time it made more sense to me. The kind of questions which are coming into my mind were being discussed. So, off I went and

Re: [RFC PATCH v2 6/6] mmc: core: add manual resume capability

2014-06-26 Thread Vincent Yang
2014-06-26 17:42 GMT+08:00 Ulf Hansson ulf.hans...@linaro.org: On 26 juni 2014 08:23:32 CEST, Vincent Yang vincent.yang.fuji...@gmail.com wrote: This patch adds manual resume for some embedded platforms with rootfs stored in SD card. It references CONFIG_MMC_BLOCK_DEFERRED_RESUME in kernel

Re: [RFC PATCH v2 4/6] mmc: sdhci: host: add new f_sdh30

2014-06-26 Thread Vincent Yang
2014-06-26 19:03 GMT+08:00 Mark Rutland mark.rutl...@arm.com: On Thu, Jun 26, 2014 at 07:23:30AM +0100, Vincent Yang wrote: This patch adds new host controller driver for Fujitsu SDHCI controller f_sdh30. Signed-off-by: Vincent Yang vincent.y...@tw.fujitsu.com ---

Re: [PATCH v2 2/2] powerpc: bpf: Fix the broken LD_VLAN_TAG_PRESENT test

2014-06-26 Thread Michael Ellerman
On Thu, 2014-06-26 at 10:36 +0200, Daniel Borkmann wrote: On 06/26/2014 10:30 AM, Michael Ellerman wrote: On Wed, 2014-06-25 at 21:34 +0400, Denis Kirjanov wrote: We have to return the boolean here if the tag presents or not, not just ANDing the TCI with the mask which results to: [