Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1319710rwi; Wed, 26 Oct 2022 13:46:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4DwWTty8D8I7lWBMldYGLyURYEHIZHqi14yQPx+pokZLZ+giXx8wZH/dglhe9z3Tbk3+3d X-Received: by 2002:a17:902:9a07:b0:178:8024:1393 with SMTP id v7-20020a1709029a0700b0017880241393mr45825853plp.128.1666817175945; Wed, 26 Oct 2022 13:46:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666817175; cv=none; d=google.com; s=arc-20160816; b=kNX+rDB5ZyxeAbRvLnxyomNQplV3sS41VG3nnKpCWcpI/habT1gcU7Mr6bB6X2Rxq7 IgX3f72KveBH/9K7B+g8yCtTG/wJ8Svjjl1K0eYkIK92LzOLyDiKfU7sLFyorSCGI6vj +iZJI3/2RCT+rMtTZEzX7LEOOa1pEJQbzNZe3OMSlRwNgvgPv1U2+bT+0AvQflP1HKxq 5Hnf+8EqdDePOargvVfNxDsXT2CDdO4pB80DLQVpFcqe7kpHIa7fzgI0wxgDEygarhZ+ ldZFxI5lb3c5atfHBoKRjsRCXLgMswDLrBcQxMUUxj3bMekQfC/6AqVkYnCPmgg3QxHv 2HBQ== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=y3QOUDgYngmCo+UG7RlA975E92sYeW/Y+T89Hi+jE84=; b=NRApuwiNriNqaBb7mr5urm7yNAlHxGHKxp0mPFmks6c24H9EaEvEJhHn7wNSEGbVqK hD4r+QYjxjcDlHVac98/GnAjvJwnIwulvGRWtbO509rpYnhZG8lh25xJxgTL75SJt0XO szEphiU++uzhuXSqeIm8NvbbAV1ZOvINwvUuNskPBdGMR/zFu+ETEWMKQLmq9YWI4tdD Er48+ygzptxhuDmrZ9uljGEQCBJ5vn+5w8Pqs+BD7zMPeHBz0MoybqgovhavqhD+waeD r7DTB1pmj10Kx3H85eQ63I3CzkCmYwf7TV8j06DfKt0mEK2jb5Z9nuGKApzbczWsvSn6 iuyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WECIVBev; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m18-20020a170902db1200b0017f5ea214a8si8827513plx.462.2022.10.26.13.46.03; Wed, 26 Oct 2022 13:46:15 -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=@intel.com header.s=Intel header.b=WECIVBev; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234320AbiJZUmI (ORCPT + 99 others); Wed, 26 Oct 2022 16:42:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233760AbiJZUmF (ORCPT ); Wed, 26 Oct 2022 16:42:05 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7951F9F35E; Wed, 26 Oct 2022 13:42:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666816924; x=1698352924; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=Xeuc8kocyPNzVa+dllrDgz0yAMqfPDA2pAu02G6CzG0=; b=WECIVBevJ3BQ9kkrdWZIVzuNXCdcF7sgUL3jyXJlt7vW1WKtWUJ4bN2w fhOSS81vX2PMlUI5tEXXiONsnjGUs+F0Cf9J507CkzIza47wG8WpZPO8e 0M5yQjz1+J+QF7rCHI5EOtWkToFRrSAuw1LQl3ZGVGgiW1XaWIoYBHmnV fvRrmgzMK3wr9mavdUvZFSIQ6gFpA6/eZb5vfZryAWgJ/g3TlL4QgIEia Sa+civQQpC3FmbTJg7z0XC8NpH6AaGhlnmegL3ez/3UunAIzc94IURidk oJd2iu2RIvbCWc95rHNl3zKeHuNBvjp6ULD6ogm3dcRL9f9de7Sa/97W6 A==; X-IronPort-AV: E=McAfee;i="6500,9779,10512"; a="288450855" X-IronPort-AV: E=Sophos;i="5.95,215,1661842800"; d="scan'208";a="288450855" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2022 13:42:04 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10512"; a="610103334" X-IronPort-AV: E=Sophos;i="5.95,215,1661842800"; d="scan'208";a="610103334" Received: from bcoan-mobl2.amr.corp.intel.com (HELO [10.209.189.197]) ([10.209.189.197]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2022 13:42:03 -0700 Message-ID: <37b7c58c-a82d-257f-27d8-a4d61bc3677a@linux.intel.com> Date: Wed, 26 Oct 2022 15:38:20 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.2.2 Subject: Re: [PATCH v2 1/9] ASoC: qdsp6: audioreach: topology use idr_alloc_u32 Content-Language: en-US To: Srinivas Kandagatla , broonie@kernel.org Cc: alsa-devel@alsa-project.org, lgirdwood@gmail.com, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, tiwai@suse.com, bgoswami@quicinc.com References: <20221021165207.13220-1-srinivas.kandagatla@linaro.org> <20221021165207.13220-2-srinivas.kandagatla@linaro.org> <35f55696-c4c5-1f00-dc7e-b5c7dcf0a091@linux.intel.com> <4d2fcabe-291a-9f8d-ca48-eaf52e00695e@linaro.org> From: Pierre-Louis Bossart In-Reply-To: <4d2fcabe-291a-9f8d-ca48-eaf52e00695e@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED 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 10/26/22 04:19, Srinivas Kandagatla wrote: > Thanks Pierre, > > On 21/10/2022 18:09, Pierre-Louis Bossart wrote: >> >> >> On 10/21/22 11:51, Srinivas Kandagatla wrote: >>> SubGraph and Module Instance ids take 32 bits, so use idr_alloc_u32 >>> instead of idr_alloc to able to accomdate valid ranges. >> >> typo: accommodate. >> > will fix it in next version > >> Also worth checking >> https://www.kernel.org/doc/html/latest/core-api/idr.html >> "The IDR interface is deprecated; please use the XArray instead." > Thanks for this hit, this looks really good and specially lookups > without Locking, this could cleanup the code a bit. > > Having said that I would still like this patch go as it is with idr for > now, and I can plan to rework on converting idr to xa later, as there > are few more Qcom Audio drivers that have usage of idr. sounds good.