Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2613353rdb; Wed, 21 Feb 2024 13:23:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXVcjdvwZ5YWSQoIzEulzmUWaLQM+lxtpy5QgJaJ//fqDyKBqtHd2GIF5HJlIu6Y2GAQtsCpAmlmKoU/B/ofiaPvkT2bQbdzBN9G2qYYQ== X-Google-Smtp-Source: AGHT+IGDynBYEPAnARFFoh1mIB2cidT/KIuHd6i3nk+jA3DmD6Z6jdwZ3/Z5TgjamzAXBXM3vEgs X-Received: by 2002:a05:6512:2210:b0:512:d895:c17 with SMTP id h16-20020a056512221000b00512d8950c17mr916140lfu.33.1708550597586; Wed, 21 Feb 2024 13:23:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708550597; cv=pass; d=google.com; s=arc-20160816; b=zUIu6MHkYbuk5cDIAeaShrX+58wmdMMqnpqd13vAmNPWycHSprLXG5Rvs9miJPmmG0 tf26U5Sfkth/v1W1G81dM+KND027/fi5SfzS/g9e/ikfw7qV0peY1NUWQkUh/uti/a5p 3ZZhaQlzsMN6GnHf2PyeBbcn2y/8RlIpBbfFXMmkln08WsnSENngOezKbHCT0Lqpyy5i 2hf8HzNd6PFL7ZyOV0YpqBwdeFxHmTINeHRU1Ca04eIixeUoMBzl8oTSbK5szmIoeLZX g8Yyu4FEcRsmKhLxOYXFI19GsdcR3tnf9P4VQE4KEqsewbR8YW2jw9JGYmbgwLk8sWW5 A3CA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=+9Q8p0SNxiEFE6O8wlGL+9mnBksm30FOR3CroGvtLII=; fh=XTmf0HW3WQRMFiQMJ7V6eCqOsjPIqmGu75N/fCHLvZc=; b=NvOnj6TP9Chx2EQ265H4ldUJklkbeoDuRuPaAgC8t2dveX1fMdZuVkEeYtuuFdCnyM IYSYD1QJ9Hp6iBxvo+ECS7uqQxO/n68PGdk8Xm731MtGur/TUhI5VRwroBY5F3f4fLTb 6fcdHt6hUXFaOba0Szfe8xoRroXQmOtylgS9DaM4W5PJXsUzEU8hx7vglOem75hp3awC eYO+gQyCNBLcAgPgIwOVsX1EQe8Xhb3hXpaMdUywSmlbXrbrslVbO9FNjKM1y1GiJN8k bb4TacVs9ugqmpBRhcyhegotqoNbLr983oeOJBIT0ShokprtMfRHh8nHv/o4n+TB19oh ENnw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CeU+u+gH; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-75516-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75516-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id x6-20020a05640226c600b005642bbe2a28si4480544edd.194.2024.02.21.13.23.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 13:23:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75516-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CeU+u+gH; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-75516-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75516-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 538C81F22D34 for ; Wed, 21 Feb 2024 21:23:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 606A71272C3; Wed, 21 Feb 2024 21:23:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="CeU+u+gH" Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (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 B720C86158 for ; Wed, 21 Feb 2024 21:23:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708550589; cv=none; b=LLsHmwI3OaYAhzdPtTDLgy7H9kOhEpO7YQop97DVSawXKeN4LYStbt3tZ3yd5TTQFQl8iLJlsE4j+17HfcgtNq11skk/09U/R11LifX8Z9RJGeA4hnHEJzusOl6sjsZwoHIXJqc7QuJkcmD+thVP4uhN7/YCpERHWDhhb0YY44o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708550589; c=relaxed/simple; bh=iiRktMYHLIJ9fptDhlCR5IFkYS+XarAW+y4+IYRyFw8=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=pYXSA7a6I+8HgUafMzFeuaW5ljWrsl5TtSmbmPO7/CKWudTTSAMla7gZuZ/Ztfacow2M2Qt0WIbKoM7yVDGMnQ/8M9QZhumpRbEgjBfxpM9Ijere0nB5E0ijjiqx1vfQgsyG0PwoQ6is6CA1hd/XlKP9czG4LVZaAutFu1lyJTA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=CeU+u+gH; arc=none smtp.client-ip=209.85.208.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-55a8fd60af0so10453719a12.1 for ; Wed, 21 Feb 2024 13:23:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708550586; x=1709155386; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=+9Q8p0SNxiEFE6O8wlGL+9mnBksm30FOR3CroGvtLII=; b=CeU+u+gHSpthGT9lD1Z7wo9COU75Ry8rfrq+gqRGck12/9xV5bW7HP+Fv/+bAwC2MA 21xfSvuSRDy2+DzOLShNmbuAeIpkTiDBgHxXbhKzXHBOKnKF46jNqjKiMaSO2UxINLJe 2z0WhZNqi9kBEHNxFW51BF+HwQ3NJgwpSF3TBHNhXYAuSmjvyKATuaDviiZxglKL3dKu /SPb+T/HJ1o4P8B6mqP16iUezS+uNPKu91cEVvGP+6BVCdPyx0C9SR8mOktZ89WSd2Pi 4iqZg6pZLAqotiIYvgdV0fnC+ACoQwtl8OWw74a9ZrTiKg36kwyfaqmJNMQkFiZVp5az /Wkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708550586; x=1709155386; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+9Q8p0SNxiEFE6O8wlGL+9mnBksm30FOR3CroGvtLII=; b=VmG5hcjCRiYw6QhTyS8uhlyxsZdT/qm5zDAa/Q+AxedCK6tPUT90ksoQNFiWonaeZf ZN7H1Z63+WR7X+6xWyMRLS/iUSs0e86xse12M82kDfUkwJGm+hFjJdxEnYZzKoVK5cY9 iIEveuOY+u+U1hPywhMl3Ra8qdfiAdu0NLnE3eDff/Ug35UVbrO4kqbphFzXfhIs75EY MZTktyemnxiJmNRIVL3wP9b2ZzTSBEIILDaOrKisYPy2ykNCCxB7pLQOK0sl8v6mtpCw Jfc/w3ZDp30d7fL80QhqfZ6n1ovnp46lqjZL9rzbqzGKnYOSahQiJ30bMqRplpBOrPfD gp6Q== X-Forwarded-Encrypted: i=1; AJvYcCVXZoa/xWz4OMi9ZAzjpJ6872VljyKSVkw0qmC3LYhJD6gisCtYWLxQObc+0CLiYvTyxyQEL73qAZZ+9GgSpEC6MpEMB0/9HavzpsQX X-Gm-Message-State: AOJu0YxuAffk+tED60Ju4lJ9AMv0Y85nRWv+Jhmc/J1DcyehQ/HEMtxA NZjao3Ik+whaSDDR7EA0Xvi1FAHDuO1CywB9G5o1DtkBI+McIiHeYAV9ZjjKHLw= X-Received: by 2002:aa7:d697:0:b0:564:56ce:5570 with SMTP id d23-20020aa7d697000000b0056456ce5570mr6568833edr.33.1708550585958; Wed, 21 Feb 2024 13:23:05 -0800 (PST) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id h14-20020a056402094e00b005644221a3desm4018764edz.3.2024.02.21.13.23.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 13:23:05 -0800 (PST) From: Linus Walleij Subject: [PATCH v2 0/2] Try to fix the sg_mitet bugs in SH MMCIF Date: Wed, 21 Feb 2024 22:22:59 +0100 Message-Id: <20240221-fix-sh-mmcif-v2-0-5e521eb25ae4@linaro.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-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIALNp1mUC/3WMywrCMBBFf6XM2pEkVNK68j+kizSPZsAmMpGil Py7sXuX517O2aF4Jl/g2u3AfqNCOTVQpw5sNGnxSK4xKKF6oZTAQG8sEdfVUsB+tNJ5Lexl1tC UJ/v2H7n71DhSeWX+HPVN/tY/oU2ixHl0YjB60FaG24OS4XzOvMBUa/0Cd6QVcqkAAAA= To: Geert Uytterhoeven , Ulf Hansson Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Linus Walleij , Geert Uytterhoeven X-Mailer: b4 0.12.4 This adresses some bugs found after the introduction of the memory iterator sg_miter to the sh mmcif driver. This was first just one patch for fixing the atomic bug, but now also a second patch is needed to fix a semantic issue. Signed-off-by: Linus Walleij --- Changes in v2: - Collect Geerts test tag on patch 1 - Add a second patch fixing the problem with advancing to the next sglist entry before reading/writing the first block and after reading/writing each block in a multiblock operation. - Link to v1: https://lore.kernel.org/r/20240220-fix-sh-mmcif-v1-1-b9d08a787c1f@linaro.org --- Linus Walleij (2): mmc: sh_mmcif: sg_miter does not need to be atomic mmc: sh_mmcif: Advance sg_miter before reading blocks drivers/mmc/host/sh_mmcif.c | 46 +++++++++++++++++++++++++++++---------------- 1 file changed, 30 insertions(+), 16 deletions(-) --- base-commit: 2d5c7b7eb345249cb34d42cbc2b97b4c57ea944e change-id: 20240220-fix-sh-mmcif-49c1de70c5b7 Best regards, -- Linus Walleij