Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp904181ybp; Fri, 11 Oct 2019 06:16:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwb1Kk8Dv8mB5JhIyZ3RrkTISjfR3MqJkAcLHjqLK1sckPaf4M8q9Y6mPw6wJrTBEb8cVmJ X-Received: by 2002:a50:98c6:: with SMTP id j64mr13396946edb.295.1570799784574; Fri, 11 Oct 2019 06:16:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570799784; cv=none; d=google.com; s=arc-20160816; b=AMrsqLOeYB+epvZe4YVDcQ/ZANJSdRLLk/21d1+y+ouf99JPavwYIUqddP/z0azSpL knaPGl1n5ay0fjD/Di0hbEosDe9zx1n9VpyQM4EFL94XTLWGwfwI8A5P0NAoUeDIH7De hkEqN1qXPRw4455f443EOXgTScB29jmC2Z43MFVhBe9H9hpfdwYdPetpfYO3ShQopFNF P6uhA6uzFFasxEUutDCeeP++GDhmH54bR6zG9cXJ8riO+MU/dRnULQR1kmnGaOj2dwdO +D+G0xBoQlDozVoQhaozTW2/RtrzEDGRjsKBpEF47W5dF2h+1its/n5JkCbjOuH0oBtu xreQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=2OJ63JRDHcE35+LH+1/BTSgThb8JET2V1q7cuqnG+F0=; b=WCxL2RUeztNlOc+ZTCJ/YdlwUgJhar8ixuYrPpPaIhgx1DRgeh1n+1/B8zSJDBhI1s O+pFxuLYWo/y0J345+y8i28O0hcBz/DxYzqzfuDohooHHZqSTBm0Yzs+Psd43iu+nqxJ jratRfwSoL6SPjXmCBQmvbeNwR7Wy9p0BtgDS/O/LC3T4ayeIOf8mxatj52QgYwESmvx CqmPtjXXYfTYIDVVEmM90kI7E8D+VR4OjioB9fOIc+eZqNR+1knTRbVUX3/YS9tgVw0l QxcIXJxv+Az6KckPlt90DcYKfGztS5PN+Ay2m0f8oLCMJoO6dOT6kp5zLRwtrZxDVDbE bJAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=uIUnsRMl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c31si5481555edb.309.2019.10.11.06.15.59; Fri, 11 Oct 2019 06:16:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=uIUnsRMl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728462AbfJKNPl (ORCPT + 99 others); Fri, 11 Oct 2019 09:15:41 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:53445 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728245AbfJKNPk (ORCPT ); Fri, 11 Oct 2019 09:15:40 -0400 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x9BD6lxu021879; Fri, 11 Oct 2019 15:15:30 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=2OJ63JRDHcE35+LH+1/BTSgThb8JET2V1q7cuqnG+F0=; b=uIUnsRMlUIA++sDY+nCBcDNNH3YlJtiiOVOt88abPsuDz0wB4V8cMuAvWxiNr8gvmhxi 9JbYbEt9W5/ZPNOT5MwG5dr9hDJkuTKzTpt5epXeDRv8YKRFeKYGgZ4EqcvsYdPQTWKA d9rIqaKqB49S0Vd4TVRJgdYwnK5t6OssiS0n5SCbScCRiOVcA+pjbv7GL8tHnbh+fdlA fm902q1QSvLjSFtbW6QB4WSxefLFgvsr+9O5sj+iAMp2zSquHsnmStl4CZiOPxALkr5H bZ+UgYGGNN7bVY+JlUxN52NlvhotyLvTAKd5pEEiFb2PUqHMNIvVqKv9a17svKRncnpr +w== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2vegxw9yag-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 11 Oct 2019 15:15:30 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id CA71310002A; Fri, 11 Oct 2019 15:15:29 +0200 (CEST) Received: from Webmail-eu.st.com (Safex1hubcas21.st.com [10.75.90.44]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id B5F6B2BEC72; Fri, 11 Oct 2019 15:15:29 +0200 (CEST) Received: from SAFEX1HUBCAS23.st.com (10.75.90.46) by SAFEX1HUBCAS21.st.com (10.75.90.44) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 11 Oct 2019 15:15:29 +0200 Received: from lmecxl0923.lme.st.com (10.48.0.237) by webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 11 Oct 2019 15:15:29 +0200 From: Ludovic Barre To: Ulf Hansson , Rob Herring CC: , Maxime Coquelin , Alexandre Torgue , , , , , , Ludovic Barre Subject: [PATCH 0/2] mmc: add unstuck function if host is in deadlock state Date: Fri, 11 Oct 2019 15:15:00 +0200 Message-ID: <20191011131502.29579-1-ludovic.Barre@st.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.48.0.237] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,1.0.8 definitions=2019-10-11_08:2019-10-10,2019-10-11 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ludovic Barre As discussed in this thread: https://patchwork.kernel.org/patch/10786421/ After a request, the host could be in deadlock state, and waiting for a specific action to unstuck the hardware block before resending a new command. This series adds mmc_hw_unstuck callback (structure mmc_host_ops) before resending a new command (call in mmc_blk_mq_rw_recovery, mmc_wait_for_req_done). Ludovic Barre (2): mmc: add unstuck function if host is in deadlock state mmc: mmci: add unstuck feature drivers/mmc/core/block.c | 11 +++++++++++ drivers/mmc/core/core.c | 35 +++++++++++++++++++++++++++++++++-- drivers/mmc/host/mmci.c | 23 +++++++++++++++++++++-- include/linux/mmc/core.h | 1 + include/linux/mmc/host.h | 7 +++++++ 5 files changed, 73 insertions(+), 4 deletions(-) -- 2.17.1