Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1005080pxa; Fri, 28 Aug 2020 00:31:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlyJhbyoe3oYiuxXHjzIaHhoMt8+SmT4ZBDokxk5wyH0vWUcBFOPX97DUDhBdVbuitIyz1 X-Received: by 2002:a05:6402:342:: with SMTP id r2mr510560edw.353.1598599873545; Fri, 28 Aug 2020 00:31:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598599873; cv=none; d=google.com; s=arc-20160816; b=YFDfjshstuk8+h81ELB+edtietqZXXl2gUc2DRnrMQyH/aklMLRqLllSqC53eri7GM xFrzetblS1/fgbXFpEcgmIurQ+c612sziJc5Ty8wito3dUqZtMVFEUpSB6Ct1I5joJB7 22lPkb56LPp/gsJdHWXfmaP3oq3oy2epTSrAKOFExspPIA5kRQGVjtCDSweUQHqfe8eT fdwoKBPILdSFVlJkLiiW3LyCQhATVXTJmgn5rY8ZAc2oJAlc+lFBgIKt8y2D1X0ziVhQ 4bf+GCWtTPbVqEcus2pQ/qaSQGQ7tgnDxdW5dPGQGwLeei4UZmTd3gr1hVBdZnurPamc /U6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=KTuY7PEfjp8KDZj8N0WAmaV1aTqdTWNUd2F+1Zs+jXU=; b=HfGCu1U3MiWCGrlOpf9oy88FwK2kkZuG3ufonRrfjmkwM03EczF07CySx7gWbGgYNq 5pwV6/KsaPYsnlul6de+V3sI/FRxUqR7YB89vr31wAxB12fSmhUDw/3LuOYNbi0HZIlF 5/6NYUXOW2Cx6fN7ZCiXNwdft+uhSLjyVVdF1c4x3HPPcCv/Q8uhkVxCkRTje4H8E9lU jOwiPVWCLUDgWJmoMw10KcUqz4XRjIjLMHI0P79o0xBduQJx6MuR4P90ADf1s5W3Ml18 fomBvOFJfvsGlIdvfIigiFJ4Uv8qIw/bCaE1Lq00QTvqhFU8gXC2V4bgpcQ7fR0gNHKZ AV8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JAD8CL0E; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jx6si114383ejb.260.2020.08.28.00.30.50; Fri, 28 Aug 2020 00:31:13 -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=pass header.i=@kernel.org header.s=default header.b=JAD8CL0E; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728001AbgH1H1s (ORCPT + 99 others); Fri, 28 Aug 2020 03:27:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:35710 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726500AbgH1H1r (ORCPT ); Fri, 28 Aug 2020 03:27:47 -0400 Received: from localhost (unknown [122.171.38.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3E4A1208CA; Fri, 28 Aug 2020 07:27:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598599667; bh=ZKgBgkPLZoJc/kStyrmzO8ZmcG3Mtvo7x+SL2dAs6h4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JAD8CL0Erh/teDxbTuuqQKHrcaC4IOjBehDT+dOCTzkSzWeRm6aLY/L0GxdYa0VnE umaTSwvQm7Jz3t9C7KjMKDt1NSAEiLqpHxe2pHdHW/GGem0ordiP4IKnZlBnVwoZOC G6rH4GRVGr2R2TSr3mFocrivVjQ7KYGo09mAQc94= Date: Fri, 28 Aug 2020 12:57:42 +0530 From: Vinod Koul To: Pierre-Louis Bossart Cc: Bard Liao , alsa-devel@alsa-project.org, tiwai@suse.de, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, ranjani.sridharan@linux.intel.com, hui.wang@canonical.com, broonie@kernel.org, srinivas.kandagatla@linaro.org, jank@cadence.com, mengdong.lin@intel.com, sanyog.r.kale@intel.com, rander.wang@linux.intel.com, bard.liao@intel.com Subject: Re: [PATCH 05/11] soundwire: bus: update multi-link definition with hw sync details Message-ID: <20200828072742.GL2639@vkoul-mobl> References: <20200818024120.20721-1-yung-chuan.liao@linux.intel.com> <20200818024120.20721-6-yung-chuan.liao@linux.intel.com> <20200826094420.GA2639@vkoul-mobl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26-08-20, 09:09, Pierre-Louis Bossart wrote: > > > > > + * @hw_sync_min_links: Number of links used by a stream above which > > > + * hardware-based synchronization is required. This value is only > > > + * meaningful if multi_link is set. If set to 1, hardware-based > > > + * synchronization will be used even if a stream only uses a single > > > + * SoundWire segment. > > > > Soundwire spec does not say anything about multi-link so this is left to > > implementer. Assuming that value of 1 would mean hw based sync will > > be used even for single stream does not make sense in generic terms. > > Maybe yes for Intel but may not be true for everyone? > > hw-based sync is required for Intel even for single stream. It's been part > of the recommended programming flows since the beginning but ignored so far. > > That said, this value is set by each master implementation, no one forces > non-Intel users to implement an Intel-specific requirement. > > > We already use m_rt_count in code for this, so the question is why is > > that not sufficient? > > Because as you rightly said above, Intel requires the hw_sync to be used > even for single stream, but we didn't want others to be forced to use the > hw-sync for single stream. the m_rt_count is not sufficient for Intel. > > I think we are in agreement on not forcing everyone to follow what is > required by Intel, and that's precisely why we added this setting. If you > set it to two you would only use hw_sync when two masters are used. Okay, it would be better if we move it to intel driver, but I see it may not be trivial, so lets go with this approach. -- ~Vinod