All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] tmio/sdhi: use max sd_buf size & clean header file before
@ 2017-06-30 10:56 Wolfram Sang
  2017-06-30 10:56 ` [PATCH 1/4] mmc: tmio: remove obsolete TMIO_BBS Wolfram Sang
                   ` (5 more replies)
  0 siblings, 6 replies; 15+ messages in thread
From: Wolfram Sang @ 2017-06-30 10:56 UTC (permalink / raw)
  To: linux-mmc
  Cc: linux-renesas-soc, Simon Horman, Yoshihiro Shimoda, Wolfram Sang

From: Wolfram Sang <wsa@the-dreams.de>

The main patch is patch 4 which uses the maximum sd_buf size, i.e. 32 bit on
Gen2 and 64 bit on Gen3. Instead of a new flag, we use the bus_shift
information we already have. See the patch description for details.

Before fixing this, I wanted to remove a magic value in that function which is
done in patch 3.

When adding the new define, I noticed that some description is missing in the
header which is fixed with patch 2.

When adding the description, I noticed this meanwhile obsolete define which
gets removed in patch 1.

That's the way it went :)

Tested on Salvator-X/M3-W and Lager/H2.

Regards,

   Wolfram

Wolfram Sang (4):
  mmc: tmio: remove obsolete TMIO_BBS
  mmc: tmio: add references to bit defines in the header
  mmc: tmio: no magic values when enabling DMA
  mmc: sdhi: use maximum width for the sdbuf register

 drivers/mmc/host/renesas_sdhi_core.c | 5 ++---
 drivers/mmc/host/tmio_mmc.h          | 7 +++++--
 2 files changed, 7 insertions(+), 5 deletions(-)

-- 
2.11.0

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [PATCH 1/4] mmc: tmio: remove obsolete TMIO_BBS
  2017-06-30 10:56 [PATCH 0/4] tmio/sdhi: use max sd_buf size & clean header file before Wolfram Sang
@ 2017-06-30 10:56 ` Wolfram Sang
  2017-06-30 11:30   ` Geert Uytterhoeven
  2017-06-30 10:56 ` [PATCH 2/4] mmc: tmio: add references to bit defines in the header Wolfram Sang
                   ` (4 subsequent siblings)
  5 siblings, 1 reply; 15+ messages in thread
From: Wolfram Sang @ 2017-06-30 10:56 UTC (permalink / raw)
  To: linux-mmc
  Cc: linux-renesas-soc, Simon Horman, Yoshihiro Shimoda, Wolfram Sang

Since commit 10c7fcbd0f00a0 ("ARM: shmobile: sh7372: Remove ZBOOT
MMC/SDHI support"), this define is not needed anymore.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
 drivers/mmc/host/tmio_mmc.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/mmc/host/tmio_mmc.h b/drivers/mmc/host/tmio_mmc.h
index 2479f8e12faf5e..b161dfadfec25d 100644
--- a/drivers/mmc/host/tmio_mmc.h
+++ b/drivers/mmc/host/tmio_mmc.h
@@ -87,8 +87,6 @@
 #define CARD_OPT_WIDTH8		BIT(13)
 #define CARD_OPT_WIDTH		BIT(15)
 
-#define TMIO_BBS		512		/* Boot block size */
-
 /* Definitions for values the CTL_SDIO_STATUS register can take */
 #define TMIO_SDIO_STAT_IOIRQ	0x0001
 #define TMIO_SDIO_STAT_EXPUB52	0x4000
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 2/4] mmc: tmio: add references to bit defines in the header
  2017-06-30 10:56 [PATCH 0/4] tmio/sdhi: use max sd_buf size & clean header file before Wolfram Sang
  2017-06-30 10:56 ` [PATCH 1/4] mmc: tmio: remove obsolete TMIO_BBS Wolfram Sang
@ 2017-06-30 10:56 ` Wolfram Sang
  2017-06-30 10:56 ` [PATCH 3/4] mmc: tmio: no magic values when enabling DMA Wolfram Sang
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 15+ messages in thread
From: Wolfram Sang @ 2017-06-30 10:56 UTC (permalink / raw)
  To: linux-mmc
  Cc: linux-renesas-soc, Simon Horman, Yoshihiro Shimoda, Wolfram Sang

When defining bits, make sure we always have a reference to the register
they belong to. For now, renaming all bits properly seems too intrusive,
so at least make sure we have proper documentation.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
 drivers/mmc/host/tmio_mmc.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/mmc/host/tmio_mmc.h b/drivers/mmc/host/tmio_mmc.h
index b161dfadfec25d..e3e96178acaab4 100644
--- a/drivers/mmc/host/tmio_mmc.h
+++ b/drivers/mmc/host/tmio_mmc.h
@@ -81,9 +81,11 @@
 #define TMIO_STAT_CMD_BUSY      BIT(30)
 #define TMIO_STAT_ILL_ACCESS    BIT(31)
 
+/* Definitions for values the CTL_SD_CARD_CLK_CTL register can take */
 #define	CLK_CTL_DIV_MASK	0xff
 #define	CLK_CTL_SCLKEN		BIT(8)
 
+/* Definitions for values the CTL_SD_MEM_CARD_OPT register can take */
 #define CARD_OPT_WIDTH8		BIT(13)
 #define CARD_OPT_WIDTH		BIT(15)
 
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 3/4] mmc: tmio: no magic values when enabling DMA
  2017-06-30 10:56 [PATCH 0/4] tmio/sdhi: use max sd_buf size & clean header file before Wolfram Sang
  2017-06-30 10:56 ` [PATCH 1/4] mmc: tmio: remove obsolete TMIO_BBS Wolfram Sang
  2017-06-30 10:56 ` [PATCH 2/4] mmc: tmio: add references to bit defines in the header Wolfram Sang
@ 2017-06-30 10:56 ` Wolfram Sang
  2017-06-30 10:56 ` [PATCH 4/4] mmc: sdhi: use maximum width for the sdbuf register Wolfram Sang
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 15+ messages in thread
From: Wolfram Sang @ 2017-06-30 10:56 UTC (permalink / raw)
  To: linux-mmc
  Cc: linux-renesas-soc, Simon Horman, Yoshihiro Shimoda, Wolfram Sang

Use a proper define.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
 drivers/mmc/host/renesas_sdhi_core.c | 2 +-
 drivers/mmc/host/tmio_mmc.h          | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/mmc/host/renesas_sdhi_core.c b/drivers/mmc/host/renesas_sdhi_core.c
index be806d3e9afeec..dd215723fa4312 100644
--- a/drivers/mmc/host/renesas_sdhi_core.c
+++ b/drivers/mmc/host/renesas_sdhi_core.c
@@ -459,7 +459,7 @@ static int renesas_sdhi_multi_io_quirk(struct mmc_card *card,
 
 static void renesas_sdhi_enable_dma(struct tmio_mmc_host *host, bool enable)
 {
-	sd_ctrl_write16(host, CTL_DMA_ENABLE, enable ? 2 : 0);
+	sd_ctrl_write16(host, CTL_DMA_ENABLE, enable ? DMA_ENABLE_DMASDRW : 0);
 
 	/* enable 32bit access if DMA mode if possibile */
 	renesas_sdhi_sdbuf_width(host, enable ? 32 : 16);
diff --git a/drivers/mmc/host/tmio_mmc.h b/drivers/mmc/host/tmio_mmc.h
index e3e96178acaab4..3e6ff892144034 100644
--- a/drivers/mmc/host/tmio_mmc.h
+++ b/drivers/mmc/host/tmio_mmc.h
@@ -97,6 +97,9 @@
 
 #define TMIO_SDIO_SETBITS_MASK	0x0006
 
+/* Definitions for values the CTL_DMA_ENABLE register can take */
+#define DMA_ENABLE_DMASDRW	BIT(1)
+
 /* Define some IRQ masks */
 /* This is the mask used at reset by the chip */
 #define TMIO_MASK_ALL           0x837f031d
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 4/4] mmc: sdhi: use maximum width for the sdbuf register
  2017-06-30 10:56 [PATCH 0/4] tmio/sdhi: use max sd_buf size & clean header file before Wolfram Sang
                   ` (2 preceding siblings ...)
  2017-06-30 10:56 ` [PATCH 3/4] mmc: tmio: no magic values when enabling DMA Wolfram Sang
@ 2017-06-30 10:56 ` Wolfram Sang
       [not found]   ` <TY1PR06MB07023DF77FC5A4453B09D82AB7B00@TY1PR06MB0702.apcprd06.prod.outlook.com>
  2017-07-11 14:43 ` [PATCH 0/4] tmio/sdhi: use max sd_buf size & clean header file before Ulf Hansson
       [not found] ` <TY1PR06MB07025EC75F78AF0092E15134B7B00@TY1PR06MB0702.apcprd06.prod.outlook.com>
  5 siblings, 1 reply; 15+ messages in thread
From: Wolfram Sang @ 2017-06-30 10:56 UTC (permalink / raw)
  To: linux-mmc
  Cc: linux-renesas-soc, Simon Horman, Yoshihiro Shimoda, Wolfram Sang

We can derive the sd_buf width from the bus_shift parameter which tells
us how far registers are apart. Remove the obvious comment, too.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
 drivers/mmc/host/renesas_sdhi_core.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/mmc/host/renesas_sdhi_core.c b/drivers/mmc/host/renesas_sdhi_core.c
index dd215723fa4312..48da28dfef6465 100644
--- a/drivers/mmc/host/renesas_sdhi_core.c
+++ b/drivers/mmc/host/renesas_sdhi_core.c
@@ -461,8 +461,7 @@ static void renesas_sdhi_enable_dma(struct tmio_mmc_host *host, bool enable)
 {
 	sd_ctrl_write16(host, CTL_DMA_ENABLE, enable ? DMA_ENABLE_DMASDRW : 0);
 
-	/* enable 32bit access if DMA mode if possibile */
-	renesas_sdhi_sdbuf_width(host, enable ? 32 : 16);
+	renesas_sdhi_sdbuf_width(host, enable ? (16 << host->bus_shift) : 16);
 }
 
 int renesas_sdhi_probe(struct platform_device *pdev,
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* Re: [PATCH 1/4] mmc: tmio: remove obsolete TMIO_BBS
  2017-06-30 10:56 ` [PATCH 1/4] mmc: tmio: remove obsolete TMIO_BBS Wolfram Sang
