Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 59D90CA9EC7 for ; Sun, 11 Oct 2026 14:31:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id ECF7D60644; Sun, 11 Oct 2026 14:31:47 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id jYPYKxASb9uP; Sun, 11 Oct 2026 14:31:46 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp3.osuosl.org E0B6860622 Authentication-Results: smtp3.osuosl.org; arc=fail smtp.remote-ip=140.211.166.142 ARC-Seal: i=3; d=osuosl.org; s=arc; a=rsa-sha256; cv=fail; t=1791729106; b=hc8+qjpeNlbog8lCd9764QQmACgLNxfe1XvPkPbiHu9EazexbbzQs7c5XIw9lly0ckx7 OKYaVEqexBWRb2Xla8ONvfir19AlEOP62vqkPdiaHK+Zc/+HO7Y0B/lMSc02xPDiU6iPc yvTPS7OYCg0s8gJHPygz16TiFuiby+vuvMOmQjHIgHdcto+scBbi2C8G4uNvZxk0DozG0 ydCXgxvZOlFP3PXbAP9KGVgXZhwsdKliAsl6kcVdgekyN3rTUCWtDQ1mBM9BbYHP1Ue+z +TBxHdLbFgo4JhH7VdH43gBqVhC3623NA22rHKDX4JqN/M6tUEEaDw89HiaPgyUzlrw== ARC-Message-Signature: i=3; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1791729106; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received: DKIM-Signature:Received:Received:Message-ID:Date:User-Agent:Subject: To:Cc:References:Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:X-ClientProxiedBy:MIME-Version: X-MS-PublicTrafficType:X-MS-TrafficTypeDiagnostic: X-MS-Office365-Filtering-Correlation-Id: X-MS-Exchange-AtpMessageProperties:X-MS-Exchange-SenderADCheck: X-MS-Exchange-AntiSpam-Relay:X-Microsoft-Antispam: X-Microsoft-Antispam-Message-Info:X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-OriginatorOrg: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-CrossTenant-Id:X-MS-Exchange-CrossTenant-MailboxType: X-MS-Exchange-CrossTenant-UserPrincipalName: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-BeenThere: X-Mailman-Version:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:Errors-To; bh=WzAqhLwfD9jaS4GJUstFkCOBb2RV3CF8ooVgiHyJBCg=; b=ZDkUWNN49CpqrQl+pofSA8ZddGg3C2Nk46v/bX2hSdnZJrpjh+jfEZi9Gnx+oGk2ec8n 7DJ4F1KqVb2nwEuJUjm2FsTGr/uWj52FgP0xYONYGbdhPDUmzG0bGj5qm4ctV/RvJOryl pL4k17DbMloL9R6pLy7RKiEOME1NnmlXr+H2YP287jUrYHQA3QQ11LNfdn6WsGJ45Wzzk pp47o2JD1DJLx5xiNiaa4HrbMRJoS4v1o/PcVZYkLv1RkeGnhZAUnD3pHA6xSxoQnEGY4 ZsRcl7bWjda4xKfTufRTG9x8MXeu5xMqOhdmuAPLGF+uX+G+kqA0FiVO98q1mqeDdNA== ARC-Authentication-Results: i=3; smtp3.osuosl.org; arc=fail smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=u-boot-bounces@lists.u-boot-project.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.u-boot-project.org; s=default; t=1791729106; bh=WzAqhLwfD9jaS4GJUstFkCOBb2RV3CF8ooVgiHyJBCg=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=wKpJzNmlW+Gch2apfAOr5wgO6+fpMRgpAwO+6FD6IOMgJA+Qr/3qOhjRzIW2kw1So XqKj8m9sGJa805ANCP0HuS0GUQ1MewSYRAkEy33jr38Su5DIu7Y3wh79uVd6/SxjMK oEGIwfKrc/09T8FqA4H0CkHn1hY9OISc809/pOhL7sPT1LlcDqNgGOT1X34CmdUoMi vSbShgZYE6RwzHw3pglTCEakhlrD4rkoOY2B087z3odbOchfSlhCCI1sbCUFDUdm/Z m1e8qyKSw4Wqp+QY3uvrSuZFGQiFynahusPAkBsTUfBA5ElfvVSd2i1KZcwex3ZpcP BMtxBEudUSEIg== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp3.osuosl.org (Postfix) with ESMTP id E0B6860622; Sun, 11 Oct 2026 14:31:45 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists1.osuosl.org (Postfix) with ESMTP id 021E91DE for ; Sun, 11 Oct 2026 14:31:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id DC56180CF2 for ; Sun, 11 Oct 2026 14:31:44 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id A6SOpFGQOF9D for ; Sun, 11 Oct 2026 14:31:43 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp1.osuosl.org C756680D10 Authentication-Results: smtp1.osuosl.org; arc=pass header.oldest-pass=0 smtp.remote-ip="2a01:111:f403:c10c::1" ARC-Seal: i=2; d=osuosl.org; s=arc; a=rsa-sha256; cv=pass; t=1791729103; b=cO18VS6AqQCAy1cY8wmuX7gjNbxbzSXQ6FYyg0P3M+U/nBDNPkGMANoF8Wt824jJ0Nhb jwp0FMQCGguPXY3swzeWlZSbKst4aS4H6KgAeAEP+IiufFEsEcssZSDvTlEdTsr861Flr 5uYeFVCuuC9p5ZxDSqnCRND0Gxm+0yNbdps1RLuN7FXN5fuG/YcIysVaoNbo1gMHvaX/H 5w5gTvEA6MKVs05CpB19rth71w+2O/+Pwb+hkTczM/kC1PcMqdWXzXVKZocCgKV/BlS/n /NeC3hoTkgusqGjFSQlRSlvKZoD3kuud5f1J4XZty/8osYqR+Vbp9VIFMyV4o9GHpZQ== ARC-Message-Signature: i=2; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1791729103; h=Received-SPF:DKIM-Signature:Received:Received:Message-ID:Date: User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding:X-ClientProxiedBy:MIME-Version: X-MS-PublicTrafficType:X-MS-TrafficTypeDiagnostic: X-MS-Office365-Filtering-Correlation-Id: X-MS-Exchange-AtpMessageProperties:X-MS-Exchange-SenderADCheck: X-MS-Exchange-AntiSpam-Relay:X-Microsoft-Antispam: X-Microsoft-Antispam-Message-Info:X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-OriginatorOrg: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-CrossTenant-Id:X-MS-Exchange-CrossTenant-MailboxType: X-MS-Exchange-CrossTenant-UserPrincipalName: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=WzAqhLwfD9jaS4GJUstFkCOBb2RV3CF8ooVgiHyJBCg=; b=VBzMRIoF60dHWMQApoZDGxbMozYiNKUmG63ZuARnHCqng5JRhgNLbqc0mGy5ymGr1A38 GfTgUFs5imVBMicc1qXrWFwrb2NfAKLHqDDtsAI+cHI9uz5hipOvlBjyUG4jBLv9CcvrE fomKsB/CQ0QXEPT5TgxtdDCfEBJ+cZkmJ96JBPZLb0oxliSuOxFSq9+rMvVQ3ZLw01c5z AORCLxuLndXjeFHa34QkgPKlzAh+3gHVJ5RM4kW7vxJgXiPFtQ4/ykseM0Tmy9k62gOv8 U7a5PhnfGULjqT/av2yKps9mG7Cdm9MZjlXw2zvramsbOGou+gWgjlDGHtsir2btdJw== ARC-Authentication-Results: i=2; smtp1.osuosl.org; dmarc=pass header.from=altera.com; dkim=pass header.d=altera.com header.i=@altera.com header.a=rsa-sha256 header.s=selector2 header.b=uBDsfMRQ; arc=pass header.oldest-pass=0 smtp.remote-ip="2a01:111:f403:c10c::1" Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a01:111:f403:c10c::1; helo=sa9pr02cu001.outbound.protection.outlook.com; envelope-from=tanmay.kathpalia@altera.com; receiver= Authentication-Results: smtp1.osuosl.org; dmarc=pass (p=reject dis=none) header.from=altera.com Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=altera.com header.i=@altera.com header.a=rsa-sha256 header.s=selector2 header.b=uBDsfMRQ Received: from SA9PR02CU001.outbound.protection.outlook.com (mail-southcentralusazlp170130001.outbound.protection.outlook.com [IPv6:2a01:111:f403:c10c::1]) by smtp1.osuosl.org (Postfix) with ESMTPS id C756680D10 for ; Sun, 11 Oct 2026 14:31:41 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=J38o064Kfdgkfq62K0JjXZN0y0ABVlgB9TfDehEQMjFh7gK6shy1F4t+6a5qq2LmUPXpW7qnGlbY368KKbI9Rue3Yk/kcl960qqPBEP8ntTfFgI1ZoHx0JZpTaVqjMaAXdFiTQnb814M32z5efGvma8OfvykpWYJcAlBSXCb+X4WlbFz6b7Z0fTqpDscx8+TsPpO0MdGYo3eb3IjyBsz7emE7A5ukbE9YAgy/379tS7rEW1g3VLxdETCYQVGME8dVK3gHFqOorPtoonnYox3mQJKfxHpP+C4cAPVsTq4LzVXtTPk12qwp+YUhmsqs5bQSBoUc22X/Pr6ZSs/lyJx0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=WzAqhLwfD9jaS4GJUstFkCOBb2RV3CF8ooVgiHyJBCg=; b=CpGpHJsmeH6XbO2CXcK5Zf6udlg5JAR4n8LRdbD0hYL0eCMbBt6ffhBopSqaWwGgEH6jFM76C+aQCA9PCSsHNNExKkb/AFLaBAk26Xh28mLVfC/+WAca6d8Rla1wP17DLxKPDcRMT3lPYJker68LYHj4XeSvjn8R+j6guJcmlZr2M5OYlcMmA/rXuoKcS8B6ORyXi82F7HExGvXaHYPsJI8JncwXh+LDtU4kvptBwRyRW4oCBtSyx8s73ceiS+ASngU8NehqoH3k1vHYuX+jfNuuTDkEUilj+PcrCecQwsDJLtl43vN4zqrwpfZu3gzq2jHG4oUecBfDGD/YpH+ZPg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=altera.com; dmarc=pass action=none header.from=altera.com; dkim=pass header.d=altera.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=altera.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WzAqhLwfD9jaS4GJUstFkCOBb2RV3CF8ooVgiHyJBCg=; b=uBDsfMRQwv3lN7ZKny+Jwh9eug8HYRxYPfozwAiewLCFTzQjhFD2ZMBmTWxPs2qGV+Ss4KoZVGszoB4w/GbSRaea3emV1DwtllSM0GZH/5v2E0gPw6Y8u8sUXCPQC7yAg1ovBi0ahAMbyYPKwLHr6q5CsUYcpvG728MXfYedq5clSbSwpYN4wQkHA1SHT8eELDX44B/tRUB5j0vGDvRKhaQmvaIxJHI8GrzagNDE6IUCsk6yoaHd2h0Hrg2ImGG4/deJ4ab3dSQHzgaeMDrSxJDRaqZxdjA4UL/nQ4i7RWP7wao1AL05DbhzpqiLpzPOAJE2oEgXwerbUyTYnJsGRg== Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=altera.com; Received: from DM4PR03MB6208.namprd03.prod.outlook.com (2603:10b6:5:39c::19) by SJ0PR03MB5600.namprd03.prod.outlook.com (2603:10b6:a03:286::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.496.20; Sun, 11 Oct 2026 14:31:37 +0000 Received: from DM4PR03MB6208.namprd03.prod.outlook.com ([fe80::2216:93ef:67b:9e04]) by DM4PR03MB6208.namprd03.prod.outlook.com ([fe80::2216:93ef:67b:9e04%3]) with mapi id 15.21.0496.015; Sun, 11 Oct 2026 14:31:36 +0000 Message-ID: <6f00fd89-d418-4d64-a066-c893dff89994@altera.com> Date: Sun, 11 Oct 2026 20:01:27 +0530 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/3] mmc: k1: let the SPL read SD cards more than one block at a time To: Zixian Zeng , Dave Klotz , Yixun Lan , Eric Chung , Peng Fan Cc: u-boot@lists.u-boot-project.org, Jaehoon Chung , Tom Rini , u-boot-spacemit@groups.io References: <20261005T134748-0400.mmc-v2-cover.DaveWK225@protonmail.com> <20261005T135733-0400.mmc-v2-0002.DaveWK225@protonmail.com> <2ef42a4d-ee32-4650-819b-ea6d042bdad5@altera.com> <8a263ad7-5cf5-46f4-87a1-43e898a1d15a@gmail.com> Content-Language: en-US From: "Kathpalia, Tanmay" In-Reply-To: <8a263ad7-5cf5-46f4-87a1-43e898a1d15a@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: PN3PR01CA0125.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:96::11) To DM4PR03MB6208.namprd03.prod.outlook.com (2603:10b6:5:39c::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR03MB6208:EE_|SJ0PR03MB5600:EE_ X-MS-Office365-Filtering-Correlation-Id: 35f2c1e7-7408-4caa-c41c-08df27a45ac0 X-MS-Exchange-AtpMessageProperties: SA X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|1800799024|366016|23010399003|56012099006|11063799006|4143699003|261009223027099003|260925021311599003|260925022911599003|260925021911599003|10067099003|22082099003|55112099003|18002099003|6133799003|3023799007; X-Microsoft-Antispam-Message-Info: mw9eY7K/h2I1pF3s8PvzkboaJmS25oNXh3u2hT5vCHCQyviiD9SoQtxQ4ENrd4YOoOIXBA0J45MnCjEBCUBj2o/ykYKlrjWJdQsQ77gNQMY486rt4M37893UbzGkeFk1Ezf+wLvlYwTMhHg5ca0n05YF6U3i+QFSy8sg7GwLh2S3w50rJHwbmqAhZeVsWxB2nia3CyECxA+cLvjFqgt/rjgmDQhGSSRFZFuDLyOASNXQELQ+qBSVkPb+DL5zmH95CsbGGWdYSVlyUnfiurnLN2BwnbgeEH29QIH7VE66fo8oYcrjsNz3ICUE7K6B9Ujsomvo4ZSJJl97rR9jf+TZ494aug4k3P6JEqIJ3Z5/LuipL7ITn/O8a2e8vElvfjdPv2nkQddaxZs5BMWat8IY8TWVPqgtUAcEMuoxLNsJAPl2G+hikfYwwILyO0ayi8iDl9NuG8QF82nFmFIM5jAMpPHMDwT4QB5AHrGs+TCgu24Jj63rI/DmaT+EsPYjLdApS5FzHnKPT6UCiGvdU1JK5M+gzekLIyhmhfrN4k4bdkWM2AOgOgfNtMDFnFV319ltCs4y8u6sZW+mtZ8BI7bW5KSwEW+HSMeWudV3HQZjBFI= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR03MB6208.namprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(1800799024)(366016)(23010399003)(56012099006)(11063799006)(4143699003)(261009223027099003)(260925021311599003)(260925022911599003)(260925021911599003)(10067099003)(22082099003)(55112099003)(18002099003)(6133799003)(3023799007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MGt1U2F3ZW5Ma2t4Y21EM1hqcXM4Tk9FYnhJeXVKRDZQRmJrRlRUSDIxMGlR?= =?utf-8?B?M044MkJuRXZLbGNUSGJkSG1SWWtXaVpVZVQ4dDlvSE1ibitYUitFQ20xT0NV?= =?utf-8?B?L0ZYMXc2MDh3RkZTV0xIUUFSUzVTVWlDR1NLOEwvL1FHZW9USndHWUZ2blVx?= =?utf-8?B?bEpGNkxmUWNRMFdqYUlTZHo0WmxheDVQM2RMaS9RMUMrcHJrOWJTeG9FdUp3?= =?utf-8?B?SlRsa1BPTTR1eDlhZEozTkpoMHdRUklmM2hqSFRIYVo2QUhPS3JmbWpKZWV2?= =?utf-8?B?Q29kL2ZxeW12RTJob0tZUFFmUXYwVVUzaEFjcWlvNXI1QWk3eVNBaERtZUw5?= =?utf-8?B?ZTBNdTBVYjFLVmFwVVNPTnpXUGgvdElvMXBTdDZMd2tUTWNiZG04NEFqN1E4?= =?utf-8?B?TDgrV3JwNWhxUnNCdTdqTUJja0VXbm5neUkwUjVkbGs0SFpSeVVOQy95MlpU?= =?utf-8?B?K0t1M05uR2ZDMmFIUWRoQ0d1dVNrdWNlcFNKRzhWMDBldG1KczlJMmNZZk9i?= =?utf-8?B?bzNRV1F3OXl3TFZYWC9zWTJOZFZzWlVhUFZRM1F3bUZyNXZNSG1hTWFRSkZp?= =?utf-8?B?MnZyVGFVSlBUMC93dUszaUpXMXUzZjNxRzZxN25UczExWUNlZ3U3OXhIZnRS?= =?utf-8?B?bjFuVHVpRU5MTVRzTVI1aGtFczdjRk90d0NTZElCSGs4QnJHT0ZIb1NJbWwy?= =?utf-8?B?MmxLY2hQei9LNkVJMzJwaHFlSDZqNDA3d3ZYeGN2NHZ1RXg1WUNWYUdDdXJZ?= =?utf-8?B?M0FVQksrRFRFUlk1UzFaL1pWWGpHTkFSdjNYWXlrTFoyTWhwTUZoMVdTUEhO?= =?utf-8?B?NUJCd0pETjVNbDJnQmhSWlNLVWlRZjhzS3R0enl5ajkvZTVnRkNhU0N0VkZ4?= =?utf-8?B?SW96eUJacFJtTXJrVnJOSVEzNTRmV2tQelRudzZtUnBnNzZjbmFBdUxiS2kx?= =?utf-8?B?ZzhtTTJjUHZXdWFvOE9OZ0M3bC9EWGtEU20xNFRjK0ovZHpnd3BTdU44NWM3?= =?utf-8?B?OHllUXJydUF1TC9aanpBV1BYdUVzL2RMUVUrVUx3T0puS0drSXRZUFY2TDZh?= =?utf-8?B?QVhSRzQ3MjR3WmVVbEJHWGd3cW9SSEZVRGd2UlZIbFFJZllLL2FFWnNsN3U1?= =?utf-8?B?cmFoa0MyV00zbjQyZnBaLzZBTmZTMm5uZUlGNFVHN1Uxc0N6QnFZOXdmU1Nr?= =?utf-8?B?b20zSUl4V3R2cmRia1p2bS8xMGdEelhOb2ExU0hhZFBvNHJvNXpKNzVDVVRz?= =?utf-8?B?VmJDL0s0WlUxZXJjUnpUZ3RQT2lESmp6SGV3YnZiZFI4WGZ6OWdmcGx1bjhB?= =?utf-8?B?TFZqcTNtOFVBOTRHeU5Zd011cnNCUFYrZE1xNXJlWXc5YTZaRW02VTVTN3VZ?= =?utf-8?B?K05TTVlaQXh4RzZrVy9TLzc3QnBZT1JHZHR4bndoYWtrdFkrdk1ZQnBBancz?= =?utf-8?B?S1ZSVzBaZk80SldwSTNWNXNUR1NxSUZaNXlyNW9Tbi9iV2ZQaW9BTHVaWVN6?= =?utf-8?B?bDVZLzBIVHRaeDNuZzhVSmx0NUZjRURJVzVBRmk2UnVRQjV0WDZQQkRMSnQ5?= =?utf-8?B?WWpIZFJSaHRZT3I2UkpqUWI1T3diQUl2OXpCcUNHOHNMQTgyU0Y1SHNMS3NZ?= =?utf-8?B?Wjdnc09oSEIvS2tkTmRwbjdBK3ZzamI0clpvL0dLZXNaM2liZnd2dHNkMHhN?= =?utf-8?B?Yjl0YlppWVBMK3NIUFNNUG12OGUvd2NRWWtXYmFCcVl3VHVhZVVNTmszWTN0?= =?utf-8?B?V21sek1xVERBd0VjMC9HZFFGUFNHK2FxamlYTllvaUtmOXBUT2U5a2Zyb2xD?= =?utf-8?B?TjN1Y1JqYUl3T09jTVZxVHpUcHBHbnd6TnBOL0lPa3kveFRvUSsrNVlKbUVy?= =?utf-8?B?SXowUUExT0szNTUyVktZdklaRkxlckNCUFQ5OTY3Ty9ZY1Fxd3NVVERiSS9p?= =?utf-8?B?ZE1qRGh3QmNuWmV6NG1Xa3RqU283aGZxQi9Jd0pvRzB1U0NRZEE4ckpNTlRS?= =?utf-8?B?QTNCdFRyUENkL0dBMjh4bFBpRzFnbTFERXVpaVV2RXZqT1pZdUllWU9mU3pR?= =?utf-8?B?M1ArbXU4UVB2RHdXK1ZxTnRWcDF6YmgvbWlDUFlXSVhUSzRkckR6MndFNGdB?= =?utf-8?B?YVkyVnI3NEtxOFg1ZGVRQ01jU1JMMWFGTFJueGFpN0lSSldidGcrWlQ3SS9M?= =?utf-8?B?T3JYL3BJUFVKV1lwM1NmQ1p1NG1VNkUyeUEyOTFjVUdkbm5iZWJrc0NxcSs1?= =?utf-8?B?OHo5QklGRElxdWhsMldCb29NWjJPUDhWZlE0RXdneG54eGUvRjArSEgrYVNz?= =?utf-8?B?SnlQbE45M2pBVVdENWNHbXZZYXBPTUU5Q3VZbVUwOFZTSm41MmdWNithSlBJ?= =?utf-8?Q?K/JHxap7ZIwdAXY4=3D?= X-OriginatorOrg: altera.com X-MS-Exchange-CrossTenant-Network-Message-Id: 35f2c1e7-7408-4caa-c41c-08df27a45ac0 X-MS-Exchange-CrossTenant-AuthSource: DM4PR03MB6208.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Oct 2026 14:31:36.6625 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fbd72e03-d4a5-4110-adce-614d51f2077a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: F0MIzsIcrZlXH5jnQJzqIgt6PkD3ikzEF7CfcUPHO2EOx3pRz7fi+cFFlWab2eGCHvu9mm7PqxYUY3aMOvXu+MlKpMSzoOuJU5Tz9DJe+KM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR03MB5600 X-BeenThere: u-boot@lists.u-boot-project.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.u-boot-project.org On 11-10-2026 09:08, Zixian Zeng wrote: > On 2026/10/11 03:16, Kathpalia, Tanmay wrote: >> >> On 11-10-2026 00:32, Kathpalia, Tanmay wrote: >>> >>> On 10-10-2026 11:47, Zixian Zeng wrote: >>>> Hi, Dave: >>>> >>>> On 2026/10/6 02:01, Dave Klotz wrote: >>>>> spacemit_sdhci_get_b_max() limits every SD read in the SPL to a >>>>> single >>>>> block, so loading a ~1 MiB u-boot.itb from a card takes about 2000 >>>>> separate commands. The controller handles multi-block PIO reads in >>>>> the >>>>> SPL: the OrangePi RV2 has loaded U-Boot from microSD with them >>>>> through >>>>> the v2026.07 and v2026.10 trees. >>>>> >>>>> Drop the limit and use the host's b_max. >>>>> >>>>> The merged v13 cover retains the v9 changelog entry choosing single- >>>>> block SD reads in SPL. This reverses that deliberate policy for the >>>>> recorded RV2 SPL boot use case; no general multi-card reliability >>>>> claim >>>>> is made. K1 does not advertise MMC_CAP_CMD23, so the MMC core sends >>>>> CMD12 after a multi-block read rather than requiring CMD23. >>>>> Additional >>>>> card models, cold boots and transfer-error recovery remain required. >>>>> >>>>> Signed-off-by: Dave Klotz >>>>> Reviewed-by: Tanmay Kathpalia >>>>> --- >>>>> Validation: unchanged executable change from v1; exact-base source >>>>> replay and checkpatch pass. The corrected combined integration, with >>>>> separate clock/MMC and DDR relocation fixes, passed SD SPL/FIT and >>>>> automatic NVMe EFI boot on the 4 GiB RV2 in a warm-boot trial. >>>>> This is >>>>> an integration result, not an isolated test of this patch. >>>>> >>>>>   drivers/mmc/spacemit_sdhci.c | 11 ----------- >>>>>   1 file changed, 0 insertions(+), 11 deletions(-) >>>>> >>>>> diff --git a/drivers/mmc/spacemit_sdhci.c b/drivers/mmc/ >>>>> spacemit_sdhci.c >>>>> index 6488ae0fdb..4284553177 100644 >>>>> --- a/drivers/mmc/spacemit_sdhci.c >>>>> +++ b/drivers/mmc/spacemit_sdhci.c >>>>> @@ -324,16 +324,6 @@ >>>>>       return 0; >>>>>   } >>>>>   -static int spacemit_sdhci_get_b_max(struct udevice *dev, void >>>>> *dst, >>>>> -                    lbaint_t blkcnt) >>>>> -{ >>>>> -    struct mmc *mmc = mmc_get_mmc_dev(dev); >>>>> - >>>>> -    if (IS_ENABLED(CONFIG_SPL_BUILD) && mmc && IS_SD(mmc)) >>>>> -        return 1; >>>>> -    return mmc->cfg->b_max; >>>>> -} >>>>> - >>>>>   static void spacemit_sdhci_set_control_reg(struct sdhci_host *host) >>>>>   { >>>>>       struct mmc *mmc = host->mmc; >>>>> @@ -574,7 +564,6 @@ >>>>>         spacemit_mmc_ops = sdhci_ops; >>>>>       spacemit_mmc_ops.wait_dat0 = spacemit_sdhci_wait_dat0; >>>>> -    spacemit_mmc_ops.get_b_max = spacemit_sdhci_get_b_max; >>>>>         ret = clk_get_bulk(dev, &plat->clks); >>>>>       if (ret) { >>>> Using the current version of the next branch u-boot (ed869863c7), >>>> with your MMC patch series applied. >>>> Since the SPI controller is not enabled by default on the BananaPi-F3, >>>> I also applied another patch series: >>>> Link: https://lore.kernel.org/u-boot/ >>>> cover.1790976767.git.DaveWK225@protonmail.com/ >>>> >>>> I tested u-boot SPL with three SD cards on a BananaPi-F3 and found >>>> a reproducible issue, the specific error I encountered is spl: >>>> partition error (Error: -38) >>>> At the meantime, when i was revert the commit: >>>> mmc: k1: let the SPL read SD cards more than one block at a time >>>> the error has gone. Same SD card, same operation steps. >>>> Maybe BananaPi-F3 do not support read SD cards more than one block >>>> at a time? >>>> >>>> >>> >>> Hi Zixian, >>> >>> Thanks for testing this on the BananaPi-F3 and reporting this. The >>> same cards and steps failing only with this patch shows that >>> multi-block SD reads in the SPL are not reliable yet. >>> >>> I would request to try one more experiment before dropping it. >>> Please add MMC_CAP_CMD23 to host->host_caps and boot the same cards >>> again. CMD23 (SET_BLOCK_COUNT) tells the card how many blocks to >>> transfer. mmc_read_blocks() then uses CMD23 plus CMD18, and it does >>> not send CMD12 afterwards. The current driver does not set >>> MMC_CAP_CMD23, so a multi-block read is CMD18 followed by CMD12. >>> >>> After the SCR is read, the MMC core clears MMC_CAP_CMD23 when the card >>> does not advertise SD_SCR_CMD23_SUPPORT. Those cards stay on CMD18 >>> plus CMD12. >>> >>> This also matches Eric's earlier note that on K1 ADMA depends on CMD23: >>> https://patchwork.ozlabs.org/project/uboot/patch/20260707-m4-v4-3- >>> dbd01185f911@riscstar.com/ >>> >>> If the CMD23 test also fails, I agree that this patch should be >>> dropped. >>> >> >> Hi Zixian, >> >> A few follow-up questions about the SPL-only failure: >> >> The callback limits reads only when CONFIG_SPL_BUILD is enabled. U-Boot >> proper already uses mmc->cfg->b_max, even without this patch. >> Therefore, multi-block SD reads should already be used in U-Boot proper. >> >> Could you please boot U-Boot proper from another device and test a >> multi-block read from the same SD cards? >> Could you also compare the following between SPL and U-Boot proper? >> >> - selected SD timing mode >> - card clock frequency >> - bus width >> - PIO, SDMA, or ADMA transfer path >> - whether the card advertises CMD23 support >> >> Although both stages use the same driver source, they may use different >> configuration options, transfer paths, clocks, and timing modes. This >> could explain why CMD18 works in U-Boot proper but fails in SPL. >> >> Regards, >> Tanmay > > Hi, Tanmay, > > Sure, I've added some print logs, which you can see below: > > commit 53c0ff5f65b0c7c4ae9f4563265741cd0ca23a0c > Author: Zixian Zeng > Date:   Sun Oct 11 09:34:03 2026 +0800 > >     Add mmc debug log > >     Signed-off-by: Zixian Zeng > > diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c > index a619440fc4c..6e18d13884a 100644 > --- a/drivers/mmc/mmc.c > +++ b/drivers/mmc/mmc.c > @@ -458,6 +458,13 @@ static int mmc_read_blocks(struct mmc *mmc, void > *dst, lbaint_t start, >         struct mmc_cmd cmd; >         struct mmc_data data; > > +       if (blkcnt > 1) > +               printf("mmc: multi-blk blkcnt=%lu clk=%u mode=%u > width=%u caps=%x cmd23_host=%u scr0=%x cmd23_card=%u\n", > +                      (ulong)blkcnt, mmc->clock, > +                      (unsigned)mmc->selected_mode, mmc->bus_width, > +                      mmc->host_caps, !!(mmc->host_caps & > MMC_CAP_CMD23), > +                      mmc->scr[0], !!(mmc->scr[0] & > SD_SCR_CMD23_SUPPORT)); > + >         if (blkcnt > 1 && (mmc->host_caps & MMC_CAP_CMD23)) { >                 cmd.cmdidx = MMC_CMD_SET_BLOCK_COUNT; >                 cmd.cmdarg = blkcnt & 0x0000ffff; > @@ -483,8 +490,12 @@ static int mmc_read_blocks(struct mmc *mmc, void > *dst, lbaint_t start, >         data.blocksize = mmc->read_bl_len; >         data.flags = MMC_DATA_READ; > > -       if (mmc_send_cmd(mmc, &cmd, &data)) > +       if (mmc_send_cmd(mmc, &cmd, &data)) { > +               log_err("mmc: cmd%u read failed: blks=%lu blksz=%lu > arg=%lx\n", > +                       cmd.cmdidx, (ulong)blkcnt, > (ulong)mmc->read_bl_len, > +                       (ulong)cmd.cmdarg); >                 return 0; > +       } > >         if (blkcnt > 1 && !(mmc->host_caps & MMC_CAP_CMD23)) { >                 if (mmc_send_stop_transmission(mmc, false)) { > @@ -547,6 +558,8 @@ ulong mmc_bread(struct blk_desc *block_dev, > lbaint_t start, lbaint_t blkcnt, >         } > >         if (mmc_set_blocklen(mmc, mmc->read_bl_len)) { > +               log_err("mmc: CMD16 blocklen=%lu failed, read of %lu > blocks aborted\n", > +                       (ulong)mmc->read_bl_len, (ulong)blkcnt); >                 pr_debug("%s: Failed to set blocklen\n", __func__); >                 return 0; >         } > @@ -556,6 +569,8 @@ ulong mmc_bread(struct blk_desc *block_dev, > lbaint_t start, lbaint_t blkcnt, >         do { >                 cur = (blocks_todo > b_max) ? b_max : blocks_todo; >                 if (mmc_read_blocks(mmc, dst, start, cur) != cur) { > +                       log_err("mmc: read of %lu blocks at lba %lx > failed (b_max=%u)\n", > +                               (ulong)cur, (ulong)start, b_max); >                         pr_debug("%s: Failed to read blocks\n", > __func__); >                         return 0; >                 } > diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c > index 962a99cd05a..339b222bb68 100644 > --- a/drivers/mmc/sdhci.c > +++ b/drivers/mmc/sdhci.c > @@ -131,6 +131,7 @@ static int sdhci_transfer_data(struct sdhci_host > *host, struct mmc_data *data) >         dma_addr_t start_addr = host->start_addr; >         unsigned int stat, rdy, mask, timeout, block = 0; >         bool transfer_done = false; > +       ulong t0 = get_timer(0); > >         timeout = 1000000; >         rdy = SDHCI_INT_SPACE_AVAIL | SDHCI_INT_DATA_AVAIL; > @@ -138,6 +139,13 @@ static int sdhci_transfer_data(struct sdhci_host > *host, struct mmc_data *data) >         do { >                 stat = sdhci_readl(host, SDHCI_INT_STATUS); >                 if (stat & SDHCI_INT_ERROR) { > +                       log_err("sdhci: data err irq=%x present=%x > mode=%x blksz=%x blkcnt=%x blocks=%u/%u t=%lums\n", > +                               stat, > +                               sdhci_readl(host, SDHCI_PRESENT_STATE), > +                               sdhci_readw(host, SDHCI_TRANSFER_MODE), > +                               sdhci_readw(host, SDHCI_BLOCK_SIZE), > +                               sdhci_readw(host, SDHCI_BLOCK_COUNT), > +                               block, data->blocks, get_timer(t0)); >                         log_debug("Error detected in status(%#x)!\n", > stat); >                         return -EIO; >                 } > @@ -294,6 +302,11 @@ static int sdhci_send_command(struct mmc *mmc, > struct mmc_cmd *cmd, >                                 SDHCI_BLOCK_SIZE); >                 sdhci_writew(host, data->blocks, SDHCI_BLOCK_COUNT); >                 sdhci_writew(host, mode, SDHCI_TRANSFER_MODE); > +               if (data->blocks > 1) > +                       printf("sdhci: multi cmd%u arg=%lx blks=%u > blksz=%u mode=%x dma=%u\n", > +                              cmd->cmdidx, (ulong)cmd->cmdarg, > data->blocks, > +                              data->blocksize, mode, > +                              !!(host->flags & USE_DMA)); >         } else if (cmd->resp_type & MMC_RSP_BUSY) { >                 sdhci_writeb(host, 0xe, SDHCI_TIMEOUT_CONTROL); >         } > @@ -325,8 +338,12 @@ static int sdhci_send_command(struct mmc *mmc, > struct mmc_cmd *cmd, >         if ((stat & (SDHCI_INT_ERROR | mask)) == mask) { >                 sdhci_cmd_done(host, cmd); >                 sdhci_writel(host, mask, SDHCI_INT_STATUS); > -       } else > +       } else { > +               log_err("sdhci: cmd%u status mismatch irq=%x mask=%x > present=%x\n", > +                       cmd->cmdidx, stat, mask, > +                       sdhci_readl(host, SDHCI_PRESENT_STATE)); >                 ret = -1; > +       } > >         if (!ret && data) >                 ret = sdhci_transfer_data(host, data); > diff --git a/drivers/mmc/spacemit_sdhci.c b/drivers/mmc/spacemit_sdhci.c > index 13bf6bf6000..23c655c6def 100644 > --- a/drivers/mmc/spacemit_sdhci.c > +++ b/drivers/mmc/spacemit_sdhci.c > @@ -640,6 +640,19 @@ static int spacemit_sdhci_probe(struct udevice *dev) >                 goto err_reset; > >         spacemit_sdhci_phy_init(dev, host); > + > +       { > +               u32 caps = sdhci_readl(host, SDHCI_CAPABILITIES); > +               const char *path = (host->flags & USE_ADMA64) ? > "ADMA64" : > +                                  (host->flags & USE_ADMA) ? "ADMA" : > +                                  (host->flags & USE_SDMA) ? "SDMA" : > "PIO"; > + > +               printf("sdhci: %s path=%s flags=%x caps_sdma=%u > caps_adma2=%u max_clk=%u\n", > +                      dev->name, path, host->flags, > +                      !!(caps & SDHCI_CAN_DO_SDMA), > +                      !!(caps & SDHCI_CAN_DO_ADMA2), > +                      host->max_clk); > +       } >         return 0; > >         /* > > > commit 75d6b28ba7b020d3100586f586ee6d1a4488ac84 > Author: Zixian Zeng > Date:   Sun Oct 11 09:33:20 2026 +0800 > >     debug: Add MMC_CAPS_CMD23 > >     Signed-off-by: Zixian Zeng > > diff --git a/drivers/mmc/spacemit_sdhci.c b/drivers/mmc/spacemit_sdhci.c > index 88e06a681ca..13bf6bf6000 100644 > --- a/drivers/mmc/spacemit_sdhci.c > +++ b/drivers/mmc/spacemit_sdhci.c > @@ -624,7 +624,7 @@ static int spacemit_sdhci_probe(struct udevice *dev) >         /* Set quirks */ >         host->quirks = SDHCI_QUIRK_WAIT_SEND_CMD | >                        SDHCI_QUIRK_32BIT_DMA_ADDR; > -       host->host_caps = MMC_MODE_HS | MMC_MODE_HS_52MHz; > +       host->host_caps = MMC_MODE_HS | MMC_MODE_HS_52MHz | > MMC_CAP_CMD23; >         host->max_clk = plat->cfg.f_max; > >         plat->cfg.f_min = SDHC_MIN_CLOCK; > > > With appling these two commits, Debug logs as follows: > > ⋊> hack@morise ⋊> ~/k/u-boot on k1-dave-mmc ⥄ git log --oneline > origin/next..HEAD > 53c0ff5f65b (HEAD -> k1-dave-mmc) Add mmc debug log > 75d6b28ba7b debug: Add MMC_CAPS_CMD23 > 6b4af8b1dd8 mmc: k1: do not release the shared AXI clock and reset on > probe failure > 4114764d716 mmc: k1: let the SPL read SD cards more than one block at > a time > 6676ce89521 mmc: k1: handle a missing max-frequency and > clk_set_rate()'s return value > 6427189ef33 spacemit: k1: fall back to the other boot devices in SPL > b58a31797d7 spacemit: k1: do not require a PMIC or an SPI controller > in SPL > > U-Boot SPL 2026.10-rc5-00641-g53c0ff5f65b0 (Oct 11 2026 - 10:31:28 +0800) > Fail to detect board:-2 > vdd_core, value:900000 > vdd_1v8, value:1800000 > vdd_1v8_mmc, value:1800000 > DDR firmware: [0xc081d700]:0xf0227179, size:0x8d98 > DDR is ready > No SPI controller (-19) > Trying to boot from MMC2 > sdhci: mmc@d4280000 path=PIO flags=0 caps_sdma=1 caps_adma2=1 > max_clk=204800000 > mmc: multi-blk blkcnt=32 clk=50000000 mode=2 width=4 caps=300207ef > cmd23_host=1 scr0=2358043 cmd23_card=1 > sdhci: multi cmd18 arg=2 blks=32 blksz=512 mode=32 dma=0 > sdhci: data err irq=408020 present=1070800 mode=32 blksz=7200 > blkcnt=12 blocks=12/32 t=2ms > mmc: cmd18 read failed: blks=32 blksz=512 arg=2 > mmc: read of 32 blocks at lba 2 failed (b_max=65535) > sdhci: cmd16 status mismatch irq=18000 mask=1 present=1070000 > sdhci: cmd16 status mismatch irq=18000 mask=1 present=1070000 > sdhci: cmd16 status mismatch irq=18000 mask=1 present=1070000 > sdhci: cmd16 status mismatch irq=18000 mask=1 present=1070000 > sdhci: cmd16 status mismatch irq=18000 mask=1 present=1070000 > mmc: CMD16 blocklen=512 failed, read of 1 blocks aborted > spl: partition error > Error: -38 > SPL: Unsupported Boot Device! > Trying to boot from MMC1 > alloc space exhausted ptr 104380 limit 100000 > Aligned buffer alloc failed > spl: could not find mmc device 0. error: -19 > Error: -19 > SPL: Unsupported Boot Device! > Trying to boot from SPI > Invalid bus 0 (err=-19) > SPI probe failed. > Error: -19 > SPL: Unsupported Boot Device! > SPL: Unsupported Boot Device! > SPL: failed to boot from all boot devices > ### ERROR ### Please RESET the board ### > > > After I revert the multi-block SD read commit, > I booted into u-boot proper. Debug logs as follows: > > ⋊> hack@morise ⋊> ~/k/u-boot on k1-dave-mmc ⥄ git log --oneline > origin/next..HEAD > 55e8da25a70 (HEAD -> k1-dave-mmc) Revert "mmc: k1: let the SPL read SD > cards more than one block at a time" > 53c0ff5f65b Add mmc debug log > 75d6b28ba7b debug: Add MMC_CAPS_CMD23 > 6b4af8b1dd8 mmc: k1: do not release the shared AXI clock and reset on > probe failure > 4114764d716 mmc: k1: let the SPL read SD cards more than one block at > a time > 6676ce89521 mmc: k1: handle a missing max-frequency and > clk_set_rate()'s return value > 6427189ef33 spacemit: k1: fall back to the other boot devices in SPL > b58a31797d7 spacemit: k1: do not require a PMIC or an SPI controller > in SPL > > > U-Boot SPL 2026.10-rc5-00642-g55e8da25a70c (Oct 11 2026 - 10:38:42 +0800) > Fail to detect board:-2 > vdd_core, value:900000 > vdd_1v8, value:1800000 > vdd_1v8_mmc, value:1800000 > DDR firmware: [0xc081d740]:0xf0227179, size:0x8d98 > DDR is ready > No SPI controller (-19) > Trying to boot from MMC2 > sdhci: mmc@d4280000 path=PIO flags=0 caps_sdma=1 caps_adma2=1 > max_clk=204800000 > > > > > U-Boot 2026.10-rc5-00642-g55e8da25a70c (Oct 11 2026 - 10:38:42 +0800) > > DRAM:  4 GiB > Core:  339 devices, 23 uclasses, devicetree: separate > MMC:   sdhci: mmc@d4281000 path=PIO flags=0 caps_sdma=1 caps_adma2=1 > max_clk=204800000 > sdhci: mmc@d4280000 path=PIO flags=0 caps_sdma=1 caps_adma2=1 > max_clk=204800000 > mmc@d4280000: 1, mmc@d4281000: 0 > Loading Environment from nowhere... OK > In:    serial@d4017000 > Out:   serial@d4017000 > Err:   serial@d4017000 > Net:   No ethernet found. > => mmc dev 1 > mmc: multi-blk blkcnt=32 clk=50000000 mode=2 width=4 caps=300207ef > cmd23_host=1 scr0=2358043 cmd23_card=1 > sdhci: multi cmd18 arg=2 blks=32 blksz=512 mode=32 dma=0 > mmc: multi-blk blkcnt=32 clk=50000000 mode=2 width=4 caps=300207ef > cmd23_host=1 scr0=2358043 cmd23_card=1 > sdhci: multi cmd18 arg=2 blks=32 blksz=512 mode=32 dma=0 > ... omit duplicate logs > mmc: multi-blk blkcnt=2 clk=50000000 mode=2 width=4 caps=300207ef > cmd23_host=1 scr0=2358043 cmd23_card=1 > sdhci: multi cmd18 arg=82002 blks=2 blksz=512 mode=32 dma=0 > switch to partitions #0, OK > mmc1 is current device > => > => mmc list > mmc@d4280000: 1 (SD) > mmc@d4281000: 0 > => > => mmc info > Device: mmc@d4280000 > Manufacturer ID: 3 > OEM: 5344 > Name: SD32G > Bus Speed: 50000000 > Mode: SD High Speed (50MHz) > Rd Block Len: 512 > SD version 3.0 > High Capacity: Yes > Capacity: 29.7 GiB > Bus Width: 4-bit > Erase Group Size: 512 Bytes > > I enabled MMC_CAP_CMD23 and the card does support it (SCR bit 1, > cmd23_host=1 and cmd23_card=1 in the log above), so the SPL really > used SET_BLOCK_COUNT + CMD18 without CMD12 - and it still aborts the > data phase with SDHCI_INT_DATA_END_BIT after ~20 of 32 blocks. > Booting U-Boot proper and issuing the same 32 block CMD18 from the same > card succeeds, with the same PIO path (flags=0, dma=0), the same SD_HS > mode, the same 4-bit bus and the same CMD23 usage. > So I think CMD23 is not the trigger, the SPL fails with the FIFO > permanently backed up (it drains slower than card delivers, so the > controller has to stop the SD clock inside a block). > > Now answering your questions: > mode    : mode=2 = SD_HS, in both stages > clock   : requested 50 MHz (SD_HS) in both stages > bus     : 4-bit bus, in both stages > path    : PIO in both stages > CMD23   : the card supports it and both stages use CMD23 + CMD18 > > Hi Zixian, Thanks for the logs. I hit the same pattern while testing the Cadence SD6HC driver. Multi-block reads failed and single-block reads worked. On that board the host and the card were in 1.8 V mode, but the I/O supply had been left at 3.3 V. A short transfer got through; a longer one failed on the data lines. Both stages on K1 use the same PIO loop, so a FIFO that drains slower than the card delivers would show up in U-Boot proper as well. Your SPL/proper split fits an electrical setup difference. The SPL failure is irq=408020. Bit 22 is the Data End Bit Error (EDEB, SD mode only): the controller detected 0 at the end-bit position of read data on DAT, or of the write CRC status. That is a bad edge on the data line during the transfer. On the Banana Pi F3, aldo1 is vqmmc-supply of &sdhci0. The U-Boot dtsi names it vdd_1v8_mmc, and the SPL prints "vdd_1v8_mmc, value:1800000" before MMC2. set_vdd_mmc() in board/spacemit/k1/spl.c, called from board_init_f(), writes 1800000. The dts leaves aldo1 at 0.5 V to 3.4 V. SD High Speed (mode=2) uses 3.3 V signaling; 1.8 V is only after a UHS switch. mmc1_cfg is power-source 3300, and mmc1_uhs_cfg is the 1.8 V state. For this mode the rail should be 3.3 V. CONFIG_SPL_MMC_IO_VOLTAGE is not set, so mmc_set_signal_voltage() is a stub and signal_voltage stays MMC_SIGNAL_VOLTAGE_000. aldo1 stays at 1.8 V. U-Boot proper has CONFIG_MMC_IO_VOLTAGE. mmc_set_initial_state() requests MMC_SIGNAL_VOLTAGE_330, so the driver writes 3300000 to the same vqmmc-supply and clears SDHCI_CTRL_VDD_180 before the transfer that succeeds. CONFIG_SPL_PINCTRL is not set either. The driver calls pinctrl_select_state() under IS_ENABLED(CONFIG_PINCTRL), but that function is a stub unless CONFIG_IS_ENABLED(PINCTRL), and the return is ignored. SPL never applies mmc1_cfg. Proper selects "default" for SD_HS, which is that state. Keeping the multi-block path, set_vdd_mmc() to 3300000, or enable CONFIG_SPL_MMC_IO_VOLTAGE. If the 32-block CMD18 still fails, enable CONFIG_SPL_PINCTRL so mmc1_cfg is applied. If either makes the read succeed, this is the F3 failure. Regards, Tanmay