Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5971808rwl; Tue, 4 Apr 2023 06:19:02 -0700 (PDT) X-Google-Smtp-Source: AKy350a3EpqqpvVADFNRLRU/y1t7oSl6FAyRu9MkLWiRv+9BzSD+OGoLwM0tQkIZcTYVcOIz/MPo X-Received: by 2002:a17:907:119e:b0:933:be1:8f4f with SMTP id uz30-20020a170907119e00b009330be18f4fmr2359845ejb.9.1680614342410; Tue, 04 Apr 2023 06:19:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680614342; cv=none; d=google.com; s=arc-20160816; b=HifyMLDX3sUvUBJlcEcmFwq0xwpBhGxDkJ7u4tcQyy5D2hE34zTMW8ewvva7irsjpe JcF3of0c4qyAt6HuIE8ez+tFi95d5o3/PurrvMKuQDBirwWVWWn0Btz5DmXd7jEk8cWk 8449yttFsmktndH8qOu8nKyePDyKZjaCp90vLpEPs5ViaJkipEbLg4rjNmvHgIy/2ZFh R7Hj8613ZGI3CBmv+XtMRwnzO//rG5Tl749cf9N0pZwLFquUri6tlRPQBDbJuza7omOX w7ixwsZi8USYtfdGPYIMQFpW4uVomaZ8hWpCjUS71bjYLvtEIj/bPOgA67MnO+clOZKn 6QhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type :content-transfer-encoding:in-reply-to:from:cc:to:content-language :subject:user-agent:mime-version:date:message-id:dkim-signature :dkim-filter; bh=8V/cf4AB6W2TOPp2IXcjoz3iFGfWOZyI4pCZ9f1vA0Q=; b=caXtfjtblsxQz1LYsvbJAkzU7g331mqMkpROXfxEAYlUN3sUEm6jCBW/8TAWpB6ZfH 56RfepPPtwcu9nXu8EvvuONEMTUyyIL+BJJmEKtFQ1HGmwBS3GIBVAFnqfKrg7ZpWNCc OUIPfMPmJLj6zXJjIQBKMZxB5m9sbA77HJIekawwKV1TPltiVxUwYGK3THPu3rSw1LSE VsPq7OW74gJQYfv8W81Z46OqwnJhMFc5Pxx0+7QdM9u+ops25EfosY/xlTuT62CvHhQX wjwoqlLBwX48T/oZt7hnV0Gh6HkjKRf0jX/fQFkpecBywa/uYpjMDZWj85wLIWqKRRHB NS+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="M/qU3qQx"; 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=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j24-20020a50ed18000000b005027e754e86si9974481eds.452.2023.04.04.06.18.27; Tue, 04 Apr 2023 06:19:02 -0700 (PDT) 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=@samsung.com header.s=mail20170921 header.b="M/qU3qQx"; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235153AbjDDNRr (ORCPT + 99 others); Tue, 4 Apr 2023 09:17:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235087AbjDDNRo (ORCPT ); Tue, 4 Apr 2023 09:17:44 -0400 Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 403DE3A8C for ; Tue, 4 Apr 2023 06:17:34 -0700 (PDT) Received: from epcas2p3.samsung.com (unknown [182.195.41.55]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20230404131730epoutp0304aa94619a15f73b56295669d640073f~SvcG-kfzx1805118051epoutp03I for ; Tue, 4 Apr 2023 13:17:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20230404131730epoutp0304aa94619a15f73b56295669d640073f~SvcG-kfzx1805118051epoutp03I DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1680614250; bh=8V/cf4AB6W2TOPp2IXcjoz3iFGfWOZyI4pCZ9f1vA0Q=; h=Date:Subject:To:Cc:From:In-Reply-To:References:From; b=M/qU3qQxQPH2EAALndUqpHT5wTeV6ytXGDVb8wgTt71qzsUz+2sBnjLl49hr/uacW vUU0Iq+4ga2noiz/3zxFXMpK67bI11BOmEhbpux2sWE0nVcdy3BDMCdj+FyvMkjKDl 5ufzNbbQngkDzJFCJzizeU230ErmpfBtQG4PKYAQ= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas2p1.samsung.com (KnoxPortal) with ESMTP id 20230404131730epcas2p198c8d081fc648ec965d7a7d672b46b8c~SvcGjmoK00569605696epcas2p1v; Tue, 4 Apr 2023 13:17:30 +0000 (GMT) Received: from epsmges2p4.samsung.com (unknown [182.195.36.101]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4PrSwp06GBz4x9Pr; Tue, 4 Apr 2023 13:17:30 +0000 (GMT) Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id 80.0E.35469.9632C246; Tue, 4 Apr 2023 22:17:29 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p2.samsung.com (KnoxPortal) with ESMTPA id 20230404131728epcas2p251e43101498d4ad7591a39ce710c60f7~SvcFMAHM91760917609epcas2p2_; Tue, 4 Apr 2023 13:17:28 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230404131728epsmtrp2d305f0f20011666aae5c5dc91d93df87~SvcFLQ5ge1061310613epsmtrp2P; Tue, 4 Apr 2023 13:17:28 +0000 (GMT) X-AuditID: b6c32a48-9e7f970000008a8d-a7-642c23694ea4 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 87.A1.31821.8632C246; Tue, 4 Apr 2023 22:17:28 +0900 (KST) Received: from [10.229.8.168] (unknown [10.229.8.168]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20230404131728epsmtip2a5fa1f8661d6ab0f166df5b309dab779~SvcE59RG90687606876epsmtip2m; Tue, 4 Apr 2023 13:17:28 +0000 (GMT) Message-ID: Date: Tue, 4 Apr 2023 22:15:05 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH 3/3] spi: s3c64xx: support interrupt based pio mode Content-Language: en-US To: Mark Brown Cc: Krzysztof Kozlowski , Andi Shyti , Alim Akhtar , Rob Herring , linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Chanho Park From: Jaewon Kim In-Reply-To: <61a67466-3467-4f71-bc27-d660e37c08ac@sirena.org.uk> Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrLJsWRmVeSWpSXmKPExsWy7bCmhW6msk6KwfOrxhYP5m1js1j84zmT xdSHT9gsLu/Xtph/5Byrxd7XW9ktNj2+xmpxedccNosZ5/cxWTR+vMlu0br3CLsDt8f1JZ+Y PTat6mTzuHNtD5vH5iX1Hn1bVjF6fN4kF8AWlW2TkZqYklqkkJqXnJ+SmZduq+QdHO8cb2pm YKhraGlhrqSQl5ibaqvk4hOg65aZA3SdkkJZYk4pUCggsbhYSd/Opii/tCRVISO/u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SfFYF2bvsWDedvYLBb/eM5k MfXhEzaLy/u1LeYfOcdqsff1VnaLTY+vsVpc3jWHzWLG+X1MFo0fb7JbtO49wu7A7XF9ySdm j02rOtk87lzbw+axeUm9R9+WVYwenzfJBbBFcdmkpOZklqUW6dslcGUc7pcq2MVWsezxK5YG xnbWLkZODgkBE4ltq86xdDFycQgJ7GCUaFt2gRkiISOx/FkfG4QtLHG/5QgrRNFLRonepTNZ QBK8AnYS53dNBWtgEVCR6HvazggRF5Q4OfMJWI2oQJTE5wMt7CC2sIC7xK5V/8HqmQXEJW49 mc8EYosIKEtc/b6XBSL+kUli0gRxiGX/GCVubvkIdiqbgLbE9/WLwWxOAUeJFZNboBrMJLq2 djFC2PIS29/OYZ7AKDQLyR2zkOybhaRlFpKWBYwsqxglUwuKc9Nziw0LjPJSy/WKE3OLS/PS 9ZLzczcxgqNMS2sH455VH/QOMTJxMB5ilOBgVhLhVe3SShHiTUmsrEotyo8vKs1JLT7EKM3B oiTOe6HrZLyQQHpiSWp2ampBahFMlomDU6qBKfzy9tr84C+LN5p7qDSl3shP+9ne8L7zqm2m tayprNTyZLttX4L28M72E5+5cfvdYMNyCR8FBqunQTzPa2NTw45uDjuUpF8m0Be0b/OX26te qb1fFKX7iInvqs5x2eWnDTXZlbbtWun/SXvCoktvQ8ytl+o+byh/NperVPLO0X3d7Hdc5+w7 c/6A0i7B6Avv7J8b2Z2c9OTaV+O2Cr7v86Qap6vk+X19GRysm1Jxc6KTnczZlAcC+R4y3L9e SD+anO026ej8kL8LrxesuzVNPnGPUN75lMygexxeP3rjVj/ceui88HuhV8US4uo3vn1aFGeT r37EtGNp36Uf5/8XLZaYEVX2TFS6Rzvq+YV4DSWW4oxEQy3mouJEAIV+6achAwAA X-CMS-MailID: 20230404131728epcas2p251e43101498d4ad7591a39ce710c60f7 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230404061409epcas2p2b12a9cac014907e3930795cb67cb6040 References: <20230404060011.108561-1-jaewon02.kim@samsung.com> <20230404060011.108561-4-jaewon02.kim@samsung.com> <61a67466-3467-4f71-bc27-d660e37c08ac@sirena.org.uk> X-Spam-Status: No, score=-4.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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 Hello Mark, On 23. 4. 4. 21:58, Mark Brown wrote: > On Tue, Apr 04, 2023 at 03:00:11PM +0900, Jaewon Kim wrote: > >> This patch adds IRQ based PIO mode instead of cpu polling. >> By using the FIFO trigger level, interrupts are received. >> CPU consumption is reduced in PIO mode because registers are not >> constantly checked. > Is there some lower limit where it's still worth using polling, for > example for just one or two bytes like a register address? Taking an > interrupt isn't free... I did not considers lower limit. According to your review, interrupt seems to be called too often. However, It can't prevent the CPU utilization going to 100% during spi transmission. We will give more consideration and deliver a better solution to the next patch version. Thanks Jaewon Kim