Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp122706rdb; Fri, 5 Jan 2024 05:01:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IEym8BJM/yIwGJyJfYg8Ndl17r6gMbj+Wc4SUv+QNzOlqfgtVk8OEIvdyluRUNirlaE0gru X-Received: by 2002:a05:6808:1313:b0:3bc:30d9:897f with SMTP id y19-20020a056808131300b003bc30d9897fmr2122925oiv.35.1704459681646; Fri, 05 Jan 2024 05:01:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704459681; cv=pass; d=google.com; s=arc-20160816; b=RF19D4cVbSK09l+R9Roa5Nv5YIF3XbWaw+PzcW0Mc0ihgUPEcnk88pSDY1z9WX1kuB OzMlHsH2YK1F4rEYFlCRcSZ8ovW5je+HM/XJK2OpcfDC0JPTorC37QUXhvQVUwOARFDg xKuntEQEfMSZU7moNT2zKeBtfmDacgI8QnQFjaUQ4kEoTLLX2+uqmVUJFNJGi8tXU1gY 2Kn7UwLrNhU7AGCHzrwsVN5tQZm0GVRC0EUe83Ld7X7hR+yrs53RTgHPPLxoFHEH1DFU UJAz3zVagS/CleGzKmoMRU1TNrpf/V18yrMujBrY9hWIW4rjbvbeYiwM+0RBlI3/o4RS biDA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:date:message-id :dkim-signature; bh=Kp1iyqlnG9291NriL8DEtKmj5Gb7hTLnRnStXuwNcxE=; fh=/VB5c4JQhXnOpKyrZNM1DVbV0onugiZq6LK/6yuomVU=; b=qe+T+TNX5DopJqnqJzxiqw0mJj24sh2flufor0CgLSC5iLGz4G1KiSBrufq6HOOYOo qh3Cht5Ms+0VPj+UnPctk7NAJkLnRZ5ursz9LydJHTmyvdT/eRxcmQz6WEbDRA+3PS38 tinwnUYshoxzVQU5fgQqX/HAEhsjcnNFWg/Dqt8L3/zENT8as5Wwe4bbqQah4HU+lr7r wuNrqWbNHdC8A/PChvEA1Chgpl0LRD0PUGypZC7QevtcRfINQgfkKGAG4av/hStg7L+b WslsjL8RDJUNxhdn2NHNf9qB2NhmVnb+YRWTcwIu/VCadlRoZwTLmyk2pync/zffBEcW cuSg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=0fGdEGYp; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel+bounces-17848-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17848-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.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 bb44-20020a05680816ac00b003bbbcba9459si491839oib.87.2024.01.05.05.01.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 05:01:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17848-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=@amd.com header.s=selector1 header.b=0fGdEGYp; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel+bounces-17848-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17848-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.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 4953C286DC7 for ; Fri, 5 Jan 2024 13:01:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E22C02D611; Fri, 5 Jan 2024 13:01:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="0fGdEGYp" X-Original-To: linux-kernel@vger.kernel.org Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2067.outbound.protection.outlook.com [40.107.223.67]) (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 9F4B72D052; Fri, 5 Jan 2024 13:01:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=faXkPNaZ12MfXRsYkSnVYgUmop+bqDv+vSzAWAy384T4a2TM15kN6Et2FXsHSeDL6jCGPXoh5k8RMeegrgMw3sbdGTbCq+1Zf/6wSsUo9gOpHoydSdBBtvywFW+v7vcur6M3JFWkq3PGoMFmn5LiJ7UBoF0QCjHJGrfTzA3iF9D7TA+QQMcBkBfQN4VvrPaIOlvSVToEKDzkxqJHFE3P+4H8GjeaeKKa6idOKuSVK94y3wGqj1dGftQgjlLNNiPrjdNuPJmRtUPbwZE/hMyVUnABzfMRb90nHL6Lr9XXTmSJGpM2knBRS56Wdn/PubRRuDqFywCAQSf3dc1q+/wfEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Kp1iyqlnG9291NriL8DEtKmj5Gb7hTLnRnStXuwNcxE=; b=DiNZhDZz8TaMsqO5hbYi2oFSQe/UPyUsPBz0+NQBq6bIh7Ov/RyaYjmxoX9eHidtEmE7+NcBu8tZbxgs2uxw9S6+dZjUOAo49enYp3RW5Sn2Chz/iWr9pNC3T9mgrtAcZS+DOMOUwDkBVRSjyj5Uc7EvOotoShL929XWYfkgciYq8y61yzMSU+m18cggsdVCedKZ7tfEEDBm0yPPY0c3t+/EaITrNPYseuXlfoXjyRJJBgjVVfS4xud94HbXTEN6bjkCOXEtcFRdmEDtNbGLmCeKD8PoQtHAIFbqSKhzXUx+0OyHXvBq07sjOsStkwb+hFzGM1v6wTkhz8CRsf9cQQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Kp1iyqlnG9291NriL8DEtKmj5Gb7hTLnRnStXuwNcxE=; b=0fGdEGYpXLQBRrSIbxEdxE2R5LHH4dLaxI+VL2RPt9Ph6nsNgruqd/SedenMaaDnnoAf0loB2BxmNC23oE6irNBg7TKmFthoaJU1hmTMAXgioP3MH+aA2CG4NHHH+tYXltcq9o4GMEaFACMXTiuvnM2jX53p2rYlyzzAv9IW6cE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CYXPR12MB9337.namprd12.prod.outlook.com (2603:10b6:930:d8::20) by SN7PR12MB8817.namprd12.prod.outlook.com (2603:10b6:806:347::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.17; Fri, 5 Jan 2024 13:01:08 +0000 Received: from CYXPR12MB9337.namprd12.prod.outlook.com ([fe80::2b19:2045:59c7:cde2]) by CYXPR12MB9337.namprd12.prod.outlook.com ([fe80::2b19:2045:59c7:cde2%7]) with mapi id 15.20.7159.015; Fri, 5 Jan 2024 13:01:08 +0000 Message-ID: Date: Fri, 5 Jan 2024 14:00:55 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] mmc: rpmb: do not force a retune before RPMB switch Content-Language: en-US To: "Jorge Ramirez-Ortiz, Foundries" , Adrian Hunter Cc: Avri Altman , "ulf.hansson@linaro.org" , neal.frager@amd.com, sai.krishna.potthuri@amd.com, "linux-mmc@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <29dc26a4-b95c-42d5-94f8-fbd23c589eaa@intel.com> From: Michal Simek Autocrypt: addr=michal.simek@amd.com; keydata= xsFNBFFuvDEBEAC9Amu3nk79+J+4xBOuM5XmDmljuukOc6mKB5bBYOa4SrWJZTjeGRf52VMc howHe8Y9nSbG92obZMqsdt+d/hmRu3fgwRYiiU97YJjUkCN5paHXyBb+3IdrLNGt8I7C9RMy svSoH4WcApYNqvB3rcMtJIna+HUhx8xOk+XCfyKJDnrSuKgx0Svj446qgM5fe7RyFOlGX/wF Ae63Hs0RkFo3I/+hLLJP6kwPnOEo3lkvzm3FMMy0D9VxT9e6Y3afe1UTQuhkg8PbABxhowzj SEnl0ICoqpBqqROV/w1fOlPrm4WSNlZJunYV4gTEustZf8j9FWncn3QzRhnQOSuzTPFbsbH5 WVxwDvgHLRTmBuMw1sqvCc7CofjsD1XM9bP3HOBwCxKaTyOxbPJh3D4AdD1u+cF/lj9Fj255 Es9aATHPvoDQmOzyyRNTQzupN8UtZ+/tB4mhgxWzorpbdItaSXWgdDPDtssJIC+d5+hskys8 B3jbv86lyM+4jh2URpnL1gqOPw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1ZHalO1h3z kXyouA6Kf54Tv6ab7M/fhNqznnmSvWvQ4EWeh8gddpzHKk8ixw9INBWkGXzqSPOztlJbFiQ3 YPi6o9Pw/IxdQJ9UZ8eCjvIMpXb4q9cZpRLT/BkD4ttpNxma1CUVljkF4DuGydxbQNvJFBK8 ywyA0qgv+Mu+4r/Z2iQzoOgE1SymrNSDyC7u0RzmSnyqaQnZ3uj7OzRkq0fMmMbbrIvQYDS/ y7RkYPOpmElF2pwWI/SXKOgMUgigedGCl1QRUio7iifBmXHkRrTgNT0PWQmeGsWTmfRit2+i l2dpB2lxha72cQ6MTEmL65HaoeANhtfO1se2R9dej57g+urO9V2v/UglZG1wsyaP/vOrgs+3 3i3l5DA= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: VE1PR08CA0006.eurprd08.prod.outlook.com (2603:10a6:803:104::19) To CYXPR12MB9337.namprd12.prod.outlook.com (2603:10b6:930:d8::20) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CYXPR12MB9337:EE_|SN7PR12MB8817:EE_ X-MS-Office365-Filtering-Correlation-Id: 4b9503e1-67f3-4b18-863f-08dc0dee624e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /Swbt3Md7nVoVy0b7mwVnvjNq+ULZFndMn7eviF5sO5e9aLJgw7PtuPnAAA+v5LFfVIHurkoGNXIs0B0uaGvH22dfb8hba2AGBsOG4EI3Ct2l9DNPTgdkrdEBhE47xrJe8yj2WYd3A94JTD2C8CjKht+YNHYNzjbSXJNwu8bYloDle7fBuXNX5WmmaQTH40QABOFZCw8lUZ957rtJ6d0gKpQXNwLnCtGbRbcMfM2NI6VLIlFkdoQAgKepS5IoZOm5ObI3cvQs/She3BAH4LQ5oPmVd+QYmNn/b6+MkHUpKcGVMYmtBxmk6qSWdAm2bx8OuzXib5vX5ku7DifBMnyX9vj2Ps0B2+KjnMM/qUnOWDVPZMfHWgY5BrLQo7nGOYiSYYkxr47ljfX46dfnSkEuO8X7QddeaJiB5wh2qWR9TJeCnQm5AUKVXl7W0pelB6wDshGCMQCXabNbt/ZJ3cDkNor/NlmmiFArxdz/ioIelrN8j0ov1lScJ0/UqqQMApucDmpVlaR6XhCO64hyYC/tDWOW9i8RsTuVUooc4GiJGXCioLfUB8v/AfVdT9s0TsSjAjc22NNHfy0KHVZbsXnZBW3FUjz/hLooWfbrAu7B6tLGSW1KdcA26ZYVIaO4mqR3Qpvqiu7PNntBpRuZCzv9A== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CYXPR12MB9337.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(346002)(396003)(366004)(376002)(136003)(230922051799003)(186009)(64100799003)(451199024)(1800799012)(31686004)(66899024)(83380400001)(41300700001)(66946007)(36756003)(31696002)(86362001)(38100700002)(316002)(26005)(2616005)(6512007)(53546011)(6486002)(6666004)(2906002)(66476007)(110136005)(66556008)(54906003)(478600001)(6506007)(5660300002)(44832011)(8676002)(8936002)(4326008)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?U3E0TVE1VUVuSXkxcHR0M0xEczBQSE9URVFVL1d5S0laeG1pRGlOODM2S2lC?= =?utf-8?B?ZG5iY0pNeE5HdXF5dFRJdzJvZWVvZnZqaG1lRitSTmhQR2xLekJRUE9lcWxW?= =?utf-8?B?cTlBOXJneHNNSGlGUHFFNk5LbFNLNmVuUHR3VVFLQksvek53L1o0cnBYRGZs?= =?utf-8?B?TmRmdVVXN1hMS3ZpU09NSldqTkRlcXlSS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RG1QZDd6ZTRIeUR4Z2NMTlJDdVRoQXFwVGJMKzAxL2RzZFNZdGtwWUpN?= =?utf-8?B?T0hReFhMV3NtTENWcEh2ajdqME1RSkdwYjNpcjYrb3k1M0VJTFcycEF5LzBh?= =?utf-8?Q?l+wVvJsytni9TfS7WJOSlf6YC?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4b9503e1-67f3-4b18-863f-08dc0dee624e X-MS-Exchange-CrossTenant-AuthSource: CYXPR12MB9337.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jan 2024 13:01:08.4643 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: O80Tzlq1FM/aAyobROqRAvIQ/PVPo8fTSorAVIp7UPUalJgKaeaqk8XlknTIMHX2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB8817 On 1/5/24 09:49, Jorge Ramirez-Ortiz, Foundries wrote: > On 04/01/24 20:34:09, Adrian Hunter wrote: >> On 3/01/24 11:20, Jorge Ramirez-Ortiz, Foundries wrote: >>> On 03/01/24 10:03:38, Adrian Hunter wrote: >>>> Thanks for doing that! That seems to explain the mystery. >>>> >>>> You could hack the test to get an idea of how many successful >>>> iterations there are before getting an error. >>>> >>>> For SDHCI, one difference between tuning and re-tuning is the >>>> setting of bit-7 "Sampling Clock Select" of "Host Control 2 Register". >>>> It is initially 0 and then set to 1 after the successful tuning. >>>> Essentially, leaving it set to 1 is meant to speed up the re-tuning. >>>> You could try setting it to zero instead, and see if that helps. >>>> e.g. >>>> >>>> diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c >>>> index c79f73459915..714d8cc39709 100644 >>>> --- a/drivers/mmc/host/sdhci.c >>>> +++ b/drivers/mmc/host/sdhci.c >>>> @@ -2732,6 +2732,7 @@ void sdhci_start_tuning(struct sdhci_host *host) >>>> ctrl |= SDHCI_CTRL_EXEC_TUNING; >>>> if (host->quirks2 & SDHCI_QUIRK2_TUNING_WORK_AROUND) >>>> ctrl |= SDHCI_CTRL_TUNED_CLK; >>>> + ctrl &= ~SDHCI_CTRL_TUNED_CLK; >>>> sdhci_writew(host, ctrl, SDHCI_HOST_CONTROL2); >>>> >>>> /* >>>> >>> >>> >>> Yes with that change, the re-tuning reliability test does pass. >>> >>> root@uz3cg-dwg-sec:/sys/kernel/debug/mmc0# echo 52 > /sys/kernel/debug/mmc0/mmc0\:0001/test >>> [ 237.833585] mmc0: Starting tests of card mmc0:0001... >>> [ 237.838759] mmc0: Test case 52. Re-tuning reliability... >>> [ 267.845403] mmc0: Result: OK >>> [ 267.848365] mmc0: Tests completed. >>> >>> >>> Unfortunately I still see the error when looping on RPMB reads. >>> >>> For instance with this test script >>> $ while true; do rpmb_read m4hash; usleep 300; done >>> >>> I can see the error triggering on the serial port after a minute or so. >>> [ 151.682907] sdhci-arasan ff160000.mmc: __mmc_blk_ioctl_cmd: data error -84 >>> >>> Causing OP-TEE to panic since the RPMB read returns an error >>> E/TC:? 0 >>> E/TC:? 0 TA panicked with code 0xffff0000 >>> E/LD: Status of TA 22250a54-0bf1-48fe-8002-7b20f1c9c9b1 >>> E/LD: arch: aarch64 >>> [...] >>> >>> if anything else springs to your mind I am happy to test of course - there are >>> so many tunnables in this subsystem that experience is this area has exponential >>> value (and I dont have much). >>> >>> Would it make sense if re-tuning requests are rejected unless a minimum number >>> of jiffies have passed? should I try that as a change? >>> >>> or maybe delay a bit longer the RPMB access after a retune request? >> >> It seems re-tuning is not working properly, so ideally the >> SoC vendor / driver implementer would provide a solution. > > > Makes sense to me too. I am copying Michal on the DL. We will take look at it. Thanks, Michal