From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BA435DDA8 for ; Fri, 8 Nov 2024 07:08:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731049701; cv=none; b=TLkW+WO2fy4bUTkua5SHBu7saJx0XSirJyRon4rgb/zmykY1sHgG6oihbBztppkG0PSvNyoH14rdrB8d4wTjHBnySy1h2DxjEIOTlNFr5Z9t4u/BenmvpjAFl4ApNDO/wVa7cDWfG2CMJjw8W39HB8ME4Ofqod+RU0dVVDFOKLA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731049701; c=relaxed/simple; bh=Ew36ksT+oX+8/RU8nWQadFRWIm7fTggzOfZ9S3UXCDI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=H3K4E5RsR50Qz0Lt21XEV4RkbOfC0apADd946uGT96X/5yoCTCYZm7P40DpqAc2qxCt+A0bJFygDAtbFQmW195TuXw2DS5fuJ0g95OmQ1PxcAT3BR1+19+cJjawq0fbzPydImHjzCimxCVtsAGh1OEkrYOYZijt6fG8Nq/MRDFM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 2D2CC68AFE; Fri, 8 Nov 2024 08:08:07 +0100 (CET) Date: Fri, 8 Nov 2024 08:08:06 +0100 From: Christoph Hellwig To: Keith Busch Cc: Bob Beckett , Jens Axboe , Christoph Hellwig , Sagi Grimberg , kernel@collabora.com, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] nvme-pci: 512 byte dma pool segment quirk Message-ID: <20241108070806.GA9216@lst.de> References: <20241107165131.3462171-1-bob.beckett@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) On Thu, Nov 07, 2024 at 10:19:30AM -0700, Keith Busch wrote: > We have a constant expression currently, and this is changing it a full > division in the IO path. :( Yeah. Given that the device is broken I'd just have it pay the price and never use the small prp pool instead, which just adds a single extra branch to the fast path.