From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0937F38F23C for ; Thu, 26 Feb 2026 07:35:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772091325; cv=none; b=OWTemjbqLR2sDgjQNy4DRN7enKMMudYgnKHzKrzZwHTFW23T6jQQMZ7EVzJLa1QFvBAIGdPnv1HN4OtBYysq3OmxvpRagwnwcycX80ewuIDW0Nfng+8BuNKXVIfh4jiXKl7KJx/NJvPqht9B9Um4XObEz9TKziSqTe6apw4cDDA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772091325; c=relaxed/simple; bh=GRpChhkibPnE81Vs5tSKu9WYmNq2s8Hfhl8XfvSpVDc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=G/Sd57kM5K2VtLgmYnPRtjUrCWqE1o/Jh/nAn3FhDcekQTUg6FAzGBs0TiLlUFDDEU9japKgAo426sTKWSFATpShwgsTCMJ1qkeanxxWmDlJUIfwd07La2s4umUPI6soT5bppigg9sl/qZGWD5PK2Antsb3qWt/zhyTRqe9fDp4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ir9n3OMG; arc=none smtp.client-ip=209.85.210.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ir9n3OMG" Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-8230f2140beso1068471b3a.1 for ; Wed, 25 Feb 2026 23:35:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772091323; x=1772696123; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GjwWk+G+/TUPJF2k6R6TFJ4vHNubRr+a3SM993Y7NM0=; b=ir9n3OMGi0UzxXWk0xUWcBH79lIolB/zhsMTzRO0BKt4vs+mgY1+dLJv1V9hsZRK4Y dwsKKUzadAzbK75kUFuVLFbK01i2thEein6A7TiL40SZyChyKit1xgZvPOpVuGGa9Eti bjd3AwflJLpzn6puh6q2mphLRVyUi0wGe5Ei44ULyVX8nfSr2TJb8y4zP5ncADPf9Kbx 15TjLSZpRqH64WB/FR3OnTElE4eLUf5gBfzMV6VvCW/EpV585vsf6FrRIqY89YmgBlSX SIEz3AiVPueOj/MjssHPcz3oAFd/7xDROy9zJoVtK1tJWp4y/a0HaEMy0mbxOwrZpnzY TZfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772091323; x=1772696123; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=GjwWk+G+/TUPJF2k6R6TFJ4vHNubRr+a3SM993Y7NM0=; b=qblmvjK3m1rh3UrabRWsGPp1OHGVhO42CNiVgS5FilGZ0cFCdy84AIhgoYB013c5MW oH+Zq9ia2z4x4JZ2nI8Lig1jpc8FOKblNaWsfgnaDAQdy2Y6JAhOtPAHYr4O3plUVDtw y54aZ/KfOaMWAL7Cj4LnY3slTSFVuyZ7e0QfkWRuMXz7KiOm1/kM3r5a4MCzOG0Z7zmN 3TkNiJcZxfsBXK80uV3BcTv748I/nMODxFDHNweWGGYGO2NX4CsK4AzctymZ7Lr1yuJ1 1ydMDKdqFM+T10IrY4WKzgReDTnXJBwCsag6qw7EEKkzgVHSVMgBOUZD/zgC+8SBTefH EtZQ== X-Forwarded-Encrypted: i=1; AJvYcCVMFXRuL8AUILSfxvn+S3DaHpOhe6EIKlvHOFo3gYRHgDJMUz9InKF8KP8xDlBa3XtAOG7ZcDPpwE1ZL0w=@vger.kernel.org X-Gm-Message-State: AOJu0Yxy1H9PXKeEgspS0FRU50rVlVt7BYswCd3QF1l9AoyT0tnXK5gV TaMDFO6SgwhbUl9ku8JFVzezTNPL74ait9zOaNTcdrw9op3QJmZwwjaq X-Gm-Gg: ATEYQzxqSQ2Of51kXIfYFqVvBWw4s9RwnBCg/O6qi19CjCyDy/7xcllDFlzTbKtmG/w AmSHCNzk9b+dgeuPlajBdUAGVMoWiqV9WPP/gj44EtWXmyF0qyQxcUJRDYO6ysC+MDIXVpz9xHa FQruULKUnU4SAlXAfV5rXQs+tm45ajWzODpvFkbyPiwy1pHahQfpO1/K2bOUeDX5rb8+uOXSEDF fQfgp6e0qeTZzdNWN8avRuN3oDNv2HsNjjSdx9MWKWSetf6oE/p4dg4FFeCKCcHspsU5mwmxVsi RPT8EZx05A9c/3vFWyYUiz1NYXNkx6hTTETm0GJWktZFOfC5zMWvOzlybG2T8/NQe4bnQgm4idV EGBlTM1gMjOF1qSP0ENE8ssjJt46JsJkpFY78YpD84T2UmmfYpAjjaFvX/3pzthfFCo/tcIVOpg SkeJBet/0bEZP4A6iTa7QqFl+y X-Received: by 2002:a17:90b:1f8d:b0:352:d933:5574 with SMTP id 98e67ed59e1d1-359388660e4mr1649107a91.9.1772091323293; Wed, 25 Feb 2026 23:35:23 -0800 (PST) Received: from bsp.. ([2401:4900:52be:501d:b08a:5e82:d282:1ddb]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-359130712bcsm2030763a91.7.2026.02.25.23.35.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Feb 2026 23:35:22 -0800 (PST) From: Rahul Navale To: Folker Schwesinger Cc: Rahul Navale , dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, vkoul@kernel.org, Frank.Li@kernel.org, michal.simek@amd.com, suraj.gupta2@amd.com, thomas.gessler@brueckmann-gmbh.de, radhey.shyam.pandey@amd.com, tomi.valkeinen@ideasonboard.com, rahulnavale04@gmail.com, marex@nabladev.com, marex@denx.de Subject: Re: [RFC PATCH] dmaengine: xilinx_dma: Fix per-channel direction reporting via device_caps Date: Thu, 26 Feb 2026 13:05:10 +0530 Message-ID: <20260226073512.4595-1-rahulnavale04@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Rahul Navale >in the RFC patch, rebuild and exercise your use case. Then please do >dmesg|grep xilinx_dma_device_caps Hi Folker, Thanks for the suggestion. I applied your RFC patch and added printk() in xilinx_dma_device_caps() around the assignment of caps->directions. After rebuilding and booting, I exercised the audio playback use case and collected the requested logs. The callback is reached and prints appear both during early boot and during playback. Issue still persists. cyclic playback fails after the first buffer period. Output of `dmesg | grep xilinx_dma_device_caps`: root@pdm3:~# aplay closetoyou.wav Playing WAVE 'closetoyou.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo ^CAborted by signal Interrupt... aplay: pcm_write:2178: write error: Interrupted system call root@pdm3:~# aplay closetoyou.wav root@pdm3:~# dmesg | grep xilinx_dma_device_caps [ 0.318827] xilinx_dma_device_caps: caps->directions = 0x00000001 [ 0.318832] xilinx_dma_device_caps: caps->directions = 0x00000001 [ 0.319170] xilinx_dma_device_caps: caps->directions = 0x00000002 [ 0.319175] xilinx_dma_device_caps: caps->directions = 0x00000002 [ 6.375745] xilinx_dma_device_caps: caps->directions = 0x00000001 [ 6.375762] xilinx_dma_device_caps: caps->directions = 0x00000001 [ 133.401497] xilinx_dma_device_caps: caps->directions = 0x00000001 [ 133.401513] xilinx_dma_device_caps: caps->directions = 0x00000001 root@pdm3:~# root@pdm3:~# aplay closetoyou.wav Playing WAVE 'closetoyou.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo aplay: pcm_write:2178: write error: Interrupted system call root@pdm3:~# aplay closetoyou.wav root@pdm3:~# dmesg | grep xilinx_dma_device_caps [ 0.318827] xilinx_dma_device_caps: caps->directions = 0x00000001 [ 0.318832] xilinx_dma_device_caps: caps->directions = 0x00000001 [ 0.319170] xilinx_dma_device_caps: caps->directions = 0x00000002 [ 0.319175] xilinx_dma_device_caps: caps->directions = 0x00000002 [ 6.375745] xilinx_dma_device_caps: caps->directions = 0x00000001 [ 6.375762] xilinx_dma_device_caps: caps->directions = 0x00000001 [ 133.401497] xilinx_dma_device_caps: caps->directions = 0x00000001 [ 133.401513] xilinx_dma_device_caps: caps->directions = 0x00000001 [ 167.802636] xilinx_dma_device_caps: caps->directions = 0x00000001 [ 167.802651] xilinx_dma_device_caps: caps->directions = 0x00000001