Received: by 10.223.164.202 with SMTP id h10csp3607830wrb; Mon, 20 Nov 2017 01:57:39 -0800 (PST) X-Google-Smtp-Source: AGs4zMZr4jSC77k+cYfnC25yHEKDdb15sEFdVyZktwuZswIFaawGLBUJ99d7lRsWAKkYTpZrSTTs X-Received: by 10.99.9.130 with SMTP id 124mr13025791pgj.324.1511171859635; Mon, 20 Nov 2017 01:57:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511171859; cv=none; d=google.com; s=arc-20160816; b=iwg7WOyacapMZ0CLzLWzJhY3kv3Sn8tubmvLxosNdMZKmxbrmJNqS9+9nL2J+mz2gQ cqoQUH8mHDKVZdPaf4iFhgh+Zw9iDEgs/BrT129yZNtAzHVrLUq9PcXu9JOPbECJrMjN kTA0f3lCxMhchOcT3iU/mbGxaCiTHMJnofR1ROBi4uTfT1HgXxYA1GuThm9xpIH7+wsj w8TqUstBvAI2hfjOoj3yjzO0bR1wniFLuSxNmKF7WBF/KxZyTU/6AwIVuZWsvHj1I6yj Ia0j7UlA3gUXSPaYzkW9EBuxmbDagSU/cZZ55jy+7+gJ1/c8UnQplv3yobHeN1GiYxl7 Z3MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:arc-authentication-results; bh=awpuecGHR+lHy4jZkGYMu3UOvX+gXDRNbYxt5Qjig4E=; b=CYh7cpKwc1gOO2+7hDwJ5Xyg0EXrANDa/mDML3p1pThdAa9MZmPo/vNN1IZbypkmYz U6ZvEdcMytK7tpDHEJ4MhvW+ZPrun+/h6dOwCADixnkq1DFXFPnCjNN/rpBIROX13GoV p8jiXlr3435QrJR3gQjyimGupufz91i79YBTjwKpv9LLM5l4Rw3lCZ0lLkaIpBtg1DfV FXATTlA+OLKma6V/PAoVOMak9Eyo+cZ9w/rxe+zJBCVmm6DrBtRxibq6d9Kwa1fTSj5z YbFEgOxz0YPJ/IgpLkr6FosI2yKYY+w50OzBrQcKFcmWUOTIRG3wrWxM+J+8JrAu+RGP f/rg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11si7641837pgb.677.2017.11.20.01.57.29; Mon, 20 Nov 2017 01:57:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751184AbdKTJz1 (ORCPT + 68 others); Mon, 20 Nov 2017 04:55:27 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49374 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751060AbdKTJzZ (ORCPT ); Mon, 20 Nov 2017 04:55:25 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0ABD77EA98; Mon, 20 Nov 2017 09:55:25 +0000 (UTC) Received: from localhost (ovpn-112-41.ams2.redhat.com [10.36.112.41]) by smtp.corp.redhat.com (Postfix) with ESMTP id 21935620A8; Mon, 20 Nov 2017 09:55:20 +0000 (UTC) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= To: linux-kernel@vger.kernel.org Cc: qemu-devel@nongnu.org, somlo@cmu.edu, xiaolong.ye@intel.com, mst@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Subject: [PATCH v7 0/5] fw_cfg: add DMA operations & etc/vmcoreinfo support Date: Mon, 20 Nov 2017 10:55:14 +0100 Message-Id: <20171120095519.15214-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Mon, 20 Nov 2017 09:55:25 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This series adds DMA operations support to the qemu fw_cfg kernel module and populates "etc/vmcoreinfo" with vmcoreinfo location details. Note: the support for this entry handling has been merged for upcoming qemu release (2.11). v7: - add a patch to fix driver remove() - remove DMA operatiom timeout (qemu finishes sync today) - synchronize the DMA transfer before reading from CPU - removed kmalloc() use static allocation instead - drop some r-b tags v6: - change acpi_acquire_global_lock() error to return EINVAL (instead of EBUSY) - replace 0 as pointer argument for NULL - add Gabriel r-b/a-b tags v5: - resent to CC kdump people on the paddr_vmcoreinfo_note() export patch v4: - export paddr_vmcoreinfo_note() to fix fw_cfg.ko build - fix build with !CONFIG_CRASH_CORE - replace the unbounded yield() loop with a usleep_range() loop and a 200ms timeout - do not write vmcoreinfo entry when running the kdump kernel (D. Hatayama) - drop the experimental sysfs write support patch from this series v3: (thanks kbuild) - add "fw_cfg: fix the command line module name" patch - fix build of "fw_cfg: add DMA register" with CONFIG_FW_CFG_SYSFS_CMDLINE=y - fix 'Wshift-count-overflow' v2: - use platform device for dma mapping - add etc/vmcoreinfo patch - some code cleanups Marc-André Lureau (5): fw_cfg: fix driver remove fw_cfg: add DMA register fw_cfg: do DMA read operation crash: export paddr_vmcoreinfo_note() fw_cfg: write vmcoreinfo details drivers/firmware/qemu_fw_cfg.c | 276 ++++++++++++++++++++++++++++++++++++----- kernel/crash_core.c | 1 + 2 files changed, 247 insertions(+), 30 deletions(-) -- 2.15.0.277.ga3d2ad2c43 From 1584566799709133301@xxx Mon Nov 20 06:50:59 +0000 2017 X-GM-THRID: 1584566799709133301 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread