Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp12085464rwl; Tue, 3 Jan 2023 08:50:30 -0800 (PST) X-Google-Smtp-Source: AMrXdXv4eQOBuMjA8PIAw13kpd6UU/VkUtRU21a2W5Ih//JSKmeGIzouapaq1GOzJ0ek68CZALb0 X-Received: by 2002:a17:902:da86:b0:189:747e:97cc with SMTP id j6-20020a170902da8600b00189747e97ccmr61788991plx.26.1672764630540; Tue, 03 Jan 2023 08:50:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672764630; cv=none; d=google.com; s=arc-20160816; b=V/8RExxTx4HGeiKuEve+uvyz2DwkmvL0+ck55iku/DZKZlQxqBeQNefUtYR+kGHnX5 wMnzPmp9ezoRbClg4PkC2IZ6EITV8r7m4TIMZuUiyt3jK17rn9te+z7TagmPPGbxbTmW DNzL377+6EJYPS2Hh8cWsP8D1160LAqPUYi0l5FqvgHGvNTMOMmiT2C1fvrf42kH2ZOF PszD41KLrblgSWmkYzdyBcXmleWyEmc4168BcoclhVMQ+gb4dUKl5tTls+LctwqtxK33 FlnL0+P8i8HaYiuuoQbNz4A9uJSpfwSMcj+WC29WV+XelDK4vkEG8hgMSfoHRNp5WInA 8EgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=M4N2f7GfMcCQHVsFF1bmfV3KZYetYk8wN6MzN8veA1g=; b=dcsbuCo+PaZhnAUTYRqNV0cyoP1pquqcffl+IaaW8uqvJcIa8bQmCI55XRa3hOQM9t ecioSYs1poa45/3HxBhOOGmi5ro0syTsIJ+mvEJ9mjNenvbdY9PTolSSZV1F+PXFonsU W2IVmHLyup1nUay19YJ7wMdzw4bQu9UBts5pdDegWx8mG39uirrR41fLU8Ag+p/mv7Ml 0QEUzrdrw3/BDwTjnp8QRio0I1Xi/CKLcURSqes9gSpJ6XQlbK8GOl9TG+rK2Iye054T zfdLupDBJoiJc9+RBN2oY4wwIPMkPs+143uUQlav3x73V20LKdrlqE5w9TuPX95D6l1M R+dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=C+uUqf+I; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a17-20020a170902ecd100b00188f0ca6838si36012297plh.569.2023.01.03.08.50.22; Tue, 03 Jan 2023 08:50:30 -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=@kernel.org header.s=k20201202 header.b=C+uUqf+I; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233158AbjACQh7 (ORCPT + 61 others); Tue, 3 Jan 2023 11:37:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233512AbjACQhy (ORCPT ); Tue, 3 Jan 2023 11:37:54 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF710FACB; Tue, 3 Jan 2023 08:37:52 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6C80961477; Tue, 3 Jan 2023 16:37:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C56DBC433D2; Tue, 3 Jan 2023 16:37:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672763871; bh=M4N2f7GfMcCQHVsFF1bmfV3KZYetYk8wN6MzN8veA1g=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=C+uUqf+Idt5tgEWkA99tiRkqvRg9Q5DqDauno/z2lwnukBcgtFNjZ8MJyLz8+PXIK P8t5xoMiD4Nh7/zJXbUU5o4Wc7T+1IsJ6N9fLvC41046pIIQB61x02hvkZSmEE76Sn //swO2eTz+5SNEVLd5SKy7YL0Nr8hBi4ptt2FuALeaQPDlVJRsi9ScOnV5PAv76BOL zJczIrkw3+x4/F4S4NDqigiqw6e8kIWlMOSStNUG193v63V9Wvy0rlVPBGa0EJGn4l RA/j7aoYtS+83KTNAbiRwFAyLX3QUXzBxRZtiCl54Mjwa+jmkFqnkMromc/pywIYH/ SzvkVfU7IWsaQ== Received: by mail-lf1-f47.google.com with SMTP id 1so46359446lfz.4; Tue, 03 Jan 2023 08:37:51 -0800 (PST) X-Gm-Message-State: AFqh2ko4a4v7wsCrcjU5MEVC6bwBeMTr6KiO2GrJRcQsqw9K0udNTRIQ Q4enO3rRxJz4upwNm5G6wgWCcjHL7M83JBpMVGw= X-Received: by 2002:ac2:5dfa:0:b0:4b7:3a0:45d2 with SMTP id z26-20020ac25dfa000000b004b703a045d2mr2308242lfq.228.1672763869799; Tue, 03 Jan 2023 08:37:49 -0800 (PST) MIME-Version: 1.0 References: <20221227040925.1619833-1-sdonthineni@nvidia.com> <7608579c-6ee5-f576-aa06-a763c3b6108a@nvidia.com> In-Reply-To: <7608579c-6ee5-f576-aa06-a763c3b6108a@nvidia.com> From: Ard Biesheuvel Date: Tue, 3 Jan 2023 17:37:38 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/1] efi: rtc: Enable SET/GET WAKEUP services as optional To: Shanker Donthineni Cc: Alexandre Belloni , Alessandro Zummo , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 On Tue, 3 Jan 2023 at 17:37, Shanker Donthineni wrote: > > Hi Ard Biesheuvel, > > On 1/3/23 03:18, Ard Biesheuvel wrote: > > External email: Use caution opening links or attachments > > > > > > On Mon, 2 Jan 2023 at 23:21, Alexandre Belloni > > wrote: > >> > >> On 02/01/2023 11:47:11+0100, Ard Biesheuvel wrote: > >>> On Tue, 27 Dec 2022 at 05:09, Shanker Donthineni wrote: > >>>> > >>>> The current implementation of rtc-efi is expecting all the 4 > >>>> time services GET{SET}_TIME{WAKEUP} must be supported by UEFI > >>>> firmware. As per the EFI_RT_PROPERTIES_TABLE, the platform > >>>> specific implementations can choose to enable selective time > >>>> services based on the RTC device capabilities. > >>>> > >>>> This patch does the following changes to provide GET/SET RTC > >>>> services on platforms that do not support the WAKEUP feature. > >>>> > >>>> 1) Relax time services cap check when creating a platform device. > >>>> 2) Clear RTC_FEATURE_ALARM bit in the absence of WAKEUP services. > >>>> 3) Conditional alarm entries in '/proc/driver/rtc'. > >>>> > >>>> Signed-off-by: Shanker Donthineni > >>> > >>> Queued as a fix in efi/urgent, thanks. > >> > >> This rather seems like an rtc heavy patch and the subject line is > >> misleading. This should be rtc: efi: > >> Also, I'm pretty sure this doesn't qualify as an urgent fix. > >> > > > > I'm happy to drop it from my tree, but please add a cc:stable so it > > gets backported to v6.1 at least. Otherwise, EFI compliant systems > > that implement get/set_time but not get/set_wakeup_time have no RTC at > > all on any LTS kernel until a year from now, and this was never the > > intent when we introduced the EFI_RT_PROPERTIES_TABLE. > > Thanks for considering the fix for stable releases, I'll post v3 patch > with tag 'CC: # v6.0+' No please don't resend the patch