@ 2017-06-30 11:30   ` Geert Uytterhoeven
  0 siblings, 0 replies; 15+ messages in thread
From: Geert Uytterhoeven @ 2017-06-30 11:30 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: Linux MMC List, Linux-Renesas, Simon Horman, Yoshihiro Shimoda

On Fri, Jun 30, 2017 at 12:56 PM, Wolfram Sang
<wsa+renesas@sang-engineering.com> wrote:
> Since commit 10c7fcbd0f00a0 ("ARM: shmobile: sh7372: Remove ZBOOT
> MMC/SDHI support"), this define is not needed anymore.
>
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 0/4] tmio/sdhi: use max sd_buf size & clean header file before
  2017-06-30 10:56 [PATCH 0/4] tmio/sdhi: use max sd_buf size & clean header file before Wolfram Sang
                   ` (3 preceding siblings ...)
  2017-06-30 10:56 ` [PATCH 4/4] mmc: sdhi: use maximum width for the sdbuf register Wolfram Sang
@ 2017-07-11 14:43 ` Ulf Hansson
       [not found] ` <TY1PR06MB07025EC75F78AF0092E15134B7B00@TY1PR06MB0702.apcprd06.prod.outlook.com>
  5 siblings, 0 replies; 15+ messages in thread
From: Ulf Hansson @ 2017-07-11 14:43 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: linux-mmc, Linux-Renesas, Simon Horman, Yoshihiro Shimoda, Wolfram Sang

On 30 June 2017 at 12:56, Wolfram Sang <wsa+renesas@sang-engineering.com> wrote:
> From: Wolfram Sang <wsa@the-dreams.de>
>
> The main patch is patch 4 which uses the maximum sd_buf size, i.e. 32 bit on
> Gen2 and 64 bit on Gen3. Instead of a new flag, we use the bus_shift
> information we already have. See the patch description for details.
>
> Before fixing this, I wanted to remove a magic value in that function which is
> done in patch 3.
>
> When adding the new define, I noticed that some description is missing in the
> header which is fixed with patch 2.
>
> When adding the description, I noticed this meanwhile obsolete define which
> gets removed in patch 1.
>
> That's the way it went :)
>
> Tested on Salvator-X/M3-W and Lager/H2.

Thanks, applied for next!

Kind regards
Uffe

>
> Regards,
>
>    Wolfram
>
> Wolfram Sang (4):
>   mmc: tmio: remove obsolete TMIO_BBS
>   mmc: tmio: add references to bit defines in the header
>   mmc: tmio: no magic values when enabling DMA
>   mmc: sdhi: use maximum width for the sdbuf register
>
>  drivers/mmc/host/renesas_sdhi_core.c | 5 ++---
>  drivers/mmc/host/tmio_mmc.h          | 7 +++++--
>  2 files changed, 7 insertions(+), 5 deletions(-)
>
> --
> 2.11.0
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: [PATCH 4/4] mmc: sdhi: use maximum width for the sdbuf register
       [not found]   ` <TY1PR06MB07023DF77FC5A4453B09D82AB7B00@TY1PR06MB0702.apcprd06.prod.outlook.com>
@ 2017-08-02 14:40     ` Biju Das
  2017-08-02 19:04       ` Wolfram Sang
  0 siblings, 1 reply; 15+ messages in thread
From: Biju Das @ 2017-08-02 14:40 UTC (permalink / raw)
  To: Wolfram Sang, linux-renesas-soc, Simon Horman, Yoshihiro Shimoda
  Cc: linux-mmc-owner

[-- Attachment #1: Type: text/plain, Size: 3395 bytes --]

Hi,

I am having issues with this patch(commitid:-785b215250310c690142abb1bdbb0767b8487c49)
on iWave RZ/G1M board which is identical to R-Car M2.

Getting below SDHI1 errors during boot. The issue is fixed by reverting this patch.

[   11.846211] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD51)
[   11.906243] mmc2: error -110 whilst initialising SD card
[   17.046328] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[   22.166212] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[   27.286205] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[   32.406204] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
   37.526209] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD55)
[   42.646206] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD55)
[   47.766203] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD55)
[   52.886204] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD55)
[   58.086208] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD52)
[   63.206204] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[   68.326205] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[   73.446204] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)

I am attaching the logs here with.

Regards,
Biju




