Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4316601imm; Mon, 18 Jun 2018 12:48:54 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIz9Q3pst+zNb7j6iH7gfb4hMT2LY2NfQmB5aeZO908rmV6TrXileDI/w/QVNaN4cwxm4s+ X-Received: by 2002:a63:6807:: with SMTP id d7-v6mr11852851pgc.7.1529351334755; Mon, 18 Jun 2018 12:48:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529351334; cv=none; d=google.com; s=arc-20160816; b=sZJsNwYSVczSDSDzy9LpNJbJuurh/oYqGvCyU5bSToLGUCzLeseyljMR8zqO2aOAH1 EZgAbECoUMAmvE/p1q+gY1UJqFu8M33P7H+J2zx1q0xLzRUIHLApr1xr6S2B+ENHwrLu XBo9zWLKp4xG3PCOvU6XP7cIRTDRyBC/wJHTC0rRY3yItcbudWys1Vm5yQN5EI/gZ3DX 4d2s9glllfIUlxlHopvLWHaRAUeIe7oTiHGpMb9FiNCstXbEYfwdxzgm6OwAhI0xFnLY a9DXtR7IgZlSd6s5Dna2az2LqADsWYJHk/NaeEcqzYVZLGgm2RVS5l2ANVZkljcOHmnS 6umw== 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=w7eFyN5OjYalMfVm729/qKxnewR+swQiKFOonGtqVNk=; b=LE+EVSKqhLCJd/rG7mFraSKYVRzleaUVpW1q+SHCPmVBmlc/TBAoKo6NHpBMmrbdYA sv1hHGg3lZPlg+fmPw8CeeX4fRMuRSKKV/Lqe1CKUHUTUwUeoqRrgwIEFsGI79DbY5e6 BLMZ3uAxaG6fICCN3udhnFrfiGIS+gGjAELikdCS9merHfBeyFveNgCoGDpAqeUdxdWH TjejBCub6Nn2xZHVfm6JYGUI8g3gkMeIoR2DI57TV9zQEBEZ2UewSKlANwsaeOapBL+l vKiwmX+YQe9qBZBlut48s9/2Z4Z+4LvDu+td5wlirhMgEMGWjQoG7JrDFEnL6itMqahO 6Ddg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=1BQssVHV; 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 k6-v6si15548861pla.78.2018.06.18.12.48.40; Mon, 18 Jun 2018 12:48:54 -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=1BQssVHV; 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 S964926AbeFRTqn (ORCPT + 99 others); Mon, 18 Jun 2018 15:46:43 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:34271 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964904AbeFRTqm (ORCPT ); Mon, 18 Jun 2018 15:46:42 -0400 Received: by mail-oi0-f65.google.com with SMTP id i205-v6so15977776oib.1 for ; Mon, 18 Jun 2018 12:46:42 -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=w7eFyN5OjYalMfVm729/qKxnewR+swQiKFOonGtqVNk=; b=1BQssVHVh8/NAwXZYzBqXTHy0NGa99bqL5ZJANHXTveaDCyaFMx7oCFSY2+QcYlWoF PDoKiDewg2e2/nI9q+QVL7Jh14MJi9D81lZMDc+Rb7aNMphMbOxf71yQNEU5FnUjqEcV NZl/+VFKN7yPJV3WQa7w/5kjR85yTvAZVhzIpFQOfpbF4JGbe2J3ajD+YuEYbX8fixuD 6fo5McwDX4E8ONrhbh49IoGwVknSgGOeYgI6lcFkIhfmSjoaH+utAwABB+f3QlgsC5tK KUaV+MAi4UfcA8fawtq3idhOGyY0AZ1/yrlD0CGTfYvhnjW0lQav9yRgMdckNteGUrlO molw== 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=w7eFyN5OjYalMfVm729/qKxnewR+swQiKFOonGtqVNk=; b=MSNbJ+UgzzuntO8Kphm/1txmTlbsdJyUlGOqs9avfY4BZjZi1I/XL5VM+ufgslTLz6 tnXZ8GImL5A2jZiGetWx46hqfVgI1/sdMgwf7PV2qdwxXnG3RB7s971eoqTe1/+8DV2M buCWG0Ec5o4w/+RmaOpvkLJuvWTGny9zkztaSawEtaBftn0YikyTIHMj/2MjAKkMh79q E2OZlY5As0r/pPIjBLnJ3BpXYxeK8ADmZ2CEdfgWK1othPb9iZuI3xXD4Z+agSaECRs3 vGFoGi6MclOTUhX4zqY5LnB4mrLHACpVruHSGlPB2G9Z0Uo2lbOxqzC5aQNpI+qqXXLc hRHw== X-Gm-Message-State: APt69E3Kfyb33pZkUjAST+Joqpj7leKQOdP7hXEU0ERefLxLbziXXkPz IqaUss9sxsrzC36ECrOjTgii5VoZyCLyhkijmiqiGQ== X-Received: by 2002:aca:3d43:: with SMTP id k64-v6mr7253613oia.166.1529351201846; Mon, 18 Jun 2018 12:46:41 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:2ea9:0:0:0:0:0 with HTTP; Mon, 18 Jun 2018 12:46:41 -0700 (PDT) In-Reply-To: <1529350667.14039.119.camel@hpe.com> 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: Mon, 18 Jun 2018 12:46:41 -0700 Message-ID: Subject: Re: [PATCH v3 1/2] acpi/nfit: Update nfit driver to comply with ACPI 6.1 To: "Kani, Toshi" Cc: "linux-kernel@vger.kernel.org" , "linux-nvdimm@lists.01.org" , "Moore, Robert" , "Li, Juston" , "rjw@rjwysocki.net" , "linux-acpi@vger.kernel.org" , "Elliott, Robert (Persistent Memory)" 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 Mon, Jun 18, 2018 at 12:39 PM, Kani, Toshi wrote: > On Mon, 2018-06-18 at 12:01 -0700, Dan Williams wrote: >> On Mon, Apr 25, 2016 at 2:43 PM Toshi Kani wrote: >> > >> > ACPI 6.1, Table 5-133, updates NVDIMM Control Region Structure >> > as follows. >> > - Valid Fields, Manufacturing Location, and Manufacturing Date >> > are added from reserved range. No change in the structure size. >> > - IDs (SPD values) are stored as arrays of bytes (i.e. big-endian >> > format). The spec clarifies that they need to be represented >> > as arrays of bytes as well. >> > >> >> Circling back on this a couple years too late... where are you reading >> this "arrays of bytes" note. As far as I can see this is wrong. JEDEC >> says that vendor id is stored LSB of the id is stored at the lowest >> byte in SPD, which is little endian. So it seems Linux has showing the >> incorrect value for a long time now. > > This follows ACPI 6.2a section 5.2.25.10 NVDIMM Representation Format, > which Robert cited in his comment below: > https://patchwork.kernel.org/patch/10237609/ Right, the representation format has the fields big-endian for some reason, but the individual values for sysfs should be show little-endian as far as I can see. What am I missing?