Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp538167lqh; Fri, 31 May 2024 08:47:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX5DVFsx0N7S0viROYz9J0PiRMd3MipGmTcs0rr9DgQXkY9T8GH5yz1O+KX+OyzSdHz2Tx5yl2CS7xmFz+8g2fpo19uqT1ux/GxvU6YUw== X-Google-Smtp-Source: AGHT+IHAojjpTu8DlpHTz/uw75HbGk6IWdd97AQATuBCVslc4AhjErnNTWpp5wAVL4tLEzhdn82q X-Received: by 2002:a17:906:fb9b:b0:a5c:dad0:c464 with SMTP id a640c23a62f3a-a65f0910cd5mr468604266b.6.1717170428327; Fri, 31 May 2024 08:47:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717170428; cv=pass; d=google.com; s=arc-20160816; b=pMe/fdDM/TGS07XY7Fe66sLPf7SPUIKMxlqC8As09cB1pdBj52XYiMfNAu7ZVTuDTn hM1LOCY0+ZgXAHFLv2xzVQM/rqP6cCHw3H98OiQ8npI5uyZ2Fk76oWc3GDQIKaLtO3wS 3clqPL4GLwoU8lhqigZC1cRlmDG4ADy946M7PumL3vqLlBq3oShC8ba3qp9dhsW2DyuV uR7Bs0o0t7e+BSEh6ACd7Md8bItZKeJvWFBucqMaP/LJ1PDAfa82yaqoaU5bYVQStwUM tRmayap3FWpVwLlCtYXH/nX5vqkKGWxCtod0ZPVOBY62FBbwT8yzbmBLSy69LvMnCxOP wdYA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=48EstrLpq9HK/FsTvnvsJGqmlUDmcchwC6PKHbWTt30=; fh=fDGgv1Ox4siI9TtAtk2HFNlderd0LRhZjjzR02qd9Us=; b=liJr3VtXcHyyBJ4noP0BmW/20qstLxwm0+sGooWCkjacXEcJolHtpfyt2yF3YkAg9z UP5TWgulUE4WxijHLDvyIcJWwGTnW6ui/dnh2Ud9CF+ce/wQ+AtcXTtWV0gzxOk2hpBa uXDHxmhAUJX4MMv/mW59BcdBnQOqkHHYv0PpJ47E6RBl/NNoDLkbg9Prmni6tsE4ohcE EAOe8xwOh358uDaCDMqgNXzq57TBsIOH5yNch7ha2/WAdy19MkfqohQbpz4NLQ9erqQq Ra6bvUE/P0B7veTe7Byi4wnMGOojUKQPY64CXkv/HLfRnbtRnG15O3vLMHKlW6EOqbhs PchQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=F9n10dvg; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-197091-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197091-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a67eb72328esi101241466b.945.2024.05.31.08.47.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 08:47:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197091-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=@gmail.com header.s=20230601 header.b=F9n10dvg; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-197091-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197091-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 11D221F23230 for ; Fri, 31 May 2024 15:47:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0E4DC156242; Fri, 31 May 2024 15:47:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="F9n10dvg" Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 BB5D445016; Fri, 31 May 2024 15:46:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717170420; cv=none; b=dAgBe9jYFTLA6va0jUa2BLEXpoanR/xyw+1fIQy/clBVVD0FLQ/GcJQnyD0Vqjj0oQPa6yvXVzG6kLG2UD4RSyGIk4zcdk5qO9BvbN6WM76IGoeblCxnSDiNtk9GApgP/GheOuJqLFNluVa2NNDVnPC19lbv9pI6Jt5vM8i1Fdo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717170420; c=relaxed/simple; bh=SwCMaLnNOezhPRxRJXyYP48o4h5KECH13gYp5P8VBWA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=jkbn99tS1fCWcDRRwnZBKqQfUqmbzk/Dngl4sFXjFbIURI4He3kgIHAIWie++kYY8lkulHYfzelBAx3hrYbgpZl8JZuB0NvMUkKtmVaBO8I0uIz+PeIbNcSgvhz1rlrcgGODa89P2UbFop9Rrs+ujSN0DyR4tJFGEgXk6f/gYbQ= 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=F9n10dvg; arc=none smtp.client-ip=209.85.218.41 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 Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a6269885572so419003266b.1; Fri, 31 May 2024 08:46:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717170417; x=1717775217; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=48EstrLpq9HK/FsTvnvsJGqmlUDmcchwC6PKHbWTt30=; b=F9n10dvgebx8VsQai8jLPTGtuYGgrSxQO1su96cPywPrHHymFLXUKoxaF/G2mog1Fw WGlT9C7bkIpyxqe9A77OC8GP+aZGOKRLc6DUnQyMdxJPahlAbE88NJmF1nliGv6LvO13 At93xyKK7K2zao9NUEoH9/vRoustqo5BJYdpukqQ1O7ZMAQc+N+R8pVyA/ojVYIqdzbN JifdNWtfYpnRYhBQIEnDZRs83ZDHNEPLHn7CZjbH41qrBUMX6YLlKKz+7bzsisBadxw9 C+syfXKliwbIACwsII2c5doy6MLTog98ljXFB7l+M3V5a1HAN1YDtkpXIUyz7794vhr8 FPlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717170417; x=1717775217; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=48EstrLpq9HK/FsTvnvsJGqmlUDmcchwC6PKHbWTt30=; b=sRqySYwWv4cgNcvlF7S2scvoPIhifLzjAC4C0ndt/hKq6kz9M1njL4QUNglHxJuEb4 fb13cqId+O0707KqUdBHb0RiktexAWL4b9mHFoE6FGpz77bcInZXlKjgq8ACXuiPpz49 wFImwYxX8SUrYQPPUOlD4jJRCMkztPicCOLsB8ORZRkJipIjPL7J9R7nZ43pYkGSapdj Q5T5jB803jVqjY45a5Asl7zMsp9UPvX5VVsxKTnUH6etU+EcSxlL8UqB4Yl2T1PXCqBY VxizTLDeZghC9hOINX9hdE4qpl+kqvj5OdqOP+EE2g6Iyu21oTF/y7WYhwmS0z8dEfel JEaw== X-Forwarded-Encrypted: i=1; AJvYcCVPfzNxDCwZ5LhhlMTRUBw2wIejimDTF9Zda+nRHNALQ+6KH9HMYIw9d40QESu5EdqqQYXosWPNS/K9ZJLo+BWHcbBLs5352Hyg1jnNFFXEyN4F++XSj4VkfYPm1ZCMccOGA5Wcxszf X-Gm-Message-State: AOJu0Yxm12rqEIaqTlplBWyJf6PS9xqVi6DoCcHrzb/hFOVFtESPGXrq 0YIWTq2ePbJh9OcYF514fDtsfp1014fFxy91THouNI7lQ/+hT6LvBIoa4aDo3JZRY2L/My58GNe ozem5N1h0Y4/q082uSE0PwUcS0Ak9f1kma7U= X-Received: by 2002:a17:906:e907:b0:a5d:239:1a59 with SMTP id a640c23a62f3a-a65f0911017mr463694266b.3.1717170416890; Fri, 31 May 2024 08:46:56 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240531094658.1598969-1-andy.shevchenko@gmail.com> <1ea41944-a107-4528-8e8d-559c06907e3f@notapiano> In-Reply-To: <1ea41944-a107-4528-8e8d-559c06907e3f@notapiano> From: Andy Shevchenko Date: Fri, 31 May 2024 18:46:20 +0300 Message-ID: Subject: Re: [PATCH v1 0/2] spi: Make dummy SG handling robust To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= Cc: Mark Brown , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, May 31, 2024 at 5:37=E2=80=AFPM N=C3=ADcolas F. R. A. Prado wrote: > On Fri, May 31, 2024 at 12:44:31PM +0300, Andy Shevchenko wrote: > > There's an unreliable code to handle DMA mappings on unidirection trans= fers. > > This series does two things: > > - it reverts the seemingly unnecessary change > > - it reworks dummy SG list handling > > > > There is no need to backport that AFAIU, but no harm to apply for v6.10= aka > > the current release cycle. Guys, please test these. > > > > Andy Shevchenko (2): > > spi: Revert "Check if transfer is mapped before calling DMA sync APIs= " > > spi: Do not rely on the SG table and respective API implementations > Hi Andy, > > applying either of these patches causes issues. See the traces for each o= ne > below. This was tested on top of next-20240531, which works fine. Oh, thank you very much for prompt testing! Can you test just the second one without the revert? So, your patch seems needed for the sync API calls, while I considered only mapping APIs. --=20 With Best Regards, Andy Shevchenko