Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp179782lqb; Tue, 16 Apr 2024 12:13:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUvoCFs7PcT/TZhrzaEErQltymQR+biXQP6Ey1ozUQIf+IXnrOvu7uCOnSCVkIh+AB6D+LMu8QALXDd4P6JMqaOVrtgievyHVVxhXBlvQ== X-Google-Smtp-Source: AGHT+IEaYJgvspSlbHch4dlkD+GfEiOMIkgbHF6kR2pQ2AgmqqFwn1N2qkU36fOsvYjIXkQoa91f X-Received: by 2002:a05:620a:135c:b0:78e:cc40:b7e0 with SMTP id c28-20020a05620a135c00b0078ecc40b7e0mr14817259qkl.30.1713294821878; Tue, 16 Apr 2024 12:13:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713294821; cv=pass; d=google.com; s=arc-20160816; b=NWf8goy5NwYNHtDD+kymCfhV6riH95vLYMR9xunL/PJpn1cAaIlY7Osf/pZ5QKq5Ha OW3lGOjToxKf2VcQilTHzmPUIkD6tKUSmYq1DhKqz/285SudUi8YuC8h/7yOYTKrBr8J bcu5e+E3iE9Bj7EFhoig4/Ot9oc+yJTWt06E8yS84JcX1LrOsY2N7Q3e6cMBLOaR9x8x iQO7w/YLAm5/Dp+OqIoscAH1hFRdd5Ikvcd0368/x/N2Imxl9WCY5dcg9xKjMVUDb3ot fWiTevknskLailBuOI2BfviuJ3IKNmqrl9XBhwUB4txTUtAY5idhCdeZfhnIxrlmzWat KzWA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=7PYkxsIYdy4CjsMHQWU0P/SnUBFD4Ca/OoeePFsIhyM=; fh=tqJ30uYjG9GDwMM5Zcm93Aj1nopR9kCQs85jYWRpVIA=; b=ZrXOjF7YU/uvkGjLKToHeOQqrn1ChI3NGW/k2nLj/OWBqv0Hy5idmSxLhjXad+VqQr wUW8Rv3/gDWvQw8R1kkk2Mp3kB29rnpuBtFMfBSOx6A9Rw7nv/nysUc/AEhtzFTF9Yxe BISTc4+bN5dlcY2r9bKCIobvcyg1SSHWO6vqMlBak4qzpFHm9vW3az0UudR0LUkN6Dvh 4iK979TqGYUVKsRt0DNJg7tTjWE12PXjbiS+jakIy6lE+evNqUhVtTaz8cbmmXVRgIIn QeelEdxzuP1ARnX0/4YadODuZEwW4xWj/X03Ccp72lqihmY26u464rDFqm50frj2sYGB HLEA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bGLnjAW1; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-147453-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147453-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e25-20020a05620a209900b0078ec0e16362si13299276qka.105.2024.04.16.12.13.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 12:13:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147453-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bGLnjAW1; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-147453-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147453-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 992821C21018 for ; Tue, 16 Apr 2024 19:13:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 989DE137C42; Tue, 16 Apr 2024 19:13:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="bGLnjAW1" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 32AC5137920; Tue, 16 Apr 2024 19:13:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.8 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713294811; cv=none; b=E3z/x4gsWKD1/xLZGiD6bGLaCCbB0mRM2BeBSYDZ5RXlAIJzTybaOzlTFHpYRxwm5v9k7nzngOFExURDtGZUk9H5bhFrP71DXFU/oUjjBcQXFkxL0rfLNmB4reKo2EBLwUmaqLYPZT5I3ZmIup3mo7Z1ztjecysMRmS2R8wp9o4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713294811; c=relaxed/simple; bh=WidDV0+cydjYUFBcrsXyNgs1N16QDq4Ayftcy1ggqFE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HNq8GF3bl3kCxu8pjs/p57buJZVtd92Urqxz95XnP9SA/LurbLlr/eFiury6z9fiS7QlyVy6ALTzJmBRiwQNlmkox3kxffd2pOy+cymFi9XuUTImDdoTsQVa3aDatUlvssKZzTFuJabWN8r/3ntw/QdKxGJY6FxdACsxLTtwVzU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=bGLnjAW1; arc=none smtp.client-ip=192.198.163.8 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713294810; x=1744830810; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=WidDV0+cydjYUFBcrsXyNgs1N16QDq4Ayftcy1ggqFE=; b=bGLnjAW1MbqBaO1Ogi24qI7MuBsIDEPpOHbxtmUNh53L5FzpKMJ6alpX gzUbj2PzhHxs9v9bhFUOwHxA1ufoqL8Y17HzOuo9gQMko6ZUbkL7st/o0 phP0MPazk6Y6jR7oknzmAkpsheUKA9MVQMMVrpA9wUVoJJGeP/rgeplUG qvu12H6lrdsYPWas7+xmvgyXTOHXd7jzv7sF2GFTe/zQydgfpfLFEMMWy CT/cs6GHiscRC5nXftIKL1/YUKl+7/ytrwVsdI2GR4CV34gCYxT+Ljcfr NPwpUq+RiEfwLI7A4N5HuA1sP2twdFLZsSZHP57L+zaIJ8JtMMvGJRoPX A==; X-CSE-ConnectionGUID: P7t9CeurTv+JCu/j8sTLuw== X-CSE-MsgGUID: xFWTUOONSfe0dXVfVfH32A== X-IronPort-AV: E=McAfee;i="6600,9927,11046"; a="26268086" X-IronPort-AV: E=Sophos;i="6.07,206,1708416000"; d="scan'208";a="26268086" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2024 12:13:29 -0700 X-CSE-ConnectionGUID: rpK+ZSyiR3mB73v5+CjGHQ== X-CSE-MsgGUID: qdEqqAxwQqaa96/cPZSPtQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,206,1708416000"; d="scan'208";a="22768609" Received: from smile.fi.intel.com ([10.237.72.54]) by orviesa006.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2024 12:13:26 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rwoFA-00000004ngn-0THg; Tue, 16 Apr 2024 22:13:24 +0300 Date: Tue, 16 Apr 2024 22:13:23 +0300 From: Andy Shevchenko To: Serge Semin Cc: Viresh Kumar , Vinod Koul , Ilpo =?iso-8859-1?Q?J=E4rvinen?= , Greg Kroah-Hartman , Jiri Slaby , dmaengine@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/4] dmaengine: dw: Fix src/dst addr width misconfig Message-ID: References: <20240416162908.24180-1-fancer.lancer@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240416162908.24180-1-fancer.lancer@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Tue, Apr 16, 2024 at 07:28:54PM +0300, Serge Semin wrote: > The main goal of this series is to fix the data disappearance in case of > the DW UART handled by the DW AHB DMA engine. The problem happens on a > portion of the data received when the pre-initialized DEV_TO_MEM > DMA-transfer is paused and then disabled. The data just hangs up in the > DMA-engine FIFO and isn't flushed out to the memory on the DMA-channel > suspension (see the second commit log for details). On a way to find the > denoted problem fix it was discovered that the driver doesn't verify the > peripheral device address width specified by a client driver, which in its > turn if unsupported or undefined value passed may cause DMA-transfer being > misconfigured. It's fixed in the first patch of the series. > > In addition to that two cleanup patch follow the fixes described above in > order to make the DWC-engine configuration procedure more coherent. First > one simplifies the CTL_LO register setup methods. Second one simplifies > the max-burst calculation procedure and unifies it with the rest of the > verification methods. Please see the patches log for more details. Thank you for this. I have looked into all of them and most worrying (relatively to the rest) to me is the second patch that does some tricks. The rest are the cosmetics that can be easily addressed. -- With Best Regards, Andy Shevchenko