Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3931630pxv; Mon, 28 Jun 2021 17:03:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXowTV1V5j4LIYKaFK03YPQMOvEDYMlEhzU2d385uchgmarxoiBH52iHRusBUKdBTnTmCi X-Received: by 2002:a17:906:3c0d:: with SMTP id h13mr26323999ejg.269.1624924981480; Mon, 28 Jun 2021 17:03:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624924981; cv=none; d=google.com; s=arc-20160816; b=f7/YFsE+Cp2kVSaszRq4OKNCK9/FNfXDhpsoitvAyIeWgpVLPsIYywuXbnPKJnC7fk SSa+D2nbVG3MBmQ7PnYXoGJsn40iIMvBTSeUp02EfaDIi2vB4IdZ37v9q0VbNbD/qhW3 0gizG+BPhOnefTDXQzp8rFLtAN8Heo/7YuBb7p6kk51At7+RERIs8h9AMpjoecY6OuA9 X7u9NfD6l4370puFmA5kX/5hLVav4kK57li4R+nQynjgxhAlgN6WdM2U2jBnZccpGTEt sSm9XoH+SQHOisZIqpVkv4W2M9QX6DWIv+jn0wTzUKOSG7bq8A0lEnukAPSl+52nvoFH HxFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=VFJY8505wyLq/TqpNtGxx/X4mufdytmO16W0L0dHIgg=; b=l6tCwskR9rOjfCZs2oWhnjMvIa0yP/S2DQOZooKpLVi+rLAxNKIYhWQtwxYjjelStm ZJlht5bAMfYzE2spozIiSuxpYH4lXQQVCK4Xei3W4Mlk9OY6b3EiGVS52plluBiLDqQp Z4LkKsZGOg3jjdQSesEzu9qgwATctFt8no10APoczgEZ50aMqQI9ZhBBw+eYG2S6/JcH QunyKG+8/XKAELdY4SMkwNRKD6SPEG/18nEJPilk5m1mld/DCKcAK8obcakhXKmqQG+V h15fyqI8ErQzEnlLJkk9JfknALnf4jaqNCQMXaXge2TOyKfGd++9vGT0rYMtOxxVVFvK yF/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@landley-net.20150623.gappssmtp.com header.s=20150623 header.b="om4/U1E+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id my37si1174793ejc.337.2021.06.28.17.02.38; Mon, 28 Jun 2021 17:03:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@landley-net.20150623.gappssmtp.com header.s=20150623 header.b="om4/U1E+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234094AbhF1Tcf (ORCPT + 99 others); Mon, 28 Jun 2021 15:32:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233366AbhF1Tcd (ORCPT ); Mon, 28 Jun 2021 15:32:33 -0400 Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60AA5C061760 for ; Mon, 28 Jun 2021 12:30:07 -0700 (PDT) Received: by mail-ot1-x32a.google.com with SMTP id o17-20020a9d76510000b02903eabfc221a9so20050646otl.0 for ; Mon, 28 Jun 2021 12:30:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=landley-net.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=VFJY8505wyLq/TqpNtGxx/X4mufdytmO16W0L0dHIgg=; b=om4/U1E+hj6T7UkgHhPtAr+MURu4APHxmHXxUJG1zNOw+zEl+i9NmsNx3QnEYmmNCp t5rlS5d/Weh7HtAbUzHIz3gebtjOexW6hV5er/4UNfgesAv55oB0eNOqwh5ZbTOJK/g5 mmELdGLy/6PiyMJtTefdbQ9vqO+4dpJxQb8bhb2sD26EtqVaM4l+VBwLu8z+oLgnGrJA 7JRvkVcgqJbA8TVSkSmHJyxT5B3B42fPTHenlSLt9m4gER/SRYB5BU3YJlnvVC3d/nAV /4/i8jJd4gUGylUuI7MzMh6daNP+Kz6t7IWsXvW6dw6k1KHRxIMnL8Oq2oE4S1HsyORb 8DoQ== 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=VFJY8505wyLq/TqpNtGxx/X4mufdytmO16W0L0dHIgg=; b=MFn3Fkcv+JkIKIAsDiqUPHtxrQUFKiQBxQOiyXeWr94ldEl2FUiSZJuRt80dqT8TQc 1GlZHxcxgINYHaYMBWunwuakD4O0AjuaK4d6bk0klGGDXSlAgCYY6OidDRWqr1WVujTx oZKRqarfaroI1nT1stN2OplO1YLUXgUJoZaIYOlhB+A1CCIawlpSPDrL/oZ9zdSmIC8N I4D/jSGsZ2ECq3bFHb6tNH57F/9xg8xgPxw5ia0JYO+cgWi4OAIHQdboakz4VbfUXBWw 6jXM0g2o4rxcfPmPezt15iwzVGPj5KJG3FrxVJVZ1tUb5LPlh61WpNwMyIkARtZeNehH NtWA== X-Gm-Message-State: AOAM532C7eOICkmeR73YoigqF9SqnDrsQFvCTwPvY/V+e0egs72M69Gp LHzN5ThlEoSKZtYzlHg4Aix+toKVwq+8Itdu X-Received: by 2002:a9d:62cf:: with SMTP id z15mr1002438otk.306.1624908606386; Mon, 28 Jun 2021 12:30:06 -0700 (PDT) Received: from [192.168.86.166] ([136.62.4.88]) by smtp.gmail.com with ESMTPSA id p190sm259011oop.2.2021.06.28.12.30.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Jun 2021 12:30:05 -0700 (PDT) Subject: Re: dma_declare_coherent_memory and SuperH To: Christoph Hellwig Cc: Yoshinori Sato , Rich Felker , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210623133205.GA28589@lst.de> <1a55cf69-8fe1-dca0-68c7-f978567f9ca0@landley.net> <20210628133858.GA21602@lst.de> <4d6b7c35-f2fa-b476-b814-598a812770e6@landley.net> <20210628134955.GA22559@lst.de> <1141b20f-7cdf-1477-ef51-876226db7a37@landley.net> <20210628163312.GA29659@lst.de> From: Rob Landley Message-ID: <4415e2cf-5a6a-8e83-a6d8-391c25e1f041@landley.net> Date: Mon, 28 Jun 2021 14:47:15 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210628163312.GA29659@lst.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/28/21 11:33 AM, Christoph Hellwig wrote: > On Mon, Jun 28, 2021 at 09:29:59AM -0500, Rob Landley wrote: > >> Your plan is to eliminate the ability for non-device-tree boards to do DMA? > >> > No. > >> Which part of this exchange have I misunderstood? > > The part that there is no easy way out without the device tree > conversion. Interesting use of the word "No". I didn't ask for easy, I asked what needed to be done. What is the patch you want to apply to kernel/dma so I can see what infrastructure needs to be moved into arch/sh so it's our problem and not yours. If a wrapper function has to fake up a temporary device tree snippet to lie to new DMA infrastructure that refuses to export non-systemd APIs to handle this, fine. It's still less intrusive than converting EVERY device to a new API on boards I can't easily regression test. (And hey, if you squint that would be a little like a partial incremental device tree conversion.) Rob