From patchwork Tue Jan 30 23:32:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Corona, Ernesto" X-Patchwork-Id: 194393 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp1561486dyb; Tue, 30 Jan 2024 15:33:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFOYC26cPUjlrKC4kEsBMHE1HkDSmhOU/FlGgiM2e/zuhmZ832mwjRYI8HYFZ1sQJamPp30 X-Received: by 2002:a05:6a00:6a04:b0:6de:3521:f046 with SMTP id hy4-20020a056a006a0400b006de3521f046mr127259pfb.32.1706657580383; Tue, 30 Jan 2024 15:33:00 -0800 (PST) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p27-20020a056a000a1b00b006de382dda1dsi3229994pfh.331.2024.01.30.15.33.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 15:33:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45484-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="PHG67/mb"; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-45484-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45484-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id BA725288D60 for ; Tue, 30 Jan 2024 23:32:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F3EDB79950; Tue, 30 Jan 2024 23:32:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="PHG67/mb" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 35C6279947; Tue, 30 Jan 2024 23:32:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=192.198.163.7 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706657562; cv=fail; b=RWODtl2lpGZ9YKS6xyqc3YPlJT6IBmg3pgJH890vZY3LUHSS8xcUMeco+pueBgiyCQntMPfS/jR9l2ZaTjS+4d9qHq3nWiKIFv2hp9UGvjlfTnPskSN6REWpMarbuOvPPSSuccxeEYJZ2NeiutJMvgdPuZv+0kLnOnBZJOY50Io= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706657562; c=relaxed/simple; bh=NMKPfCUK4umpWLQVPtyEvnyqQ0d//SgklXJl4boXqME=; h=From:To:CC:Subject:Date:Message-ID:Content-Type:MIME-Version; b=U63QlsIqVpVzK4hkn4cdiF7L7QTf+Db2YukJkOEoE5Oa9Ke0AKN1cRuSSLEHyLVbd2zCm26pr+XIpDPyvQ3y3bgBlk1pkQxQFcutHoKTgIIGZCoYjNhvfQ2SfTZXWNoo+GUrs+Vc8L8t23N3srMjKCJDXtzmTNnqBRAqjmJIvC0= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=PHG67/mb; arc=fail smtp.client-ip=192.198.163.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706657560; x=1738193560; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=NMKPfCUK4umpWLQVPtyEvnyqQ0d//SgklXJl4boXqME=; b=PHG67/mbSeK5sgTJ7xqmPTRNDH84KVsVVE4H9RFsY7tYxVriVugsVnN4 iSVhyz+8JgaDN5u+eyCcMmQSIu0CthSi6G20DDPTFeljqtfgQekmIyX1A unpYWMhEGlJyuNOnmK7mGUeIFeVFcLkR4mSuv9W4QgS+q0cf2VC1a1ZaG jo567M6y+ympretIbsbfePes4dQn2JXeMevVmPcZIslTwytaRRjiT4T3e rmtRnNlQjbspFofgToHmeG9sTDq4eKaTJPsvMv7RQEpTqPU2li31ho0Jn g12Qn6z6JSYY3V+IcRdH7WBY/st/o5OsmAuq4zmGtNQo8snE9LadO208Y g==; X-IronPort-AV: E=McAfee;i="6600,9927,10969"; a="24912640" X-IronPort-AV: E=Sophos;i="6.05,230,1701158400"; d="scan'208";a="24912640" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jan 2024 15:32:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10969"; a="822363647" X-IronPort-AV: E=Sophos;i="6.05,230,1701158400"; d="scan'208";a="822363647" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga001.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 30 Jan 2024 15:32:25 -0800 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 30 Jan 2024 15:32:25 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Tue, 30 Jan 2024 15:32:25 -0800 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.168) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 30 Jan 2024 15:32:24 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MbCeTWJAw1hUFtSC929AnyKBHVawmAiAoEJ8d9o6K7YNkweWS5FjJcZ12DjEdpFnZr8cxdkYyE1Uk38V/+H0ewpBAgfxvPmbzpytM9B3paOtKSUTiiZyTOt6InyW6ZFz7ZrYdfUnmGxWHxVyDgWirkG61XggdP1MuISVxipUDaPuA7mdRgIHNmWVUf8FXcv8jcMnFONYkIUAPH5dByTwh9d51AWK2i+RqY810H6XZI/ZWgJd74DYFb/m8xiIHdO/YBNmSC+YsDSW6/6in48H+pLqwQHbID5Q9T3FdLlEiOYyiigYBMgvcClLOukRh7U/XDQjxCjk1m0SQbFFyHmQkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=nfUbqC5raVfhPqimW9w97Xz1EYpe6qDBVMjRY9NkmZs=; b=HK8tb0M9QGrv3TQzWID/Q++cW+qoFIAAvDg26Q73nwTQ+cdaLE3y7nSz0zByfObFNvn8y6fGEysm5vp9rkpiP3/qnOStK2JVo+HFsOXm/Bv5wWIMykFUtTG+eSfT6mI7NgPjbcEMJRgaork3zrMI8KrR/pVEZyhqo3EVVc3u7ZVKDV/d2kpnLhWleksBXRvzGUcskEMlrW/fqr8jw+n67gwQrpetd6FuiuuPRJnef09QsgQWtypR1LHOmMmU8AxmJFp1b1JcCisUUUdHqd9GqNPXf1nurUJnicvMsekoBWoPJ9LEa8mf3as5Fix/J+M8bLjg9aga8mCoWeHPv7B/qQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from LV8PR11MB8463.namprd11.prod.outlook.com (2603:10b6:408:1ed::6) by DM6PR11MB4689.namprd11.prod.outlook.com (2603:10b6:5:2a0::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.22; Tue, 30 Jan 2024 23:32:14 +0000 Received: from LV8PR11MB8463.namprd11.prod.outlook.com ([fe80::5262:6eb1:2787:8cb9]) by LV8PR11MB8463.namprd11.prod.outlook.com ([fe80::5262:6eb1:2787:8cb9%3]) with mapi id 15.20.7228.029; Tue, 30 Jan 2024 23:32:14 +0000 From: "Corona, Ernesto" To: "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-aspeed@lists.ozlabs.org" CC: "Corona, Ernesto" , "'oleksandrs@mellanox.com'" , "Castro, Omar Eduardo" , "'omar.eduardo.castro@linux.intel.com'" , "'pombredanne@nexb.com'" , "'corbet@lwn.net'" , "'gregkh@linuxfoundation.org'" , "'gustavo.pimentel@synopsys.com'" , "'lorenzo.pieralisi@arm.com'" , "'kishon@ti.com'" , "'darrick.wong@oracle.com'" , "'bryantly@linux.vnet.ibm.com'" , "'sandeen@redhat.com'" , "'rdunlap@infradead.org'" , "'kusumi.tomohiro@gmail.com'" , "'arnd@arndb.de'" , "'mchehab+samsung@kernel.org'" , "'alexandre.belloni@bootlin.com'" , "'tytso@mit.edu'" , "'ebiggers@google.com'" , "Filary, Steven A" , "'jiri@nvidia.com'" , "'vadimp@mellanox.com'" , "'amithash@fb.com'" , "'patrickw3@fb.com'" , "Chen, Luke" , "'billy_tsai@aspeedtech.com'" , "'rgrs@protonmail.com'" Subject: [PATCH 30 5/7] Add JTAG core driver ioctl number Thread-Topic: [PATCH 30 5/7] Add JTAG core driver ioctl number Thread-Index: AdpTyGmrWVJf1WgfQiS4fB+rHp9BOA== Date: Tue, 30 Jan 2024 23:32:14 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: LV8PR11MB8463:EE_|DM6PR11MB4689:EE_ x-ms-office365-filtering-correlation-id: b4a8da0b-2ae0-4299-0e0f-08dc21ebb0d7 x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 7/7vStlmCeLMI4DlpFu/mglba4i2HxafpCOtan21pZmiQM8wlJDIdZBa3L/nymjp+MKLfx8KcA6QKz92/EKgt9Nt9G7PcGg0rI4+F7mLPT33OkJ9i4u/DCEtTnDfagFjgiw84/vzcLkbsPrasormQl3nMhaCm3DanreUs1AIi1YLr5+RXhO0PDtBCO4l4S0IHAnBvfc1B6cabFqMaFCnSyoXZlF2kW1KnaTslsptNb4TymkNy3HzMMXHplwi4ocWTN6g89ve3wAMV0K4lqemau8+qbyeNbGtgDUzuoiUqbM5yg1Ft3zN5oho+mD2WBmnhS3PsICfzz++FZ/y47ix0d+umQiEr8fYeTofqaSvCI6LiltKs8rxqQj1AMhggzBoF5SVjUwXSkh1I2FMtFlq1gTHNiFaqGWONLILN37R+6AZ8lSjiQ4OrvXO3sUHrsP93O3eMgLwgKNay27fj9bPl1XTLiPKG6wIFhjtvcnYAsFDNl2Q5Sggj9jb3/8wCTyfctGpeAlKkeRuBdlGrKijmDrTIgPakYq6ggzFxFP1Jzx0lPzszNYKCS60h5U5Bsou1e56yrCYfYL6AvyWhBP6IEWa9OF176v5XCVXRzxhPE1OwXSOjEw83DOaA2ZlpfmHX7A6qApjJVU/A8ApYb8ZXjK71lrP3ygQOH5U+tX9dRA= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:LV8PR11MB8463.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(346002)(136003)(396003)(366004)(39860400002)(230922051799003)(230273577357003)(230173577357003)(186009)(64100799003)(451199024)(1800799012)(83380400001)(9686003)(38100700002)(26005)(122000001)(8676002)(52536014)(8936002)(4326008)(7416002)(478600001)(76116006)(7696005)(64756008)(54906003)(6506007)(2906002)(5660300002)(66556008)(66476007)(71200400001)(66946007)(66446008)(110136005)(41300700001)(316002)(38070700009)(82960400001)(86362001)(33656002)(55016003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: DscssCOTBGhT90NVVK9UgG8difEsXrMZ4ltvZHiZmuRfwDuo/pehtUCOC8rSvvfhOwmLuddGxFb15tB8evwPW6oAjt8ImgQARfdjrOm9Y3cDJJzsJZvW8r6oahUyHAonbjGMZEXMWfupk2aStJXK1qwU4Rqn1iBMgthfX0bhHzx6w/KcIticai6I0FSg1YkStU6AiuyUNyJcoiTsZurm1e2CMDLVSkN4D89sdITrRZ1Gjh0IDJNCITYrxpAU9X49TXnjQEFX8KeDXfK3BaGMaPwou8fBwVpkZfWfmjaiv2LnWa8Zfy17clqKO6kogkN7DqefB1sFtqcPD4wKsfBAt8zuUkmJ9QZPxc+mxr87n4VFN1CqMs/OGdTUJvkcwYiXxx+bhgbR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2Ruzo8rj7CDswOH9kVBuv3h2CKVh9pEYHLD+dkr8x9b+5mHkCTvv0zpxOTbx1zfYD0cxQz5hvcPXJMtecywO15H09MIVWwKEwz28ZdxB07ZL+Gsjr+GM5lcV Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: LV8PR11MB8463.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b4a8da0b-2ae0-4299-0e0f-08dc21ebb0d7 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Jan 2024 23:32:14.7625 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: nJbdmHyF4CssK4af2H+hc1qdBiPw7NZxm7hGH2mTfxIad0cbHap6TgMCcGnmrAR3/0PfFv9gJolXFLFgS3HUVctGc2Nbn7Ry/4Ic8JkZmzA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB4689 X-OriginatorOrg: intel.com X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789560179045226019 X-GMAIL-MSGID: 1789560179045226019 JTAG class driver provide infrastructure to support hardware/software JTAG platform drivers. It provide user layer API interface for flashing and debugging external devices which equipped with JTAG interface using standard transactions. Driver exposes set of IOCTL to user space for: - XFER: SIR (Scan Instruction Register, IEEE 1149.1 Data Register scan); SDR (Scan Data Register, IEEE 1149.1 Instruction Register scan); - GIOCSTATUS read the current TAPC state of the JTAG controller - SIOCSTATE Forces the JTAG TAPC to go into a particular state. - SIOCFREQ/GIOCFREQ for setting and reading JTAG frequency. - IOCBITBANG for low level control of JTAG signals. Signed-off-by: Oleksandr Shamray Signed-off-by: Ernesto Corona Signed-off-by: Omar Castro Acked-by: Philippe Ombredanne Cc: Jonathan Corbet Cc: Greg Kroah-Hartman Cc: Gustavo Pimentel Cc: Lorenzo Pieralisi Cc: Kishon Vijay Abraham I Cc: Darrick J. Wong Cc: Bryant G. Ly Cc: Eric Sandeen Cc: Randy Dunlap Cc: Tomohiro Kusumi Cc: Arnd Bergmann Cc: Mauro Carvalho Chehab Cc: Alexandre Belloni Cc: "Theodore Ts'o" Cc: Eric Biggers Cc: Steven Filary Cc: Jiri Pirko Cc: Vadim Pasternak Cc: Amithash Prasad Cc: Patrick Williams Cc: Luke Chen Cc: Billy Tsai Cc: Rgrs v29->v30 Update Ioctl number to 0xB9 due conflicts. Change email contact. v28->v29 Move ioctl number to userspace-api/ioctl/ioctl-number.rst --- Documentation/userspace-api/ioctl/ioctl-number.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/userspace-api/ioctl/ioctl-number.rst b/Documentation/userspace-api/ioctl/ioctl-number.rst index 457e16f06e04..cf602aa3a853 100644 --- a/Documentation/userspace-api/ioctl/ioctl-number.rst +++ b/Documentation/userspace-api/ioctl/ioctl-number.rst @@ -358,6 +358,8 @@ Code Seq# Include File Comments 0xB6 all linux/fpga-dfl.h 0xB7 all uapi/linux/remoteproc_cdev.h 0xB7 all uapi/linux/nsfs.h > +0xB9 00-0F linux/jtag.h JTAG driver + 0xC0 00-0F linux/usb/iowarrior.h 0xCA 00-0F uapi/misc/cxl.h 0xCA 10-2F uapi/misc/ocxl.h