Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1336558pxb; Tue, 26 Oct 2021 07:15:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYh6Txx4xKhVyPI+kM8LCt1h2+gvD6TErlVUPyF78MPHuv/9oKvIMjPaBi/xYP9ZS75GP9 X-Received: by 2002:a17:903:1110:b0:13f:d1d7:fb5f with SMTP id n16-20020a170903111000b0013fd1d7fb5fmr22736755plh.6.1635257700725; Tue, 26 Oct 2021 07:15:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635257700; cv=none; d=google.com; s=arc-20160816; b=PBpG9algX79uldFRKoRfHIrpgm9ajqb3axjldAa1GnNhXAR1DHnUxgalwL/yPPcD5L P1zuldZumxKeQWwsCpHi2AjlbGTQ+AQ2aVmTINdweByrG9zjQEc9+mDKA/G2SDgA8gIh x207oD4v0dBM3Ul7/5lM/DnD6zz/q1S3BRgqqDIZHkSYbimYAKRUwLPtfK4Lntffmg9X YQxkhNnbVVH54uTNLtdNdfci+t5QfSMpXECiyTreX5zBxwzuXVxac8FnSiDvVXCK5wUm oldr4M/yLF2usiyJFwxNtjHrJVJ4pIfEP0S1yZsdj59LI259RHZyohNbn50A2uEZszfC kFBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:subject:from :references:cc:to:dkim-signature; bh=saCQu9EKQs4I6SKXkv5FjAbPTAvRNyG3cbYVa3bkKDU=; b=CyC/zUeZWDNErM37aRPGD3kksqq8dlL7VlqDFP0KCpZHvztVByc82/F6pRJkEKa+cv vuBx70Fb3cDaMSa0be7SjA7Mq07HpwOrsOXsfPoKUfLHhNPdfaRcnpTVKHNWg7GPKbiX GW6+f99PCzNqMN6DyLvojT4EPFtpuzl1sNGzjD3/hfcCSUytpYjGXoCnMTCdKLg8bFR0 2MMApm0gvR4Y6K+vMCUtPUS5jxUqFr9WwVPMglEWLQn4Q3qQmBILywuhVwo2HVMmV6cS 5WFoaQcDtZcR7cooKRUgVD3hTZzSVTCrS8TMYmqojNWWbYxCaVeeJC8DWfxjfyHdYN2C WGPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=AtabUELt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lw10si1197964pjb.168.2021.10.26.07.14.44; Tue, 26 Oct 2021 07:15:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=AtabUELt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235349AbhJZLDa (ORCPT + 99 others); Tue, 26 Oct 2021 07:03:30 -0400 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:57572 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235373AbhJZLDZ (ORCPT ); Tue, 26 Oct 2021 07:03:25 -0400 Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id EFD1D40283 for ; Tue, 26 Oct 2021 11:01:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1635246060; bh=saCQu9EKQs4I6SKXkv5FjAbPTAvRNyG3cbYVa3bkKDU=; h=To:Cc:References:From:Subject:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=AtabUELtunYvEKBaAWhHTSo9wen3CgzxJ0EHGKnFaOwGbj2qhj5WmZezOXpu8wIUP QzEH45Myz/6kxrn+2upe1YWuyzaE/itRdjsvuWx7tkQ/FHXsueN23TICyHE1rFy6i9 YiEtzNyhwhl3uhmAer7FOOsXLVr+LQqGeGfoF2KCDtpIWFe2akiK3KhG7nOY6cssUr aJ71b14TmbsTNB/aKhIQgyTaqlkFOXMV/qy2WLe/CTQGa1fx5EWYmOsjZY0FFRd/LY mrjX0OXaYKXGQzRSqehwOpdruTjqDvBGGuAyyjIbkvvMsFS/L9/8HEO8fDXfGVm+M4 f+2/EkHS8RX+Q== Received: by mail-lj1-f200.google.com with SMTP id k13-20020a05651c10ad00b00210d682c600so4167030ljn.11 for ; Tue, 26 Oct 2021 04:01:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:to:cc:references:from:subject:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=saCQu9EKQs4I6SKXkv5FjAbPTAvRNyG3cbYVa3bkKDU=; b=w0D/4oN9xqYWlJNzurimeoq0tNMEKOhstgQQLN/MtkKhu+r8Z3/GwJMJv55ese5LlL 3lN6ObvQfYfkKcAreHG+8MoalVM38LZZD9BUA/BMwGsKz/GkgwKXtW9ZWpcovH3UjS6r oIfZbg3HFpAsSBmNf0KDLlj3jOKzQuAIS/gWhS8f7PDuXnKoIr0C18lfLeOTUBuVFGTI zzwc/mIqTEYVcqcag+ZtqqjmeswD8hrJLNlFLDpjrEleDypVZ02J3i4tI2FVd/Pkp/Tf xaLksNvTzh68aesQXx1A4Z4aupUfm6pL7h79T3cJZl0ZeJWU1wnDe7atAUuxzcDSwGwN IWBQ== X-Gm-Message-State: AOAM531fWfYbEx9iK6qw81qSYxxFp9aokwlPg6N/AITLpUgAVSuBAsI8 DbIhluNCXnYesM+hBel4U+fzffvMDLmY326nHi3gtaFgO0oIEr0IAca9HKZa4VH3NEcwuV+MduT NLnBun0ijqL/bE6Pr2V93uDGfQOseRz4PhA/P0ZrlAg== X-Received: by 2002:a2e:9155:: with SMTP id q21mr2538927ljg.217.1635246060231; Tue, 26 Oct 2021 04:01:00 -0700 (PDT) X-Received: by 2002:a2e:9155:: with SMTP id q21mr2538905ljg.217.1635246060059; Tue, 26 Oct 2021 04:01:00 -0700 (PDT) Received: from [192.168.3.161] (89-77-68-124.dynamic.chello.pl. [89.77.68.124]) by smtp.gmail.com with ESMTPSA id u4sm1893284lfs.153.2021.10.26.04.00.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Oct 2021 04:00:59 -0700 (PDT) To: Youngmin Nam , Will Deacon , Mark Rutland , daniel.lezcano@linaro.org Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, pullip.cho@samsung.com, hoony.yu@samsung.com, hajun.sung@samsung.com, myung-su.cha@samsung.com, kgene@kernel.org References: <20211021061804.39118-1-youngmin.nam@samsung.com> <20211021061804.39118-2-youngmin.nam@samsung.com> <0c5dcdab-7aa3-a98f-e615-acbe98489935@canonical.com> <20211021082650.GA30741@perf> <1b93aaf3-ed64-b105-dec4-07b6f27b385b@canonical.com> <20211022042116.GA30645@perf> <20211026014732.GA45525@perf> <91e926c4-9a3a-196d-1451-d3e7d38fc132@canonical.com> <20211026104518.GA40630@perf> From: Krzysztof Kozlowski Subject: Re: [PATCH v1 1/2] clocksource/drivers/exynos_mct_v2: introduce Exynos MCT version 2 driver for next Exynos SoC Message-ID: <11ca846b-c8d6-37c9-8ee2-4740fa66d974@canonical.com> Date: Tue, 26 Oct 2021 13:00:58 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20211026104518.GA40630@perf> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/10/2021 12:45, Youngmin Nam wrote: > On Tue, Oct 26, 2021 at 09:10:28AM +0200, Krzysztof Kozlowski wrote: >> On 26/10/2021 03:47, Youngmin Nam wrote: >>>> If everyone added a new driver to avoid integrating with existing code, >>>> we would have huge kernel with thousands of duplicated solutions. The >>>> kernel also would be unmaintained. >>>> >>>> Such arguments were brought before several times - "I don't want to >>>> integrating with existing code", "My use case is different", "I would >>>> need to test the other cases", "It's complicated for me". >>>> >>>> Instead of pushing a new vendor driver you should integrate it with >>>> existing code. >>>> >>> Let me ask you one question. >>> If we maintain as one driver, how can people who don't have the new MCT test the new driver? >> >> I assume you talk about a case when someone else later changes something >> in the driver. Such person doesn't necessarily have to test it. The same >> as in all other cases (Exynos MCT is not special here): just ask for >> testing on platform one doesn't have. >> >> Even if you submit this as separate driver, there is the exact same >> problem. People will change the MCTv2 driver without access to hardware. >> > Yes, I can test the new MCT driver if someone ask for testing after modifying the new driver. > But in this case, we don't need to test the previous MCT driver. We have only to test the new MCT driver. Like with everything in Linux kernel. We merge instead of duplicate. It's not an argument. >> None of these differ for Exynos MCT from other drivers, e.g. mentioned >> Samsung PMIC drivers, recently modified (by Will and Sam) the SoC clock >> drivers or the ChipID drivers (changed by Chanho). > From HW point of view, the previous MCT is almost 10-year-old IP without any major change and > it will not be used on next new Exynos SoC. > MCTv2 is the totally newly designed IP and it will replace the Exynos system timer. > Device driver would be dependent with H/W. We are going to apply a lot of changes for this new MCT. > For maintenance, I think we should separate the new MCT driver for maintenance. > There are several similarities which actually suggest that you exaggerate the differences. The number of interrupts is the same (4+8 in older one, 12 in new one...). You assign the MCT priority also as higher than Architected Timer (+Cc Will and Mark - is it ok for you?) evt->rating = 500; /* use value higher than ARM arch timer * All these point that block is not different. Again, let me repeat, we support old Samsung PMICs with new Samsung PMICs in one driver. Even though the "old one" won't be changed, as you mentioned here. The same Samsung SoC clock drivers are used for old Exynos and for new ones... Similarly to pinctrl drivers. The same ChipId. Everywhere we follow the same concept of unification instead of duplication. Maybe Exynos MCT timer is an exception but you did not provide any arguments supporting this. Why Exynos MCTv2 should be treated differently than Exynos850 clocks, chipid, pinctrl and other blocks? Daniel, Any preferences from you? Integrating MCT into existing driver (thus growing it) or having a new one? Best regards, Krzysztof