From patchwork Fri Jul 14 17:14:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 9841463 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A84C060381 for ; Fri, 14 Jul 2017 17:14:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8B3A628733 for ; Fri, 14 Jul 2017 17:14:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7EC4028750; Fri, 14 Jul 2017 17:14:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 18DA428733 for ; Fri, 14 Jul 2017 17:14:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 37E846E89C; Fri, 14 Jul 2017 17:14:36 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id D08A76E89C for ; Fri, 14 Jul 2017 17:14:34 +0000 (UTC) Received: by mail-wm0-x241.google.com with SMTP id u23so11910566wma.2 for ; Fri, 14 Jul 2017 10:14:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id; bh=1R3QZqMnLw95TBcFX8bgGJl3RmvIHtidiPmMxRCLPfQ=; b=DxTa2PXPmwdAK0ajWhEPg8XGzNoihYfGw/XQCTmU9c3hh4XzBrLFodZXo1HZcfY57U meigXQj7R3h5ODzZkAzVjrJK8cAkAwFFyp/1ue8U7/BfaCuyhiXq/xoJuJJZXyzAvmPo VpUz7tOqHGUTbRQUiuu8MecVC0affjI4WNE6M= 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=1R3QZqMnLw95TBcFX8bgGJl3RmvIHtidiPmMxRCLPfQ=; b=to1ZKsAY956ssVoIOLd8ufPMNbN3Tau6Lxp1RMHEPYJp3F081T7IvlK+rpMfhLcb3L QBqc27pqJJD9NsVasSmsPnYwT5yiON810eLfxWoGXFAxRnZJYhvePTI5dzIwogY9F0hT 3NDoBmQViph5MoLGjqI1Pe/IC42xSpaDCYsijBguVFSqh2onC6ror5sgZqsyN/SqeLwG PCCr+deqkkW+DRZv4G9FdfBblCH3en6KPn07JXMMzYEmzGbl9jmSYtJvHGefi/rks3PE EvF3WRaLSqFhT4IGfApC3L1Gd1t81axjtzxym9PV41MgeyC/Ic8bcVV4BkwLfv0TyzGP OIvQ== X-Gm-Message-State: AIVw113rttsp9EV50eaaGdevCqo90OLVxoL+nzj9Zew4HRjR5m1ClsGc g5nkDyjxmA0dSgk4u3Q= X-Received: by 10.80.212.213 with SMTP id e21mr7426619edj.95.1500052473226; Fri, 14 Jul 2017 10:14:33 -0700 (PDT) Received: from wespe.ffwll.local ([2a02:168:5640:0:6631:50ff:fe8d:fd2e]) by smtp.gmail.com with ESMTPSA id b22sm4291656edb.9.2017.07.14.10.14.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Jul 2017 10:14:32 -0700 (PDT) From: Daniel Vetter To: Intel Graphics Development Date: Fri, 14 Jul 2017 19:14:23 +0200 Message-Id: <1500052463-30085-1-git-send-email-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.5.5 Cc: Daniel Vetter , Daniel Vetter Subject: [Intel-gfx] [PATCH i-g-t] tests/drm_module_reload: Don't require hda dynamic debug X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP I can live without those logs, and it avoids a kernel recompile&reboot. Signed-off-by: Daniel Vetter Reviewed-by: Dhinakaran Pandiyan --- tests/drv_module_reload.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/drv_module_reload.c b/tests/drv_module_reload.c index db2ad2cf0f43..be831851dec2 100644 --- a/tests/drv_module_reload.c +++ b/tests/drv_module_reload.c @@ -285,7 +285,10 @@ hda_dynamic_debug(bool enable) const char snd_hda_core_off[] = "module snd_hda_intel =_"; fp = fopen("/sys/kernel/debug/dynamic_debug/control", "w"); - igt_assert(fp != NULL); + if (!fp) { + igt_debug("hda dynamic debug not available\n"); + return; + } if (enable) { fwrite(snd_hda_intel_on, 1, sizeof(snd_hda_intel_on), fp);