Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1876088lqe; Tue, 9 Apr 2024 03:09:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX1lkmDWydyVth/e4SO5Tkuz6urwQh6YxGbC3DazsfZN/YfYYRVMm8eo0XCi/rOlHEXkT8vDiVuphMREGv1WdWrM0COyUjUnA66Jo+VyA== X-Google-Smtp-Source: AGHT+IGnQdoMFYV2t3l1776UizYy5cCp4NDRTrleXQrKYVQfNkjiSMySmA8X/gfT2QeaBq080ySh X-Received: by 2002:a50:aa98:0:b0:568:9936:b2e with SMTP id q24-20020a50aa98000000b0056899360b2emr7196708edc.24.1712657376734; Tue, 09 Apr 2024 03:09:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712657376; cv=pass; d=google.com; s=arc-20160816; b=IFM1ddbLq2GLT574rciS5Qj9SaKkxFQxhfNJhZ60o4rLivZtoofmcDaYHoz6pKlsBk Rm5yBgflidqILIOmohy0Jd1KhEYH3VmcBNCk77eXBzg25UFuTdGER0p730ccLP7MT2kR OalJYwngzY/JwJ32nqfew2vjXXiYzrJ5df0JJuCqQYNNdrfftpyJ7cNRRm0QHw8iV+Yk /waZKNf5oNkKjNEDPOVEcZ8K9Zjl9+3ot5xAJxnFOGN+54KWfBsLW7e0SUmLyJMNQ6tY qnhuDVBej5an22Gb0bG4j0HPWDxxos31CWr8Skw1GXCf2r+L3D60n9d/rJPMaKQiVO/g 3bRg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:subject:from:to:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=qkOZRgZN7hbEc/8b8ArAg5uS4IlZ6EWpP5ZMcV/G7KA=; fh=PO/yX8OCDCYcvlgWL+TkO2NKKNlgiMCdb2+J8Sylcck=; b=z1PT1jaG6kBz7ztMmopLdA+Re/kcyzuEdPY/OSvTnmLdK3AWnPzYEOYhdnw0tkAS4m ZS8hEWS1GhowSdOPpJAF2X4GjIJW0XTKe68VlFGCC8SuApOUiRFBqiC6Kruwv/9SOPjw jw4AoAchmNLk8pHrMl1W76bnbsGd1VKEfhfe1dqJzbf4TcqVdQShiS0LiB3QWwlJz403 kc6QV7k2NgUrcsb3mGdyZ5G3ZwUkxlVNsbsIjlTIXsqOM0NsrhT22O4cTyuwIVuwjISE uckcbou0yhPbY2MjCBU+njPHHULjz+ISevAVyUhiQfUED0FDqKItRlo+vJgJAldxZh/0 CBiA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=ZzEaGpmR; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-136634-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136634-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m3-20020a50d7c3000000b0056e241c3f48si4516363edj.566.2024.04.09.03.09.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 03:09:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136634-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=ZzEaGpmR; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-136634-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136634-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 777931F21F9F for ; Tue, 9 Apr 2024 10:09:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D68F981727; Tue, 9 Apr 2024 10:09:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="ZzEaGpmR" Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B7E047D3E8; Tue, 9 Apr 2024 10:09:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712657369; cv=none; b=Qtodnkk9CX/szB7J0QN9ltmcdPMd++yCWKKnnLrGDAHf2FyoABb/GRrm4+DIO/0QeDoV+OBt4BBdhlzCxuhbXj/mne3ShTNnFng49G0orwB8Ud5YYDgpzp8Ruf4idlr0/6to5M4yN5TnEzePZgsDdAchNQvIkGRLF8kSzPKUwpo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712657369; c=relaxed/simple; bh=kPve59cg+kbjwFG+j4J1S4mcG9qBitt5lHcER6L38Vg=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:To:From:Subject: References:In-Reply-To; b=jw5VwuFeVlqOkW38J/U3vbtW/P59RuDgU2yPtBkpQ8qCbM/0qc2YwbOn+oVJpi8sGFznDzIO3EX2gDqv9su14QIFS3T7EpslS/n5fBOsd+VZCV44KFK4BGkCLcpN5cc9RfMsXFno3UopI/iuCGJrwn1Siw/HQ4nfl4KpoNLtVLU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=ZzEaGpmR; arc=none smtp.client-ip=217.70.183.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id E25E620005; Tue, 9 Apr 2024 10:09:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1712657358; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qkOZRgZN7hbEc/8b8ArAg5uS4IlZ6EWpP5ZMcV/G7KA=; b=ZzEaGpmR+ztCVSdv0AhiewnxS8iPe15xzID6gNN68isgCoSYX+e9U+VXNluv2vXqlS3veH X/51oO3V9KHqMpO5EylWZ5BKbj7b+xNtq0IluWlOJjKfMOVKC8Bevot0b1xytcbAbNwTEl HIa8GAj54hZ258Q3QsYdUoH4HU/sxg6r+dmlH5TLlEHXMRwVkirZQAvFMwcwlGy6T/1aQa aJl9JfG58zDl+nB87GB9xMxXlvnyTFtPfRk/lYDmtD+1qPXOapm4ZEna/h32JizoB4Pd/Z FnkzI5Lm/VRCexTT2TMXmKtPjH3sLToc/qUz90Rud8UdLKafS5IuRHz5jp2fnw== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 09 Apr 2024 12:09:17 +0200 Message-Id: Cc: "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Vaishnav Achath" , "Thomas Bogendoerfer" , "Rob Herring" , , , , , "Vladimir Kondratiev" , "Gregory CLEMENT" , "Thomas Petazzoni" , "Tawfik Bayouk" To: "Mark Brown" From: =?utf-8?q?Th=C3=A9o_Lebrun?= Subject: Re: [PATCH v2 08/11] spi: cadence-qspi: add early busywait to cqspi_wait_for_bit() X-Mailer: aerc 0.15.2 References: <20240405-cdns-qspi-mbly-v2-0-956679866d6d@bootlin.com> <20240405-cdns-qspi-mbly-v2-8-956679866d6d@bootlin.com> <1f7087ad-824e-47fe-9953-ed5152c8f18f@sirena.org.uk> <9cb48440-c71e-4a73-8104-4780f0e98e72@sirena.org.uk> In-Reply-To: <9cb48440-c71e-4a73-8104-4780f0e98e72@sirena.org.uk> X-GND-Sasl: theo.lebrun@bootlin.com Hello, On Mon Apr 8, 2024 at 6:40 PM CEST, Mark Brown wrote: > On Mon, Apr 08, 2024 at 04:42:43PM +0200, Th=C3=A9o Lebrun wrote: > > On Mon Apr 8, 2024 at 4:16 PM CEST, Mark Brown wrote: > > > On Fri, Apr 05, 2024 at 05:02:18PM +0200, Th=C3=A9o Lebrun wrote: > > > > > The reason is to avoid hrtimer interrupts on the system. All read > > > > operations take less than 100=C2=B5s. > > > > Why would this be platform specific, this seems like a very standard > > > optimisation technique? > > > It does not make sense if you know that all read operations take more > > than 100=C2=B5s. I preferred being conservative. If you confirm it make= s > > sense I'll remove the quirk. > > It does seem plausible at least, and the time could be made a tuneable > with quirks or otherwise if that's needed. I think I'd expect the MIPS > platform you're working with to be towards the lower end of performance > for systems that are new enough to have this hardware. Next revision will do the same busywait behavior unconditionally then. Thanks! -- Th=C3=A9o Lebrun, Bootlin Embedded Linux and Kernel engineering https://bootlin.com