lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <547334D8.40705@ti.com>
Date:	Mon, 24 Nov 2014 19:08:32 +0530
From:	Kishon Vijay Abraham I <kishon@...com>
To:	Seungwon Jeon <tgih.jun@...sung.com>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	<linux-mmc@...r.kernel.org>, Sekhar Nori <nsekhar@...com>
Subject: [Query] Replaced UHS_DDR50 with MMC_DDR52.

Hi Seungwon,

Enabling UHS in dra7xx resulted in the below error (see blow). It was bisected to

commit 5438ad95a57cbfd95708a5047a27ff3cce345b79
Author: Seungwon Jeon <tgih.jun@...sung.com>
Date:   Fri Mar 14 21:12:27 2014 +0900

    mmc: omap: clarify DDR timing mode between SD-UHS and eMMC

    Replaced UHS_DDR50 with MMC_DDR52.

Actually the second hunk is causing the issue. The commit log didn't adequately
explain why this change is needed as it breaks UHS in dra7xx.

The following patch fixes this.

index f85cd0f..5659793 100644
--- a/drivers/mmc/host/omap_hsmmc.c
+++ b/drivers/mmc/host/omap_hsmmc.c
@@ -788,7 +788,7 @@ static void omap_hsmmc_set_bus_width(struct omap_hsmmc_host
*host)
        u32 con;

        con = OMAP_HSMMC_READ(host->base, CON);
-       if (ios->timing == MMC_TIMING_MMC_DDR52)
+       if (ios->timing == MMC_TIMING_UHS_DDR50)
                con |= DDR;     /* configure in DDR mode */
        else
                con &= ~DDR;

Thanks
Kishon

[    3.369017] mmc1: new ultra high speed DDR50 SDHC card at address aaaa
[    3.376821] mmcblk1: mmc1:aaaa SL32G 29.7 GiB
[    3.394844] mmcblk1: error -84 transferring data, sector 0, nr 8, cmd
response 0x900, card status 0x0
[    3.404528] mmcblk1: retrying using single block read
[    3.410264] mmcblk1: error -84 transferring data, sector 0, nr 8, cmd
response 0x900, card status 0x0
[    3.419995] blk_update_request: I/O error, dev mmcblk1, sector 0
[    3.426771] mmcblk1: error -84 transferring data, sector 1, nr 7, cmd
response 0x900, card status 0x0
[    3.436455] blk_update_request: I/O error, dev mmcblk1, sector 1
[    3.443259] mmcblk1: error -84 transferring data, sector 2, nr 6, cmd
response 0x900, card status 0x0
[    3.444359] net eth0: phy found : id is : 0x20005c7a
[    3.449554] net eth1: initializing cpsw version 1.15 (0)
[    3.463822] blk_update_request: I/O error, dev mmcblk1, sector 2
[    3.470568] mmcblk1: error -84 transferring data, sector 3, nr 5, cmd
response 0x900, card status 0x0
[    3.480231] blk_update_request: I/O error, dev mmcblk1, sector 3
[    3.486996] mmcblk1: error -84 transferring data, sector 4, nr 4, cmd
response 0x900, card status 0x0
[    3.496685] blk_update_request: I/O error, dev mmcblk1, sector 4
[    3.503446] mmcblk1: error -84 transferring data, sector 5, nr 3, cmd
response 0x900, card status 0x0
[    3.513141] blk_update_request: I/O error, dev mmcblk1, sector 5
[    3.519885] mmcblk1: error -84 transferring data, sector 6, nr 2, cmd
response 0x900, card status 0x0
[    3.529564] blk_update_request: I/O error, dev mmcblk1, sector 6
[    3.534371] net eth1: phy found : id is : 0x20005c7a
[    3.541585] mmcblk1: error -84 transferring data, sector 7, nr 1, cmd
response 0x900, card status 0x0
[    3.551262] blk_update_request: I/O error, dev mmcblk1, sector 7
[    3.557586] Buffer I/O error on dev mmcblk1, logical block 0, async page read
[    3.565680] mmcblk1: error -84 transferring data, sector 0, nr 8, cmd
response 0x900, card status 0xb00
[    3.575536] mmcblk1: retrying using single block read
[    3.581289] mmcblk1: error -84 transferring data, sector 0, nr 8, cmd
response 0x900, card status 0x0
[    3.590983] blk_update_request: I/O error, dev mmcblk1, sector 0
[    3.597731] mmcblk1: error -84 transferring data, sector 1, nr 7, cmd
response 0x900, card status 0x0
[    3.607419] blk_update_request: I/O error, dev mmcblk1, sector 1
[    3.614175] mmcblk1: error -84 transferring data, sector 2, nr 6, cmd
response 0x900, card status 0x0
[    3.624208] mmcblk1: error -84 transferring data, sector 3, nr 5, cmd
response 0x900, card status 0x0
[    3.634344] mmcblk1: error -84 transferring data, sector 4, nr 4, cmd
response 0x900, card status 0x0
[    3.644377] mmcblk1: error -84 transferring data, sector 5, nr 3, cmd
response 0x900, card status 0x0
[    3.654501] mmcblk1: error -84 transferring data, sector 6, nr 2, cmd
response 0x900, card status 0x0
[    3.664536] mmcblk1: error -84 transferring data, sector 7, nr 1, cmd
response 0x900, card status 0x0
[    3.674220] Buffer I/O error on dev mmcblk1, logical block 0, async page read
[    3.681754]  mmcblk1: unable to read partition table
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