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=-10.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham 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 A2F43C55ABD for ; Sun, 15 Nov 2020 08:45:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6DEDD2242E for ; Sun, 15 Nov 2020 08:45:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726682AbgKOIph (ORCPT ); Sun, 15 Nov 2020 03:45:37 -0500 Received: from verein.lst.de ([213.95.11.211]:51528 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726647AbgKOIp0 (ORCPT ); Sun, 15 Nov 2020 03:45:26 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 1416767373; Sun, 15 Nov 2020 09:45:16 +0100 (CET) Date: Sun, 15 Nov 2020 09:45:15 +0100 From: Christoph Hellwig To: "Song Bao Hua (Barry Song)" Cc: Christoph Hellwig , "iommu@lists.linux-foundation.org" , "robin.murphy@arm.com" , "m.szyprowski@samsung.com" , Linuxarm , "linux-kselftest@vger.kernel.org" , "xuwei (O)" , Joerg Roedel , Will Deacon , Shuah Khan Subject: Re: [PATCH v3 1/2] dma-mapping: add benchmark support for streaming DMA APIs Message-ID: <20201115084515.GA18411@lst.de> References: <20201102080646.2180-1-song.bao.hua@hisilicon.com> <20201102080646.2180-2-song.bao.hua@hisilicon.com> <20201114165336.GA24844@lst.de> <5c4488dd28fc4869b7e67dd842ffa208@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5c4488dd28fc4869b7e67dd842ffa208@hisilicon.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org On Sun, Nov 15, 2020 at 12:11:15AM +0000, Song Bao Hua (Barry Song) wrote: > > Checkpatch has changed 80 to 100. That's probably why my local checkpatch didn't report any warning: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bdc48fa11e46f867ea4d > > I am happy to change them to be less than 80 if you like. Don't rely on checkpath, is is broken. Look at the codingstyle document. > > I think this needs to set a dma mask as behavior for unlimited dma > > mask vs the default 32-bit one can be very different. > > I actually prefer users bind real devices with real dma_mask to test rather than force to change > the dma_mask in this benchmark. The mask is set by the driver, not the device. So you need to set when when you bind, real device or not.