Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp329691imn; Thu, 4 Aug 2022 07:35:24 -0700 (PDT) X-Google-Smtp-Source: AA6agR6BVxi+HDq4SjxVdSXpP65cipmo682hTjeeneUXN8EBLWUf9Rx4ISyjRT9LkcqjEDtrWgC6 X-Received: by 2002:a05:6402:e93:b0:43b:6a49:7e88 with SMTP id h19-20020a0564020e9300b0043b6a497e88mr2376333eda.132.1659623724386; Thu, 04 Aug 2022 07:35:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1659623724; cv=pass; d=google.com; s=arc-20160816; b=src2pT8ZkEKctGEsGnIaWMGnXcPUk4TbBbPAvtZvHP8mYvYzHqDbkNjIhTp+lHmiOe wAEObyXPZz+NftPpri2Vc17XBCUbD9wn43+s6ZIcMeG4GKw/Daq6v7Pqq7rcAxSyz+0F j9tLgILHtVcyFZqNJ7JbR0lxIbJjlYMcSYkf5sw3S02TgBNCLH0zCOOo/kVkRsT5Dxgo JkOR8xNKwTcj9JcU4k6oGTOoWTM6kLPfxm5F4ySE9oonB3NfZmaZfPJWGR4eyF6J++L5 o5C7ocxK6ro+zeJXnfGiiEfCeIy0BBOyZXlcJswtQAXOvHNYdD3UHHHzwa4PWnDmbOt6 W4fg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=XFapMqsoEI/+3lQXQbzwh9bI5RbIW/K0En0e6s1su5Q=; b=Xyver49JZwkitaYYq+AN+xBPyixCGzTjARKqPdqzDhNBq7Sf1UbWYF7rDOdUTXrf4A clPs+K5ohGem+mNLAxQmeidtslV9wC5vU/P6MMlrn6cqTUAlNxAQa5CgP9Nt8naq+Bew zeS6mpVV5PIIR6VtvovJ9vwsePT+CFfp+nDr7rtJJQyXImBk1QmHHZQv8Qk1rmiIkUQF 84L5O3tGux9ceraeTvqEgHbkogPpHyt4N5XE9kIFGna5idK4LXzCQjGIZ/3QZHytjScK J8FzWJyaw0vTsNqDFyX9dp62d+58rbuYdjqO3iw0gd+/kgHjL5VHiiG7FO4KhF0ukHM+ 0bmw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MYlBDk4s; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f14-20020a056402354e00b0043d4055d6a2si1422736edd.290.2022.08.04.07.34.42; Thu, 04 Aug 2022 07:35:24 -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=@intel.com header.s=Intel header.b=MYlBDk4s; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234373AbiHDNx0 (ORCPT + 99 others); Thu, 4 Aug 2022 09:53:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234090AbiHDNxY (ORCPT ); Thu, 4 Aug 2022 09:53:24 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0ED5B193FA; Thu, 4 Aug 2022 06:53:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659621201; x=1691157201; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=6dQDLqDonNgraTufh1sZYXegtTjCcI5X1eh+5Ny5YPM=; b=MYlBDk4sIyGkfTwG9Ihiyk86tIc7zugHMbv/BiPhci6PI22bIkwqOLaL hQWpgqIekYFnH0k4/omoJTR3yOoKxdzRAFx/KU4dpweKzEI/bKmSgDakd DpntTvp30x2Vg4xEfSxsJ6yOu6BrC7aDHtxylveFqev/KaZJpbGzS1Om5 +B7h9oAwwokf0WsEFxxusOY2g6Vd9kvlBHCTtmL7abUEY1ukINJvTE+Za mkBMIJi2dwdnGG3ydFm+O4Tw25p7/DMwKfvIjCBWho14Zx02Kk2GTJqJE 5az3z57Bp1uhdlLjl6di3EfDNubG6bsSRkFGZtv5JSQKNnntdP+hip9UO Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10429"; a="287498857" X-IronPort-AV: E=Sophos;i="5.93,216,1654585200"; d="scan'208";a="287498857" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2022 06:53:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,216,1654585200"; d="scan'208";a="631591073" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by orsmga008.jf.intel.com with ESMTP; 04 Aug 2022 06:53:20 -0700 Received: from fmsmsx606.amr.corp.intel.com (10.18.126.86) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Thu, 4 Aug 2022 06:53:19 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28 via Frontend Transport; Thu, 4 Aug 2022 06:53:19 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.170) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.28; Thu, 4 Aug 2022 06:53:18 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NFxqchvj0eEpgkpYYMUknVdVv8I+iopJb1Jrv/4GLhy24vRuCRJDcvEYjkA7C49p6i4RTR3LzBid1ZJwSoDaAfPLEQHXs1jR8f/XWSSNloeVZiKwJ4p1/MVXy1afn3j6PKA8/ZGyNtm2/c3gaQTHnFgsRt3GCipRMkKYuf90MsUXsS6zdgmdTfzZ9N3QsLKsi1f9fmHaSF1JGdSvxUqMXDxpTMhZngfkZ5NFGlwoiKzXElYP/2qre6/8HtoU9dsH1WrcjGFIt39YBLKCNmV/QYXG+JmWwBb6gMlZSlmtT2ZFTCynL+5cX3x9k8U1nYvYmIoWmAeXoJRAG0m+lClItA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=XFapMqsoEI/+3lQXQbzwh9bI5RbIW/K0En0e6s1su5Q=; b=iNpr1Wnkh6BbGHuk/w34lnRkpQUVIgWcQO2TQ6jpuBzM10I+o+rM3AjZAHUteiQEPeH35oVKgnvQSbqDBXk3y1FS9TVjI2UFPYqcyreOY40zY9YF6hx3uaRwItYEUGxOR5hdhAupIsyrxsu+3uAd7h+oGwi1VHxgpF1s2Lw7njIbt8SJxBA5Qrr4AA7dY1VJgXnlOH91VG+UcbSL8+yYU2wx6vWrQFCUkeyc6V3cXC+1WMNMz70so+32ZXb9zB3sjPvB8V+iVFfAUCc+PkgfjEQ95WOCs7J7lQ83lGE8kTw4edXF+MCEvlzpWcxS41fyc8aBz7pets7ZSYXyDnoekA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from BYAPR11MB3367.namprd11.prod.outlook.com (2603:10b6:a03:79::29) by MW5PR11MB5930.namprd11.prod.outlook.com (2603:10b6:303:1a1::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.14; Thu, 4 Aug 2022 13:53:13 +0000 Received: from BYAPR11MB3367.namprd11.prod.outlook.com ([fe80::682f:e9fd:d1d7:f3b9]) by BYAPR11MB3367.namprd11.prod.outlook.com ([fe80::682f:e9fd:d1d7:f3b9%4]) with mapi id 15.20.5504.014; Thu, 4 Aug 2022 13:53:13 +0000 From: "G, GurucharanX" To: "Fabio M. De Francesco" , "Brandeburg, Jesse" , "Nguyen, Anthony L" , "David S. Miller" , "Eric Dumazet" , Jakub Kicinski , Paolo Abeni , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , "John Fastabend" , "intel-wired-lan@lists.osuosl.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "bpf@vger.kernel.org" CC: "Weiny, Ira" Subject: RE: [Intel-wired-lan] [PATCH] ixgbe: Don't call kmap() on page allocated with GFP_ATOMIC Thread-Topic: [Intel-wired-lan] [PATCH] ixgbe: Don't call kmap() on page allocated with GFP_ATOMIC Thread-Index: AQHYkG4SLXloggG0eEmmUhhkpGwfTa2e8hVA Date: Thu, 4 Aug 2022 13:53:13 +0000 Message-ID: References: <20220704140129.6463-1-fmdefrancesco@gmail.com> In-Reply-To: <20220704140129.6463-1-fmdefrancesco@gmail.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7461abda-6a70-4f38-5ca8-08da7620ac8c x-ms-traffictypediagnostic: MW5PR11MB5930:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 8q+zBHl2okg0wqJANo1NzcbhmIZgsz/Nku0/QoCUpDAoBH1133YLRZXh2KPLu8B571omo1XBusIqGCbzY4Ip1Vb+2/gAybOzg/6zi9dKTOOHMB/Fvbt4UWlp82gDoWSvLN6WOLLR5jJi8xH2YcSVsSbfAjSS3/oftYZmw38/KK4ZWkmhbDTVWc7RaYfc2dNjQvuC0L/OHfTI8NqPulAPpnSe4yvBljNNnYVPA8ogXWrxMnt+mnuE492Dr8MXRSrWcLOoLBPC626pvOwdFqlQo7iJPwLO2tyfBXjws6O4jz5OVWmpvtYNmrnp8Hp0XsXX3FNe7iNzdZUoDMjv3m7ZdsyPfkhsedHY93rvcBffI1d12R4adrD+dN7ntXGSCs2KKzRnWekvtmSLdo4DayAotLlcGz987y8Cv4hw8NQZILWayIMZQlld/7NeIR9QlzQwV+lSUWxq6n6zBmK+GaQ04Dw2omB42Al1UbhdxLg6pabxMhTTJDQ00gIu08q0Pe5S/h/sEjKEqfMQGH9uyV841J+IeXujQNfBLfkKZgU/3SQET0UTKfEvtsdBZApSKhyMMSDFudbaCX3nnK8MY8AOYcziJ7YvnuNXy5p08EMiy4Dp1UuQKgmR+H1oFQ/NOhQ5xmKfxDQqe0tkxNi1C2FgJGGbUNT0w/DxOcsTNUHb2SaWGBIEAhWjUT81VJ2Laj2vM+PNl2lfr5p31XcgDLhrQdRTmd6zeejZGlUlrcxuvx2ORdr46gaVuaWIs0uFcmRYp86UECjKtWdTH2EakJ/Toq31c38NB4dY7WBmnRhZyJO9ucUGNaOZBUl6CTLBvY74mKHNvSZiTQO9ROLXZDHGDw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR11MB3367.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(366004)(346002)(396003)(39860400002)(136003)(376002)(52536014)(7416002)(5660300002)(2906002)(66556008)(66946007)(66476007)(76116006)(64756008)(4326008)(8676002)(66446008)(316002)(478600001)(71200400001)(110136005)(55016003)(8936002)(7696005)(53546011)(26005)(9686003)(6506007)(186003)(33656002)(107886003)(83380400001)(38070700005)(921005)(82960400001)(38100700002)(122000001)(86362001)(41300700001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?hrA5VFyGsg0kS2Yf4dp5zmwBpbzEeRpiAc0QUHvjkvW7Y8V9K6VZDyiK+VRJ?= =?us-ascii?Q?CdJd+QLU/vxoBYspisD6k7FpeGFQB7HBZQDzePyOi+RB2opXwDbFhws4Ll4X?= =?us-ascii?Q?ip5YAYpE4vs86+jOM5Uv2kvMoRwYwVEgH0nEWnaK7ein9Zi00/NyHzCVnLBW?= =?us-ascii?Q?OswWw23pM+7XmI20r8qSXrv0G91XGQlQ1ZIDzQyN9Y+y4apjq+cwF/+RlvUD?= =?us-ascii?Q?7boT6uRJp3P5ek389kg7MseUYA9i9lVeY8bAR7H5znTp+wf4Y1g7nFdcQV0W?= =?us-ascii?Q?HhqELPhyWoUZg7q0EspahF56FWTXavhEFp82f3K466mC66p6Zve3wJdPARYu?= =?us-ascii?Q?nfR0qcLkSgunU/R6eb/bPRwzmlyT9NGoZ3Jnx0hN7pg5ut2gAaVfzXHDFtSs?= =?us-ascii?Q?szTj6Xv6iyQTaa/KtRhabotkna+X47ws61QZNXjXyae6LP05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ckIwJHirKP5NnzqT1t2fRzY7wGiVHNCExNy0mdN?= =?us-ascii?Q?v07ZLAj3pb599Xg/qQkrBq/cYnc6BwP2OlM5SmAe0T7Itg4227tA4IzOFu5o?= =?us-ascii?Q?5tfJg2HD9iTbAunSVUC79MYYpPHws/rNCzONkJdMlZKv/bJIwQBYvRh+6G87?= =?us-ascii?Q?rXiij/c80z3HLUDDG2dXhPbrHKD6zKtE/sL8z70YQ6F4UIIRBHwpna7BboRj?= =?us-ascii?Q?GZv9paOnt8z1jx41ydEPOpMHZs7yH+Ji5omf4SAt?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB3367.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7461abda-6a70-4f38-5ca8-08da7620ac8c X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Aug 2022 13:53:13.1944 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: OG2gj0omXZJ97e9HcTse4RF7Q1LNigYN2C+QI5S1hqFaseht39VZoegt4TTNe40r9ansRXrct3bDWIzVbb8evw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW5PR11MB5930 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE 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 > -----Original Message----- > From: Intel-wired-lan On Behalf Of > Fabio M. De Francesco > Sent: Monday, July 4, 2022 7:31 PM > To: Brandeburg, Jesse ; Nguyen, Anthony L > ; David S. Miller ; > Eric Dumazet ; Jakub Kicinski ; > Paolo Abeni ; Alexei Starovoitov ; > Daniel Borkmann ; Jesper Dangaard Brouer > ; John Fastabend ; intel- > wired-lan@lists.osuosl.org; netdev@vger.kernel.org; linux- > kernel@vger.kernel.org; bpf@vger.kernel.org > Cc: Weiny, Ira ; Fabio M. De Francesco > > Subject: [Intel-wired-lan] [PATCH] ixgbe: Don't call kmap() on page alloc= ated > with GFP_ATOMIC >=20 > Pages allocated with GFP_ATOMIC cannot come from Highmem. This is why > there is no need to call kmap() on them. >=20 > Therefore, don't call kmap() on rx_buffer->page() and instead use a plain > page_address() to get the kernel address. >=20 > Suggested-by: Ira Weiny > Suggested-by: Alexander Duyck > Signed-off-by: Fabio M. De Francesco > --- > drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) >=20 Tested-by: Gurucharan (A Contingent worker at Int= el)