> -----Original Message-----
> From: linux-mmc-owner@vger.kernel.org [mailto:linux-mmc-
> owner@vger.kernel.org] On Behalf Of Wolfram Sang
> Sent: 30 June 2017 11:57
> To: linux-mmc@vger.kernel.org
> Cc: linux-renesas-soc@vger.kernel.org; Simon Horman <horms@verge.net.au>;
> Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>; Wolfram Sang
> <wsa+renesas@sang-engineering.com>
> Subject: [PATCH 4/4] mmc: sdhi: use maximum width for the sdbuf register
>
> We can derive the sd_buf width from the bus_shift parameter which tells us
> how far registers are apart. Remove the obvious comment, too.
>
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
> ---
>  drivers/mmc/host/renesas_sdhi_core.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/mmc/host/renesas_sdhi_core.c
> b/drivers/mmc/host/renesas_sdhi_core.c
> index dd215723fa4312..48da28dfef6465 100644
> --- a/drivers/mmc/host/renesas_sdhi_core.c
> +++ b/drivers/mmc/host/renesas_sdhi_core.c
> @@ -461,8 +461,7 @@ static void renesas_sdhi_enable_dma(struct
> tmio_mmc_host *host, bool enable)  {
>  sd_ctrl_write16(host, CTL_DMA_ENABLE, enable ?
> DMA_ENABLE_DMASDRW : 0);
>
> -/* enable 32bit access if DMA mode if possibile */
> -renesas_sdhi_sdbuf_width(host, enable ? 32 : 16);
> +renesas_sdhi_sdbuf_width(host, enable ? (16 << host->bus_shift) : 16);
>  }
>
>  int renesas_sdhi_probe(struct platform_device *pdev,
> --
> 2.11.0
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body
> of a message to majordomo@vger.kernel.org More majordomo info at
> http://vger.kernel.org/majordomo-info.html



Renesas Electronics Europe Ltd, Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, UK. Registered in England & Wales under Registered No. 04586709.

[-- Attachment #2: Sdhi1-issue.txt --]
[-- Type: text/plain, Size: 18465 bytes --]

iW-RainboW-G20M SPI_LOADER(DDR3) V0.20 2015.07.16
 DEVICE SST25VF016B


U-Boot 2013.01.01 (Nov 04 2016 - 22:21:05)

CPU: Renesas Electronics R8A7743 rev 3.0
CPU: Temperature 40 C
Board: RZ/G1M iW-RainboW-G20M-Q7

DRAM:  1 GiB
MMC:   sh-sdhi: 0, sh-sdhi: 1, sh_mmcif: 2
SF: Detected SST25VF016B with page size 4 KiB, total 2 MiB
In:    serial
Out:   serial
Err:   serial

Board Info:
        BSP Version     : iW-PREWZ-SC-01-R3.0-REL2.0-Linux3.10.31
        SOM Version     : iW-PREWZ-AP-01-R3.0

Net:   ether_avb
Hit any key to stop autoboot:  0
Could not get PHY for ether_avb:0
Could not get PHY for ether_avb:1
Could not get PHY for ether_avb:2
PHY detected at addr 3
ether_avb Waiting for PHY auto negotiation to complete. done
ether_avb: 1000Base /Full
Using ether_avb device
TFTP from server 192.168.1.30; our IP address is 192.168.1.32
Filename '/RZ-G1M/boot/uImage'.
Load address: 0x40007fc0
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ##################################
         2.9 MiB/s
done
Bytes transferred = 4164712 (3f8c68 hex)
Could not get PHY for ether_avb:0
Could not get PHY for ether_avb:1
Could not get PHY for ether_avb:2
ether_avb:3 is connected to ether_avb.  Reconnecting to ether_avb
PHY detected at addr 3
ether_avb Waiting for PHY auto negotiation to complete.. done
ether_avb: 1000Base /Full
Using ether_avb device
TFTP from server 192.168.1.30; our IP address is 192.168.1.32
Filename '/RZ-G1M/boot/dtb'.
Load address: 0x40f00000
Loading: T ####
         3.9 KiB/s
done
Bytes transferred = 20292 (4f44 hex)
## Booting kernel from Legacy Image at 40007fc0 ...
   Image Name:   Linux-4.13.0-rc2-next-20170727-0
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4164648 Bytes = 4 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 40f00000
   Booting using the fdt blob at 0x40f00000
   XIP Kernel Image ... OK
OK
   Loading Device Tree to 410f8000, end 410fff43 ... OK
Unable to update property <NULL>:mac-address, err=FDT_ERR_BADPATH
Unable to update property <NULL>:local-mac-address, err=FDT_ERR_BADPATH
Unable to update property /iwg20m_q7_common:vin2-ov5640, err=FDT_ERR_NOTFOUND

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.0-rc2-next-20170727-00035-g8b0f274 (biju@be1yocto) (gcc version 5.2.1 20151005 (Linaro GCC 5.2-2015.11-2)) #13 SMP Wed Aug 2 15:15:12 BST 2017
[    0.000000] CPU: ARMv7 Processor [413fc0f2] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: iWave Systems RainboW-G20D-Qseven board based on RZ/G1M
[    0.000000] OF: fdt: Ignoring memory block 0x200000000 - 0x220000000
[    0.000000] debug: ignoring loglevel setting.
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 256 MiB at 0x50000000
[    0.000000] cma: Reserved 64 MiB at 0x4c000000
[    0.000000] On node 0 totalpages: 131072
[    0.000000] free_area_init_node: node 0, pgdat c0b73e40, node_mem_map cbb59000
[    0.000000]   Normal zone: 1024 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 131072 pages, LIFO batch:31
[    0.000000] percpu: Embedded 15 pages/cpu @cbb2d000 s38272 r0 d23168 u61440
[    0.000000] pcpu-alloc: s38272 r0 d23168 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttySC0,115200n8 ignore_loglevel vmalloc=384M /dev/nfs rw nfsroot=192.168.1.30:/tftpboot/RZ-G1M ip=192.168.1.32
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 180184K/524288K available (7168K kernel code, 488K rwdata, 1752K rodata, 1024K init, 297K bss, 16424K reserved, 327680K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0800000   (8160 kB)
[    0.000000]       .init : 0xc0a00000 - 0xc0b00000   (1024 kB)
[    0.000000]       .data : 0xc0b00000 - 0xc0b7a018   ( 489 kB)
[    0.000000]        .bss : 0xc0b804f4 - 0xc0bcab44   ( 298 kB)
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU event tracing is enabled.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 10.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns
[    0.000004] sched_clock: 56 bits at 10MHz, resolution 100ns, wraps every 4398046511100ns
[    0.000013] Switching to timer-based delay loop, resolution 100ns
[    0.000367] Console: colour dummy device 80x30
[    0.000386] Calibrating delay loop (skipped), value calculated using timer frequency.. 20.00 BogoMIPS (lpj=100000)
[    0.000399] pid_max: default: 32768 minimum: 301
[    0.000483] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000492] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000934] CPU: Testing write buffer coherency: ok
[    0.001111] CPU0: update cpu_capacity 1024
[    0.001119] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.001754] Setting up static identity map for 0x40100000 - 0x40100060
[    0.001829] Hierarchical SRCU implementation.
[    0.002029] Detected Renesas RZ/G r8a7743 ES3.0
[    0.002241] smp: Bringing up secondary CPUs ...
[    0.003350] CPU1: update cpu_capacity 1024
[    0.003357] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.003468] smp: Brought up 1 node, 2 CPUs
[    0.003482] SMP: Total of 2 processors activated (40.00 BogoMIPS).
[    0.003489] CPU: All CPU(s) started in SVC mode.
[    0.004323] devtmpfs: initialized
[    0.007196] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
[    0.007393] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007406] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.011726] pinctrl core: initialized pinctrl subsystem
[    0.012448] random: get_random_u32 called from bucket_table_alloc+0x1cc/0x22c with crng_init=0
[    0.012513] NET: Registered protocol family 16
[    0.012527] random: fast init done
[    0.013485] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.014347] No ATAGs?
[    0.014437] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.014447] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.017602] sh-pfc e6060000.pin-controller: r8a77430_pfc support registered
[    0.032829] vgaarb: loaded
[    0.033086] SCSI subsystem initialized
[    0.033384] libata version 3.00 loaded.
[    0.033543] usbcore: registered new interface driver usbfs
[    0.033579] usbcore: registered new interface driver hub
[    0.033625] usbcore: registered new device driver usb
[    0.033965] media: Linux media interface: v0.10
[    0.033997] Linux video capture interface: v2.00
[    0.034029] pps_core: LinuxPPS API ver. 1 registered
[    0.034035] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.034053] PTP clock support registered
[    0.034510] Advanced Linux Sound Architecture Driver Initialized.
[    0.036207] clocksource: Switched to clocksource arch_sys_counter
[    0.074429] NET: Registered protocol family 2
[    0.074818] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.074845] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.074891] TCP: Hash tables configured (established 4096 bind 4096)
[    0.074941] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.074957] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.075051] NET: Registered protocol family 1
[    0.075333] RPC: Registered named UNIX socket transport module.
[    0.075341] RPC: Registered udp transport module.
[    0.075347] RPC: Registered tcp transport module.
[    0.075352] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.075363] PCI: CLS 0 bytes, default 64
[    0.076755] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.077121] NFS: Registering the id_resolver key type
[    0.077143] Key type id_resolver registered
[    0.077149] Key type id_legacy registered
[    0.077164] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.077172] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.078621] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.078633] io scheduler noop registered
[    0.078639] io scheduler deadline registered
[    0.078662] io scheduler cfq registered (default)
[    0.078669] io scheduler mq-deadline registered
[    0.078676] io scheduler kyber registered
[    0.080030] gpio_rcar e6050000.gpio: driving 32 GPIOs
[    0.080934] gpio_rcar e6051000.gpio: driving 26 GPIOs
[    0.081884] gpio_rcar e6052000.gpio: driving 32 GPIOs
[    0.082847] gpio_rcar e6053000.gpio: driving 32 GPIOs
[    0.083838] gpio_rcar e6054000.gpio: driving 32 GPIOs
[    0.084882] gpio_rcar e6055000.gpio: driving 32 GPIOs
[    0.085825] gpio_rcar e6055400.gpio: driving 32 GPIOs
[    0.086753] gpio_rcar e6055800.gpio: driving 26 GPIOs
[    0.093124] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.094076] SuperH (H)SCI(F) driver initialized
[    0.094541] e6e60000.serial: ttySC0 at MMIO 0xe6e60000 (irq = 72, base_baud = 0) is a scif
[    0.803069] console [ttySC0] enabled
[    0.808391] libphy: Fixed MDIO Bus: probed
[    0.812873] CAN device driver interface
[    0.818230] ravb e6800000.ethernet: no valid MAC address supplied, using a random one
[    0.826154] libphy: ravb_mii: probed
[    0.830721] ravb e6800000.ethernet eth0: Base address at 0xe6800000, 9e:3d:3e:3b:51:c5, IRQ 73.
[    0.839601] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.846124] ehci-pci: EHCI PCI platform driver
[    0.850610] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.856811] ohci-pci: OHCI PCI platform driver
[    0.861746] udc-core: couldn't find an available UDC - added [g_ether] to list of pending drivers
[    0.870911] i2c /dev entries driver
[    0.876010] bq32k 2-0068: rtc core: registered bq32k as rtc0
[    0.881749] i2c-rcar e6530000.i2c: probed
[    0.888176] sh_mobile_sdhi ee100000.sd: Got CD GPIO
[    1.006391] sh_mobile_sdhi ee100000.sd: mmc0 base at 0xee100000 max clock rate 195 MHz
[    1.014788] sh_mobile_sdhi ee140000.sd: Got CD GPIO
[    1.019704] sh_mobile_sdhi ee140000.sd: Got WP GPIO
[    1.076233] sh_mmcif ee200000.mmc: Chip version 0x0003, clock rate 12MHz
[    1.083187] usbcore: registered new interface driver usbhid
[    1.088775] usbhid: USB HID core driver
[    1.093750] NET: Registered protocol family 10
[    1.098838] Segment Routing with IPv6
[    1.102543] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.108980] NET: Registered protocol family 17
[    1.113425] can: controller area network core (rev 20170425 abi 9)
[    1.119642] NET: Registered protocol family 29
[    1.124082] can: raw protocol (rev 20170425)
[    1.128355] can: broadcast manager protocol (rev 20170425 t)
[    1.134014] can: netlink gateway (rev 20170425) max_hops=1
[    1.139561] Key type dns_resolver registered
[    1.143946] Registering SWP/SWPB emulation handler
[    1.155210] renesas_irqc e61c0000.interrupt-controller: driving 10 irqs
[    1.163130] sh_mobile_sdhi ee140000.sd: Got CD GPIO
[    1.168052] sh_mobile_sdhi ee140000.sd: Got WP GPIO
[    1.286384] sh_mobile_sdhi ee140000.sd: mmc2 base at 0xee140000 max clock rate 97 MHz
[    1.294949] bq32k 2-0068: setting system clock to 2017-08-18 14:29:17 UTC (1503066557)
[    1.297337] mmc0: new high speed SDHC card at address aaaa
[    1.297708] mmcblk0: mmc0:aaaa SL16G 14.8 GiB
[    1.299858]  mmcblk0: p1 p2
[    1.420085] Micrel KSZ9031 Gigabit PHY e6800000.ethernet-ffffffff:03: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=e6800000.ethernet-ffffffff:03, irq=-1)
[    1.435796] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    1.605404] mmc1: new high speed MMC card at address 0001
[    1.611114] mmcblk1: mmc1:0001 MMC04G 3.52 GiB
[    1.615740] mmcblk1boot0: mmc1:0001 MMC04G partition 1 16.0 MiB
[    1.621770] mmcblk1boot1: mmc1:0001 MMC04G partition 2 16.0 MiB
[    1.629522]  mmcblk1: p1 p2
[    4.567723] ravb e6800000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[    4.586223] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    4.616255] IP-Config: Guessing netmask 255.255.255.0
[    4.621302] IP-Config: Complete:
[    4.624527]      device=eth0, hwaddr=9e:3d:3e:3b:51:c5, ipaddr=192.168.1.32, mask=255.255.255.0, gw=255.255.255.255
[    4.634971]      host=192.168.1.32, domain=, nis-domain=(none)
[    4.640807]      bootserver=255.255.255.255, rootserver=192.168.1.30, rootpath=
[    4.648391] ALSA device list:
[    4.651354]   No soundcards found.
[    4.659960] VFS: Mounted root (nfs filesystem) on device 0:14.
[    4.666090] devtmpfs: mounted
[    4.669711] Freeing unused kernel memory: 1024K
INIT: version 2.88 booting
Error opening /dev/fb0: No such file or directory
Starting udev
udev: Not using udev cache because of changes detected in the following files:
udev:     /proc/version /proc/cmdline /proc/devices
udev:     lib/udev/rules.d/* etc/udev/rules.d/*
udev: The udev cache will be regenerated. To identify the detected changes,
udev: compare the cached sysconf at   /etc/udev/cache.data
udev: against the current sysconf at  /dev/shm/udev.cache
[    5.133490] udevd[763]: starting version 182
[    5.921180] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[    5.931967] FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
bootlogd: cannot allocate pseudo tty: No such file or directory
Populating dev cache
ALSA: Restoring mixer settings...
/usr/sbin/alsactl: load_state:1735: No soundcards found...
INIT: Entering runlevel: 5
Configuring network interfaces... [    6.646390] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD51)
[    6.706477] mmc2: error -110 whilst initialising SD card
ifup skipped for nfsroot interface eth0
run-parts: /etc/network/if-pre-up.d/nfsroot exited with code 1
Starting Xserver
Starting system message bus: fbset: can't open '/dev/fb0': No such file or directory
Unknown username "xuser" in message bus configuration file
dbus.
Starting Connection Manager
[    7.091757] random: crng init done
PVRSRVKM_PARAMS=
Module pvrsrvkm failed to load. Retrying.
Running /sbin/depmod
depmod: ERROR: could not open directory /lib/modules/4.13.0-rc2-next-20170727-00035-g8b0f274: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
Starting Dropbear SSH server: dropbear.
Starting rpcbind daemon...done.
Starting advanced power management daemon: No APM support in kernel
(failed.)
Starting syslogd/klogd: done
 * Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon                       [ ok ]
Starting Telephony daemon
Starting Linux NFC daemon

Poky (Yocto Project Reference Distro) 2.0.1 iwave-g20m /dev/ttySC0

iwave-g20m login: root
root@iwave-g20m:~# [   11.846211] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD51)
[   11.906243] mmc2: error -110 whilst initialising SD card
[   17.046328] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[   22.166212] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[   27.286205] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[   32.406204] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
   37.526209] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD55)
[   42.646206] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD55)
[   47.766203] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD55)
[   52.886204] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD55)
[   58.086208] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD52)
[   63.206204] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[   68.326205] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[   73.446204] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)

[-- Attachment #3: sdhi1-working.txt --]
[-- Type: text/plain, Size: 17238 bytes --]

iW-RainboW-G20M SPI_LOADER(DDR3) V0.20 2015.07.16
 DEVICE SST25VF016B


U-Boot 2013.01.01 (Nov 04 2016 - 22:21:05)

CPU: Renesas Electronics R8A7743 rev 3.0
CPU: Temperature 50 C
Board: RZ/G1M iW-RainboW-G20M-Q7

DRAM:  1 GiB
MMC:   sh-sdhi: 0, sh-sdhi: 1, sh_mmcif: 2
SF: Detected SST25VF016B with page size 4 KiB, total 2 MiB
In:    serial
Out:   serial
Err:   serial

Board Info:
        BSP Version     : iW-PREWZ-SC-01-R3.0-REL2.0-Linux3.10.31
        SOM Version     : iW-PREWZ-AP-01-R3.0

Net:   ether_avb
Hit any key to stop autoboot:  0
Could not get PHY for ether_avb:0
Could not get PHY for ether_avb:1
Could not get PHY for ether_avb:2
PHY detected at addr 3
ether_avb Waiting for PHY auto negotiation to complete... done
ether_avb: 1000Base /Full
Using ether_avb device
TFTP from server 192.168.1.30; our IP address is 192.168.1.32
Filename '/RZ-G1M/boot/uImage'.
Load address: 0x40007fc0
Loading: T #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ##################################
         646.5 KiB/s
done
Bytes transferred = 4164744 (3f8c88 hex)
Could not get PHY for ether_avb:0
Could not get PHY for ether_avb:1
Could not get PHY for ether_avb:2
ether_avb:3 is connected to ether_avb.  Reconnecting to ether_avb
PHY detected at addr 3
ether_avb Waiting for PHY auto negotiation to complete.. done
ether_avb: 1000Base /Full
Using ether_avb device
TFTP from server 192.168.1.30; our IP address is 192.168.1.32
Filename '/RZ-G1M/boot/dtb'.
Load address: 0x40f00000
Loading: T ####
         3.9 KiB/s
done
Bytes transferred = 20292 (4f44 hex)
## Booting kernel from Legacy Image at 40007fc0 ...
   Image Name:   Linux-4.13.0-rc2-next-20170727-0
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4164680 Bytes = 4 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 40f00000
   Booting using the fdt blob at 0x40f00000
   XIP Kernel Image ... OK
OK
   Loading Device Tree to 410f8000, end 410fff43 ... OK
Unable to update property <NULL>:mac-address, err=FDT_ERR_BADPATH
Unable to update property <NULL>:local-mac-address, err=FDT_ERR_BADPATH
Unable to update property /iwg20m_q7_common:vin2-ov5640, err=FDT_ERR_NOTFOUND

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.0-rc2-next-20170727-00036-g92e95b03 (biju@be1yocto) (gcc version 5.2.1 20151005 (Linaro GCC 5.2-2015.11-2)) #14 SMP Wed Aug 2 15:18:42 BST 2017
[    0.000000] CPU: ARMv7 Processor [413fc0f2] revision 2 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: iWave Systems RainboW-G20D-Qseven board based on RZ/G1M
[    0.000000] OF: fdt: Ignoring memory block 0x200000000 - 0x220000000
[    0.000000] debug: ignoring loglevel setting.
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 256 MiB at 0x50000000
[    0.000000] cma: Reserved 64 MiB at 0x4c000000
[    0.000000] On node 0 totalpages: 131072
[    0.000000] free_area_init_node: node 0, pgdat c0b73e40, node_mem_map cbb59000
[    0.000000]   Normal zone: 1024 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 131072 pages, LIFO batch:31
[    0.000000] percpu: Embedded 15 pages/cpu @cbb2d000 s38272 r0 d23168 u61440
[    0.000000] pcpu-alloc: s38272 r0 d23168 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttySC0,115200n8 ignore_loglevel vmalloc=384M /dev/nfs rw nfsroot=192.168.1.30:/tftpboot/RZ-G1M ip=192.168.1.32
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 180184K/524288K available (7168K kernel code, 488K rwdata, 1752K rodata, 1024K init, 297K bss, 16424K reserved, 327680K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0800000   (8160 kB)
[    0.000000]       .init : 0xc0a00000 - 0xc0b00000   (1024 kB)
[    0.000000]       .data : 0xc0b00000 - 0xc0b7a018   ( 489 kB)
[    0.000000]        .bss : 0xc0b804f4 - 0xc0bcab44   ( 298 kB)
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU event tracing is enabled.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 10.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x24e6a1710, max_idle_ns: 440795202120 ns
[    0.000004] sched_clock: 56 bits at 10MHz, resolution 100ns, wraps every 4398046511100ns
[    0.000013] Switching to timer-based delay loop, resolution 100ns
[    0.000368] Console: colour dummy device 80x30
[    0.000389] Calibrating delay loop (skipped), value calculated using timer frequency.. 20.00 BogoMIPS (lpj=100000)
[    0.000401] pid_max: default: 32768 minimum: 301
[    0.000484] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000493] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000937] CPU: Testing write buffer coherency: ok
[    0.001116] CPU0: update cpu_capacity 1024
[    0.001124] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.001761] Setting up static identity map for 0x40100000 - 0x40100060
[    0.001835] Hierarchical SRCU implementation.
[    0.002033] Detected Renesas RZ/G r8a7743 ES3.0
[    0.002250] smp: Bringing up secondary CPUs ...
[    0.003359] CPU1: update cpu_capacity 1024
[    0.003365] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.003478] smp: Brought up 1 node, 2 CPUs
[    0.003491] SMP: Total of 2 processors activated (40.00 BogoMIPS).
[    0.003498] CPU: All CPU(s) started in SVC mode.
[    0.004330] devtmpfs: initialized
[    0.007206] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
[    0.007405] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007419] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.011724] pinctrl core: initialized pinctrl subsystem
[    0.012447] random: get_random_u32 called from bucket_table_alloc+0x1cc/0x22c with crng_init=0
[    0.012510] NET: Registered protocol family 16
[    0.012520] random: fast init done
[    0.013487] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.014339] No ATAGs?
[    0.014426] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.014435] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.017582] sh-pfc e6060000.pin-controller: r8a77430_pfc support registered
[    0.032749] vgaarb: loaded
[    0.032994] SCSI subsystem initialized
[    0.033301] libata version 3.00 loaded.
[    0.033464] usbcore: registered new interface driver usbfs
[    0.033501] usbcore: registered new interface driver hub
[    0.033546] usbcore: registered new device driver usb
[    0.033883] media: Linux media interface: v0.10
[    0.033916] Linux video capture interface: v2.00
[    0.033948] pps_core: LinuxPPS API ver. 1 registered
[    0.033954] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.033972] PTP clock support registered
[    0.034427] Advanced Linux Sound Architecture Driver Initialized.
[    0.036094] clocksource: Switched to clocksource arch_sys_counter
[    0.074132] NET: Registered protocol family 2
[    0.074516] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.074544] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.074590] TCP: Hash tables configured (established 4096 bind 4096)
[    0.074640] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.074656] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.074754] NET: Registered protocol family 1
[    0.075075] RPC: Registered named UNIX socket transport module.
[    0.075083] RPC: Registered udp transport module.
[    0.075089] RPC: Registered tcp transport module.
[    0.075095] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.075106] PCI: CLS 0 bytes, default 64
[    0.076552] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.076884] NFS: Registering the id_resolver key type
[    0.076904] Key type id_resolver registered
[    0.076911] Key type id_legacy registered
[    0.076926] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.076934] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    0.078390] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.078400] io scheduler noop registered
[    0.078407] io scheduler deadline registered
[    0.078431] io scheduler cfq registered (default)
[    0.078439] io scheduler mq-deadline registered
[    0.078446] io scheduler kyber registered
[    0.079792] gpio_rcar e6050000.gpio: driving 32 GPIOs
[    0.080675] gpio_rcar e6051000.gpio: driving 26 GPIOs
[    0.081629] gpio_rcar e6052000.gpio: driving 32 GPIOs
[    0.082600] gpio_rcar e6053000.gpio: driving 32 GPIOs
[    0.083589] gpio_rcar e6054000.gpio: driving 32 GPIOs
[    0.084628] gpio_rcar e6055000.gpio: driving 32 GPIOs
[    0.085574] gpio_rcar e6055400.gpio: driving 32 GPIOs
[    0.086482] gpio_rcar e6055800.gpio: driving 26 GPIOs
[    0.092923] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.093874] SuperH (H)SCI(F) driver initialized
[    0.094328] e6e60000.serial: ttySC0 at MMIO 0xe6e60000 (irq = 72, base_baud = 0) is a scif
[    0.803785] console [ttySC0] enabled
[    0.809097] libphy: Fixed MDIO Bus: probed
[    0.813586] CAN device driver interface
[    0.818939] ravb e6800000.ethernet: no valid MAC address supplied, using a random one
[    0.826879] libphy: ravb_mii: probed
[    0.831425] ravb e6800000.ethernet eth0: Base address at 0xe6800000, fa:5f:62:02:ee:07, IRQ 73.
[    0.840305] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.846840] ehci-pci: EHCI PCI platform driver
[    0.851314] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.857515] ohci-pci: OHCI PCI platform driver
[    0.862434] udc-core: couldn't find an available UDC - added [g_ether] to list of pending drivers
[    0.871603] i2c /dev entries driver
[    0.876743] bq32k 2-0068: rtc core: registered bq32k as rtc0
[    0.882454] i2c-rcar e6530000.i2c: probed
[    0.888876] sh_mobile_sdhi ee100000.sd: Got CD GPIO
[    1.006280] sh_mobile_sdhi ee100000.sd: mmc0 base at 0xee100000 max clock rate 195 MHz
[    1.014674] sh_mobile_sdhi ee140000.sd: Got CD GPIO
[    1.019586] sh_mobile_sdhi ee140000.sd: Got WP GPIO
[    1.076123] sh_mmcif ee200000.mmc: Chip version 0x0003, clock rate 12MHz
[    1.083081] usbcore: registered new interface driver usbhid
[    1.088668] usbhid: USB HID core driver
[    1.093644] NET: Registered protocol family 10
[    1.098818] Segment Routing with IPv6
[    1.102524] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.108963] NET: Registered protocol family 17
[    1.113409] can: controller area network core (rev 20170425 abi 9)
[    1.119627] NET: Registered protocol family 29
[    1.124068] can: raw protocol (rev 20170425)
[    1.128341] can: broadcast manager protocol (rev 20170425 t)
[    1.133999] can: netlink gateway (rev 20170425) max_hops=1
[    1.139550] Key type dns_resolver registered
[    1.143942] Registering SWP/SWPB emulation handler
[    1.155076] renesas_irqc e61c0000.interrupt-controller: driving 10 irqs
[    1.163034] sh_mobile_sdhi ee140000.sd: Got CD GPIO
[    1.167953] sh_mobile_sdhi ee140000.sd: Got WP GPIO
[    1.280708] mmc0: new high speed SDHC card at address aaaa
[    1.286305] sh_mobile_sdhi ee140000.sd: mmc2 base at 0xee140000 max clock rate 97 MHz
[    1.286573] mmcblk0: mmc0:aaaa SL16G 14.8 GiB
[    1.299374] bq32k 2-0068: setting system clock to 2017-08-18 14:37:12 UTC (1503067032)
[    1.308291]  mmcblk0: p1 p2
[    1.409957] Micrel KSZ9031 Gigabit PHY e6800000.ethernet-ffffffff:03: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=e6800000.ethernet-ffffffff:03, irq=-1)
[    1.425675] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    1.565649] mmc1: new high speed MMC card at address 0001
[    1.571349] mmcblk1: mmc1:0001 MMC04G 3.52 GiB
[    1.575965] mmcblk1boot0: mmc1:0001 MMC04G partition 1 16.0 MiB
[    1.583140] mmcblk1boot1: mmc1:0001 MMC04G partition 2 16.0 MiB
[    1.590894]  mmcblk1: p1 p2
[    1.602789] mmc2: new ultra high speed SDR50 SDHC card at address aaaa
[    1.609585] mmcblk2: mmc2:aaaa SL32G 29.7 GiB
[    1.619300]  mmcblk2: p1
[    6.647618] ravb e6800000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[    6.666117] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    6.696099] IP-Config: Guessing netmask 255.255.255.0
[    6.701168] IP-Config: Complete:
[    6.704395]      device=eth0, hwaddr=fa:5f:62:02:ee:07, ipaddr=192.168.1.32, mask=255.255.255.0, gw=255.255.255.255
[    6.714835]      host=192.168.1.32, domain=, nis-domain=(none)
[    6.720671]      bootserver=255.255.255.255, rootserver=192.168.1.30, rootpath=
[    6.728255] ALSA device list:
[    6.731219]   No soundcards found.
[    6.740364] VFS: Mounted root (nfs filesystem) on device 0:14.
[    6.746533] devtmpfs: mounted
[    6.750132] Freeing unused kernel memory: 1024K
INIT: version 2.88 booting
Error opening /dev/fb0: No such file or directory
Starting udev
udev: Not using udev cache because of changes detected in the following files:
udev:     /proc/version /proc/cmdline /proc/devices
udev:     lib/udev/rules.d/* etc/udev/rules.d/*
udev: The udev cache will be regenerated. To identify the detected changes,
udev: compare the cached sysconf at   /etc/udev/cache.data
udev: against the current sysconf at  /dev/shm/udev.cache
[    7.204386] udevd[768]: starting version 182
[    8.039434] FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[    8.059181] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
bootlogd: cannot allocate pseudo tty: No such file or directory
Populating dev cache
ALSA: Restoring mixer settings...
/usr/sbin/alsactl: load_state:1735: No soundcards found...
INIT: Entering runlevel: 5
Configuring network interfaces... ifup skipped for nfsroot interface eth0
run-parts: /etc/network/if-pre-up.d/nfsroot exited with code 1
Starting Xserver
Starting system message bus: fbset: can't open '/dev/fb0': No such file or directory
Unknown username "xuser" in message bus configuration file
dbus.
Starting Connection Manager
[    9.141554] random: crng init done
PVRSRVKM_PARAMS=
Module pvrsrvkm failed to load. Retrying.
Running /sbin/depmod
depmod: ERROR: could not open directory /lib/modules/4.13.0-rc2-next-20170727-00036-g92e95b03: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
Starting Dropbear SSH server: dropbear.
Starting rpcbind daemon...done.
Starting advanced power management daemon: No APM support in kernel
(failed.)
Starting syslogd/klogd: done
 * Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon                       [ ok ]
Starting Telephony daemon
Starting Linux NFC daemon

Poky (Yocto Project Reference Distro) 2.0.1 iwave-g20m /dev/ttySC0

iwave-g20m login: root
root@iwave-g20m:~#

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: [PATCH 0/4] tmio/sdhi: use max sd_buf size & clean header file before
       [not found] ` <TY1PR06MB07025EC75F78AF0092E15134B7B00@TY1PR06MB0702.apcprd06.prod.outlook.com>
@ 2017-08-02 15:07   ` Biju Das
  0 siblings, 0 replies; 15+ messages in thread
From: Biju Das @ 2017-08-02 15:07 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: linux-renesas-soc, Simon Horman, Yoshihiro Shimoda,
	linux-mmc-owner, Chris Paterson, Ulf Hansson

Hi,

I am having issues with this patch (commit id:-785b215250310c690142abb1bdbb0767b8487c49 " mmc: sdhi: use maximum width for the sdbuf register")
I am testing SDHI1 against linux-next-20170727 tag  with iWave RZ/G1M board which is identical to R-Car M2.

Getting below SDHI1 errors during boot. This issue is fixed by reverting this patch.

[   11.846211] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD51)
[   11.906243] mmc2: error -110 whilst initialising SD card
[   17.046328] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[   22.166212] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[   27.286205] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[   32.406204] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[   37.526209] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD55)
[   42.646206] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD55)
[   47.766203] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD55)
[   52.886204] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD55)
[   58.086208] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD52)
[   63.206204] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[   68.326205] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[   73.446204] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)

Regards,
Biju

> -----Original Message-----
> From: linux-mmc-owner@vger.kernel.org [mailto:linux-mmc-
> owner@vger.kernel.org] On Behalf Of Wolfram Sang
> Sent: 30 June 2017 11:57
> To: linux-mmc@vger.kernel.org
> Cc: linux-renesas-soc@vger.kernel.org; Simon Horman <horms@verge.net.au>;
> Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>; Wolfram Sang
> <wsa@the-dreams.de>
> Subject: [PATCH 0/4] tmio/sdhi: use max sd_buf size & clean header file before
>
> From: Wolfram Sang <wsa@the-dreams.de>
>
> The main patch is patch 4 which uses the maximum sd_buf size, i.e. 32 bit on
> Gen2 and 64 bit on Gen3. Instead of a new flag, we use the bus_shift
> information we already have. See the patch description for details.
>
> Before fixing this, I wanted to remove a magic value in that function which is
> done in patch 3.
>
> When adding the new define, I noticed that some description is missing in the
> header which is fixed with patch 2.
>
> When adding the description, I noticed this meanwhile obsolete define which
> gets removed in patch 1.
>
> That's the way it went :)
>
> Tested on Salvator-X/M3-W and Lager/H2.
>
> Regards,
>
>    Wolfram
>
> Wolfram Sang (4):
>   mmc: tmio: remove obsolete TMIO_BBS
>   mmc: tmio: add references to bit defines in the header
>   mmc: tmio: no magic values when enabling DMA
>   mmc: sdhi: use maximum width for the sdbuf register
>
>  drivers/mmc/host/renesas_sdhi_core.c | 5 ++---
>  drivers/mmc/host/tmio_mmc.h          | 7 +++++--
>  2 files changed, 7 insertions(+), 5 deletions(-)
>
> --
> 2.11.0
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body
> of a message to majordomo@vger.kernel.org More majordomo info at
> http://vger.kernel.org/majordomo-info.html



Renesas Electronics Europe Ltd, Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, UK. Registered in England & Wales under Registered No. 04586709.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 4/4] mmc: sdhi: use maximum width for the sdbuf register
  2017-08-02 14:40     ` Biju Das
@ 2017-08-02 19:04       ` Wolfram Sang
  2017-08-03  7:18         ` Biju Das
  0 siblings, 1 reply; 15+ messages in thread
From: Wolfram Sang @ 2017-08-02 19:04 UTC (permalink / raw)
  To: Biju Das
  Cc: Wolfram Sang, linux-renesas-soc, Simon Horman, Yoshihiro Shimoda,
	linux-mmc-owner

[-- Attachment #1: Type: text/plain, Size: 392 bytes --]


> I am having issues with this patch(commitid:-785b215250310c690142abb1bdbb0767b8487c49)
> on iWave RZ/G1M board which is identical to R-Car M2.

Uh, that's bad. Let's see, can you print out the bus_shift variable?

Like this

	pr_info("bus_width: %u\n", host->bus_shift);

before this line?

> > +renesas_sdhi_sdbuf_width(host, enable ? (16 << host->bus_shift) : 16);

Thanks,

   Wolfram


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: [PATCH 4/4] mmc: sdhi: use maximum width for the sdbuf register
  2017-08-02 19:04       ` Wolfram Sang
@ 2017-08-03  7:18         ` Biju Das
  2017-08-03  7:43           ` Wolfram Sang
  0 siblings, 1 reply; 15+ messages in thread
From: Biju Das @ 2017-08-03  7:18 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: Wolfram Sang, linux-renesas-soc, Simon Horman, Yoshihiro Shimoda,
	linux-mmc-owner

> -----Original Message-----
> From: Wolfram Sang [mailto:wsa@the-dreams.de]
> Sent: 02 August 2017 20:04
> To: Biju Das <biju.das@bp.renesas.com>
> Cc: Wolfram Sang <wsa+renesas@sang-engineering.com>; linux-renesas-
> soc@vger.kernel.org; Simon Horman <horms@verge.net.au>; Yoshihiro
> Shimoda <yoshihiro.shimoda.uh@renesas.com>; linux-mmc-
> owner@vger.kernel.org
> Subject: Re: [PATCH 4/4] mmc: sdhi: use maximum width for the sdbuf register
>
>
> > I am having issues with this patch(commitid:-
> 785b215250310c690142abb1bdbb0767b8487c49)
> > on iWave RZ/G1M board which is identical to R-Car M2.
>
> Uh, that's bad. Let's see, can you print out the bus_shift variable?
>
> Like this
>
> pr_info("bus_width: %u\n", host->bus_shift);
>

[    0.890105] sh_mobile_sdhi ee100000.sd: Got CD GPIO
[    0.945805] bus_width: 1
[    1.005912] sh_mobile_sdhi ee100000.sd: mmc0 base at 0xee100000 max clock rate 195 MHz
[    1.014299] sh_mobile_sdhi ee140000.sd: Got CD GPIO
[    1.019228] sh_mobile_sdhi ee140000.sd: Got WP GPIO
[    1.026753] bus_width: 1
[    1.029290] bus_width: 1
[    1.033696] bus_width: 1
[    1.036245] bus_width: 1
[    1.044481] bus_width: 1
[    1.047033] bus_width: 1
[    1.051437] bus_width: 1
[    1.053968] bus_width: 1
[    1.058396] bus_width: 1
[    1.060928] bus_width: 1
[    1.065331] bus_width: 1
[    1.067883] bus_width: 1
[    1.075753] sh_mmcif ee200000.mmc: Chip version 0x0003, clock rate 12MHz
....
[    1.162808] sh_mobile_sdhi ee140000.sd: Got CD GPIO
[    1.167721] sh_mobile_sdhi ee140000.sd: Got WP GPIO
[    1.225803] bus_width: 0
[    1.285896] sh_mobile_sdhi ee140000.sd: mmc2 base at 0xee140000 max clock rate 97 MHz
[    1.295945] bus_width: 0
[    1.295955] bus_width: 0
[    1.310067] bus_width: 0
[    1.312621] bus_width: 0
[    1.315700] mmc0: new high speed SDHC card at address aaaa
[    1.321502] mmcblk0: mmc0:aaaa SL16G 14.8 GiB
[    1.327974] bus_width: 0
[    1.330512] bus_width: 0
[    1.333120]  mmcblk0: p1 p2
[    1.336043] bus_width: 0
[    1.338578] bus_width: 0
[    1.342913] bus_width: 0
[    1.345449] bus_width: 0
[    1.349814] bus_width: 0
[    1.352349] bus_width: 0
[    1.574048] mmc1: new high speed MMC card at address 0001
[    1.579733] mmcblk1: mmc1:0001 MMC04G 3.52 GiB
[    1.584354] mmcblk1boot0: mmc1:0001 MMC04G partition 1 16.0 MiB
[    1.590373] mmcblk1boot1: mmc1:0001 MMC04G partition 2 16.0 MiB
[    1.599432]  mmcblk1: p1 p2


[    6.645766] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD51)
Configuring network interfaces... [    6.705785] bus_width: 0
[    6.708329] bus_width: 0
[    6.710885] mmc2: error -110 whilst initialising SD card
[    6.718189] bus_width: 0
[    6.720735] bus_width: 0
[    6.778163] bus_width: 0
[    6.780732] bus_width: 0
[    6.785697] bus_width: 0
[    6.788305] bus_width: 0
[    6.797313] bus_width: 0
[    6.799924] bus_width: 0
[    6.804870] bus_width: 0
[    6.807504] bus_width: 0
[    6.813239] bus_width: 0
[    6.815864] bus_width: 0
[    6.820826] bus_width: 0
[    6.823447] bus_width: 0

 [   11.925733] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD51)
[   11.985731] bus_width: 0
[   11.988272] bus_width: 0
[   11.990827] mmc2: error -110 whilst initialising SD card
[   11.998720] bus_width: 0
[   12.001256] bus_width: 0
[   12.059276] bus_width: 0
[   12.061811] bus_width: 0
[   12.067902] bus_width: 0
[   12.070437] bus_width: 0
[   17.125730] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[   17.185731] bus_width: 0
[   17.188268] bus_width: 0
[   22.245732] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[   22.305737] bus_width: 0
[   22.308277] bus_width: 0
[   27.365728] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[   27.425736] bus_width: 0
[   27.428273] bus_width: 0
[   32.485727] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[   32.545735] bus_width: 0
[   32.548271] bus_width: 0
[   37.605729] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD55)
[   37.665737] bus_width: 0
[   37.668274] bus_width: 0
[   42.725727] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD55)
[   42.785736] bus_width: 0
[   42.788273] bus_width: 0
[   47.845726] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD55)
[   47.905735] bus_width: 0
[   47.908271] bus_width: 0
[   52.965725] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD55)
[   53.025735] bus_width: 0
[   53.028272] bus_width: 0
[   53.034530] bus_width: 0
[   53.037081] bus_width: 0
[   53.102796] bus_width: 0
[   53.105332] bus_width: 0
[   53.114998] bus_width: 0
[   53.117546] bus_width: 0
[   58.165726] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[   58.225729] bus_width: 0
[   58.228265] bus_width: 0
[   63.285727] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[   63.345730] bus_width: 0
[   63.348267] bus_width: 0
[   68.405726] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[   68.465729] bus_width: 0
[   68.468264] bus_width: 0
[   73.525725] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[   73.585729] bus_width: 0
[   73.588265] bus_width: 0
[   78.645725] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD55)
[   78.705729] bus_width: 0
[   78.708265] bus_width: 0
[   83.765725] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD55)
[   83.825728] bus_width: 0
[   83.828264] bus_width: 0
[   88.885725] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD55)
[   88.945728] bus_width: 0
[   88.948264] bus_width: 0
[   94.005726] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD55)
[   94.065728] bus_width: 0
[   94.068264] bus_width: 0
[   94.078043] bus_width: 0
[   94.080580] bus_width: 0
[   94.137513] bus_width: 0
[   94.140048] bus_width: 0
[   94.144376] bus_width: 0
[   94.146929] bus_width: 0
[   94.155085] bus_width: 0
[   94.157638] bus_width: 0
[   94.161966] bus_width: 0
[   94.164500] bus_width: 0
[   94.168877] bus_width: 0
[   94.171412] bus_width: 0
[   94.175748] bus_width: 0
[   94.178284] bus_width: 0
[   99.285727] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD51)
[   99.345729] bus_width: 0
[   99.348266] bus_width: 0
[   99.350813] mmc2: error -110 whilst initialising SD card
[   99.358094] bus_width: 0
[   99.360630] bus_width: 0
[   99.418115] bus_width: 0
[   99.420650] bus_width: 0
[   99.425579] bus_width: 0
[   99.428134] bus_width: 0
[   99.437034] bus_width: 0
[   99.439567] bus_width: 0
[   99.444495] bus_width: 0
[   99.447046] bus_width: 0
[   99.451977] bus_width: 0
[   99.454510] bus_width: 0
[   99.459494] bus_width: 0
[   99.462029] bus_width: 0
[  104.565727] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD51)
[  104.625735] bus_width: 0
[  104.628270] bus_width: 0
[  104.630813] mmc2: error -110 whilst initialising SD card
[  104.638687] bus_width: 0
[  104.641222] bus_width: 0
[  104.699272] bus_width: 0
[  104.701807] bus_width: 0
[  104.707895] bus_width: 0
[  104.710430] bus_width: 0
[  109.765726] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[  109.825736] bus_width: 0
[  109.828272] bus_width: 0
[  114.885726] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[  114.945739] bus_width: 0
[  114.948275] bus_width: 0
[  120.005726] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[  120.065735] bus_width: 0
[  120.068271] bus_width: 0
[  125.125727] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[  125.185736] bus_width: 0
[  125.188272] bus_width: 0
[  130.245726] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD55)
[  130.305736] bus_width: 0
[  130.308272] bus_width: 0
[  135.365725] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD55)
[  135.425735] bus_width: 0
[  135.428272] bus_width: 0
[  140.485725] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD55)
[  140.545735] bus_width: 0
[  140.548271] bus_width: 0
[  145.605725] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD55)
[  145.665737] bus_width: 0
[  145.668273] bus_width: 0
[  145.674528] bus_width: 0
[  145.677077] bus_width: 0
[  145.742795] bus_width: 0
[  145.745330] bus_width: 0
[  145.754986] bus_width: 0
[  145.757535] bus_width: 0
[  150.805726] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[  150.865729] bus_width: 0
[  150.868264] bus_width: 0
[  155.925725] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[  155.985729] bus_width: 0
[  155.988265] bus_width: 0
[  161.045742] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[  161.105730] bus_width: 0
[  161.108267] bus_width: 0
[  166.165726] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD5)
[  166.225729] bus_width: 0
[  166.228265] bus_width: 0
[  171.285726] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD55)
[  171.345729] bus_width: 0
[  171.348264] bus_width: 0
[  176.405725] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD55)
[  176.465729] bus_width: 0
[  176.468266] bus_width: 0
[  181.525726] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD55)
[  181.585730] bus_width: 0
[  181.588265] bus_width: 0
[  186.645726] sh_mobile_sdhi ee140000.sd: timeout waiting for hardware interrupt (CMD55)
[  186.705728] bus_width: 0
[  186.708264] bus_width: 0
[  186.718039] bus_width: 0
[  186.720576] bus_width: 0

> before this line?
>
> > > +renesas_sdhi_sdbuf_width(host, enable ? (16 << host->bus_shift) : 16);
>
> Thanks,
>
>    Wolfram




Renesas Electronics Europe Ltd, Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, UK. Registered in England & Wales under Registered No. 04586709.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 4/4] mmc: sdhi: use maximum width for the sdbuf register
  2017-08-03  7:18         ` Biju Das
@ 2017-08-03  7:43           ` Wolfram Sang
  2017-08-03  8:01             ` Biju Das
  0 siblings, 1 reply; 15+ messages in thread
From: Wolfram Sang @ 2017-08-03  7:43 UTC (permalink / raw)
  To: Biju Das
  Cc: Wolfram Sang, linux-renesas-soc, Simon Horman, Yoshihiro Shimoda,
	linux-mmc-owner

[-- Attachment #1: Type: text/plain, Size: 299 bytes --]

> [    1.162808] sh_mobile_sdhi ee140000.sd: Got CD GPIO
> [    1.167721] sh_mobile_sdhi ee140000.sd: Got WP GPIO
> [    1.225803] bus_width: 0

This should be '1'.

Which tree is this based on? I can't find SDHI nodes for r8a7743 in its
dtsi file in linux-next? I'd think the node is not correct.


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: [PATCH 4/4] mmc: sdhi: use maximum width for the sdbuf register
  2017-08-03  7:43           ` Wolfram Sang
@ 2017-08-03  8:01             ` Biju Das
  2017-08-03  8:57               ` Wolfram Sang
  0 siblings, 1 reply; 15+ messages in thread
From: Biju Das @ 2017-08-03  8:01 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: Wolfram Sang, linux-renesas-soc, Simon Horman, Yoshihiro Shimoda,
	linux-mmc-owner, Chris Paterson


> -----Original Message-----
> From: Wolfram Sang [mailto:wsa@the-dreams.de]
> Sent: 03 August 2017 08:43
> To: Biju Das <biju.das@bp.renesas.com>
> Cc: Wolfram Sang <wsa+renesas@sang-engineering.com>; linux-renesas-
> soc@vger.kernel.org; Simon Horman <horms@verge.net.au>; Yoshihiro
> Shimoda <yoshihiro.shimoda.uh@renesas.com>; linux-mmc-
> owner@vger.kernel.org
> Subject: Re: [PATCH 4/4] mmc: sdhi: use maximum width for the sdbuf register
>
> > [    1.162808] sh_mobile_sdhi ee140000.sd: Got CD GPIO
> > [    1.167721] sh_mobile_sdhi ee140000.sd: Got WP GPIO
> > [    1.225803] bus_width: 0
>
> This should be '1'.
>

> Which tree is this based on? I can't find SDHI nodes for r8a7743 in its dtsi file in
> linux-next? I'd think the node is not correct.


It is not upstreamed yet. I am going to upstream this patches with in a week or two.
Currently this patch is under internal review.
It is identical to R-Car M2.I believe this issue should reproducible with R-Car M2-W board(r8a7791).

I first rebased my SDHI patches with renesas-dev branch and it worked fine.

Then I rebased the same patches on linux-next + relevant patches from renesas-dev , it is started showing the issue.
Then I found that this patch is causing the issue.

Please find the  DT related entries here.

diff --git a/Documentation/devicetree/bindings/mmc/tmio_mmc.txt b/Documentation/devicetree/bindings/mmc/tmio_mmc.txt
index 4fd8b7a..0d507ec 100644
--- a/Documentation/devicetree/bindings/mmc/tmio_mmc.txt
+++ b/Documentation/devicetree/bindings/mmc/tmio_mmc.txt
@@ -15,6 +15,8 @@ Required properties:
 "renesas,sdhi-r7s72100" - SDHI IP on R7S72100 SoC
 "renesas,sdhi-r8a73a4" - SDHI IP on R8A73A4 SoC
 "renesas,sdhi-r8a7740" - SDHI IP on R8A7740 SoC
+"renesas,sdhi-r8a7743" - SDHI IP on R8A7743 SoC
+"renesas,sdhi-r8a7745" - SDHI IP on R8A7745 SoC
 "renesas,sdhi-r8a7778" - SDHI IP on R8A7778 SoC
 "renesas,sdhi-r8a7779" - SDHI IP on R8A7779 SoC
 "renesas,sdhi-r8a7790" - SDHI IP on R8A7790 SoC
@@ -34,8 +36,8 @@ Required properties:
   "core" and "cd". If the controller only has 1 clock, naming is not
   required.
   Below is the number clocks for each supported SoC:
-   1: SH73A0, R8A73A4, R8A7740, R8A7778, R8A7779, R8A7790
-      R8A7791, R8A7792, R8A7793, R8A7794, R8A7795, R8A7796
+   1: SH73A0, R8A73A4, R8A7740, R8A7743, R8A7745, R8A7778, R8A7779,
+      R8A7790, R8A7791, R8A7792, R8A7793, R8A7794, R8A7795, R8A7796
    2: R7S72100

 Optional properties:
diff --git a/arch/arm/boot/dts/r8a7743-iwg20d-q7.dts b/arch/arm/boot/dts/r8a7743-iwg20d-q7.dts
index b3a1efa..b5ac0ff 100644
--- a/arch/arm/boot/dts/r8a7743-iwg20d-q7.dts
+++ b/arch/arm/boot/dts/r8a7743-iwg20d-q7.dts
@@ -19,6 +19,29 @@
 serial0 = &scif0;
 ethernet0 = &avb;
 };
+
+vcc_sdhi1: regulator-vcc-sdhi1 {
+compatible = "regulator-fixed";
+
+regulator-name = "SDHI1 Vcc";
+regulator-min-microvolt = <3300000>;
+regulator-max-microvolt = <3300000>;
+
+gpio = <&gpio1 16 GPIO_ACTIVE_LOW>;
+};
+
+vccq_sdhi1: regulator-vccq-sdhi1 {
+compatible = "regulator-gpio";
+
+regulator-name = "SDHI1 VccQ";
+regulator-min-microvolt = <1800000>;
+regulator-max-microvolt = <3300000>;
+
+gpios = <&gpio2 30 GPIO_ACTIVE_LOW>;
+gpios-states = <1>;
+states = <3300000 1
+  1800000 0>;
+};
 };

 &pfc {
@@ -36,6 +59,18 @@
 groups = "i2c2";
 function = "i2c2";
 };
+
+sdhi1_pins: sd1 {
+groups = "sdhi1_data4", "sdhi1_ctrl";
+function = "sdhi1";
+power-source = <3300>;
+};
+
+sdhi1_pins_uhs: sd1_uhs {
+groups = "sdhi1_data4", "sdhi1_ctrl";
+function = "sdhi1";
+power-source = <1800>;
+};
 };

 &scif0 {
@@ -72,3 +107,16 @@
 reg = <0x68>;
 };
 };
+
+&sdhi1 {
+pinctrl-0 = <&sdhi1_pins>;
+pinctrl-1 = <&sdhi1_pins_uhs>;
+pinctrl-names = "default", "state_uhs";
+
+vmmc-supply = <&vcc_sdhi1>;
+vqmmc-supply = <&vccq_sdhi1>;
+cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
+wp-gpios = <&gpio6 15 GPIO_ACTIVE_HIGH>;
+sd-uhs-sdr50;
+status = "okay";
+};
diff --git a/arch/arm/boot/dts/r8a7743-iwg20m.dtsi b/arch/arm/boot/dts/r8a7743-iwg20m.dtsi
index ff79938..4119737 100644
--- a/arch/arm/boot/dts/r8a7743-iwg20m.dtsi
+++ b/arch/arm/boot/dts/r8a7743-iwg20m.dtsi
@@ -9,6 +9,7 @@
  */

 #include "r8a7743.dtsi"
