Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4060352pxb; Mon, 8 Feb 2021 07:04:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJx7jpBg49eaRi11n9NbtJsNxVD8XL39KbcMC0ev/rM4l4/EBflK6gg1y8TwyR8FOLeCHaow X-Received: by 2002:a17:906:a898:: with SMTP id ha24mr12614911ejb.413.1612796650085; Mon, 08 Feb 2021 07:04:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612796650; cv=none; d=google.com; s=arc-20160816; b=dU1cNBzmdrqfrwoRDaF80g47k73MempWwLYVDDw4froi51p91RoBNEGMepXHe2tk8d M74ro65TvAu/0aBkD2gp8sWCmNCDH6CYzYmFSQWjua8UBD9TO0+HuV5ENp8ULPlasuiR MDiZYitgRcN5xJSj3gt8nxBSmlq6SIn4pZPnP8NC0ZVfj6Gh9f9BKu7XwlLZWfnJmfOs myiS2h0ahbXGJWgsHWMxxKTSIifMZyfubpYv2/03gs8ag5R4Y52aj2bO26A5jKuIbBxI 1Kp/BgBRkmTBwNDkzRU7wvaMWzOA9wKTg2TvXLEfP594gn6rQvrkjIn0YldDCLMRSFWO ovLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=b8GRLt9JDEyvRbCM58/Q5v8AWJtu5fLXvMonWrdJBCI=; b=nDEDlkiT6/pbZUop3p0OXtc/H0t2PJIKajShmzhQ74ivRSPbIlLtY+9KEirO8YA7C7 q7/sHwh/wz3WkqW0ZJlebUxycE1OzN3l97XU5ITmFjmQ4pKU3KHFxqoYF0Fi6cQRl/eD QyuJAx7pkLdR13GHkyqeqWGPzeha2ZM9qXZa2gUXamSW5/Yjuq39V0Sl+iu+sCCVL3dq iQZtrX4Bo4qfqPwxXvJ5T+Vus7IodyGnL+g57HH85+LM0tBkZbszIDNQYWYq2Dxi1Zbz i8Pz1sTAtyPdN5sEK1NOIxrE5+VJFHTiBqJR1hyv9FnAsQebdPfB3FL125bWKcL+yagM KKQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OBCVKGxg; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jv3si3651558ejc.103.2021.02.08.07.03.30; Mon, 08 Feb 2021 07:04:10 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=OBCVKGxg; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231781AbhBHPBR (ORCPT + 99 others); Mon, 8 Feb 2021 10:01:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:51218 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231782AbhBHPBH (ORCPT ); Mon, 8 Feb 2021 10:01:07 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1B19364E87; Mon, 8 Feb 2021 15:00:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612796427; bh=N2qAaEF+3vCal/IUAEMuWldnK28lwtVGBy4zy/3xQnI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OBCVKGxgL7AwA/EBPZev3Yn27mzm1utXzMxQjebeNfn7XQ9PP/1E1llwkXFCxDjaF 0QTh6X60Th1mWFCBEbY5TftVWTwblcsibLMyzEULPPdOkNjbnlEc6iPkBu33yYvSiw L8Dge0oeh+uNAQV4c29S7Yj9xWsJzRl9s754en4k= Date: Mon, 8 Feb 2021 16:00:25 +0100 From: Greg Kroah-Hartman To: Christoph Hellwig Cc: Thomas Bogendoerfer , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org Subject: Re: [PATCH 5/6] driver core: lift dma_default_coherent into common code Message-ID: References: <20210208145024.3320420-1-hch@lst.de> <20210208145024.3320420-6-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210208145024.3320420-6-hch@lst.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 08, 2021 at 03:50:23PM +0100, Christoph Hellwig wrote: > Lift the dma_default_coherent variable from the mips architecture code > to the driver core. This allows an architecture to sdefault all device > to be DMA coherent at run time, even if the kernel is build with support > for DMA noncoherent device. By allowing device_initialize to ѕet the > ->dma_coherent field to this default the amount of arch hooks required > for this behavior can be greatly reduced. > > Signed-off-by: Christoph Hellwig Acked-by: Greg Kroah-Hartman