Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp66766rwj; Thu, 22 Dec 2022 20:53:50 -0800 (PST) X-Google-Smtp-Source: AMrXdXuoNdTp/H5VEiGbveEM0If4q8n9DPewv9IqW9vpVRX1IUtJIdVZCB81bLI8s/MvA+Cc1MMP X-Received: by 2002:a05:6a20:1b02:b0:aa:7d04:109b with SMTP id ch2-20020a056a201b0200b000aa7d04109bmr9548975pzb.40.1671771230699; Thu, 22 Dec 2022 20:53:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671771230; cv=none; d=google.com; s=arc-20160816; b=SGrB3ITKxkvyBX/H6u4DcIfjy8ZOcfn1BoWOT8ohTnp45pKfYbLUQBqSFXlWUSdtBk RduFRU8ctY6WwWsxG2/E+v8i+294T6HNiRJvrXuuDKbGSJBtOBtTXtjJLzQJxqeP+IVv ojULMl0zNQcheHhUyYjpQwvconK2iIQWQkOGLDBaBgnOY0e7egtlzLs/ijBu1TvyCB5M hypcu0K924MROh4CNcfGtJgerBVCWYo1gfK9OpE/xdHtYHhhiLbxXTzzBRmkGFxJAMvC HirhPs+u47v2hBPyPlgIqKxiHJ4noTFKEdo9jzZ5uH0vigCj9+APSrOsA5U8UbrfopmY pwAA== 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=DDJIRU2drmES57oYUNlv6w2Z7XNzbYJ4ME3pRqcx8ks=; b=0hU9+G+g4/meW/VMeByAnIoxZSfbKoMY7ZkOws3PZKTKbydmNGlFRQMpzu3UWnt1mF tQsiUbKDbLVCKTarYRcUHIn7X0MxEVM1kKGljtTKL4bY/yr6YyPKotkjbqC9osgeIILJ n6w/BLybH5Ec8QnAHNDCLyCvi6CEhAzOCF7xhrXlWdBZeP+Bk5/4jcSZpwEMnvOOtAjI ErOZwWu1atHKeN32NTXUU8l3RYk+zhF1YfVTKYBtmhv/uwj8ZKBKxNFUpLTI89iP6R0F 8sDXcduqqfWOdX5xXqQB/d2qYtJpco8mm90R4J/SLcs+VbJTZvWr0xl14lBC43AT2KTP eLPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="M/aAcfuN"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w34-20020a634762000000b00477a10a91dbsi2806932pgk.614.2022.12.22.20.53.41; Thu, 22 Dec 2022 20:53:50 -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=@gmail.com header.s=20210112 header.b="M/aAcfuN"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230298AbiLWELF (ORCPT + 68 others); Thu, 22 Dec 2022 23:11:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229763AbiLWEK7 (ORCPT ); Thu, 22 Dec 2022 23:10:59 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BE2C5F9C; Thu, 22 Dec 2022 20:10:58 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id r26so387979edc.5; Thu, 22 Dec 2022 20:10:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=DDJIRU2drmES57oYUNlv6w2Z7XNzbYJ4ME3pRqcx8ks=; b=M/aAcfuN+KqkaGqL5MOJrERhTOfdIgOkRefh7fbtU/vjIYnQUHMPxL/VQcUu923rzP clZT3pPnGZnbCBrKnfoNVQxoCCrqMgE1CF+pmKF5WLIZ4ZbrUgamzR6+AElGLiGmKa1V VVpOzdeNYEyn166M1lKrlfbE9NEM1nn1Lcq5ZlsOuJTgWMUDSNUncK5T4mPZCAUqFOEb 4hsawg1wzyeIh5+aszdZ2+zcykbYaO+4+XRmMTHmiFP43AfzePG5qat7ex36Q/akE8Gx 0bKLOsprGfnsOCe2f7AJjCtGFt9PTa/cAil+5VSBXc0JNkleBiXp117rY7ABHmoJnbTG kMmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DDJIRU2drmES57oYUNlv6w2Z7XNzbYJ4ME3pRqcx8ks=; b=bY1P2lwyBc3K/QUJ5pmRmC/aTQCsjOE1hzw2zKaDVM+6oIIzrTaEyejXp/DirV/OOD wPA6XDI8w/mjG2dJ8gbPQOzhAXfYYZJpukqIvKL2qeYr5DK7KTrmYcSATrQ65DDlcbYK juUMlTm4OHoRR/f/Zwre7bM9TJNCm7lyYY4iv/kf7L25FaRNfATpU8IVNq1DN5PIH12+ g3p5BUUKUA0tZt7j7Mef6Wc0zI+NS+BJdxYCAA4Ksvicfv1RKw7P2RnF5ecQezrdEgv6 lgG0Nb2KMemrTP658ZWBdFQz8jL60qOqz5XZy1IokVDV1TTltXzlmnvvkkfPc1uCzlNL wvdA== X-Gm-Message-State: AFqh2kp57nIcDrI2Q96iWG/7kypedkCs22PH0wKQ0LV7Xmm3aonnzXYI pw2av/cMIMf+QtmGxEqbAvqZNPrIqsVtW1N26KI= X-Received: by 2002:aa7:da42:0:b0:46c:226e:6ec8 with SMTP id w2-20020aa7da42000000b0046c226e6ec8mr762046eds.319.1671768656910; Thu, 22 Dec 2022 20:10:56 -0800 (PST) MIME-Version: 1.0 References: <20221211215843.24024-1-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: <20221211215843.24024-1-prabhakar.mahadev-lad.rj@bp.renesas.com> From: "Lad, Prabhakar" Date: Fri, 23 Dec 2022 04:10:17 +0000 Message-ID: Subject: Re: [RFC PATCH] clocksource/drivers/riscv: Get rid of clocksource_arch_init() callback To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Daniel Lezcano , Thomas Gleixner , Geert Uytterhoeven , Conor Dooley , Heiko Stuebner Cc: linux-riscv@lists.infradead.org, Anup Patel , linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Biju Das , Lad Prabhakar Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Sun, Dec 11, 2022 at 9:59 PM Prabhakar wrote: > > From: Lad Prabhakar > > Having a clocksource_arch_init() callback always sets vdso_clock_mode to > VDSO_CLOCKMODE_ARCHTIMER if GENERIC_GETTIMEOFDAY is enabled, this is > required for the riscv-timer. > > This works for platforms where just riscv-timer clocksource is present. > On platforms where other clock sources are available we want them to > register with vdso_clock_mode set to VDSO_CLOCKMODE_NONE. > > On the Renesas RZ/Five SoC OSTM block can be used as clocksource [0], to > avoid multiple clock sources being registered as VDSO_CLOCKMODE_ARCHTIMER > move setting of vdso_clock_mode in the riscv-timer driver instead of doing > this in clocksource_arch_init() callback as done similarly for ARM/64 > architecture. > > [0] drivers/clocksource/renesas-ostm.c > > Signed-off-by: Lad Prabhakar > --- > arch/riscv/Kconfig | 1 - > arch/riscv/kernel/time.c | 9 --------- > drivers/clocksource/timer-riscv.c | 7 +++++++ > 3 files changed, 7 insertions(+), 10 deletions(-) > Gentle ping for review. Cheers, Prabhakar