From patchwork Fri Mar 3 21:37:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fenghua Yu X-Patchwork-Id: 6096 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp640279wrd; Fri, 3 Mar 2023 13:41:54 -0800 (PST) X-Google-Smtp-Source: AK7set8U2WrxOdHdA8SIu75Xi8c3SkXe1Ep12gxT9zRRiZVdDoFD7tMMzEdyVtwdbHZ6xdPuPWNH X-Received: by 2002:a17:903:2346:b0:19c:be03:d0ba with SMTP id c6-20020a170903234600b0019cbe03d0bamr4347669plh.18.1677879713678; Fri, 03 Mar 2023 13:41:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677879713; cv=none; d=google.com; s=arc-20160816; b=zPAeBBCfyKZiSuwBj9z7JLT5lFRE3ru7teaL/asvFIMFPXpc2oS3BbgKNXZSTHtt2D dg4BK51cqnZXuP5CPMScZG/krFF7RuV2hOfh0E4zJkC9xBv0t1l9yF3MOGsnHcZlhTGS OeRfbHH4gEo9H3Vvtdi+Q7TTgYyG5LN9pPYjA3UyY7gfkrh1ALgUwO3dw9KPIF3bbIRN cplkruY+u5Iijk9QF5ZZdBmVrS5Oq1P+TKETMx54AFo2FhfhxOAQ1w4f1XTR0k6klyno ih9P9rGtXCsR4N+uFi8Zcuk6qSY6Itz19PVTBcT28ZpxOt0IaXMLn95NDP+hCHFErlTW EyAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=mgnxm39lKZlne1ce+nrtFJrO/ZnmwGxDWY5/W8sshAM=; b=r2vUoGcwg1oTQv7RaIYCbx2oFdSdSE4Ooaxh9CwvWXTg0ojO7VNQOrOLA9hwFbP0bj glSlnJSNfkL0U8DdVG3qV33nagwkwnCet3Ou7cLfoQp9D80U/ddCCy78+Rd4nX3w9N36 d9AQGT+RYvYUKI14eOAUDPR1AZsc2OeaPIsa7+XUhYpgTSZZVdZ0SFQUKEtN6QjC8+6v Z0s1GfAwrSxTolnZ7ngUFKavRfI/Ho8pOvklsQVDK5T47tdKoB+F1z2hyFiEm94HDITR QAC3EqGklWFpLoKsLW/NrSfNM8g3fQOaDfo3wjzFVpntv0ly802nz6d3ikwQNSZRj0FT ss/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UO1g1Ngz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u13-20020a17090341cd00b0019a9834bb23si3336937ple.192.2023.03.03.13.41.41; Fri, 03 Mar 2023 13:41:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UO1g1Ngz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231904AbjCCVhs (ORCPT + 99 others); Fri, 3 Mar 2023 16:37:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231889AbjCCVhq (ORCPT ); Fri, 3 Mar 2023 16:37:46 -0500 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBAB162D9E; Fri, 3 Mar 2023 13:37:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677879465; x=1709415465; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=VwG7ZZohEf0svVvNC9st5b7NqZLiJfhjCrP/gsGWpPY=; b=UO1g1Ngz9o6KNKvxfgIUC+52zvWDxiLm424KvHXFHKsGW7iO3hj8nUvo NeYx8e690bss9ObeaQiF2bbdHVuU8N4Ksm6EHzmLd9ey+16UloTjzEYX3 vAJJbs13VX6lUPCrDXA2ZaXknfxEWClkG7c9M3bdA2pA7k/nESXwfNomG ssxlqDVNvewxIH8BdFZlIge4GxfVt8BW2hzB4xIDm1v0MYQw59HxSApU5 1Wlj4SdxcwmOSV4jfSdktXQ6Cy6HWDOk7KbU9ZxXx3xnTuwmovWL+V3lB U8cT+FR0hLhHfCr2KhAMnE+7G+d74pVvR1p7TKXOztlA9pJfsg15Gvnrg A==; X-IronPort-AV: E=McAfee;i="6500,9779,10638"; a="332643548" X-IronPort-AV: E=Sophos;i="5.98,231,1673942400"; d="scan'208";a="332643548" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Mar 2023 13:37:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10638"; a="818650489" X-IronPort-AV: E=Sophos;i="5.98,231,1673942400"; d="scan'208";a="818650489" Received: from fyu1.sc.intel.com ([172.25.103.126]) by fmsmga001.fm.intel.com with ESMTP; 03 Mar 2023 13:37:45 -0800 From: Fenghua Yu To: "Vinod Koul" , "Dave Jiang" Cc: dmaengine@vger.kernel.org, "linux-kernel" , Fenghua Yu Subject: [PATCH v2 0/2] Expose IAA 2.0 device capabilities Date: Fri, 3 Mar 2023 13:37:30 -0800 Message-Id: <20230303213732.3357494-1-fenghua.yu@intel.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759384398290389200?= X-GMAIL-MSGID: =?utf-8?q?1759384398290389200?= In-memory Analytics Accelerator (IAA) 2.0 [1] introduces General Capabilities Register (GENCAP). Add a sysfs attribute to expose the register to applications. This series is applied cleanly on top of DSA 2.0 Event Log and Completion Record Faulting series: https://lore.kernel.org/dmaengine/20230103163505.1569356-1-fenghua.yu@intel.com/T/#m13ba6167994f3add6446d2d7e242ecb637c54426 Change log: v2: - Fix a typo in commit message of patch 1 (Vinod) - Rebased to 6.2. No functionality change. v1: https://lore.kernel.org/dmaengine/20230103165337.1570238-1-fenghua.yu@intel.com/ [1] IAA 2.0 spec: https://cdrdv2-public.intel.com/721858/350295-iaa-specification.pdf Dave Jiang (2): dmaengine: idxd: reformat swerror output to standard Linux bitmap output dmaengine: idxd: expose IAA CAP register via sysfs knob .../ABI/stable/sysfs-driver-dma-idxd | 8 +++++ drivers/dma/idxd/idxd.h | 2 ++ drivers/dma/idxd/init.c | 6 +++- drivers/dma/idxd/registers.h | 21 ++++++++++++ drivers/dma/idxd/sysfs.c | 34 +++++++++++++++---- 5 files changed, 64 insertions(+), 7 deletions(-)