Received: by 10.192.165.148 with SMTP id m20csp2270226imm; Thu, 3 May 2018 13:25:13 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqHWFDN04ern9oQrFGKVAgnWZFrLwv9WU+ww6cq8zqbhCgVUXIRSoyHUyu6RUu4yoVN9W8y X-Received: by 2002:a17:902:2804:: with SMTP id e4-v6mr25198512plb.153.1525379113540; Thu, 03 May 2018 13:25:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525379113; cv=none; d=google.com; s=arc-20160816; b=pIuDk7jiABBD4x30PfDrzXvIlwbBRaT2pY55kb0aTZWRC+30gu/lHUTM+x1hNwn9aV Y9iqCNJakC2sTFLeodf1Hvayczg/RAbS+lO3bk+pulg69ANMbPW0c+3254jDDtWeZNtG Rgi0sWgb1S79dzrSxTeP9K0CNCeqqdSABUfDyX7QdOb6lO392VFIdASYDAf3V/zZi2XD VeZcCpYnWe9FMmMWhBZmwt8Y/SA4MrFuOA1ihLVpxpq4z6beLiw4vIkd+eWNZAvae2+a ET/RRObtYNHsMU686xmXsaqJxK9Q/E914c9wklOjQsA5R4Zk/oNGK4HZqHYbKsiHOzsR 7Wbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=ZJ2ACRqWsKZ0uZPsMu+gBAaZ7P4zm7KPGr3QgDre+ns=; b=n6qJ6X9Z73dABfjFJIVuKIZ9o1Wgq1aKukLh79ul4wCEbb9wslUj01EzrbepqtsIV1 o2DoiRPYwuwMdZsi9Vi9EFOE7GZ2XyNuu6WXpq0s4JjFZIH+jTZea84X1P3FwvNS1cUR +wyHlbGxNZpHruYkMbk75D4miggmYy+Rhy8BM3IRi8xx+cvmYVUHdu/tztFmALaWLD0q i87yLnVu8kZz3RUYj50Jki/RaOUZXRiCUhySg71CzErsg1YQJ+Wsh1rzaChz96Uyzr0C EkCjmLR2CDZYyBpY8eV5fuZEJcuX71sagRfzDw3cwosg11fxiYrxUEvK7vHktF8lSCDP FHhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kj+v1DA4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t135-v6si12036215pgc.656.2018.05.03.13.24.57; Thu, 03 May 2018 13:25:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kj+v1DA4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751241AbeECUYo (ORCPT + 99 others); Thu, 3 May 2018 16:24:44 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:41070 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751275AbeECUYj (ORCPT ); Thu, 3 May 2018 16:24:39 -0400 Received: by mail-pg0-f68.google.com with SMTP id m21-v6so13912009pgv.8; Thu, 03 May 2018 13:24:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ZJ2ACRqWsKZ0uZPsMu+gBAaZ7P4zm7KPGr3QgDre+ns=; b=kj+v1DA4/2cA6j6k3JZGawPLPmm9cD1/uatTkYyFyoCabOiqCvvuaw3PfwX0F+P+NU naRMBcY7T4Fp2FTJKjo8sXr5Q7FRZHDXDoAaMa8jHaEHj69pN3iKz23GByKOZZxFv0LU RNRTFjzhelvTPy22V+cUs3ITSobfjalZI7rIx4wVZtpX6TFqI6DljWLFUiGe7H1TfSnX LaMe3qGwCx8QPAUxT2+pidklkG+6NwzcsQqsKXqtBVxnv/wbjjtSUXGSmYrBo/ZAOy/7 UjDy1We56YWv6Qm1JTWYqU89O3LcM28b69e6VRq8Hk/sAkzlEoy7yqNSEUY6IZpjvlZT Sc0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ZJ2ACRqWsKZ0uZPsMu+gBAaZ7P4zm7KPGr3QgDre+ns=; b=b94N0jDSWpEOH7Im9h2uabMOTJ+B6VubzvW83rxPtulnhbdBzCf4XSp02ne6ssyJ3S c78z9lhzoFMdo7AZW/sLLjWrxRJjdc7qnKy0TOLr1510BUw+4udrCgVSbsy2OrCYIJdA ZqwEb20rvd/e9To0x7PoqwWnJF0LmAtYDv9wnNCrvyBsM9DOTzLhigfhPBV3fhMwc/up FOJn4eHI4olwbzsNs9yl7Rz9hiL0JFdDY8UJebMLQvklBMtX21WGHFE/aXSDh0Z6OEhP VgoUgYg13FNVhyk3bV2ZjhjFG8+SGAtWn1qu6SEFCtkgHn0WeVPCMssItIb4Qh6Tedq8 xO5A== X-Gm-Message-State: ALQs6tCT1wfRTpcPJFqYLo3Orq6cveKpl67ua0ym9cZ48Y8ULsm53Ri0 vzP4uoFz7kXaapz8jFQH+JU92V2PgEzrNeKVJ2M= X-Received: by 2002:a63:7f17:: with SMTP id a23-v6mr19567969pgd.99.1525379078720; Thu, 03 May 2018 13:24:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.149.2 with HTTP; Thu, 3 May 2018 13:24:38 -0700 (PDT) In-Reply-To: <20180503085120.GA14574@lst.de> References: <20180503085120.GA14574@lst.de> From: Michael Schmitz Date: Fri, 4 May 2018 08:24:38 +1200 Message-ID: Subject: Re: [PATCH net] macmace: Set platform device coherent_dma_mask To: Christoph Hellwig Cc: Geert Uytterhoeven , Finn Thain , "David S. Miller" , linux-m68k , netdev , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christoph, On Thu, May 3, 2018 at 8:51 PM, Christoph Hellwig wrote: > On Thu, May 03, 2018 at 10:46:56AM +0200, Geert Uytterhoeven wrote: >> Perhaps you can add a new helper (platform_device_register_simple_dma()?) >> that takes the DMA mask, too? >> With people setting the mask to kill the WARNING splat, this may become >> more common. >> >> struct platform_device_info already has a dma_mask field, but >> platform_device_register_resndata() explicitly sets it to zero. > > Yes, that would be useful. The other assumption could be that > platform devices always allow an all-0xff dma mask. That's not always true (Atari NCR5380 SCSI and floppy would use a 24 bit DMA mask). We use bounce buffers allocated from a dedicated lowmem pool there currently, and for all I know don't use the DMA API yet. I bet that is a rare exception though. Setting the default DMA mask for platform devices to all-0xff and letting the few odd drivers force a different setting seems the best way forward. Cheers, Michael > -- > To unsubscribe from this list: send the line "unsubscribe linux-m68k" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html