From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 46650C2BB55 for ; Fri, 17 Apr 2020 08:50:48 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D085422247 for ; Fri, 17 Apr 2020 08:50:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=rug-nl.20150623.gappssmtp.com header.i=@rug-nl.20150623.gappssmtp.com header.b="FEjku8hZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D085422247 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=rug.nl Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces+kernelnewbies=archiver.kernel.org@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92.3) (envelope-from ) id 1jPMhv-0003BT-MK for kernelnewbies@archiver.kernel.org; Fri, 17 Apr 2020 04:50:43 -0400 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.3) (envelope-from ) id 1jPMfw-00012j-0Y for kernelnewbies@kernelnewbies.org; Fri, 17 Apr 2020 04:48:40 -0400 Received: by mail-wr1-x42b.google.com with SMTP id k13so880460wrw.7 for ; Fri, 17 Apr 2020 01:48:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rug-nl.20150623.gappssmtp.com; s=20150623; h=subject:from:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=lkT690tK57wjF2Ys+d6RB1jaNilZSmmks1xzzryCbBU=; b=FEjku8hZU0S6zk8tAC+9SYsS3n66y7iufOz17+EWyoOf47BR0oUkdWGhF+zPUcF44a yHDi4lVV9I4Va+QLxJzSuhnjlj/VIhOjGJrO4BF8bjbMu22gulbhx5I/AsAm+zE1a7F6 rVTC3yMK1Ke6SQpHcqufhUutDaFD1RJDWAk/BMR7f8iRyVvG37LV6ZFX3WfAJeAZpxJC FZMF6V4+hKTtLhMopxZ8Zqj3tWNNsXvJ43a+++i7XYeMBqchuq0hExkmPuDoNKvJaySA cAWF2VQP9d3OLcLjeiEDr5ewCAXkn9DtZlcZbruUJKzVCh3QuX9t/Z5pNlOjVeUNyqgu qazA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=lkT690tK57wjF2Ys+d6RB1jaNilZSmmks1xzzryCbBU=; b=nLEhN8/yW6hdK/UPg/9J6CDz1wyN6m9VbYPjVMK7VMBABYiLTDldUzbeK7DeuLYU+S PuWcs/wnoXhRact2kK68lXsqL3OvEuVYRmSMg4CJHwxo45EZCCtIk1nmQSpR/BGJ8LtF mByEIYPkkAO0a9t8Q0cZtuC8QNvNfCpcSJKbAfuezEnFRfERRgwIcZ1QDVf1bd4qhD02 hd/ejSaE75DvQ565uunVWxMZ5hf1Ocpu2pw/FwIZ37ETXdQ4Kqc3qUhgp8rooDfgq/V3 gcGSuM/EGecrXWlw1JEj62ymHbNm0RiMSKH+SMuBrrs3TxizaEorBjsK8T8RniycFz6E VR+Q== X-Gm-Message-State: AGi0PuaCXwXwnl+LXSuwYmefmmNA4twbtoUH5PSLrf8BEkzwFurD5lhm y0YVX1LRbEvwktmApU/+nejHXOzYUP6ELw== X-Google-Smtp-Source: APiQypImlKPgTw9zfV9mitR+j9vNxl2cXHw5mbm/TD5f30Q1fnXFk6FbI3BwPL1wnpB/iRxfd10FtQ== X-Received: by 2002:adf:bb84:: with SMTP id q4mr2418107wrg.141.1587113254506; Fri, 17 Apr 2020 01:47:34 -0700 (PDT) Received: from ?IPv6:2001:1c01:420a:8c00:515b:87b7:5264:e56f? (2001-1c01-420a-8c00-515b-87b7-5264-e56f.cable.dynamic.v6.ziggo.nl. [2001:1c01:420a:8c00:515b:87b7:5264:e56f]) by smtp.gmail.com with ESMTPSA id 138sm7572977wmb.14.2020.04.17.01.47.33 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Apr 2020 01:47:33 -0700 (PDT) Subject: Re: Trouble with allocating memory on platform driver From: "s.achterop@rug.nl" To: kernelnewbies@kernelnewbies.org References: <22fae602-5d4c-f585-8fb0-89a0884011ad@rug.nl> <07083b3a-2264-8b95-29cc-c0b3f6eb8250@rug.nl> Message-ID: Date: Fri, 17 Apr 2020 10:47:33 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <07083b3a-2264-8b95-29cc-c0b3f6eb8250@rug.nl> Content-Language: nl X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-15"; Format="flowed" Errors-To: kernelnewbies-bounces+kernelnewbies=archiver.kernel.org@kernelnewbies.org On 4/15/20 11:29 AM, s.achterop@rug.nl wrote: > On 4/4/20 5:21 PM, s.achterop@rug.nl wrote: >> Hello list, >> >> Trying to create a device driver for a raspberry pi zero (BCM2835) to co= ntrol a gpio and an spi device. >> This eventually will be done in a FIQ interrupt handler. >> A simplified version of this batradio-driver can be found at: >> =A0=A0https://github.com/SietseAchterop/Batradio/blob/master/batradio_mo= dule/alloctest.c I found a working solution. I actually don't know what I am doing but = it works. Before the call to dma_zalloc_coherent I added: pdev->dev.coherent_dma_mask =3D 0xffffffff; Now it works. Regards, Sietse _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies