Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp220394pxb; Tue, 2 Feb 2021 03:34:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJwluInuEv86Jv0W0fcs7CN0xB0gpMe+ZA4v5IjBXzNYjvJ67+Ri7TqpvHY5zNhQ+hDa0kwI X-Received: by 2002:a17:906:3885:: with SMTP id q5mr22357276ejd.105.1612265666747; Tue, 02 Feb 2021 03:34:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612265666; cv=none; d=google.com; s=arc-20160816; b=iDUTs9pWFDrum3ps8xCgbgqL3RD30he+nxxZv01Xf+iDd8nlMHCPT+yNF64YxJZk6w n039lSX/38Ak/QF9dy6acwi2NM6XxCOPz+gvjkSh2z7z07fTbvZLHDI3FZ+c6UyFk7JG o/RY3Ej9SoGhKOJVmt+DWv1FkWrOTHr4g8ppzmCQ81XyOedVnP+uOYxe2L9jpPoXmUXJ m0SZ0xakQgsp0ux5rirwD8Yiy9uK3ZjONLTe2DdvUPJ1pSwaJIZDOwlaCjsVGu+2Suyp 9TrvqTuR9IR3To5Tv7+9q0MykN03BaH3nRljc8cHrHu0/04JaBRAFEf6X5DykReXDN9b V4dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=uE7aCaYTU2iP84izQ8Vx918iODoYKmM81Z/8VBpyzeA=; b=n1HDe4uzmXuZoawOAciksKNEZuX0jPbVJXFaJjhHhGcs0UgW15dSoV12Bj1HUWOCsg TgeDaKjpi3b02uVzw39JS5ZGJ0cE0xY545gG0uablO2aYLIEXitnJiFFaFr2pfUVP2Kp O2Z2XSPTiwE2MuWhRlGKAaK5LLVi7/g4tllzAv0Cw3CePiIKk3clTtKRFqPCOKe1DlKq Wij1mvEB630+pH3SzhtFJDDR9PV8ByCBOoYattYINbKwQW3qqRajLJ92YqgAIyLaJ/qI Q+EV8X2MpRo+1rfwlsmjEHbQxTERBbKRLAgKeZ1YMBFXuaYoz2ooH5QUvWzioC6NaN9c Fubw== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gs5si4367855ejb.491.2021.02.02.03.34.02; Tue, 02 Feb 2021 03:34:26 -0800 (PST) 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229838AbhBBLXI (ORCPT + 99 others); Tue, 2 Feb 2021 06:23:08 -0500 Received: from mga11.intel.com ([192.55.52.93]:27980 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229808AbhBBLXF (ORCPT ); Tue, 2 Feb 2021 06:23:05 -0500 IronPort-SDR: PJ+w4yrZzc3YsP0pCJ46WR9EDAVTDJ9z4tEouhsOwLSdS53N/tmmeaS6DgjNAibAvEkLfNsCct azSFZPTVTyfg== X-IronPort-AV: E=McAfee;i="6000,8403,9882"; a="177328508" X-IronPort-AV: E=Sophos;i="5.79,394,1602572400"; d="scan'208";a="177328508" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2021 03:21:18 -0800 IronPort-SDR: arxa1CnexkB+IedD8L6vPTrDVN5f4z/C8a5pzT/twDzjV3GGUUsXy2Tf3v1Tqzazeo+z2FX1Hd 8pL4xV87qATw== X-IronPort-AV: E=Sophos;i="5.79,394,1602572400"; d="scan'208";a="359007943" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2021 03:21:13 -0800 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1l6tk5-001NHP-Ui; Tue, 02 Feb 2021 13:21:09 +0200 Date: Tue, 2 Feb 2021 13:21:09 +0200 From: Andy Shevchenko To: Jianxiong Gao Cc: Keith Busch , Erdem Aktas , Marc Orr , Christoph Hellwig , m.szyprowski@samsung.com, Robin Murphy , gregkh@linuxfoundation.org, Saravana Kannan , heikki.krogerus@linux.intel.com, rafael.j.wysocki@intel.com, dan.j.williams@intel.com, bgolaszewski@baylibre.com, jroedel@suse.de, iommu@lists.linux-foundation.org, Konrad Rzeszutek Wilk , axboe@fb.com, sagi@grimberg.me, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V2 3/3] Adding device_dma_parameters->offset_preserve_mask to NVMe driver. Message-ID: References: <20210201183017.3339130-1-jxgao@google.com> <20210201183017.3339130-4-jxgao@google.com> <20210201205759.GA2128135@dhcp-10-100-145-180.wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 01, 2021 at 04:25:55PM -0800, Jianxiong Gao wrote: > + if (dma_set_min_align_mask(dev->dev, NVME_CTRL_PAGE_SIZE - 1)) Side note: we have DMA_BIT_MASK(), please use it. > + dev_warn(dev->dev, "dma_set_min_align_mask failed to > set offset\n"); -- With Best Regards, Andy Shevchenko