From patchwork Fri Feb 22 10:09:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 159015 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1546246jaa; Fri, 22 Feb 2019 02:09:47 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibk0S8p039Z8EuuKNh7k7kgi/u7xe4KGmPvv1cH1tIpj3uoz0N9i2JDJ5wl+F6h34u8xIOj X-Received: by 2002:a50:adc7:: with SMTP id b7mr2605897edd.280.1550830187682; Fri, 22 Feb 2019 02:09:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550830187; cv=none; d=google.com; s=arc-20160816; b=PCz+NWmoZDei4G/s1lXFrcaiEaLt5XjgqQYjsgVP6173+Q+Tro+GD0Sagb+xSij3K9 bA9pnEhrEUfPQfUUJf6Guo1hWt7bvvj6wQKm8lvWnjrwC4lw92DkN0iwzk4VvXLk/tTR B6MMANYwJ/uA65wg541CSkFSmb+U7hlaZ2c7/qyvIWsA3vQFHBmfFhYu7cpUKtDQ4ISn rn2qlXhkAue2Atm0u5P2V3VHHMjL/3c10bpSl120SyDCnS8U7o6Ijz0xHFWMI5VqB5Tj qaOz2MiQ899LOKHrr8xx4Uu29ksyLhN71h4QUVIYE6JZzBydehf4PnZfqu7OOsXStFEo Fo3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:mime-version :content-transfer-encoding:content-language:accept-language :message-id:date:thread-index:thread-topic:cc:to:from:dkim-signature; bh=QCZ9w5UmH41aHMQFLFkgumnnc1b9mYSqOxPTy4gReZg=; b=YoNP1YGP2DpT2MP8SO1eYrKz2D4ZZWUChs6PN9DAhv+SmxOYqGrXlVviwckn6L6HdV KkVuxfgajopNlEceRSrGlvTilj1/HIyZeat9yYNO4ubQpXbYLBNq0GWcPXQX+tSx9Hjq 880Quno7UDIR1AGauXRxJckR9aQdyhGKqLlZeF0aySGMlHvIwqnMVP58f7nP3A7lD3dk ezUGE0Z+/8fvW3N0WwxNIeO6AEtwBdz6Lc/PqagJ2m5nqnZ68bXuVt1iBgn3Vae+rOs4 Lt8iP4uRya3RDBJh+VJb9C64HNGyxq+xSUjmW9pw3rJeA81+oV3YHL5bd+9BKDyjhKdh 7xvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=hWYWOdX4; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id f37si469899ede.340.2019.02.22.02.09.47; Fri, 22 Feb 2019 02:09:47 -0800 (PST) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=hWYWOdX4; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 963102BF2; Fri, 22 Feb 2019 11:09:46 +0100 (CET) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10057.outbound.protection.outlook.com [40.107.1.57]) by dpdk.org (Postfix) with ESMTP id 843F82B9C for ; Fri, 22 Feb 2019 11:09:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QCZ9w5UmH41aHMQFLFkgumnnc1b9mYSqOxPTy4gReZg=; b=hWYWOdX4jhmdbjTHh/Y8wdXJplJG0SQIZmxCK+f/j6KKAd4uEATliNAoh+Ep+EE9PT85YA+KLahTgU+sVPbuaDEfBidy0VrR4S1mbdexoZ25UE1VaervO/R/7h5aO79loefJA0aKkJXdktMY0bvDuycXkzwa7bcy+E3BEPMsJbI= Received: from VI1PR0401MB2541.eurprd04.prod.outlook.com (10.168.65.19) by VI1PR0401MB2637.eurprd04.prod.outlook.com (10.168.66.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.15; Fri, 22 Feb 2019 10:09:44 +0000 Received: from VI1PR0401MB2541.eurprd04.prod.outlook.com ([fe80::1cad:15be:6f7e:cb84]) by VI1PR0401MB2541.eurprd04.prod.outlook.com ([fe80::1cad:15be:6f7e:cb84%9]) with mapi id 15.20.1643.016; Fri, 22 Feb 2019 10:09:44 +0000 From: Hemant Agrawal To: "dev@dpdk.org" CC: "ferruh.yigit@intel.com" , Shreyansh Jain Thread-Topic: [PATCH] bus/dpaa: fix Rx discard mask register Thread-Index: AQHUypa7uS0eXNgfC0aXyuoWih/hlQ== Date: Fri, 22 Feb 2019 10:09:44 +0000 Message-ID: <20190222100825.7478-1-hemant.agrawal@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [92.120.1.72] x-mailer: git-send-email 2.17.1 x-clientproxiedby: BM1PR0101CA0072.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::34) To VI1PR0401MB2541.eurprd04.prod.outlook.com (2603:10a6:800:56::19) authentication-results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 15608f2a-c82e-49e3-336e-08d698adddcc x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600110)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:VI1PR0401MB2637; x-ms-traffictypediagnostic: VI1PR0401MB2637: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; VI1PR0401MB2637; 23:E/u1lckWT99ZgYxb5pw9F+Gs/wjCg/sKKX83i?= =?iso-8859-1?q?HeGCWLYCyVbf3WetLs7djpnR0?= =?iso-8859-1?q?BgHvJ8E3P50b84uaP3y40FtiiWpvy+BhrOUhdFzNA8V+eLZTkYG?= =?iso-8859-1?q?MCaNRh1AH6ekRG4zIcbBhUs7cxMyRT4GsvGwwpyMzJxTIBPIWN2?= =?iso-8859-1?q?yUXokvL3JFw3PY7rTg4sWD96KhuA+sadekMYmm8rK85NkJv+G1W?= =?iso-8859-1?q?X2IIOO1NPZ3t3Be9IXv7rt6byZt+0erOIPH/lyPbh8Pp/828Skq?= =?iso-8859-1?q?nvTRePGiJ/l6CCBQirarfksXzS8eFcSdFWHGPipPto9RpJ65qDr?= =?iso-8859-1?q?ee/53Q5QYd/cfxtegAAsRR72gKisaqpjVy3cWwELilWG28vfl2b?= =?iso-8859-1?q?T9NEp57jwPR7W4Hf8BiLCZznKfBbSUNDjG1rNfbEnAgyg2pIh8T?= =?iso-8859-1?q?Ur7rIVF4UETmsar0g0+1pAKTTNpS8RElS7ACJro9oVmaYWXV7Mi?= =?iso-8859-1?q?a/BuKKizLpsJsRCkQ44SKzHyuL5gunS7T7sAHA4PDlZjkjuBlw9?= =?iso-8859-1?q?exhSBOd5r3vlR1mF6ACCW4d0d37F6iBbeJ03whRnuUxOaF0ySoL?= =?iso-8859-1?q?OEJPQ7l4sble51mLydWrkfEKQG/xfyupoMb/4KxleABra6lH40T?= =?iso-8859-1?q?K88H1UbwW31KqAK8uws1zpogBVoWA6UgAkNPFedQywkHqPoc5c+?= =?iso-8859-1?q?Y0/OVr+N5c0TX/LNzxjQw2+UEszIN5VNUuLExqiaJdHcrF6FXlh?= =?iso-8859-1?q?2xXJEnPs5JwPpKA1JHs0b/hZ2E5kYD22Z3f23aXU7mNhw3mbnG4?= =?iso-8859-1?q?YOY4kL0cmS0TFl6I6SOX4+zWXd3xhBGXNZrYE+36FCRjfqv4804?= =?iso-8859-1?q?bsZcqXx+ChlSxXl5CiqPIRbYAknmafvXHJeBSzdD4gUKYC6JvVP?= =?iso-8859-1?q?ZyfcmIw6trqXzimInXTNX6zryqA+LnsOtMDomut+7CVsYgs0wyU?= =?iso-8859-1?q?qx7VhWawxMkX+0/3XzTwapAt8fkU4l2rXDohL0urB9GXX0g/eJd?= =?iso-8859-1?q?3m0iqkfDOGQm3FKPP/QNMvfDg4gFDp0Qx0VDiuLEizRI8/MN1sj?= =?iso-8859-1?q?74xbz43ft3wNhHLSQfcjLBNplxGVCxjHUaxMI/aJ1uXiMAVCDod?= =?iso-8859-1?q?ZbUDMYQycNoccR+EF4h5as85eFk4OVsP8ta6UDUwt8yxUBtrAh0?= =?iso-8859-1?q?lRaBBukTVBjOFkmb6tn01D/jfKA+gk0HYCwGv72Kg1nsS+dFr+H?= =?iso-8859-1?q?Ky0OOAOVfZ9YRJ4mf5b2SVccPin2bKwHsnHGR0ZN9ND1764+6IH?= =?iso-8859-1?q?vTSdGyYfVWMq8W97PFJE+mFU=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 09565527D6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(136003)(376002)(396003)(366004)(39860400002)(189003)(199004)(99286004)(52116002)(102836004)(1076003)(478600001)(386003)(6506007)(7736002)(6916009)(105586002)(81156014)(81166006)(1730700003)(97736004)(2501003)(66066001)(8676002)(14454004)(2906002)(6116002)(2351001)(106356001)(3846002)(186003)(54906003)(26005)(71190400001)(50226002)(71200400001)(68736007)(6486002)(6436002)(5640700003)(8936002)(316002)(6512007)(5660300002)(53936002)(44832011)(4326008)(486006)(256004)(305945005)(36756003)(86362001)(2616005)(25786009)(476003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2637; H:VI1PR0401MB2541.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: gl1og6jYaGfBgtDTO9nD/cMayyugfl7ltDrezmqy3LawBzFOZSOZnUoR5U5T8C+HPpWy6jSlUcMZzQ3MJHOwn3bsc93/eMIwfHpI9PYWZbrUP142VR/vlqEOt4UL3FTtbGsOwhPsdri/lyw3beKivvM4Z+K3ZZY7nIPKnXW/PVVNWgmDySKBN8VEmvKkw5eYE7RWjda9j9GsaUcja01gO+TZR9Nc733h11vqgmISlThZpH2lzoPevMIDNJmt7/WgjvBnTWiv2LjXjiSD+mfcNN0x5FrfCLozR0R7qMPNXTswW/APuh/hC2bFvwnlBKSL8CaJm4SXcHBihetXKccC5JMHObfMv1ofQXGQ2XGsjljTZRTJyoFlIgocOB4vV7BU72PlcQHm7TrAm8YX64L95+TXw4O02hvS9aSecUMe5DU= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 15608f2a-c82e-49e3-336e-08d698adddcc X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Feb 2019 10:09:42.3233 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2637 Subject: [dpdk-dev] [PATCH] bus/dpaa: fix Rx discard mask register X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Shreyansh Jain Current value of 'fmbm_rfsdm' register (0x010CE3F0) doesn't include the bit to drop colored (red) packets. New value (0x010EE3F0) fixes this. Check with 'fmbm_rffc' register of fm_port_bmi_regs. Fixes: 6d6b4f49a155 ("bus/dpaa: add FMAN hardware operations") Signed-off-by: Shreyansh Jain DPDK-1574 --- drivers/bus/dpaa/base/fman/fman_hw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/drivers/bus/dpaa/base/fman/fman_hw.c b/drivers/bus/dpaa/base/fman/fman_hw.c index 4ebbc3d34..9ab8e835d 100644 --- a/drivers/bus/dpaa/base/fman/fman_hw.c +++ b/drivers/bus/dpaa/base/fman/fman_hw.c @@ -603,9 +603,9 @@ fman_if_discard_rx_errors(struct fman_if *fm_if) out_be32(fmbm_rfsem, 0); /* Configure the discard mask to discard the error packets which have - * DMA errors, Frame size error, Header error etc. The mask 0x010CE3F0 + * DMA errors, Frame size error, Header error etc. The mask 0x010EE3F0 * is to configured discard all the errors which come in the FD[STATUS] */ fmbm_rfsdm = &((struct rx_bmi_regs *)__if->bmi_map)->fmbm_rfsdm; - out_be32(fmbm_rfsdm, 0x010CE3F0); + out_be32(fmbm_rfsdm, 0x010EE3F0); }