From patchwork Fri Jul 10 13:12:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sumit Garg X-Patchwork-Id: 235230 Delivered-To: patches@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp442540ilg; Fri, 10 Jul 2020 06:12:31 -0700 (PDT) X-Received: by 2002:a5d:8853:: with SMTP id t19mr18324037ios.73.1594386751845; Fri, 10 Jul 2020 06:12:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594386751; cv=none; d=google.com; s=arc-20160816; b=Bz3kKq5laNG0Too+pTORkRpzGlX3YDq2FqGad8uJs51uarH+IlxEW4ON6QTvqVfcZb rD9hWt1qQRm6OTUuLvZfnRq66S6c7PCUNRe79UngjmsadXdeIU6CdJNsmaFSSw3ASrpd YHz/cA7yNALYuHo+D25ybDPL/Pqu334Q96sSaDQEVDj/7D5GbIgQBJ3qJ56utlu8+bp1 t97zSZ4DSwsBSvmCNDMXh/66T1A4dxt33EoGnKqUxZ2qqOWPmmKuAsSmZJ+9fRd+6Vta ElcIkLYfbye0ntMnFab2BWgrzGx1UlrDU5PLT/JJJgh0EIH05PVKsLiktiIDLyYoJgxf j84Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature; bh=/QnMsNLFhc9TriPjpeN5uZIsbg2A8UZn8ASiDjSukKY=; b=YvJrWt5Raw7Y0MU9eejNtkdfRLsjstZ4GtVmti6EdLZBof9M0WQDH6sV5w/fwkhi9P iz8XB1PP1OUym1f+WB1xcnCKjJDyEMBsOW8M9wpRxn90jMYr5EmVOdfiUm5LPyzkXODS 0RrcpywHv5cTZIaSoNqrWwAeIhzd/S7TXXzgFZevRSyCL4ksP/gJr0x39Ea2V3gNmZGL rkuT+eyvAIIPpQi58Xn0UmPOcCHQhlaHgXcYKy2pgCDuBViwJmcEN2TkS0RboenJbSlx nbgSN0u+YpUOlwEqBIQ5MujHFra0Qg1MxzDoibfiAa1FkIuiY0sbNkDt9NPThwmEHp7g ubQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MOb234+w; spf=pass (google.com: domain of sumit.garg@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=sumit.garg@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id e1sor5344058iow.56.2020.07.10.06.12.31 for (Google Transport Security); Fri, 10 Jul 2020 06:12:31 -0700 (PDT) Received-SPF: pass (google.com: domain of sumit.garg@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MOb234+w; spf=pass (google.com: domain of sumit.garg@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=sumit.garg@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=/QnMsNLFhc9TriPjpeN5uZIsbg2A8UZn8ASiDjSukKY=; b=MOb234+wntK7y4A9wFdd30efHoLBxHTFxHUvWMe5b4mQWcCDvLJ+N7nekgo+KKA4X3 uJJxCJrsETF35+6qIL1wQFMON37C44xc77yvEUeQVhbX/vLMc1ZcxVMbo5B8XNZjfcgH pu0gV2o4COM/RyV4oeIvC8OQ1eCJDw+DCDNirH+79asRmElTFuJtRlhE6aMPcqI1WTtp ORfIyi9br538u6yICl9HheiqvOcHWmPKr98rghCbPlsrwFDqVvCTeGuoBsAhS5NrKRjk 0Uvp7PIZkeEMxyCa25asEGubflAqfhcq8a2yEzmc0Vvb/7HZd+16TrluFEE5MtekHip8 o46w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=/QnMsNLFhc9TriPjpeN5uZIsbg2A8UZn8ASiDjSukKY=; b=AOx/PuWVduGTNBMIRicLC/2Iy9PyBXxlVKCyhnwtXl4zuUn4cvCiow1GY5VunQdBK4 peys8DM1/p5oD9fTsXT5KTcJqFRw5VTCeEzjai4mMuagplP85cqX4/KBxOIJ/5YQKaIV 909BgJhCtgNodGN6md+IT3GNvD7I1+ViYdDYVKvZtTBf6uMj+WUNkDRUbkToxv9DB+ok 2pqq2s31e05r0XaOSLlmM3k9iNdPTFzAWMuLcGLLN7raL9DKHOzRcYVmsGiaZ9EUhh+A hvAnkGP9RFF9Czkolcv++7iAp0/oYwzlcBUHZOWwSPMs6P3lPd66pfZDqAdmy6Sr/4ev wI4A== X-Gm-Message-State: AOAM531kGW5F9nw75BRBprXUgLdJPFgjfdxkmrAzLP6WFKZmaT/xO425 stIzCMWMrotqATz23so5xjC4RLtE X-Google-Smtp-Source: ABdhPJyfgq13Wbo8gwC/S2zpAh7PiT0+lFKVH5gMrkCDc1pYYh76Rh203eUA6XNqo8w/EtG0OPZ2ew== X-Received: by 2002:a17:902:7e01:: with SMTP id b1mr20935509plm.310.1594386751469; Fri, 10 Jul 2020 06:12:31 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([117.210.211.230]) by smtp.gmail.com with ESMTPSA id d25sm5553279pgn.2.2020.07.10.06.12.28 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Jul 2020 06:12:30 -0700 (PDT) From: Sumit Garg To: daniel.thompson@linaro.org Cc: patches@linaro.org, Sumit Garg Subject: [RFC INTERNAL v2 0/4] Introduce NMI aware serial drivers Date: Fri, 10 Jul 2020 18:42:01 +0530 Message-Id: <1594386725-10346-1-git-send-email-sumit.garg@linaro.org> X-Mailer: git-send-email 2.7.4 Changes since RFC v1: - Switch TX to be NMI driven rather than poolling mode. - Move common NMI framework bits to serial core. - Make uart_handle_sysrq_char() and uart_handle_break() NMI safe. - Correct poll_init() initialization sequence. - Misc. comments. - Regaring NMI alloc API, I thought about moving it to serial core but then after looking at it more closely there seems to be multiple serial driver specific bits like NMI handler, name, device ID which refrained me from moving it to serial core. But if you still think otherwise then I could just move it with aforementioned params as arguments. Sumit Garg (4): tty/sysrq: Make sysrq handler NMI aware serial: core: Add framework to allow NMI aware serial drivers serial: amba-pl011: Re-order APIs definition serial: amba-pl011: Enable NMI aware polling mode drivers/tty/serial/amba-pl011.c | 241 ++++++++++++++++++++++++++++----------- drivers/tty/serial/serial_core.c | 97 +++++++++++++++- drivers/tty/sysrq.c | 36 +++++- include/linux/serial_core.h | 43 +++++++ include/linux/sysrq.h | 1 + kernel/debug/debug_core.c | 1 + 6 files changed, 351 insertions(+), 68 deletions(-) -- 2.7.4