From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EF6BB37DADE for ; Tue, 12 May 2026 13:33:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=209.85.167.51 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778592827; cv=pass; b=a0mS/5OAr8wpQmZAgGVLlxo5uZEeILhvI/TtXlohaZk1ZmyPq7As5hXBCicJ/NmpgM18SPt1oh/jLB7qI9MLYg7HR5dzyOQLUQHLeNUUZYxWpubmOwbjYP5914e5LlE5eQ1yECKZqdVb/ulJfQAvsAFUkPPaEgD450GllmLWebE= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778592827; c=relaxed/simple; bh=+mxx1NeFBdLFZ5BiUM22SxP9V5/01FP0eGozBut0nK0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=oGC5A5IdsXuXq3RNa/6za7h1+5GU1GMue/RgmYityUBfzBloE5mCxgcw6mPUVFm2tibtecN4KAGkMXkk7E6Q4chWfwcC07MBclXBntJaCKc1QJs6Gh7mTvmG2gr/f+j9WrFTfV6AFsf89J8SIdu0hozNSvV892uhIBRGT+2McAI= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=DinNm6it; arc=pass smtp.client-ip=209.85.167.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="DinNm6it" Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-5a8891f0c51so5259387e87.1 for ; Tue, 12 May 2026 06:33:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1778592824; cv=none; d=google.com; s=arc-20240605; b=E/oNTUd6ZipnjylsMygIsYeE8QixX37FH16o9LSdemita7mYYzk8JQSAUaBxWV3vMT BTT4tqrqhCxX2tX53mQ4CsiPmJF+xL9JpSMWcwIEAS3E9tN8Xu6zX6jLQrFG8tTjNzib j6udxDugqMC+JNyQtqPWWgqmyulFdwe0sMtI/+LOIw/R7dTfUomJ0ALHhmuLgZbaICvg 2XuY4nxnE/i8Th8wotbk9ZLPrxZWQOxmAgivc/cVns37VJcpPfeNjYw9Su8LN2zT+HuN dzygEC9H2J+etVuZPtnrCe3Z7Dw0/Mh3JY/jZ/bRx/CYSJrFhPRX+zdcsrhLLtHl3wk7 euaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=+mxx1NeFBdLFZ5BiUM22SxP9V5/01FP0eGozBut0nK0=; fh=OExxKOgbrxFoaVlMQlM0f0CrjH4B+Ez5huMzzWxfnyk=; b=Mmb/aHcUOKhuH58+TczvK5JuOzf+lPdZNIAsvuEMCgbRWCHXTxmVPnjj8o5/kk2vSc zVxG6ugiE0kJYDmORkHb8G06BulXhxGA4kYGI6ElyQg0tYExD7NERvfa3gsoSC+18A/Q zQgvGwJHOc1/2yDMi85N2Cy1NxwqusHI+0fz+ARpF8mFw+ArOwm3F+CmAernzMv4hXtw JAGeqfHIKSyi8CGQdc9e3yLHDYiv65lmTK+aNVzkZzF1QDPfH44LIy/S498T7pACOrjY ZVVBnWD4pPkDaqrIHr2y2VGBKX3elmeaUHIRiTo9+4G6Gvvym/nex34L3IraciJz8ByX QhNg==; darn=vger.kernel.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1778592824; x=1779197624; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=+mxx1NeFBdLFZ5BiUM22SxP9V5/01FP0eGozBut0nK0=; b=DinNm6itCplU43BaIih2TkT7g6hLzP+hbZC8tpwdPFRbDa3b8+0NS7zIb5uPlceo7k 5nbz/Tfyu/t87kFQgvATzh2yFdwJ7LCQFi6772YamCGKTg0NgaFY6cNzpWLYDlMuwu4z Q2vdqSJRp2aBOniwoLf2ihSGaDyCVy32oYcHxSZ+TE9FrIKoT48UIrIq89fgJ02/4POi PdisMYLepYJcjEZDNYXYwwMU0W9Ggj5SJuCguk21QL8DD8D8FX9Ae7L9uODg6nLTuv61 NLLQw5uHG/Ysdvsx/OKrRfozeskgvlaQXIMT+SOev2IiziTvL2l/jSXWa5foQ+LconUf rRGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778592824; x=1779197624; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=+mxx1NeFBdLFZ5BiUM22SxP9V5/01FP0eGozBut0nK0=; b=JPrZS8oFs1tOsm7VMmAymQdsnCHLaqzi0TRe55ooFtZcFXIMVV8AUMzW1+1RSGcfJ1 +HgfjAxkAAxfgJKd/3OVwVhMN7t/Eebvq4eZ3bsFyoo38ZET2Uj0eeENJ9Xn589p+G68 SyufoWmAeuBFkKM6tq0SOPaOkfVhMX2pTVBlTQ7g40lVXaA2tPt+CYehodnWn3WBTb1D bWCuKA/gKxBWMvtD86j4mHuAJpM7B59dMs6IYRPUTZnn/OIifa5ZAL4++qBLazIIYdKu eevzfrsFo4DnTqjs6ht7Ek9yBIeG2AvPSfL909gP+AdXjz4Vc8yMAhXzQPZh8oGWjCq6 H5VA== X-Gm-Message-State: AOJu0Yw+Hgt1vASVxwxPTzPQWeuUuwv8dMkM74xwvtJuN97fsoQu4Lkh 8rG/CQPUu8wvZIZAF64R7Xc3dgnE0Rq8Ah8BnfW53zv6dJMsCq3WqscnBRnhPvc5quoQZrVZz9R xJllPbxX/7y7+TSKni14ri2neL9zK7LlbDSw5hSllk+ifwJMZRNdSwuU= X-Gm-Gg: Acq92OHIlTosjsr8rWUL+Xbn1rrkmE6Xczeh4HZ8eY1FUf3hP/rOHEcRo4eZbHfyJVM 9ayiE1GD56ULH/766fCBSyzZOQ/GSUV2X8GdZ3k2DgpWmzPDyZdYlAV8nkTkeu24uCfwrIEnDdz h57paEHiTYyOlnAkcV/BHnZfDEuFocf241ftXquoZJE2+1nN8c0MCMRhmYLP7EAXwyOeH/EnnJK ZDh0Pok6CycrAiiUHZVyjouiMsYJxnd1WkYnKo8m0oPatnKzHkXiccQh9KfKtjTlZVETTpJmpvq ScwdZlJT X-Received: by 2002:a05:6512:138e:b0:5a8:9494:1245 with SMTP id 2adb3069b0e04-5a894941334mr7632411e87.38.1778592824010; Tue, 12 May 2026 06:33:44 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20260413180551.3683969-1-florian.fainelli@broadcom.com> <1d583be4-b1cd-4226-bdbe-5ebd275de9c2@broadcom.com> In-Reply-To: <1d583be4-b1cd-4226-bdbe-5ebd275de9c2@broadcom.com> From: Ulf Hansson Date: Tue, 12 May 2026 15:33:08 +0200 X-Gm-Features: AVHnY4J5Mc_A6lOoCuuGo9KxjP3SD71ix0wvaaOJ_hIN21RnOB8an_Gh3NCI_zg Message-ID: Subject: Re: [PATCH] mmc: core: Kioxia 016G01 does not enter boot mode after SLEEP To: Florian Fainelli Cc: linux-kernel@vger.kernel.org, Ulf Hansson , Wolfram Sang , Oleksij Rempel , Avri Altman , Pedro Demarchi Gomes , Erick Shepherd , Adrian Hunter , "open list:MULTIMEDIA CARD (MMC), SECURE DIGITAL (SD) AND..." Content-Type: text/plain; charset="UTF-8" On Mon, 11 May 2026 at 18:01, Florian Fainelli wrote: > > On 5/11/26 07:18, Ulf Hansson wrote: > > On Mon, 13 Apr 2026 at 20:06, Florian Fainelli > > wrote: > >> > >> The Kioxia 016G01 eMMC device does not exit SLEEP mode when sending CMD0 > >> which prevents the system from properly resuming from S3 warm boot where > >> the eMMC is necessary to pull in the boot components. > > > > Is the bug confirmed by Kioxia? > > We've been going back and forth with them without much progress as far > as a resolution goes. Since there was no progress and I would like to > get this included in downstream kernels at some point, this was submitted. > > > > > If not, can you explain a bit more what is actually happening during > > system resume? > > Upon entering Suspend-to-DRAM, the eMMC will be put into sleep mode. > When our systems resume, one of our hardware cores driving the eMMC (HIF > block) in command mode will send a CMD0 command for the eMMC device to Is the CMD0 sent solely by HW/FW before the mmc core executes _mmc_resume() during system resume? > exit SLEEP mode. The Kioxia 016G01 device takes 10ms rather than the > tSLEEP_EXIT value of 1ms which is advertised and so our HIF block does Can you please clarify what tSLEEP_EXIT refers to? Are you referring to the S_A_TIMEOUT in the EXT_CSD register for the eMMC card? Anyway, waking up an eMMC from sleep state in just 1ms sounds a bit optimistic to me. > not see the Boot ACK pattern in time and does not service the read > request from the processor that wanted to read from eMMC, we get a reset > of the system, rather than continue booting. > > When SLEEP is not enabled, the eMMC device responds within tSLEEP_EXIT > as advertised and we don't have that problem. Okay, I see. In this regard, it's important to understand for me how the mmc host driver (and the HW/FW) manages VCC and VCCQ when the mmc core calls mmc_power_off() from _mmc_suspend()? Does this turn off any of these regulators or what happens to them during system suspend? > > So I suppose I could reformulate the commit message and give some more > details here if you would like? Yes, but let's discuss a bit more first. Kind regards Uffe