From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 82D34C433F5 for ; Tue, 26 Oct 2021 11:02:32 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4FBFD60C4A for ; Tue, 26 Oct 2021 11:02:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4FBFD60C4A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=canonical.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:Subject:From:References:Cc:To:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=O+3uc/fLZKXaBtWcCERcdVMU/bJBJv0eiKkY2LENni8=; b=Nl6iAEK8fbF8nVI7HxR4tVF/Yg G8xBofeG02es56TEiOT3wPtX7tfNb3x/3v/pU1uw4Gv8wolw4myIYAHul7XTZYcNh0Lfxfkd1CQjX K/LEkEMTKAK/c1TjGxmAklU867vfKh0bzUrIqu7nPnsQfGXk6dAiebP9QuatIgCa+lxsa3CA57V6X 8LwAqylyqnBruUpoen67ac4NP7FLnOmmMIHqXGw0zEHC+IGENS9FeR+FZ4vDWtxqWAe0Kvuga7MtJ EYrtFeuRkFa4ZqcZgAX8mmXTmANZJssxcMqPiz/8+Azh1J/HkECotJpIDp/roe3+tMAs5JYM8v9be PVTHm0Dw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mfKCp-001a91-Gf; Tue, 26 Oct 2021 11:01:23 +0000 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mfKCV-001a3e-3R for linux-arm-kernel@lists.infradead.org; Tue, 26 Oct 2021 11:01:06 +0000 Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) (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-0.canonical.com (Postfix) with ESMTPS id DBCE53F173 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-f198.google.com with SMTP id s17-20020a2e2c11000000b002119b8e1336so44414ljs.23 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=0YPqQlODcvRT5uTMSBfDjlL+gDh48QcP0Kf3UEauURd9eE2Dfq2EH26Jggv2gS24TN IkYKeOK/k8rvxFstpBUOU0D2zhLT5xYGrBvCR8eGzRu0IzvPHgpHQjo7aIQsiiKnpau0 DAcMES8FWzudL8lWW/PqHzU3ZBldDtuazr/0cf/0mU5vtjzMKL8YjhIUWYlSsCVSgqCI BTY6UHo7dTpDf9731QcZ2+XaMgJFEmlmKf8CZeaeDvg16TINVutPpE5oOLPTK2ilb30e O9SYdOEL/XXGd6omHsCOMuAxR0FXlOtGclSzr3mnmGUsR4YgJhQvlIG+E0nfBTPjJ/vm rB0Q== X-Gm-Message-State: AOAM532QtHf+ujJ0dP4tpEGTUfrum5eXFBtLUfXGJJ6G31xJhTIlPNJX v4exjxNU4l/9y8+Bm+cVheOPqgW16gkwP6yeGec3kdhA1bo7C9wJ1oYy/+irXXisYsTy74cyMJh 71O+0PFwq9QjOn2fVJkACX6//2AVykZ3+qv+1ViC6Hikd5afj3sx5 X-Received: by 2002:a2e:9155:: with SMTP id q21mr2538931ljg.217.1635246060258; Tue, 26 Oct 2021 04:01:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0X6qDFP9FFCD5QwYHQV3v8kwvFuK6o5Wcp/OVDsZAZVQxLeOu6Nqkf7G3YizrzY3oQ+AghQ== 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-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211026_040104_984350_CDC61EB0 X-CRM114-Status: GOOD ( 32.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel