Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7187710ybi; Thu, 1 Aug 2019 04:34:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7u15iuBB5YC+wMj7nS6K0ZRGyaif9FaQwSPmF5aovj2RlxNpSFNLlzlZ2eCi2K9ZgGoDx X-Received: by 2002:a17:902:684f:: with SMTP id f15mr125909309pln.332.1564659245577; Thu, 01 Aug 2019 04:34:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564659245; cv=none; d=google.com; s=arc-20160816; b=SCzy3/tzuaABM/UQJq5rra3dOvAj+g2jhx8ybQDEmPwDJvrSOQBEJZ69iCU4A6F1nt nnoXBdJ6tmQcw553otKcWF1tB7ljyvrrofhouF56NunYpFB8B1djPr/9XdqBH+C47d3k Rxnr1lc8jtv6MhoucakEEMKy63VRXUWeJJUR7GHL4jgXizG8/GPeR2aNnyYC7AacWHgI RAopNCK5H7brVe9/H+ZKR6K+egoP5pWa5DimaaMkzIW5WRQljompjJFGtclAOhUugl/E Z965oBppCk4rgXQ1bYLojdtFjHl1Q++s8rRafXqPhUAQdU1rjo0eU10RvJUlwngBb/K1 cMKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=hRjvTTICl6oCluAGbQgvsrMyKIk8gbUVKrOM26Z6cSk=; b=GctTfsgqrF/A7YtQupqACOIhHM3jHpisdEX6cFxtWgxjULzp3fUmzBzulagNxjV6U/ VDFk2fabYm3ek5lxQIR2Z+V76fgNSvKjCFq8v5YYCm8opfRg8kZRZdF7aROUadvLrjfN 11nlZ36FwIGvZ/AxcaswrO8b0kPRV73lI87/QIZMsraOvwPTt0UGaE164VHR9PMsXWvs CeYBl9qyLwj+GqPr5zBqj9qxlwu7gjKHltGn6BBPAiWfs3zk5d8TaRP6lRqkcuZUt4Vn jEeDVh3HG/kEw41th8URWCwFEQ64VSdTiv99+ipKRqAiryDZIkEbw3cY2OF3QudUl2Ow BxFA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v184si1070241pgb.2.2019.08.01.04.33.49; Thu, 01 Aug 2019 04:34:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730769AbfHAL1K (ORCPT + 99 others); Thu, 1 Aug 2019 07:27:10 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:36746 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725790AbfHAL1K (ORCPT ); Thu, 1 Aug 2019 07:27:10 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 61C7C28C2DF Subject: Re: [PATCH 5/5] spi: Reduce kthread priority To: Peter Zijlstra , mingo@kernel.org Cc: linux-kernel@vger.kernel.org, Benson Leung , Guenter Roeck , Mark Brown , linux-spi@vger.kernel.org, Doug Anderson References: <20190801111348.530242235@infradead.org> <20190801111541.917256884@infradead.org> From: Enric Balletbo i Serra Message-ID: <640721f8-8a20-b161-473f-98a9dbc053cc@collabora.com> Date: Thu, 1 Aug 2019 13:27:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190801111541.917256884@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org cc'ing Doug as he might be really interested on this patch On 1/8/19 13:13, Peter Zijlstra wrote: > The SPI thingies request FIFO-99 by default, reduce this to FIFO-50. > You say below that is not a suitable default but there is any other reason? Did you observed problems with this? > FIFO-99 is the very highest priority available to SCHED_FIFO and > it not a suitable default; it would indicate the SPI work is the > most important work on the machine. > > Cc: Benson Leung > Cc: Enric Balletbo i Serra > Cc: Guenter Roeck > Cc: Mark Brown > Cc: linux-spi@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Peter Zijlstra (Intel) > --- > drivers/platform/chrome/cros_ec_spi.c | 2 +- > drivers/spi/spi.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > --- a/drivers/platform/chrome/cros_ec_spi.c > +++ b/drivers/platform/chrome/cros_ec_spi.c > @@ -706,7 +706,7 @@ static int cros_ec_spi_devm_high_pri_all > struct cros_ec_spi *ec_spi) > { > struct sched_param sched_priority = { > - .sched_priority = MAX_RT_PRIO - 1, > + .sched_priority = MAX_RT_PRIO / 2, > }; > int err; > > --- a/drivers/spi/spi.c > +++ b/drivers/spi/spi.c > @@ -1434,7 +1434,7 @@ static void spi_pump_messages(struct kth > */ > static void spi_set_thread_rt(struct spi_controller *ctlr) > { > - struct sched_param param = { .sched_priority = MAX_RT_PRIO - 1 }; > + struct sched_param param = { .sched_priority = MAX_RT_PRIO / 2 }; > > dev_info(&ctlr->dev, > "will run message pump with realtime priority\n"); > >