Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp740907ybl; Tue, 28 Jan 2020 11:12:32 -0800 (PST) X-Google-Smtp-Source: APXvYqx1DgwaPCyejfoTQpKFa3tzNaX/IH7MskRsZLF9cH14dNqMp4QDJkO4kMMB+jeVdYDgTQFY X-Received: by 2002:a9d:588d:: with SMTP id x13mr16573459otg.6.1580238752267; Tue, 28 Jan 2020 11:12:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580238752; cv=none; d=google.com; s=arc-20160816; b=bLC2vL7hkclh+ksdUqKC21EBOa6R57Xwldbpxv7wdZRNtWf40oH6w7yot9LhntDVTF HHadh7G9JTi+TrqjTDaineXVC7A4alS22xrTK5jZ3mF65N0yzNUyeE9o3zLtYr5EcuU/ CEkAFIS4CGR+lHqXaoQunibND2oaPx88QwtBsOLhAgyGB9hSK6G1KTKMf7j9QTPsupij pKmDcABwScid/jwG4QLOiY3YbTDA3xHR5947Q69fY6YhC2elwMzid50JFDfwppKnJ9s2 cbtcXkP6ozvSY16qrBTpeIy8cGERNlirLId2/tE/4V0zNMihDInloO/JLjf+buBNrBxT aJHw== 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 :in-reply-to:references:mime-version; bh=zNNOCuQSs0b+Bg9qnijy+wvnc+l1Z6weLpF7DGLouRM=; b=0IJmnwfVGEWVZprSbmXL0ZhoRCyy+2FDTXc696h0FdtAvtx5DVJQnznzjxL9sbMdRY yya0VLEM97r4DAEkr63KqH0PkT9QcrakkM8jQyzU4kX36HTr1qWUfuVdjSqGe5nklpFE eBJ0F4NdhbSJi/6JikEr52b8xtlKCtiJimGn6/ThYRVmdIcHrsUwLQmwoLnFCX5SPlan 7Fs5aO8TkSS7s0+A4/uqs7ZPE+dyXeFK/TTF2Ykt6X88DEfLdkZTjQ+GxAzvlvV/4+vR IPfCV5wg72FKa39j+g4ttdeGaj2x7GEcVIexCicSmc4QZaFsd8XJcrNqlmB/TgORp13A LTqQ== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c130si3688625oib.182.2020.01.28.11.12.19; Tue, 28 Jan 2020 11:12:32 -0800 (PST) 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726303AbgA1TLX (ORCPT + 99 others); Tue, 28 Jan 2020 14:11:23 -0500 Received: from mail-oi1-f194.google.com ([209.85.167.194]:37995 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726002AbgA1TLX (ORCPT ); Tue, 28 Jan 2020 14:11:23 -0500 Received: by mail-oi1-f194.google.com with SMTP id l9so11416802oii.5; Tue, 28 Jan 2020 11:11:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zNNOCuQSs0b+Bg9qnijy+wvnc+l1Z6weLpF7DGLouRM=; b=Xti8kK76P/zodGTLf+rzOVXy3Dkt6ja8A4anmVg9HPbmSBuI2Nx5C3iekwOOxZQXx6 ISdGt0c3PoTbKtGguE567IZIAauS8phQ75S4XHzRGjTmhB9pJxT6cbUJfeQk3umYHXAI p9puzmFubXIFEzPaMn6okpsNPuX4dk/DGFHbbh9gDF+s8VtZ9QVv92BQlSq3rRo9xkOQ VZvV2/1s6brPVk2D+lnF4QmamdGNduXupfI9DiWU5X/ps9gguYhSnuSMHdLf2BOiXjZ5 y2tUGFx1RVCXPmZkh/SI9MdHnAsn403KiyP497XjzMAWsm9a7B7H8sL0Og0Xhe2m8xXJ EHlQ== X-Gm-Message-State: APjAAAWI1Krpij/0iN/yUhjWLLZLV8YQfVt/ZDGA7ShrI2No4MuEg5ht 6EUu5D/nB6c9+A1CiIvKeo6cDudwukemm4ayHMiGBg== X-Received: by 2002:aca:d6c8:: with SMTP id n191mr4002306oig.103.1580238682900; Tue, 28 Jan 2020 11:11:22 -0800 (PST) MIME-Version: 1.0 References: <1580210059-199540-1-git-send-email-john.garry@huawei.com> <1580210059-199540-3-git-send-email-john.garry@huawei.com> <4c6462e3-e368-bd9f-260f-e8351c85bcc2@huawei.com> In-Reply-To: <4c6462e3-e368-bd9f-260f-e8351c85bcc2@huawei.com> From: "Rafael J. Wysocki" Date: Tue, 28 Jan 2020 20:11:11 +0100 Message-ID: Subject: Re: [PATCH RFC 2/2] soc: Add a basic ACPI generic driver To: John Garry Cc: Olof Johansson , "Rafael J. Wysocki" , Len Brown , Jeremy Linton , Arnd Bergmann , Linux Kernel Mailing List , ACPI Devel Maling List , Hanjun Guo , Greg Kroah-Hartman 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, Jan 28, 2020 at 7:22 PM John Garry wrote: > > On 28/01/2020 17:51, Olof Johansson wrote: > > Hi, > > > > On Tue, Jan 28, 2020 at 3:18 AM John Garry wrote: > >> > > Hi Olof, > > >> Add a generic driver for platforms which populate their ACPI PPTT > >> processor package ID Type Structure according to suggestion in the ACPI > >> spec - see ACPI 6.2, section 5.2.29.3 ID structure Type 2. > >> > >> The soc_id is from member LEVEL_2_ID. > >> > >> For this, we need to use a whitelist of platforms which are known to > >> populate the structure as suggested. > >> > >> For now, only the vendor and soc_id fields are exposed. > >> > >> Signed-off-by: John Garry > >> --- > >> drivers/soc/Makefile | 1 + > >> drivers/soc/acpi_generic.c | 102 +++++++++++++++++++++++++++++++++++++ > >> 2 files changed, 103 insertions(+) > >> create mode 100644 drivers/soc/acpi_generic.c > >> > >> diff --git a/drivers/soc/Makefile b/drivers/soc/Makefile > >> index 8b49d782a1ab..2a59a30a22cd 100644 > >> --- a/drivers/soc/Makefile > >> +++ b/drivers/soc/Makefile > >> @@ -3,6 +3,7 @@ > >> # Makefile for the Linux Kernel SOC specific device drivers. > >> # > >> > >> +obj-$(CONFIG_ACPI_PPTT) += acpi_generic.o > >> obj-$(CONFIG_ARCH_ACTIONS) += actions/ > >> obj-$(CONFIG_SOC_ASPEED) += aspeed/ > >> obj-$(CONFIG_ARCH_AT91) += atmel/ > > > > Based on everything I've seen so far, this should go under drivers/acpi instead. > > soc drivers seem to live in drivers/soc (non-arm32, anyway), so I > decided on this location. But drivers/acpi would also seem reasonable now. Any reasons for not putting it into drivers/acpi/pptt.c specifically?