Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp229186iob; Mon, 2 May 2022 17:53:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3tUTPZXQEFwfQ9aofYj45pNkhOPVbwCwcoMEpHPz5wXEJfk1UKLaYNZ4Uguca0rZayilf X-Received: by 2002:a63:81c6:0:b0:3ab:616b:35b with SMTP id t189-20020a6381c6000000b003ab616b035bmr12007965pgd.256.1651539181617; Mon, 02 May 2022 17:53:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651539181; cv=none; d=google.com; s=arc-20160816; b=TgfqJN5Y6/lQPauaoNa5g5CWyzY8af1mGoHrd4VysBJbc0EkinHm5PdbIbaw7OtZ8u b1vicOb0MRoebTP9tXEm/fWY5n5vypMovp3DO5UzieL1xnq9hkpDGXKxe3AZzf4ou6KZ 3BWtPHQg3xDwD5YjcAr7rIJlC9RHoPbvQLFC2SLxaA8JH7yfXgNx9JP++N84+QICMtV5 SnJWgi3aeFhoY8/CCHbzGi5/NuurWXM0Q/oKqfiiU+S5nbOaLqJT+ZztuIe6rGU8+O62 cSE0J0rz5APxfwjApfyK/ZzBlrUzNd7WOTYv+HNl7BsXhh0SUqy1MVPk4tsNFyVEzL/e Jumg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=NXiTU+OHkuDffifSh9UIXBSPftKavHLkehOxtPzIoyA=; b=SHWa2DWSLc/jBg+8z3/toFAVMGJqIrlo6iQzXURhUNroItHgRJBfLe5VHg3kJ89tUa ShBBU8oIaltm7zvh1NSsD8EX3zuLeA2v6Me7bo6T9V7DFs0p2sJpva3mt8ZKj+dF4Qkq or/SC7aLvRBvYMDA3NSJb1SSn35G/47FJpKp+0W7blJkVOGb2a4tOmMa8hr0/rlWvY/j kBLBAThSqXq5YTnr9BWohSkyDIRXnONekTAt0F1OCKBMGGripF33669dzEyR3zi864HR RwTJ3uqngwAC0UXlI4OjsxlpVwmSyGbdOWT9W7iT8m6wjvIswnNEf4Q4IelbinWgQJDl kZeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=dxUWftAS; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j132-20020a636e8a000000b0039908cd4e78si15029852pgc.263.2022.05.02.17.53.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 17:53:01 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=dxUWftAS; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 756874615B; Mon, 2 May 2022 17:40:08 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1387714AbiEBVkF (ORCPT + 99 others); Mon, 2 May 2022 17:40:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1387716AbiEBVjn (ORCPT ); Mon, 2 May 2022 17:39:43 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDB8AE0A4; Mon, 2 May 2022 14:36:09 -0700 (PDT) Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 3F88A221D4; Mon, 2 May 2022 23:36:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1651527367; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NXiTU+OHkuDffifSh9UIXBSPftKavHLkehOxtPzIoyA=; b=dxUWftASJW8AAT8FM9QsPGbpk6LCEH7fYEEgcvCJecmWkLNSCECyPUaU9x4Icc5Ecx43QL vUuVvDK9fTxIvwfAMUB5GbPmubpr/THe7/050IOs0dh1g3U70gVHAjA2Fo7+66amWyq9Rq E0WyOM6pULx4OX57s/ia+vAaoKYH+8s= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 02 May 2022 23:36:06 +0200 From: Michael Walle To: Codrin Ciubotariu , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , wsa@kernel.org Cc: linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] i2c: at91: use dma safe buffers In-Reply-To: <20220407150828.202513-1-michael@walle.cc> References: <20220407150828.202513-1-michael@walle.cc> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <454e874e53bc5d15308a60bcef335d8c@walle.cc> X-Sender: michael@walle.cc X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2022-04-07 17:08, schrieb Michael Walle: > The supplied buffer might be on the stack and we get the following > error > message: > [ 3.312058] at91_i2c e0070600.i2c: rejecting DMA map of vmalloc > memory > > Use i2c_{get,put}_dma_safe_msg_buf() to get a DMA-able memory region if > necessary. > > Fixes: 60937b2cdbf9 ("i2c: at91: add dma support") > Signed-off-by: Michael Walle > Reviewed-by: Codrin Ciubotariu Wolfgang, will you pick this one? -michael