Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1680914lqz; Mon, 1 Apr 2024 13:47:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXiM/Yx+oCOjuQlJDAD2mqGOqesxfhZ8q0r9qeTKSeDLhvobEMyJy+bbY7E5a2pnq/nQmUPOM6k30nyN/DjKevNqEAUUisTomMkxBdlqQ== X-Google-Smtp-Source: AGHT+IHVa6xoWsctLJFA2NxDgyt0MWk2wd1tv4fnRa43SOP1AlqEQ+RVgjFkgPJP6aPtHxHxn1aa X-Received: by 2002:a05:6a21:151a:b0:1a5:6acb:399e with SMTP id nq26-20020a056a21151a00b001a56acb399emr19852186pzb.12.1712004434360; Mon, 01 Apr 2024 13:47:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712004434; cv=pass; d=google.com; s=arc-20160816; b=bV/R1CMxvJvzfLs/vgiFYKXqIHxgOynnmHTYccvciN7fpHwMfBjtaZwqQfMhlQkA60 nlB+wOcX24IphV7W/VU4K7eVlylRMB8Yr4C6ClEQgueUa0tOaMUazoV1/N/dVBlrTNjS V58hXQVK+23i+GZnx2Kh2guscbbfNB1tRhK7yfWnG74Y6GMXVTTJQTniw7CVKV5rGVkQ MWOa7v1y1IZ5xbMtgW8tMGfjVTYTq2SO1L9nfFzYIJpIZGnJIqzHw8qODN5GoUliLSiG qY0Chkiw9ogqL6FM98hcR5i/h5D7fVCabl2GitmHNkrIzRxiimJrVY2uJdjlJCjGDGtc A/cg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=0ouXpnTwZTCYF7FT9pTFvv/0pB2wPIrYopkk2qk0W9U=; fh=2AOzuRpXpLtF1Pd+jrGyv/Ww6yI0PNdn+dLTvQOalYM=; b=mTnIws6P10JX3B42o1UUHCT58ssM9rmurADFb6Z0TVDI1/FSVEYSH1M8nH49JAPPxs pyKZ9jK5OdudK+uInzGpYBp/W9twdeoAqtKhy2Rqb19PyxAZ9mCkmPo0vL0qlKJ0qFsz RHR18/5Bte9NDjgiUgCIjvH8XcX0a0nqp81GiikZoc1eicH9fr6d63YIEeBrzcyPR+Au VvjTllDzYdVo5xddKPG65i46aoBMFf9wIKeWEuSjEPf8A0SsB2CHqhigz6Upxl031k97 cf+We3uwRwY+lumU9Fs182zyUsT80EhX2lxdZwUzyCUjA12FJ9W457BBMD+6b4Lb6JPm oRRg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=RCwzi3Fp; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=htMHsfgK; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-127051-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127051-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id o10-20020a656a4a000000b005f05c950b97si10420906pgu.101.2024.04.01.13.47.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 13:47:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127051-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=RCwzi3Fp; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=htMHsfgK; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-127051-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127051-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 7A041B22092 for ; Mon, 1 Apr 2024 20:46:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9C48354BF7; Mon, 1 Apr 2024 20:46:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="RCwzi3Fp"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="htMHsfgK" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 B34D82A1BF; Mon, 1 Apr 2024 20:46:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712004375; cv=none; b=Kggal1wUxbY1ARHwGMnHDM+G4mwyrNAoJbwyGo+9SUZqAm7AwOn0E8w56px3vOjETdpOlR7tMTiraB4HM5K2iIk1goklU+/xHcSzTQiXGHRpHFNHQq2v3mm+dn9PIIwSQQPWCoiFD9x+Mv0Yzo1zw7qsSrpNQiCwi0h58G7xsBE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712004375; c=relaxed/simple; bh=avBOhuX3GmEDNDJJHrH0PwxhZKKnjnL1k92PCok0jh8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=PKdPAm+Xha/Q1GJwfpWSfUiI407OFrfadMttXbnMojoMDxoCzqk+XTHpN8JpH0L9126slhm3sDgsHtD3tPxi57eUUox6FXc/At2CM1dCP7pIYwSuLQt89JDUeu/UNx4a5WW+r9EOTeibMYjtWitFRCo4SQ8TBwpqN6tnc4hzZTQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=RCwzi3Fp; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=htMHsfgK; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1712004371; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0ouXpnTwZTCYF7FT9pTFvv/0pB2wPIrYopkk2qk0W9U=; b=RCwzi3FpOeLoPGiVcadqq9WkweHj4Kme43Ekqpeump0ROFpO4wCAD3pVhNtr2lGFwDWL1X ahgFiPHRpc6B1V1YLkXhRglCxiPuKIQmvDrNvGCBfz4reUT9t7Ht39Sw9nQyrdH6cZxyl9 PS/7L6XoXGOI2HWFApOn/xEC6ypw2A225gntr/fi/huCMbmHcbLwW+LSfKqUm4q8YBJ1UU ddK/rrKTUBDBQzYHNRi9W9ril/RsC9LLFTudBj1F3pQx3DiOxaLLCpn+UMiJOFMqdzOsCQ 7dizB8BjzoobnGaJkmELjIgzg3iF5zINH0eJO9Bpp7pM1zAc8kyI+ttpVfpooQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1712004371; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0ouXpnTwZTCYF7FT9pTFvv/0pB2wPIrYopkk2qk0W9U=; b=htMHsfgKPbXrF8jOpfKKqJnUt3ExzvQDh8OLvonbPrTdII1wItINA3qb4hXrfoOr1zORyc W8h5oalSM7FNJjCA== To: Sagi Maimon Cc: richardcochran@gmail.com, luto@kernel.org, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, arnd@arndb.de, geert@linux-m68k.org, peterz@infradead.org, hannes@cmpxchg.org, sohil.mehta@intel.com, rick.p.edgecombe@intel.com, nphamcs@gmail.com, palmer@sifive.com, keescook@chromium.org, legion@kernel.org, mark.rutland@arm.com, mszeredi@redhat.com, casey@schaufler-ca.com, reibax@gmail.com, davem@davemloft.net, brauner@kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, linux-arch@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH v7] posix-timers: add clock_compare system call In-Reply-To: References: <878r29hjds.ffs@tglx> Date: Mon, 01 Apr 2024 22:46:10 +0200 Message-ID: <87o7asdd65.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sagi! On Thu, Mar 28 2024 at 17:40, Sagi Maimon wrote: > On Sat, Mar 23, 2024 at 2:38=E2=80=AFAM Thomas Gleixner wrote: >> On top this needs an analyis whether any of the gettimex64() >> implementations does something special instead of invoking the >> ptp_read_system_prets() and ptp_read_system_postts() helpers as close as >> possible to the PCH readout, but that's not rocket science either. It's >> just 21 callbacks to look at. >> > I like your suggestion, thanks! > it is what our user space needs from the kernel and with minimum kernel c= hanges. > I will write it, test it and upload it with your permission (it is you > idea after all). You don't need permission. I made a suggestion and when you are doing the work I'm not in a position to veto posting it. We have an explicit tag for that 'Suggested-by:', which only says that someone suggested it to you, but then you went and implemented it, made sure it works etc. >> It might also require a new set of variant '3' IOTCLS to make that flag >> field work, but that's not going to make the change more complex and >> it's an exercise left to the experts of that IOCTL interface. >> > I think that I understand your meaning. > There is a backward compatibility problem here. > > Existing user space application using PTP_SYS_OFFSET_EXTENDED ioctl > won't have any problems because of the "extoff->rsv[0] || > extoff->rsv[1] || extoff->rsv[2]" test, but what about all old user > space applications using: PTP_SYS_OFFSET ? So if there is a backwards compability issue with PTP_SYS_OFFSET2, then you need to introduce PTP_SYS_OFFSET3. The PTP_SYS_*2 variants were introduced to avoid backwards compatibility issues as well, but unfortunately that did not address the reserved fields problem for PTP_SYS_OFFSET2. PTP_SYS_OFFSET_EXTENDED2 should just work, but maybe the PTP maintainers want a full extension to '3'. Either way is fine. Thanks, tglx