Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp2320779ybg; Fri, 5 Jun 2020 10:53:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwO5Ir7FZOzQtQ2z2LcsEXUkLlbxRnK+3n5tzvrirO3aZRtj0Av10fWnEHyRZWAUWfWG5R6 X-Received: by 2002:a05:6402:b21:: with SMTP id bo1mr9965531edb.169.1591379614826; Fri, 05 Jun 2020 10:53:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591379614; cv=none; d=google.com; s=arc-20160816; b=kquRElrbxchX6G7Ku6Zc3Xt2DzW+kIdoNG0ApZy/O95Nz9N8ns88NYkt8WCPpmWgGt 3l2uIQ910nDfM9jhcwWH+3PHnicg9WTwGot3bJ4Cam6epgPFKHxkUfrRZsZA75XaLzqb IqkqD+Jg8pkbZV66jLDsSduGwdwl+s8+JXoUlInWaKtZsRnPlpiN4s3uVBHCSd+OaSj6 ehBEJJ8+gRlD9jBySm2rHEKSIJ2NxCszNHVizOqV3z2yS76J02CqwpHNCsmqQsR80d5+ KQXXZ12+yUjPjToa9ghJmA5dw4UeUiks8iqWIaMJaGWDUTN2d0wJXsM3cB4gGy1O5Kze O7Pg== 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; bh=0vLGlzEx0rwAYdjqqL0DhAVkssn30AbMu4u+tKyhPG4=; b=bJp+Z61bdN/KKIu02M9+548bT1CCyQ2Sog58WU9EKHDn2Pc5Gm1TuK6j2/tO1BWH0D iH7pQp+Ngf/eUgUWbKwFpN4yK3w+PtlShUe8GP4hqPDCUBJvcsCo2UwNJ+MhDrBFYchh WlUFwQAuy+U/mebXqC4Xak9d7S1hlvqWwIh1piLbLITqfTXiRHofkdgZj2UueeSVCpMO nbIzvPdjsHJFnKmx05z9GqV/kvuEgXqHo9uJWK4JbBAEyqFIwIfwALegjgqKx1XYS2ll ExIawFVrRKpuzKG91cmKM+qi0hL/ccbOkJOAjaaeaMK8woaMusqA31601XHUn6DVZ3wB uqDw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y12si3963677edt.9.2020.06.05.10.53.11; Fri, 05 Jun 2020 10:53:34 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727879AbgFERtR (ORCPT + 99 others); Fri, 5 Jun 2020 13:49:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726867AbgFERtQ (ORCPT ); Fri, 5 Jun 2020 13:49:16 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91140C08C5C2; Fri, 5 Jun 2020 10:49:16 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: tonyk) with ESMTPSA id 19ABA2A50A4 Subject: Re: [PATCH] docs: block: Create blk-mq documentation To: Randy Dunlap , axboe@kernel.dk, corbet@lwn.net, linux-block@vger.kernel.org, linux-doc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel@collabora.com, krisman@collabora.com References: <20200527200939.77452-1-andrealmeid@collabora.com> <63d78a87-0953-ada4-266d-42279f4351d8@infradead.org> From: =?UTF-8?Q?Andr=c3=a9_Almeida?= Message-ID: <8f4997dd-f68b-cb57-14e2-379914dc14ee@collabora.com> Date: Fri, 5 Jun 2020 14:49:07 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <63d78a87-0953-ada4-266d-42279f4351d8@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Randy, On 5/27/20 6:58 PM, Randy Dunlap wrote: > On 5/27/20 1:09 PM, André Almeida wrote: >> Create a documentation providing a background and explanation around the >> operation of the Multi-Queue Block IO Queueing Mechanism (blk-mq). >> +Hardware dispatch queues >> +~~~~~~~~~~~~~~~~~~~~~~~~ >> + >> +The hardware queue is a memory space shared with the block device (e.g. DMA) >> +where the hardware can access and dispatch requests (represented by struct >> +:c:type:`blk_mq_hw_ctx`). To run this queue, the block layer removes >> +requests from the associated software queues and tries to dispatch to the >> +hardware. > > This paragraph (above) says to me that these HW devices understand struct blk_mq_hw_ctx. > Is that correct? Is is some kind of standard? If so, where? > This wasn't what I intended to say here. The struct blk_mq_hw_ctx is an abstraction from the blk-mq API used by device drivers to map the submission queue of the hardware. So no, HW devices can't understand struct blk_mq_hw_ctx. This paragraph was reworked for v2. > > thanks for the documentation. > Thanks for the feedback.