Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1090657ybb; Wed, 25 Mar 2020 15:39:05 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt6g+E5IsNo4nuimcaJLfWysJDkkvSeXB8QhCY8Jp/VaOEGlOlYjuOeHW8sK1hnRrGQCvMH X-Received: by 2002:a4a:9b94:: with SMTP id x20mr3038955ooj.31.1585175945500; Wed, 25 Mar 2020 15:39:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585175945; cv=none; d=google.com; s=arc-20160816; b=HWhmjuvPTFmSoe/IjChatqLDArRv6etWCgon2JIIoYwZyZoupRomlFdpv0VwPxOtdU M+PjyKQe0ihTJdRPIaJbJ/Uh2WLAjnFMd3NBGL47QVUup+/tffYnz9pocR+tsqJ12h1+ GJ9Lrej08waG8sVk1FGXili/ehWVV5R1hHGutarrSEcvTvCy/QPSRIw6NeRT0LNM9SV3 qqP3KwhoOJ6eI8WQVoCbte+mrq8IUq1JkcuEE6yXvhMRcpgblEHaENgcXOYYRJspGweq HIFcyGPCSu4i/blhUoDlatJCAnS6pI8LnoXboF0UAL4jwByDjZKmeC344D/nTF093ygF SZ1g== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:ironport-sdr:ironport-sdr; bh=DZLlCVG132ZaqlbQE4KKpsNXcOglsFPuPPFjKPJ8Bys=; b=CRN+JSlCqpH5Q42tnBfZwTperSLHZHl0uQ9Wc0JqZNY2YlV68cDqPNPUBgYOulJeJX LeTfsJ28vMV7m9yBXk1HP0YpVcZQqeMS6dc9InEdUf3EPjGEwOSKgkHYjmEzju+vPyxI kX8kGMmPuuBOnQ3Peb/vO5IMa3rMXZlHRFbKu2gKDoiLLu3vVUAvYBH0xQVqYg6KJLiW 8uGMRdDyDJmRsErYyymkVFEpXwAF0A2UIsHs4g7jg+92aVzOCZ9Bw9OpRUR3gD/D6o8L 4iC/N71a2Kga4TdWrpvY1SbEtKNtzJQckRsSDVY76jHIKdCpzvyo0rQy+wv4Y8h5sCwX ussw== ARC-Authentication-Results: i=1; mx.google.com; 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 k10si218846otr.174.2020.03.25.15.38.52; Wed, 25 Mar 2020 15:39:05 -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; 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 S1727406AbgCYWic (ORCPT + 99 others); Wed, 25 Mar 2020 18:38:32 -0400 Received: from mga11.intel.com ([192.55.52.93]:25610 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727384AbgCYWic (ORCPT ); Wed, 25 Mar 2020 18:38:32 -0400 IronPort-SDR: z3UfsXyymmQ2a3fB8GnyEEHpQ6UKzAwElxvSKDzo4BErteOlwr/d61eClCekm48fTnW3gAkIz5 RjWA8C4LNOig== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2020 15:38:31 -0700 IronPort-SDR: WJpufqhInHMpKaD/eTIsZfNtUgyJCcvJW4kZRhUTVetTqUZXjUkDzT38LDF+dRj4o6UuY8CaI5 mmBKiCZrsplA== X-IronPort-AV: E=Sophos;i="5.72,306,1580803200"; d="scan'208";a="393774794" Received: from spandruv-mobl.amr.corp.intel.com ([10.134.90.138]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2020 15:38:30 -0700 Message-ID: <6f90d8fa0301b19ddae3e7558df6408e23f4e04b.camel@linux.intel.com> Subject: Re: [PATCH v2] platform: x86: Add ACPI driver for ChromeOS From: Srinivas Pandruvada To: Enric Balletbo i Serra , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, vbendeb@chromium.org, groeck@chromium.org, bleung@chromium.org, dtor@chromium.org, gwendal@chromium.org, andy@infradead.org, Collabora Kernel ML , Ayman Bagabas , Darren Hart , Dmitry Torokhov , Jeremy Soller , Mattias Jacobsson <2pi@mok.nu>, Mauro Carvalho Chehab , Rajat Jain , Yauhen Kharuzhy , platform-driver-x86@vger.kernel.org Date: Wed, 25 Mar 2020 15:38:28 -0700 In-Reply-To: References: <20200322094334.1872663-1-enric.balletbo@collabora.com> <20200322111022.GA72939@kroah.com> <20200324164956.GE2518746@kroah.com> <3444110c-d6c0-16df-9b5d-12578ed442c5@collabora.com> <3166e472e0ef5c0db8da3ab7d846b47795e69057.camel@linux.intel.com> <51a98cae11de1529bdaa695a0c1eeb2043191b3f.camel@linux.intel.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 (3.34.2-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-03-25 at 22:54 +0100, Enric Balletbo i Serra wrote: > Hi Srinivas, > [cut] > Evaluating \CRHW.HWID > 0x1 Outstanding allocations after evaluation of \CRHW.HWID > Evaluation of \CRHW.HWID returned object 0x55b9e373fd60, external > buffer length 38 > [Package] Contains 1 Elements: > [String] Length 00 = "" > > > I found that the VBTx are addresses setup in the following file. > > src/vendorcode/google/chromeos/acpi/gnvs.asl: > > VBT0, 32, // 0x000 - Boot Reason > VBT1, 32, // 0x004 - Active Main Firmware > VBT2, 32, // 0x008 - Active EC Firmware > VBT3, 16, // 0x00c - CHSW > VBT4, 2048, // 0x00e - HWID > VBT5, 512, // 0x10e - FWID > VBT6, 512, // 0x14e - FRID > VBT7, 32, // 0x18e - active main firmware type > VBT8, 32, // 0x192 - Recovery Reason > VBT9, 32, // 0x196 - FMAP base address > CHVD, 24576, // 0x19a - VDAT space filled by verified boot > VBTA, 32, // 0xd9a - pointer to smbios FWID > MEHH, 256, // 0xd9e - Management Engine Hash > RMOB, 32, // 0xdbe - RAM oops base address > RMOL, 32, // 0xdc2 - RAM oops length > ROVP, 32, // 0xdc6 - pointer to RO_VPD > ROVL, 32, // 0xdca - size of RO_VPD > RWVP, 32, // 0xdce - pointer to RW_VPD > RWVL, 32, // 0xdd2 - size of RW_VPD > // 0xdd6 > > Can I assume that the info I want is only accessible in runtime and > is not > exported via the static tables? Yes. Basically these are pointing to a memory address. From user space you can't read this memory. We are planing to do something for this, but it will take sometime. Thanks, Srinivas > > Thanks, > Enric