+#include <dt-bindings/gpio/gpio.h>

 / {
 compatible = "iwave,g20m", "renesas,r8a7743";
@@ -42,6 +43,12 @@
 groups = "mmc_data8_b", "mmc_ctrl";
 function = "mmc";
 };
+
+sdhi0_pins: sd0 {
+groups = "sdhi0_data4", "sdhi0_ctrl";
+function = "sdhi0";
+power-source = <3300>;
+};
 };

 &mmcif0 {
@@ -53,3 +60,13 @@
 non-removable;
 status = "okay";
 };
+
+&sdhi0 {
+pinctrl-0 = <&sdhi0_pins>;
+pinctrl-names = "default";
+
+vmmc-supply = <&reg_3p3v>;
+vqmmc-supply = <&reg_3p3v>;
+cd-gpios = <&gpio7 11 GPIO_ACTIVE_LOW>;
+status = "okay";
+};
diff --git a/arch/arm/boot/dts/r8a7743.dtsi b/arch/arm/boot/dts/r8a7743.dtsi
index 5c2b140..8945cc7 100644
--- a/arch/arm/boot/dts/r8a7743.dtsi
+++ b/arch/arm/boot/dts/r8a7743.dtsi
@@ -834,6 +834,48 @@
 max-frequency = <97500000>;
 status = "disabled";
 };
