Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp756955rdb; Mon, 29 Jan 2024 18:32:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IHQQKdGP11x6fYzyCfc2Sf6bHhRHWB9Qco9elg8gHsyyy33FQnWuniX1zrabWWraJ9pq+Ia X-Received: by 2002:a17:90a:bd95:b0:295:b440:9751 with SMTP id z21-20020a17090abd9500b00295b4409751mr131954pjr.44.1706581933439; Mon, 29 Jan 2024 18:32:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706581933; cv=pass; d=google.com; s=arc-20160816; b=RAjXwZd9kJFQHmajXam6vkXSPE+Df3RKSAFEsynp9NthP6Xnt5TVImxrbUyTScDryH JNJeoUyvhMQm+5H3t3xclcPHu2NZgSVxtkCctJOP2cnG81BccWHMXTL7jXOo2HFCMbaF T7a4Bj8+ScnYh06C9VuOFP6l/yQt3yx9e9tVS4Y8nssQCoSseUCX8OwGVdRevT1bGLzF /XAyLfJ2MBjMDw+z8OrHVeqC81/BZI+BFpfynuU40M2f8tt4ze8I9FPoxnlbLjnqQ88a +LF1Iijxc51mq3dTC86BF+L/RNvIDCfDXkUPNhnk6+vNajKOhJrzn8+z7/7H5shevmbv KEJA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=tSdBOJQuqBqTGbHFIEL4Bsj/aJKjebNuxL4HEajLauw=; fh=A2y8kSdeX8kSGXnAnHuhrXGrwU0I26wVtTx+9Bh1K5w=; b=LRQbDULg7T/DXXIuA1LMkysp3vvrdic9GMS6ltKwwYIBJ8dETvc+HPAfZRQ4RsvlKi XBIb3jqBaWyu/W86Vy44N+c4ywGi0eyw+Hu9PATYKb9XOQl26NLMJUs1DelGB15VsxNU J7CYpbmN0ClY4+V+tGNOu7B9wJMpdrL29XTxbGDnV6qjA7y6XKzkZmc8ng1wmS+VhLkA 50XJnc4XxkUTXXLN3tSx6WA8E3RpYATy34UwSSN2coyQMV2x5AQoViDXbLy5/++BodEz Vq6S9xc/Sm+eRt/aApRhIbzSmvIK43yijA/JGLLBRHQR/2RdiP/Ix8LEnMdgbyVvPpGK 1fzw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=PCRTbGCj; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel+bounces-43826-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43826-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s9-20020a17090aad8900b002900c676271si8521355pjq.14.2024.01.29.18.32.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 18:32:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43826-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=PCRTbGCj; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel+bounces-43826-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43826-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 42F1B289DF2 for ; Tue, 30 Jan 2024 02:29:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 162B0383AF; Tue, 30 Jan 2024 02:27:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="PCRTbGCj" Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF7D5364C6; Tue, 30 Jan 2024 02:27:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.165.32 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706581663; cv=none; b=N6PjnOKh/XpRvj2F9FoW/MjprY0hkbNp8UByXk9gx3y+4CF/PL0EOxxBdLR/bSy4yOFiRPriyrY5Nmfgwo829XBvsC+D6CVEAOiVHPrcbsU/IvHu4hWvvW5ymz9XP0W6pd2lOvZkeMHMqzydGAcH/cwpLwZVqt6Rfv06J9MGXaY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706581663; c=relaxed/simple; bh=z13I5ybnzMVN5WhzhM32kJmhR0ljPHz0r70EoqO8aQA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=dZX99hiV/JvkpnB0FEsC5TgbYV6lPPaiIp99QtklQ2zehUufk1pWpXRQrsRHUD1iL6P5XFp4sJQnjY00nWtdzXyk4vlnIA9PtEW36gJ/VkkTCwUZRve7MLmo3Fl9GGKD+OI7rX/uTP/+deoYuckzGWyPdvpePL+ORSB4ugC4lZs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=PCRTbGCj; arc=none smtp.client-ip=205.220.165.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 40TJiRkb004393; Tue, 30 Jan 2024 02:27:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding; s=corp-2023-11-20; bh=tSdBOJQuqBqTGbHFIEL4Bsj/aJKjebNuxL4HEajLauw=; b=PCRTbGCj5OJYh42/kscjK58HJEjYbXG0VQxI9D8AS7DymHKjYRcp0GYuVSxMnqWeMY7L Y5DqXikrzShY5pZlw0s92OYuz6G6nNrNat82f4s1cRoPbu+lv4MCHI0jWxVRNFJiMZ54 gF0iaHWH4xL7vtHwJ/epwx7zbYNi4W2X3xejRt72I0AGG8mp/ryeXyPgicZkW/GhmRBI JSb6jXjPpTNXLAog9/cGHAweOeNLUkELXir1INlp+FFBZl3ax4OrL7ZDdyf+A8gh99Sr WIshSSasY6MPCh0UnK942zFn5xk+8jGGbZJi3AJL0oO/JeiJhjoydVUQCaSD8HrP6l0K jg== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3vvsqawf7r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 30 Jan 2024 02:27:34 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 40U0vF3f014520; Tue, 30 Jan 2024 02:27:33 GMT Received: from pps.reinject (localhost [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3vvr96g51c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 30 Jan 2024 02:27:33 +0000 Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 40U2RPxo040916; Tue, 30 Jan 2024 02:27:33 GMT Received: from ca-mkp2.ca.oracle.com.com (mpeterse-ol9.allregionaliads.osdevelopmeniad.oraclevcn.com [100.100.251.135]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTP id 3vvr96g4y7-6; Tue, 30 Jan 2024 02:27:32 +0000 From: "Martin K. Petersen" To: Bjorn Andersson , Konrad Dybcio , Manivannan Sadhasivam , "James E.J. Bottomley" , Eric Chanudet Cc: "Martin K . Petersen" , linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] scsi: ufs: qcom: avoid re-init quirk when gears match Date: Mon, 29 Jan 2024 21:27:02 -0500 Message-ID: <170657812687.784857.2745114891755367401.b4-ty@oracle.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20240123192854.1724905-4-echanude@redhat.com> References: <20240123192854.1724905-4-echanude@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-29_15,2024-01-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 bulkscore=0 malwarescore=0 suspectscore=0 phishscore=0 mlxscore=0 mlxlogscore=867 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2401300015 X-Proofpoint-GUID: esX45kz7BNXdKF6lFjG0bDvpGJpd7c7A X-Proofpoint-ORIG-GUID: esX45kz7BNXdKF6lFjG0bDvpGJpd7c7A On Tue, 23 Jan 2024 14:28:57 -0500, Eric Chanudet wrote: > On sa8775p-ride, probing the hba will go through the > UFSHCD_QUIRK_REINIT_AFTER_MAX_GEAR_SWITCH path although the power info > are same during the second init. > > The REINIT quirk only applies starting with controller v4. For these, > ufs_qcom_get_hs_gear() reads the highest supported gear when setting the > host_params. After the negotiation, if the host and device are on the > same gear, it is the highest gear supported between the two. Skip REINIT > to save some time. > > [...] Applied to 6.9/scsi-queue, thanks! [1/1] scsi: ufs: qcom: avoid re-init quirk when gears match https://git.kernel.org/mkp/scsi/c/10a39667a117 -- Martin K. Petersen Oracle Linux Engineering