Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1087844lqb; Wed, 29 May 2024 22:52:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVRptxNfBx4zpkwtUd0O4IkOuvO8NuScQUyzELQLbYPCeLkzFYH0E853yDTV9aQFRsNpJQNRf2O3nytp2yDcAGKCOqUGLp03RqMrltesA== X-Google-Smtp-Source: AGHT+IH1VuZN3nFxu/ggH6VpXz5vCSTGcdMAcuDeJVcpzqkaophRi3azXcZc2v5tVVkdbpIBgJRq X-Received: by 2002:a17:907:104a:b0:a62:c5f:e34a with SMTP id a640c23a62f3a-a65e8e6d5femr57436166b.39.1717048363680; Wed, 29 May 2024 22:52:43 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cc36b72si724026866b.453.2024.05.29.22.52.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 22:52:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-194958-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=P9GUhT5T; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-194958-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-194958-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 3E5441F2268E for ; Thu, 30 May 2024 05:52:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF5A914372F; Thu, 30 May 2024 05:52:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="P9GUhT5T" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) (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 4DC24847A; Thu, 30 May 2024 05:52:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=198.175.65.15 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717048349; cv=fail; b=m+Gl0RrkMw3nRBKXeIY8beZGfQk0FvCIIny+YBVjSY3OKk/24EgoumOtMp/AlyW+/JDlsgRBSH23vxJNbLZHqgbMh1P0yoIM6l+7hgCakcwTHnwvNxI5nkRuBRhwGOnGzAibG3mczL4n85ia8JMo5p0N2zW0G8lIsTFgv9qf58M= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717048349; c=relaxed/simple; bh=Gu0F3a1lN1kYCIUS1AZpDt7r7ifZHx0464OW8jrbcKE=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=oIfqeogRyKaDpBIScte4LgFM61WhaGw4Quo8zi6ML6wsTgAOfi8GNHSIAUXf6ctLc1K5F0q6RoXVFCFbjNdY9xIlZSRzR5BP2BjODsqIWzJC6Z3eEiWQJhK2AmohVBRjQSMq99CLNCAXRKHjo6DimG/fXfULhcD8o1UVJbq543E= 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=P9GUhT5T; arc=fail smtp.client-ip=198.175.65.15 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=1717048347; x=1748584347; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=Gu0F3a1lN1kYCIUS1AZpDt7r7ifZHx0464OW8jrbcKE=; b=P9GUhT5TScbHqG1aRz8BvbH+FTXxSzvivKZSBngenoNL8Pyme5vyD8rJ ZebbV40wjSn45OU2FV2AGSCOhyA8iecpT0E0LfwwA0Wb+lOpAOCW5iJ+B BrYRldrlAyDy2yB5rpKTYVLvyte/++mMKLhLPFTii8sfIKCAJ7DEREmL2 J/LvzMRYQB4h0J7q2DrCxcgiQ+UnccqLCHSVzBnB7vjSLyll7Vx24bvmm hUB/3jB81zSMGpCpsu1xKJopGM5jT5FxOsK9NewW7bnJz2K338mAgH9iP RyjMnYI/dE+/j9alnjnKY4Ti5zKdLzwnhww633X8Vyz10PeLH2InANhcL Q==; X-CSE-ConnectionGUID: dxDemdp8SAOHR23Obhmg4g== X-CSE-MsgGUID: x9LMYz6LQ3S3h6BZ9OGAoQ== X-IronPort-AV: E=McAfee;i="6600,9927,11087"; a="17296075" X-IronPort-AV: E=Sophos;i="6.08,199,1712646000"; d="scan'208";a="17296075" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 May 2024 22:52:26 -0700 X-CSE-ConnectionGUID: QnMIvU/cSrSzXGLsdVumcA== X-CSE-MsgGUID: 2FiGaZIZRa+dvIt+9s/odQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,199,1712646000"; d="scan'208";a="35638267" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmviesa007.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 29 May 2024 22:52:25 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 29 May 2024 22:52:24 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 29 May 2024 22:52:24 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx611.amr.corp.intel.com (10.22.229.24) 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, 29 May 2024 22:52:24 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.44) 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, 29 May 2024 22:52:24 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mKnt2XxmxQ4NPK1RXozNC2px6SePD8XEnLiKikwxJNRFTQMCqdNKoNxVW9djRzlW6z+xi39ZTZSiAM3LlnxheeazIiOT/WzL5Q6zz0tPdcqbLqHLnKQZNs10kohO1EzhdDBcy+gDYghHecTUvkVhWPLlA2XON61idQO92a9dgnYsOOuoO2oOms8ScOV+Ch8P/TNINQHoCz988jh7G7291GJ2befPuC5BvMlE3yXNBu4vyqEbXvk4qi3tKf9sziqrtBgYbwYu/urJrsFKqahTs3bsF6LS5yVdmno8CCtoO7lHMFzQKq3fmTGpFY9ZAPbQLtxGOeIqmPfypQ9GPpzHew== 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=Q475Tc8JBJGC4W+w4K06DdHG+RH2VkVVSTj5kMwse8U=; b=bkTv3vrmdazKB5DZ3gGXWhLF/FiKCC/tBSV3rcs8pJuAIkovtpuCG6chiCpAHSIIiAeATOb+e822HLYwSP84tPXRJLrUFHodnsA/IvrxpSbgAy4QSP+2iya8LEMMjqXE6Icv9GMHz7HhTnjkt7pwo3eOXWGCasrG9/LAUaEbwckU6VSbtMSQf1/gnldPSsHkVsUUBKaSu8Moqavp3JJrLvTfAO3FDrH/IIMDKsDIy1IEzRA92y5l3+16jX7FTF0D00XgJy4iSernGPUc+p+vUTtuE6N8JHeT3l5a75CrTObaFcNKD4r8Y6x8Bgn8waSKY+RESqJwue0y5te1uQdO1Q== 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 CY8PR11MB7364.namprd11.prod.outlook.com (2603:10b6:930:87::14) by SJ2PR11MB8514.namprd11.prod.outlook.com (2603:10b6:a03:56b::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.30; Thu, 30 May 2024 05:52:22 +0000 Received: from CY8PR11MB7364.namprd11.prod.outlook.com ([fe80::1fe:535e:7c0e:1d67]) by CY8PR11MB7364.namprd11.prod.outlook.com ([fe80::1fe:535e:7c0e:1d67%3]) with mapi id 15.20.7587.035; Thu, 30 May 2024 05:52:22 +0000 From: "D, Lakshmi Sowjanya" To: Andy Shevchenko CC: Andy Shevchenko , "tglx@linutronix.de" , "jstultz@google.com" , "giometti@enneenne.com" , "corbet@lwn.net" , "linux-kernel@vger.kernel.org" , "x86@kernel.org" , "netdev@vger.kernel.org" , "linux-doc@vger.kernel.org" , "intel-wired-lan@lists.osuosl.org" , "Dong, Eddie" , "Hall, Christopher S" , "Brandeburg, Jesse" , "davem@davemloft.net" , "alexandre.torgue@foss.st.com" , "joabreu@synopsys.com" , "mcoquelin.stm32@gmail.com" , "perex@perex.cz" , "linux-sound@vger.kernel.org" , "Nguyen, Anthony L" , "peter.hilber@opensynergy.com" , "N, Pandith" , "Mohan, Subramanian" , "T R, Thejesh Reddy" Subject: RE: [PATCH v8 10/12] pps: generators: Add PPS Generator TIO Driver Thread-Topic: [PATCH v8 10/12] pps: generators: Add PPS Generator TIO Driver Thread-Index: AQHapSHXUIkwGaeDCkGimvlL+UU2cbGVBGIAgBXrFfCAAEwvgIAEIpPA Date: Thu, 30 May 2024 05:52:22 +0000 Message-ID: References: <20240513103813.5666-1-lakshmi.sowjanya.d@intel.com> <20240513103813.5666-11-lakshmi.sowjanya.d@intel.com> In-Reply-To: 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: CY8PR11MB7364:EE_|SJ2PR11MB8514:EE_ x-ms-office365-filtering-correlation-id: e5005cd1-c896-4da7-3947-08dc806cacb6 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230031|366007|7416005|376005|1800799015|38070700009; x-microsoft-antispam-message-info: =?us-ascii?Q?TTqcrxTq6KxucDj8p4j8KJuI2y7rvYt+0WA+pb1M064ZH7n3WYdo0wiEn66X?= =?us-ascii?Q?ho4jcqM0Lth2DSgyrXr/iGy+4ftFyqE/PdZAqHc9xwLQpwAcJ/eiAsjLLra8?= =?us-ascii?Q?Vq3KmHCvwiF7Nt01p4K70w+8CT3/43PkX5at//sLXp3oMSxVGVGYeWxb25IY?= =?us-ascii?Q?t7PprLdOtXkaAiy8SKrkoXFmoSAf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JLbt0xHHomkBQwRNqthjbdFJkTB+yzP2fMV8a5jCDlBu/j27VmM6Gq6sGHss?= =?us-ascii?Q?Ad6Vu0XPGNdlDClTqwIPIv+dUZPwAM30o44dzEmraeljZp/ijaOnWfX24Pk4?= =?us-ascii?Q?yxOiIRDllFUiBLRYIKZsN1M8No/z6q3DW8R5c2RnsrsLRr8VIsoGBSBNqWVE?= =?us-ascii?Q?CrV8wvM9bn3ZiitX0EXLnqVt0IB9B036jSt21dlEcaJst3yT59fWLyDDIEmj?= =?us-ascii?Q?qfMJv/f+PIn9CL5C/6CX4GYi6qjpsX7JWyaeFjOJpEd0tQ=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY8PR11MB7364.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(7416005)(376005)(1800799015)(38070700009);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?4/gc4AuBADE/NRjcGtPgJdXdIDDGWPr7Uwy6+C4l+bHbL/jHV3cQ8SZ42ndp?= =?us-ascii?Q?CfWy3/QJ/7PNGHOTLcD7Xw5IMDlR7Qeu88/pHckQLnft2e2EfFQKKeFCowRh?= =?us-ascii?Q?gT5bMPFwmxiK6hArJAbpeCxocjneqeRB3H+w+9Vg3TFUqD0msL83QFalC2sL?= =?us-ascii?Q?yeE8UJ4ZnGwXk5YmxN5Wml3GiwdJNfYjO8SncoXE6+gaTpL7zERoYzqA9s08?= =?us-ascii?Q?TQrZhu9ECitB5l0MNIvMZ3E9mBd+gxFUU4Ta1Cf6O8SbBFrvkIoVvxeSKM83?= =?us-ascii?Q?XvscuR5c/jH8dqGtwv06qXrrSKfcGGwYvD+O/gUCvwaF9RiG3vGijbWqLOZJ?= =?us-ascii?Q?AmdcFRjBYXNbcs2mdDTTk/47Fp3zEs66tWNAUbSDNVIZtkqwG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RVq0FirQP0LawXgm/lgmeZFVNPVSgYqOA16?= =?us-ascii?Q?7Rsw4t05eU2eUl6e284vH7YVQ7aQ+wKcRToLWjuL0+z6KAVtpU+k/bsSrXDW?= =?us-ascii?Q?ewrZDP/mQzmMYV4h6l6VD78Q6WtVFv/z/F3vD9yiSZLfXEcbtx6llydBVFT7?= =?us-ascii?Q?0md7yewqpMkr4qNop2ZSxfuLs38oL8FLncDLzaDiZ1KkEqhqmGLnPgD7f/K8?= =?us-ascii?Q?xW8hKPWceaaM4Qad8yROEqSiMHGBgnkVHV+EbiEauL56Nd09TmR/qOCdoiT0?= =?us-ascii?Q?ikaK/N6zeQXwtjXcJnjJ/RsaTBE1s64Wj8Ec7QxOZKRWnc3ThlnUJSm1Ysx1?= =?us-ascii?Q?pg=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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: CY8PR11MB7364.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e5005cd1-c896-4da7-3947-08dc806cacb6 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 May 2024 05:52:22.1989 (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: J6+p97mequNQpAEEVdjcinzrqNbu/HZ06A3+wgVaE/mKyelkMXdzp1Gn+X15qo3lp4gXNOFKPvoUoJVPof+GkbD0Vr2EEsCFxFFaiCHgz1c= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR11MB8514 X-OriginatorOrg: intel.com > -----Original Message----- > From: Andy Shevchenko > Sent: Monday, May 27, 2024 8:04 PM > To: D, Lakshmi Sowjanya > Cc: Andy Shevchenko ; tglx@linutronix.= de; > jstultz@google.com; giometti@enneenne.com; corbet@lwn.net; linux- > kernel@vger.kernel.org; x86@kernel.org; netdev@vger.kernel.org; linux- > doc@vger.kernel.org; intel-wired-lan@lists.osuosl.org; Dong, Eddie > ; Hall, Christopher S ; > Brandeburg, Jesse ; davem@davemloft.net; > alexandre.torgue@foss.st.com; joabreu@synopsys.com; > mcoquelin.stm32@gmail.com; perex@perex.cz; linux-sound@vger.kernel.org; > Nguyen, Anthony L ; > peter.hilber@opensynergy.com; N, Pandith ; Mohan, > Subramanian ; T R, Thejesh Reddy > > Subject: Re: [PATCH v8 10/12] pps: generators: Add PPS Generator TIO Driv= er >=20 > Mon, May 27, 2024 at 11:48:54AM +0000, D, Lakshmi Sowjanya kirjoitti: > > > -----Original Message----- > > > From: Andy Shevchenko > > > Sent: Monday, May 13, 2024 4:49 PM > > > On Mon, May 13, 2024 at 04:08:11PM +0530, > > > lakshmi.sowjanya.d@intel.com > > > wrote: >=20 > ... >=20 > > > > +static ssize_t enable_store(struct device *dev, struct > > > > +device_attribute > > > *attr, const char *buf, > > > > + size_t count) > > > > +{ > > > > + struct pps_tio *tio =3D dev_get_drvdata(dev); > > > > + bool enable; > > > > + int err; > > > > > > (1) > > > > > > > + err =3D kstrtobool(buf, &enable); > > > > + if (err) > > > > + return err; > > > > + > > > > + guard(spinlock_irqsave)(&tio->lock); > > > > + if (enable && !tio->enabled) { > > > > > > > + if (!timekeeping_clocksource_has_base(CSID_X86_ART)) { > > > > + dev_err(tio->dev, "PPS cannot be started as clock is > > > not related > > > > +to ART"); > > > > > > Why not simply dev_err(dev, ...)? > > > > > > > + return -EPERM; > > > > + } > > > > > > I'm wondering if we can move this check to (1) above. > > > Because currently it's a good question if we are able to stop PPS > > > which was run by somebody else without this check done. > > > > Do you mean can someone stop the signal without this check? > > Yes, this check is not required to stop. So, I feel it need not be mov= ed to (1). > > > > Please, correct me if my understanding is wrong. >=20 > So, there is a possibility to have a PPS being run (by somebody else) eve= n if there > is no ART provided? >=20 > If "yes", your check is wrong to begin with. If "no", my suggestion is co= rrect, i.e. > there is no need to stop something that can't be started at all. It is a "no", PPS doesn't start without ART. We can move the check to (1), but it would always be checking for ART even = in case of disable.=20 Code readability is better with this approach. struct pps_tio *tio =3D dev_get_drvdata(dev); bool enable; int err; if (!timekeeping_clocksource_has_base(CSID_X86_ART)) { dev_err(dev, "PPS cannot be started as clock is not related= to ART"); return -EPERM;=20 } err =3D kstrtobool(buf, &enable); if (err) return err; >=20 > > > I.o.w. this sounds too weird to me and reading the code doesn't give > > > any hint if it's even possible. And if it is, are we supposed to > > > touch that since it was definitely *not* us who ran it. > > > > Yes, we are not restricting on who can stop/start the signal. >=20 > See above. It's not about this kind of restriction. >=20 > > > > + pps_tio_direction_output(tio); > > > > + hrtimer_start(&tio->timer, first_event(tio), > > > HRTIMER_MODE_ABS); > > > > + tio->enabled =3D true; > > > > + } else if (!enable && tio->enabled) { > > > > + hrtimer_cancel(&tio->timer); > > > > + pps_tio_disable(tio); > > > > + tio->enabled =3D false; > > > > + } > > > > + return count; > > > > +} >=20 > -- > With Best Regards, > Andy Shevchenko >=20 Regards Sowjanya