+
+sdhi0: sd@ee100000 {
+compatible = "renesas,sdhi-r8a7743";
+reg = <0 0xee100000 0 0x328>;
+interrupts = <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>;
+clocks = <&cpg CPG_MOD 314>;
+dmas = <&dmac0 0xcd>, <&dmac0 0xce>,
+       <&dmac1 0xcd>, <&dmac1 0xce>;
+dma-names = "tx", "rx", "tx", "rx";
+max-frequency = <195000000>;
+power-domains = <&sysc R8A7743_PD_ALWAYS_ON>;
+resets = <&cpg 314>;
+status = "disabled";
+};
+
+sdhi1: sd@ee140000 {
+compatible = "renesas,sdhi-r8a7743";
+reg = <0 0xee140000 0 0x100>;
+interrupts = <GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>;
+clocks = <&cpg CPG_MOD 312>;
+dmas = <&dmac0 0xc1>, <&dmac0 0xc2>,
+       <&dmac1 0xc1>, <&dmac1 0xc2>;
+dma-names = "tx", "rx", "tx", "rx";
+max-frequency = <97500000>;
+power-domains = <&sysc R8A7743_PD_ALWAYS_ON>;
+resets = <&cpg 312>;
+status = "disabled";
+};
+
+sdhi2: sd@ee160000 {
+compatible = "renesas,sdhi-r8a7743";
+reg = <0 0xee160000 0 0x100>;
+interrupts = <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>;
+clocks = <&cpg CPG_MOD 311>;
+dmas = <&dmac0 0xd3>, <&dmac0 0xd4>,
+       <&dmac1 0xd3>, <&dmac1 0xd4>;
+dma-names = "tx", "rx", "tx", "rx";
+max-frequency = <97500000>;
+power-domains = <&sysc R8A7743_PD_ALWAYS_ON>;
+resets = <&cpg 311>;
+status = "disabled";
+};
 };

 /* External root clock */
