Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp8521530rwi; Tue, 25 Oct 2022 07:40:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Id9siiSWsPZtgAfAxTXxn84xjY1xl7ZK5lL0q6wLP08GM8F0mJ4Bj6covz2T2+VOuxIMA X-Received: by 2002:a65:6b81:0:b0:461:4049:7df7 with SMTP id d1-20020a656b81000000b0046140497df7mr33493257pgw.593.1666708824917; Tue, 25 Oct 2022 07:40:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666708824; cv=none; d=google.com; s=arc-20160816; b=CZeEBmRKl2zZ1xoEDBCax4s6VDzgXPpNsjgk7TnH/20AgkucVuJv7BPJ3wKN4uhy7x 2EwjM0LiToUFw8hiaacVzkvYqRVaqmoL/r6Hvnnm9K1VcgmhPBSNBXH6hMOp9+r8iiX4 8NHQLdS398/AuVH4xaukpeMSRUs6IZ/V32MsGL435s6tafoGuhnAjp90uqAOyKOd6nV3 +sb2HdYSdrpstRM7yvv41OearV22s2L+bcPLFKPy56tcrVKh8G6adEwaurOzP4NFrWCs qKE6tOL9Jpc3Zog0cVwBEBad0IDraYk5oarb1HfONueOGfD7b8VOZdNPHJAp9icVo43A sd5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=i1HisLxCXwGW+N2ZdZIRfL53p7uzwUVG1JAoNd0eYZw=; b=C0np8UKSTP865iCD1aYbuX2pIN5STzvKYLjLj2+TM4X6SiAqUYLZgwx0wTbkKp3RFx vB/IR1eoGKc8qY9K9Gy0hvkYFMQQ5uVwTBV54VxuAoXy9XHLse285F7yMnwwDEW4iyIk amv1hf+j6jIA7je+5k0aj5Zad1P2KReALLdq6YZVKdqCFhWg8SRjRnZCjmps+96H0zxO RwUGdEF3y8G20SvhrixbkMhqhkUqQ5yV0gXjFzm1bA8fJL+FOG7gAE8EgSqAT1N71GJQ g9hegJ3lG7Mm0clEcUM0C1mnjAcVctKJbrVq7EfYTQexRxmsoIXdu2BbMdyvLk1IaIfb y41A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FoRmzqr4; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w3-20020a1709029a8300b0017f863024acsi2828864plp.235.2022.10.25.07.40.09; Tue, 25 Oct 2022 07:40:24 -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=@kernel.org header.s=k20201202 header.b=FoRmzqr4; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232125AbiJYOdR (ORCPT + 99 others); Tue, 25 Oct 2022 10:33:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231197AbiJYOdO (ORCPT ); Tue, 25 Oct 2022 10:33:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D20FA1057E8 for ; Tue, 25 Oct 2022 07:33:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 53523618DB for ; Tue, 25 Oct 2022 14:33:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A49DEC433D6; Tue, 25 Oct 2022 14:33:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666708392; bh=ZsTzR3IKBFJlkqWG1LSbBERYv00AuE0K58qJL2Ls1Tg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FoRmzqr4t1izdYZhHOGDi6L1oWaYjkz7Bbv5jxSnCYam55wTHOdmrfl81Fgzhm7Om FblkZ8XtzQW6XwVVMGs8kOxTkcUrJ3tjjvZtjuGN3Yoslzi5ceHbgxtDgIrq1PvN7q tFULBAXAEmVS5BTcmMQGzOMwaUy+GTe7WbyEB5IcJvcyrnkSGwSLIhyjIPEnCS4piY VwAtU/qP8VyuRFFuPrpyml1RfppkQgx4JVqpuh83lI+ftTygE1pBY6a3OW5h1gvWu3 gmh4FTv0ksTkDoeiNd8AKNSfzvoext5u3HnvkJ4K+ri/SGkGIumh1Ol5Hg/M1ZqoEy ZemJW2/L1z7qQ== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1onKz6-0002tT-U3; Tue, 25 Oct 2022 16:32:53 +0200 Date: Tue, 25 Oct 2022 16:32:52 +0200 From: Johan Hovold To: Sudeep Holla Cc: Johan Hovold , Mark Rutland , Lorenzo Pieralisi , Ulf Hansson , Dmitry Baryshkov , Daniel Lezcano , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] firmware/psci: demote suspend-mode warning to debug level Message-ID: References: <20221024143417.11463-1-johan+linaro@kernel.org> <20221025115355.26zrhmaudigumivn@bogus> <20221025132655.4kddpdod5czw3vts@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221025132655.4kddpdod5czw3vts@bogus> X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 On Tue, Oct 25, 2022 at 02:26:55PM +0100, Sudeep Holla wrote: > On Tue, Oct 25, 2022 at 02:56:00PM +0200, Johan Hovold wrote: > > On Tue, Oct 25, 2022 at 12:53:55PM +0100, Sudeep Holla wrote: > > > On Mon, Oct 24, 2022 at 04:34:17PM +0200, Johan Hovold wrote: > > > > On some Qualcomm platform, like SC8280XP, the attempt to set PC mode > > > > during boot fails with PSCI_RET_DENIED and since commit 998fcd001feb > > > > ("firmware/psci: Print a warning if PSCI doesn't accept PC mode") this > > > > is now logged at warning level: > > > > > > > > psci: failed to set PC mode: -3 > > > > > > > > As there is nothing users can do about the firmware behaving this way, > > > > demote the warning to debug level. > > > > > > > > > > As mentioned in the other thread I prefer to keep this as error as we > > > shouldn't mask this error and enable more/newer platforms to ignore it > > > when they can go and fix it. So I don't agree with this. > > > > But now every owner of an X13s laptop will see this not very informative > > error at every boot and wonder what it means. Has something gone broken? > > Should they be worried? Can something be done about it? > > > > I understand that but I have expressed why I am concerned on generalising > it. As long as we inform the concerned owners running Linux(which is quite > small at the moment), keeping it will help to get these fixed on platforms > that are running Linux today for validation and get it fixed if their > platform firmware suffers from the same. Trying to inform every user that a warning during boot is actually benign and nothing to worry about generally seems backwards to me and is not something that is likely to scale. > > Remember that this is firmware used by Windows machines so by the time > > we see this in Linux it's probably way too late to fix in firmware > > anyway. > > > > I am well aware of that fact, but I am targeting platforms that are using > Linux for validation today. > > Honestly, I am not sure if we need to target for zero errors or warnings > on the platforms instead of repeatedly annoy them with warnings until it > is fixed. Otherwise I see it won't be fixed ever. I understand the sentiment, but will having this warning there actually lead to any firmware changes? Or will it just lead to having developers and users debug and report issues which cannot be fixed? And surely there must be better ways to check firmware for compliance than scanning Linux boot logs for warnings? Johan