From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 54521394476 for ; Wed, 4 Feb 2026 08:37:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770194276; cv=none; b=OTGpzmj/ktOYPJ2Pc7v+8o9veYWzZLp9HvDo88HtPty5Zstt8j+1SiWwXhRkdxZ5mhEmFu/3yqecFaGg2/kmGSAGynnDYJEFTVQIiDCy6yPIhAl2F1QFpe8fh1swPBJUsyPD2GhL+VtxVaWnNTfqNneWAnbgFdZuPEe3X+EfUrc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770194276; c=relaxed/simple; bh=YdGqnKEXZqPfejPy+MWDZJlt5n9n5NEiIZZsEFwyGbI=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=h6Dq0/w0Rae2+RuRStpHMXUA2rRv+8S10vSbxlAR2QTgbeYUI/vuFYExLoQXU4pn7mo/PxxW/UHVoOgTv/Bb1aFoyhfH1A9bAYzLbSU1oX+QF6uF2W7JxRkZEhehbGLM9QR3wxiOhKS4HCJBy68Spf7D+m3E+9OaSpL4TT0EUpM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=BmyYo5Yc; arc=none smtp.client-ip=209.85.221.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BmyYo5Yc" Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-43590777e22so4041283f8f.3 for ; Wed, 04 Feb 2026 00:37:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770194275; x=1770799075; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=YdGqnKEXZqPfejPy+MWDZJlt5n9n5NEiIZZsEFwyGbI=; b=BmyYo5Yc+5frcx3oQ8iRzs7iSTpsXLh3VAmvVJf6i6XsSgQYrkNjrgtkkMoYpSP/HI FnHpHuSxoM7qexfaew2PxolAsGWMSVft7hG1BrF9tkkHubIAuijpD95UOMeETLMir3ZL 5tjxePJimm8JTGZOcYiRAvGKCOUFgJciqumH8CaZLf+s5YOJ9AsFTgfgQmZqRCPf69xf TrPw7uEz525z5ySMLttoESHqeUnQw09eaCUUrQifgWhioU47YoXlT5jb/nQuKOsmKKle x6ETjMfPJRMKeKZjlb2CkFKJZO3mEnyBBqVOcr3iju16J4x4f7ZZgudvfzcbVyDdZtLw KYIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770194275; x=1770799075; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YdGqnKEXZqPfejPy+MWDZJlt5n9n5NEiIZZsEFwyGbI=; b=gVDNbEgumtPMTmECjpjx+WZtPcL2oF25mMfapRR0RnotJpiRofk5LetgP0DoAABUv9 gWN7qSEhkTRNZhUxi5SQVUqDYJBj6+gtqoFZze/h97Av61w9ucMvmzdiCT4PwXPPkNxV AVbzQKcTcvECEvsPdvofVyEbBuJw9d4SW+nouhyVHdnsS+kWzMxm3QAd6ZEw3qMEefzX WAHaFOwivmVg+R+cJtjUhVxaC1nhM/oGAq44a9uwO/aJLzQDKL84RLnfOiEv1JcEjJoy L5YmC34StUg8ihLyUKGCSrIfa/o4TiHYXo+iLx/tT/p/Fore1qkRWpRjuepFGTw9xWPN eM0w== X-Forwarded-Encrypted: i=1; AJvYcCVOZt0DZiENAdbsZ0lxb8hWjl1vDaIhFNBwPqqjJtZ0JkmxQ6rUl1rdW7GuPfwespjxUmSdFqOxygEiB+E=@vger.kernel.org X-Gm-Message-State: AOJu0YwTqC8fdjkrabvrhbgQCJ1GaTN2ep7xldgQgngFKhZAPYZoaSXn bB3Pk+B8wgfyVP5/2r32RRc60qdSd5VaNKgPkC77tScLW/pKrd8f/fD+ X-Gm-Gg: AZuq6aJTk6KW63W0PKyPdd5we8AiP+AWw+7ujBUIJsLcQmuOa6JW/LEyRIxUpcAD54/ G+nZoAmNYsO/1Lel4/tqDQoQaYrXjD0GOFjNlxiFmpO7jPzL9IrP9NwiH7vdkW4URlGOMiqThdP W3ThrrM7fcLvghc7jqDegjz6UL7Cgqu+ZMM8mDkydxL9i72WcH3/bNZRVsGhyeCati6GeskEFkK HnK4TLV4FKh9ru+0VdnuKc28Q3KM/dtKHcR9J7kHMsxEKVfTrnJhn4gSPaoERW443gXc0YbeqF2 s50uNhiI1Ui27hj0wl3x0uJkeQeHFJBp73PlH04r/FBYszvFEbUbYX5qHZVtJGrx1tIOubIxfcZ 8t1OhremeWT82y9a4GCmVMMsd7MutTSyKV58apJQZRgFLutdnbwz5vus9nl/AvpAEPZlm1SQXt5 /1U6fnzPdoV+l8ZQ== X-Received: by 2002:a05:6000:1885:b0:425:769e:515a with SMTP id ffacd0b85a97d-4361805c0famr3038165f8f.42.1770194274302; Wed, 04 Feb 2026 00:37:54 -0800 (PST) Received: from [10.176.235.211] ([137.201.254.43]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43617e38e38sm4832086f8f.11.2026.02.04.00.37.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Feb 2026 00:37:53 -0800 (PST) Message-ID: Subject: Re: [PATCH] scsi: ufs: core: Fix RPMB region size detection for UFS 2.2 From: Bean Huo To: Alexey Charkov Cc: Alim Akhtar , Avri Altman , Bart Van Assche , "James E.J. Bottomley" , "Martin K. Petersen" , Bean Huo , Can Guo , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Date: Wed, 04 Feb 2026 09:37:51 +0100 In-Reply-To: References: <20260129-ufs-rpmb-v1-1-691534ab723f@flipper.net> <8149b8cb5a7b36a1543ca05666f33a6373674e0e.camel@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu2.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Fri, 2026-01-30 at 18:49 +0400, Alexey Charkov wrote: > > > The spec says it can only be up to 16MB maximum (see section 12.4.3.1 > > > RPMB Resources), so it should always fit. Happy to add a comment abou= t > > > that. > > >=20 > > > Best regards, > > > Alexey > >=20 > > Hi Alexey, > >=20 > > Thanks for the clarification on the 16MB RPMB limit - that addresses th= e > > overflow concern. > >=20 > >=20 > > In your above operation, why not use SZ_128K to avoid the magic number? > > BTW, please update your comment. >=20 > Good point, thanks Bean! Will amend in v2. >=20 > Best regards, > Alexey Alexey,=20 did you send your new version patch? Kind regards, Bean