Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp914106pxk; Thu, 17 Sep 2020 21:17:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4Zz7MS54aQfTsBEBxot0oMy3pIYZvn7wf69Ryw2wu2IFzsj1ROGxj9a3nq4RkNvrJn633 X-Received: by 2002:a17:906:f43:: with SMTP id h3mr33031487ejj.338.1600402637912; Thu, 17 Sep 2020 21:17:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600402637; cv=none; d=google.com; s=arc-20160816; b=Vdm6PY6fcSOHQDjb+303Wrn1obLlSn+/GX2ilmn7pEuQCF8oL+Abllulc3TbhRvycu uPbCo/5kDt7yLm8OHiaMBNyhnl40zQn6ahQn3EX7J53QjvWsJ/n8KMzRG7p65jQibk5h KBkkjWLJ0XdCnBtwq6Nr4yTWtARE26ApC4LUFHRkwQBj/YyoCbICUK/eE//2irN2v6ke /GGl9TW3B18k75CEUQ4/TQiJg8GwerQL0YdF2FyC5sOyhX8ACkiIfFOafh2DRYQVHhyv IBf/IMpXjfYZQlBDQ2JZCEkGuA4532LKUo9j+wnjcuqxv+bgS/ug7LjD5SmAu5i2xv5g nVYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=uH7Yy2cmlFMnyaSkLJITNDGZMA8CddYQV7BmrbmW5C0=; b=p+NfoKhe9+M9G0SH1iEeHmMkR9ED0msfBXWnev2QShGQ3xK8rvxaOSIyeM5cI1YAV0 SNb6GzHmJzh2khH0WIpDpYvUGksuNNYdi9H/Vr7u8rW4sNGaDqASG0FEVARsTHL9nBg/ DOa08WE6mGPKT2yQOM3g0QpCn0tivAnV46ZKMVPuFnRZyGH4tcthQu+v+LSTOdU9SOwi XOAs5JR7dG958JfXLL05Jkv98W+Q+G53diwBGJck0kihPeVPYWlmjzdQpoOLzibn1iuN mdKY+t81olD4aN597gn+z5GAFgm9cnhRBmGfzxWMzoMBDuBT8sxSh6zqoZniZ16GZt6q 4UMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VPyBFZNw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n12si1372706eji.393.2020.09.17.21.16.54; Thu, 17 Sep 2020 21:17:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VPyBFZNw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726510AbgIREN5 (ORCPT + 99 others); Fri, 18 Sep 2020 00:13:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:56222 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726198AbgIREN5 (ORCPT ); Fri, 18 Sep 2020 00:13:57 -0400 Received: from localhost (unknown [104.132.1.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5573123770; Fri, 18 Sep 2020 04:13:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600402436; bh=Dzx2SgdN6Jiki5P08sC+O9f4HKaRJsQSU/WYw/7w1cs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VPyBFZNwGNGNEVVrc8IUbtRybiul5rxNJIusgPICS+h2n6vjSU2lhGgJYML5FJjIR T7Ga6ErZGPHu1DVa3/7RhU8Wri8lMfGf0ZaneDoUia1H3F+5LNZTFxVKa1RdDWQHU1 88O5imM089P1bYcVpUdQ8gZ6XvR/EGe1UYtN/vDA= Date: Thu, 17 Sep 2020 21:13:55 -0700 From: Jaegeuk Kim To: Can Guo Cc: Bean Huo , linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, kernel-team@android.com, Alim Akhtar , Avri Altman Subject: Re: [PATCH 5/6] scsi: ufs: show ufs part info in error case Message-ID: <20200918041355.GB3300389@google.com> References: <20200915204532.1672300-1-jaegeuk@kernel.org> <20200915204532.1672300-5-jaegeuk@kernel.org> <20200916160533.GA1011272@google.com> <06eb20588007cf87181446ab3946e8b2@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <06eb20588007cf87181446ab3946e8b2@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/17, Can Guo wrote: > On 2020-09-17 00:05, Jaegeuk Kim wrote: > > On 09/16, Bean Huo wrote: > > > On Tue, 2020-09-15 at 13:45 -0700, Jaegeuk Kim wrote: > > > > Cc: Avri Altman > > > > Signed-off-by: Jaegeuk Kim > > > > --- > > > > drivers/scsi/ufs/ufshcd.c | 8 ++++++++ > > > > 1 file changed, 8 insertions(+) > > > > > > > > diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c > > > > index bdc82cc3824aa..b81c116b976ff 100644 > > > > --- a/drivers/scsi/ufs/ufshcd.c > > > > +++ b/drivers/scsi/ufs/ufshcd.c > > > > @@ -500,6 +500,14 @@ static void ufshcd_print_tmrs(struct ufs_hba > > > > *hba, unsigned long bitmap) > > > > static void ufshcd_print_host_state(struct ufs_hba *hba) > > > > { > > > > dev_err(hba->dev, "UFS Host state=%d\n", hba->ufshcd_state); > > > > + if (hba->sdev_ufs_device) { > > > > + dev_err(hba->dev, " vendor = %.8s\n", > > > > + hba->sdev_ufs_device- > > > > >vendor); > > > > + dev_err(hba->dev, " model = %.16s\n", > > > > + hba->sdev_ufs_device->model); > > > > + dev_err(hba->dev, " rev = %.4s\n", > > > > + hba->sdev_ufs_device->rev); > > > > + } > > > > > > Hi Jaegeuk > > > these prints have been added since this change: > > > > > > commit 3f8af6044713 ("scsi: ufs: Add some debug information to > > > ufshcd_print_host_state()") > > > > > > https://patchwork.kernel.org/patch/11694371/ > > > > Cool, thank you for pointing this out. BTW, which branch can I see the > > -next > > patches? > > > > Hi Jaegeuk, > > This patch comes from a series of changes trying to fix and simplify > the UFS error handling. You can find the whole series here - they are > picked up on scsi-queue-5.10 > > https://lore.kernel.org/linux-scsi/1596975355-39813-10-git-send-email-cang@codeaurora.org/ > > Besides, several more fixes for error handling based on above series are > > https://lore.kernel.org/patchwork/patch/1290405/ > & > https://lore.kernel.org/linux-scsi/159961731708.5787.8825955850640714260.b4-ty@oracle.com/ > > I've mainline all above changes to Android12-5.4 and Android11-5.4. I've seen the patches in Android branches. Thank you for the explanation. > > Moreover, there are 2 more fixes on the way for error handling, I > will push them soon. BTW, could you please take a look at these patches? Thanks, > > Thanks, > > Can Guo. > > > > > > > Thanks, > > > Bean