Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp568158pja; Thu, 19 Mar 2020 07:37:59 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt3GNt0gWbcjNppfCCopsEZIoYgcGggssQGnMs3sc5nBw7Sr7iBgXoheqX9rK8rRUkwbSpn X-Received: by 2002:aca:ea0a:: with SMTP id i10mr2604826oih.12.1584628679164; Thu, 19 Mar 2020 07:37:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584628679; cv=none; d=google.com; s=arc-20160816; b=gsB3W8/E08MamouvV3TlzGvleRUK8jshUk996BSgohG3YDAcxaaZW1yKr3WSfXDe+s 7nvne8IlMrZQhW1r5soFC7W9Hrd3JPM9zfsNbpVn8jk7/FZ/cKNyorYdP5u0VFBKOXfw oZUXbip+CZYUl0seyDlHRbE8CDumEc899wEdaGhWYVJDJtfKW/HwXpY/BAOug8FcvuQR 0l+5jPrs9MSboXdl8ZpP0XvTIOMNSeDIMdUsPivEFeRqoIBpzcFoVaYz9bpuQLu6WYu5 h1U+xGzW2F55yjpf1vRxsn753f8j/m9Zjy8nNGSoA+vIXJYNuaE5/uyYo9nkWzje096c uTXg== 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=cAhpLPJAlZwkEBslvkyB7pnlbCAX+6GulVFoEXBQnCQ=; b=lHWGtx9BJtM7ufoh7bfMpGF9G+ECScFvAWT6+12rlpYcTNKgq/IevXdMHq3PGUs8eL ZUJ4tElwU2/8+Sb2lgHmCaQ63KrACdEBq0xIZ063AzCkxu9/bxfNy7PaboZJIsQQwe+A 12ruGGSsN6gbUqPKIN9I8Ovk8sBbgVt0pWFvZNqeJfI3IYc/+YQvF6WpmhQZlrZQ6vD1 tOy//d1+ZuaFxAFHWEwrRHyVSBQsc4mVemEX22ohCC4f1eVoBdCudsGJhbF0c1g5Ewxq h9RHw4ciaO4rJKXsQJqeIZ2jve1CNPRJxfn7KOXNY3N9Dp4IEN+peI4cc+V/RzGh2gdt RlMQ== 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 v129si1021329oib.58.2020.03.19.07.37.38; Thu, 19 Mar 2020 07:37:59 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727389AbgCSOfO (ORCPT + 99 others); Thu, 19 Mar 2020 10:35:14 -0400 Received: from foss.arm.com ([217.140.110.172]:37036 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727286AbgCSOfO (ORCPT ); Thu, 19 Mar 2020 10:35:14 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 07AFE30E; Thu, 19 Mar 2020 07:35:14 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3DFFC3F52E; Thu, 19 Mar 2020 07:35:13 -0700 (PDT) Date: Thu, 19 Mar 2020 14:35:11 +0000 From: Mark Rutland To: Tuan Phan Cc: patches@amperecomputing.com, Will Deacon , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] perf: dsu: Allow multiple devices share same IRQ. Message-ID: <20200319143510.GB4876@lakrids.cambridge.arm.com> References: <1584491176-31358-1-git-send-email-tuanphan@os.amperecomputing.com> <20200319143250.GA4876@lakrids.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200319143250.GA4876@lakrids.cambridge.arm.com> User-Agent: Mutt/1.11.1+11 (2f07cb52) (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 19, 2020 at 02:32:51PM +0000, Mark Rutland wrote: > On Tue, Mar 17, 2020 at 05:26:15PM -0700, Tuan Phan wrote: > > Add IRQF_SHARED flag when register IRQ such that multiple dsu > > devices can share same IRQ. > > > > Signed-off-by: Tuan Phan > > I don't think that this makes sense; further I think that this > highlights that the current driver doesn't support such a configuration > for other reasons. > > A DSU instance can only be accessed from a CPU associated with it, since > it's accessed via sysregs. The IRQ handler must run on one of those > CPUs. > > To handle that, the DSU PMU driver will need to gain an understanding of > which CPUs are associated with the instance. As it stands the driver > seems to assume that there's a single DSU instance, and that all CPUs > are affine to that same instance. Sorry, I misread dsu_pmu_get_online_cpu_any_but(), multiple instances are handled already. > So NAK to this patch, given the above. Regardless, this NAK stands. Thanks, Mark.