diff --git a/drivers/mmc/host/renesas_sdhi_sys_dmac.c b/drivers/mmc/host/renesas_sdhi_sys_dmac.c
index 642a0dc..a90edb5 100644
--- a/drivers/mmc/host/renesas_sdhi_sys_dmac.c
+++ b/drivers/mmc/host/renesas_sdhi_sys_dmac.c
@@ -93,6 +93,8 @@
 { .compatible = "renesas,sdhi-r7s72100", .data = &of_rz_compatible, },
 { .compatible = "renesas,sdhi-r8a7778", .data = &of_rcar_gen1_compatible, },
 { .compatible = "renesas,sdhi-r8a7779", .data = &of_rcar_gen1_compatible, },
+{ .compatible = "renesas,sdhi-r8a7743", .data = &of_rcar_gen2_compatible, },
+{ .compatible = "renesas,sdhi-r8a7745", .data = &of_rcar_gen2_compatible, },
 { .compatible = "renesas,sdhi-r8a7790", .data = &of_rcar_gen2_compatible, },
 { .compatible = "renesas,sdhi-r8a7791", .data = &of_rcar_gen2_compatible, },
 { .compatible = "renesas,sdhi-r8a7792", .data = &of_rcar_gen2_compatible, },







Renesas Electronics Europe Ltd, Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, UK. Registered in England & Wales under Registered No. 04586709.

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* Re: [PATCH 4/4] mmc: sdhi: use maximum width for the sdbuf register
  2017-08-03  8:01             ` Biju Das
@ 2017-08-03  8:57               ` Wolfram Sang
  2017-08-03  9:00                 ` Biju Das
  0 siblings, 1 reply; 15+ messages in thread
From: Wolfram Sang @ 2017-08-03  8:57 UTC (permalink / raw)
  To: Biju Das
  Cc: Wolfram Sang, linux-renesas-soc, Simon Horman, Yoshihiro Shimoda,
	linux-mmc-owner, Chris Paterson

[-- Attachment #1: Type: text/plain, Size: 636 bytes --]


> > Which tree is this based on? I can't find SDHI nodes for r8a7743 in its dtsi file in
> > linux-next? I'd think the node is not correct.
> 
> 
> It is not upstreamed yet. I am going to upstream this patches with in a week or two.
> Currently this patch is under internal review.

Ok, I see the problem now. It is likely that we in deed need to revert
the patch because I missed that Gen2 has two versions of the SDHI
controller and the second version has an exception with the SDBUF
register.

Thanks for the report! (one suggestion for next time: please describe which
branch you tested)

Regards,

   Wolfram


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: [PATCH 4/4] mmc: sdhi: use maximum width for the sdbuf register
  2017-08-03  8:57               ` Wolfram Sang
