Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4205162rdb; Mon, 11 Dec 2023 11:52:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IFg0ytzbGbddbOAKRvWtHQJK+Z+cmepv06qWfkWduNCZG9kPazIRbr/6s7Qbk/kbkip8MO4 X-Received: by 2002:a17:90a:69a4:b0:286:5179:144f with SMTP id s33-20020a17090a69a400b002865179144fmr1950886pjj.27.1702324337133; Mon, 11 Dec 2023 11:52:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702324337; cv=none; d=google.com; s=arc-20160816; b=Z+ub7s6KPfMCMYwH+ycV1tp3QFQ+9SM9uw/X/LcJiQiyG4LJ88JqLLnNviV4TmUv59 dbu/7ByCPTyVdUf7Wi+LCIHgPA6QYBSDhM66O9tNFGZrCRW28rzVYXGyPyXqcLxM9iX3 j2tZaWE6rzdfZMoVlhDQttPOB/jQHpBOMpIIuhgrqBkz7xWJcKZgMXklvqCXXCOSLs88 KbNNyJw6TKFs+D3TMawsQB68ZQQX0WF8yxopdbjDRObFdawI1J97kxSB5BGYAB/E+i7C FzaTL3XakJNWJZpNw6evwJTIToxtQ6SjzxysMs8VxN0FCGe6nTo9wPY+4J2N4Vv2B3ln xn/A== 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=qq03Jo5f/IYnaWG7QuyK0Yjjv5PibXRKmzmjiucs3YU=; fh=4Gmz68KEe9BLqgso88wldlCGa1MW4hHl4zim97Firec=; b=qolnmKBqQ6Wc3lQ/aeVJGxTXzQlIopKNNe59Wih1K0IVN+7nBHhPhLfH4Gu2Vjjff9 G9AVrddAQxcUFh7XaKSDfkx8WZwzpUMvO14FMuc4DNZ9c7LNAlyAZKUuZiNsq31GSsVk +jtLBi1fpajMxDPGKvY31tDYzhkJHYrTOfpy4bUL8Ya+GELbPQXzHyR4WsFbcOjd47ED DK2g3lzVHPh4kcprHCqWS4jZm9LEx3x3bt4enelWMuUjXF5v7UkhA7yL/+MXwSvH4Ff8 SAKi7m1Q4nHC0u0mLU/7jWyJa2fqI2jDmAmGzKkw898jUft0cQoyKz3a1kfxQgcrzcCQ WU2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Sw5nZoun; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id a1-20020a17090a854100b002886a675f0fsi7987094pjw.31.2023.12.11.11.52.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 11:52:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Sw5nZoun; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id AEB1780B1E52; Mon, 11 Dec 2023 11:52:14 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344862AbjLKTv5 (ORCPT + 99 others); Mon, 11 Dec 2023 14:51:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344839AbjLKTvz (ORCPT ); Mon, 11 Dec 2023 14:51:55 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A86ECD2 for ; Mon, 11 Dec 2023 11:52:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702324320; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qq03Jo5f/IYnaWG7QuyK0Yjjv5PibXRKmzmjiucs3YU=; b=Sw5nZoung7xMhxj58XlQ5mccLYPLEvoxKtXSnnPT5e81JUsK5yJBfrzejm4095mwXK45Mj dwusmnldtKXiAgQSHpF9JtgiOcMCjftalbRI8x3m0AYDjyHrqMZx71xZgiHsmv0iYwN0G6 CSZcn8jOJJ3KkIBJ2dHrNGifzUQgv7w= Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-325-qvE_oCZsOsCwM3PcvCPmJw-1; Mon, 11 Dec 2023 14:51:59 -0500 X-MC-Unique: qvE_oCZsOsCwM3PcvCPmJw-1 Received: by mail-qv1-f71.google.com with SMTP id 6a1803df08f44-67a940dcd1aso67481606d6.3 for ; Mon, 11 Dec 2023 11:51:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702324319; x=1702929119; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qq03Jo5f/IYnaWG7QuyK0Yjjv5PibXRKmzmjiucs3YU=; b=YynCgkDiaQur8ge5F3ZAYYCeL2Q7pSR60CS+JmE+H6HmrreMRSW9OIMDoBfmtXanjI V0Qp05Jzdf2GADXlfxrC1FSqSqvGmJTZ7x8Kt2zNAqnob9qSz0r9S5vcZ14ENjLMrVqb ZVZIF0xoTgDKximBpHK2t2Vt6nS0vNnaWSaICYDlhlcx7mjBD7rSVnv1mxTnn0mI8Eod npW5n1RgIZ3xdyzXDzfBMDJ/pB9vUp9cf0GG2Yu44wHz1C0gtp+kyslGFCwDZAgJqsX4 XXAXGm70qF9ubAddPQEgigyCz0MiuHA2wgOJRkt2uX5qfVfzf8rkPM3nH5Is3PH0gO1R 7xFQ== X-Gm-Message-State: AOJu0YzNKgWAGyy+m1cFZ2mGTcz055rW8naRV/0/G2SX6iHMvcqVITFQ cHjOLxrIkpv0BGtAkHV6e/zqevzfUFWxyunNVV8WeEWKn2G3oF3cGHxRvuC2N6pE9qL33pyrj+Y 13ZJNg6klhv2jZ6oui6PPYffW X-Received: by 2002:ad4:59d0:0:b0:67a:a721:82e8 with SMTP id el16-20020ad459d0000000b0067aa72182e8mr5502193qvb.66.1702324318989; Mon, 11 Dec 2023 11:51:58 -0800 (PST) X-Received: by 2002:ad4:59d0:0:b0:67a:a721:82e8 with SMTP id el16-20020ad459d0000000b0067aa72182e8mr5502181qvb.66.1702324318771; Mon, 11 Dec 2023 11:51:58 -0800 (PST) Received: from fedora ([2600:1700:1ff0:d0e0::37]) by smtp.gmail.com with ESMTPSA id bo14-20020a05621414ae00b0067aaa7483efsm3533358qvb.6.2023.12.11.11.51.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 11:51:58 -0800 (PST) Date: Mon, 11 Dec 2023 13:51:56 -0600 From: Andrew Halaney To: Bart Van Assche Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Manivannan Sadhasivam , "James E.J. Bottomley" , "Martin K. Petersen" , Yaniv Gardi , Dov Levenglick , Will Deacon , linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] scsi: ufs: qcom: Perform read back after writing reset bit Message-ID: References: <20231208-ufs-reset-ensure-effect-before-delay-v1-1-8a0f82d7a09e@redhat.com> <0d59681d-2d7d-4459-b79c-c5f41f20b7a5@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0d59681d-2d7d-4459-b79c-c5f41f20b7a5@acm.org> X-Spam-Status: No, score=0.6 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 11 Dec 2023 11:52:14 -0800 (PST) On Mon, Dec 11, 2023 at 09:59:25AM -0800, Bart Van Assche wrote: > > On 12/8/23 12:19, Andrew Halaney wrote: > > The recommendation for ensuring this bit has taken effect on the > > device is to perform a read back to force it to make it all the way > > to the device. This is documented in device-io.rst [... ] > There are more mb()'s that need to be replaced, namely the mb() calls in > ufshcd_system_restore() and ufshcd_init(). I'll poke at those in v2 (or in a separate series if this is scooped up prior). Thanks, Andrew