Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2729344imj; Mon, 11 Feb 2019 07:37:25 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib3r3SqCAtQ/pobP6brvx82Uftcewv4BD8oabH5gKJ0emHlWQZi3HyG7sgqxq6EGVRwCn3U X-Received: by 2002:a63:235f:: with SMTP id u31mr33801318pgm.122.1549899445334; Mon, 11 Feb 2019 07:37:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549899445; cv=none; d=google.com; s=arc-20160816; b=d3cILYH17YQX6desHKH4mRdoIli8MBfpaEiIID7aB1KQpbp6KGFUkmZa5TuqmxmuOM 6xKM+gKWGBmHb0WXrNvCl8tb20SYtGkZAoVvN794x98YGz3VVk4elhyjgzZMvuF/JkA/ UiqYIT+Ih+W971j+k1O2mTgLROPWcPUXSbJhhqzJ3jy+Og2wW1Zm37i3w7NTkDZQpW3y jJwR5Fd6sZrnmQtNaJHic3TfIgkY1GBP7DgrmfocQWaqFzbDzC4BG38AHDVcvxMZkBwi rt6GCs6DUBpRqRscZ5ctE7FTlNIAPeC5lYMse+giBl0bp29SPHf2fZO+zVzud1fdon9/ FbDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=2AIfdfcyQI9nuTUhuec7lnmmdtBbx6Ir2yuTd0tJbgw=; b=MYCKGUWD76St0MsAm5z17dVYYM+FHLdJGFsgagv8PWOJo4+pelfQlFZOu68cWEfC89 bwVM9Mjj7rPedsLyK0zWbIe9JQYbT2YolEU4UKZHTW+I/n16jNzH2MXJGNLT9uBj9hiU uucdsB1PmQ/P5zQKpLApcUAS0FO+OTR5ZTIMro1JLst+BB4loK0bfoPZVewiZwlbGjt0 VnuTO/RCHO/Sucebj/i5+Rod6EJ+0CIhOKUPRBwV0ipDtQf9AzjA71td+fsTKD4qCQNh PFYQpyQSprlDDwFrq8gD8iiIxJyFYEOVlZyUNq1K+71rraIATYBJFWlqAEoJkHh8b/oS Ag5g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d38si10601473pla.207.2019.02.11.07.37.09; Mon, 11 Feb 2019 07:37:25 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389221AbfBKPe4 (ORCPT + 99 others); Mon, 11 Feb 2019 10:34:56 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:51974 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388958AbfBKPeu (ORCPT ); Mon, 11 Feb 2019 10:34:50 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3733380D; Mon, 11 Feb 2019 07:34:50 -0800 (PST) Received: from e107155-lin (e107155-lin.cambridge.arm.com [10.1.196.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 010683F589; Mon, 11 Feb 2019 07:34:47 -0800 (PST) Date: Mon, 11 Feb 2019 15:34:42 +0000 From: Sudeep Holla To: Jeremy Linton Cc: linux-arm-kernel@lists.infradead.org, mark.rutland@arm.com, catalin.marinas@arm.com, rafael.j.wysocki@intel.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, robert.moore@intel.com, linux-acpi@vger.kernel.org, lenb@kernel.org, Sudeep Holla , erik.schmauss@intel.com, devel@acpica.org Subject: Re: [RFC 2/3] arm_pmu: acpi: spe: Add initial MADT/SPE probing Message-ID: <20190211153442.GA4792@e107155-lin> References: <20190209004718.3292087-1-jeremy.linton@arm.com> <20190209004718.3292087-3-jeremy.linton@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190209004718.3292087-3-jeremy.linton@arm.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 08, 2019 at 06:47:17PM -0600, Jeremy Linton wrote: > ACPI 6.3 adds additional fields to the MADT GICC > structure to describe SPE PPI's. We pick these out > of the cached reference to the madt_gicc structure > similarly to the core PMU code. We then create a platform > device referring to the IRQ and let the user/module loader > decide whether to load the SPE driver. > > Signed-off-by: Jeremy Linton > --- > arch/arm64/include/asm/acpi.h | 3 ++ > drivers/perf/arm_pmu_acpi.c | 67 +++++++++++++++++++++++++++++++++++ > 2 files changed, 70 insertions(+) > > diff --git a/arch/arm64/include/asm/acpi.h b/arch/arm64/include/asm/acpi.h > index 2def77ec14be..f9f9f2eb5d54 100644 > --- a/arch/arm64/include/asm/acpi.h > +++ b/arch/arm64/include/asm/acpi.h > @@ -40,6 +40,9 @@ > (!(entry) || (entry)->header.length < ACPI_MADT_GICC_MIN_LENGTH || \ > (unsigned long)(entry) + (entry)->header.length > (end)) > > +#define ACPI_MADT_GICC_SPE (ACPI_OFFSET(struct acpi_madt_generic_interrupt, \ > + spe_overflow_interrupt) + sizeof(u16)) > + [Nit] Does it make sense to add _OFFSET in the name ? Otherwise it may sound like the actual interrupt number than the offset. Other than that, this looks good to me: Reviewed-by: Sudeep Holla Regards, Sudeep