From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A8B99C433FF for ; Mon, 5 Aug 2019 08:11:26 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2521320665 for ; Mon, 5 Aug 2019 08:11:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=cogentembedded-com.20150623.gappssmtp.com header.i=@cogentembedded-com.20150623.gappssmtp.com header.b="OKXu80bh" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2521320665 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=cogentembedded.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4629T80PVWzDqx5 for ; Mon, 5 Aug 2019 18:11:24 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=cogentembedded.com (client-ip=2a00:1450:4864:20::241; helo=mail-lj1-x241.google.com; envelope-from=sergei.shtylyov@cogentembedded.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=cogentembedded.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=cogentembedded-com.20150623.gappssmtp.com header.i=@cogentembedded-com.20150623.gappssmtp.com header.b="OKXu80bh"; dkim-atps=neutral Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4629Mg5zYpzDqfV for ; Mon, 5 Aug 2019 18:06:36 +1000 (AEST) Received: by mail-lj1-x241.google.com with SMTP id t28so78486267lje.9 for ; Mon, 05 Aug 2019 01:06:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=4jotGUYX3HDjIjrPWkq93S31gJkGTLLQx5i8QIerKxE=; b=OKXu80bhtKFjmm2MpkIDYVWmXqi7Y+Xjky/uEczjP2Zl5b7vO97lSZ4GxsSOJjZduQ VgPXNXexmCAKG6Z+637VhMExKFfEjxuDw3H3mRcIbO3qLRCxF1TJiOxHnvXkyL1xl5hz 9tSzcuFZEaM47GjqXTJ6n5YnEqhbYAzKlpVrDHKCy9VeCfnp53elgyy+VMv+lz31Ers7 Eic301vKwslj47MtbPz81DyzufZoA3sVB/fmBoMeBi2wwb65qyfXQctIncrR9gNzSMvv ew3Ty0ZvYjqCUhy9kY7gTZ+iW4B61AZpbS675ligIs/I+dyRKPx83vFtsSrTsvbz0lFJ WX4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=4jotGUYX3HDjIjrPWkq93S31gJkGTLLQx5i8QIerKxE=; b=Joy4Dqm5TaZsePNEz70rmFgCz0qevH1VN8IcW3C56n2EjA20pUNHTaKxR9KwULlVj6 8nwPjlNxR+WLPKrjhEtmP5x/x3ciGMF+YlZKZGlzGIOOeIpI5Y0ajCx7R6Xk6XU+SzIC UvmE5cm0q6rfHiw6ppsBpxdvB95eQyY7MGyKynBYdVUAa99gT2avImIt98McKHtFlcB2 UaGe0aV2L+RsHHbkc/hR00awpHyBGSU1HKCOQQqd2pmg96ZGmLN5Rhr0P2cnwtTve6/X Dk5ejTPEigW6tVS6Yowfc5arkprAq5yaojDbQIV1Z8wvv3jcVt1RJiDMpYhsA7VkNOxb 9M8w== X-Gm-Message-State: APjAAAW+0stiZiazEgLxT2EZh07HOZJAqC1fC0uT92E0Jh9z961WgCBd FmlmsyFcCnf87+/wDRJrW8bgBw== X-Google-Smtp-Source: APXvYqyZpQSVk777vhC2lpS6B8C38YOlvgzOQV2vQdpdrwUMZBvpR5l2r7dZg3bY6N4q4hVA/QRa0Q== X-Received: by 2002:a2e:9b48:: with SMTP id o8mr78054712ljj.122.1564992392086; Mon, 05 Aug 2019 01:06:32 -0700 (PDT) Received: from ?IPv6:2a00:1fa0:44f5:2f9a:806:ec14:8a98:a30c? ([2a00:1fa0:44f5:2f9a:806:ec14:8a98:a30c]) by smtp.gmail.com with ESMTPSA id l24sm17213019lji.78.2019.08.05.01.06.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Aug 2019 01:06:31 -0700 (PDT) Subject: Re: [PATCH 2/2] MIPS: remove support for DMA_ATTR_WRITE_COMBINE To: Christoph Hellwig , iommu@lists.linux-foundation.org References: <20190805080145.5694-1-hch@lst.de> <20190805080145.5694-3-hch@lst.de> From: Sergei Shtylyov Message-ID: Date: Mon, 5 Aug 2019 11:06:24 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190805080145.5694-3-hch@lst.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Shawn Anastasio , Will Deacon , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Russell King , linux-mips@vger.kernel.org, Paul Burton , Catalin Marinas , James Hogan , Robin Murphy , linux-arm-kernel@lists.infradead.org Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" Hello! On 05.08.2019 11:01, Christoph Hellwig wrote: > Mips uses the KSEG1 kernel memory segment do map dma coherent MIPS. s/do/to/? > allocations for n on-coherent devices as uncachable, and does not have Uncacheable? > any kind of special support for DMA_ATTR_WRITE_COMBINE in the allocation > path. Thus supporting DMA_ATTR_WRITE_COMBINE in dma_mmap_attrs will > lead to multiple mappings with different caching attributes. > > Fixes: 8c172467be36 ("MIPS: Add implementation of dma_map_ops.mmap()") > Signed-off-by: Christoph Hellwig [...] MBR, Sergei