Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp117589pxa; Tue, 18 Aug 2020 18:00:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynEGSD2kiTD95RPNlP1UvJzwfW9Wop/1eYXzrDz5OAXd1XAgPjMOpHhYjObO9PK+CWm95y X-Received: by 2002:a17:906:960a:: with SMTP id s10mr22595625ejx.60.1597798822166; Tue, 18 Aug 2020 18:00:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597798822; cv=none; d=google.com; s=arc-20160816; b=DgfZaiDIIZr4RsVgLz28S8FnSVcrkpmgQH3sE2QfPT7ZkKGPG6KznaIGtkv/YCy1lO CBUGFtYyqLIDUvcKp2r4HuOKilAHOnJOKOcvUFtVQTP877/2IoXEvMGX6LDrY+b6APqn bOtmE+Q1IEv6jnl7RUpFQlRKjPMu08umY0HOp/k/ZDh5x8nsbfem7LlGaWI3fMgEbok7 RyaMyDJn9bU3OxCQxdmb7OkGxdMHSF3Bw7mb4jPHxeP52QSJsXmCMjsceXwdJ19Y7epj 2E34JK5hbkNYi0BeFU2mqVI+jioudl6ZPA9dWMqnGaRsQGCI1R4QShPhIFnQu9ldfcjN 28Nw== 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:autocrypt:from:references:cc:to:subject:dkim-signature; bh=g5lgfj+4RO+TuaNs0nmIhHGQBFQwwG2bIb9G0QE1JCg=; b=gX0C8h0nbgREyH3AkfCyYGIDFbewfFZOaGyBL7h1p7Z9wOi2Qe9HPqw+PxC4pVObw2 sp5LG1xLlCGaBHDgITtwAG8Mc6pjX0651R2Ge/AEtesbeNCXXDo2UfHPvMGWMKkfL5FD UHdRs7tkipE9R4Mw0SoH6VKCofOo/h2iKmvSGrIvnFJf9pVIgY3rFiqSHLEeIecm2T43 56zkA3K2ZktUyPWeJSYgv6BY1Oa+hps1nF/qSscox5xPGhXr2GcyI7l2FZiJaCAPjrUM 8WK/wU/kB8v6jAFIZCjqIhkfgJ+scQ79BSkWH0NHPimlUpgHYiXUSGmDLcbzFT7/5GrF E05Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=HMzV7C6H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z2si15809427eju.389.2020.08.18.17.59.56; Tue, 18 Aug 2020 18:00:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=HMzV7C6H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726469AbgHSA4x (ORCPT + 99 others); Tue, 18 Aug 2020 20:56:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725554AbgHSA4w (ORCPT ); Tue, 18 Aug 2020 20:56:52 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48328C061389 for ; Tue, 18 Aug 2020 17:56:52 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id j21so10544435pgi.9 for ; Tue, 18 Aug 2020 17:56:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=g5lgfj+4RO+TuaNs0nmIhHGQBFQwwG2bIb9G0QE1JCg=; b=HMzV7C6Ht943LwwQUEDfWJuZQuGmOvSnzyFGWv7k5trxoMNvDoWSpF46Q+uQMrF5uL a7aNxZk+lvJMHMG0XXfQvIJxybBglHZY72nGYl2UXj4PVKtzpvizAXPQ2ny89jUVK6IJ 2Jjjd+68JyrXVAlhm7i63NEoGSGrshxuRfhOK6PpgrYi/carkpEJAgSoBur9VUAk0ep0 DfaSMu/5m965G+E6CgHPNLK3VWm5hUt9aQ6JMvzosFYh8+d64PoFOGVDm/Ik9jEyvmBS eDlmmmW3rAEXCHloRbuvp7u+0FPGeG1BUVYas/lOjq4QA+Od+M8BGhvkW15yQQkQK8Hk x5Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=g5lgfj+4RO+TuaNs0nmIhHGQBFQwwG2bIb9G0QE1JCg=; b=dViItNAcIZ0uUmSN2ZIzVL2fPVYmGoVRyg5nknbtV9KbcCqb1FS5QFaRUt3a7hTx7w k05vsqQV087fBQTU2QpErMM+tLWXIfAQCRe0YJ4jzFr7GFd4X3UaqkWg6M8pWFMRdCEi HuIAl7/TV25Rji8smQPAXlywm6ZdHax1m+EOll526A8Qf8YnFhsjkFobbOqXk+WeIkcN h2dvXuegMdI/7NQwWRp/3yFVpdb73B2tgWcvZYJbfNjDO7D28n7SogDbcvqjP67QBcA2 t0gWtvKN2qkw5c9jdaStNX5z8w0ize5gToeDO55nNiv68qxPfvER3PvRvlhO453SEOjs +nZg== X-Gm-Message-State: AOAM533l0kYEVJu1LKgTnEsHniE0BdenY7Liv4fssVYF8yIoz4R8vDvB fHabRsB3/QeekqL9y/H4Iqc= X-Received: by 2002:a63:6a47:: with SMTP id f68mr14832697pgc.170.1597798611836; Tue, 18 Aug 2020 17:56:51 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id c15sm25617749pfo.115.2020.08.18.17.56.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 Aug 2020 17:56:50 -0700 (PDT) Subject: Re: [PATCH] Revert "seqlock: lockdep assert non-preemptibility on seqcount_t write" To: =?UTF-8?Q?Valdis_Kl=c4=93tnieks?= , Mark Starovoytov , Igor Russkikh , "David S. Miller" Cc: Greg KH , "Ahmed S. Darwish" , bigeasy@linutronix.de, linux-kernel@vger.kernel.org, mingo@redhat.com, paulmck@kernel.org, peterz@infradead.org, rostedt@goodmis.org, tglx@linutronix.de, will@kernel.org References: <20200810085954.GA1591892@kroah.com> <20200810095428.2602276-1-a.darwish@linutronix.de> <20200810100502.GA2406768@kroah.com> <169454.1597791078@turing-police> From: Guenter Roeck Autocrypt: addr=linux@roeck-us.net; keydata= xsFNBE6H1WcBEACu6jIcw5kZ5dGeJ7E7B2uweQR/4FGxH10/H1O1+ApmcQ9i87XdZQiB9cpN RYHA7RCEK2dh6dDccykQk3bC90xXMPg+O3R+C/SkwcnUak1UZaeK/SwQbq/t0tkMzYDRxfJ7 nyFiKxUehbNF3r9qlJgPqONwX5vJy4/GvDHdddSCxV41P/ejsZ8PykxyJs98UWhF54tGRWFl 7i1xvaDB9lN5WTLRKSO7wICuLiSz5WZHXMkyF4d+/O5ll7yz/o/JxK5vO/sduYDIlFTvBZDh gzaEtNf5tQjsjG4io8E0Yq0ViobLkS2RTNZT8ICq/Jmvl0SpbHRvYwa2DhNsK0YjHFQBB0FX IdhdUEzNefcNcYvqigJpdICoP2e4yJSyflHFO4dr0OrdnGLe1Zi/8Xo/2+M1dSSEt196rXaC kwu2KgIgmkRBb3cp2vIBBIIowU8W3qC1+w+RdMUrZxKGWJ3juwcgveJlzMpMZNyM1jobSXZ0 VHGMNJ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7k0Zy+6iRQ8G8ng QjsSqYJx8iAR8JRB7Gm2rQOMv8lSRdjva++GT0VLXtHULdlzg8VjDnFZ3lfz5PWEOeIMk7Rj trjv82EZtrhLuLjHRCaG50OOm0hwPSk1J64R8O3HjSLdertmw7eyAYOo4RuWJguYMg5DRnBk WkRwrSuCn7UG+qVWZeKEsFKFOkynOs3pVbcbq1pxbhk3TRWCGRU5JolI4ohy/7JV1TVbjiDI HP/aVnm6NC8of26P40Pg8EdAhajZnHHjA7FrJXsy3cyIGqvg9os4rNkUWmrCfLLsZDHD8FnU mDW4+i+XlNFUPUYMrIKi9joBhu18ssf5i5Q= Message-ID: Date: Tue, 18 Aug 2020 17:56:49 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <169454.1597791078@turing-police> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/18/20 3:51 PM, Valdis Klētnieks wrote: > On Mon, 10 Aug 2020 07:10:32 -0700, Guenter Roeck said: >>> ERROR: modpost: "__bad_udelay" [drivers/net/ethernet/aquantia/atlantic/atlantic.ko] undefined! >>> >> >> I don't think that is new. If anything, it is surprising that builds don't fail more >> widely because of it. AFAICS it was introduced back in 2018 (a hot 50-ms delay loop >> really isn't such a good idea). > > Well...it wasn't broken in next-20200720. A bit of poking with nm, > and building hw_atl/hw_atl_b0.s, it looks like the culprit is this commit: > > commit 8dcf2ad39fdb2d183b7bd4307c837713e3150b9a > Author: Mark Starovoytov > Date: Mon Jul 20 21:32:44 2020 +0300 > > net: atlantic: add hwmon getter for MAC temperature > > specifically this chunk around line 1634 of hw_atl/hw_atl_b0.c: > > > + err = readx_poll_timeout_atomic(hw_atl_b0_ts_ready_and_latch_high_get, > + self, val, val == 1, 10000U, 500000U); > > And doing a 'git revert' makes the build work.... > Nice catch. FWIW, there is no obvious reason why this would need to be atomic. The calling code does not set a lock, meaning there can be two (or more) callers entering this code. Weird, especially since the code looks like it would actually need a mutex to work correctly. It might be interesting to see what happens if there are, say, half a dozen scripts/processes trying to read the hwmon attribute introduced by this patch at the same time. Guenter