Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp324927imn; Thu, 28 Jul 2022 01:36:06 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vtxBII/RbboGFfohgKXcuoRcJuraIqvcCIS7gZHOgxbYHvwlyZBRm3ceuIMV4Vdfy3Y3hw X-Received: by 2002:aa7:d795:0:b0:43c:eb00:fc77 with SMTP id s21-20020aa7d795000000b0043ceb00fc77mr1517867edq.284.1658997366392; Thu, 28 Jul 2022 01:36:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658997366; cv=none; d=google.com; s=arc-20160816; b=MK2y1oV8zteGvB8T/p3s2OUsPAShQYyhKeoYfzc3tvXwS+i5P/d3CVci0knWX4EF2E zI8HRkCmaXIOkNWOpdMxpgeNLry4Irip5oXwwNJ1b9YQOQvyO0GpiLAitTGSfKKFAkz/ Mo/iym8+MXVh4/6bIH64Gz+IBQoQ8KgjDPg4/kYnKQGctWN7aBwaEnBvUIypl+f0yibj T54h3kwzfzOuHkQOwXtnMbcdlSnE3WRPHc6qHHDIdAQfaZ0VY0wBIrn7Vep6rb0ZmB0H dmhmALU4BdHFuBZNeTe6SL85w6xeygktf+TRoMqtTvOUW/u1jZIYq06rrwv+dhroBkE+ aaqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=MBbhNed2Q1e72xDY0nRHhDox3gdIpeGi9NiK1B0zG/A=; b=xOQvhDbpDFerApj5HJyk3LMCfQ7vq+J46B3cDS4eyFpfhkAoi+N4mBm8pQ1he+1sqj lUh9ZzGVVqIJR0XhRTRQRF7BY5+HA1eKmJNf9fXd+HkndhVsXo9bBo0Kq3dt+DBv0BuQ B8GoBvK3rW015+tszfRZPm6xYGvxugzfgvRSdYycjPFnUHUaxPCAh19SpymA02DmhLLA mDPnaAfShS6M0KBmVak+uha/wpbBQtcCQsGnriZ4bR8+gZnl88SYBuJ72i3SF1xytmxy 17FZSLWSxBlv4W65JeYieul4eBoCzy/y6iyTZnWfk+l3BX3ZXIwrfN6MTB1K13VI5kiW 9U4w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b12-20020aa7c90c000000b0043a90a31070si272885edt.284.2022.07.28.01.35.42; Thu, 28 Jul 2022 01:36:06 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235134AbiG1IXZ (ORCPT + 99 others); Thu, 28 Jul 2022 04:23:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234381AbiG1IXX (ORCPT ); Thu, 28 Jul 2022 04:23:23 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5953D62487 for ; Thu, 28 Jul 2022 01:23:21 -0700 (PDT) Received: from mail-ed1-f41.google.com ([209.85.208.41]) by mrelayeu.kundenserver.de (mreue108 [213.165.67.113]) with ESMTPSA (Nemesis) id 1M7sM0-1oKqPd2tDW-0050zu for ; Thu, 28 Jul 2022 10:23:19 +0200 Received: by mail-ed1-f41.google.com with SMTP id w5so1195313edd.13 for ; Thu, 28 Jul 2022 01:23:19 -0700 (PDT) X-Gm-Message-State: AJIora+tDIWWZy3m4dtN7tp8z5Ewx1i5MINyoMxjBN6NyykigIIhBUf5 kubXUD4eCu95V0XL0pFJb/b0Wnf5JGKVOfMsHbU= X-Received: by 2002:a05:6402:26c2:b0:43b:e542:9f68 with SMTP id x2-20020a05640226c200b0043be5429f68mr23098858edd.227.1658996599300; Thu, 28 Jul 2022 01:23:19 -0700 (PDT) MIME-Version: 1.0 References: <1658681004-132191-1-git-send-email-john.garry@huawei.com> <25237c44-ebc4-fc9a-7c6f-3e990f968038@huawei.com> In-Reply-To: From: Arnd Bergmann Date: Thu, 28 Jul 2022 10:23:03 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/2] arm64 defconfig: Get faddr2line working To: John Garry Cc: Arnd Bergmann , Linux ARM , Olof Johansson , SoC Team , Linux Kernel Mailing List , Vinod Koul , Srinivas Kandagatla , Jonathan Marek Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:MFKyWuKq357W8a36FQwdz6/JBqPc86mUOWYp+SYvRHZNbxhjXcK O6gzMG+M5BWzm67CcP1B8dnYDl8UwdfZeiu1Ni8eWP2b+eUqH1iORHy92NK8+YOlGEoMhsi 986Zc3We31VARBhisSaWZhzBrelaAHSaxg93wudUhEKMk8nVWuo6a6VzSmxFNKhsi4eSub6 MvWj+F/5IgVZBf3Ff8kHg== X-UI-Out-Filterresults: notjunk:1;V03:K0:mh8BoqOWCOs=:BPnL2Uf0yb6K+IUPcc/kCd x3rZPCiJ31xxARV37GCTPeJ1C9/xOGuaMUViWQcGVh1aVuW7fLpn8Sx+hWfXOv09v+z2tEq+p 8JFAmomI0hD8GVHyMgA7tx9BgtyGbBgdngT1TZXCFWuUG5vUiGx02ej7umEU385S/zrreQnYG e67VQkkaxeMaGW5Rxa67v/bCvXTCrVEx8O4KbQJQ73mFz31C6lpwXhcPyvCpv+DS9nFy9jVJB lJU/684ZsA+CcM2VrsaA3qhpRKz8G2H71lp3Xh3mgmdYhv7uWhMAA5yoSUvDHjHp9zzhdVDri g1qEkktG5MYmsjbAXKA9PlBn3ylQmnrLp1mD9Zm8QvmTvYeVmwxV37p9IzxaR/CV6EGbBTunK o6HL7Bgx1DVBkp7mkmK58ZTf4GC8cUWfHKNusPyInrY8qp0+GxdfNFqUqfrE9ompXR5FEj32b 46sgOrER9RvMCPhQNQL7AI4xj+yp5n3MJ72ASqe91wZ9mDljJOB5CQ1EL2T20gVp1O5L/6B9Q W54B+/zWLe3xU58Qm4QntXWkjOmDZ2CDiziZ5UT4J7SBw2LvIT7RGi6Lri7dU9KI3dow5ScvK aqdqOc1FFLlN5kgQxWhDfQZV5F6YmegWfdZwHb/lBZYqtl6Qg488jr9RPpWqQmU5AlJ8Kxv70 FJDkfFExI3zN2fJngtLDkHZnAk5cPpTuSx15uwWuvd6Payi0GGnb3pd3Kyl0mjq0UobZwOxid wiYveaHc8ZKiX9i4IfLW3LCZXoiRLE1kcJcX1kfS1ANimEeFdneCAPZqlH1z7RuJIsaC9zahT YLoYjdvbtue/aE5tKSfHya8X5ySFbr19xEy8+GpygY9W39hwKXcngVKlEZLvhtDGVp+gIPZDd fkSkFK23s9tSXNbJZNcQ== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE 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 Thu, Jul 28, 2022 at 10:06 AM John Garry wrote: > > trim list Adding a few other people for slimbus. > On 25/07/2022 13:51, Arnd Bergmann wrote: > >>> CONFIG_SLIMBUS=m > >> Config 5bd773242f75 added a kconfig "imply" on config SLIMBUS from > >> config SOUNDWIRE_QCOM, and this happens to mean that we don't explicitly > >> require config SLIMBUS enabled in the defconfig. > > That 'imply' looks like it was added to solve a problem using the old 'imply' > > semantics that are not what this keyword does today. I suspect it's still > > broken when CONFIG=SOUNDWIRE_QCOM=y and CONFIG_SLIBMUS=m, > > and the correct fix is to use a dependency like > > > > depends on SLIMBUS || !SLIMBUS > > > > so the defconfig symbol should stay. > > > > JFYI, building for CONFIG_SOUNDWIRE_QCOM=y and CONFIG_SLIBMUS=m is ok. > The driver has a runtime check for CONFIG_SLIMBUS in qcom_swrm_probe(). > > That implementation seems consistent with guidance in > kconfig-language.rst - so do you think that there is still a problem? I see Vinod added the IS_REACHABLE() check, which makes it build, but I think both the 'imply' and the IS_REACHABLE() are mistakes here, as they are almost everywhere else. From what I understand, the driver can actually use two different back-ends, with slimbus being one of them. In the configuration with CONFIG_SOUNDWIRE_QCOM=y and CONFIG_SLIBMUS=m, I think you can end up with a slimbus device being detected at runtime, which gets passed to the built-in qcom driver, but that driver then misdetects the bus because it is not linked against the slimbus module. It then uses the incorrect code path, causing unintended behavior. The 'depends on SLIMBUS || !SLIMBUS' dependency would completely avoid this issue and make the driver work correctly in each configuration. Arnd