Received: by 10.223.185.116 with SMTP id b49csp3595463wrg; Tue, 13 Feb 2018 04:52:56 -0800 (PST) X-Google-Smtp-Source: AH8x225wOdH2UdOsQdCHiADNO4u2K7NdZSsTF1aXA8ggs3dRHeiPX3gzaSTSVcap9Zcgq33E3s+U X-Received: by 2002:a17:902:243:: with SMTP id 61-v6mr1045108plc.202.1518526375903; Tue, 13 Feb 2018 04:52:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518526375; cv=none; d=google.com; s=arc-20160816; b=StQdCLvK1kBMl5lE5DIyIZW+Z7kpjdz6OdB2ZujqPqNR4W/c0VWTAPw+Mt6EYWIMI9 GoGoPdbtaCXO8pTvMFl48teLQ2N4FC8fCBsM7SNg/N/534E1oIrET4RQvyT7l5BiST23 yXoySb8J8agMF213mOvojG3nvTVtKBBt/5OLaxUgSxckQ6gtie9qEb9oUNfC5Bd6oS2v Cq9411FxuilDqNHHP/RjWLm8MlNq3vOBR+z7HSvD/E9XeGVgKWhDpYDfp6IMP7AVgsPC gOlKW4EzPdK9qO9x55G9ZsqRkH1dp3b5M0wlox0sR+s4k1E6GRca8zGQsiIHt7O9/nVa 5yHw== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=uJAnRNeMlf2VS9VyT09BYxRxQwVT22mUAgasTXGrVnw=; b=dtfgCW5UJawwV4gauDXBZguJDiDuTSzN8Sx6cOW1ts09MlwtD0lRG3ap9W1MH3YwGM aus2LxbDXon7xzJBKcXK0Bzb821NxMNbIbaYSgYp4VxGK3JXUYe5ZGjCEGVEZ7Thpgug rNFfzT1LtbQqVCU1PtAm1Ju2nw+VN9kzRoUUhj3SA8JihceCsZjzDd+4OI3+Kaw/Ef+0 EwgXz9h2Hv2+V6rb40YHphIt8UO8sTh7Ls7gAj2aWvC1/seGhusc2KDtDg2mQbnZxdSA dAUjDJEbvZ8GFl2yk/DYTE7cLFe1V+kXMnCfTWlLS4acIq8YIO0XTEwtD8rcdhArfWvD xVnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=e7yLyuL0; 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 o5-v6si795678plh.780.2018.02.13.04.52.40; Tue, 13 Feb 2018 04:52:55 -0800 (PST) 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; dkim=pass header.i=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=e7yLyuL0; 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 S964776AbeBMMuP (ORCPT + 99 others); Tue, 13 Feb 2018 07:50:15 -0500 Received: from mail-lf0-f43.google.com ([209.85.215.43]:45836 "EHLO mail-lf0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935077AbeBMMuO (ORCPT ); Tue, 13 Feb 2018 07:50:14 -0500 Received: by mail-lf0-f43.google.com with SMTP id x196so24866513lfd.12 for ; Tue, 13 Feb 2018 04:50:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lightnvm-io.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=uJAnRNeMlf2VS9VyT09BYxRxQwVT22mUAgasTXGrVnw=; b=e7yLyuL07PwY1nyYgFb5XgpKGq5tO5ySKXyyiTuW4fKlEnNfHRZlXklJWZxzRzV2C3 vPQboe4Aw5tASWgDg/ayY2MF2fIPZhWzBaA2fELy5+YT6StkDqzaLUT92Q3xhOhAT35s 8/4aFZPfO+vIWmsC06UjqNLvNr/iWVscXV4f8clu2UhYbcbYY8TLC2CXGFv7MJc6+hLr +5xFfJM92dwuwwUq6nunOGBwk1yDSmYbUrrkBcuIAAhVom1e8VeYi7/3N7grtZu+ZLLi ItOOTwZiqM9G4Q0v8pNTob0wEi19P+A2iRFe5qnPkE+vGYrziGmhnRFkNppoVpBe/PSr FPAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=uJAnRNeMlf2VS9VyT09BYxRxQwVT22mUAgasTXGrVnw=; b=DDUe2d3zHJ0Lq7itt9xYiVMnohBAEYmU0oy8Br+NKlXb3RUqitQqBpk3vLJCbMWNx8 H7NpOQOa3waaHV0dMeT0vNt6sbwb3bFzTWX6qfQhvWuEBSatViy2psTaMrr+Oe+ej7tV m6x506r7vUt1oAtvtjo8Node3ZDnHd+LTD5Ty6zVQrh/6aKj5habKDi7aydkfMJywv2Q ttz0vE5Mpb/noMmGyhVNrtcxZPe85RrpLdabC6of4xKdHe5Jc7GpBN2LzBS298Rd/idr xckkj4uaq+R5hW8TOjmHw1cs68LTxd2ixMpEpFtLbyxeR/b/HlyfEH6J5ceXTJ89Clno d6xw== X-Gm-Message-State: APf1xPBIhXxV2jrM8KkAJ3LGu19iayVAOXPgby37Hw+gdJgwdy8jfM3y +tlDgmyZv+VYGdZGTZl7079f6QBB X-Received: by 10.25.205.148 with SMTP id d142mr888581lfg.9.1518526212904; Tue, 13 Feb 2018 04:50:12 -0800 (PST) Received: from Macroninja.cnexlabs.com (x1-6-a4-08-f5-18-3c-3a.cpe.webspeed.dk. [188.176.29.198]) by smtp.gmail.com with ESMTPSA id m18sm2166776lfj.34.2018.02.13.04.50.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Feb 2018 04:50:11 -0800 (PST) From: =?UTF-8?q?Matias=20Bj=C3=B8rling?= To: hch@lst.de, keith.busch@intel.com Cc: linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, javier@cnexlabs.com, =?UTF-8?q?Matias=20Bj=C3=B8rling?= Subject: [RFC PATCH 0/1] nvme: implement get log page offset and dwords Date: Tue, 13 Feb 2018 13:49:15 +0100 Message-Id: <20180213124916.28653-1-mb@lightnvm.io> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch introduces support for get log page offset and extends the number of dwords to be 32 bits. A function is introduced that takes the offset and implements the support. This is needed for ocssd to retrieve the report chunk log page, which can span a couple of megabytes. The patch is based on Javier's report chunk implementation patch, and is generalized to make it part of the nvme core. A follow up patch will expose the extended function and let the lightnvm module call it to retrieve the report chunk log page. A couple of questions with respect to the function: 1. Should we check the offset in the extended function to be dword aligned? 2. Verify that when offset is defined, the nvme controller version is at least 1.2.1? 3. Handle requests that are larger than supported by the mdts field? My take is that the caller should handle all of the above. Thanks! Matias Bjørling (1): nvme: implement log page low/high offset and dwords drivers/nvme/host/core.c | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) -- 2.11.0