Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp1342226pxt; Sat, 7 Aug 2021 07:57:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJww4gJPlIXBISgxxTQF9feIxUVLHmPvqva0SVNkRdmRxW1CkmWltsYpQwaG+tPhwaEfwI7o X-Received: by 2002:a05:6402:28a4:: with SMTP id eg36mr19581808edb.84.1628348239494; Sat, 07 Aug 2021 07:57:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628348239; cv=none; d=google.com; s=arc-20160816; b=WqupwcvYST1/jd93W9sQVsahkYrvOjtKFbHjy2YXy1GyeOhkYabY2C76Sh01WABhnd FQ/S4Lh1Bn+jBW8t8LjHKpWzbg7GMOFjPpTkvhuKztrwkG9TqbZZnNmCXSiRqQsjAfF/ YH54xzjZbTcx2aNDqRFquGH+Jt9EBqBAXERBHBVZ0PrjDoPO2udkID6lRS0yh3vN/eyC Rbgk8egZ0OyAYbabfKCI75pMrEh9qTWra/V+5rhAVOUj2TCKyYrQKPKnm5+gWUr7H0dE W0DzIYO+D3auLxGSpL7z/MnyRwj5w1J6idvZjIYx2RbsjZ5UIF1xKm7kFzKckdwKf91S ohnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=NlqlX26iLL3faSQwHGsE0DYPr7N0VnPYeWKbqgJNI9k=; b=YcRRPRqNmahn3/07TB60e3nE0C5a+0VOpcc56/u24Ag0A+KSBr98bxnhIxr8cwIAks +cdHCrB0Pa7Fm3b50TR+DEC/BRdQrZ4baURyaqExVOwRALLrCJajgh0B2KPl9kZyZytH iDzrVefeDpXdX5DzqUMIm6h5U1kRRrQxoBPsrIzWMSDp4HFZFlhSSgrx0F0ae0mm/N1V d9BvcEOr9qkYLkFbjaS2c8JcpwL58/1We4wKMCAUXRzSRY9wZ5q/TOeQ11ohM2oAOuEG nBtvj1IKP/TvGxZRk42y7WY/7W2eq4DAv8QARJiJavtCQpgZm8POLRrduHKaV1VPaIvb 07lA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mu16si40313ejc.540.2021.08.07.07.56.55; Sat, 07 Aug 2021 07:57:19 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229790AbhHGO4A (ORCPT + 99 others); Sat, 7 Aug 2021 10:56:00 -0400 Received: from out4436.biz.mail.alibaba.com ([47.88.44.36]:43167 "EHLO out4436.biz.mail.alibaba.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbhHGOz7 (ORCPT ); Sat, 7 Aug 2021 10:55:59 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R231e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=alimailimapcm10staff010182156082;MF=xianting.tian@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0UiE-sLH_1628348139; Received: from localhost(mailfrom:xianting.tian@linux.alibaba.com fp:SMTPD_---0UiE-sLH_1628348139) by smtp.aliyun-inc.com(127.0.0.1); Sat, 07 Aug 2021 22:55:39 +0800 From: Xianting Tian To: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Xianting Tian Subject: [PATCH] riscv: add ARCH_DMA_MINALIGN support Date: Sat, 7 Aug 2021 22:55:37 +0800 Message-Id: <20210807145537.124744-1-xianting.tian@linux.alibaba.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Introduce ARCH_DMA_MINALIGN to riscv arch. Signed-off-by: Xianting Tian --- arch/riscv/include/asm/cache.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/riscv/include/asm/cache.h b/arch/riscv/include/asm/cache.h index 9b58b1045..2945bbe2b 100644 --- a/arch/riscv/include/asm/cache.h +++ b/arch/riscv/include/asm/cache.h @@ -11,6 +11,8 @@ #define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT) +#define ARCH_DMA_MINALIGN L1_CACHE_BYTES + /* * RISC-V requires the stack pointer to be 16-byte aligned, so ensure that * the flat loader aligns it accordingly. -- 2.17.1