Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp346019rdb; Thu, 15 Feb 2024 01:45:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXkTqBo7Lwim+2j5OIBFqkxoD4XZLZ7pwN9dGuUEAVSUJl/zVklGg9hwI4CJKVtvw57WZrxIA5YgSW0kGuJob+tZDKcPlCIVaaRhFCuBw== X-Google-Smtp-Source: AGHT+IFkd0+lMSs3mPl4acBvETF45M6AfwNd411A0GrZnL63rhutpxPbwcPKbhFqsjqeU3Jiypr/ X-Received: by 2002:a17:90b:2e86:b0:297:b60:4db0 with SMTP id sn6-20020a17090b2e8600b002970b604db0mr1809317pjb.3.1707990342767; Thu, 15 Feb 2024 01:45:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707990342; cv=pass; d=google.com; s=arc-20160816; b=CTzV/IV59EsRfDNKg2eMvQsqcdH4HEYmqvev9uF/5gi/ayiJ1CuBvpckboCpqYKfzf X/ODhaNRmR3+rTKZ2BVo0CWqxIVgq/gZLW9VZ9wOJrVtxEEWrQD3Wv0GNeES9wqL4PQu lAsYUzvjZzhmsWFXmET9wm0uLmKdxjDCwfE28pwpp89vo7paptG5xei+jJCp8lzT/Fi1 z0Au3utrgftnUxOSImZutEpJ2moayAQpCd7le4vVRexptrOdvYAzmec0nMhZYjYd2737 DF8w1FRntVsUgw240KZGOvDMp77WZwQQvXdsyHO8kF3cRUNuMhMHYiQEtoHkG0BwCOTO +VKg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=MpAnqmrBzKfhdUol4ez9sNwiJNke4mG+AQYMeOTO+3A=; fh=2nNtYIpWwgMsx7CIcueVLmeSsuBZiYHVij6RDFai+jw=; b=Bzma5NfP/FYt9lqFqvtGSvNohrmqVvyu42SjBdIHZdW4F37bKNzCgUsTzIbvWkJFl0 UG31CVihmXPm9Z4jjQfL9sC2shZdid3DMcGgdLy2rOKLIZyU9wJttcC2mHTvOm0IGUIY G9U+1/qWQ8kNsqpqnCg3GmIDdGatlmFXUNnc0ngo2wPjqtWrCHbR3fNBXkRvEXETar99 sVyR9RlVQIOJUXp7mbxC/JzmKyVZ9OhTUw26sy4x/cfTNjF2+js+QVNBANrz3urdzWQK fXYSg1IGqqNzSBtqzpzReUm0UOcec1Eyj/DpnMYx65dESiZ3fi1xX08gL2er8kJ85i3j qUzQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=BWc54xww; arc=pass (i=1 spf=pass spfdomain=amazon.de dkim=pass dkdomain=amazon.com dmarc=pass fromdomain=amazon.com); spf=pass (google.com: domain of linux-kernel+bounces-66571-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66571-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id u6-20020a17090adb4600b00298ce0f28fcsi2685128pjx.125.2024.02.15.01.45.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 01:45:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66571-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=BWc54xww; arc=pass (i=1 spf=pass spfdomain=amazon.de dkim=pass dkdomain=amazon.com dmarc=pass fromdomain=amazon.com); spf=pass (google.com: domain of linux-kernel+bounces-66571-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66571-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A22B9280F28 for ; Thu, 15 Feb 2024 09:44:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D00445027C; Thu, 15 Feb 2024 09:44:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b="BWc54xww" Received: from smtp-fw-52002.amazon.com (smtp-fw-52002.amazon.com [52.119.213.150]) (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 0BEBB4F5F2 for ; Thu, 15 Feb 2024 09:44:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=52.119.213.150 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707990268; cv=none; b=YjtwTXE3dIi9qryOtBPX/VH8fGN7w3TQaqrxzqPJxtEMBhRK3tyVGSJfuDdy2Bw5Iij9YvocIGlMtRGRTcJ2x3ohi/6zwXy4H7oA3Wq++Vm2rTm/WMktMZlrZvVYJuucGzu3FFfrlVFuQoyjTQJ6HDmQZ7wd1nAn5zG8r6AMOqs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707990268; c=relaxed/simple; bh=MpAnqmrBzKfhdUol4ez9sNwiJNke4mG+AQYMeOTO+3A=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=NQRmQyANTd7S+mNuve31A4A2CKsBPt0getaa6HQu4j67IJlA/51UtUdvsz4kCe+GqhojPWkbjJfYLXCc9OxlsqoyPjGIulo+qiAjtbrX3JaeGggDWJxuUUBtrr+VCIKXr9HFHGY3S06/4q0xbxHIEFiDv280RM6dVgLneCxTDuE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.com; spf=pass smtp.mailfrom=amazon.de; dkim=pass (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b=BWc54xww; arc=none smtp.client-ip=52.119.213.150 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amazon.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1707990268; x=1739526268; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=MpAnqmrBzKfhdUol4ez9sNwiJNke4mG+AQYMeOTO+3A=; b=BWc54xwws7Pzx1QbGyhA/YOnlTB9msumjGSKKfr1yeMAhq8UxcbhjXEj UYhzdFsLcOZ5j20xsUU0bd0aV03VG9GVu7ojgPQ28/f3FWIdGu3O/8Jwq 6p0TPJjCvfB+GmT+0yj1u43BRZamAgaFcTH8pRNzFL3js1o/av48FWWMU k=; X-IronPort-AV: E=Sophos;i="6.06,161,1705363200"; d="scan'208";a="613229364" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO smtpout.prod.us-west-2.prod.farcaster.email.amazon.dev) ([10.43.8.6]) by smtp-border-fw-52002.iad7.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2024 09:44:23 +0000 Received: from EX19MTAUWB001.ant.amazon.com [10.0.21.151:18611] by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.29.119:2525] with esmtp (Farcaster) id 195158db-1473-4e04-93e0-963f8771d726; Thu, 15 Feb 2024 09:44:21 +0000 (UTC) X-Farcaster-Flow-ID: 195158db-1473-4e04-93e0-963f8771d726 Received: from EX19D020UWC004.ant.amazon.com (10.13.138.149) by EX19MTAUWB001.ant.amazon.com (10.250.64.248) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Thu, 15 Feb 2024 09:44:21 +0000 Received: from [0.0.0.0] (10.253.83.51) by EX19D020UWC004.ant.amazon.com (10.13.138.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Thu, 15 Feb 2024 09:44:15 +0000 Message-ID: <8a6dabdf-dc11-4989-b6b4-b49871ff9ca6@amazon.com> Date: Thu, 15 Feb 2024 10:44:13 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC V1 1/5] swiotlb: Support allocating DMA memory from SWIOTLB Content-Language: en-US To: Vishal Annapurve , "Kirill A. Shutemov" CC: , , , , , , , , , , , , , , , , , , , , , , , , , References: <20240112055251.36101-1-vannapurve@google.com> <20240112055251.36101-2-vannapurve@google.com> From: Alexander Graf In-Reply-To: X-ClientProxiedBy: EX19D032UWA004.ant.amazon.com (10.13.139.56) To EX19D020UWC004.ant.amazon.com (10.13.138.149) Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: base64 Ck9uIDE1LjAyLjI0IDA0OjMzLCBWaXNoYWwgQW5uYXB1cnZlIHdyb3RlOgo+IE9uIFdlZCwgRmVi IDE0LCAyMDI0IGF0IDg6MjDigK9QTSBLaXJpbGwgQS4gU2h1dGVtb3YgPGtpcmlsbEBzaHV0ZW1v di5uYW1lPiB3cm90ZToKPj4gT24gRnJpLCBKYW4gMTIsIDIwMjQgYXQgMDU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