Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1659547imw; Tue, 5 Jul 2022 13:15:01 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sm7fJjUDczEgB6NJynhoQgcaNmX64zXJTjRD5fMB9AlQxOqvdWImSsl1cGU4/QTYPCPbm7 X-Received: by 2002:a17:90b:1c8e:b0:1ee:e899:c612 with SMTP id oo14-20020a17090b1c8e00b001eee899c612mr44408819pjb.170.1657052101742; Tue, 05 Jul 2022 13:15:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657052101; cv=none; d=google.com; s=arc-20160816; b=RAL6EPUCrrB2UwSD41/UyawytgDYXYC0ZsCDoL5i6JxZuFdBfe4ZgMj81Hztlx1ifq LBUhiXFuDTk0N6AZiSR2Ks/alQYTSZcig51X832LSb8UeVlWElyJLMMXzXKnyovtkPri Z+rQfpWwLcTHL8tMVE5NEuNfVs8nnZc+rQoScStjrwEY2/gYxR12+mHI5x8+efwPwnv+ Y0oNQNPSS5dg+aERfuRGn/U+RbVS4quWePqGLK+njKFSF0fNbSfTo0XLJlZzgYu0FOqR 8jSDHPZJTrRwaUPJoGTA+9CEuPqDVRQ/vUUOadDQpGvrNtwnKRXZ7TD7N9+RawkbVTkj Wsew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=/doxS0i6Wxlf3MlQXzvD1rRavf5pbzG6RAdOF/mnCY4=; b=enER17pwoEyXzhoiP7MaE2lBMoLWBiT/8HPeBbMLlF3Vd8he/cZCVRcrrPOjEaxA3N UBnCGej2xfoSeMAkj6AB+oVcboqqPGP1QJbA8jVHTkuPH0HqiSLBHwX1vkxeuw7ECupQ wBoiZqb9dHfT/rOQ49wo6U4EqnQ7vv8hMkRzxLEirVzuc4x3pG1Lv7CE5B5POjcPqFzj 5LAH7nu0nggl/ovyAEsvOfQb+lOE1ERUOsCxP74J7rIQCJDFpf59yX0DUByjTOYG/PDj bOW9aNgZhgtu9V33fX7l5zcJ1Y4jRJs/2sAGwgYCB7oIWe21vk7Li8NlKoa+FIsdYvlZ I9Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ArexrY44; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j2-20020aa78dc2000000b00527ffe6b3bdsi23063440pfr.177.2022.07.05.13.14.49; Tue, 05 Jul 2022 13:15:01 -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=@gmail.com header.s=20210112 header.b=ArexrY44; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230089AbiGETwx (ORCPT + 99 others); Tue, 5 Jul 2022 15:52:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229516AbiGETwv (ORCPT ); Tue, 5 Jul 2022 15:52:51 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43F0A1CB10; Tue, 5 Jul 2022 12:52:49 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id r14so13240029wrg.1; Tue, 05 Jul 2022 12:52:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/doxS0i6Wxlf3MlQXzvD1rRavf5pbzG6RAdOF/mnCY4=; b=ArexrY44HStoCcsS43la3guKBJ49QQtWvjH+cMc4ug5p3cyvHU5Dyaoyou9wlV98lU t1rdtTH4PtO7TMcNN3JUzkdb1mY7LFdrvCuiKfl0rDvV/VcSVMPYlnvaUHFk2NaJPCU4 XkEjrVKV/65CCHIOXVBkO09lya86ZtlmV/BpPBKLJ74qfJwHi4Zrfq3tvmc7/4RH2UYt hxGmVomn9hiIriN8+Zquy93JmujHo2e5lF+3IgxY8MUhetFqIv4HrlJNoowHBBmWt6+J QCZ7STtbE+6h60ougeY8ry/e/Rya28iXXXF1KY0QwxW2WTCTZUW5zIvZBRylRhYfvIQg JULw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/doxS0i6Wxlf3MlQXzvD1rRavf5pbzG6RAdOF/mnCY4=; b=A7sTYKXASJ/2hZbu6DNRmZ4+/GBoctFgKLPCtwV6aGpF2av/KLxHvqGhfCJYKt3Xoc QpWTjawkBNsmHgOel5xNGl7/NVat3hIoO8z1LGwqMycJEn2O1ziA2NM14gFSZDWQvDMl AWwNLErjPUuhoSJ55nuh04sAkRO4/biA2TR6c5n4Bb9BIW05+60dAonu9aBVh/DAS+vh Dfo1nxGaxCoHiLnPiAE/bDzGJNrigtjEd63qQU/ZBkOhGXB+X9T//t28BQK/zM/VQPKP L1PgjXerkPnC6Y3q3Cn3zwGa4B5Mvbu6myqxDuwtdWQj6bFO4AYDfyb9fVr3KHJH1Chr WEGA== X-Gm-Message-State: AJIora+8h4NAr9EIkUbsxtxmWBpE7zr7WQe7LQGGSVqEU1UvisWmeXbb Ksy4NOZhItxMDKiprRS9Ke+/FyS8S8f/gBAsgIg= X-Received: by 2002:a5d:5703:0:b0:21d:6c55:4986 with SMTP id a3-20020a5d5703000000b0021d6c554986mr10402402wrv.455.1657050767617; Tue, 05 Jul 2022 12:52:47 -0700 (PDT) MIME-Version: 1.0 References: <20220704140129.6463-1-fmdefrancesco@gmail.com> In-Reply-To: From: Alexander Duyck Date: Tue, 5 Jul 2022 12:52:36 -0700 Message-ID: Subject: Re: [PATCH] ixgbe: Don't call kmap() on page allocated with GFP_ATOMIC To: Ira Weiny Cc: "Fabio M. De Francesco" , Jesse Brandeburg , Tony Nguyen , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , intel-wired-lan , Netdev , LKML , bpf Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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 Tue, Jul 5, 2022 at 11:22 AM Ira Weiny wrote: > > On Mon, Jul 04, 2022 at 04:01:29PM +0200, Fabio M. De Francesco wrote: > > Pages allocated with GFP_ATOMIC cannot come from Highmem. This is why > > there is no need to call kmap() on them. > > I'm still not 100% sure where this page gets allocated but AFAICT it is > allocated in ixgbe_alloc_mapped_page() which calls dev_alloc_pages() for the > allocation which is where the GFP_ATOMIC is specified. > > I think I would add this detail here. > > That said, and assuming my analysis is correct, the code looks fine so: Yeah, this is actually called out in other spots in the buffer cleaning path. This is just something I had overlooked and left in place back a few refactors ago.. :-) https://elixir.bootlin.com/linux/latest/source/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c#L1795 Reviewed-by: Alexander Duyck