Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3905251iog; Tue, 21 Jun 2022 08:12:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tjmnFMqyKhgbK4pRuGlT9WF5yl6oId1LBfsERRxEUtwDBpbF86ARscL+9W7D16MtQvy3MS X-Received: by 2002:a17:907:7295:b0:71e:bc93:496a with SMTP id dt21-20020a170907729500b0071ebc93496amr17778856ejc.698.1655824339070; Tue, 21 Jun 2022 08:12:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655824339; cv=none; d=google.com; s=arc-20160816; b=hqmQDx/B5lnxdNaKtFUJ8YHjwpshUikQmXm2bVYcwa7UQz1Y/tK0JYFGgJwUKa/UEX QbndVinKZdbqtJoQOwnNDIYnuzzo4m29hlrKOFDxEeMsixhjDYNpvY4u9PZI15InjbE6 uIccf30RuAbGyyegfKX2SgpYJJdO2Jo3A5EXZP5ebYr+RSwQlBMvkpwGZhnm4SROh0pJ dPw3lwEl41q8ChayXo5cEJvRR91JZqP8imRjZSOAazXVDUxPsBDgs/GTXnkWUn8rQvwP 3tYcVAxNAkseWKhc4xYLuzTnOt2k4e2Xwl76Lx4FxuRHdnQ3Ot91SDxYXSDBecf3qvJx 693A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :reply-to:user-agent:mime-version:date:message-id; bh=+Yxe2aKb/Mklt9VoYJSNxpZe4ywddASwzpZ+WEGyIco=; b=BeI8RqPQfBF9Bl1Rq3RccmH9V4Rt0bgCKBvxi49TklRwn4MIWclt1DrGnCenpOTVJD kSLmL9ShaknOkbfgfTAskaZBATzUbAOlXkzIi/RB2GJeK4Pf1z44YIJMNz5HLdWtfCFb xaENlUn3KEXMVkAHJ6U5Rz+3XMceDXT+CdWwCYiVUtEI0oJ9kVebsiWK7EWXYk6XihJp I1nOpsR9PSoNt0PrASJfBVZ0iGPNpz3mbV3ZSREEEBGqRI8ZhT0Y3wQsK9m885biqTX1 513Lg8iimgwJDUzohtC/RX7ppOKU9ABXugJoLZEkLVfvYb30PxfV6d0QytV3KcE2esuj zUkw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r8-20020a05640251c800b0042b30589cbcsi20909515edd.249.2022.06.21.08.11.28; Tue, 21 Jun 2022 08:12:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351640AbiFUOb6 (ORCPT + 99 others); Tue, 21 Jun 2022 10:31:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351344AbiFUOb4 (ORCPT ); Tue, 21 Jun 2022 10:31:56 -0400 Received: from smtp96.ord1d.emailsrvr.com (smtp96.ord1d.emailsrvr.com [184.106.54.96]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A485A248E0; Tue, 21 Jun 2022 07:31:55 -0700 (PDT) X-Auth-ID: markh@compro.net Received: by smtp5.relay.ord1d.emailsrvr.com (Authenticated sender: markh-AT-compro.net) with ESMTPSA id 7C1B5A0156; Tue, 21 Jun 2022 10:31:54 -0400 (EDT) Message-ID: <5ca9f8d7-0a64-ad5a-f421-99380df8f9b9@compro.net> Date: Tue, 21 Jun 2022 10:31:54 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Reply-To: markh@compro.net Subject: Re: [BUG] dma-mapping: remove CONFIG_DMA_REMAP Content-Language: en-US To: Christoph Hellwig Cc: Robin Murphy , Linux-kernel , dmaengine@vger.kernel.org References: <20220621134837.GA8025@lst.de> <9de341bc-fe8d-1820-187a-46455e4b9bf2@compro.net> <20220621141924.GA8348@lst.de> From: Mark Hounschell Organization: Compro Computer Svcs. In-Reply-To: <20220621141924.GA8348@lst.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Classification-ID: ac4a7eef-7c6c-4bfd-a4fc-0ff2dd8cea6b-1-1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On 6/21/22 10:19, Christoph Hellwig wrote: > On Tue, Jun 21, 2022 at 10:06:59AM -0400, Mark Hounschell wrote: >> On 6/21/22 09:48, Christoph Hellwig wrote: >>> On Tue, Jun 21, 2022 at 09:43:18AM -0400, Mark Hounschell wrote: >>>> Revert that commit and all works like normal. This commit breaks user land. >>> >>> No. We had that discussion before. It exposeѕ how broken your out of >>> tree driver is, which you don't bother to fix despite Robin even taking >>> the pains to explain you how. >> >> No, this is not the original issue and we never actually had a discussion. >> That original issue was about using Set/ClearPageReserved. You nor Robin >> even tried to explain why it was wrong to use it. It was never an issue in >> previous kernels. Why now? In any case I have removed that code. This is >> what happens now. >> >> What is it you think I am doing wrong. Except for using >> Set/ClearPageReserved you have not explained anything to me. > > Which part of "you must not call virt_to_page on the result that is > very clearly stated in the documentation and has been explained to > you repeatly" is still not clear to you? > That has not been explained to me at all. I am NOT any longer using virt_to_page at all anywhere in the driver. I was told that Set/ClearPageReserve was what I was doing wrong. Not that I was using virt_to_page with it. I am not using either now. I am using only dma_alloc_coherent. > Which part of "if your of tree modules stops working, this does not > constitute userspace breakage" is not clear to you? > > I'm done with this, please stop bothering me. I am not trying to bother you and there is no reason for you to be rude to me. I just think this is a bug and am trying to get to the bottom of it. Regards Mark