Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp98380imm; Tue, 19 Jun 2018 16:48:48 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLrTNCfEYON0y7JiMbj0341jaKZLU35NPNvN6Mkm3ry1ROvtza3G4aabqwjM9ZgmNISePT7 X-Received: by 2002:a62:c45a:: with SMTP id y87-v6mr20378071pff.190.1529452128906; Tue, 19 Jun 2018 16:48:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529452128; cv=none; d=google.com; s=arc-20160816; b=spTRwuMj6XXNsf1WvZ5dwXcZ1uWYfOYq4My8QdgJEnQW5pt3xT8RSLzStPYI61i37A Ta2B4HTXnlZk7oFNk0Kn9ONVcXJusCVYRiUlGMMb/tAmigAhE6BUuUFDcagVCKEJZ3zc Ob87UMc+GE7brMYRzVLcjK8fBwVLUJY2FHlG4B1YysfEEOTU+hTVJp1ck2Hg+MKcM1el BPV8TmT6Z1sfasNJwj80CS+Z1Ufx8MZWyqmbIYKwRSXyFPuSV2yKkFLQBWcB5zz2yCG1 RPvc5HicSve2i+2igLcZyyi3bUobeyRKRr8TbLfCo0meAjU6QDofXeAACY/GT1fZfkxz 2OMw== 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=guCzthlM3/wATgiTR4AuOzKn7ML7POF7PwQv3lDNXWA=; b=T64XzBVkWIcbJsM3gWkfm8pspPzUxFH/xF0/F7VcGIcpFSQVbshdc2xxfbzENO1p84 QDSZqiJIRXpVwFErscXBpt0mQmmD+xmgAVGQOJIpqCyUKNNWyTNmzCEAqnpIFYCPu5jl q7Lt4bapObqwb/d+BGu50DSGK7yLJLEeKMc4jgJocMqa+lVnMvVCJ0ou2GIQLyxgWN6k /E1pZCY3zMJavEz16xCZLTu98uTIqam0I3D4SNtUq1DtJhj8s6SrKNHlLAj5OYoJ1FV8 h/uAfCeSh7GWhO+8PxIRjTaWercYXsr5VKZO7bdgr2QvIz3Am9jUvcoYpLiyOgZ7P0O0 pUEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=WCONs+Ri; 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 m8-v6si868437plt.29.2018.06.19.16.48.34; Tue, 19 Jun 2018 16:48:48 -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=WCONs+Ri; 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 S1753832AbeFSXqc (ORCPT + 99 others); Tue, 19 Jun 2018 19:46:32 -0400 Received: from mail-ot0-f196.google.com ([74.125.82.196]:45229 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751777AbeFSXq2 (ORCPT ); Tue, 19 Jun 2018 19:46:28 -0400 Received: by mail-ot0-f196.google.com with SMTP id a5-v6so1666158otf.12 for ; Tue, 19 Jun 2018 16:46:27 -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=guCzthlM3/wATgiTR4AuOzKn7ML7POF7PwQv3lDNXWA=; b=WCONs+RiVg5T276Ux5OlwC3uvkEWJcWMxKV73rE8cKVPLgmGee552kj2xy90FJlKx9 IeKqkRyCEJmeDyrUlwwuSg0w9pvIeMxJ7uAj9qIffDF0pWwvOGDDXbvK4/O7/adKzijL /6V/kbNnYfb+K8Urb2APDXOoabBP/pnhu1d3EuRej2EKgnK3Fa/53sOx8FPNWRMFySbr VQDUU5QqPH/0j5RRK8DC8/u/OvJ+LBwjb1ZQiMjU4cclKbwYVxfa6d/UW1+c3EA6F86P NBYNc1GVnLT4+tMUgfmoGssbwuSZLqUj0u4kckn9ldzCJSTtw9O+19yLomUBtqYYdyqo giOg== 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=guCzthlM3/wATgiTR4AuOzKn7ML7POF7PwQv3lDNXWA=; b=fXleNV6XVBauCU5VjswuPFatAX3IgtvreNMqNR4RJUV6DH+eHyE73eHbw9SFoO29aN TlQtMXYBDOyT/jKGbDyYog1vA016fcDPcZeyquLl2YxoAtiwO2YgpvQ4Tucws+lm+8ld adcH/GYJJHsg2ctSK8xqxCi8M8im7gkjAYiIVR/vbhIw8vxpdxDujE/iKuhfaeLEVjMA kY3TNKGKOV53aH+la+4tL/Ofg0QDJ4DWMJot8Ul2JkSHXuksHYnbTqOg5wu4D9XfoZKx b+tkss11AYw/JRlPVo5pQwVpfvS+TJXaNYAU9/tCbk5gcthcQLq6UrTOoP1zorDEo0Jo YBXA== X-Gm-Message-State: APt69E0LzHflV/lreVOXfyG1cJ+oJxbtkhI/hnEWZKo1yTIqu3TQtD1T BCOKWtjpaqtVp50l4GrlMCqlFaKLPbCmbL/6EHnAlg== X-Received: by 2002:a9d:32ca:: with SMTP id u68-v6mr12317783otb.117.1529451987591; Tue, 19 Jun 2018 16:46:27 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:2ea9:0:0:0:0:0 with HTTP; Tue, 19 Jun 2018 16:46:27 -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 16:46:27 -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 12:53 PM, Elliott, Robert (Persistent Memory) wrote: > > >> -----Original Message----- >> From: linux-kernel-owner@vger.kernel.org [mailto:linux-kernel- >> owner@vger.kernel.org] On Behalf Of Dan Williams >> Sent: Tuesday, June 19, 2018 10:29 AM >> Subject: Re: [PATCH v3 1/2] acpi/nfit: Update nfit driver to comply with >> ACPI 6.1 > ... >> > >> > Here are some examples (kernel 4.17): > > Note that these values were as reported on a little-endian system. > >> 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? > > SPD byte 320 is 0x80. That's the bank number byte (with odd parity). > SPD byte 321 is 0x2c. That's the manufacturer code byte (with odd parity). > > If treated as a single 2-byte value, that is: > * 0x802c (32812 in decimal) if interpreted as big-endian > * 0x2c80 (11392 in decimal) if interpreted as little-endian Ok, JEDEC defines byte 320 as the LSB, so the fact that Linux is showing 0x2c as the LSB is wrong. Linux needs to be fixed.