Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3707217imu; Mon, 14 Jan 2019 07:42:35 -0800 (PST) X-Google-Smtp-Source: ALg8bN51aUpsLl+wT7S4Hp/fIYXAM/+sUICcV34Q40I/EWEIscYLkGN5a+sEH5bf4ybOcgbBMx1K X-Received: by 2002:a63:b543:: with SMTP id u3mr23155801pgo.420.1547480555554; Mon, 14 Jan 2019 07:42:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547480555; cv=none; d=google.com; s=arc-20160816; b=y5Z3nObE0N0Sl8LCz/bB8a8p6ucbGxTB+ItM+OckZZx5c6I40sUDkVnw9fZlfJ03yl UQrC3AIF4JaPLVLPbhP+Eeyt08yKJWakcn18KeKDODKaBQ8C2YHhQ+2QtbOwFs1oRWMd tMFR0teXTtdDF6ZR0/YwOxPOK38vQOGyGkpJHHkxJpTiHJ6/ryEP1apEvdEDcziVbDRr BH7kMDj4qPUhs7UwqlAVX570XL6bBwOhp6J1AQt9UUmhFKdg6AVQpXGv6fLPNdt/JSP0 A09Og0l1aso1rJXhJ0qEJNomUF2jRUX4mbRednjHbfAn+0TUThQJHjMp6wNnJP5E4YIS SOLA== 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:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=gMigrPb8pR0AxC8GfE2yPCzrXJkgIFJMhP3ohvlxEqY=; b=p3A6ZD6hLEs+DiiABmt6AyEbBJOId667Yl45kMTSf1EIfps8nA7f/RegcOYKFBu+Hf zQk6Mo5Iwotfxk4F2oSJygCBG22F67oqiVNykJ4Xwqe4RcAQFVBgZpSJtVl9F/M76/vp FNshYVigwn2+JFdOXFZunPD/TvvLN3+7RVPo8kYdqDKVdxJnUOvdX9S1i/ZB0cjeq+ho OF9JHsE+T2R9UdOFkCEQ/1HiBY3+ig/yRLjLAtHtiEIJeejQB1B8Jufp/bReWQGPQlMQ ULb0nC48zcceUjvTO/sKQWLf1vUOkEIz3KwChfZj55a2fO5CWd+sWyxDyZUv4tS/2iJ9 Lunw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 2si603182pgj.104.2019.01.14.07.42.17; Mon, 14 Jan 2019 07:42:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726724AbfANPkU (ORCPT + 99 others); Mon, 14 Jan 2019 10:40:20 -0500 Received: from mga04.intel.com ([192.55.52.120]:7051 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726595AbfANPkU (ORCPT ); Mon, 14 Jan 2019 10:40:20 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Jan 2019 07:40:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,478,1539673200"; d="scan'208";a="116651876" Received: from mpietra-mobl.ger.corp.intel.com ([10.252.57.225]) by fmsmga008.fm.intel.com with ESMTP; 14 Jan 2019 07:40:16 -0800 Message-ID: <428430f50bc5bf51663736139541b1994cc37b6e.camel@linux.intel.com> Subject: Re: [alsa-devel] [PATCH] ASoC: soc-core: Fix null pointer dereference in soc_find_component From: Liam Girdwood To: Rohit kumar , Pierre-Louis Bossart Cc: rohkumar@qti.qualcomm.com, alsa-devel@alsa-project.org, bgoswami@codeaurora.org, vinod.koul@linaro.org, linux-kernel@vger.kernel.org, plai@codeaurora.org, tiwai@suse.com, lgirdwood@gmail.com, broonie@kernel.org, srinivas.kandagatla@linaro.org, asishb@codeaurora.org, Ajit Pandey Date: Mon, 14 Jan 2019 15:40:15 +0000 In-Reply-To: <5C39840A.7040005@codeaurora.org> References: <1547194442-1487-1-git-send-email-rohitkr@codeaurora.org> <4886ed21-65d2-159d-afcd-bb26dcde636e@linux.intel.com> <5C39840A.7040005@codeaurora.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.1-1build1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2019-01-12 at 11:37 +0530, Rohit kumar wrote: > On 1/12/2019 3:19 AM, Pierre-Louis Bossart wrote: > > > Thanks for the overnight fix. This update fixes the issue on my > > > Skylake XPS13 test device (blind testing since I don't understand > > > what the code does). > > > > > > Tested-by: Pierre-Louis Bossart > > > > I need to take this back, this set of changes (initial+fix) causes an > > error with our HDMI support > > > > [ 17.437684] sof-audio sof-audio: created machine bxt-pcm512x > > [ 17.585279] bxt-pcm512x bxt-pcm512x: ASoC: failed to init link iDisp1 > > [ 17.585639] bxt-pcm512x bxt-pcm512x: snd_soc_register_card failed -517 > > > > Removing your changes restores the functionality > > > Looks like we should revert generic implementation for defering probe > and move to call from machine driver as done in v1. > https://lore.kernel.org/patchwork/patch/1027560/ > https://lore.kernel.org/patchwork/patch/1027561/ > > @Mark, Do you have suggestion to refine current patch? > > Adding some traces I can see that the the platform name we use doesn't > > seem compatible with your logic. All the Intel boards used a constant > > platform name matching the PCI ID, see e.g. [1], which IIRC is used to > > bind components. Liam, do you recall in more details if this is really > > required? Sorry, I cant quite remember why the PCI ID was used for the platform name, I think it started with the SKL generation as previous generations used "baytrail- pcm" and "haswell-pcm" as platform names IIRC. Perhaps Vinod will know. The platform name is only used by SOF when over writing the "legacy" platform name e.g. "baytrail-pcm" would become "sof-audio" and this is only used for binding DAI links (so that all legacy machine drivers can be reused without modification). Liam