From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752938AbaJFQZe (ORCPT ); Mon, 6 Oct 2014 12:25:34 -0400 Received: from mga02.intel.com ([134.134.136.20]:17905 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750888AbaJFQZc (ORCPT ); Mon, 6 Oct 2014 12:25:32 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,664,1406617200"; d="scan'208";a="482286332" User-Agent: Microsoft-MacOutlook/14.4.3.140616 Date: Mon, 06 Oct 2014 09:25:35 -0700 Subject: Re: [RFC PATCH v2 01/16] ACPI: Add support for device specific properties From: Darren Hart To: Mika Westerberg , Grant Likely CC: "Rafael J. Wysocki" , , , , Greg Kroah-Hartman , Linus Walleij , Alexandre Courbot , Dmitry Torokhov , Bryan Wu , Lee Jones , Arnd Bergmann , Aaron Lu Message-ID: Thread-Topic: [RFC PATCH v2 01/16] ACPI: Add support for device specific properties References: <1410868367-11056-1-git-send-email-mika.westerberg@linux.intel.com> <1410868367-11056-2-git-send-email-mika.westerberg@linux.intel.com> <20141006135021.0EB04C43FBE@trevor.secretlab.ca> <20141006143248.GE1583@lahna.fi.intel.com> In-Reply-To: <20141006143248.GE1583@lahna.fi.intel.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/6/14, 7:32, "Mika Westerberg" wrote: >On Mon, Oct 06, 2014 at 02:50:21PM +0100, Grant Likely wrote: >> >> > +/* ACPI _DSD device properties UUID: >>daffd814-6eba-4d8c-8a91-bc9bbf4aa301 */ >> > +static const u8 prp_uuid[16] = { >> > + 0x14, 0xd8, 0xff, 0xda, 0xba, 0x6e, 0x8c, 0x4d, >> > + 0x8a, 0x91, 0xbc, 0x9b, 0xbf, 0x4a, 0xa3, 0x01 >> > +}; >> >> ? >> >> What is the encoding used here? I see the first 4 bytes for "daffd814" >> encoded in little endian (0x14 first), and then the remaining values >> encoded in big-endian for each number. Is this typical for UUID values? > >The buffer format is explained in ACPI 5.1 spec, page 823. > >I generated the above so that I compiled a _DSD with correct UUID using >iASL and then disassambled it with the same tool. > I bugged Mika with the same question, it's a fairly non-intuitive encoding :-) -- Darren Hart Intel Open Source Technology Center