blob: 1fdf6fd24cdff64fbbf80f46e82fa1e423656381 [file] [log] [blame]
Srinivas Pandruvada47c93e62014-12-09 16:47:17 -08001/*
2 * processor_thermal_device.c
3 * Copyright (c) 2014, Intel Corporation.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 */
15#include <linux/kernel.h>
16#include <linux/module.h>
17#include <linux/init.h>
18#include <linux/pci.h>
Srinivas Pandruvada4d0dd6c2015-03-02 13:13:00 -080019#include <linux/interrupt.h>
Srinivas Pandruvada47c93e62014-12-09 16:47:17 -080020#include <linux/platform_device.h>
21#include <linux/acpi.h>
Srinivas Pandruvada1c55be02015-01-16 15:59:06 -080022#include <linux/thermal.h>
23#include "int340x_thermal_zone.h"
Srinivas Pandruvada4d0dd6c2015-03-02 13:13:00 -080024#include "../intel_soc_dts_iosf.h"
Srinivas Pandruvada47c93e62014-12-09 16:47:17 -080025
26/* Broadwell-U/HSB thermal reporting device */
27#define PCI_DEVICE_ID_PROC_BDW_THERMAL 0x1603
28#define PCI_DEVICE_ID_PROC_HSB_THERMAL 0x0A03
29
Brian Bian383b4d62015-04-20 11:25:37 -070030/* Skylake thermal reporting device */
31#define PCI_DEVICE_ID_PROC_SKL_THERMAL 0x1903
32
Srinivas Pandruvada47c93e62014-12-09 16:47:17 -080033/* Braswell thermal reporting device */
34#define PCI_DEVICE_ID_PROC_BSW_THERMAL 0x22DC
35
Amy Wiles20bbfaf2015-10-14 08:09:14 -070036/* Broxton thermal reporting device */
37#define PCI_DEVICE_ID_PROC_BXT0_THERMAL 0x0A8C
38#define PCI_DEVICE_ID_PROC_BXT1_THERMAL 0x1A8C
39#define PCI_DEVICE_ID_PROC_BXTX_THERMAL 0x4A8C
40#define PCI_DEVICE_ID_PROC_BXTP_THERMAL 0x5A8C
41
Srinivas Pandruvada47c93e62014-12-09 16:47:17 -080042struct power_config {
43 u32 index;
44 u32 min_uw;
45 u32 max_uw;
46 u32 tmin_us;
47 u32 tmax_us;
48 u32 step_uw;
49};
50
51struct proc_thermal_device {
52 struct device *dev;
53 struct acpi_device *adev;
54 struct power_config power_limits[2];
Srinivas Pandruvada1c55be02015-01-16 15:59:06 -080055 struct int34x_thermal_zone *int340x_zone;
Srinivas Pandruvada4d0dd6c2015-03-02 13:13:00 -080056 struct intel_soc_dts_sensors *soc_dts;
Srinivas Pandruvada47c93e62014-12-09 16:47:17 -080057};
58
59enum proc_thermal_emum_mode_type {
60 PROC_THERMAL_NONE,
61 PROC_THERMAL_PCI,
62 PROC_THERMAL_PLATFORM_DEV
63};
64
65/*
66 * We can have only one type of enumeration, PCI or Platform,
67 * not both. So we don't need instance specific data.
68 */
69static enum proc_thermal_emum_mode_type proc_thermal_emum_mode =
70 PROC_THERMAL_NONE;
71
72#define POWER_LIMIT_SHOW(index, suffix) \
73static ssize_t power_limit_##index##_##suffix##_show(struct device *dev, \
74 struct device_attribute *attr, \
75 char *buf) \
76{ \
77 struct pci_dev *pci_dev; \
78 struct platform_device *pdev; \
79 struct proc_thermal_device *proc_dev; \
Aaron Hill311acb02018-12-24 14:23:36 -050080 \
81 if (proc_thermal_emum_mode == PROC_THERMAL_NONE) { \
82 dev_warn(dev, "Attempted to get power limit before device was initialized!\n"); \
83 return 0; \
84 } \
85 \
Srinivas Pandruvada47c93e62014-12-09 16:47:17 -080086 if (proc_thermal_emum_mode == PROC_THERMAL_PLATFORM_DEV) { \
87 pdev = to_platform_device(dev); \
88 proc_dev = platform_get_drvdata(pdev); \
89 } else { \
90 pci_dev = to_pci_dev(dev); \
91 proc_dev = pci_get_drvdata(pci_dev); \
92 } \
93 return sprintf(buf, "%lu\n",\
94 (unsigned long)proc_dev->power_limits[index].suffix * 1000); \
95}
96
97POWER_LIMIT_SHOW(0, min_uw)
98POWER_LIMIT_SHOW(0, max_uw)
99POWER_LIMIT_SHOW(0, step_uw)
100POWER_LIMIT_SHOW(0, tmin_us)
101POWER_LIMIT_SHOW(0, tmax_us)
102
103POWER_LIMIT_SHOW(1, min_uw)
104POWER_LIMIT_SHOW(1, max_uw)
105POWER_LIMIT_SHOW(1, step_uw)
106POWER_LIMIT_SHOW(1, tmin_us)
107POWER_LIMIT_SHOW(1, tmax_us)
108
109static DEVICE_ATTR_RO(power_limit_0_min_uw);
110static DEVICE_ATTR_RO(power_limit_0_max_uw);
111static DEVICE_ATTR_RO(power_limit_0_step_uw);
112static DEVICE_ATTR_RO(power_limit_0_tmin_us);
113static DEVICE_ATTR_RO(power_limit_0_tmax_us);
114
115static DEVICE_ATTR_RO(power_limit_1_min_uw);
116static DEVICE_ATTR_RO(power_limit_1_max_uw);
117static DEVICE_ATTR_RO(power_limit_1_step_uw);
118static DEVICE_ATTR_RO(power_limit_1_tmin_us);
119static DEVICE_ATTR_RO(power_limit_1_tmax_us);
120
121static struct attribute *power_limit_attrs[] = {
122 &dev_attr_power_limit_0_min_uw.attr,
123 &dev_attr_power_limit_1_min_uw.attr,
124 &dev_attr_power_limit_0_max_uw.attr,
125 &dev_attr_power_limit_1_max_uw.attr,
126 &dev_attr_power_limit_0_step_uw.attr,
127 &dev_attr_power_limit_1_step_uw.attr,
128 &dev_attr_power_limit_0_tmin_us.attr,
129 &dev_attr_power_limit_1_tmin_us.attr,
130 &dev_attr_power_limit_0_tmax_us.attr,
131 &dev_attr_power_limit_1_tmax_us.attr,
132 NULL
133};
134
135static struct attribute_group power_limit_attribute_group = {
136 .attrs = power_limit_attrs,
137 .name = "power_limits"
138};
139
Srinivas Pandruvada1c55be02015-01-16 15:59:06 -0800140static int stored_tjmax; /* since it is fixed, we can have local storage */
141
142static int get_tjmax(void)
143{
144 u32 eax, edx;
145 u32 val;
146 int err;
147
148 err = rdmsr_safe(MSR_IA32_TEMPERATURE_TARGET, &eax, &edx);
149 if (err)
150 return err;
151
152 val = (eax >> 16) & 0xff;
153 if (val)
154 return val;
155
156 return -EINVAL;
157}
158
Sascha Hauer17e83512015-07-24 08:12:54 +0200159static int read_temp_msr(int *temp)
Srinivas Pandruvada1c55be02015-01-16 15:59:06 -0800160{
161 int cpu;
162 u32 eax, edx;
163 int err;
164 unsigned long curr_temp_off = 0;
165
166 *temp = 0;
167
168 for_each_online_cpu(cpu) {
169 err = rdmsr_safe_on_cpu(cpu, MSR_IA32_THERM_STATUS, &eax,
170 &edx);
171 if (err)
172 goto err_ret;
173 else {
174 if (eax & 0x80000000) {
175 curr_temp_off = (eax >> 16) & 0x7f;
176 if (!*temp || curr_temp_off < *temp)
177 *temp = curr_temp_off;
178 } else {
179 err = -EINVAL;
180 goto err_ret;
181 }
182 }
183 }
184
185 return 0;
186err_ret:
187 return err;
188}
189
190static int proc_thermal_get_zone_temp(struct thermal_zone_device *zone,
Sascha Hauer17e83512015-07-24 08:12:54 +0200191 int *temp)
Srinivas Pandruvada1c55be02015-01-16 15:59:06 -0800192{
193 int ret;
194
195 ret = read_temp_msr(temp);
196 if (!ret)
197 *temp = (stored_tjmax - *temp) * 1000;
198
199 return ret;
200}
201
202static struct thermal_zone_device_ops proc_thermal_local_ops = {
203 .get_temp = proc_thermal_get_zone_temp,
204};
205
Srinivas Pandruvadaf1ba9eb2016-04-05 14:52:57 -0700206static int proc_thermal_read_ppcc(struct proc_thermal_device *proc_priv)
Srinivas Pandruvada47c93e62014-12-09 16:47:17 -0800207{
Srinivas Pandruvadaf1ba9eb2016-04-05 14:52:57 -0700208 int i;
Srinivas Pandruvada47c93e62014-12-09 16:47:17 -0800209 acpi_status status;
210 struct acpi_buffer buf = { ACPI_ALLOCATE_BUFFER, NULL };
211 union acpi_object *elements, *ppcc;
212 union acpi_object *p;
Srinivas Pandruvadaf1ba9eb2016-04-05 14:52:57 -0700213 int ret = 0;
Srinivas Pandruvada47c93e62014-12-09 16:47:17 -0800214
Srinivas Pandruvadaf1ba9eb2016-04-05 14:52:57 -0700215 status = acpi_evaluate_object(proc_priv->adev->handle, "PPCC",
216 NULL, &buf);
Srinivas Pandruvada47c93e62014-12-09 16:47:17 -0800217 if (ACPI_FAILURE(status))
218 return -ENODEV;
219
220 p = buf.pointer;
221 if (!p || (p->type != ACPI_TYPE_PACKAGE)) {
Srinivas Pandruvadaf1ba9eb2016-04-05 14:52:57 -0700222 dev_err(proc_priv->dev, "Invalid PPCC data\n");
Srinivas Pandruvadacc3f71a2014-12-23 15:23:35 -0800223 ret = -EFAULT;
224 goto free_buffer;
Srinivas Pandruvada47c93e62014-12-09 16:47:17 -0800225 }
Srinivas Pandruvadaf1ba9eb2016-04-05 14:52:57 -0700226
Srinivas Pandruvada47c93e62014-12-09 16:47:17 -0800227 if (!p->package.count) {
Srinivas Pandruvadaf1ba9eb2016-04-05 14:52:57 -0700228 dev_err(proc_priv->dev, "Invalid PPCC package size\n");
Srinivas Pandruvadacc3f71a2014-12-23 15:23:35 -0800229 ret = -EFAULT;
230 goto free_buffer;
Srinivas Pandruvada47c93e62014-12-09 16:47:17 -0800231 }
232
Srinivas Pandruvada47c93e62014-12-09 16:47:17 -0800233 for (i = 0; i < min((int)p->package.count - 1, 2); ++i) {
234 elements = &(p->package.elements[i+1]);
235 if (elements->type != ACPI_TYPE_PACKAGE ||
Srinivas Pandruvadacc3f71a2014-12-23 15:23:35 -0800236 elements->package.count != 6) {
237 ret = -EFAULT;
238 goto free_buffer;
239 }
Srinivas Pandruvada47c93e62014-12-09 16:47:17 -0800240 ppcc = elements->package.elements;
241 proc_priv->power_limits[i].index = ppcc[0].integer.value;
242 proc_priv->power_limits[i].min_uw = ppcc[1].integer.value;
243 proc_priv->power_limits[i].max_uw = ppcc[2].integer.value;
244 proc_priv->power_limits[i].tmin_us = ppcc[3].integer.value;
245 proc_priv->power_limits[i].tmax_us = ppcc[4].integer.value;
246 proc_priv->power_limits[i].step_uw = ppcc[5].integer.value;
247 }
248
Srinivas Pandruvadaf1ba9eb2016-04-05 14:52:57 -0700249free_buffer:
250 kfree(buf.pointer);
251
252 return ret;
253}
254
255#define PROC_POWER_CAPABILITY_CHANGED 0x83
256static void proc_thermal_notify(acpi_handle handle, u32 event, void *data)
257{
258 struct proc_thermal_device *proc_priv = data;
259
260 if (!proc_priv)
261 return;
262
263 switch (event) {
264 case PROC_POWER_CAPABILITY_CHANGED:
265 proc_thermal_read_ppcc(proc_priv);
Srinivas Pandruvada9176ae82016-08-26 16:21:18 -0700266 int340x_thermal_zone_device_update(proc_priv->int340x_zone,
267 THERMAL_DEVICE_POWER_CAPABILITY_CHANGED);
Srinivas Pandruvadaf1ba9eb2016-04-05 14:52:57 -0700268 break;
269 default:
270 dev_err(proc_priv->dev, "Unsupported event [0x%x]\n", event);
271 break;
272 }
273}
274
275
276static int proc_thermal_add(struct device *dev,
277 struct proc_thermal_device **priv)
278{
279 struct proc_thermal_device *proc_priv;
280 struct acpi_device *adev;
281 acpi_status status;
282 unsigned long long tmp;
283 struct thermal_zone_device_ops *ops = NULL;
284 int ret;
285
286 adev = ACPI_COMPANION(dev);
287 if (!adev)
288 return -ENODEV;
289
290 proc_priv = devm_kzalloc(dev, sizeof(*proc_priv), GFP_KERNEL);
291 if (!proc_priv)
292 return -ENOMEM;
293
294 proc_priv->dev = dev;
295 proc_priv->adev = adev;
Srinivas Pandruvada47c93e62014-12-09 16:47:17 -0800296 *priv = proc_priv;
297
Srinivas Pandruvadaf1ba9eb2016-04-05 14:52:57 -0700298 ret = proc_thermal_read_ppcc(proc_priv);
Srinivas Pandruvada1c55be02015-01-16 15:59:06 -0800299 if (ret)
Srinivas Pandruvadaf1ba9eb2016-04-05 14:52:57 -0700300 return ret;
Srinivas Pandruvada1c55be02015-01-16 15:59:06 -0800301
302 status = acpi_evaluate_integer(adev->handle, "_TMP", NULL, &tmp);
303 if (ACPI_FAILURE(status)) {
304 /* there is no _TMP method, add local method */
305 stored_tjmax = get_tjmax();
306 if (stored_tjmax > 0)
307 ops = &proc_thermal_local_ops;
308 }
309
310 proc_priv->int340x_zone = int340x_thermal_zone_add(adev, ops);
311 if (IS_ERR(proc_priv->int340x_zone)) {
Aaron Hill311acb02018-12-24 14:23:36 -0500312 return PTR_ERR(proc_priv->int340x_zone);
Srinivas Pandruvada1c55be02015-01-16 15:59:06 -0800313 } else
314 ret = 0;
Srinivas Pandruvadacc3f71a2014-12-23 15:23:35 -0800315
Srinivas Pandruvadaf1ba9eb2016-04-05 14:52:57 -0700316 ret = acpi_install_notify_handler(adev->handle, ACPI_DEVICE_NOTIFY,
317 proc_thermal_notify,
318 (void *)proc_priv);
319 if (ret)
320 goto remove_zone;
321
322 return 0;
323
324remove_zone:
325 int340x_thermal_zone_remove(proc_priv->int340x_zone);
Srinivas Pandruvadacc3f71a2014-12-23 15:23:35 -0800326
327 return ret;
Srinivas Pandruvada47c93e62014-12-09 16:47:17 -0800328}
329
Lad, Prabhakar4aa971b2015-02-05 13:43:37 +0000330static void proc_thermal_remove(struct proc_thermal_device *proc_priv)
Srinivas Pandruvada47c93e62014-12-09 16:47:17 -0800331{
Srinivas Pandruvadaf1ba9eb2016-04-05 14:52:57 -0700332 acpi_remove_notify_handler(proc_priv->adev->handle,
333 ACPI_DEVICE_NOTIFY, proc_thermal_notify);
Srinivas Pandruvada1c55be02015-01-16 15:59:06 -0800334 int340x_thermal_zone_remove(proc_priv->int340x_zone);
Srinivas Pandruvada47c93e62014-12-09 16:47:17 -0800335 sysfs_remove_group(&proc_priv->dev->kobj,
336 &power_limit_attribute_group);
337}
338
339static int int3401_add(struct platform_device *pdev)
340{
341 struct proc_thermal_device *proc_priv;
342 int ret;
343
344 if (proc_thermal_emum_mode == PROC_THERMAL_PCI) {
345 dev_err(&pdev->dev, "error: enumerated as PCI dev\n");
346 return -ENODEV;
347 }
348
349 ret = proc_thermal_add(&pdev->dev, &proc_priv);
350 if (ret)
351 return ret;
352
353 platform_set_drvdata(pdev, proc_priv);
354 proc_thermal_emum_mode = PROC_THERMAL_PLATFORM_DEV;
355
Aaron Hill311acb02018-12-24 14:23:36 -0500356 dev_info(&pdev->dev, "Creating sysfs group for PROC_THERMAL_PLATFORM_DEV\n");
357
358 return sysfs_create_group(&pdev->dev.kobj,
359 &power_limit_attribute_group);
Srinivas Pandruvada47c93e62014-12-09 16:47:17 -0800360}
361
362static int int3401_remove(struct platform_device *pdev)
363{
364 proc_thermal_remove(platform_get_drvdata(pdev));
365
366 return 0;
367}
368
Srinivas Pandruvada4d0dd6c2015-03-02 13:13:00 -0800369static irqreturn_t proc_thermal_pci_msi_irq(int irq, void *devid)
370{
371 struct proc_thermal_device *proc_priv;
372 struct pci_dev *pdev = devid;
373
374 proc_priv = pci_get_drvdata(pdev);
375
376 intel_soc_dts_iosf_interrupt_handler(proc_priv->soc_dts);
377
378 return IRQ_HANDLED;
379}
380
Srinivas Pandruvada47c93e62014-12-09 16:47:17 -0800381static int proc_thermal_pci_probe(struct pci_dev *pdev,
382 const struct pci_device_id *unused)
383{
384 struct proc_thermal_device *proc_priv;
385 int ret;
386
387 if (proc_thermal_emum_mode == PROC_THERMAL_PLATFORM_DEV) {
388 dev_err(&pdev->dev, "error: enumerated as platform dev\n");
389 return -ENODEV;
390 }
391
392 ret = pci_enable_device(pdev);
393 if (ret < 0) {
394 dev_err(&pdev->dev, "error: could not enable device\n");
395 return ret;
396 }
397
398 ret = proc_thermal_add(&pdev->dev, &proc_priv);
399 if (ret) {
400 pci_disable_device(pdev);
401 return ret;
402 }
403
404 pci_set_drvdata(pdev, proc_priv);
405 proc_thermal_emum_mode = PROC_THERMAL_PCI;
406
Srinivas Pandruvada4d0dd6c2015-03-02 13:13:00 -0800407 if (pdev->device == PCI_DEVICE_ID_PROC_BSW_THERMAL) {
408 /*
409 * Enumerate additional DTS sensors available via IOSF.
410 * But we are not treating as a failure condition, if
411 * there are no aux DTSs enabled or fails. This driver
412 * already exposes sensors, which can be accessed via
413 * ACPI/MSR. So we don't want to fail for auxiliary DTSs.
414 */
415 proc_priv->soc_dts = intel_soc_dts_iosf_init(
416 INTEL_SOC_DTS_INTERRUPT_MSI, 2, 0);
417
Dan Carpenter26e284f2018-12-17 10:02:42 +0300418 if (!IS_ERR(proc_priv->soc_dts) && pdev->irq) {
Srinivas Pandruvada4d0dd6c2015-03-02 13:13:00 -0800419 ret = pci_enable_msi(pdev);
420 if (!ret) {
421 ret = request_threaded_irq(pdev->irq, NULL,
422 proc_thermal_pci_msi_irq,
423 IRQF_ONESHOT, "proc_thermal",
424 pdev);
425 if (ret) {
426 intel_soc_dts_iosf_exit(
427 proc_priv->soc_dts);
428 pci_disable_msi(pdev);
429 proc_priv->soc_dts = NULL;
430 }
431 }
432 } else
433 dev_err(&pdev->dev, "No auxiliary DTSs enabled\n");
434 }
435
Aaron Hill311acb02018-12-24 14:23:36 -0500436 dev_info(&pdev->dev, "Creating sysfs group for PROC_THERMAL_PCI\n");
437
438 return sysfs_create_group(&pdev->dev.kobj,
439 &power_limit_attribute_group);
Srinivas Pandruvada47c93e62014-12-09 16:47:17 -0800440}
441
442static void proc_thermal_pci_remove(struct pci_dev *pdev)
443{
Srinivas Pandruvada4d0dd6c2015-03-02 13:13:00 -0800444 struct proc_thermal_device *proc_priv = pci_get_drvdata(pdev);
445
446 if (proc_priv->soc_dts) {
447 intel_soc_dts_iosf_exit(proc_priv->soc_dts);
448 if (pdev->irq) {
449 free_irq(pdev->irq, pdev);
450 pci_disable_msi(pdev);
451 }
452 }
453 proc_thermal_remove(proc_priv);
Srinivas Pandruvada47c93e62014-12-09 16:47:17 -0800454 pci_disable_device(pdev);
455}
456
457static const struct pci_device_id proc_thermal_pci_ids[] = {
458 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_BDW_THERMAL)},
459 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_HSB_THERMAL)},
Brian Bian383b4d62015-04-20 11:25:37 -0700460 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_SKL_THERMAL)},
Srinivas Pandruvada47c93e62014-12-09 16:47:17 -0800461 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_BSW_THERMAL)},
Amy Wiles20bbfaf2015-10-14 08:09:14 -0700462 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_BXT0_THERMAL)},
463 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_BXT1_THERMAL)},
464 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_BXTX_THERMAL)},
465 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_BXTP_THERMAL)},
Srinivas Pandruvada47c93e62014-12-09 16:47:17 -0800466 { 0, },
467};
468
469MODULE_DEVICE_TABLE(pci, proc_thermal_pci_ids);
470
471static struct pci_driver proc_thermal_pci_driver = {
472 .name = "proc_thermal",
473 .probe = proc_thermal_pci_probe,
474 .remove = proc_thermal_pci_remove,
475 .id_table = proc_thermal_pci_ids,
476};
477
478static const struct acpi_device_id int3401_device_ids[] = {
479 {"INT3401", 0},
480 {"", 0},
481};
482MODULE_DEVICE_TABLE(acpi, int3401_device_ids);
483
484static struct platform_driver int3401_driver = {
485 .probe = int3401_add,
486 .remove = int3401_remove,
487 .driver = {
488 .name = "int3401 thermal",
489 .acpi_match_table = int3401_device_ids,
490 },
491};
492
493static int __init proc_thermal_init(void)
494{
495 int ret;
496
497 ret = platform_driver_register(&int3401_driver);
498 if (ret)
499 return ret;
500
501 ret = pci_register_driver(&proc_thermal_pci_driver);
502
503 return ret;
504}
505
506static void __exit proc_thermal_exit(void)
507{
508 platform_driver_unregister(&int3401_driver);
509 pci_unregister_driver(&proc_thermal_pci_driver);
510}
511
512module_init(proc_thermal_init);
513module_exit(proc_thermal_exit);
514
515MODULE_AUTHOR("Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>");
516MODULE_DESCRIPTION("Processor Thermal Reporting Device Driver");
517MODULE_LICENSE("GPL v2");