Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751160AbdG0Ez2 (ORCPT ); Thu, 27 Jul 2017 00:55:28 -0400 Received: from mail-ua0-f173.google.com ([209.85.217.173]:34231 "EHLO mail-ua0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750859AbdG0Ez0 (ORCPT ); Thu, 27 Jul 2017 00:55:26 -0400 MIME-Version: 1.0 In-Reply-To: <20170726171028.GJ3053@localhost> References: <1501047404-14456-1-git-send-email-anup.patel@broadcom.com> <1501047404-14456-3-git-send-email-anup.patel@broadcom.com> <20170726171028.GJ3053@localhost> From: Anup Patel Date: Thu, 27 Jul 2017 10:25:25 +0530 Message-ID: Subject: Re: [PATCH 2/6] dma: bcm-sba-raid: Peek mbox when we are left with no free requests To: Vinod Koul Cc: Rob Herring , Mark Rutland , Dan Williams , Florian Fainelli , Scott Branden , Ray Jui , Linux Kernel , Linux ARM Kernel , Device Tree , dmaengine@vger.kernel.org, BCM Kernel Feedback Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 679 Lines: 19 On Wed, Jul 26, 2017 at 10:40 PM, Vinod Koul wrote: > On Wed, Jul 26, 2017 at 11:06:40AM +0530, Anup Patel wrote: >> We should peek mbox channels when we are left with no free >> sba_requests in sba_alloc_request() > > and why is the world should we do that, how does that help?? When setting up RAID array on several NVMe disk we observed that sba_alloc_request() start failing (due to no free requests left) and RAID array setup becomes very slow. Doing mbox channel peek when we have no free requests left, improves performance of RAID array setup. This change is inspired from mv_chan_alloc_slot() implemented in drivers/dma/mv_xor.c Regards, Anup