Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3483263imw; Mon, 11 Jul 2022 09:26:48 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v7BR0qS8Oh2ULy5ovqMZVx3Y8UA+ag84UR860BtLBeThyF0sgmkP89NJjLyfu5CZklaAj6 X-Received: by 2002:a17:903:41d2:b0:16a:2cca:4869 with SMTP id u18-20020a17090341d200b0016a2cca4869mr19239315ple.13.1657556808367; Mon, 11 Jul 2022 09:26:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657556808; cv=none; d=google.com; s=arc-20160816; b=BSI4iVn87g9ezSykKu8Y8NbYUu+eZxE927dOeNdoBedqi1FL3UJ9hFbKIvPtznznNi 2O1DD5SuJ2fJxXJueh+jCcFYx0H+ypnbEplGQ25XJG0C2ua/86dh8YkVVm0UKxlWpDgu iN2u+l+cQseKutAQswmSDM4601so3Ady0BLmkZjIfaF1Fz5+pK4NbLKCx7mu3e1kVsPV Jl6UaK3Jv0+qS768y60kquyJp0UVqaQktv0uHl23m3GDwwM3mO3Zon/QtbFxJ3IkjTAN afh3V0O+Tx24m4idsShvB7C+F4iH9pbS7wCPaRDV7xuwVhFwijnkDNocnW4ifvwJ9mf3 IMOQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Yv/cCXkvdegWQDc0hxz1IcTh2VseNOqN5ZAXrrO5pL4=; b=IvaMAlW76YgdLkDHxwyuE5++nCF+9yzF7HTNtXqtS8RbvJWpv6EQQ0U82bVRTG4dhf I5SXXRKbFtf9JYWKEwc5EfdUSj7l8+8CiXITlSslVUm4/13unFe1AJT7SelNg8AGe8Bj GrRUACFRGOsQvqTICzVr7j49OFkT7VoXzZB9KE0dixdPCde6mc9z7CmwkKmN+wn9X1CK SKEy9xpdQf9JG4JV8VhiDHMwf9z40VB0BETAuJSSiGwu+SAxinNiBzVYdWjKKiUohHY2 PqBI0Sdn9QDHxnPJITk858tZqw0apajRi1hJ/Da1iNwwqrMkynn5vMjFP9J6L3/hA7vi 9kNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=w4sitqjj; 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 n27-20020a056a000d5b00b0050e0530cfe4si10248872pfv.279.2022.07.11.09.26.36; Mon, 11 Jul 2022 09:26:48 -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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=w4sitqjj; 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 S231777AbiGKQKK (ORCPT + 99 others); Mon, 11 Jul 2022 12:10:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231838AbiGKQKB (ORCPT ); Mon, 11 Jul 2022 12:10:01 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82B8C7821B; Mon, 11 Jul 2022 09:09:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Yv/cCXkvdegWQDc0hxz1IcTh2VseNOqN5ZAXrrO5pL4=; b=w4sitqjjocX6/l+MMRL0bAQPus 9JhqeNRUeUFV+9Zv4Topm6vzHLXYGRxitIZjDFhIkUDMf6bnFShmm2lwRQGEUARHIv3feODf2/3YM lPCL/vfLxyFvylztBf+4YjDpvcimDMrFv/LtItKz94INmjcreMSMmuFnRN959hKIhnymOcj5K2Vke pRb+/AC14tzroUdWnLwUVVUe6Tm1Oqc3BdzyroJbmj1Nxo+OG4wePwTIwGMluWWh7Oc9hYEnoxqzN s+YV061Nmf+aVWbYRh7bT9uvJACM4qmyA8Z4JW/+4oI4FS2m3DanLulGydwcz+Cjg9NX6sEqTtCSs yw4wv2jA==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oAvyt-0038S1-Fb; Mon, 11 Jul 2022 16:09:55 +0000 Date: Mon, 11 Jul 2022 09:09:55 -0700 From: Christoph Hellwig To: Li Chen Cc: Christoph Hellwig , Catalin Marinas , Will Deacon , Rob Herring , Frank Rowand , Andrew Morton , linux-arm-kernel , linux-kernel , devicetree , linux-mm Subject: Re: [PATCH 0/4] add struct page and Direct I/O support to reserved memory Message-ID: References: <20220711122459.13773-1-me@linux.beauty> <181ee01d384.b809bd01412268.496620746959082770@linux.beauty> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <181ee01d384.b809bd01412268.496620746959082770@linux.beauty> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_NONE,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 Tue, Jul 12, 2022 at 12:05:06AM +0800, Li Chen wrote: > My use case has been stated in the cover letter, but our driver is not ready for upstream yet. Which means we can't review the use case. I'd suggest you come back when you submit your driver. > With DMA allocator, we can access buffer in kernel space, not userspace, however, this patch Take a look at dma_mmap_* on how to map DMA coherent allocations to usersapce. This is of course easily possible.