Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp921237lqs; Wed, 6 Mar 2024 00:15:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWMoXJjzaQCgC+gO5Gu444sRmDZwhhdslo//DDVHvPtaLKS9+9UWtKep6qZHaagMqY3frmnOX+HLQx5zYn41HntWysbNlMdfA9UeO7xOQ== X-Google-Smtp-Source: AGHT+IHuvi1XUQGDJ7TePG93pA/Ns0gIAecNZSK7prpNwDw5IClQ2P4AVIFX5zq3KFA4HQ/iF5Yt X-Received: by 2002:a05:6402:5189:b0:567:26dd:d403 with SMTP id q9-20020a056402518900b0056726ddd403mr8064995edd.17.1709712949562; Wed, 06 Mar 2024 00:15:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709712949; cv=pass; d=google.com; s=arc-20160816; b=LtsI9PEMpcj3amh3w/R7z+BR//CXS60urvFbhqHbEg9lY9coWR+q4jMafSmC9bXjDH xBXXScrNjwRTEQ3Co1x1LLKZatkppFrNWUFc7lIwPaumMnAb6Dz2zf5iuuXDOYmo5DDX PJvohI1+xJgYpVjddjltrhwDCSXS4unrB4MnxvCNaoTMfAhtN2oha7jXcUGHfAlqnedR OWyZ0tCXyTFkRu2WehCHrwtI/P1vJuP1fNfQDY7QNISzuPTMuLJzsgGF5VF5ESJjll5k BKRIYMqhrJ+xRfCEgtF9ARGuDsJU1rfEEu9vlG+Yr0mWkg3tFJVD1TGlMUprTbqYPeg1 zTMg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=hWN8aeGqlV2ux5okD9VzvqXOF7Q3jr/QQJsicRZ17gQ=; fh=Z7HjgBN/AknYJRWlfCdHGoy6W1uEC0HWDX6dTdE44Z8=; b=gmvvXogMMyE8c8P55tOE50tkboiTcEe/qGco+LCfk/gJHBI+rz90KoV2MAoj0ztgUr Kxohk6mdwhNdyHYE5/rhhV4TxolWFj1m1h9w5Ko9xLReLItLeCTjkh6ERsWFvajZ47I5 +27Y4/NlTl6f0vAW+SN79nWVA7iz+edVNUSDfUvi7q2LME8ZLKXrxHoPGH+sK98tYWUe 3MMG2emVzXScRWuLGpxFiruGVaiP6noc4yJQylhjlatGB04xedoKbpplZpTsGO/tEkvi yXr6anzy7fzBPxEGtB4SsbgNV3DEOeP0HOD6m+PpK/NBU2ZwnjWSXNSStdvIFiBGUejz jL6g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@atmark-techno.com header.s=google header.b=hcmvYpWq; arc=pass (i=1 spf=pass spfdomain=atmark-techno.com dkim=pass dkdomain=atmark-techno.com dmarc=pass fromdomain=atmark-techno.com); spf=pass (google.com: domain of linux-kernel+bounces-93482-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93482-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=atmark-techno.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id i14-20020a056402054e00b0056715a786ffsi3482665edx.544.2024.03.06.00.15.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 00:15:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93482-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@atmark-techno.com header.s=google header.b=hcmvYpWq; arc=pass (i=1 spf=pass spfdomain=atmark-techno.com dkim=pass dkdomain=atmark-techno.com dmarc=pass fromdomain=atmark-techno.com); spf=pass (google.com: domain of linux-kernel+bounces-93482-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93482-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=atmark-techno.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4E9471F2305B for ; Wed, 6 Mar 2024 08:15:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CDF3A5D47A; Wed, 6 Mar 2024 08:15:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=atmark-techno.com header.i=@atmark-techno.com header.b="hcmvYpWq" Received: from gw2.atmark-techno.com (gw2.atmark-techno.com [35.74.137.57]) (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 9DAC05C8F9 for ; Wed, 6 Mar 2024 08:15:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=35.74.137.57 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709712939; cv=none; b=PUumF4yRE6KxvacDDRWYlmKwkphhotxRbzZnNHJb+CidObOXeZ7H12OfAaFFa9HkfGkQYdh3oVf/4ZVSmcHgwAJkpg3AgI0bRA4M0TcEKX5GvMXH+BpK1gTWA3S3bnHKLJHu9tpZ450CNkoVDSUZW9wiJ+Ipb03kgrHhUiXgwaI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709712939; c=relaxed/simple; bh=kuIcTGLwOZErPf8b2yIdBJP+0ZEw/WDW0R9rZ6+4nmw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZuGOH8VHYBN49ln2Q6PHg2nRRkWr3y9JXkKaWPX+ZOhW1n9H25yAb/C1V5TxrV95+EEdJTkKcWLFCuH3ORgVm0VsgUNXoqIkYQAPRCfWrY7dlPuLwqpFpDt44eoS3JI00eDEFF5L4x0HwWZSFsD1FdWwByxDxKvgxaiJlkkxsFg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=atmark-techno.com; spf=pass smtp.mailfrom=atmark-techno.com; dkim=pass (2048-bit key) header.d=atmark-techno.com header.i=@atmark-techno.com header.b=hcmvYpWq; arc=none smtp.client-ip=35.74.137.57 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=atmark-techno.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=atmark-techno.com Authentication-Results: gw2.atmark-techno.com; dkim=pass (2048-bit key; unprotected) header.d=atmark-techno.com header.i=@atmark-techno.com header.a=rsa-sha256 header.s=google header.b=hcmvYpWq; dkim-atps=neutral Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by gw2.atmark-techno.com (Postfix) with ESMTPS id 671D4A35 for ; Wed, 6 Mar 2024 17:15:30 +0900 (JST) Received: by mail-pf1-f199.google.com with SMTP id d2e1a72fcca58-6dd65194396so599158b3a.0 for ; Wed, 06 Mar 2024 00:15:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atmark-techno.com; s=google; t=1709712929; x=1710317729; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=hWN8aeGqlV2ux5okD9VzvqXOF7Q3jr/QQJsicRZ17gQ=; b=hcmvYpWqT9o8xVqPxn8ALmPrqim2x/3CG1AVALKVuKbOzqlCO/PlhFAsfkcR5b3n6x QrXVH7AHGGfT26PU67ujERF7P8uZHyCcaN6ykEOxN6ZJwHh2BKFLyL37pMKjrY2DYcOE HINuPmbQCgchWF7OKa+rRu/66nsWbFBTq9XoL6W1uaRTwEl5yT3Gxl+OnlC6cBoeFuAA aXVH0Si8YjgWYXAPSTmqxsyASA2TTSn0SHgx6L3IHNcERTa1rYBNfR2y1QTh8pD9fV8d XjN8WY5vtWrnssr/UoXKunBcd1hguASxk6QncqKRX7oOffLRtR7/KPO7EOiIFwSf77Fg wUxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709712929; x=1710317729; 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=hWN8aeGqlV2ux5okD9VzvqXOF7Q3jr/QQJsicRZ17gQ=; b=GQJkVkBWlTrg6Pj9m29pDhcQ4L5euAV+OyPSL+XxphzftF0gFNKvZzLTXhpAlb1QNF NIFRGOnB4Q7e3gkLg4Ix+EeguKpzibW++4jvX4pqA5Yqws3itSyTTzSNFdJ6+yIEgL37 xUV6zzH+31DLTMeu+nt/CpkbwYEVk5fpGLXT0dyGSG924WQAfGz0oVD6MRJZx2KbwA4w lARKzytRN//ZgSXZ1BG6Tf4eG6vLfSKEsWeF3uqI3BXZVPwDknLDVogsqNa2lgAvo0UB 47VXm5/RouHsyuZG6EtL36I/HjsA10hb3+FaXo4Q1rbNzHufu5BIo/PLRjvLgwDNORim Yqkg== X-Forwarded-Encrypted: i=1; AJvYcCWuXFhMHJfMlivtdhSfiViqFycpiZJuOPIhyP9TGY9VS+CATOKs6hKD8YOOoY2Cgr4RjWRT5utjfPTzBvJDebea2c3cBAXqfaGhdpeC X-Gm-Message-State: AOJu0YwPZo8CmAmiHA0YBud6+xbUM5PlITgq4/ZamAkiosi+ttTPVydr pbm02lbsGnnpB7M9nUX71LRDiCS/ZG/nS8qFnaZXMYl5mmlON6544iyJn3qORAD3htDkaDE3PeC yw85I01HYEwI4QmtDyrSOMdjVDC/kJWwtGP9bNuJWPNw17QWECJByNEieFBJ5ZVA= X-Received: by 2002:a05:6a21:339c:b0:1a1:4eb3:63ce with SMTP id yy28-20020a056a21339c00b001a14eb363cemr5755558pzb.4.1709712929350; Wed, 06 Mar 2024 00:15:29 -0800 (PST) X-Received: by 2002:a05:6a21:339c:b0:1a1:4eb3:63ce with SMTP id yy28-20020a056a21339c00b001a14eb363cemr5755525pzb.4.1709712928785; Wed, 06 Mar 2024 00:15:28 -0800 (PST) Received: from pc-0182.atmarktech (76.125.194.35.bc.googleusercontent.com. [35.194.125.76]) by smtp.gmail.com with ESMTPSA id z19-20020aa785d3000000b006e583a649b4sm10206885pfn.210.2024.03.06.00.15.28 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Mar 2024 00:15:28 -0800 (PST) Received: from martinet by pc-0182.atmarktech with local (Exim 4.96) (envelope-from ) id 1rhmQw-007TIc-1G; Wed, 06 Mar 2024 17:15:26 +0900 Date: Wed, 6 Mar 2024 17:15:16 +0900 From: Dominique Martinet To: Linus Walleij Cc: Dominique Martinet , Ulf Hansson , Jorge Ramirez-Ortiz , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] mmc: part_switch: fixes switch on gp3 partition Message-ID: References: <20240306-mmc-partswitch-v1-1-bf116985d950@codewreck.org> 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-Disposition: inline In-Reply-To: Thanks for the review! Linus Walleij wrote on Wed, Mar 06, 2024 at 09:03:45AM +0100: > > A couple of notes: > > - this doesn't fail on all eMMCs, I can still access gp3 on some models > > but it seems to fail reliably with micron's "G1M15L" > > - I've encountered this on the 5.10 backport (in 5.10.208), so that'll > > need to be backported everywhere the fix was taken... > > Which device is this? Sorry I gave the 'name' as seen in linux, the actual reference is MTFC32GAZAQHD-IT (but we're creating the GP manually) > I have never seen an eMMC using the GP:s in my life. > > Or did you create the GP manually? Yes, we're creating them on all our devices: (japanese only, but you might get something out of google translate or similar if interested: https://armadillo.atmark-techno.com/about ) I'd be hard pressed to explain why other than "it's always been done" and I've been replicating that pattern, but as far as I understand the gp partitions are always created in "write reliable" mode so it might help a bit with lifetime if the main area is left as default. We're using them for rare, important logs and things like that (minimal trace of updates, hard reset etc for diagnostic) -- Dominique