Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp341514pxm; Wed, 2 Mar 2022 16:51:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzVLa380JdWOAEJ0Qpe84vguY5ECR7rava9c4eB8D7d80Mo8gXx3/f1vFbqeVUPfDXHkww/ X-Received: by 2002:a17:902:c443:b0:14f:f74e:ebf0 with SMTP id m3-20020a170902c44300b0014ff74eebf0mr33271362plm.171.1646268678978; Wed, 02 Mar 2022 16:51:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646268678; cv=none; d=google.com; s=arc-20160816; b=K3xhTmc0sX/wggZXEn7J9qbPeBnQ1xtxHWmr/JstFeZPwNoLQrBLyzvURoEjPLSrN6 3lsY4Xz4OtLfqb/6M+cp75lXgxpRybh+3/xOSz4Ss0uMF3XgUSbRfr2nsWDmLYUBP4Y0 qwvvThKgvNedVDAcU921upEz4Mf+YGzFOdp7BanWEfqh8oHuNIF9UQ028KqBUYhaauEL V5yO2cVDPX6bwrtStAnYE2U7JiGVKbF3OBpWez4dyB/dLw/sSNUheY0CksKNmj/wO7l6 ABCf9loBp52l8SahREV6L4ZssLmGKSDqnGV7LlaYhslCkmribRZuW1ePFptnWsxXNFrJ sAEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=3MN0YEImrpUQ5g2hoxsIRb19mq+nAgBKemNV9GrIZBc=; b=1DunATkPrOQ+Q6CaHi3IO3uX9MtebIz0A+PWtWq2I2DlxFgEhSuX8RFd1q3STlfCq7 h+WfZCx72Q64ZEgzl1tc98UJ2JtlwiGJc9f8/cDc1HiZS/P3kdpYFblei/9xmSgzbeAX qSwwGp9BGiinCa6Zj/xl+rxO7FC6eZ8Xopp/8pdLhFcEPeH0NmfUz6AREF7+unSe27ia NfPJ8Yr4YOC/4WFjezikA6WRh1CzLqsXtmR3yRD3fsW1H3RhjbpAZ63/WKn8IroiSxRP zthp4u39zbXy9hPFgktTQJJ81CZOJ1Ul7US6F0Nq+RJQykJIVZsk1aPhHJ6KiaAOd6Nu kXxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gnuweeb.org header.s=default header.b=n336WWVv; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnuweeb.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b16-20020a170902b61000b0014fdfe42e17si531231pls.202.2022.03.02.16.51.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 16:51:18 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gnuweeb.org header.s=default header.b=n336WWVv; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnuweeb.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9DF80122F55; Wed, 2 Mar 2022 16:15:04 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230157AbiCCAPk (ORCPT + 99 others); Wed, 2 Mar 2022 19:15:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230165AbiCCAPe (ORCPT ); Wed, 2 Mar 2022 19:15:34 -0500 Received: from gnuweeb.org (gnuweeb.org [51.81.211.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53FF5123BDC; Wed, 2 Mar 2022 16:14:47 -0800 (PST) Received: from [192.168.43.69] (unknown [182.2.41.243]) by gnuweeb.org (Postfix) with ESMTPSA id 88C177E247; Thu, 3 Mar 2022 00:14:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1646266486; bh=pjIJzJiKgtGI6lOvU1gIl3bz4ZoAsWLGIwIxTBOaBXo=; h=Date:To:Cc:References:From:Subject:In-Reply-To:From; b=n336WWVvPX+eTpTbvL/FgGKFA4bFJGsfhx7ZPlcexoW0rPuh3cfOBKHYV6yeB5U77 wMmz7eXs3575SZmAXBJ3ZG4pYsUcRUKmCyer22k2R9z0ZYcs1s+pKZv7h94R19EDNL LEg8YrMt7LWpNS+nHmVAhUvfpv+fekXMCEDR1fMNmAVaRIXB2/wr9j47OUhRaFhG2A YzvHi+8lIcoo4AJ253Wh5KSgLqFUaDmisvb69xzQq7alLyMrqx0ZFUlWmTIv+3LTY3 hJfJyKOlnN8lOaLs8TxN0VjTCkn72b09b5FfXG8l6RnhFErJHfOzbEZyi6WxLvE+jr k+Lec4y+/uNQQ== Message-ID: Date: Thu, 3 Mar 2022 07:14:38 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Content-Language: en-US To: David Laight , Borislav Petkov Cc: Dave Hansen , "H. Peter Anvin" , Ingo Molnar , Thomas Gleixner , Tony Luck , "linux-edac@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "gwml@vger.gnuweeb.org" , "x86@kernel.org" , "stable@vger.kernel.org" , Alviro Iskandar Setiawan , Jiri Hladky , Greg Kroah-Hartman References: <20220301094608.118879-1-ammarfaizi2@gnuweeb.org> <20220301094608.118879-2-ammarfaizi2@gnuweeb.org> <0642444da1844f8dae2dc98b34b8ab74@AcuMS.aculab.com> From: Ammar Faizi Subject: Re: [PATCH v4 1/2] x86/delay: Fix the wrong asm constraint in `delay_loop()` In-Reply-To: <0642444da1844f8dae2dc98b34b8ab74@AcuMS.aculab.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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 3/1/22 4:54 PM, David Laight wrote: > Both the function pointers in that code need killing. > They only have two options (each) so conditional branches > will almost certainly always have been better. Yes, I agree with simply using conditional branches to handle this case. But to keep the changes minimal for the stable tree, let's fix the obvious real bug first. Someone can refactor it later, but I don't see that as an urgent thing to refactor. > I also wonder how well the comment > The additional jump magic is needed to get the timing stable > on all the CPU' we have to worry about. > applies to any modern cpu! > The code is unchanged since (at least) 2.6.27. > (It might have been moved from another file.) Not sure about that... Thanks for the feedback. -- Ammar Faizi