Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2720621rdb; Mon, 4 Dec 2023 05:58:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IHSPwNCsxdMt0vxAK/Pyk37pxniddkhzOa5hWTddDCf1JXGjko2QOLCHo6dflURax3HPC7+ X-Received: by 2002:a17:90a:f016:b0:286:44ca:425a with SMTP id bt22-20020a17090af01600b0028644ca425amr4315337pjb.18.1701698308483; Mon, 04 Dec 2023 05:58:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701698308; cv=none; d=google.com; s=arc-20160816; b=of6gKhJIva2pDTrXN+vRX2D3JrlCHZ/sYR4h/puwrihWn0huELsID/HD9k+bg051sk SppZwFG35DdujREMy8CCi6NVbI5SJT73x6hYsXZmfvOJeDmlk74V/zQJNDgbJy7QlaC7 YaW9bTcVqPXNgcKbSgJTal/hrk70/zJ8KFTavPW3grQwqL0NbfRKxeOuOahlHAONJ2a7 qeK5Vja/pW7rqqXdtpZripGK0+9SmoXDthay+nKhla0G5OO2Tn0KmD49WYODNJYOPfqi QSmPXhcSQkILt3k7dUBAew4iL6WRkKde5AGqJU1LZ9a9a6vAhBSyDdFNC3u8/v+M9D8R L+lw== 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:date:from:dkim-signature; bh=1Wn71OJAsHrUsi0hi6qKz41BqzfeWUDfsnSD1MArV6Y=; fh=j50ltvGUCCoOiromaB/7B+Zjbk//+3JiGp2UFMMlucY=; b=0RGtWP5ktPzjkKQJBedkPoBhnDVvfiOPDZf6370mTkJKcBafLw8B7MQ9jLhTEl0d1W XgVh8AlgOH0L+n/Y7UXRhd13nENBqxVOga2AMxKtnlv1VUj0xzKot87mVXUMl7WJNZsa YczJTV++oPeZtOU8+5/NmosaJkbcSVEJkz6rfPzrMtzeaOtClqKcm0kASRWzVyyGOdRk htRjA9RxETJlwQh74eUTKclRsCJ4Zm5aBc4xT93ST3p9nafpE2K34bSof36moVypvVzs BEYYzXcQtg0vd0fALS7h4j4QBTySHNfUlBZSyOC7toU86J0BL3jMqnb3/WvyUNG1d9fc ty2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foundries.io header.s=google header.b="Q/1b4G9J"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=foundries.io Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id j3-20020a17090276c300b001cfd754d79esi7953715plt.79.2023.12.04.05.58.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 05:58:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@foundries.io header.s=google header.b="Q/1b4G9J"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=foundries.io Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id C13D68077461; Mon, 4 Dec 2023 05:58:25 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234130AbjLDN6K (ORCPT + 99 others); Mon, 4 Dec 2023 08:58:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229711AbjLDN6J (ORCPT ); Mon, 4 Dec 2023 08:58:09 -0500 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 792A590 for ; Mon, 4 Dec 2023 05:58:15 -0800 (PST) Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-40bd5ea84d6so11787385e9.1 for ; Mon, 04 Dec 2023 05:58:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foundries.io; s=google; t=1701698294; x=1702303094; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:from:to:cc:subject:date:message-id:reply-to; bh=1Wn71OJAsHrUsi0hi6qKz41BqzfeWUDfsnSD1MArV6Y=; b=Q/1b4G9Jbcgp4blJSRV8N8/MiGLqKz6vACPg/45GSn0lbbVI7jpJ+RcXUGHTipmB2n jdxZtzHvmJeBWVUqfsySdrz+pJRBloYP67Z6LdVCu8jv48nDwe8b5BczRyqhFQ8ONy8F j+IwCbQVJTYJE7pCAvasUEMOUqSiO0KUYBeHSiC9vd26h/e1Ovpchy7xFJfZQEyjrUv/ mmRgZfck/kbiC3XyRygUxUGwXYQ4Dm6dxO04RwvaeYT8XAPfgDK7mWlFejORnMsdMXBO wUnh09tf8oz9joIDKz4WorOrOIq4u2NjnW1ad3UNlQanbO7GjQyOcn0YPkRB30muTg/v ylPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701698294; x=1702303094; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=1Wn71OJAsHrUsi0hi6qKz41BqzfeWUDfsnSD1MArV6Y=; b=TWqZZC/5npjT794v8/QLxdJO3Gk7XT/s4QjaB37sxP/ICYOA2qBM1fCzfdSwLDOAV/ jTWKbf/vu/aCyHzwtd+N1vi34461r04I7i8XUi/ZJbYhW9qByiPVuJZcENNYT/UhJFqh EC52Dt7JVNItafJ1uQZILiHtZaoyelpKIiTv07LgTwtSM50y0MUhkqI9ZtvpKcDNQXzJ maeAw6tFzwSqE1jQAHxI0W20ikGcC2tiS8I0wMBdi1cCsoBRgj5WhRl4VtNxh6evwJz+ +W4E87gkSqCMI7RD5Dd23ksx0mRDAkKOzJ0+1I3jGYMP29mVeyVdE+Igv6v5a2TZ+XmT /49A== X-Gm-Message-State: AOJu0YyTCwZRg1XLGOpCYUwJyoFKQc0Jp7+6fNqX669FWvDWUSxmfOpQ gATBatY+0LbkmBPrgbR+SLj2vQ== X-Received: by 2002:a05:600c:348a:b0:40b:5e26:2379 with SMTP id a10-20020a05600c348a00b0040b5e262379mr3046913wmq.42.1701698293953; Mon, 04 Dec 2023 05:58:13 -0800 (PST) Received: from trax (139.red-79-144-198.dynamicip.rima-tde.net. [79.144.198.139]) by smtp.gmail.com with ESMTPSA id r11-20020a5d498b000000b0033339da02f9sm6773310wrq.110.2023.12.04.05.58.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 05:58:13 -0800 (PST) From: "Jorge Ramirez-Ortiz, Foundries" X-Google-Original-From: "Jorge Ramirez-Ortiz, Foundries" Date: Mon, 4 Dec 2023 14:58:11 +0100 To: Avri Altman Cc: "Jorge Ramirez-Ortiz, Foundries" , Adrian Hunter , "CLoehle@hyperstone.com" , "jinpu.wang@ionos.com" , "hare@suse.de" , Ulf Hansson , "beanhuo@micron.com" , "yangyingliang@huawei.com" , "asuk4.q@gmail.com" , "yibin.ding@unisoc.com" , "victor.shih@genesyslogic.com.tw" , "marex@denx.de" , "rafael.beims@toradex.com" , "robimarko@gmail.com" , "ricardo@foundries.io" , "linux-mmc@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCHv2] mmc: rpmb: add quirk MMC_QUIRK_BROKEN_RPMB_RETUNE Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Mon, 04 Dec 2023 05:58:26 -0800 (PST) On 04/12/23 12:59:07, Avri Altman wrote: > > > We could carry the patch internally (it seems harmless after all the > > > testing > > > done) but I'd much rather land it upstream if possible. > > Agreed. > Also, I am totally fine, and maybe it's even better, with adding this as a default behavior for all vendors. > I see no point in those tunings while accessing rpmb anyway. > I'll repost then without the quirk. In fact just this morning - I was about to update - I was able to test on an early board revision with a different eMMC module (at the time RPMB wasnt validated) which upon reflashing also exhibited the issue see below: # cat /sys/class/mmc_host/mmc0/mmc0\:0001/csd d02700328f5903ffffffffef86400000 # cat /sys/class/mmc_host/mmc0/mmc0\:0001/name 064GB2 [ 218.759036] sdhci-arasan ff160000.mmc: __mmc_blk_ioctl_cmd: data error -84 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 E/LD: region 0: va 0xc0004000 pa 0x7e200000 size 0x002000 flags rw-s (ldelf) E/LD: region 1: va 0xc0006000 pa 0x7e202000 size 0x008000 flags r-xs (ldelf) E/LD: region 2: va 0xc000e000 pa 0x7e20a000 size 0x001000 flags rw-s (ldelf) E/LD: region 3: va 0xc000f000 pa 0x7e20b000 size 0x004000 flags rw-s (ldelf) E/LD: region 4: va 0xc0013000 pa 0x7e20f000 size 0x001000 flags r--s E/LD: region 5: va 0xc0014000 pa 0x7e22c000 size 0x005000 flags rw-s (stack) E/LD: region 6: va 0xc0019000 pa 0x80dc4e298 size 0x002000 flags rw-- (param) E/LD: region 7: va 0xc001b000 pa 0x80dd1c298 size 0x001000 flags rw-- (param) E/LD: region 8: va 0xc0091000 pa 0x00001000 size 0x014000 flags r-xs [0] E/LD: region 9: va 0xc00a5000 pa 0x00015000 size 0x008000 flags rw-s [0] E/LD: [0] 22250a54-0bf1-48fe-8002-7b20f1c9c9b1 @ 0xc0091000 E/LD: Call stack: E/LD: 0xc0093a14 E/LD: 0xc009131c E/LD: 0xc0094d40 E/LD: 0xc0091624 Read persistent value for bootupgrade_available failed: Exec format error Cant print the environment Error: fiovb_printenv command failed. Exiting. > Thanks, > Avri > > > > > Thanks, > > Avri > > > > > > > > > > > Thanks a lot for fixing this, > > > > Avri > > > > > > thanks everyone for the support. > > > > > > > > > > > (btw - yes - our manufacturer id is 0x45 - it is set differently in > > > > the mmc driver for historic reasons - Thank you for adding this.) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >