Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp553753lqr; Wed, 5 Jun 2024 13:51:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXWVUYcGHR8UQFFFjo78507TCcpG6jDY1rm6n8ggsXpN9BbPidptjYh2zCbM0bFYg+y/M19XIip0F52uWNeCK1tpAomuxw/22cAiNkqPQ== X-Google-Smtp-Source: AGHT+IHD+SujsqnfHOnxxsTI7A1R4Mx6xWtNYKsqishQKkACluP2dedXR8UtgNyMSsKhisAsLcqm X-Received: by 2002:a17:906:b1cb:b0:a68:c6e5:3574 with SMTP id a640c23a62f3a-a69a0000bdbmr216103266b.75.1717620714811; Wed, 05 Jun 2024 13:51:54 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a68b6ef0d99si511913866b.756.2024.06.05.13.51.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 13:51:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203201-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=F1tKXf5g; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-203201-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203201-linux.lists.archive=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5B2FE1F2479B for ; Wed, 5 Jun 2024 20:51:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F3CC915F41F; Wed, 5 Jun 2024 20:51:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="F1tKXf5g" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (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 1582C15F3E9; Wed, 5 Jun 2024 20:51:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=192.198.163.17 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717620691; cv=fail; b=djDhRDK6wmm1k8NFR0L/v4ddYQ0dqthhfzNaPp2SK01DEsf942YR9RAKuoY1fPtZMk86lQmGmdxnIDh239zUpwlMTXFwkG4Snddrmy2dDy6vStr0IgSGhHNCaPYZSVzpTRJ3iN68Vg15F+mezVg657hBkuhBuMiPL96hv5SrMLo= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717620691; c=relaxed/simple; bh=pXmZ88hTQKSr6/Fg4B3HDC8n6Vy0l6ltHbDJxDCwEpQ=; h=Message-ID:Date:Subject:To:CC:References:From:In-Reply-To: Content-Type:MIME-Version; b=tzgQOoqdTeGvcIeN0T+CHl92lScngd4CBpT2tt2Y7A9+1OCmqlt/B8PyciWi2YJVK1FV6jqe5KgIz1jzuQ5KcgM7Vvf1gOTGWXyMr4T3bRtCnJfoFZRgwpIa6A63WflDp/zsPjx2QcKnnZW4M/DhFbmRKGhcug18JdEemjgAErc= 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=F1tKXf5g; arc=fail smtp.client-ip=192.198.163.17 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=1717620690; x=1749156690; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=pXmZ88hTQKSr6/Fg4B3HDC8n6Vy0l6ltHbDJxDCwEpQ=; b=F1tKXf5gG2XVRs8e9/L/sgdo51u8XKAnNnVIU99bH2Ikr74nTXC7tfey 3tptyYeIY37my8HQRxXM1XhazC9wwZGcI08alRvAjptktL/r6QC5FaWN5 DEdRpSAzHEPNz3Td6f4R25lesoKpqGtoLJuCmJBjMBBOSgcBngWf6Zk24 6nwKoNsPFJA6Ze887P2Mkl308e7IlS+3aX0PKvauuKMXrt/lVIBaid5FX LKUVMBBjbepHMSqYr2d2jH7nJANhawCqsuzoEdiCFgyvocO/egDA5kuUU OQtPHL8oGCKiIIILFd9iIwJp3hmUM06pO5RALmdQf1+WMWDZC1X+ec9Ak Q==; X-CSE-ConnectionGUID: oL1aHzV8SaSIZjJN6TlGsg== X-CSE-MsgGUID: 9JLTKHOIRHGX3yX6G3i9Xg== X-IronPort-AV: E=McAfee;i="6600,9927,11094"; a="14138305" X-IronPort-AV: E=Sophos;i="6.08,217,1712646000"; d="scan'208";a="14138305" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2024 13:51:29 -0700 X-CSE-ConnectionGUID: RUTz51kPS06sRJ3y0jE8PQ== X-CSE-MsgGUID: ZE/PS2+2RUS2Wb1px91U8w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,217,1712646000"; d="scan'208";a="60909870" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmviesa002.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 05 Jun 2024 13:51:29 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 5 Jun 2024 13:51:28 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Wed, 5 Jun 2024 13:51:28 -0700 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (104.47.73.168) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Wed, 5 Jun 2024 13:51:28 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=duoAvv5urZIGn0+eTORNZmmSSVZOe6MRqv6Xeoah28QgQSWuEbHslyyOumDHmSguxDWh+nYTXkY8vQDlOTyPMwwCI3dWdLfVQ5QS01JE1+NjUCEUF6NCXlE7Kce2itVr8fxtquPSK0Elt+GFTjIKgNO7IMMxiJxCjd8HbUeXN3OR3gxbm56lIh8ecfOC+9L1Tw27ny5Br+bnfWprCHnxjifkpEgN692cICUBHGG9epIxZwsmSl9vUTfIC8JIOHFkcNdOwtQibrU88EfxOYZ5HboYC4gWKZG5w8hHOyPDuE0qxMcy9QWJCMjmN/79w6sB77MgP3WoZ741S67agR4ByA== 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=X4W6Na8mG+6EcbtSQfEZMhmil5l9l+lWodIKFpw//Q0=; b=SS/vHUV0F26vxJ2GxT/77sKZZWIKM7I3jTwL+PYbgYDDCDOqq6qspa0w2E+IO+GKhxSIEdwT+X4anpwfpew1+wmzef0tWLOUHCtUMratQSs9SlPWpSg6a8pI5h9oxye2gJf+bW3p3YnGOZJHENI7Xtk5qjx3zYRGhML9EnJbSc1ZDNjXpnt5gc1SNhd2DClDdZ1P4AmVDZSwu7juAbfT9AIl+uMiDIF81KJlH7DkupYVDCwyEaZbEbwfsrjIpRBbNJOVNb8M2kguXNIsJXVHyZEWHOChPz1LbNF953YtbW6nmWqdYBtTcZGr8PrN9PGhg67P1Kr8tYCXv8Zy0OtaJQ== 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 Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from CO1PR11MB5089.namprd11.prod.outlook.com (2603:10b6:303:9b::16) by SA0PR11MB4557.namprd11.prod.outlook.com (2603:10b6:806:96::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.31; Wed, 5 Jun 2024 20:51:26 +0000 Received: from CO1PR11MB5089.namprd11.prod.outlook.com ([fe80::7de8:e1b1:a3b:b8a8]) by CO1PR11MB5089.namprd11.prod.outlook.com ([fe80::7de8:e1b1:a3b:b8a8%3]) with mapi id 15.20.7633.021; Wed, 5 Jun 2024 20:51:26 +0000 Message-ID: Date: Wed, 5 Jun 2024 13:51:24 -0700 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] igb: Add MII write support To: , CC: , , , , , , References: <20240604031020.2313175-1-jackie.jone@alliedtelesis.co.nz> Content-Language: en-US From: Jacob Keller In-Reply-To: <20240604031020.2313175-1-jackie.jone@alliedtelesis.co.nz> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MW4PR04CA0065.namprd04.prod.outlook.com (2603:10b6:303:6b::10) To CO1PR11MB5089.namprd11.prod.outlook.com (2603:10b6:303:9b::16) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR11MB5089:EE_|SA0PR11MB4557:EE_ X-MS-Office365-Filtering-Correlation-Id: 706efdfa-2a3d-43cd-3824-08dc85a14475 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|376005|366007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?U2MwYzZ5bGtLWk1OZXY2TUVRWWcraFZoY3U5L3pIMEJLWXBvdE9OUkZMdzJV?= =?utf-8?B?N0NucjBObDN4VytmNGpWK1M4and4NVZwd2dURDlNTlNNR2k4KzhpK0VXQ2Fr?= =?utf-8?B?TmJFYUNyNVVyZXhYVFVnUW9ScWVia2MzWHVNVTFZVnVUZzYybXpLZUc3MTNV?= =?utf-8?B?RHNYZC9rNEhCTytUVzhMSWVZWGhqVzh6YVVWSzN2U3NIMEJRVDE5ZGVQcFdH?= =?utf-8?B?aWlxSW4rODg2MCtXMy95VnQ3bnMzN1BpaDFUYjlEK2pBVkp4MVlXdDRSb1hR?= =?utf-8?B?T3NsaUx6OG1HUmZqRGhma3BpeS9raGIxYmxBTnAyMVEwQVVVWXV2TU1pdk5U?= =?utf-8?B?WThGa2J5QVhXM0VjRkdiNnR5UzVHOXNML1pCRXRXa3UxYXEvNmh5Smc2dHJH?= =?utf-8?B?ME5SVnE4MVJoa3kxdDhMR1JwNDUrcy9XWitqeC93alRMTjBvK2NTTFdiZ3Fr?= =?utf-8?B?RWxGWmMwNEpFa3BKbTZlRVlTT1ZjdnM5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0NIRDVWU1JZYlZXOGlXaHpYSEp2ZVJhdmlQNlRT?= =?utf-8?B?ZWxWQWNobGZ6b3FscVNURFRzQkcxaU14Mlh4cHBDMitLTFlrVDhTcVdob3Ju?= =?utf-8?B?NWtWcll0RGtieHB0L3N6emFKZjVhL0tJZ0ZCUXJZWk1FZ2JTTjRkblZVdTk2?= =?utf-8?B?L3VSdjJIaWM4ZFExZENmWW83L0JEekh2TzNleW1leEtjcDNuRjc4U2xtTHdG?= =?utf-8?B?SjA2ZTFCVzJUU3phcjloUnUwQlZ6WVk3STB1U29HNXgwbEs5ZTFXV2hGK2pp?= =?utf-8?B?Uk8vNEFiR0ZDMzhhSXd6dXp6aUxsM0RJVjkweFFUdWZXR2xjSXcxRU13PT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR11MB5089.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(376005)(366007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?VEE0V3M5L2ZreGo4d2NuUGN1WDd3djRaVFVNVHNKM3hhK3FsOGJFQnE5UE9S?= =?utf-8?B?cEJIK3VFR3Ntc3JJRFB4TldsNzBSVFpad2hzRWFRbzBwOE5wYldYb0F6VnQ4?= =?utf-8?B?WjBLU0YwVkpzS2ZjMlZxRy9EWTdzWWx4ZEFpVjVIYnVROUh3ZEhrUExpNzVy?= =?utf-8?B?MUU5UTdCcUEyMmNLUDAwQVo2ckljSkdIekVHeU0zN0UyR1JmSExSWGU5Qkd1?= =?utf-8?B?NkxOOEZ6UHVpeWw1Y1V0b1I2YWRtMXY3RkEvbWxTeVVWVTRHQW9kRHZNTVNa?= =?utf-8?B?YnlLRVp6d1EwaVRFamtoY1dkZndORHB1c1krZk53R0U0eHdCODAxQW5MZE5D?= =?utf-8?B?aGFNaHl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T2ZTcDVUV2tvbzlI?= =?utf-8?B?ZWc9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 706efdfa-2a3d-43cd-3824-08dc85a14475 X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB5089.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2024 20:51:26.7284 (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: ed1XqdGNhdpOc9X2wkapzSY0Aml9QYiy2sJvwEnfexGv1WNdV8I8owp0li5XrOFeTZ3j4pI+ecFHGJ5iGlvDC+njqy9XGsfuv2yNtYgcIZA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR11MB4557 X-OriginatorOrg: intel.com On 6/3/2024 8:10 PM, jackie.jone@alliedtelesis.co.nz wrote: > From: Jackie Jone > > To facilitate running PHY parametric tests, add support for the SIOCSMIIREG > ioctl. This allows a userspace application to write to the PHY registers > to enable the test modes. > > Signed-off-by: Jackie Jone > --- > drivers/net/ethernet/intel/igb/igb_main.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c > index 03a4da6a1447..7fbfcf01fbf9 100644 > --- a/drivers/net/ethernet/intel/igb/igb_main.c > +++ b/drivers/net/ethernet/intel/igb/igb_main.c > @@ -8977,6 +8977,10 @@ static int igb_mii_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) > return -EIO; > break; > case SIOCSMIIREG: > + if (igb_write_phy_reg(&adapter->hw, data->reg_num & 0x1F, > + data->val_in)) > + return -EIO; > + break; A handful of drivers seem to expose this. What are the consequences of exposing this ioctl? What can user space do with it? It looks like a few drivers also check something like CAP_NET_ADMIN to avoid allowing write access to all users. Is that enforced somewhere else?