From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 4849C2EF646; Wed, 16 Jul 2025 09:35:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752658517; cv=none; b=M1bMcgw/pL2Ff4yT192Ph8LEGa0iPEfu57IjHdfO8fkGNAkpLASvla75D9h0DVmbrrIGdDAPRExzLtuf+JFO6hmJ/E/N2woIWJp9OIBDR8AYiVmY57I2raJ30qzE7//ivsomZly0B15OBd/dmVBCuxySBQgBG7gRRHDrew9cAoQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752658517; c=relaxed/simple; bh=SBVO6v4SK+YzY8tNUrFpy/1O8sbEkX7yvLiwFjd+QU8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=AFH8rX89LaeWq03XIAkWRsBUwXEueTF4YCbSm8d3XmSpgh8seJaLUb+xabLE7IFY4aqeecR3FNX3ZoEwdqb4xMW4uF8HqXZsK8lyvmTo4VDEGoDohofK0EtRygiMolRYQPvIanMxaJVmYTCNeNcUde4ah1gQVnLPDpK0QSETTxs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2eVHaAdj; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="2eVHaAdj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47998C4CEF0; Wed, 16 Jul 2025 09:35:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1752658516; bh=SBVO6v4SK+YzY8tNUrFpy/1O8sbEkX7yvLiwFjd+QU8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=2eVHaAdjsvmm3lavlM0+UnfSN9bylMSPfiY41gJATe3GuLgojgUFoH1JDSfQgQvx4 8zVs+8k8zCjovL63AzxOd2wNi5/mnIlIt9JaLR2IkUolZ0Zr/k/g80bX04r2whHs1E wQP5dQYfAJwH9rPz+P63Ti3AE421b9ur8aqbJniE= Date: Wed, 16 Jul 2025 11:35:14 +0200 From: Greg Kroah-Hartman To: Muhammad Usama Anjum Cc: Manivannan Sadhasivam , Jeff Hugo , Youssef Samir , Matthew Leung , Alexander Wilhelm , Kunwu Chan , Krishna Chaitanya Chundru , Jacek Lawrynowicz , Yan Zhen , Sujeev Dias , Siddartha Mohanadoss , mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, stable@vger.kernel.org Subject: Re: [PATCH v2 2/3] bus: mhi: host: keep bhie buffer through suspend cycle Message-ID: <2025071651-rake-rake-7a13@gregkh> References: <20250715132509.2643305-1-usama.anjum@collabora.com> <20250715132509.2643305-3-usama.anjum@collabora.com> Precedence: bulk X-Mailing-List: stable@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: <20250715132509.2643305-3-usama.anjum@collabora.com> On Tue, Jul 15, 2025 at 06:25:08PM +0500, Muhammad Usama Anjum wrote: > When there is memory pressure, at resume time dma_alloc_coherent() > returns error which in turn fails the loading of the firmware and hence > the driver crashes. > > Fix it by allocating only once and then reuse the same allocated memory. > As we'll allocate this memory only once, this memory will stays > allocated. Again, no, do not waste memory like this. If all drivers/devices did this that would be horrible. greg k-h