Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5316886imm; Tue, 19 Jun 2018 08:29:54 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKNU9e7XdVPOvVzhAP00y7W9rfU31WN/RTt8HJl5E92olipJ3wM0tWmNgrkA61tow8C9KIq X-Received: by 2002:a17:902:b604:: with SMTP id b4-v6mr19327876pls.18.1529422193992; Tue, 19 Jun 2018 08:29:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529422193; cv=none; d=google.com; s=arc-20160816; b=ht5LjBLwBfSYUOz0hz/HGzuPKbCm07e/MSAv7W8WE/dmtcS+dd7LoRWISyxBXlmN35 NhegCdZElKoxj+Xxt4xeFvfbZhD1Rs4TyDloREI+TxMok2NMac/38n4oTHrAWx91T5W9 N1WhdG+s55FzCvx/gmg6ecvaCCc0b+cW1tcM1aJzCLZDU/HBYh+mwHg8wZu+Wwj1TZuQ dsB3X/WI78sENFTzYEMxkPmZQcyEO3kZdk0exht7RjuEa595n9pZhkDJAMP7nE1W7w3k 5gcwh5PX3giBueZWNv7wckBuVAqPR7mib4COHV2aVZGPJIc0fayolER/Oo+ZF5liRBPk NcmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=9QAS1Pneyq//YppdOPuvDHRb2eEE9apSIF+nUedfPjU=; b=B+/Zq6MnYH+5ok3bZzB2Mo7O0vy80LIFfa2Se2T44pl3gk7KYNMUQ5qrsjhrzKGGnP ERcYMT4LtVa/SlZMZ1K9jVCSc6TNzFgy7kDqnWsqnaQPDae/2vogxzAnIyKAa8Rsa4co K6ezTowzY9dfe5cTgGK13zvxkhnLNdtMspuJq5y2KC7seAKb7ntnxiYRJ1bA9c8Chkwk tcK/TIZaCEw5f0oBpLncdsV0JcaFMpQw1Z7+LrwboavCeKVwjNTkV8I8ERiURtJ+CNR3 NKz7tYXquaDRgRpNvC2I3IgZMRtAVUVX0B/okNTSEIqyPG/sCdaqb2KhBSURl0C+7tF8 4EiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=fsvLlxUS; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y7-v6si14113622pgo.81.2018.06.19.08.29.40; Tue, 19 Jun 2018 08:29:53 -0700 (PDT) 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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=fsvLlxUS; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966594AbeFSP2o (ORCPT + 99 others); Tue, 19 Jun 2018 11:28:44 -0400 Received: from mail-ot0-f193.google.com ([74.125.82.193]:37261 "EHLO mail-ot0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966208AbeFSP2k (ORCPT ); Tue, 19 Jun 2018 11:28:40 -0400 Received: by mail-ot0-f193.google.com with SMTP id 101-v6so114657oth.4 for ; Tue, 19 Jun 2018 08:28:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=9QAS1Pneyq//YppdOPuvDHRb2eEE9apSIF+nUedfPjU=; b=fsvLlxUS+16Ef3qe0u5Bx6I4XNLBM7S1u85N/61itWpsoZw1f9nwnD8dCck3ULORpt nrHNdHjTbGcl2MpY5w9yFhTSzAyltJ3mxiwca8j5Z/0St8Ha+4Z89X20nOhTBJxaSHr3 JRX/xh3QR9wWHVcBHKDg5hJoxEBBuPCoD5YiOnIDn/z934IkxSYC4it2UgNLh745L7KG HF2hnXxTASUe+vAE0LO0qaNBpLbKFEMmCS1O4wt7feQ2Zvs3fGfnEr36Cu8pLNj3a3Ez i/bg0T/DrrMd1vmz7ca0OQ3yByx64/K5QnV4+xsJJIy8d4KMziem5QEOzjwvqZek20sO lb9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=9QAS1Pneyq//YppdOPuvDHRb2eEE9apSIF+nUedfPjU=; b=oYi1Uku66rkpA9uZO11uk+vxnm0gisnSl9aosRXYNgdsZHGDcY5vABnWRC9XtVF1RE DIx3PLIEidNex9ss2BoywcvYNtO4nLVm13g25uWXRJx2Vq6R6wJsGGt7Ilu2Nphkhc/q HFjQoG4kb72vtlF2z3yREoFaz3IQlnZkM+eh/vAfdaiUSA5CJofKdcM1JtXrHcPYIp62 DhI7XFFxLLemxdGiktLP2a8TGT+rhhHSAUn2HzwxK0+wE5i7b3S7sW3eIEwN67jRjaKC 2Bo1QsIJ2Z5hsQ/qYCM9KZQzGpQmBgc6e9XCkBU2S1euqKYn05lOOXsTbGlbhpaXA0Xd 1NRg== X-Gm-Message-State: APt69E0ZtLwxeRSxhsTd1iHNwF5bxg1lm7jI+z5KaxZ2vGRWZzPtnNRE DMm7QOINaJPTlyefUTxZaaGh5+n6ySZxVmOq44jGpQ== X-Received: by 2002:a9d:2371:: with SMTP id k46-v6mr11386084otd.210.1529422119634; Tue, 19 Jun 2018 08:28:39 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:2ea9:0:0:0:0:0 with HTTP; Tue, 19 Jun 2018 08:28:39 -0700 (PDT) In-Reply-To: References: <1461620099-11933-1-git-send-email-toshi.kani@hpe.com> <1461620099-11933-2-git-send-email-toshi.kani@hpe.com> <1529350667.14039.119.camel@hpe.com> From: Dan Williams Date: Tue, 19 Jun 2018 08:28:39 -0700 Message-ID: Subject: Re: [PATCH v3 1/2] acpi/nfit: Update nfit driver to comply with ACPI 6.1 To: "Elliott, Robert (Persistent Memory)" Cc: "Kani, Toshi" , "linux-kernel@vger.kernel.org" , "linux-nvdimm@lists.01.org" , "Moore, Robert" , "Li, Juston" , "rjw@rjwysocki.net" , "linux-acpi@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 19, 2018 at 7:31 AM, Elliott, Robert (Persistent Memory) wrote: > > >> -----Original Message----- >> From: Dan Williams [mailto:dan.j.williams@intel.com] >> Sent: Monday, June 18, 2018 4:47 PM >> To: Elliott, Robert (Persistent Memory) >> Cc: Kani, Toshi ; linux-kernel@vger.kernel.org; linux- >> nvdimm@lists.01.org; Moore, Robert ; Li, Juston >> ; rjw@rjwysocki.net; linux-acpi@vger.kernel.org >> Subject: Re: [PATCH v3 1/2] acpi/nfit: Update nfit driver to comply with >> ACPI 6.1 > > >> Let's take something simple like Vendor ID. What is the Vendor ID for >> these DIMMs and what does Linux print in sysfs? > > Here are some examples (kernel 4.17): > > $ cd /sys/bus/nd/devices/nmem0/nfit > $ grep -s . * > device:0x314e > dsm_mask:0x3c76 > family:1 > flags:smart_notify > format:0x0101 > formats:1 > handle:0x1 > id:802c-0f-1612-122f8255[SPD bytes 320-328, in that order left-to-right] > phys_id:0x16 > rev_id:0x3100 > serial:0x122f8255 > subsystem_device:0x3141 > subsystem_rev_id:0x0100 > subsystem_vendor:0x8034[Cypress Semiconductor] > vendor:0x802c[Micron] Ok, so the lowest significant byte of the Micron id is supposed to be 0x2c and this text representation matches that. So the bytes are being endian swapped when written to the SPD?