Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1554670pxy; Fri, 23 Apr 2021 10:47:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNsd7EIagKaPI4/QqDpTPna3nt6rVzP2wDB0abA4UsfNccwwvXr7ikCqwRp17loJms7Dnu X-Received: by 2002:aa7:d78a:: with SMTP id s10mr5903869edq.310.1619200039264; Fri, 23 Apr 2021 10:47:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619200039; cv=none; d=google.com; s=arc-20160816; b=gbxa/4yysX3h+k8pQNsnH/3scYWPUu5AGjRr4VgegEhqxz+Ufm7ymjoz+T80dxx27F Q5udsIwC0d2Xip1nHWzXb5c4vDUS+lJgpkRhAcyIFPbAVnZRNUHdNXMtDF8xUjANf2tb zhPeYRcXbBZbPPj5veWUEwFTtENGOGrXO2+BG0e2x5/O/v9DusFbiyR4HB3lgh36SwQv p8ztN4Um3kxDXe/JqOD2+kyW/ZDotdrYIU5JH53SYOCMY02KsLQC64R35SpbPUB6wQ9j zIT8k11j74aD5lpwtGHsTldkXZmQ+ZRKazZJDtVlT6Vi4GaRn7cX5EOLxu7w0PCAS4ej v0vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=bH8+OabhMloB3S8tnubaruS/aG9zeicaZnJ7DFroRUs=; b=JRASeuSwHK/l4a8VEJyqnu2HPB6IfB5E+5hLWj7I/xzf+Fv968lEf0aY2ixjecSOCQ n99eQ/tsewJabtbsTlH2PEdd4qTL7Fv5WYU0Lrk1ui0UaO7hQeMG2xlhKfnMjZzf8U7C Gtu1OOGNBIIqysl3vKZRqlEwqQAcRjz3BYpWqScnyYAFV9FKrVl0fCECwY6dDMuzfkz1 uuD043EWzLy5tW38DjZpfmbUdFBFayxT5SgHqarZ+VaVky/9myxpx7Rrrd9Cgt9SbpA8 eiCvRO8IdEZ2r5g1BlVPCNAORcRHqDGXrCDp7PO6XOxIUaP4GCKJ1YzfnMagiFmoc30w hNOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KvtwE9+l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d22si5888422ejc.486.2021.04.23.10.46.55; Fri, 23 Apr 2021 10:47:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KvtwE9+l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232011AbhDWRqd (ORCPT + 99 others); Fri, 23 Apr 2021 13:46:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:39500 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229691AbhDWRqc (ORCPT ); Fri, 23 Apr 2021 13:46:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 03E1F61404; Fri, 23 Apr 2021 17:45:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619199955; bh=te6gbiVsFycG/DzVBbSa//ghoSy8WlqKQPVlGffimCE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KvtwE9+lNuZytwcCZms0U8vJotk1uRw01D1p0aGr9UOEKYpsKvfTJogmBiY8Jr9Nr IqDqss1TVzUGdBY0EinfRXkvNgBm9zZSiFJnYZPxsBx0vQVRKpf79V+VCMNv/wLIsl q1MmUnCnoaVPd1ZYxHlE0mabp4ZjPa5pPPFZICLiQOcD6RvzfMr56MPGzIdxmzfih0 SHRoDN0KO8D/AiH9V8O2T4q3OLDRMMpFhqoz0uX1j+oWRwPsnguoB2l/So1jMhQlge 0Rb15+7qPRydHO2rPjHxV2j1mQZZGLC+n9yHWKeKi4lpZxa5PoHqE1yWD6SSH2Szjp 78MjBjPthPFFg== Date: Fri, 23 Apr 2021 23:15:51 +0530 From: Vinod Koul To: Tom Zanussi Cc: peterz@infradead.org, acme@kernel.org, mingo@kernel.org, kan.liang@linux.intel.com, dave.jiang@intel.com, tony.luck@intel.com, dan.j.williams@intel.com, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org Subject: Re: [PATCH v3 0/2] dmaengine: idxd: IDXD pmu support Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21-04-21, 16:04, Tom Zanussi wrote: > Hi, > > This is v3 of the IDXD pmu support patch, which addresses the comments > from Vinod: > > - Removed the default line for INTEL_IDXD_PERFMON making it default 'n' > > - Replaced #ifdef CONFIG_INTEL_IDXD_PERFMON with IS_ENABLED() > > - Split the patch into two separate patches, the perfmon > implementation and the code that uses it in the IDXD driver. > > - Added a new file, > Documentation/ABI/testing/sysfs-bus-event_source-devices-dsa that > documents the new format and cpumask attributes, and added better > comments for those in the code. > > - Changed 'dogrp' to 'do_group' in perfmon_collect_events() > > - Moved 'int idx' inside the loop in perfmon_validate_group() to the > top of function. > > - In perfmon_pmu_read_counter(), return ioread64() directly and get > rid of cntrdata. > > I also fixed some erroneous code in perfmon_counter_overflow() that > because of my misreading of the spec caused unintended clearing of > wrong bits. According to the spec you need to write 1 rather than 0 > to an OVFSTATUS bit to clear it. Applied, thanks This conflicted with Daves patches, I managed to resolve, pls check the end result -- ~Vinod