Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1575706pxy; Fri, 23 Apr 2021 11:18:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmS2i9RrTnOuAacgjnESiOjBMJAuKvc/y/I4lPR3F9Ff5HQyB/XlpFumX93HMF+hkQd9+g X-Received: by 2002:a17:906:b0f:: with SMTP id u15mr5714941ejg.156.1619201929755; Fri, 23 Apr 2021 11:18:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619201929; cv=none; d=google.com; s=arc-20160816; b=FWA0UF2ZTHtKkv8ymQabEouTp5hczoMtKPnhu7J1nKsl14C7YvBB8Y+pZzB2pfBuQB jbS6sI9fZlJWoXhDKgep98pbKwGU90xdSnAlSDxJcvD+Hv6jDA2hW7zTq6mPU4EovYxy YzVZZ8SWqE+53huln07VZV2eIs4q2w2RnaNGPdKCNp7l7s9iqt9KLxVU2qFFfDtyIG7V RLrb9swaigKo4x+yox13bgQXl6SPjcATzkAoOB8fwqSelJ34qkdd7TC8qW5DE8eCx0TA MAV/GGzajfFLdCuU0tUuf/KkgUnnpujxQ3pPiWk8Dm0rJAgdLX3hiAqgddAu3yV4QkrS ckRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=A8XLV2IWVAn/Mep/dOms3iKgqE9AxFSanWhFGzhk+oc=; b=VE+Du35VU5rFG1JHHWnJvMfc5oZ0xiKmPJWjMfbYWrSW58mZv3iF4SMpudDJii3tmS 8c5LSYruAOB7LlzirJ6XLG9c0tpI3SyYyFrjgmzaiqBZ7Jnt/mwqP+sVpWn0PjaiXfNq PlenHJyDqiNPgi1IGkyjdidcxlCpYIpp2bXm8KHf/a7HDcYWclsLljbeqr+1z0gIbbzw Ak9FmhlScZNhV4D+FmTjEVJhA3zQNmY/u1tgkF3CiYIXaGTjYwHUm+ytuIV5M92ua1ns JI+uGG3NyhPHvD5VSQu6HSM7+HIJQr6R0byD9i9oAXny51C5cVwGiWxesrf75E61nMmc kAFw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y3si6124956ejp.444.2021.04.23.11.18.26; Fri, 23 Apr 2021 11:18:49 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243712AbhDWSQL (ORCPT + 99 others); Fri, 23 Apr 2021 14:16:11 -0400 Received: from mga05.intel.com ([192.55.52.43]:9349 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243743AbhDWSPo (ORCPT ); Fri, 23 Apr 2021 14:15:44 -0400 IronPort-SDR: PamKz+ZdjvVq4eTqhAJkhwQb9B7JfbVubhizrNlRbATUutYaX+m2P5ZoGNeffDtnHgy0CwRX9E eRd6ESN/DIAA== X-IronPort-AV: E=McAfee;i="6200,9189,9963"; a="281440628" X-IronPort-AV: E=Sophos;i="5.82,246,1613462400"; d="scan'208";a="281440628" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2021 11:15:04 -0700 IronPort-SDR: DYEa+ZiFmx7GrvC+NvoTuIHB5o4Su+UVywa5GYtk99dVWzgeQTCBepazR40pTf3O84wpEQsvix AyHTEPk0dFbg== X-IronPort-AV: E=Sophos;i="5.82,246,1613462400"; d="scan'208";a="453647439" Received: from tzanussi-mobl4.amr.corp.intel.com (HELO [10.209.163.164]) ([10.209.163.164]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Apr 2021 11:15:03 -0700 Subject: Re: [PATCH v3 0/2] dmaengine: idxd: IDXD pmu support To: Vinod Koul 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 References: From: "Zanussi, Tom" Message-ID: Date: Fri, 23 Apr 2021 13:15:02 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Vinod, On 4/23/2021 12:45 PM, Vinod Koul wrote: > 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 > Thanks! However, it looks like the new files in '[PATCH v3 1/2] dmaengine: idxd: Add IDXD performance monitor support' didn't make it in, maybe didn't get 'added' after resolving the conflicts... + create mode 100644 Documentation/ABI/testing/sysfs-bus-event_source-devices-dsa + create mode 100644 drivers/dma/idxd/perfmon.c + create mode 100644 drivers/dma/idxd/perfmon.h Tom