Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp365306rdb; Thu, 5 Oct 2023 08:09:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFhW5ORPeHrg/m5ER6WccMUBc7b0Uzuvv9jG/DPZ/wbzSL4Ob0Jyes/cTr2HIg277PboR55 X-Received: by 2002:a05:6a21:a5a7:b0:15d:721e:44d5 with SMTP id gd39-20020a056a21a5a700b0015d721e44d5mr6768372pzc.49.1696518552590; Thu, 05 Oct 2023 08:09:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696518552; cv=pass; d=google.com; s=arc-20160816; b=KIfQ5AiKcISgXVPGBLM7NfEIW5Oa2JUce024OUZy26N9tuTjtoN2P57tyHLCgFMZ4E tWVGfY/v4IjUjCxoY0EH5/AV3xNXLSscZxeD3IgcuJo1xlQre2F8nBmhaYfARDFKdAAt S4/QSvRVydIZhYnZWyAvoi4bSQN0LFRf8eeY82VQqemHhzwOp1MYXnDOnSGCpk+gKiSm cyfu9tDKe4YI7qomZMmi8g8SVV00y+N0pv8vfZuxanKkNJR9Diwz4gPQRY7JzqoNoxZF eW0dOY/3ZpsNhsomWE7woNo1ifPByWzOysQpmgUnBOjhu2t47gug431rUqB58xOQtbct QLfA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:references:cc:to:from:content-language:subject :user-agent:date:message-id:dkim-signature; bh=UzmTStI14H8mc6nWA6voZyNOvYrkqmW0XC4GJ5wW1LA=; fh=J8NYYj0SEZX7tqmLyAOjnRVpj0tx7nvEVD6UDrZEyeo=; b=mnB2eUo+Bu5rC/0D570rsg5hqXRGbow37C8q1zO8mdrFu4zkOC+8AQVWqxXiMpvAfa UFBFXwKnak1pwHGdjMEsGhrp5QjuiZssBE4tex8S7j+d1mRV9NdBOB/C4+PpASlleqij 5YqZRfwLbRjjwsAuDDyWtUKR4E4pH88CbMc5Ng8fj0mQFILN4LRck58n/fO72lvLJrOc wLMMY91ofEjwguzYHRI65GbIFt82Uytx49KWBgwjmygedWdm1wR1v/Fzraw1btMbVfGv GWeZRq3S1WOVu70XHPL4bewZ04NeAnUBvn2xC05klV02JUKpVuK2mZObKXt+CW097VBT 197Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=qjo4rZIf; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id bx19-20020a056a00429300b00690feb23e3esi1550781pfb.17.2023.10.05.08.09.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 08:09:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=qjo4rZIf; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id D40BE81C3658; Thu, 5 Oct 2023 08:09:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230031AbjJEPIV (ORCPT + 99 others); Thu, 5 Oct 2023 11:08:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233471AbjJEPHD (ORCPT ); Thu, 5 Oct 2023 11:07:03 -0400 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on20612.outbound.protection.outlook.com [IPv6:2a01:111:f400:7eb2::612]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7201927B18; Thu, 5 Oct 2023 06:38:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RSTTp4Enkd9V3ItoVf+lFAzVX3xa4gUw3csJcuSAAMr3XTJJn4T6pjYt6dB29sBdvgCxYbCiHJQqAAfopHaW84PG22+1LEwrTn5h71RkS8KoMtoT6r8mrdABFybDwb6RPH15VKoinwdq5Jhi8rkr+3XtUsNryT0tbwq8IVoW9GhSe6SB/0zHTk9QcBP2Js+1HylILqIAedALvnxcu8gmhFt6gUWQh6mkL5r35semsc3TSGo8YNxDY0gY34SCn8woomGvDwtgYsDEZQJXsYCPVG2rDKVKnBx9Gv4CkIZBAO9L4BHb+if1YQ7SnC84cTQuc1Taqt2TrB0NKWEGga44gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UzmTStI14H8mc6nWA6voZyNOvYrkqmW0XC4GJ5wW1LA=; b=Wov5OrkYvOSjOm7qQQ5Y/MGcJHx4L1neS4CL4XIkBVipD1a9cCNTtoz2tT0/r0vBz45ePCd7EoKTR9vFiKBDxPPx9txphz0tj2/wq2dy8D4/ICp0NbNCRQrIKUrfIARFVBqy0Xq9fN093E2xZ/OzMRFW4PJ0I6b+Gk4JWuuuI0XX3pFbbHj2YOXp4yOdyj+ZoYzOWrOIDCBHykLdMkmCJ/0cQMN6afKSQ2ORgLsMQQOYMjUb645X9ztcGEcGz1PKOJfQdi4vOUHG1cqixEI1bL7jOxMlq9eHcqL+LlHd/MCj5tMldFcLQe0ECpKNrL6KZ60dUxIf2SXAQxP++Cx+gA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UzmTStI14H8mc6nWA6voZyNOvYrkqmW0XC4GJ5wW1LA=; b=qjo4rZIfjruFgGvGzlaNXqgxW024mVfpZxLfKgSqlXYVSbSFYCl7FNuVNidKe4Qc1wigoqvjdEvevhkLjhgVJbnyJ3S8G7fxTk4pbDryI2D0QSn8iEawy6sptXBCU24JYvPu9VSafsFYmuGz2doUOxgQe3Cl+1wHdy3C1uFbK5U= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from DM6PR12MB4123.namprd12.prod.outlook.com (2603:10b6:5:21f::23) by PH8PR12MB6819.namprd12.prod.outlook.com (2603:10b6:510:1ca::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.26; Thu, 5 Oct 2023 13:38:00 +0000 Received: from DM6PR12MB4123.namprd12.prod.outlook.com ([fe80::1ec:3e1e:98f4:b1b9]) by DM6PR12MB4123.namprd12.prod.outlook.com ([fe80::1ec:3e1e:98f4:b1b9%7]) with mapi id 15.20.6838.029; Thu, 5 Oct 2023 13:38:00 +0000 Message-ID: <1c8e4e94-8781-7126-2ded-e4198db4129e@amd.com> Date: Thu, 5 Oct 2023 19:07:46 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH] soundwire: fix initializing sysfs for same devices on different buses Content-Language: en-US From: "Mukunda,Vijendar" To: Pierre-Louis Bossart , Mark Brown Cc: Greg Kroah-Hartman , Krzysztof Kozlowski , Vinod Koul , Bard Liao , Sanyog Kale , Philippe Ombredanne , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Mastan Katragadda , "Dommati, Sunil-kumar" , "Hiregoudar, Basavaraj" , "kondaveeti, Arungopal" References: <20231004130243.493617-1-krzysztof.kozlowski@linaro.org> <6628a5f6-ed22-4039-b5c2-2301c05c7e3e@linux.intel.com> <2023100453-perfected-palm-3503@gregkh> <624b044a-1f0f-4961-8b57-cb5346e7b0d3@linux.intel.com> <2023100452-craziness-unpopular-7d97@gregkh> <04c5911a-a894-44b3-9f0e-fe9e6de203f2@linux.intel.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: PN3PR01CA0089.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:9a::7) To DM6PR12MB4123.namprd12.prod.outlook.com (2603:10b6:5:21f::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR12MB4123:EE_|PH8PR12MB6819:EE_ X-MS-Office365-Filtering-Correlation-Id: baf0e308-1e0d-48da-6cb1-08dbc5a84a5a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: g+HihGqKgzr6fYEOJwcDKbhI3FU5ziJU/txFw+cV4BZ9E6z7DSdbAgqXs1XIp77D74tWq+RxkDsmKW9G3d3vlxVpUoYMQWmonKtgKYM5lENuaLe6vBo8+9Ec7VtqnXchlgbn6Dz4X8Z4k7Xd2L+rE57Egv+CzgsnrYnHELEs21LbYRBN3Nsv0Ty2XS2nV16fCnxDZx312T+22LAiEnj4dR7qjIg1GUJhFYIkFnxLjEmon28DPSv9RKq714IubHIvlYFkIvFruO7+NRn2TzMlwP+8lt2xx1wYthIwhHONkq97MBAja2+Fg62h/Lf3Pgtc1gbSHKCUNMxCFuxwoU3yTDnWQuZHhoTTEdypsQD6Udi0WccJZCdnZq2VxlijP7OFUBD529ClvVxlzJLQJn+g5qhuvOok63hx4QXILdyJMKJ3AOad0su4bJCf1XVZvpSsVQJUM7hY02zB7IuWQbdYTTZXtBbDwtYcZ+CFma9s6/PMga/Ov3qCMEFxEbeMBPtMiTuVi4kkVXdicVXkMA/qYkuROYiGp3GvawdW9KvCyW9MtAWBv++vfHE5trKCQUVDctcOzu1gjrINPxkx4ITqucy4aRWSV17FYb5KHqnPQn7BVNmDfrjDb6TkM891Qaz0trd+S5bNvbWwrEw6OLxrKg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR12MB4123.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(376002)(366004)(136003)(39860400002)(396003)(230922051799003)(64100799003)(451199024)(1800799009)(186009)(66556008)(478600001)(54906003)(8676002)(4326008)(26005)(36756003)(316002)(66899024)(2616005)(41300700001)(966005)(86362001)(6486002)(6506007)(6512007)(6666004)(38100700002)(31696002)(53546011)(110136005)(66476007)(66946007)(2906002)(7416002)(8936002)(5660300002)(31686004)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?bmFrVzljUi9RNGlaWXkrakRMemc0OTFsYndWQlFFb1lid2FaMWorSEY0VHZI?= =?utf-8?B?dGlDdGJMYzIwNVE4WXVPZDZ3Y2U1VjdiaVZCWURjbExUOGU3a3N0UEh3L0h3?= =?utf-8?B?eG0xSUZBRmdIRm8zeFJ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B?OFBhdDY5WkNzd3ZlOU1hTlhIdjRFMWhjcW9sOUNWb3g4dlVDcUlHWXhNNVBp?= =?utf-8?B?cnVIKzJrU25YblltQ0JNVHZMU3p3U0orcmF0UXFVbDhjYW5wbmZSZnQyVG5m?= =?utf-8?B?eGRiR2RIdDVVSFpDczFTbzg5V0pBbE1GS3lhQ2VibDB5WWJlWS9mZEQ1d01S?= =?utf-8?Q?/K3LN79cMxL20x3UFsp96EMON?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: baf0e308-1e0d-48da-6cb1-08dbc5a84a5a X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB4123.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2023 13:37:59.9308 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: MtwO4q7R+JKVlsafuOLSm3iN6LVQroxrWG2vRfyjrw53R6lPacraml3ACEHtTHRuGBEcGtbofbqeDDQFTkCBHQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB6819 X-Spam-Status: No, score=-5.1 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 05 Oct 2023 08:09:09 -0700 (PDT) On 05/10/23 18:08, Mukunda,Vijendar wrote: > On 05/10/23 17:54, Pierre-Louis Bossart wrote: >> >>> I think we keep circling on the differences between "Controller" and >>> "link" (aka bus). A Controller can have one or more links. A system can >>> have one or more controllers. >>> >>> Intel platforms have one controller and 4 or more links. >>> QCOM platforms have one or more controllers with one link each. >>> >>> I am not sure how this IDA-generated bus_id helps deal with these two >>> cases, since we can't really make any assumptions on how >>> controllers/links will be started and probed. >>> >>> What we are missing is a hierarchical controller/link definition, IOW a >>> controller_id should be given to the master by a higher level instead of >>> using an IDA. >> Tentative patches to introduce a 'controller_id' that's not an IDA are >> here: https://github.com/thesofproject/linux/pull/4616 >> >> Initial results are positive for Intel devices. it *should* work for >> other devices but I can't test. If folks at Linaro/Qualcomm and AMD can >> give it a try, that would be much appreciated. > Will test on AMD platforms and let you know the result. "soundwire: bus: introduce controller_id " patch  needs to be modified and controller id should be set to zero for amd platforms as we are populating multiple links under same controller id. > >> Thanks.