From mboxrd@z Thu Jan 1 00:00:00 1970 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=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no 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 8C4A3C282DD for ; Fri, 10 Jan 2020 23:04:08 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D57FB206DA for ; Fri, 10 Jan 2020 23:04:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=posteo.de header.i=@posteo.de header.b="RKmOVXol" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D57FB206DA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=posteo.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92.3) (envelope-from ) id 1iq3JT-00046N-Jg; Fri, 10 Jan 2020 18:03:31 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) (envelope-from ) id 1iq3JR-00046G-QU for kernelnewbies@kernelnewbies.org; Fri, 10 Jan 2020 18:03:30 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 18843160060 for ; Sat, 11 Jan 2020 00:03:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1578697405; bh=DcVG9GDAMbHuWLKsm0akwDEct8j5HckrF+/yIAxYgQo=; h=Subject:To:Cc:From:Autocrypt:Date:From; b=RKmOVXolsNh9fbdCxjmhfnNXH77eX+jIaSD+3BLX/VkrOKN8og1eUzWFzJcTls1bf kt01xbPvHrG9yqUmzZU0TuLF5UGREW0i5NxKoKgUYLm6agxZnifjVBJvEzPRUZGakc MgTDbBz5QxKjIJVbYcdFlMCVfUuVOigyqQ+hMi8It/W6N8FNvkUhjDqtUqih+7vj2H eg8Cx5q/Cdqm0CtW0Z1Dq8Qwc5y7V3QUOaV1ZQQ1YjDR10YLWzK0Vsr0erChMoUtkO 3fMoZ262ogzxm+ufiIvRkH9ySTPRalgHj5JfAPKXHo9IOPxHJFLeEhs/bkD2gj4Y35 V8+LXJ+1FtwNg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 47vdnS2Vdhz6tm6; Sat, 11 Jan 2020 00:03:23 +0100 (CET) Subject: Re: read the memory mapped address - pcie - kernel hangs To: Muni Sekhar References: <596b8223-774c-d249-2134-e143d77c9be9@kate.si> From: Onur Atilla Autocrypt: addr=onurati@posteo.de; prefer-encrypt=mutual; keydata= xsJuBFaG3Y4RCACYq2Pmw7r4xVfCM+gGr7uOurRm3w8Rfvu1C4U8kdRPgjjxeB+ZC/6bp4Vg J0IdimHoDEbHKgwJfzqSgNjC1+7JVocZINVECx1GTBfx6+xor2rDxKeXoAZTFwce96XN0jzl N/AA9Bh/MVjsRXy7Q7bibL48REMB9bKxK6HqLgUeqE8vGIkYwEfxqp9MSsOwsgvgVBvJzCIu 2ObiV6+R3HYqlT3zPDMXLVGo8HTyHxaGCoVF4hUo9n35zO1YpKeizgtfvqwjqwS8jRzZ4bzH KoOwXGpERHirYppg7kDoOwCx309dxFFw7vTbTQMw1YhRFFkZTBjOoH6hrKTylN51QEYPAQDJ C1sDqhq6oEkjRUV+3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TdhKUAIcsED33aPy1/wIm1hcVLeVufKnt2j8C4BiZNqFos+/roxTERH7Lc7 5nWfCWddAttPbLQqfDprkgZt7ULYxQO50u4BDJUTnxiRDJwFeDf9L9cW3JpV4tVQPd92q30+ k04zPbI71m6TIsGCZJ+vdLNd66BxQRm9AIeIFL8q+MgESu00Xqx+VY9gdR+6XSUkVeNSuwuV rCpxi78AAwUH/19AhsosZCZdUdt1DAvh86G/cVVqpueTLRUtvKhUeF2Vb7SftlPGtDjMUW0P yZhhX1yQDitE9JbAHi5nt/oR5aluzUCaGlq147baDYoFIJRkl5m4FRnsPNX4WFy6qKLrwenr u48l0xZ/1b3enQHNs6tU3SjvbJvSShr7NyeoNJS0NhgPdeCW1Qaq1GXv2wxET+s/W796kDgG ETIRVkFDfhv0xM9VgJVvPO3+vb1xx6l2Vy+rgzY1aEqdQ6Ao4EqbLmAZjRO9CJEMlaaX7zzq HIB6oV2TM2YUeYJBcYDWiCPlcVQTRWn7vtMbWnPov8K6BepMs++kfmpHatoisGZmk+nCYQQY EQgACQUCVobdjgIbDAAKCRCrifjypBciZkNRAP9zXraGUUurvSjV2hP7OgAQQ45QqUBkVUKN cEBFQCzcBgD/SWpKjreXUe3UwWRJm4SB6o0W6iuJFc+SsUxJNmJRKlE= Message-ID: Date: Sat, 11 Jan 2020 00:03:16 +0100 MIME-Version: 1.0 In-Reply-To: Cc: kernelnewbies , primoz.beltram@kate.si X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============7997682033101574696==" Errors-To: kernelnewbies-bounces@kernelnewbies.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============7997682033101574696== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="YZJWRv7QPjR0GnoSaht2ubAc3ueiNT6VJ" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --YZJWRv7QPjR0GnoSaht2ubAc3ueiNT6VJ Content-Type: multipart/mixed; boundary="ezv08fb47d6PTuythZOjpRvPabsZ1nyJ2" --ezv08fb47d6PTuythZOjpRvPabsZ1nyJ2 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 10.01.20 15:58, Muni Sekhar wrote: > On Fri, Jan 10, 2020 at 4:46 PM Primoz Beltram = wrote: >> >> Hi, >> Have read also other replays to this topic. >> I have seen-debug such deadlock problems with FPGA based PCIe endpoint= >> devices (Xilinx chips) and usually (if not signal integrity problems),= >> the problem was in wrong AXI master/slave bus handling in FPGA design.= >> I guess you have FPGA Xilinx PCIe endpoint IP core attached as AXI >> master to FPGA internal AXI bus (access to AXI slaves inside FPGA desi= gn). >> If FPGA code in your design does not handle correctly AXI master >> read/write requests, e.g. FPGA AXI slave does not generate bus ACK in >> correct way, the PCIe bus will stay locked (no PCIe completion sent >> back), resulting in complete system lock. Some PCIe root chips have >> diagnostic LEDs to help decode PCIe problems. >> From your notice about doing two 32bit reads on 64bit CPU, I would >> guess the problem is in handling AXI transfer size signals in FPGA sla= ve >> code. >> I would suggest you to check the code in FPGA design. You can use FPGA= >> test bench simulation to check the behaviour of PCIe endpoint originat= ed >> AXI read/write requests. >> Xilinx provides test bench simulation code for their PCIe IP's. >> They provide also PCIe root port model, so you can simulate AXI >> read/writes accesses as they would come from CPU I/O memory requests v= ia >> PCIe TLPs. > Thank you so much for sharing valuable information, will work on this. >=20 >> WBR Primoz Hi, you may also want to have a look at the AXI Timeout Block (ATB) to prevent system/core locks due to a missing ACK of a slave. If given by the HW, ATB generates an alternative response in case the slave fails to respond within a given time. It may also trigger an interrupt to help handle/debug the error. Regards, Onur --ezv08fb47d6PTuythZOjpRvPabsZ1nyJ2-- --YZJWRv7QPjR0GnoSaht2ubAc3ueiNT6VJ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEAREIAB0WIQSQ1/IrRmzrCzrDt4GrifjypBciZgUCXhkCuwAKCRCrifjypBci ZtRSAPwL/3VeU+NQlgfEQ8MTrRPpP/RpiGEkDcTpSMtCn9YxZQD/bdxW6AQZiueG 0RC/EbfsRKzXfE6ZYlR9lxm0XXCNn3A= =agPQ -----END PGP SIGNATURE----- --YZJWRv7QPjR0GnoSaht2ubAc3ueiNT6VJ-- --===============7997682033101574696== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============7997682033101574696==--