devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Amadeusz Sławiński" <amadeuszx.slawinski@linux.intel.com>
To: Greg KH <gregkh@linuxfoundation.org>, Takashi Iwai <tiwai@suse.de>
Cc: Wesley Cheng <quic_wcheng@quicinc.com>,
	srinivas.kandagatla@linaro.org, mathias.nyman@intel.com,
	perex@perex.cz, conor+dt@kernel.org, dmitry.torokhov@gmail.com,
	corbet@lwn.net, lgirdwood@gmail.com, tiwai@suse.com,
	krzk+dt@kernel.org, pierre-louis.bossart@linux.intel.com,
	Thinh.Nguyen@synopsys.com, broonie@kernel.org,
	bgoswami@quicinc.com, robh@kernel.org,
	linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
	linux-sound@vger.kernel.org, linux-input@vger.kernel.org,
	linux-usb@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	linux-doc@vger.kernel.org, alsa-devel@alsa-project.org,
	Mathias Nyman <mathias.nyman@linux.intel.com>
Subject: Re: [PATCH v29 01/33] xhci: support setting interrupt moderation IMOD for secondary interrupters
Date: Tue, 22 Oct 2024 17:04:07 +0200	[thread overview]
Message-ID: <8795c4ad-e3ac-47aa-92dd-f899042cefc0@linux.intel.com> (raw)
In-Reply-To: <2024102240-gag-famished-245c@gregkh>