@ 2017-08-03  9:00                 ` Biju Das
  0 siblings, 0 replies; 15+ messages in thread
From: Biju Das @ 2017-08-03  9:00 UTC (permalink / raw)
  To: Wolfram Sang
  Cc: Wolfram Sang, linux-renesas-soc, Simon Horman, Yoshihiro Shimoda,
	linux-mmc-owner, Chris Paterson



> -----Original Message-----
> From: Wolfram Sang [mailto:wsa@the-dreams.de]
> Sent: 03 August 2017 09:57
> To: Biju Das <biju.das@bp.renesas.com>
> Cc: Wolfram Sang <wsa+renesas@sang-engineering.com>; linux-renesas-
> soc@vger.kernel.org; Simon Horman <horms@verge.net.au>; Yoshihiro
> Shimoda <yoshihiro.shimoda.uh@renesas.com>; linux-mmc-
> owner@vger.kernel.org; Chris Paterson <Chris.Paterson2@renesas.com>
> Subject: Re: [PATCH 4/4] mmc: sdhi: use maximum width for the sdbuf register
>
>
> > > Which tree is this based on? I can't find SDHI nodes for r8a7743 in
> > > its dtsi file in linux-next? I'd think the node is not correct.
> >
> >
> > It is not upstreamed yet. I am going to upstream this patches with in a week
> or two.
> > Currently this patch is under internal review.
>
> Ok, I see the problem now. It is likely that we in deed need to revert the patch
> because I missed that Gen2 has two versions of the SDHI controller and the
> second version has an exception with the SDBUF register.
>
> Thanks for the report! (one suggestion for next time: please describe which
> branch you tested)
>

Thanks for the feedback. I will do it next time.

> Regards,
>
>    Wolfram




Renesas Electronics Europe Ltd, Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, UK. Registered in England & Wales under Registered No. 04586709.

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2017-08-03  9:00 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-30 10:56 [PATCH 0/4] tmio/sdhi: use max sd_buf size & clean header file before Wolfram Sang
2017-06-30 10:56 ` [PATCH 1/4] mmc: tmio: remove obsolete TMIO_BBS Wolfram Sang
2017-06-30 11:30   ` Geert Uytterhoeven
2017-06-30 10:56 ` [PATCH 2/4] mmc: tmio: add references to bit defines in the header Wolfram Sang
2017-06-30 10:56 ` [PATCH 3/4] mmc: tmio: no magic values when enabling DMA Wolfram Sang
2017-06-30 10:56 ` [PATCH 4/4] mmc: sdhi: use maximum width for the sdbuf register Wolfram Sang
     [not found]   ` <TY1PR06MB07023DF77FC5A4453B09D82AB7B00@TY1PR06MB0702.apcprd06.prod.outlook.com>
2017-08-02 14:40     ` Biju Das
2017-08-02 19:04       ` Wolfram Sang
2017-08-03  7:18         ` Biju Das
2017-08-03  7:43           ` Wolfram Sang
2017-08-03  8:01             ` Biju Das
2017-08-03  8:57               ` Wolfram Sang
2017-08-03  9:00                 ` Biju Das
2017-07-11 14:43 ` [PATCH 0/4] tmio/sdhi: use max sd_buf size & clean header file before Ulf Hansson
     [not found] ` <TY1PR06MB07025EC75F78AF0092E15134B7B00@TY1PR06MB0702.apcprd06.prod.outlook.com>
2017-08-02 15:07   ` Biju Das

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.