Received: by 10.213.65.68 with SMTP id h4csp463041imn; Wed, 4 Apr 2018 01:22:40 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/ZHPMYxH0l01fESysrBxSu1Fj6pvXBETzji4BpxWMXApUUcc8qAPhlVLNM1QFeuFT10VNL X-Received: by 2002:a17:902:8e86:: with SMTP id bg6-v6mr17390818plb.91.1522830160037; Wed, 04 Apr 2018 01:22:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522830160; cv=none; d=google.com; s=arc-20160816; b=Pb2AqC2dgmhvIScBfBwtg9H46O3uFlDrJ+3xI4X7jV0fYoLQFmkpHjuSyDtnHPRA8N 80DmJfMkeZ8lSs0TI/NJ9PKNqL85WrYddDCssHcGN/i/RUYS6QG1vn3hGIUb7vWFE9CM BifiFWKQJtFmFbIo6o6PU8t+Ev013ZCSbA/v6qTgbwyvvM2vo0usuw8elIoBZsE2KwYD KXUlUeyRNT560Qpfg1/FzFUiQgFfOwVBxe+6uCsyJLgMb1hJ6E55ZY1K/wc2j/GGO4op G/Cm7v1RtMu0/M/Gd+2iw8OKDlO6n0i3gI+RC6cADxQwpk00kKLi8tWUgevRHmf5/we4 rGkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=BzOwfG8YiuWZQdsr/GnlVMyWchsOL1F/fdUfW84kVLM=; b=YTWRKKFI3oyA+C/Sh/iDh9wM8E46xZfbz9MRCIfRVGRKzAj2OXV3dw6xMvrgckLTIk Bi80m/EYAOXprGXGTp0Q32mHIP0i0e12dHLaPgy4JaRPFLWvzp2jznDVXZ0F+E3qqzfs w3KZD5bcKsAoJR/UrTtALVZmGIgBKSjidhrcAJWVUC2V+kdFWg9v8HHgGXuyoLnJakaE oMk/yexwzLSVe2UaCmUYCh9WyGcRFrj9ui0//wP+upQeVUhEQuAo0xb5fjZQ72nOHtu+ sT+8/N3aWv1Ub3RseEAVBOrSdm+65fwbYtqTn2FZARdgG4/A8Ra/E07SAUWyTRJpgwus pCUg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d15-v6si2657378pls.232.2018.04.04.01.22.26; Wed, 04 Apr 2018 01:22:40 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751277AbeDDIVG (ORCPT + 99 others); Wed, 4 Apr 2018 04:21:06 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:55427 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751167AbeDDIVE (ORCPT ); Wed, 4 Apr 2018 04:21:04 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w348JBBM023390; Wed, 4 Apr 2018 10:20:46 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2h1yf79ysj-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 04 Apr 2018 10:20:46 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id D894031; Wed, 4 Apr 2018 08:20:45 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag5node2.st.com [10.75.127.14]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id BA9B814D9; Wed, 4 Apr 2018 08:20:45 +0000 (GMT) Received: from [10.201.23.236] (10.75.127.48) by SFHDAG5NODE2.st.com (10.75.127.14) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 4 Apr 2018 10:20:45 +0200 Subject: Re: [PATCH v2 5/6] i2c: i2c-stm32f7: Add DMA support To: Wolfram Sang CC: Maxime Coquelin , Alexandre Torgue , , , References: <1521650940-11651-1-git-send-email-pierre-yves.mordret@st.com> <1521650940-11651-6-git-send-email-pierre-yves.mordret@st.com> <20180403153925.lg37rezuvs6hefks@ninjato> From: Pierre Yves MORDRET Message-ID: <273ac8d2-6861-c1ad-c2fc-f9c5cc2ac3de@st.com> Date: Wed, 4 Apr 2018 10:20:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180403153925.lg37rezuvs6hefks@ninjato> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.48] X-ClientProxiedBy: SFHDAG6NODE1.st.com (10.75.127.16) To SFHDAG5NODE2.st.com (10.75.127.14) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-04-04_02:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/03/2018 05:39 PM, Wolfram Sang wrote: > >> +#define STM32F7_I2C_DMA_LEN_MIN 0x1 > ... > >> + if (i2c_dev->dma && f7_msg->count >= STM32F7_I2C_DMA_LEN_MIN) { > > Are you using DMA for every message with a length >= 1? The setup of > that might be more expensive than the DMA gain, if so. > Well yes. I am in charge of DMA IPs as well. I2C is the only devices that I had to test DMA outside standard DMA Engine test. Quite convenient. I believe to stress both I2C and DMA, this value was relevant. Now I agree this value can be tuned a little bit. I might raise this threshold in V3.