On 10/22/2024 4:02 PM, Greg KH wrote:
> On Tue, Oct 22, 2024 at 03:56:44PM +0200, Takashi Iwai wrote:
>> On Fri, 18 Oct 2024 07:52:35 +0200,
>> Greg KH wrote:
>>>
>>> On Thu, Oct 17, 2024 at 05:07:12PM -0700, Wesley Cheng wrote:
>>>> Hi Greg,
>>>>
>>>> On 10/16/2024 11:40 PM, Greg KH wrote:
>>>>> On Tue, Oct 15, 2024 at 02:28:43PM -0700, Wesley Cheng wrote:
>>>>>> From: Mathias Nyman <mathias.nyman@linux.intel.com>
>>>>>>
>>>>>> Allow creators of xHCI secondary interrupters to specify the interrupt
>>>>>> moderation interval value in nanoseconds when creating the interrupter.
>>>>>>
>>>>>> If not sure what value to use then use the xhci driver default
>>>>>> xhci->imod_interval
>>>>>>
>>>>>> Suggested-by: Wesley Cheng <quic_wcheng@quicinc.com>
>>>>>> Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
>>>>>> Link: https://lore.kernel.org/r/20240905143300.1959279-13-mathias.nyman@linux.intel.com
>>>>>> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
>>>>>> ---
>>>>>>   drivers/usb/host/xhci-mem.c | 8 +++++++-
>>>>>>   drivers/usb/host/xhci.c     | 4 ++--
>>>>>>   drivers/usb/host/xhci.h     | 5 ++++-
>>>>>>   3 files changed, 13 insertions(+), 4 deletions(-)
>>>>> This is already in 6.12-rc1, which makes me confused as to what tree you
>>>>> made this series against.
>>>>
>>>> Sorry, I didn't fetch the latest changes from usb-next.
>>>
>>> It wasn't even usb-next, it was 6.12-rc1, so I don't know what tree you
>>> based this on :(
>>>
>>>> In this case, should I rebase and resbumit?
>>>
>>> As the series can't be applied as-is, probably.  But I think you might
>>> want to collect some acks from the sound people and xhci developers, as
>>> I can't do anything with this until they look at the changes.
>>
>> Honestly speaking, I couldn't follow fully the discussions about the
>> fundamental design -- IIRC, Pierre and others had concerns to the way
>> to manage the offload device via kcontrols.  Did we get consensus?
> 
> I don't think so.
> 
>> I believe that's the biggest obstacle in the audio side, i.e. what's
>> visible to users.  The kernel internals can be corrected at any time
>> later.
> 
> I would like to see that agreed on before I even look at the usb side.

My main concern is still that one USB audio device can be accessed via 
two different cards exposed in userspace. Usual USB one, and the one 
from device which does "offload". Suggested implementation achieves it 
by adding additional controls, which need to be set in specific way to 
achieve offload. Overall while I understand the mechanism, I'm not 
exactly convinced that it is the best way from end user point of view.

"Implementation" part in Documentation added in patch 19 shows how it 
looks in userspace now.

If you don't mind two sound cards being used to access same piece of HW, 
current implementation looks ok to me.

See also:
https://lore.kernel.org/linux-sound/75ffde3a-7fef-4c15-bfc8-87756e1c3f11@linux.intel.com/
where I described how I would prefer it to look.

  reply	other threads:[~2024-10-22 15:04 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-15 21:28 [PATCH v29 00/33] Introduce QC USB SND audio offloading support Wesley Cheng
2024-10-15 21:28 ` [PATCH v29 01/33] xhci: support setting interrupt moderation IMOD for secondary interrupters Wesley Cheng
2024-10-17  6:40   ` Greg KH
2024-10-18  0:07     ` Wesley Cheng
2024-10-18  5:52       ` Greg KH
2024-10-22 13:56         ` Takashi Iwai
2024-10-22 14:02           ` Greg KH
2024-10-22 15:04             ` Amadeusz Sławiński [this message]
2024-10-28 18:12               ` Wesley Cheng
2024-10-15 21:28 ` [PATCH v29 02/33] xhci: add helper to stop endpoint and wait for completion Wesley Cheng
2024-10-15 21:28 ` [PATCH v29 03/33] usb: host: xhci: Repurpose event handler for skipping interrupter events Wesley Cheng
2024-10-15 21:28 ` [PATCH v29 04/33] xhci: sideband: add initial api to register a sideband entity Wesley Cheng
2024-10-25 23:22   ` Thinh Nguyen
2024-10-29 18:58     ` Wesley Cheng
2024-10-31  0:49       ` Wesley Cheng
2024-10-15 21:28 ` [PATCH v29 05/33] usb: xhci: xhci-sideband: Set IMOD for xHCI sideband clients Wesley Cheng
2024-10-15 21:28 ` [PATCH v29 06/33] usb: host: xhci-mem: Cleanup pending secondary event ring events Wesley Cheng
2024-10-15 21:28 ` [PATCH v29 07/33] usb: host: xhci-mem: Allow for interrupter clients to choose specific index Wesley Cheng
2024-10-15 21:28 ` [PATCH v29 08/33] usb: host: xhci-plat: Set XHCI max interrupters if property is present Wesley Cheng
2024-10-15 21:28 ` [PATCH v29 09/33] usb: dwc3: Specify maximum number of XHCI interrupters Wesley Cheng
2024-10-15 21:28 ` [PATCH v29 10/33] ALSA: Add USB audio device jack type Wesley Cheng
2024-10-15 21:28 ` [PATCH v29 11/33] ALSA: usb-audio: Export USB SND APIs for modules Wesley Cheng
2024-10-15 21:28 ` [PATCH v29 12/33] ALSA: usb-audio: Check for support for requested audio format Wesley Cheng
2024-10-15 21:28 ` [PATCH v29 13/33] ALSA: usb-audio: Save UAC sample size information Wesley Cheng
2024-10-15 21:28 ` [PATCH v29 14/33] ALSA: usb-audio: Prevent starting of audio stream if in use Wesley Cheng
2024-10-15 21:28 ` [PATCH v29 15/33] ASoC: Add SOC USB APIs for adding an USB backend Wesley Cheng
2024-10-15 21:28 ` [PATCH v29 16/33] ASoC: usb: Add PCM format check API for " Wesley Cheng
2024-10-15 21:28 ` [PATCH v29 17/33] ASoC: usb: Create SOC USB SND jack kcontrol Wesley Cheng
2024-10-15 21:29 ` [PATCH v29 18/33] ASoC: usb: Fetch ASoC card and pcm device information Wesley Cheng
2024-10-15 21:29 ` [PATCH v29 19/33] ASoC: doc: Add documentation for SOC USB Wesley Cheng
2024-10-15 21:29 ` [PATCH v29 20/33] ASoC: dt-bindings: qcom,q6dsp-lpass-ports: Add USB_RX port Wesley Cheng
2024-10-15 21:29 ` [PATCH v29 21/33] ASoC: dt-bindings: Update example for enabling USB offload on SM8250 Wesley Cheng
2024-10-15 21:29 ` [PATCH v29 22/33] ASoC: qcom: qdsp6: Introduce USB AFE port to q6dsp Wesley Cheng
2024-10-15 21:29 ` [PATCH v29 23/33] ASoC: qcom: qdsp6: q6afe: Increase APR timeout Wesley Cheng
2024-10-15 21:29 ` [PATCH v29 24/33] ASoC: qcom: qdsp6: Add USB backend ASoC driver for Q6 Wesley Cheng
2024-10-15 21:29 ` [PATCH v29 25/33] ASoC: qcom: qdsp6: Add headphone jack for offload connection status Wesley Cheng
2024-10-15 21:29 ` [PATCH v29 26/33] ASoC: qcom: qdsp6: Fetch USB offload mapped card and PCM device Wesley Cheng
2024-10-15 21:29 ` [PATCH v29 27/33] ALSA: usb-audio: Introduce USB SND platform op callbacks Wesley Cheng
2024-10-15 21:29 ` [PATCH v29 28/33] ALSA: usb-audio: qcom: Add USB QMI definitions Wesley Cheng
2024-10-15 21:29 ` [PATCH v29 29/33] ALSA: usb-audio: qcom: Introduce QC USB SND offloading support Wesley Cheng
2024-10-15 21:29 ` [PATCH v29 30/33] ALSA: usb-audio: qcom: Don't allow USB offload path if PCM device is in use Wesley Cheng
2024-10-15 21:29 ` [PATCH v29 31/33] ALSA: usb-audio: Add USB offload route kcontrol Wesley Cheng
2024-10-15 21:29 ` [PATCH v29 32/33] ALSA: usb-audio: Allow for rediscovery of connected USB SND devices Wesley Cheng
2024-10-15 21:29 ` [PATCH v29 33/33] ASoC: usb: Rediscover USB SND devices on USB port add Wesley Cheng
2024-10-18 19:42 ` [PATCH v29 00/33] Introduce QC USB SND audio offloading support Wesley Cheng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8795c4ad-e3ac-47aa-92dd-f899042cefc0@linux.intel.com \
    --to=amadeuszx.slawinski@linux.intel.com \
    --cc=Thinh.Nguyen@synopsys.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=bgoswami@quicinc.com \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=corbet@lwn.net \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=krzk+dt@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=mathias.nyman@intel.com \
    --cc=mathias.nyman@linux.intel.com \
    --cc=perex@perex.cz \
    --cc=pierre-louis.bossart@linux.intel.com \
    --cc=quic_wcheng@quicinc.com \
    --cc=robh@kernel.org \
    --cc=srinivas.kandagatla@linaro.org \
    --cc=tiwai@suse.com \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).