From patchwork Mon Nov 23 19:08:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shay Agroskin X-Patchwork-Id: 330971 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=-13.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT 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 560DEC63697 for ; Mon, 23 Nov 2020 19:13:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E070120731 for ; Mon, 23 Nov 2020 19:13:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=amazon.com header.i=@amazon.com header.b="fRwUV7HB" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731421AbgKWTNI (ORCPT ); Mon, 23 Nov 2020 14:13:08 -0500 Received: from smtp-fw-33001.amazon.com ([207.171.190.10]:27806 "EHLO smtp-fw-33001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729873AbgKWTNH (ORCPT ); Mon, 23 Nov 2020 14:13:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1606158788; x=1637694788; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=C8AkGa/rGqmLQbd0Mke4gpOM6FmCaymO8ePK0skUwco=; b=fRwUV7HBIPIfEQRg7kNGUqP6hL8wBw26EN6kMDx1XJS/HKaZApm7rv2j BLilWHERlsoL1SUlVPgLNuVOZyNnkr0bmDUZ1S4OEDNs++4uY75I9snH3 eQmth1uFp1z4+Zv7afNhGfNn/YBLdEZczBUQjbyot8vA+8eoboQAOLwqM I=; X-IronPort-AV: E=Sophos;i="5.78,364,1599523200"; d="scan'208";a="97115491" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-1a-16acd5e0.us-east-1.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-33001.sea14.amazon.com with ESMTP; 23 Nov 2020 19:09:33 +0000 Received: from EX13D28EUC001.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan2.iad.amazon.com [10.40.163.34]) by email-inbound-relay-1a-16acd5e0.us-east-1.amazon.com (Postfix) with ESMTPS id 23ECBA1A1B; Mon, 23 Nov 2020 19:09:32 +0000 (UTC) Received: from u68c7b5b1d2d758.ant.amazon.com (10.43.160.229) by EX13D28EUC001.ant.amazon.com (10.43.164.4) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 23 Nov 2020 19:09:24 +0000 From: Shay Agroskin To: , CC: Shay Agroskin , , , , , , , , , , , , , , Subject: [PATCH V3 net 0/3] Fixes for ENA driver Date: Mon, 23 Nov 2020 21:08:56 +0200 Message-ID: <20201123190859.21298-1-shayagr@amazon.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-Originating-IP: [10.43.160.229] X-ClientProxiedBy: EX13D17UWC003.ant.amazon.com (10.43.162.206) To EX13D28EUC001.ant.amazon.com (10.43.164.4) Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi all, This series fixes some issues in the ENA driver: - fix wrong data offset on machines that support rx offset - work-around Intel iommu issue - fix out of bound access when request id is wrong Changes from previous version: v1->v2: switched to using dma_set_mask_and_coherent() function in second patch v2->v3: Removed fourth patch from series (would be sent in future series) Shay Agroskin (3): net: ena: handle bad request id in ena_netdev net: ena: set initial DMA width to avoid intel iommu issue net: ena: fix packet's addresses for rx_offset feature drivers/net/ethernet/amazon/ena/ena_eth_com.c | 3 + drivers/net/ethernet/amazon/ena/ena_netdev.c | 80 +++++++------------ 2 files changed, 33 insertions(+), 50 deletions(-)